/* --- Variables & Setup --- */
:root {
    /* Palette */
    --color-bg: #F3F4F6;            /* Светло-серый фон */
    --color-surface: #FFFFFF;       /* Белый для карточек/хедера */
    --color-primary: #0F172A;       /* Глубокий синий (Navy) */
    --color-accent: #0D9488;        /* Тиловый/Мятный (Teal) */
    --color-accent-hover: #115E59;
    --color-text: #374151;          /* Темно-серый текст */
    --color-text-light: #6B7280;    /* Светло-серый текст */
    --border-radius: 12px;
    --container-width: 1200px;
    
    /* Fonts */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    background-color: var(--color-accent);
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s, background-color 0.3s;
    cursor: pointer;
    border: none;
}

.btn:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
}

/* --- Header --- */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 5%;
}

.header__container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary);
}

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

/* Mobile Menu Logic (Hidden by default on mobile) */
.header__menu {
    display: none; 
    flex-direction: column;
    gap: 1.5rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    padding: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.header__menu.active {
    display: flex;
}

.header__cta {
    display: none; /* Скрываем кнопку в меню на мобильном для простоты, или можно добавить внутрь меню JS-ом */
}

/* Desktop Styles */
@media (min-width: 768px) {
    .header__burger {
        display: none;
    }
    
    .header__menu {
        display: flex;
        position: static;
        flex-direction: row;
        background: none;
        padding: 0;
        border: none;
        box-shadow: none;
        gap: 2rem;
    }
    
    .header__cta {
        display: inline-block;
    }
}

.header__link {
    font-weight: 500;
    color: var(--color-primary);
}

.header__link:hover {
    color: var(--color-accent);
}

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

/* --- Main Spacer --- */
main {
    flex: 1; /* Pushes footer down */
}

/* --- Footer --- */
.footer {
    background-color: var(--color-primary);
    color: #cbd5e1;
    padding: 4rem 5% 1rem;
    margin-top: auto;
}

.footer__container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer__container {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    }
}

.footer__col h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer__desc {
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer__list, .footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer__link {
    font-size: 0.9rem;
    color: #94a3b8;
}

.footer__link:hover {
    color: var(--color-accent);
    padding-left: 5px; /* Микроанимация */
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
}

.footer__icon {
    min-width: 18px;
    width: 18px;
    color: var(--color-accent);
}

.footer__bottom {
    border-top: 1px solid #334155;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* Logo in footer */
.header__logo--footer {
    color: #fff;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 6rem 5% 4rem; /* Відступ зверху враховує фіксований хедер */
    overflow: hidden;
    background: linear-gradient(135deg, #F3F4F6 0%, #E0F2FE 100%); /* Легкий блакитний градієнт */
}

.hero__container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hero__container {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

/* Content */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 148, 136, 0.1);
    color: var(--color-accent);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(13, 148, 136, 0.2);
}

.hero__badge-icon {
    width: 16px;
    height: 16px;
}

.hero__title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.hero__title .text-accent {
    color: var(--color-accent);
    position: relative;
    white-space: nowrap;
}

/* Підкреслення для акцентного тексту */
.hero__title .text-accent::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(13, 148, 136, 0.2);
    z-index: -1;
    border-radius: 4px;
}

@media (min-width: 768px) {
    .hero__title {
        font-size: 3.5rem;
    }
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.hero__btn-primary {
    padding: 14px 32px;
    font-size: 1rem;
    box-shadow: 0 10px 25px -5px rgba(13, 148, 136, 0.4);
}

.hero__btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-primary);
    transition: color 0.3s;
}

.hero__btn-secondary:hover {
    color: var(--color-accent);
}

.hero__info-text {
    font-size: 0.8rem;
    color: #9CA3AF;
    font-style: italic;
}

/* Visual Side */
.hero__visual {
    position: relative;
    perspective: 1000px; /* Для 3D ефекту */
}

.hero__image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: visible; /* Щоб картки могли виходити за межі */
}

.hero__img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    /* Заглушка: сірий прямокутник, якщо картинки немає */
    background-color: #cbd5e1;
    min-height: 400px;
    object-fit: cover;
}

/* Floating Cards */
.hero__card {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.5);
}

.hero__card--1 {
    top: 10%;
    left: -20px;
    animation-delay: 0s;
}

