@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #1A7A65;
    --text-color: #FCF0DE;
    --accent-color: #EBDC86;
    --line-color: #F2DBDB;
    --card-color: #378876;
    --border-color: #599B87;
    --header-height: 126px;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

/* --- Фонові картинки --- */
.bg-decor {
    position: fixed;
    z-index: -1;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    /* Додаємо прозорість, щоб не заважали читати текст на малих екранах */
    opacity: 0.6; 
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--bg-color);
    border-bottom: 1.93px solid var(--line-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Змінюємо фіксовані 100px на відсотки для адаптивності */
    padding: 0 5%; 
    box-sizing: border-box;
    z-index: 1000;
    transition: top 0.4s ease-in-out;
}

header.hidden {
    top: calc(var(--header-height) * -1);
}

.header-logo {
    width: 121px;
    height: 121px;
    /* background: #ccc;  <--- ВИДАЛЯЄМО АБО КОМЕНТУЄМО ЦЕЙ РЯДОК */
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Додаємо стилі для самого посилання та картинки */
.header-logo .logo-link {
    display: block;
    width: 100%;
    height: 100%;
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Картинка заповнить все коло без спотворень */
    display: block;
}

/* Меню навігації (Desktop) */
.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 26px;
    letter-spacing: 0.02em;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    cursor: pointer;
    white-space: nowrap; /* Щоб текст не переносився */
}

/* Випадаюче меню */
.dropdown-parent {
    position: relative; /* Це виправить положення випадайки */
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; 
    left: 0;
    background-color: var(--card-color);
    min-width: 250px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 100;
    border-radius: 10px;
    padding: 10px 0;
    /* ВИПРАВЛЕННЯ: прибираємо margin-top, який створював "дірку", через яку зникав ховер */
    margin-top: 0; 
    /* Додаємо прозорий бордер зверху, щоб візуально відсунути, але зберегти контакт миші */
    border-top: 15px solid transparent; 
    background-clip: padding-box; /* Щоб фон не залазив на прозорий бордер */
}

@media (min-width: 1025px) {
    .dropdown-parent:hover .dropdown-content {
        display: block;
    }
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 18px;
}

.dropdown-content a:hover {
    background-color: rgba(255,255,255,0.1);
}

.btn-contact {
    font-family: 'Roboto', sans-serif;
    font-size: 26px;
    color: var(--accent-color);
    text-decoration: none;
    padding: 10px 30px;
    border: 1.17px solid var(--accent-color);
    border-radius: 27px;
    background: transparent;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-contact:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

.mobile-contact-btn {
    display: none;
}

/* Бургер-кнопка */
.burger-btn {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001; /* Поверх меню */
    padding: 0;
}

/* Рисочки бургера */
.burger-btn span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-color);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

/* Позиції рисочок у закритому стані */
.burger-btn span:nth-child(1) { top: 0px; }
.burger-btn span:nth-child(2) { top: 10px; }
.burger-btn span:nth-child(3) { top: 20px; }

/* Анімація перетворення на хрестик (коли додано клас .open) */
.burger-btn.open span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}
.burger-btn.open span:nth-child(2) {
    opacity: 0;
    left: -60px; /* Виїжджає вбік */
}
.burger-btn.open span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* --- 1.2.2 МОБІЛЬНІ КАРТИНКИ В ПОСТАХ (Фікс) --- */
@media (max-width: 768px) {
    .editor-image-wrapper {
        float: none !important;
        width: 100% !important;
        margin: 0 0 20px 0 !important;
        display: block !important;
        text-align: center; /* Центруємо сам блок */
    }
    .editor-image-wrapper img {
        margin: 0 auto; /* Центруємо картинку */
    }
}

/* --- 1.2.1 МОБІЛЬНЕ МЕНЮ (Фікс випадайки) --- */
@media (max-width: 1024px) {
    /* ... твої існуючі стилі для nav-menu ... */

    .dropdown-content {
        display: none; /* Ховаємо за замовчуванням */
        position: static;
        background: rgba(0,0,0,0.1); /* Трохи виділяємо фон */
        box-shadow: none;
        padding: 0;
        margin-top: 10px;
        border-top: none;
    }
    
    /* Клас для відкриття через JS */
    .dropdown-parent.active-dropdown .dropdown-content {
        display: block;
        animation: fadeIn 0.3s;
    }
    
    /* Стрілочка повертається при відкритті */
    .dropdown-parent.active-dropdown .nav-link::after { 
        transform: rotate(180deg); 
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- MAIN CONTAINER --- */
.container {
    width: 100%; /* На всю ширину */
    max-width: 1920px; /* Обмеження для величезних екранів */
    margin: 0 auto;
    
    /* ТІ САМІ 100px ВІДСТУПУ З ТЗ */
    padding: 0 100px; 
    box-sizing: border-box; /* Щоб відступ не розширював блок */
    
    margin-top: calc(var(--header-height) + 80px);
    position: relative;
    z-index: 1;
}

/* АДАПТИВ (не забуваємо про телефони) */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px; /* На планшетах/телефонах менше */
        margin-top: 120px;
    }
}

