/* ======== 0. GLOBAL STYLES ======== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;700&family=Poppins:wght@600;700&display=swap');

/* CSS Variables */
:root {
    --primary-color: #005A9C;
    --secondary-color: #1DE9B6;
    --bg-dark: #222831;
    --bg-light: #F9F9F9;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --text-muted: #6c757d;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Nunito Sans', sans-serif;
    --container-width: 1200px;
    --container-padding: 20px;
    --border-radius: 8px;
    --transition-speed: 0.3s ease;
}

/* Base Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-speed);
}

.btn--primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn--primary:hover {
    background-color: #004a80; /* Darker primary */
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 90, 156, 0.3);
}

/* ======== 1. HEADER ======== */
.header {
    background-color: var(--text-light);
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.logo__svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary-color);
    stroke-width: 2.5;
}

.logo:hover .logo__text {
    color: var(--primary-color);
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header__nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    position: relative;
    padding: 0.5rem;
}

.header__nav-link:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed);
}

.header__nav-link:not(.btn):hover::after {
    width: 100%;
}

.header__nav-link:not(.btn):hover {
    color: var(--primary-color);
}

.header__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}

.header__burger i {
    width: 28px;
    height: 28px;
}

/* ======== 1.1 MOBILE MENU ======== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Start off-screen */
    width: min(80%, 300px);
    height: 100vh;
    background-color: var(--text-light);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1002;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.mobile-menu--open {
    right: 0;
}

.mobile-menu__header {
    display: flex;
    justify-content: flex-end;
    padding: 1.5rem var(--container-padding);
}

.mobile-menu__close {
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu__close i {
    width: 28px;
    height: 28px;
    color: var(--text-dark);
}

.mobile-menu__nav-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem var(--container-padding);
}

.mobile-menu__nav-link {
    display: block;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    color: var(--text-dark);
    padding: 0.5rem;
}
.mobile-menu__nav-link.btn {
    text-align: center;
    margin-top: 1rem;
}

.mobile-menu__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.4);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed), visibility var(--transition-speed);
}

.mobile-menu__overlay--open {
    opacity: 1;
    visibility: visible;
}


/* ======== 2. FOOTER ======== */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer__container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
}

.footer__col--logo .logo__text {
    color: var(--text-light);
}
.footer__col--logo .logo__svg {
    stroke: var(--text-light);
}

.footer__copyright {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer__link:hover {
    color: var(--text-light);
    text-decoration: underline;
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer__contact-icon {
    width: 20px;
    height: 20px;
    color: var(--secondary-color);
    flex-shrink: 0;
}

/* ======== 9. RESPONSIVE ======== */

/* Tablet */
@media (max-width: 992px) {
    .header__nav {
        display: none;
    }
    .header__burger {
        display: block;
    }

    .footer__container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer__col--logo {
        grid-column: 1 / 3; /* Span full width */
    }
}

/* Mobile */
@media (max-width: 576px) {
    .footer__container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer__col--logo {
        grid-column: auto;
    }
    
    .btn {
        width: 100%;
    }
    
    .header__nav-link.btn {
        display: none; /* Hide button in desktop nav on mobile */
    }
}

/* ======== 3. HERO SECTION ======== */

/* Анімація появи елементів */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    padding: 4rem 0;
    /* Чистий фон для першого екрану */
    background-color: var(--text-light); 
    overflow: hidden; /* Важливо для анімацій */
}

.hero__container {
    display: flex;
    flex-direction: column; /* Mobile-first: контент зверху, картинка знизу */
    align-items: center;
    gap: 2rem;
}

.hero__content {
    text-align: center; /* Mobile-first: центруємо текст */
}

/* Приміняємо анімацію до дочірніх елементів */
.hero__subtitle,
.hero__title,
.hero__description,
.hero__actions,
.hero__image-wrapper {
    opacity: 0; /* Початковий стан - прозорий */
    animation: fadeInSlideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero__subtitle {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    animation-delay: 0.1s; /* Затримка для послідовної появи */
}

.hero__title {
    font-size: 1.5rem; /* Розмір для мобільних */
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    animation-delay: 0.3s;
}

.hero__description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    animation-delay: 0.5s;
}

.hero__actions {
    display: flex;
    flex-direction: column; /* Кнопки одна під одною на мобільних */
    gap: 1rem;
    justify-content: center;
    animation-delay: 0.7s;
}

/* Стиль для другорядної кнопки */
.btn--secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: all var(--transition-speed);
}