.hero__card--2 {
    bottom: 15%;
    right: -20px;
    animation-delay: 3s;
}

.hero__card-icon {
    width: 40px;
    height: 40px;
    background: #DCFCE7; /* Світло-зелений */
    color: #16A34A;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__card-icon.bg-blue {
    background: #DBEAFE;
    color: #2563EB;
}

.hero__card-title {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.hero__card-val {
    display: block;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1rem;
}

/* Floating Animation Keyframes */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 768px) {
    .hero__card--1 { left: 0; }
    .hero__card--2 { right: 0; }
}

/* --- Global Section Helpers --- */
.section-padding {
    padding: 5rem 5%;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 4rem;
}

.badge-sub {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

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

/* --- Strategy Section --- */
.strategy {
    background-color: var(--color-surface); /* Білий фон */
}

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

@media (min-width: 768px) {
    .strategy__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .strategy__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Feature Card */
.feature-card {
    background: #F8FAFC;
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(13, 148, 136, 0.2);
}

.feature-card__icon {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease;
}

.feature-card:hover .feature-card__icon {
    background: var(--color-accent);
}

.feature-card__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card__text {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.feature-card__text strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* Outline Button Variant */
.strategy__footer {
    margin-top: 3rem;
    text-align: center;
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* --- Mentoring Section (Accordion) --- */
.mentoring {
    background-color: #F1F5F9; /* Трохи темніший за білий, контраст до попередньої секції */
}

.mentoring__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: start;
}

@media (min-width: 992px) {
    .mentoring__container {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 6rem;
    }
}

.mentoring__actions {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.mentoring__note {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* Accordion Styles */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion__item {
    background: var(--color-surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.accordion__item.active {
    box-shadow: 0 10px 15px -3px rgba(13, 148, 136, 0.15); /* Тінь акцентного кольору */
}

.accordion__header {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s;
}

.accordion__header:hover {
    background-color: #F8FAFC;
}

.accordion__num {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-accent); /* Акцентний колір для цифр */
    margin-right: 1.5rem;
    opacity: 0.8;
}

.accordion__title {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
}

.accordion__icon {
    width: 20px;
    height: 20px;
    color: var(--color-text-light);
    transition: transform 0.3s ease;
}

/* Rotate icon when active */
.accordion__item.active .accordion__icon {
    transform: rotate(180deg);
    color: var(--color-accent);
}

.accordion__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion__content {
    padding: 0 1.5rem 1.5rem 4.5rem; /* Відступ зліва підрівняний під текст заголовка */
    color: var(--color-text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 500px) {
    .accordion__content {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
    
    .accordion__num {
        margin-right: 1rem;
        font-size: 1rem;
    }
}



/* --- Blog Section --- */
.blog {
    background-color: var(--color-surface);
}

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

/* Grid Logic for Desktop */
@media (min-width: 992px) {
    .blog__grid {
        grid-template-columns: 1.2fr 0.9fr; /* Левая колонка шире */
        grid-template-rows: auto auto;
        /* Статья 1 (Featured) займет всю левую колонку (2 рядка).
           Статьи 2 и 3 займут правую колонку по одной.
        */
    }

    .blog-card--featured {
        grid-row: span 2; /* Растягиваем на всю высоту */
        display: flex;
        flex-direction: column;
    }
    
    .blog-card--featured .blog-card__image-wrapper {
        flex: 1; /* Картинка занимает больше места */
        min-height: 300px;
    }
}

/* Blog Card Styles */
.blog-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.blog-card__image-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-card:hover .blog-card__img {
    transform: scale(1.08); /* Zoom effect */
}

.blog-card__tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.blog-card__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 0.8rem;
}

.blog-card__icon {
    width: 14px;
    height: 14px;
    color: var(--color-accent);
}

.blog-card__title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.3s;
}

.blog-card:hover .blog-card__title {
    color: var(--color-accent);
}

.blog-card--featured .blog-card__title {
    font-size: 1.5rem; /* Larger title for featured */
}

.blog-card__excerpt {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blog-card__link {
    margin-top: auto; /* Push to bottom */
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.9rem;
}

.blog-card__link i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.blog-card__link:hover {
    color: var(--color-accent);
}

.blog-card__link:hover i {
    transform: translateX(4px);
}

/* --- Reviews Section (Slider) --- */
.reviews {
    background: linear-gradient(to bottom, #fff 0%, #f8fafc 100%);
    overflow: hidden;
}

.reviews__wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.reviews__viewport {
    overflow: hidden;
    padding: 1rem 0 2rem; /* Місце для тіні */
}

.reviews__track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.reviews__card {
    min-width: 100%; /* На мобільному 1 слайд */
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .reviews__card {
        min-width: calc(50% - 1rem); /* На планшеті і вище 2 слайди */
    }
}

.reviews__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.reviews__avatar {
    width: 50px;
    height: 50px;
    background: #DCFCE7; /* Default accent bg */
    color: #166534;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.reviews__info {
    flex: 1;
}

.reviews__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
}

.reviews__location {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.reviews__rating {
    display: flex;
    gap: 2px;
}

.reviews__rating .fill-star {
    width: 16px;
    height: 16px;
    fill: #FBBF24; /* Amber-400 */
    color: #FBBF24;
}

.reviews__text {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    font-style: italic;
}

.reviews__text strong {
    color: var(--color-accent);
    font-style: normal;
}

/* Controls */
.reviews__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.reviews__btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    background: #fff;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.reviews__btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.reviews__dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--color-accent);
    transform: scale(1.2);
}

/* --- Contact Section --- */
.contact {
    background-color: var(--color-primary);
    color: #fff;
    position: relative;
}

/* Background decoration (optional) */
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(13, 148, 136, 0.15), transparent 40%);
    pointer-events: none;
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
    }
}

/* Left Info */
.contact__info .section-title {
    color: #fff;
}

.contact__info .section-desc {
    color: #94a3b8;
    margin-bottom: 2rem;
}

.contact__benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.contact__benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: #cbd5e1;
}

.contact__support-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact__support-box p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.contact__phone {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.contact__phone:hover {
    color: var(--color-accent);
}

/* Right Form */
.contact__form-wrapper {
    background: #fff;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.contact__form-title {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.2rem;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9ca3af;
    transition: color 0.3s;
}

.form-input {
    width: 100%;
    padding: 12px 14px 12px 42px; /* Pad left for icon */
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}

.form-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-input:focus + .input-icon, /* Not working with current DOM structure, fix via JS or CSS focus-within */
.input-wrapper:focus-within .input-icon {
    color: var(--color-accent);
}

/* Error States */
.error-msg {
    display: none;
    font-size: 0.8rem;
    color: #ef4444;
    margin-top: 4px;
}

.form-group.error .form-input {
    border-color: #ef4444;
}

.form-group.error .error-msg {
    display: block;
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.form-checkbox input {
    margin-top: 3px;
    cursor: pointer;
}

.form-checkbox a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Captcha */
.captcha-input {
    padding-left: 14px; /* No icon here */
}

/* Button & Loader */
.btn--block {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
}

.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
    margin-left: 10px;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Message Overlay */
.success-message {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    z-index: 10;
    animation: fadeIn 0.3s ease;
}

.success-message.active {
    display: flex;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #DCFCE7;
    color: #166534;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.success-icon i {
    width: 32px;
    height: 32px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.btn--sm {
    margin-top: 1.5rem;
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* --- Cookie Pop-up --- */
.cookie-popup {
    position: fixed;
    bottom: -100px; /* Приховано за межами екрану */
    left: 0;
    width: 100%;
    background: var(--color-primary);
    color: #fff;
    padding: 1rem 5%;
    z-index: 9999;
    transition: bottom 0.5s ease-out;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.cookie-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-content .btn {
    margin-top: 0; /* Скидаємо відступ btn--sm */
    white-space: nowrap;
}

/* --- Policy Pages Styles (privacy.html etc.) --- */
/* Ці стилі працюватимуть на окремих HTML сторінках з класом .pages */

.pages {
    padding: 4rem 5%;
    background: #fff;
    min-height: 60vh;
}

.pages .container {
    max-width: 800px; /* Вузький контейнер для читабельності */
    margin: 0 auto;
}

.pages h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

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

.pages p {
    font-size: 1rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.pages ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style-type: disc;
    color: #4b5563;
}

.pages li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.pages a {
    color: var(--color-accent);
    text-decoration: underline;
}

.pages strong {
    color: var(--color-primary);
}