/* ==================== GLOBAL STYLES ==================== */
:root {
    /* Colors */
    --background-color: #ffffff;
    --text-color: #1c1c21;
    --primary-color: #4A00E0;
    --secondary-color: #8E2DE2;
    --accent-color: #00F260;
    --dark-bg-color: #121217;
    --light-text-color: #f0f0f5;
    --border-color: #e0e0e0;

    /* Typography */
    --font-main: 'Manrope', sans-serif;
    --font-headings: 'Exo 2', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

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

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

.header__logo {
    font-family: var(--font-headings);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.header__nav {
    display: none; /* Hidden on mobile */
}

.header__menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header__menu-link {
    font-weight: 700;
    position: relative;
    padding: 5px 0;
}

.header__menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-fast);
}

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

.header__menu-link--cta {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text-color);
    padding: 8px 20px;
    border-radius: 50px;
}

.header__menu-link--cta:hover {
    color: var(--light-text-color);
    transform: scale(1.05);
}

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


.header__burger {
    display: block; /* Visible on mobile */
    color: var(--text-color);
}

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

.footer__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__logo {
    font-family: var(--font-headings);
    font-size: 28px;
    font-weight: 700;
    color: var(--light-text-color);
    margin-bottom: 15px;
    display: inline-block;
}

.footer__description {
    max-width: 300px;
    opacity: 0.7;
}

.footer__title {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer__list li {
    margin-bottom: 10px;
}

.footer__link {
    opacity: 0.7;
}

.footer__link:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer__list--contact li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__list--contact .lucide {
    width: 20px;
    flex-shrink: 0;
    color: var(--accent-color);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    opacity: 0.5;
}


/* ==================== ADAPTIVE STYLES ==================== */
/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .header__burger {
        display: none;
    }

    .header__nav {
        display: block;
    }

    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .footer__container {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 60px;
    }
}

/* ==================== HERO ==================== */
.hero {
    padding-top: 120px; /* Отступ от фиксированного хедера */
    padding-bottom: 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.hero__subtitle {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero__title {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 550px;
}

.hero__description {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 500px;
    opacity: 0.8;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text-color);
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 0, 224, 0.3);
}

.button .lucide {
    transition: transform var(--transition-fast);
}

.button:hover .lucide {
    transform: translateX(5px);
}

.hero__visual {
    position: relative;
    width: 100%;
    height: 300px; /* Высота для мобильных */
    border-radius: 20px;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero__image-placeholder {
    position: absolute;
    inset: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__image-placeholder img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    opacity: 0.5;
}

/* ==================== ADAPTIVE STYLES (HERO) ==================== */
/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .hero__title {
        font-size: 48px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero {
        min-height: 100vh;
        padding-top: 70px; /* Сброс отступа, т.к. хедер уже не перекрывает */
    }
    
    .hero__container {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
    
    .hero__visual {
        height: 500px;
    }
}

/* ==================== ABOUT ==================== */
.about {
    padding: 80px 0;
    background-color: #f9f9f9; /* Слегка отличимый фон для разделения секций */
}

.about__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}

.about__visual {
    order: 1; /* По умолчанию картинка вверху */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.about__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about__content {
    order: 2; /* Текст внизу */
}

/* Общие стили для заголовков секций */
.section__subtitle {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section__title {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.section__description {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0.8;
    max-width: 600px;
}

.about__features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.about__feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    opacity: 0; /* Для анимации */
    transform: translateY(20px); /* Для анимации */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.about__feature-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.about__feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(74, 0, 224, 0.1);
    color: var(--primary-color);
}

.about__feature-title {
    font-size: 20px;
    margin-bottom: 5px;
    font-family: var(--font-headings);
}

.about__feature-text {
    font-size: 15px;
    opacity: 0.7;
}

/* ==================== ADAPTIVE STYLES (ABOUT) ==================== */
@media (min-width: 992px) {
    .about__container {
        grid-template-columns: 1fr 1fr;
    }

    .about__visual {
        order: 2; /* На десктопе картинка справа */
    }

    .about__content {
        order: 1; /* Текст слева */
    }

    .section__title {
        font-size: 40px;
    }
}

/* ==================== HOW IT WORKS ==================== */
.how-it-works {
    padding: 80px 0;
}

.how-it-works__header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}

.how-it-works__steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    position: relative;
}

.how-it-works__step {
    background-color: #fff;
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.how-it-works__step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.07);
}