.btn--secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 90, 156, 0.3);
}

.hero__image-wrapper {
    width: 100%;
    max-width: 500px;
    animation-delay: 0.5s;
}

.hero__image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}


/* Адаптація для планшетів та десктопів */
@media (min-width: 768px) {
    .hero {
        padding: 6rem 0; /* Більше "повітря" на великих екранах */
    }

    .hero__container {
        flex-direction: row; /* Дві колонки */
        text-align: left;
        gap: 3rem;
    }

    .hero__content {
        flex: 1 1 55%; /* Контент займає 55% */
        text-align: left;
    }
    
    .hero__image-wrapper {
        flex: 1 1 45%; /* Картинка займає 45% */
        max-width: none;
    }

    .hero__title {
        font-size: 2.5rem; /* Більший заголовок на десктопі */
    }
    
    .hero__description {
        margin-left: 0;
        margin-right: 0;
    }

    .hero__actions {
        flex-direction: row; /* Кнопки в ряд */
    }
    
    .btn {
        width: auto; /* Скидаємо 100% ширину з мобільної версії */
    }
}

/* ======== 4. SERVICES SECTION ======== */

.services {
    padding: 5rem 0;
    background-color: var(--bg-light); /* Чергуємо фон (Hero був білий) */
}

/* Загальний клас для заголовків секцій */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header__subtitle {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.section-header__title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.section-header__description {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.services__grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 колонка на мобільних */
    gap: 1.5rem;
}

.service-card {
    background-color: var(--text-light);
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

.service-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-card__icon i {
    width: 28px;
    height: 28px;
}

.service-card__title {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.service-card__description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Адаптація для планшетів та десктопів */
@media (min-width: 768px) {
    .services__grid {
        grid-template-columns: repeat(3, 1fr); /* 3 колонки */
        gap: 2rem;
    }

    .section-header__title {
        font-size: 2.8rem;
    }
}

/* ======== 5. SCROLL ANIMATION ======== */

/*
  Стилі для анімації при прокрутці.
  Елементи сховані за замовчуванням.
*/
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/*
  Клас .is-visible додається через JS,
  коли елемент з'являється у зоні видимості.
*/
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Додаємо затримку для карток, 
  щоб вони з'являлись одна за одною 
*/
.service-card.animate-on-scroll:nth-child(1) {
    transition-delay: 0.1s;
}
.service-card.animate-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}
.service-card.animate-on-scroll:nth-child(3) {
    transition-delay: 0.3s;
}

.services__header.animate-on-scroll {
     transition-delay: 0s;
}

/* ======== 5. ABOUT SECTION ======== */

.about {
    padding: 5rem 0;
    background-color: var(--text-light); /* Чергуємо фон */
}

.about__container {
    display: flex;
    flex-direction: column; /* Mobile-first */
    align-items: center;
    gap: 3rem;
}

.about__image-wrapper {
    width: 100%;
    max-width: 400px;
}

.about__image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about__content {
    text-align: left; /* Завжди зліва, навіть на мобільних */
}

/* Робимо, щоб заголовок був ліворуч, а не по центру */
.about__title.section-header__title {
    text-align: left;
    font-size: 2.5rem; /* Трохи менше, ніж у Services */
}

/* Скидаємо відступи для вбудованих елементів */
.about__content .section-header__subtitle,
.about__content .about__title {
    margin-left: 0;
    margin-right: 0;
}

.about__description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.about__highlight {
    font-weight: 700;
    color: var(--primary-color);
}

.about__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.about__list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.about__list-icon {
    width: 22px;
    height: 22px;
    color: var(--secondary-color);
    flex-shrink: 0;
}

/* Адаптація для планшетів та десктопів */
@media (min-width: 768px) {
    .about__container {
        flex-direction: row; /* Дві колонки */
        gap: 4rem;
    }

    .about__image-wrapper {
        flex: 0 0 40%; /* Фіксована ширина для фото */
        max-width: none;
    }

    .about__content {
        flex: 1 1 60%; /* Контент займає решту */
    }
    
    .about__title.section-header__title {
        font-size: 2.8rem;
    }
}

/* ======== 6. BLOG SECTION ======== */

.blog {
    padding: 5rem 0;
    background-color: var(--bg-light); /* Чергуємо фон */
}

.blog__grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 колонка на мобільних */
    gap: 2rem;
}

.blog-card {
    background-color: var(--text-light);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* Обрізає кути у зображення */
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 90, 156, 0.1);
}

