/* ==================== GOOGLE FONTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Colors */
    --color-bg: #0D1117;
    --color-bg-light: #161B22;
    --color-border: #30363D;
    --color-text-primary: #E6EDF3;
    --color-text-secondary: #8B949E;
    --color-accent-1: #8B5CF6;
    --color-accent-2: #14B8A6;
    --gradient-accent: linear-gradient(90deg, var(--color-accent-1) 0%, var(--color-accent-2) 100%);

    /* Typography */
    --font-family-headings: 'Plus Jakarta Sans', sans-serif;
    --font-family-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 5rem;
}

/* ==================== BASE STYLES ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    color: var(--color-text-primary);
    line-height: 1.2;
}

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

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

ul {
    list-style: none;
}

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

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

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

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.header__logo {
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-primary);
}

.header__nav {
    display: block;
}

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

.header__nav-link {
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

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

.header__nav-link--cta {
    background: var(--gradient-accent);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header__nav-link--cta:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.header__nav-link--cta::after {
    display: none;
}

.header__burger-btn {
    display: none;
    color: var(--color-text-primary);
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
}

.footer__logo {
    font-family: var(--font-family-headings);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer__copyright {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.footer__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

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

.footer__link:hover {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.footer__list--contacts .footer__link,
.footer__address {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--color-accent-1);
}

.footer__disclaimer {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-top: 1.5rem;
    font-style: italic;
}

/* ==================== RESPONSIVE STYLES ==================== */
@media (max-width: 768px) {
    .header__nav {
        display: none; /* Скрываем навигацию */
        /* Логика показа будет в JS */
    }

    .header__burger-btn {
        display: block; /* Показываем бургер */
    }
    
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__column--brand,
    .footer__list--contacts li {
        align-items: center;
        justify-content: center;
    }
}

/* ==================== BUTTONS ==================== */
.button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-family-headings);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    background: var(--gradient-accent);
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.button:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 7px 30px rgba(139, 92, 246, 0.5);
}


/* ==================== HERO ==================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: var(--header-height);
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero__content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInSlideUp 1s ease-out forwards;
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__eyebrow {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    animation: fadeInSlideUp 1s ease-out 0.2s forwards;
    opacity: 0;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    animation: fadeInSlideUp 1s ease-out 0.4s forwards;
    opacity: 0;
}

.hero__description {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    animation: fadeInSlideUp 1s ease-out 0.6s forwards;
    opacity: 0;
}

.hero__description strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

.hero__button {
    animation: fadeInSlideUp 1s ease-out 0.8s forwards;
    opacity: 0;
}

/* ==================== RESPONSIVE STYLES (Hero) ==================== */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
    }
    .hero__title {
        font-size: 2.5rem;
    }
    .hero__description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }
    .button {
        padding: 0.8rem 2rem;
    }
}

/* ==================== ABOUT ==================== */
.about {
    padding: 6rem 0;
    overflow: hidden; /* Важно для работы AOS без артефактов */
}

.about__container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 5rem;
}

.about__title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.about__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    margin-top: 1rem;
    border-radius: 2px;
}

.about__description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.about__description strong {
    color: var(--color-text-primary);
    font-weight: 500;
}

.about__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-primary);
    font-weight: 600;
    position: relative;
}

.about__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.about__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.about__link-icon {
    transition: transform 0.3s ease;
}

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

.about__cards {
    position: relative;
    height: 350px;
    perspective: 1500px;
}

.about__card {
    position: absolute;
    width: 100%;
    max-width: 380px;
    padding: 2rem;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    backdrop-filter: blur(5px);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform;
}

.about__card:nth-child(1) {
    transform: translateY(0) rotateX(15deg) rotateY(-20deg) rotateZ(-10deg) translateX(-50px);
    z-index: 3;
}
.about__card:nth-child(2) {
    transform: translateY(0) rotateX(10deg) rotateY(15deg) rotateZ(5deg);
    z-index: 2;
}
.about__card:nth-child(3) {
    transform: translateY(0) rotateX(5deg) rotateY(-10deg) rotateZ(10deg) translateX(50px);
    z-index: 1;
}