.how-it-works__step-icon {
    margin: 0 auto 15px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(74, 0, 224, 0.1);
    color: var(--primary-color);
}

.how-it-works__step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    font-weight: 800;
    color: var(--border-color);
}

.how-it-works__step-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.how-it-works__step-description {
    opacity: 0.7;
}

.how-it-works__cta {
    text-align: center;
    margin-top: 60px;
}

/* Стили для анимации */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ==================== ADAPTIVE STYLES (HOW IT WORKS) ==================== */
@media (min-width: 768px) {
    .how-it-works__steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .how-it-works__steps::before {
        content: '';
        position: absolute;
        top: 60px; /* На уровне центра иконок */
        left: 5%;
        right: 5%;
        height: 2px;
        background-color: var(--border-color);
        z-index: -1;
    }
}

/* ==================== BENEFITS ==================== */
.benefits {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.benefits__header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}

.benefits__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.benefits__card {
    background-color: #fff;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.benefits__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.07);
    border-color: var(--primary-color);
}

.benefits__card-icon {
    margin-bottom: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: var(--accent-color);
    color: var(--dark-bg-color);
}

.benefits__card-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.benefits__card-description {
    opacity: 0.7;
    font-size: 15px;
}


/* ==================== ADAPTIVE STYLES (BENEFITS) ==================== */
@media (min-width: 576px) {
    .benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ==================== REVIEWS ==================== */
.reviews {
    padding: 80px 0;
}

.reviews__header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}

.reviews__slider {
    padding-bottom: 50px; /* Место для пагинации */
}

.review-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.review-card__rating {
    display: flex;
    gap: 4px;
    color: #FFC107;
    margin-bottom: 15px;
}
.review-card__rating .lucide-star.filled {
    fill: #FFC107;
}

.review-card__text {
    font-size: 17px;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 20px;
    font-style: italic;
}

.review-card__author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-card__author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-card__author-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.review-card__author-role {
    font-size: 14px;
    opacity: 0.7;
}

/* Swiper custom styles */
.reviews .swiper-pagination-bullet {
    background-color: var(--primary-color);
    width: 10px;
    height: 10px;
}

.reviews .swiper-pagination-bullet-active {
    background-color: var(--secondary-color);
}

/* ==================== CONTACT ==================== */
.contact {
    padding: 80px 0;
    background-color: var(--dark-bg-color);
    color: var(--light-text-color);
}

.contact .section__title,
.contact .section__subtitle {
    color: var(--light-text-color);
}

.contact .section__subtitle {
    color: var(--accent-color);
}

.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.contact__details {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact__detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
}
.contact__detail-item .lucide {
    color: var(--accent-color);
}

.contact__form-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 16px;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-label {
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font-main);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 0, 224, 0.2);
}

.form-group--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.form-group--checkbox label {
    margin: 0;
    color: var(--text-color);
}
.form-group--checkbox a {
    color: var(--primary-color);
    text-decoration: underline;
}
.form-group--checkbox input[type="checkbox"] {
    width: 1.2em;
    height: 1.2em;
}

.contact__button {
    width: 100%;
    justify-content: center;
    padding-top: 15px;
    padding-bottom: 15px;
    margin-top: 10px;
}

.form-success-message {
    text-align: center;
    padding: 20px;
    background-color: #e8f5e9;
    color: #2e7d32;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.is-hidden {
    display: none !important;
}

/* ==================== ADAPTIVE STYLES (CONTACT) ==================== */
@media (min-width: 992px) {
    .contact__wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        align-items: center;
    }
    .contact__form-container {
        padding: 40px;
    }
}

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Start hidden */
    left: 0;
    width: 100%;
    background-color: var(--dark-bg-color);
    color: var(--light-text-color);
    padding: 20px;
    z-index: 200;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    transition: bottom 0.5s ease-in-out;
}

.cookie-popup.is-visible {
    bottom: 0;
}

.cookie-popup__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cookie-popup__text {
    margin: 0;
}

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

.cookie-popup__button {
    padding: 8px 25px;
    flex-shrink: 0;
}

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

/* ==================== GENERIC PAGES (Privacy, Terms, etc.) ==================== */
.pages {
    padding: 120px 0 80px; /* Отступы от хедера и до футера */
}

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

.pages h1 {
    font-size: 40px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.pages h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 15px;
}

.pages p,
.pages li {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

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

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

.pages ul {
    list-style: disc;
    padding-left: 20px;
}

.pages strong {
    font-weight: 700;
}