/* Підключення шрифту Share Tech CYR через @font-face */
@font-face {
    font-family: 'Share Tech Cyr';
    src: url('fonts/ShareTechCYR-Regular.woff2') format('woff2'),
         url('fonts/ShareTechCYR-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Share Tech Cyr';
    src: url('fonts/ShareTechCYR-Bold.woff2') format('woff2'),
         url('fonts/ShareTechCYR-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Share Tech Cyr';
    src: url('fonts/ShareTechCYR-Italic.woff2') format('woff2'),
         url('fonts/ShareTechCYR-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Share Tech Cyr';
    src: url('fonts/ShareTechCYR-BoldItalic.woff2') format('woff2'),
         url('fonts/ShareTechCYR-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

/* Основні змінні */
:root {
    --primary-color: #003b71; /* Темно-синій */
    --secondary-color: #0065b3; /* Синій */
    --accent-color: #e89e3c; /* Золотавий */
    --text-color: #333333;
    --bg-color: #ffffff;
    --light-bg: #f5f8fa;
    --border-radius: 12px; /* Збільшено для м'якіших країв */
    --transition: all 0.3s ease;
    --main-font: 'Share Tech Cyr', 'Courier New', 'Consolas', monospace;
    --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Загальні стилі */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--main-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

/* Примусове застосування шрифтів до всіх важливих елементів */
h1, h2, h3, h4, h5, h6,
.section-title, .hero-title, .analytics-title, .analytics-tab,
.nav-link, button, a, p, div, span {
    font-family: var(--main-font);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

/* Заголовок */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
}

.logo-icon {
    height: 52px;      /* десктоп */
    width: auto;       /* пропорції збережено */
    margin-right: 15px;
    flex-shrink: 0;
}
@media (max-width: 767px){
    .logo-icon { height: 40px; }  /* мобайл */
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.2;
}

.logo-text span {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item {
    margin: 0 12px;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.contact-button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    margin-left: 20px;
    transition: var(--transition);
}

.contact-button:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Hero секція */
.hero-section {
    background-color: var(--light-bg);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.financial-animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.background-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 59, 113, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 59, 113, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

.formula {
    position: absolute;
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 1s ease;
    font-family: var(--main-font);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 30px;
}

.hero-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.hero-button:hover {
    background-color: #d18a2a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: white;
}

/* Стилі секцій */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

/* About секція */
.about-section {
    background-color: white;
}

.about-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.about-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-description p {
    margin-bottom: 15px;
}

.documents-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.document-card {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.document-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.document-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.document-link {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.document-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Стилі для блоку Засновника в секції "Про Компанію" */
.about-visual {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Вирівнювання по верху */
    padding-top: 20px; /* Відступ зверху */
}

.founder-info {
    text-align: center;
    max-width: 300px; /* Обмеження ширини блоку */
}

.founder-photo {
    width: 200px; /* Розмір фото */
    height: 200px;
    border-radius: 50%; /* Кругле фото */
    object-fit: cover; /* Масштабування фото */
    margin-bottom: 20px;
    border: 5px solid white; /* Біла рамка */
    box-shadow: 0 5px 15px rgba(0, 59, 113, 0.2); /* Тінь */
}

.founder-name {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.founder-title {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 500;
}

.founder-bio {
    font-size: 0.95rem;
    color: var(--text-color);
    text-align: left; /* Вирівнювання тексту біографії */
    line-height: 1.5;
}

/* Фонди секція */
.funds-section {
    background-color: var(--light-bg);
}

/* ОНОВЛЕНІ стилі для Карток Фондів - поєднання градієнтного верху та м'яких країв */
.funds-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.fund-card {
    background: linear-gradient(to bottom, rgba(0, 101, 179, 0.1) 0%, rgba(255, 255, 255, 1) 30%);
    border: none; /* Видаляємо межу для кращого вигляду */
    border-radius: 20px; /* М'які краї */
    padding: 25px;
    box-shadow: var(--card-shadow);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.fund-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 59, 113, 0.15);
}

.fund-card-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
    flex-grow: 1;
}

.fund-card-stat {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 8px;
    padding: 5px 0;
    border-top: 1px solid rgba(0, 101, 179, 0.1);
}

.fund-card-stat:first-of-type {
    border-top: none;
}

.fund-card-stat-label {
    font-weight: 500;
    color: var(--secondary-color);
}

.fund-card-stat-value {
    font-weight: 600;
    float: right;
}

.fund-card-details-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    align-self: flex-start;
    position: relative;
}

.fund-card-details-link:hover {
    background-color: var(--secondary-color);
    padding-right: 35px;
}

.fund-card-details-link:after {
    content: "→";
    position: absolute;
    right: 15px;
    opacity: 0;
    transition: all 0.3s;
}

.fund-card-details-link:hover:after {
    opacity: 1;
}

/* Послуги секція */
.services-section {
    background-color: white;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Оновлені стилі для Карток Послуг (посилання) */
.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block; /* Щоб посилання займало всю картку */
    height: 100%; /* Щоб займало всю висоту */
}

.service-card {
    /* Стилі картки залишаються, але тепер вона всередині <a> */
    height: 100%; /* Дозволяє картці розтягнутись */
    display: flex; /* Для кращого контролю вмісту */
    flex-direction: column;
    padding: 30px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    flex-grow: 1; /* Опис займає доступне місце */
    margin-bottom: 0; /* Забрати зайвий відступ */
    color: var(--text-color);
}

/* Аналітика секція */
.analytics-section {
    background-color: var(--light-bg);
}

.analytics-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.analytics-tab {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #777;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    font-family: var(--main-font);
}

.analytics-tab.active,
.analytics-tab:hover {
    color: var(--primary-color);
}

.analytics-tab.active::after,
.analytics-tab:hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: -11px;
    left: 0;
    background-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.analytics-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
}

.analytics-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.analytics-icon {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-right: 20px;
    flex-shrink: 0;
}

.analytics-content {
    flex-grow: 1;
}

.analytics-date {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 5px;
}

.analytics-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: var(--main-font);
}

.analytics-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.analytics-title a:hover {
    color: var(--secondary-color);
}

.analytics-excerpt {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
}

.analytics-pdf-link {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background-color: #f2f2f2;
    border-radius: 4px;
    color: var(--secondary-color);
    font-size: 0.85rem;
    transition: var(--transition);
}

.analytics-pdf-link:hover {
    background-color: var(--secondary-color);
    color: white;
}

.analytics-pdf-link i {
    margin-right: 5px;
}

/* Контакти секція */
.contact-section {
    background-color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form-container,
.contact-info-container {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form-title,
.contact-info-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--main-font);
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    padding: 12px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--main-font);
}

.contact-form button:hover {
    background-color: var(--secondary-color);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-info-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-info-content {
    flex-grow: 1;
}

.contact-info-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-info-text {
    font-size: 0.95rem;
    color: var(--text-color);
}

.contact-info-text a {
    color: var(--secondary-color);
    transition: var(--transition);
}

.contact-info-text a:hover {
    color: var(--primary-color);
}

/* Підвал */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.footer-widget-title::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
    margin-top: 10px;
}

.footer-widget-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-widget-content ul {
    list-style: none;
}

.footer-widget-content ul li {
    margin-bottom: 10px;
}

.footer-widget-content ul li a {
    color: white;
    opacity: 0.8;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-widget-content ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Стилі для сторінки фонду */
.fund-detail-section { padding: 60px 0; }
.fund-detail-title { font-size: 2rem; color: var(--primary-color); margin-bottom: 30px; text-align: center; }
.fund-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 40px; }
.fund-detail-item { background: #f9f9f9; padding: 15px; border-radius: var(--border-radius); }
.fund-detail-label { font-weight: 600; color: var(--secondary-color); display: block; margin-bottom: 5px; }
.fund-detail-value { font-size: 1rem; }
.fund-documents-title { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 20px; border-top: 1px solid #eee; padding-top: 30px; }
.document-list { list-style: none; padding: 0; }
.document-list li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed #ddd; }
.document-list li:last-child { border-bottom: none; }
.document-name { flex-grow: 1; margin-right: 15px; }
.document-link, .request-info-btn {
    padding: 8px 15px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap;
}
.document-link {
    background-color: var(--secondary-color);
    color: white;
}
.document-link:hover { background-color: var(--primary-color); }
.request-info-btn {
    background-color: var(--accent-color);
    color: white;
    cursor: pointer;
    border: none;
}
.request-info-btn i { margin-right: 5px; }
.request-info-btn:hover { background-color: #b57734; }

/* Стилі для навігації на сторінці фонду */
.back-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-decoration: none;
}
.back-link i {
    margin-right: 8px;
}
.back-link:hover {
    color: var(--secondary-color);
}

/* Стилі для сторінки звітності */
.reporting-section { padding: 60px 0; }
.reporting-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn {
    padding: 10px 20px;
    border: 1px solid var(--secondary-color);
    background-color: white;
    color: var(--secondary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 600;
    font-family: var(--main-font);
}
.filter-btn:hover, .filter-btn.active {
    background-color: var(--secondary-color);
    color: white;
}
.reporting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Адаптивна сітка */
    gap: 20px;
}
.report-card {
    display: block; /* Робимо всю картку посиланням */
    text-decoration: none;
    color: inherit;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: var(--border-radius);
    transition: box-shadow 0.3s;
    text-align: center;
}
.report-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.report-icon { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 10px; }
.report-title { font-size: 1rem; font-weight: 600; color: var(--primary-color); margin-bottom: 8px; line-height: 1.3; }
.report-period { font-size: 0.85rem; color: #777; margin-bottom: 8px; }
.report-size { font-size: 0.8rem; color: #999; }

/* Клас для приховування нефільтрованих елементів */
.report-card.hidden { display: none; }

/* Адаптивні стилі */
@media (max-width: 991px) {
    .header-inner {
        flex-direction: column;
        padding: 15px 0;
    }

    .logo {
        margin-bottom: 15px;
    }

    .main-nav {
        flex-direction: column;
    }

    .nav-list {
        margin-bottom: 15px;
    }

    .contact-button {
        margin-left: 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-item {
        margin: 5px 10px;
    }

    .hero-section {
        padding: 70px 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .documents-container {
        grid-template-columns: 1fr;
    }

    .services-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .contact-form-container,
    .contact-info-container {
        padding: 20px;
    }
}

/* Стилі для кнопки гамбургера - прихована на десктопі */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    transition: all 0.3s;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--primary-color);
    transition: all 0.3s;
}

/* Оновлені медіа-запити для мобільної навігації */
@media (max-width: 991px) {
    /* Показуємо кнопку гамбургера */
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }
    
    /* Анімація для активного стану кнопки */
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    /* Стилі для мобільного меню */
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 0;
        position: relative;
    }
    
    .logo {
        margin-bottom: 0;
        z-index: 1001; /* Логотип над меню */
    }
    
    /* Мобільна навігація */
    .mobile-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--light-bg);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transition: right 0.3s ease;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 20px 20px;
        overflow-y: auto;
    }
    
    .mobile-nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .nav-item {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-link {
        display: block;
        padding: 15px 0;
        width: 100%;
    }
    
    .contact-button {
        margin-left: 0;
        align-self: flex-start;
    }
    
    /* Додаємо затемнення заднього фону при відкритому меню */
    body.menu-open::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
}

/* Додатково для дуже малих екранів */
@media (max-width: 576px) {
    .mobile-nav {
        width: 100%;
        max-width: none;
    }
    
    /* Збільшуємо розмір кнопок для зручності натискання */
    .fund-card-details-link,
    .document-link,
    .hero-button,
    .contact-button,
    .analytics-tab,
    .filter-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Стилі для алфавітної навігації словника */
.alphabet-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 30px 0;
    padding: 15px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 70px;
    z-index: 10;
}

.alphabet-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
    border-radius: 50%;
    font-weight: 600;
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Share Tech Cyr', var(--main-font);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.alphabet-item:hover, .alphabet-item.active {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 59, 113, 0.2);
}

/* Стилі для підсвічування термінів зі словника на всіх сторінках */
.glossary-term {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted var(--accent-color);
    color: var(--secondary-color);
    cursor: help;
    font-weight: 500;
}

.glossary-tooltip {
    visibility: hidden;
    width: 300px;
    background-color: white;
    color: var(--text-color);
    text-align: left;
    border-radius: var(--border-radius);
    padding: 15px;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-left: 3px solid var(--accent-color);
    font-weight: normal;
    font-size: 0.9rem;
    line-height: 1.5;
    font-family: 'Share Tech Cyr', var(--main-font);
}

.glossary-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.glossary-term:hover .glossary-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

.glossary-more {
    display: block;
    margin-top: 10px;
    text-align: right;
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.glossary-more:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Адаптивні стилі для підказок на мобільних пристроях */
@media (max-width: 768px) {
    .glossary-tooltip {
        width: 250px;
    }
    
    .telegram-link {
        font-size: 0.85rem;
        padding: 7px 12px;
    }
    
    .telegram-link i {
        font-size: 1.1rem;
    }
    
    .alphabet-item {
        width: 35px;
        height: 35px;
        margin: 3px;
    }
}

@media (max-width: 576px) {
    .glossary-tooltip {
        width: 200px;
        left: 0;
        transform: translateX(0);
    }
    
    .glossary-term:hover .glossary-tooltip {
        transform: translateX(0) translateY(-10px);
    }
    
    .glossary-tooltip::after {
        left: 20px;
    }
    
    .alphabet-item {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
}

/* Виправлення для фінансового словника */
.glossary-section {
    padding-top: 40px;
}

.glossary-letter {
    scroll-margin-top: 100px; /* Забезпечує відступ при прокрутці до секції */
}

.letter-heading {
    font-size: 2.5rem;
    color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-family: 'Share Tech Cyr', var(--main-font);
    font-weight: 700;
}

/* Кнопка повернутися вгору */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}
/* 
 * Додаткові стилі для оновлення сайту КУА "Комплексний фінансовий сервіс"
 * Містить виправлення для розташування кнопки телеграм
 * та інших стильових елементів
 */

/* Стилі для обгортки заголовка аналітики з кнопкою телеграм */
.analytics-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    text-align: center;
}

.analytics-header .section-title {
    margin-bottom: 15px;
}

/* Стилі для кнопки телеграм біля заголовка аналітики */
.telegram-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #27a7e7;
    color: white;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 5px;
    transition: all 0.3s;
    font-family: 'Share Tech Cyr', var(--main-font);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.telegram-link i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.telegram-link:hover {
    background-color: #0088cc;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 136, 204, 0.3);
}

/* Адаптивні стилі для підказок на мобільних пристроях */
@media (max-width: 768px) {
    .glossary-tooltip {
        width: 250px;
    }
    
    .telegram-link {
        font-size: 0.85rem;
        padding: 7px 12px;
    }
    
    .telegram-link i {
        font-size: 1.1rem;
    }
    
    .alphabet-item {
        width: 35px;
        height: 35px;
        margin: 3px;
    }
}

@media (max-width: 576px) {
    .glossary-tooltip {
        width: 200px;
        left: 0;
        transform: translateX(0);
    }
    
    .glossary-term:hover .glossary-tooltip {
        transform: translateX(0) translateY(-10px);
    }
    
    .glossary-tooltip::after {
        left: 20px;
    }
    
    .alphabet-item {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
}

/* Enhanced Styles for "Фонди в управлінні" Section */

/* Container for fund cards */
.funds-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); /* Min card width for responsiveness */
    gap: 25px; /* Space between cards */
    padding-top: 10px; 
}

/* Individual fund card */
.fund-card {
    background-color: #ffffff;
    border: 1px solid #e9eef2; 
    border-radius: 12px; 
    padding: 20px 25px; 
    box-shadow: 0 4px 12px rgba(0, 59, 113, 0.06); 
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    height: 100%; 
}

.fund-card:hover {
    transform: translateY(-5px) scale(1.01); 
    box-shadow: 0 7px 20px rgba(0, 59, 113, 0.1); 
}

/* Header of the fund card */
.fund-card-header {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f4f8; 
}

.fund-card-name {
    font-size: 1.25rem; 
    font-weight: 600;   
    color: var(--primary-color); 
    margin: 0 0 4px 0;
    line-height: 1.3;
    word-break: break-word; 
}

.fund-card-type {
    font-size: 0.8rem; 
    color: #6b7280;    
    display: block;
    font-style: normal; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}

/* Body of the fund card (contains info items) */
.fund-card-body {
    flex-grow: 1; 
    margin-bottom: 20px;
}

.fund-card-info {
    display: flex;
    flex-direction: column;
    gap: 12px; 
}

.fund-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem; /* ЗБІЛЬШЕНО РОЗМІР ШРИФТУ ДЛЯ ДЕТАЛЕЙ */
    line-height: 1.6;
}

.fund-info-label {
    font-weight: 500; 
    color: var(--secondary-color); 
    margin-right: 10px; 
    white-space: nowrap; 
}

.fund-info-value {
    font-weight: 500; 
    color: var(--text-color); 
    text-align: right;
    white-space: nowrap; 
}

/* Footer of the fund card (for the details link) */
.fund-card-footer {
    margin-top: auto; 
    padding-top: 15px; 
    text-align: left; 
}

.fund-card-details-link {
    display: inline-block;
    padding: 10px 20px; 
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    border-radius: 8px; 
    text-decoration: none;
    font-weight: 500; 
    font-size: 0.9rem;
    transition: background-color 0.25s ease, transform 0.2s ease;
    border: 1px solid transparent; 
}

.fund-card-details-link:hover,
.fund-card-details-link:focus {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    outline: none; 
}

.fund-card-no-details {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
    padding: 10px 0; 
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .funds-container {
        grid-template-columns: 1fr; 
        gap: 20px;
    }

    .fund-card-name {
        font-size: 1.15rem;
    }

    .fund-info-item {
        font-size: 0.9rem; 
    }
    .fund-card-details-link {
        width: 100%; 
        text-align: center;
    }
}

@media (max-width: 400px) {
    .fund-card {
        padding: 20px;
    }
     .fund-info-item {
        flex-direction: column; 
        align-items: flex-start;
    }
    .fund-info-value {
        text-align: left;
        margin-top: 2px; 
    }
}
