/* --- VARIABLES & RESET --- */
:root {
    --color-primary: #4338ca; /* Deep Indigo */
    --color-primary-dark: #3730a3;
    --color-accent: #2dd4bf; /* Electric Mint */
    --color-accent-hover: #14b8a6;
    
    --color-bg: #f8fafc;
    --color-text: #334155;
    --color-heading: #0f172a;
    --color-white: #ffffff;
    --color-footer-bg: #1e293b;
    
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    
    --container-width: 1200px;
    --spacing-unit: 1rem;
    --transition: 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

html {
    scroll-behavior: smooth;
}

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

ul {
    list-style: none;
}

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

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

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

/* --- HEADER --- */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: var(--shadow);
}

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

.header__logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

.nav__list {
    display: flex;
    gap: 30px;
}

.nav__link {
    font-weight: 500;
    color: var(--color-heading);
    position: relative;
}

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

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

.nav__link:hover::after {
    width: 100%;
}

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

/* --- MAIN --- */
.main {
    padding-top: 80px; /* Header height compensation */
    flex: 1;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--color-footer-bg);
    color: #94a3b8;
    padding: 60px 0 20px;
    margin-top: auto;
}

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

.footer__logo {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-white);
    display: block;
    margin-bottom: 15px;
}

.footer__desc {
    font-size: 14px;
    line-height: 1.5;
}

.footer__title {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

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

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

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .footer__container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header__btn, .nav {
        display: none; /* Hide nav and btn by default on mobile */
    }
    
    .header__burger {
        display: block;
    }

    /* Mobile menu styles would go here in JS interaction step */
    .nav.is-active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        flex-direction: column;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }
    
    .nav.is-active .nav__list {
        flex-direction: column;
        align-items: center;
    }

    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__contact-item {
        justify-content: center;
    }
}

/* --- HERO SECTION --- */
.hero {
    padding: 60px 0;
    min-height: calc(100vh - 80px); /* Висота екрану мінус хедер */
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    position: relative;
    overflow: hidden;
}

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

/* Ліва частина - Текст */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(45, 212, 191, 0.15);
    color: var(--color-primary);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(45, 212, 191, 0.3);
    /* Для анімації */
    opacity: 0; 
    transform: translateY(20px);
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 48px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--color-heading);
    margin-bottom: 24px;
    /* Для анімації */
    opacity: 0;
    transform: translateY(20px);
}

.text-gradient {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 32px;
    max-width: 540px;
    /* Для анімації */
    opacity: 0;
    transform: translateY(20px);
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 24px;
    /* Для анімації */
    opacity: 0;
    transform: translateY(20px);
}

.hero__btn {
    padding: 16px 32px;
    font-size: 16px;
    box-shadow: 0 10px 25px -5px rgba(67, 56, 202, 0.4);
}

.hero__note {
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-sm {
    width: 16px;
    height: 16px;
    color: var(--color-accent);
}

/* Права частина - Візуал */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image-wrapper {
    position: relative;
    z-index: 2;
    border-radius: 24px;
    overflow: visible; /* Щоб було видно плаваючу картку */
}

.hero__img {
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    /* Для анімації */
    opacity: 0;
    transform: scale(0.9);
}

/* Декоративні шейпи */
.hero__shape {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.hero__shape--1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, rgba(67, 56, 202, 0.1), rgba(45, 212, 191, 0.1));
    top: -20px;
    right: -20px;
}

.hero__shape--2 {
    width: 200px;
    height: 200px;
    background: rgba(45, 212, 191, 0.1);
    bottom: -40px;
    left: -40px;
}

.hero__floating-card {
    position: absolute;
    bottom: 40px;
    left: -30px;
    background: white;
    padding: 15px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
    font-weight: 600;
    color: var(--color-heading);
    /* Для анімації */
    opacity: 0;
    transform: translateY(20px);
}

.hero__floating-card i {
    color: var(--color-accent);
}

/* Адаптивність */
@media (max-width: 992px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero__badge {
        margin: 0 auto 24px;
    }
    
    .hero__subtitle {
        margin: 0 auto 32px;
    }

    .hero__actions {
        justify-content: center;
        flex-direction: column;
    }

    .hero__floating-card {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
    }
}

@media (max-width: 576px) {
    .hero__title {
        font-size: 32px;
    }
}

/* --- COMMON SECTION STYLES --- */
.section {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-desc {
    margin-bottom: 20px;
    color: #64748b;
    font-size: 16px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-subtitle {
    font-size: 18px;
    color: #64748b;
}

.highlight-badge {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    background-color: #fff1f2;
    color: #e11d48; /* Rose color for urgency */
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid #fecdd3;
}

/* --- ABOUT SECTION --- */
.about {
    background-color: var(--color-white);
}

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

.about__image-box {
    position: relative;
}

.about__img {
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about__stat {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--color-primary);
    padding: 30px;
    border-radius: 20px;
    color: var(--color-white);
    box-shadow: 0 20px 40px rgba(67, 56, 202, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about__stat-number {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 5px;
}

.about__stat-text {
    font-size: 14px;
    font-weight: 500;
}

.about__list {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.about__item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--color-heading);
}

.about__item i {
    color: var(--color-accent);
    width: 20px;
}

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

.btn--outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* --- FEATURES SECTION --- */
.features {
    background-color: #f1f5f9; /* Трохи темніший за основний фон */
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(45, 212, 191, 0.3);
}

.feature-card__icon {
    width: 60px;
    height: 60px;
    background-color: rgba(67, 56, 202, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-primary);
    transition: var(--transition);
}

.feature-card:hover .feature-card__icon {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1) rotate(5deg);
}

.feature-card__title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-heading);
}