.blog-card__image-wrapper {
    position: relative;
    width: 100%;
    /* Співвідношення сторін 16:9 */
    padding-top: 56.25%; 
}

.blog-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Картинка заповнює простір */
    transition: transform var(--transition-speed);
}

.blog-card:hover .blog-card__image {
    transform: scale(1.05);
}

.blog-card__category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.blog-card__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Контент займає весь доступний простір */
}

.blog-card__meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.blog-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.blog-card__title a {
    color: var(--text-dark);
    text-decoration: none;
}

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

.blog-card__excerpt {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    /* Залишаємо місце для кнопки */
    flex-grow: 1; 
}

.blog-card__readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.blog-card__readmore:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.blog-card__readmore-icon {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-speed);
}

.blog-card__readmore:hover .blog-card__readmore-icon {
    transform: translateX(4px);
}

/* Адаптація для планшетів та десктопів */
@media (min-width: 768px) {
    .blog__grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки */
    }
}

@media (min-width: 992px) {
    .blog__grid {
        grid-template-columns: repeat(3, 1fr); /* 3 колонки */
    }
}

/* ======== 7. REVIEWS SECTION ======== */

.reviews {
    padding: 5rem 0;
    background-color: var(--text-light); /* Чергуємо фон */
}

/* Обмежуємо ширину контейнера для кращої читабельності відгуків */
.reviews__container {
    max-width: 900px; 
    position: relative;
}

.reviews__header {
    margin-bottom: 3rem;
}

.reviews__slider {
    /* Залишаємо місце для кнопок навігації з боків */
    padding: 0 40px; 
}

.review-card {
    background-color: #ffffff;
    /* Тінь для ефекту "картки" */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); 
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    /* Висота для всіх карток однакова */
    height: 100%; 
    display: flex;
    flex-direction: column;
}

.review-card__icon {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.review-card__icon i {
    width: 32px;
    height: 32px;
}

.review-card__text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    /* Для вирівнювання кнопки "вниз" */
    flex-grow: 1; 
}