/* --- СЕКЦІЇ --- */
section {
    margin-bottom: 80px;
    position: relative;
}

.section-divider {
    height: 5px;
    background-color: var(--border-color);
    width: 100%;
    margin-top: 80px;
    border: none;
}

/* Секція 1: Місія */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5%; /* Відсоток замість пікселів */
    align-items: center;
}

/* Адаптивний шрифт через clamp(мінімум, бажане, максимум) */
.mission-title {
    font-size: clamp(40px, 5vw, 90px); 
    font-weight: 400;
    letter-spacing: -0.02em;
    margin: 0 0 24px 0;
    line-height: 1.1;
}

.mission-subtitle {
    font-size: clamp(18px, 1.5vw, 26px);
    margin: 0 0 24px 0;
    line-height: 1.4;
}

.mission-img {
    width: 100%; /* Гумова ширина */
    max-width: 495px; /* Не більше оригіналу */
    height: auto;
    aspect-ratio: 495/548;
    background-color: #ccc;
    object-fit: cover;
    border-radius: 20px;
    justify-self: center;
}

/* Секція 2: Проєкти */
.section-title {
    font-size: clamp(32px, 3vw, 43px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}
.align-left { text-align: left; }

.section-desc {
    font-size: clamp(18px, 1.5vw, 26px);
    text-align: center;
    margin-bottom: 35px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.desc-left { text-align: left; margin-left: 0; }

.projects-layout {
    display: flex;
    gap: 40px;
    /* Видалено align-items: flex-start; 
       Тепер сайдбар буде розтягуватись на всю висоту контенту карток, 
       що дасть простір для скролу прилипаючого блоку (sticky). */
}

.projects-main {
    flex: 1;
    min-width: 0;
    order: 2; /* Переміщує контент з картками праворуч */
}

.projects-sidebar {
    width: 280px; /* Трохи зменшили ширину сайдбару для економії місця */
    flex-shrink: 0;
    order: 1; /* Переміщує сайдбар ліворуч */
}

.sidebar-sticky {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    background: var(--card-color);
    padding: 25px;
    border-radius: 21px;
    box-sizing: border-box;
}

.sidebar-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    color: var(--text-color);
}

.category-filter {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-filter a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    display: block;
    transition: 0.3s;
    opacity: 0.7;
}

.category-filter a:hover, .category-filter a.active {
    opacity: 1;
    color: var(--accent-color);
    transform: translateX(5px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Автоматична сітка */
    gap: 20px; /* Зменшена відстань між картками */
    width: 100%;
}

.project-card {
    width: 100%; /* Тепер ширина гнучка і залежить від сітки */
    max-width: 100%;
    height: 420px;
    background-color: var(--card-color);
    border-radius: 21px;
    padding: 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Адаптив для сторінки з сайдбаром */
@media (max-width: 1024px) {
    .projects-layout {
        flex-direction: column-reverse; /* Сайдбар переходить наверх на телефонах */
    }
    .projects-sidebar {
        width: 100%;
    }
    .sidebar-sticky {
        position: static;
    }
    .projects-grid {
        justify-content: center;
    }
}

.project-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 13px;
    background-color: #222;
}

.project-content {
    padding: 14px 14px 0 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.project-excerpt {
    font-size: 16px;
    font-weight: 300;
    opacity: 0.9;
    margin: 0 0 20px 0;
}

.project-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 15px;
}

.arrow-icon {
    font-size: 24px;
    transform: rotate(-45deg);
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Секція 3: Натхнення */
.inspiration-text {
    font-size: clamp(24px, 2vw, 34px);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.5;
    white-space: pre-line;
}

/* Секція 4: Команда */
.team-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.team-card {
    width: 270px;
    height: 390px;
    background-color: var(--card-color);
    border-radius: 21px;
    overflow: hidden;
}

.team-img {
    width: 270px;
    height: 270px;
    object-fit: cover;
    margin-bottom: 8px;
    background-color: #222;
}

.team-info {
    padding-left: 10px;
    padding-bottom: 15px; /* Додаткове повітря знизу */
    margin-top: auto; /* Притискаємо до низу, якщо картинка менша */
}
.team-name { font-size: 16px; font-weight: 600; margin: 0 0 5px 0; }
.team-role { font-size: 16px; font-weight: 300; }

/* Секція 5: Мапа */
.map-placeholder {
    width: 100%; /* Адаптивна ширина */
    max-width: 930px; /* Максимальна ширина як в дизайні */
    aspect-ratio: 930/557; /* Зберігаємо пропорції при зменшенні */
    height: auto;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
}

/* Footer */
footer {
    background: rgba(0,0,0,0.2);
    padding: 50px 5%;
    text-align: center;
    border-top: 5px solid var(--border-color);
}

/* --- АДАПТИВ ДЛЯ МОБІЛЬНИХ (Бургер меню) --- */
@media (max-width: 1024px) {
    header {
        height: 80px;
        padding: 0 20px;
        /* Логотип справа, бургер зліва (order) */
        flex-direction: row-reverse; 
        justify-content: space-between;
    }

    .header-logo {
        width: 60px;
        height: 60px;
    }

    /* Показуємо бургер */
    .burger-btn {
        display: block;
        order: 1; /* Кнопка зліва */
    }

    /* Ховаємо звичайне меню і перетворюємо його на шторку */
    .nav-menu {
        position: fixed;
        top: 80px; /* Висота хедера */
        left: -100%; /* Ховаємо за екран */
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 40px;
        transition: 0.3s ease-in-out;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0; /* Виїжджає */
    }

    .nav-link {
        font-size: 24px;
        padding: 15px;
        width: 100%;
        text-align: center;
    }
    
    .dropdown-parent {
        flex-direction: column;
        height: auto;
    }
    
    .dropdown-content {
        position: static; /* На мобільному просто список знизу */
        background: transparent;
        box-shadow: none;
        padding-left: 20px;
        text-align: center;
    }

    .btn-contact {
        /* Кнопка зв'язку теж йде в мобільне меню */
        display: none; 
    }
    
    /* Окрема кнопка зв'язку для мобільного меню */
    .nav-menu .mobile-contact-btn {
        display: block; /* ТУТ ВОНА СТАЄ ВИДИМОЮ */
        margin-top: 20px;
        font-size: 20px;
        color: var(--accent-color);
        border: 1px solid var(--accent-color);
        padding: 10px 30px;
        border-radius: 27px;
        text-decoration: none;
    }

    /* Адаптив контенту */
    .container { margin-top: 120px; }
    .mission-grid { grid-template-columns: 1fr; text-align: center; }
    .mission-img { margin-top: 30px; }
    .align-left, .desc-left { text-align: center; }
    
    /* На мобільному прибираємо blobs, бо вони заважають */
    .bg-decor { display: none; }
}

/* --- СТИЛІ ДЛЯ КОНТЕНТУ ПУБЛІКАЦІЙ --- */

/* 1. Ховаємо технічні елементи редактора на публічному сайті */
.img-controls, 
.resize-handle {
    display: none !important;
}

/* 2. Базовий стиль обгортки картинки */
.editor-image-wrapper {
    max-width: 100%;
    margin-bottom: 15px;
    position: relative;
    /* Важливо: clear: both тут НЕ треба, інакше обтікання не спрацює */
}

/* 3. Адаптивність зображень всередині */
.editor-image-wrapper img {
    width: 100%; /* Картинка завжди заповнює свою обгортку */
    height: auto;
    border-radius: 12px;
}

/* 4. Виправляємо баг, коли текст "прилипає" до картинки */
/* Якщо картинка зліва */
.editor-image-wrapper[style*="float: left"] {
    margin-right: 20px !important;
    margin-bottom: 15px !important;
}

/* Якщо картинка справа */
.editor-image-wrapper[style*="float: right"] {
    margin-left: 20px !important;
    margin-bottom: 15px !important;
}

/* 5. FIX для мобілок: на телефоні скасовуємо обтікання, 
   щоб текст не ставав вузенькою смужкою збоку */
@media (max-width: 768px) {
    .editor-image-wrapper {
        float: none !important;
        width: 100% !important;
        margin: 0 0 20px 0 !important;
        display: block !important;
    }
}

.horizontal-scroll-container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 20px; /* Місце для скролбару */
    -webkit-overflow-scrolling: touch; /* Плавність на мобілках */
}

.horizontal-scroll-wrapper {
    display: flex;
    gap: 30px;
    width: max-content; /* Розтягується по вмісту */
    padding: 0 5px; /* Щоб тіні не обрізалися */
}

.horizontal-scroll-wrapper .project-card {
    /* Картка не стискається */
    flex: 0 0 348px;
}

/* --- СТИЛІ ДЛЯ ПАГІНАЦІЇ (Номери сторінок) --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}
.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    text-decoration: none;
    transition: 0.3s;
}
.page-link:hover, .page-link.active {
    background: var(--text-color);
    color: var(--bg-color);
}

/* --- СТИЛІ ДЛЯ РОЗДІЛУ "ПРО НАС" --- */

/* Типографіка за ТЗ */
.page-heading {
    font-family: 'Roboto', sans-serif;
    font-size: 43px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #FCF0DE;
    text-align: left;
    margin: 0;
    line-height: 1.2;
}

.page-text {
    font-family: 'Roboto', sans-serif;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #FCF0DE;
    text-align: left;
    margin: 0;
    line-height: 1.5;
}

/* Відступи (Utility classes для зручності копіювання) */
.mb-30 { margin-bottom: 30px; }
.mb-48 { margin-bottom: 48px; }
.mb-80 { margin-bottom: 80px; }

/* Стилізований список для Бенефіціарів */
.custom-list {
    list-style: none; /* Прибираємо стандартні точки */
    padding: 0;
    margin: 0;
}

.custom-list li {
    position: relative;
    padding-left: 35px; /* Місце для символу */
    margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #FCF0DE;
}

/* Символ буліта (Ромб) */
.custom-list li::before {
    content: '❖'; 
    color: #EBDC86; /* Акцентний колір */
    position: absolute;
    left: 0;
    top: 5px; /* Трохи рівняємо по висоті тексту */
    font-size: 20px;
}

/* Для партнерів */
.partner-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.partner-logo {
    height: 113px;
    width: auto; /* Ширина підлаштується пропорційно */
    object-fit: contain;
    margin-bottom: 30px;
}

/* Адаптив для мобілок (зменшуємо шрифт, бо 43px забагато) */
@media (max-width: 768px) {
    .page-heading { font-size: 32px; }
    .page-text, .custom-list li { font-size: 18px; }
    .partner-logo { height: 80px; }
}

/* --- ВІДЖЕТ МОВИ --- */
.lang-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(26, 122, 101, 0.9); /* Основний зелений колір + прозорість */
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 50px; /* Овальна форма */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.lang-widget:hover {
    transform: translateY(-5px); /* Легке підняття при наведенні */
}

.lang-options {
    display: flex;
    gap: 15px;
}

.lang-btn {
    text-decoration: none;
    font-size: 24px; /* Розмір прапорців */
    transition: 0.2s;
    opacity: 0.6;
    filter: grayscale(0.8); /* Чорно-білі, якщо не активні */
}

.lang-btn:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.2);
}