.about__cards:hover .about__card:nth-child(1) {
    transform: translateY(-130px) rotate(0) translateX(0);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.about__cards:hover .about__card:nth-child(2) {
    transform: translateY(0) rotate(0) translateX(0);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.about__cards:hover .about__card:nth-child(3) {
    transform: translateY(130px) rotate(0) translateX(0);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.about__card-icon-wrapper {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gradient-accent);
    margin-bottom: 1.5rem;
}

.about__card-icon {
    color: white;
    width: 24px;
    height: 24px;
}

.about__card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.about__card-text {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* ==================== RESPONSIVE STYLES (About) ==================== */
@media (max-width: 992px) {
    .about__container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .about__title::after {
        margin: 1rem auto;
    }
    .about__cards {
        margin: 3rem auto 0;
    }
}

@media (max-width: 576px) {
    .about {
        padding: 4rem 0;
    }
    .about__title {
        font-size: 2.2rem;
    }
    /* Упрощаем анимацию на мобильных для производительности */
    .about__cards {
        height: auto;
        perspective: none;
    }
    .about__card {
        position: relative;
        transform: none !important;
        margin: 0 auto 1.5rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }
    .about__cards:hover .about__card {
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
        transform: none !important;
    }
}

/* ==================== HOW IT WORKS ==================== */
.how-it-works {
    padding: 6rem 0;
    background-color: var(--color-bg-light);
    position: relative;
}

.how-it-works__intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.how-it-works__title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.how-it-works__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

.how-it-works__wrapper {
    /* Высота обертки определяет "длину" скролла для анимации */
    height: 300vh;
    position: relative;
}

.how-it-works__sticky-content {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.how-it-works__timeline {
    position: relative;
    width: 2px;
    height: 50vh;
    background-color: var(--color-border);
    justify-self: center;
}

.how-it-works__timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0; /* JS будет управлять высотой */
    background: var(--gradient-accent);
    transition: height 0.1s linear;
}

.how-it-works__timeline-point {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    background-color: var(--color-bg-light);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.how-it-works__timeline-point[data-step="1"] { top: 0; }
.how-it-works__timeline-point[data-step="2"] { top: 50%; }
.how-it-works__timeline-point[data-step="3"] { top: 100%; }

.how-it-works__timeline-point.is-active {
    background: var(--color-accent-1);
    border-color: var(--color-accent-1);
}

.how-it-works__steps {
    position: relative;
    height: 300px; /* Фиксированная высота для контейнера шагов */
}

.how-it-works__step {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    will-change: opacity;
}

.how-it-works__step.is-active {
    opacity: 1;
}

.how-it-works__step-number {
    font-family: var(--font-family-headings);
    font-size: 3rem;
    font-weight: 800;
    -webkit-text-stroke: 1px var(--color-border);
    color: transparent;
    margin-bottom: 1rem;
    display: block;
}

.how-it-works__step-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.how-it-works__step-text {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 450px;
}

/* ==================== RESPONSIVE STYLES (How-it-works) ==================== */
@media (max-width: 768px) {
    /* На мобильных отключаем сложную скролл-анимацию и показываем шаги друг за другом */
    .how-it-works__wrapper {
        height: auto;
    }
    .how-it-works__sticky-content {
        position: static;
        display: block;
        height: auto;
    }
    .how-it-works__timeline {
        display: none; /* Скрываем таймлайн на мобильных */
    }
    .how-it-works__steps {
        height: auto;
    }
    .how-it-works__step {
        position: static;
        transform: none;
        opacity: 1;
        margin-bottom: 3rem;
        text-align: center;
    }
    .how-it-works__step:last-child {
        margin-bottom: 0;
    }
    .how-it-works__step-text {
        margin: 0 auto;
    }
}
/* ==================== ADVANTAGES ==================== */
.advantages {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg); /* Fallback */
}

/* Анимированный фон */
.advantages__bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1200px;
    height: 1200px;
    background: radial-gradient(circle, var(--color-accent-1), var(--color-accent-2), transparent 60%);
    transform: translate(-50%, -50%);
    filter: blur(100px);
    opacity: 0.15;
    animation: rotateGlow 25s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    z-index: 1;
}

@keyframes rotateGlow {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.2); }
    100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

.advantages .container {
    position: relative;
    z-index: 2;
}

.advantages__intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.advantages__title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.advantages__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

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

.advantages__card {
    background: rgba(31, 41, 55, 0.3);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Эффект "focus" */
.advantages__grid:hover .advantages__card {
    filter: blur(3px);
    opacity: 0.5;
    transform: scale(0.95);
}

.advantages__grid .advantages__card:hover {
    filter: blur(0);
    opacity: 1;
    transform: scale(1.05);
    background: rgba(31, 41, 55, 0.6);
    border-color: var(--color-accent-1);
}

.advantages__card-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: #fff;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.advantages__card:hover .advantages__card-icon {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.advantages__card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
}

.advantages__card-text {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ==================== RESPONSIVE STYLES (Advantages) ==================== */
@media (max-width: 768px) {
    .advantages__title {
        font-size: 2.2rem;
    }
    
    /* Упрощаем эффект фокуса на мобильных, чтобы не перегружать */
    .advantages__grid:hover .advantages__card {
        filter: none;
        opacity: 1;
        transform: scale(1);
    }
    
    .advantages__card:hover {
        transform: translateY(-5px) !important;
    }
}

/* ==================== FAQ ==================== */
.faq {
    padding: 6rem 0;
    background-color: var(--color-bg);
}

.faq__container {
    max-width: 800px;
    margin: 0 auto;
}

.faq__intro {
    text-align: center;
    margin-bottom: 4rem;
}

.faq__title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.faq__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

.faq__accordion {
    border-top: 1px solid var(--color-border);
}

.faq__item {
    border-bottom: 1px solid var(--color-border);
}

.faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq__question h3 {
    font-size: 1.25rem;
    font-weight: 600;
    font-family: var(--font-family-body);
    transition: color 0.3s ease;
}

.faq__icon {
    flex-shrink: 0;
    margin-left: 1rem;
    color: var(--color-text-secondary);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), 
                padding 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faq__answer p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    padding-bottom: 1.5rem;
}

/* Active State */
.faq__item.is-active .faq__question h3 {
    color: var(--color-accent-1);
}

.faq__item.is-active .faq__icon {
    transform: rotate(45deg);
    color: var(--color-accent-1);
}

.faq__item.is-active .faq__answer {
    /* Значение должно быть больше максимальной высоты контента */
    max-height: 200px; 
}

/* ==================== RESPONSIVE STYLES (FAQ) ==================== */
@media (max-width: 768px) {
    .faq__title {
        font-size: 2.2rem;
    }
    .faq__question h3 {
        font-size: 1.1rem;
    }
}

/* ==================== CONTACT ==================== */
.contact {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg-light);
}

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