.review-card__author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.review-card__author-role {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Стилізація навігації Swiper */
.reviews__nav {
    color: var(--primary-color);
    width: 44px !important;
    height: 44px !important;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.reviews__nav:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.reviews__nav::after {
    display: none; /* Ховаємо стандартні стрілки Swiper */
}

.reviews__nav i {
    width: 24px;
    height: 24px;
}

.reviews__nav--prev {
    left: 0 !important;
}
.reviews__nav--next {
    right: 0 !important;
}

/* Стилізація пагінації (крапок) Swiper */
.reviews__pagination .swiper-pagination-bullet {
    background-color: var(--text-muted);
    width: 10px;
    height: 10px;
    opacity: 0.7;
    transition: all var(--transition-speed);
}

.reviews__pagination .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
    transform: scale(1.2);
    opacity: 1;
}

/* Адаптація для мобільних (зменшуємо відступи слайдера) */
@media (max-width: 576px) {
    .reviews__slider {
        padding: 0; /* Без відступів з боків */
    }
    
    .reviews__nav {
        display: none !important; /* Ховаємо стрілки, залишаємо крапки */
    }
}

/* ======== 8. CONTACT SECTION ======== */

.contact {
    padding: 5rem 0;
    background-color: var(--bg-light); /* Чергуємо фон */
}

.contact__container {
    display: flex;
    flex-direction: column; /* Mobile-first */
    gap: 3rem;
}

.contact__content {
    /* Використовуємо стилі з секції "About" */
    flex: 1 1 45%;
}

.contact__form-wrapper {
    flex: 1 1 55%;
    background-color: var(--text-light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group__label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-group__input-wrapper {
    position: relative;
}

.form-group__icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 20px;
    height: 20px;
}

.form-group__input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 3rem; /* Відступ для іконки */
    border: 2px solid #eee;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color var(--transition-speed);
}

.form-group__input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group__input::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

/* Checkbox */
.form-group--checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.form-group__checkbox {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.2em;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.form-group__checkbox-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.form-group__checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Submit Button Loading State */
.contact__submit-btn {
    position: relative;
    padding: 0.75rem 1.5rem;
}

.btn__loader {
    display: none; /* Схований */
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--text-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.contact__submit-btn--loading .btn__text {
    visibility: hidden; /* Ховаємо текст */
    opacity: 0;
}

.contact__submit-btn--loading .btn__loader {
    display: block; /* Показуємо лоадер */
}

/* Success Message */
.contact__success-message {
    display: none; /* ПРИХОВАНО ЗА ЗАМОВЧУВАННЯМ */
    text-align: center;
    padding: 2rem;
    border: 2px dashed var(--secondary-color);
    border-radius: var(--border-radius);
}

.contact__success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}
.contact__success-icon i {
    width: 32px;
    height: 32px;
}

.contact__success-title {
    font-size: 1.8rem;
    color: var(--text-dark);
}
.contact__success-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 0;
}


/* Адаптація */
@media (min-width: 992px) {
    .contact__container {
        flex-direction: row; /* Дві колонки */
    }
}

/* ======== 9. COOKIE POP-UP ======== */

.cookie-popup {
    position: fixed;
    bottom: -100%; /* Початково сховано внизу */
    left: 0;
    width: 100%;
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 1.5rem 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    transition: bottom 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cookie-popup--show {
    bottom: 0; /* Показати */
}

.cookie-popup__container {
    display: flex;
    flex-direction: column; /* Mobile-first */
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    
    /* Обмежуємо ширину на десктопі */
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.cookie-popup__text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.6;
}

.cookie-popup__link {
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: 700;
}

.cookie-popup__link:hover {
    color: var(--text-light);
}

.cookie-popup__btn {
    padding: 0.6rem 1.2rem; /* Трохи менша кнопка */
    width: auto; /* Не на 100% ширини */
    flex-shrink: 0; /* Не стискати кнопку */
}

/* Адаптація для десктопів */
@media (min-width: 768px) {
    .cookie-popup__container {
        flex-direction: row; /* В ряд */
        justify-content: space-between;
        text-align: left;
    }
    
    .cookie-popup__text {
        font-size: 1rem;
    }
}



.pages {
    padding: 4rem 0;
    background-color: var(--text-light);
}

.pages .container {
    /* Обмежуємо ширину для кращої читабельності тексту */
    max-width: 800px; 
}

.pages h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
}

.pages h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.pages p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.pages a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}

.pages a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.pages ul,
.pages ol {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.pages li {
    margin-bottom: 0.75rem;
}

.pages strong,
.pages b {
    color: var(--text-dark);
    font-weight: 700;
}