.lang-btn.active {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.1);
    position: relative;
}

/* Крапочка під активною мовою */
.lang-btn.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #EBDC86; /* Акцентний жовтий */
    border-radius: 50%;
}

.close-widget {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    margin-right: 5px;
    border-right: 1px solid rgba(255,255,255,0.2);
    padding-right: 10px;
    height: 24px;
}

.close-widget:hover {
    color: white;
}

/* Адаптив: на мобільному можна зробити трохи менше */
@media (max-width: 768px) {
    .lang-widget {
        bottom: 10px;
        left: 10px;
        padding: 8px 12px;
    }
    .lang-btn {
        font-size: 20px;
    }
}

/* --- СТОРІНКА КОНТАКТІВ --- */

/* Контейнер форми */
.contact-wrapper {
    max-width: 800px;
    margin: 0 auto 80px auto;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Стилізація полів вводу під бренд */
.contact-input, .contact-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.1); /* Прозорий фон */
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    color: var(--text-color);
    box-sizing: border-box;
    outline: none;
    transition: 0.3s;
}

.contact-input:focus, .contact-textarea:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
}

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

.contact-label {
    font-size: 16px;
    margin-bottom: 8px;
    opacity: 0.8;
}

/* Кнопка відправки */
.btn-submit {
    background-color: var(--accent-color);
    color: var(--bg-color);
    font-size: 20px;
    font-weight: 700;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(235, 220, 134, 0.5);
}

