/* ==================== GOOGLE FONTS ==================== */
/* (импортированы через <link> в HTML) */
/* font-family: 'Exo 2', sans-serif; */
/* font-family: 'Inter', sans-serif; */

/* ==================== CSS VARIABLES ==================== */
:root {
    --header-height: 4.5rem;

    /* Colors */
    --background-dark: #111827;
    --background-light: #1F2937;
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --accent: #22d3ee;
    --accent-dark: #06b6d4;
    --border-color: #374151;

    /* Typography */
    --font-headings: 'Exo 2', sans-serif;
    --font-body: 'Inter', sans-serif;

    --h1-size: 2.5rem;
    --h2-size: 2rem;
    --h3-size: 1.5rem;
    --h4-size: 1.25rem;
    --normal-size: 1rem;
    --small-size: 0.875rem;

    /* z-index */
    --z-header: 100;
    --z-modal: 1000;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--normal-size);
    background-color: var(--background-dark);
    color: var(--text-primary);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ==================== REUSABLE CSS CLASSES ==================== */
.container {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(31, 41, 55, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: var(--z-header);
    transition: background-color 0.3s;
}

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

.header__logo {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s;
}
.header__logo:hover {
    color: var(--accent);
}

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

.header__nav-link {
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

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

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

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

.header__toggle {
    display: none; /* Скрыт по умолчанию, появится на мобильных */
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

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

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

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

.footer__description {
    color: var(--text-secondary);
    max-width: 300px;
    margin-bottom: 1.5rem;
}

.footer__socials {
    display: flex;
    gap: 1rem;
}

.footer__social-link {
    color: var(--text-secondary);
    transition: color 0.3s, transform 0.3s;
}

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

.footer__title {
    font-family: var(--font-headings);
    font-size: var(--h4-size);
    margin-bottom: 1.5rem;
}

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

.footer__list--contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.footer__list--contact .lucide{
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent);
}

.footer__link {
    color: var(--text-secondary);
    transition: color 0.3s, padding-left 0.3s;
}

.footer__link:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer__copy {
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    font-size: var(--small-size);
    color: var(--text-secondary);
}


/* ==================== RESPONSIVENESS ==================== */
@media screen and (max-width: 992px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media screen and (max-width: 768px) {
    .header__nav {
        display: none; /* Скрываем навигацию */
    }
    .header__toggle {
        display: block; /* Показываем иконку меню */
    }
    
    .footer__container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* style.css (доповнення) */

/* ==================== REUSABLE CSS CLASSES (доповнення) ==================== */
.button {
    display: inline-block;
    background-color: var(--accent);
    color: var(--background-dark);
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: var(--normal-size);
    border: 2px solid var(--accent);
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.button:hover {
    background-color: transparent;
    color: var(--accent);
    transform: translateY(-3px);
}


/* ==================== HERO ==================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.hero__title {
    font-family: var(--font-headings);
    font-size: clamp(2.5rem, 5vw, 4rem); /* Адаптивный размер шрифта */
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* ==================== RESPONSIVENESS (доповнення) ==================== */
@media screen and (max-width: 768px) {
    .hero {
        min-height: 80vh;
    }

    .hero__content {
        padding: 1.5rem;
    }
}

/* style.css (доповнення) */

/* ==================== REUSABLE CSS CLASSES (доповнення) ==================== */
.section {
    padding: 6rem 0 2rem;
    overflow: hidden; /* Важно для анимации появления */
}

.section__title {
    font-family: var(--font-headings);
    font-size: var(--h2-size);
    margin-bottom: 1rem;
    text-align: center;
}

.section__subtitle {
    font-size: var(--h4-size);
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
    line-height: 1.6;
}


/* ==================== ABOUT ==================== */
.about__container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 4rem;
}

.about__image-wrapper {
    position: relative;
    /* Стили для анимации появления */
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.about__image-wrapper.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.about__img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

/* Декоративная подсветка для изображения */
.about__image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    filter: blur(40px);
    opacity: 0.2;
    z-index: -1;
}

.about__content {
    /* Стили для анимации появления */
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.2s; /* небольшая задержка для контента */
}
.about__content.is-visible {
    opacity: 1;
    transform: translateX(0);
}


.about__content .section__title,
.about__content .section__subtitle {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.about__content .section__subtitle {
    margin-bottom: 1.5rem;
}

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

.about__features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about__features-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.about__features-item .lucide {
    color: var(--accent);
    flex-shrink: 0;
}


/* ==================== RESPONSIVENESS (доповнення) ==================== */
@media screen and (max-width: 992px) {
    .about__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about__content .section__title,
    .about__content .section__subtitle {
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .section {
        padding: 4rem 0 1rem;
    }

    .section__title {
        font-size: var(--h3-size);
    }
    .section__subtitle {
        font-size: var(--normal-size);
        margin-bottom: 3rem;
    }

    .about__container {
        gap: 2rem;
    }
    .about__image-wrapper {
        width: 80%;
        margin: 0 auto;
    }
}

/* style.css (доповнення) */

/* ==================== DIRECTIONS ==================== */
.directions {
    background-color: var(--background-light);
}

.directions__container {
    display: grid;
    /* Адаптивная сетка: от 1 до 4 колонок в зависимости от ширины экрана */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.directions__card {
    background-color: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* Стили для анимации появления */
    opacity: 0;
    transform: translateY(50px);
}

/* Эффект при наведении */
.directions__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.1);
    border-color: var(--accent);
}

.directions__card-icon .lucide {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin: 0 auto 1.5rem auto;
    stroke-width: 1.5;
}

.directions__card-title {
    font-family: var(--font-headings);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.directions__card-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: var(--small-size);
}

/* Стили для stagger-анимации (появления с задержкой) */
.directions__card.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.directions__card:nth-child(1).is-visible { transition-delay: 0.1s; }
.directions__card:nth-child(2).is-visible { transition-delay: 0.2s; }
.directions__card:nth-child(3).is-visible { transition-delay: 0.3s; }
.directions__card:nth-child(4).is-visible { transition-delay: 0.4s; }

/* style.css (доповнення) */

/* ==================== PROCESS ==================== */
.process__container {
    max-width: 900px;
}

.process__timeline {
    position: relative;
    padding: 2rem 0;
}

/* Вертикальная линия таймлайна */
.process__timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
}

.process__item {
    position: relative;
    width: 50%;
    margin-bottom: 3rem;
    
    /* Стили для анимации */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.process__item.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.process__item:last-child {
    margin-bottom: 0;
}

/* Чередование элементов */
.process__item:nth-child(odd) {
    padding-right: 3rem;
    text-align: right;
    left: 0;
}

.process__item:nth-child(even) {
    padding-left: 3rem;
    left: 50%;
}

.process__item-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: grid;
    place-items: center;
    z-index: 5;
}

.process__item-icon .lucide {
    color: var(--accent);
}

.process__item:nth-child(odd) .process__item-icon {
    right: -25px; /* (50px / 2) */
}

.process__item:nth-child(even) .process__item-icon {
    left: -25px; /* (50px / 2) */
}

.process__item-title {
    font-family: var(--font-headings);
    font-size: var(--h4-size);
    margin-bottom: 0.75rem;
}

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

/* Stagger-анимация для таймлайна */
.process__item:nth-child(1).is-visible { transition-delay: 0.1s; }
.process__item:nth-child(2).is-visible { transition-delay: 0.2s; }
.process__item:nth-child(3).is-visible { transition-delay: 0.3s; }
.process__item:nth-child(4).is-visible { transition-delay: 0.4s; }


/* ==================== RESPONSIVENESS (доповнення для PROCESS) ==================== */
@media screen and (max-width: 768px) {
    .process__timeline::before {
        left: 25px; /* Смещаем линию влево */
    }

    .process__item,
    .process__item:nth-child(even) {
        width: 100%;
        left: 0;
        padding-left: 4.5rem; /* Оставляем место для линии и иконки */
        padding-right: 0;
        text-align: left;
    }
    
    .process__item:nth-child(odd) {
        padding-right: 0;
        text-align: left;
    }

    .process__item-icon,
    .process__item:nth-child(odd) .process__item-icon,
    .process__item:nth-child(even) .process__item-icon {
        left: 25px;
        transform: translate(-50%, -50%);
    }
}

/* style.css (доповнення) */

/* ==================== FEATURES ==================== */
.features {
    background-color: var(--background-light);
}

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

.features__image-wrapper {
    /* Стили для анимации появления */
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.features__image-wrapper.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.features__img {
    width: 100%;
    border-radius: 1rem;
}

.features__content {
    /* Стили для анимации появления */
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.2s;
}
.features__content.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.features__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.features__item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.features__item .lucide {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: var(--accent);
    margin-top: 5px;
}

.features__item h4 {
    font-family: var(--font-headings);
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

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

/* ==================== RESPONSIVENESS (доповнення для FEATURES) ==================== */
@media screen and (max-width: 992px) {
    .features__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* style.css (доповнення) */

/* ==================== CONTACT ==================== */
.contact__container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact__info-title {
    font-family: var(--font-headings);
    font-size: var(--h3-size);
    margin-bottom: 1rem;
}

.contact__info-description {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

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

.contact__info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-secondary);
}
.contact__info-item .lucide {
    flex-shrink: 0;
    color: var(--accent);
}
.contact__info-item a:hover {
    color: var(--accent);
    text-decoration: underline;
}

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

.form__group {
    position: relative;
}

.form__input {
    width: 100%;
    padding: 1rem;
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: var(--normal-size);
    outline: none;
    transition: border-color 0.3s;
}
.form__input:focus {
    border-color: var(--accent);
}

.form__textarea {
    resize: vertical;
    min-height: 140px;
}

.form__label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: top 0.3s, left 0.3s, font-size 0.3s, color 0.3s;
}

/* Анимация "плавающей" метки */
.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: var(--small-size);
    color: var(--accent);
    background-color: var(--background-dark);
    padding: 0 0.25rem;
}

#form-message {
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-align: center;
    display: none; /* Скрыто по умолчанию */
}
#form-message.success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    color: #22c55e;
}
#form-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

/* ==================== RESPONSIVENESS (доповнення для CONTACT) ==================== */
@media screen and (max-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

/* style.css (доповнення) */

/* ==================== POLICY PAGES ==================== */
/* Стили для отдельных страниц (privacy.html, cookies.html, и т.д.) */
.pages {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
}

.pages .container {
    max-width: 800px; /* Ограничиваем ширину для лучшей читаемости */
}

.pages h1 {
    font-family: var(--font-headings);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.pages h2 {
    font-family: var(--font-headings);
    font-size: var(--h3-size);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

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

.pages ul {
    list-style: none; /* Убираем стандартные маркеры */
    margin-left: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Кастомные маркеры для списка */
.pages ul li {
    position: relative;
    padding-left: 1.5rem;
}
.pages ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-size: 1.5rem;
    line-height: 1.8;
}

.pages a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s;
}

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

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

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Изначально скрыт за пределами экрана */
    left: 0;
    width: 100%;
    background-color: var(--background-light);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    z-index: 1100;
    transition: bottom 0.5s ease-in-out;
}
.cookie-popup.show {
    bottom: 0;
}

.cookie-popup__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

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

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

.cookie-popup__button {
    padding: 0.75rem 1.5rem;
    flex-shrink: 0; /* Чтобы кнопка не сжималась */
}

/* Адаптивность для cookie-попапа */
@media screen and (max-width: 768px) {
    .cookie-popup__container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}