.feature-card__desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

/* --- ANIMATION UTILS --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .about__container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about__image-box {
        order: -1; /* Image on top on mobile */
        max-width: 500px;
        margin: 0 auto;
    }
}

/* --- LEARNING SECTION (STEPS) --- */
.learning {
    background-color: var(--color-white);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    margin-bottom: 50px;
}

/* З'єднувальна лінія (Desktop) */
.steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-primary) 100%);
    z-index: 0;
    opacity: 0.3;
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
    background-color: var(--color-white); /* Щоб перекрити лінію, якщо треба, або просто фон */
    padding: 0 15px;
}

.step__marker {
    width: 50px;
    height: 50px;
    background-color: var(--color-white);
    border: 2px solid var(--color-accent);
    color: var(--color-heading);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    margin: 0 auto 20px;
    box-shadow: 0 0 0 8px var(--color-white); /* Відступ від лінії */
    transition: var(--transition);
}

.step:hover .step__marker {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: scale(1.1);
}

.step__title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-heading);
}

.step__desc {
    font-size: 14px;
    color: #64748b;
}

.learning__action {
    text-align: center;
    margin-top: 40px;
}

/* --- REVIEWS SECTION --- */
.reviews {
    background-color: #f8fafc;
}

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.review-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.review-card__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent);
}

.review-card__name {
    font-weight: 700;
    color: var(--color-heading);
    font-size: 16px;
}

.review-card__role {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-card__text {
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 20px;
    font-size: 15px;
}

.review-card__rating {
    display: flex;
    gap: 4px;
}

.review-card__rating i {
    width: 16px;
    height: 16px;
    fill: #fbbf24; /* Amber color for stars */
    color: #fbbf24;
}

.reviews__banner {
    text-align: center;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 20px;
    border-radius: 12px;
    font-weight: 500;
}

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

.reviews__banner a:hover {
    text-decoration: none;
    color: var(--color-white);
}

/* --- RESPONSIVE FOR STEPS --- */
@media (max-width: 768px) {
    .steps {
        grid-template-columns: 1fr;
        gap: 0;
        padding-left: 20px; /* Місце для лінії */
    }

    .steps::before {
        width: 2px;
        height: 100%;
        top: 0;
        left: 44px; /* Вирівнювання по центру маркера */
        background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-primary) 100%);
    }

    .step {
        display: flex;
        text-align: left;
        gap: 20px;
        padding-bottom: 40px;
        padding-left: 0;
        background: transparent;
    }

    .step__marker {
        margin: 0;
        flex-shrink: 0;
    }
    
    .step__content {
        padding-top: 10px;
    }
}

/* --- CONTACT SECTION --- */
.contact {
    background: linear-gradient(135deg, var(--color-bg) 0%, #e0e7ff 100%);
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact__features {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--color-heading);
}

.contact__feature i {
    color: var(--color-accent);
}

/* --- FORM STYLES --- */
.contact__form-wrapper {
    background: var(--color-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(67, 56, 202, 0.15);
    position: relative;
    overflow: hidden;
}

.form__title {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--color-heading);
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.form__input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 16px;
    transition: var(--transition);
}

.form__input:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: #f8fafc;
}

.form__input.error {
    border-color: #ef4444;
}

.form__checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
}

.form__checkbox {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.form__checkbox-label {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

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

.form__btn {
    width: 100%;
}

/* Success Message */
.form__success {
    display: none; /* Hidden by default */
    text-align: center;
    padding: 40px 0;
    animation: fadeIn 0.5s ease;
}

.form__success.is-active {
    display: block;
}

.form__success-icon {
    width: 80px;
    height: 80px;
    background-color: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.form__success-icon i {
    width: 40px;
    height: 40px;
}

.form__success-title {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-heading);
    margin-bottom: 10px;
}

/* --- COOKIE POPUP --- */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    background-color: var(--color-white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 9999;
    border-left: 4px solid var(--color-accent);
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.cookie-popup__content p {
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--color-text);
}

.cookie-popup__content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-popup__btn {
    padding: 8px 20px;
    font-size: 14px;
    width: 100%;
}

/* --- POLICY PAGES STYLES (Standardized) --- */
.pages {
    padding: 120px 0 60px; /* More padding top because of fixed header */
    min-height: 80vh;
}

.pages h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--color-heading);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.pages h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-heading);
    margin: 30px 0 15px;
}

.pages p {
    margin-bottom: 15px;
    color: var(--color-text);
}

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

.pages li {
    margin-bottom: 8px;
    color: var(--color-text);
}

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

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

/* Responsive Contact */
@media (max-width: 768px) {
    .contact__container {
        grid-template-columns: 1fr;
    }
    
    .cookie-popup {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}