/* Секція іконок (Bottom Info) */
.contact-info-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 80px;
    border-top: 1px solid var(--line-color);
    padding-top: 50px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 200px;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--card-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 24px;
}

/* SVG іконки будуть білими */
.info-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--text-color);
}

.info-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 16px;
    opacity: 0.8;
    text-decoration: none;
    color: var(--text-color);
}

/* Адаптив */
@media (max-width: 768px) {
    .form-row { flex-direction: column; gap: 20px; }
    .contact-info-grid { gap: 30px; }
}

/* --- ПОЛІТИКИ (Меморандуми) --- */

.memos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.memo-card {
    background: var(--card-color);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.memo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-color: var(--accent-color);
}

.memo-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.memo-title {
    font-family: 'Roboto', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
}

/* --- LIGHTBOX (Галерея) --- */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none; /* Сховано за замовчуванням */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.lightbox.active { display: flex; }

.lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-controls {
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    pointer-events: none; /* Щоб кліки проходили крізь контейнер */
}

.lightbox-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    width: 50px; height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    pointer-events: all; /* Вмикаємо кліки для кнопок */
    transition: 0.2s;
    display: flex; align-items: center; justify-content: center;
}

.lightbox-btn:hover { background: var(--accent-color); color: var(--bg-color); border-color: var(--accent-color); }