.contact__title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.contact__description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 450px;
}

.contact__form-wrapper {
    background: rgba(31, 41, 55, 0.3);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 3rem;
    position: relative;
}

/* Form Styles */
.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 0;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--color-text-secondary);
    color: var(--color-text-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-label {
    position: absolute;
    top: 0.8rem;
    left: 0;
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-input:focus,
.form-input:not(:placeholder-shown) {
    border-bottom-color: var(--color-accent-1);
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -1rem;
    font-size: 0.85rem;
    color: var(--color-accent-1);
}

.form-group--captcha {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-label-static {
    color: var(--color-text-secondary);
    flex-shrink: 0;
}

.form-group--checkbox {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.form-group--checkbox label {
    color: var(--color-text-secondary);
}

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

/* Custom Checkbox */
.form-group--checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-text-secondary);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s, border-color 0.3s;
}

.form-group--checkbox input[type="checkbox"]:checked {
    background-color: var(--color-accent-1);
    border-color: var(--color-accent-1);
}

.form-group--checkbox input[type="checkbox"]:checked::before {
    content: '✔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

.contact__button {
    width: 100%;
    padding: 1.2rem;
}

/* Success Message */
.success-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    border-radius: 16px;
    padding: 2rem;
}

.contact__form-wrapper.is-submitted .success-message {
    opacity: 1;
    visibility: visible;
}
.contact__form-wrapper.is-submitted .contact__form {
    display: none;
}

.success-message__icon { color: var(--color-accent-2); }
.success-message__icon svg { width: 50px; height: 50px; }
.success-message__title { font-size: 1.8rem; margin: 1rem 0; }
.success-message__text { color: var(--color-text-secondary); }

/* Validation Error Style */
.form-group.has-error .form-input {
    border-bottom-color: #f87171; /* red-400 */
}


/* ==================== RESPONSIVE STYLES (Contact) ==================== */
@media (max-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .contact__description {
        margin: 0 auto;
    }
}

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    padding: 1.5rem;
    z-index: 200;
    transform: translateY(120%);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cookie-popup.is-visible {
    transform: translateY(0);
}

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

.cookie-popup__text {
    color: var(--color-text-secondary);
}

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

.cookie-popup__button {
    padding: 0.6rem 1.5rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-popup__content {
        flex-direction: column;
        text-align: center;
    }
}

/* ==================== POLICY & LEGAL PAGES STYLES ==================== */
.pages {
    padding: calc(var(--header-height) + 4rem) 0 4rem;
}

.pages .container {
    max-width: 800px;
}

.pages h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid;
    border-image: var(--gradient-accent) 1;
    padding-bottom: 1rem;
}

.pages h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.pages p, 
.pages li {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

.pages a {
    color: var(--color-accent-2);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.pages a:hover {
    color: var(--color-accent-1);
}

.pages ul {
    list-style: disc;
    padding-left: 2rem;
    margin-top: 1.5rem;
}

.pages ul li {
    margin-bottom: 0.8rem;
}