.lightbox-close {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none;
    color: white; font-size: 40px;
    cursor: pointer; z-index: 10001;
}

.lightbox-counter {
    margin-top: 15px;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    opacity: 0.7;
}

/* --- СТОРІНКА-ХАБ "ПРО НАС" --- */

.about-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 рівні колонки */
    gap: 30px;
    margin: 0 auto;
    margin-bottom: 80px;
    max-width: 1000px; /* Обмежуємо ширину, щоб 3 картки були по центру */
    justify-items: center;
}

/* 2. СТИЛЬ ДЛЯ ШИРОКИХ ЕКРАНІВ (від 1401px)
   Розтягуємо на 5 колонок в один ряд. */
@media (min-width: 1401px) {
    .about-hub-grid {
        grid-template-columns: repeat(5, 1fr); /* 5 колонок */
        max-width: 100%; /* На всю ширину контейнера */
        gap: 20px;
    }
}

/* 3. СТИЛЬ ДЛЯ ПЛАНШЕТІВ (до 1024px)
   Переходимо на 2 колонки. */
@media (max-width: 1024px) {
    .about-hub-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
}

/* 4. СТИЛЬ ДЛЯ МОБІЛЬНИХ (до 600px)
   Одна колонка на всю ширину. */
@media (max-width: 600px) {
    .about-hub-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .about-nav-card {
        max-width: 100%; /* Картка займає все місце */
    }
}

.about-nav-card {
    width: 100%;
    max-width: 320px; /* Оптимальна ширина картки */
    background-color: var(--card-color);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    box-sizing: border-box; /* Важливо, щоб padding не ламав сітку */
}

.about-nav-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    border-color: var(--accent-color);
    background-color: rgba(26, 60, 50, 0.8);
}

.nav-card-icon {
    margin-bottom: 20px;
    transition: transform 0.3s;
    /* Видаляємо font-size, бо для SVG він не треба */
    display: flex;
    justify-content: center;
}

/* Стилі самих SVG */
.nav-card-icon svg {
    width: 64px; /* Розмір іконки */
    height: 64px;
    fill: #FCF0DE; /* Наш фірмовий бежевий колір */
    transition: fill 0.3s ease;
}

/* При наведенні на картку - фарбуємо іконку в жовтий */
.about-nav-card:hover .nav-card-icon svg {
    fill: #EBDC86; 
}

/* Ефект збільшення залишається */
.about-nav-card:hover .nav-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.about-nav-card:hover .nav-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.nav-card-title {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #FCF0DE;
}

.nav-card-desc {
    font-size: 16px;
    opacity: 0.7;
    line-height: 1.4;
    color: #FCF0DE;
}

/* --- ФІКС КАРТИНОК В ПОСТАХ ДЛЯ МОБІЛЬНИХ --- */
@media (max-width: 768px) {
    /* Скидаємо обтікання для обгортки картинки */
    .editor-image-wrapper {
        float: none !important;         /* Скасовуємо float:left/right */
        width: 100% !important;         /* Розтягуємо блок на всю ширину */
        margin: 20px 0 !important;      /* Відступ зверху і знизу, збоку 0 */
        display: block !important;      /* Робимо блоковим елементом */
        text-align: center !important;  /* Центруємо картинку всередині */
        height: auto !important;        /* Скидаємо фіксовану висоту, якщо є */
    }

    /* Стилі для самої картинки */
    .editor-image-wrapper img {
        max-width: 100% !important;     /* Картинка не ширша за екран */
        height: auto !important;        /* Пропорційна висота */
        display: inline-block !important;
    }
}