﻿/* --- 1. СБРОС СТИЛЕЙ И ОСНОВА --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
    width: 100%;
}

/* --- 2. ПЕРЕМЕННЫЕ ТЕМЫ --- */
:root {
    /* Светлая тема (теперь с вашим фоном) */
    --bg-color: #F8FAFC;
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-inner-bg: #F1F5F9; /* Чуть темнее для инпутов */
    --text-color: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    /*--link-color: #4361EE;*/
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    --blob-color-1: rgba(67, 97, 238, 0.12);
    --blob-color-2: rgba(60, 201, 240, 0.15);
    --primary-gradient: linear-gradient(135deg, #6F7BFF 0%, #8A6BFF 40%, #B46BFF 70%, #D97AA8 100%);
    --primary-gradient-hover: linear-gradient(135deg, #7F8BFF 0%, #9A7BFF 40%, #C47BFF 70%, #E98AB8 100%);
    --link-color: #6F7BFF;
    --bg-overlay: rgba(0, 0, 0, 0);
    /*--bg-image: url('/images/background-light.png');*/
    --bg-hero: url('/images/hero-light.PNG');
    --bg-calculator: url('/images/calc-light.png');
    --bg-whyus: url('/images/whyus-light.png');
    --bg-howitworks: url('/images/howitworks-light.png');
    --bg-docs: url('/images/docs-light.png');
    --gradient-mask-top: linear-gradient(180deg, var(--bg-color) 0%, rgba(248, 250, 252, 0) 100%);
    --gradient-mask-bottom: linear-gradient(0deg, var(--bg-color) 0%, rgba(248, 250, 252, 0) 100%);
}

[data-theme="dark"] {
    --bg-color: #0F172A;
    --card-bg: #1E293B;
    --card-inner-bg: #334155; /* Фон инпутов в темной теме */
    --text-color: #F8FAFC;
    --text-muted: #94A3B8;
    --border-color: #334155;
    /*--link-color: #3CC9F0;*/
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    --blob-opacity: 0.1; /* Уменьшаем яркость пятен в темной теме */
    --blob-color-1: rgba(67, 97, 238, 0.05);
    --blob-color-2: rgba(60, 201, 240, 0.05);
    --link-color: #8A6BFF;
    --bg-overlay: rgba(0, 0, 0, 0);
    /*--bg-image: url('/images/background-dark.png');*/
    --bg-hero: url('/images/hero-dark.png');
    --bg-calculator: url('/images/calc-dark.PNG');
    --bg-whyus: url('/images/whyus-dark.png');
    --bg-howitworks: url('/images/howitworks-dark.PNG');
    --bg-docs: url('/images/docs-dark.PNG');
    --gradient-mask-top: linear-gradient(180deg, var(--bg-color) 0%, rgba(15, 23, 42, 0) 100%);
    --gradient-mask-bottom: linear-gradient(0deg, var(--bg-color) 0%, rgba(15, 23, 42, 0) 100%);
}

.landing-page-container {
    width: 100%;
}

main:has(.landing-container) {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Секция 1: Hero */
.hero-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background: var(--bg-hero) no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: flex-start;
    padding: 20px 8% 150px 8%;
    z-index: 1;
    overflow: hidden;
}

.hero-content-wrapper {
    margin-top: 12px; /* Регулируй этот параметр, чтобы поднять/опустить весь блок */
    max-width: 850px;
}

.hero-badge-glass {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(138, 107, 255, 0.1);
    border-radius: 50px;
    color: #6F7BFF;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.hero-title-main {
    font-size: 64px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    text-align: left !important;
    /* Применяем градиент к тексту */
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description-large {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.85;
    margin-bottom: 40px; /* Отступ перед кнопками */
    max-width: 750px;
}

.btn-gradient-main {
    background: linear-gradient(90deg, #6F7BFF 0%, #D97AA8 100%);
    box-shadow: 0 10px 20px rgba(111, 123, 255, 0.3);
    border-radius: 16px;
    padding: 18px 34px;
    color: white;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}

    .btn-gradient-main:hover {
        transform: scale(1.05);
    }

.btn-glass-secondary {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 18px 34px;
    border-radius: 16px;
    color: #4361EE;
    font-weight: 700;
    text-decoration: none;
    margin-left: 15px;
}

.hero-mini-features {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.mini-feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-square {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

[data-theme="dark"] .icon-square {
    background: var(--card-inner-bg);
}

.icon-square i {
    font-size: 22px;
    color: #8A6BFF;
    padding: 0;
    background: none;
    box-shadow: none;
}


/* Секция 2: Калькулятор */
.calculator-view-section {
    min-height: 100vh;
    /* Уменьшаем верхний отступ с 80px/100px до 20px, чтобы поднять блок */
    padding: 100px 0 80px 0;
    position: relative;
    z-index: 1;
    background: var(--bg-calculator) no-repeat center center;
    background-size: cover;
    /* Убедись, что нет лишних margin-top */
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#calculator-target {
    scroll-margin-top: -80px;
}

/* --- МАСКИ ПЕРЕХОДА (УСИЛЕННЫЙ БЛЮР) --- */

/* Общие стили для масок (увеличили высоту для плавности) */
.transition-mask-bottom,
.transition-mask-top {
    position: absolute;
    left: 0;
    width: 100%;
    height: 300px; /* УВЕЛИЧИЛИ высоту зоны перехода для плавности (было 200px) */
    pointer-events: none;
    z-index: 2;
}

/* Маска внизу ПЕРВОЙ секции */
/* Усиленный стык с гарантированным блюром */
/* МЯГКИЙ ПЕРЕХОД МЕЖДУ СЕКЦИЯМИ */

/* МЯГКОЕ РАСТВОРЕНИЕ ВМЕСТО БЛЮРА */

.global-transition-bridge {
    position: relative;
    height: 1px;
    width: 100%;
    /* Опускаем мост ниже контента. 
       Обычно у секций z-index: 1, ставим мосту 2. */
    z-index: 2;
    pointer-events: none;
}

    .global-transition-bridge::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 200px;
        background: linear-gradient(to top, var(--bg-color) 0%, transparent 100%);
    }

    .global-transition-bridge::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 200px;
        background: linear-gradient(to bottom, var(--bg-color) 0%, transparent 100%);
    }

/* Калькулятор должен быть выше масок, чтобы текст не размывался */
.calculator-view-section .calculator-container {
    /* твои старые стили */
    position: relative;
    z-index: 3; /* Больше, чем у маски (2) */
    /* background: var(--card-bg); rgba(255, 255, 255, 0.8) */
}

    /* ИСПРАВЛЕНИЕ: Твой .full-screen-wrapper перекрывал всё белым цветом */
    .calculator-view-section .full-screen-wrapper {
        background: transparent !important; /* Делаем прозрачным, чтобы видеть картинку */
        min-height: auto;
        padding: 0;
    }

.btn-outline-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px 30px;
    border-radius: 14px;
    font-weight: 600;
    margin-left: 15px;
    cursor: pointer;
}

/* =========================================
   WHY US SECTION
========================================= */

.why-us-section {
    position: relative;
    padding: 140px 32px;
    overflow: hidden;
    background-image: var(--bg-whyus);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.why-us-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.why-us-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
}

/* LEFT */

.why-us-left {
    padding-top: 24px;
}

.why-us-badge {
    display: inline-flex;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    font-size: 13px;
    font-weight: 700;
    color: #7C5CFF;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
}

.why-us-title {
    font-size: 64px;
    line-height: 1.05;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 28px;
}

    .why-us-title span {
        background: var(--primary-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.why-us-description {
    max-width: 580px;
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-muted);
}

/* TOP CARDS */

.why-us-top-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.why-card {
    position: relative;
    padding: 38px;
    border-radius: 32px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 10px 50px rgba(0,0,0,0.05);
    min-height: 360px;
}

.why-card-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 32px;
    background: var(--primary-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
}

.why-card-icon {
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    margin-bottom: 28px;
    font-size: 38px;
    color: #8A6BFF;
    box-shadow: 0 10px 35px rgba(138,107,255,0.22), inset 0 1px 1px rgba(255,255,255,0.8);
}

.why-card h3 {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
}

.why-card p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* TAGS */

.why-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

    .why-tags span {
        padding: 0;
        background: var(--primary-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: transparent;
        font-size: 14px;
        font-weight: 700;
        box-shadow: none;
    }

/* PLATFORMS */

.why-platforms {
    display: flex;
    align-items: center;
    gap: 14px;
}

.platform-logo-card {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(138,107,255,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .platform-logo-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(138,107,255,0.18);
    }

    .platform-logo-card img {
        width: 28px;
        height: 28px;
        object-fit: contain;
    }

.platform-more {
    font-size: 24px;
    font-weight: 700;
    color: #8A6BFF;
}   

/* BOTTOM GRID */

.why-us-grid {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.why-mini-card {
    padding: 34px 30px;
    border-radius: 28px;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.45);
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

.why-mini-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: var(--card-bg);
    margin-bottom: 24px;
    font-size: 30px;
    color: #8A6BFF;
    box-shadow: 0 8px 28px rgba(138,107,255,0.18), inset 0 1px 1px rgba(255,255,255,0.7);
}

.why-mini-card h4 {
    font-size: 22px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 18px;
}

.why-mini-card p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
}

.why-card,
.why-mini-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

    .why-card:hover,
    .why-mini-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 25px 60px rgba(111,123,255,0.18);
    }

.why-us-top-cards {
    align-items: stretch;
}

.why-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 1200px) {

    .why-us-container {
        grid-template-columns: 1fr;
    }

    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-column: auto;
    }
}

@media (max-width: 768px) {

    .why-us-section {
        padding: 80px 20px;
    }

    .why-us-title {
        font-size: 42px;
    }

    .why-us-description {
        font-size: 16px;
    }

    .why-us-top-cards {
        grid-template-columns: 1fr;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .why-card,
    .why-mini-card {
        padding: 28px;
    }

        .why-card h3 {
            font-size: 28px;
        }
}

@media (max-width: 480px) {

    .why-us-title {
        font-size: 34px;
    }

    .why-card h3 {
        font-size: 24px;
    }

    .why-mini-card h4 {
        font-size: 20px;
    }
}

/* =========================================
   HOW IT WORKS
========================================= */

.how-it-works-section {
    position: relative;
    overflow: hidden;
    padding: 140px 0;
    background: var(--bg-howitworks) no-repeat center center;
    background-size: cover;
}

.how-it-works-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.how-it-works-container {
    position: relative;
    z-index: 2;
    width: min(1400px, calc(100% - 48px));
    margin: 0 auto;
}

/* TOP */

.how-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
    margin-bottom: 110px;
}

.how-top-left {
    max-width: 760px;
}

.how-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--card-bg);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.35);
    color: #7B61FF;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    margin-bottom: 28px;
}

.how-title {
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    color: var(--text-color);
    margin-bottom: 28px;
    letter-spacing: -0.03em;
}

    .how-title span {
        background: var(--primary-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.how-description {
    max-width: 760px;
    color: var(--text-muted);
    font-size: 22px;
    line-height: 1.8;
}

/* VISUAL CARD */

.how-visual-card {
    position: relative;
    width: 360px;
    height: 250px;
    padding: 30px;
    border-radius: 34px;
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 30px 80px rgba(124, 92, 255, 0.12), inset 0 1px 0 rgba(255,255,255,0.7);
    transform: rotate(8deg);
}

.how-chart-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(123, 97, 255, 0.12);
    color: #7B61FF;
    font-weight: 800;
    font-size: 16px;
}

.how-chart-header {
    display: flex;
    flex-direction: column;
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 40px;
}

    .how-chart-header strong {
        color: var(--text-color);
        font-size: 38px;
        margin-top: 4px;
    }

.how-bars {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    height: 120px;
}

.bar {
    width: 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, #7B61FF 0%, #C084FC 100%);
    opacity: .55;
}

    .bar:nth-child(1) {
        height: 70px;
    }

    .bar:nth-child(2) {
        height: 120px;
    }

    .bar:nth-child(3) {
        height: 85px;
    }

    .bar:nth-child(4) {
        height: 110px;
    }

    .bar:nth-child(5) {
        height: 60px;
    }

    .bar:nth-child(6) {
        height: 95px;
    }

    .bar.active {
        opacity: 1;
    }

    .bar.pink {
        background: linear-gradient(180deg, #B46BFF 0%, #FF5EC4 100%);
    }

    .bar.orange {
        background: linear-gradient(180deg, #FF7B7B 0%, #FF9F43 100%);
    }

/* STEPS */

.how-steps-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.how-line {
    position: absolute;
    top: 100px;
    left: 10%;
    width: 80%;
    height: 2px;
    border-top: 2px dashed rgba(140, 120, 255, 0.4);
    z-index: 1;
}

.how-step {
    position: relative;
    z-index: 2;
    text-align: center;
}

.how-step-number {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 8px 30px rgba(124,92,255,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
    margin: 0 auto 2px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7B61FF;
    font-weight: 900;
    font-size: 20px;
}

.how-step-circle {
    width: 110px;
    height: 110px;
    margin: 0 auto 34px auto;
    border-radius: 50%;
    background: radial-gradient(circle at top, rgba(255,255,255,0.95), rgba(255,255,255,0.75));
    border: 1px solid rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 30px 60px rgba(124,92,255,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
    transition: .35s ease;
}

    .how-step-circle img {
        width: 130px;
        height: auto;
    }

.how-step:hover .how-step-circle {
    transform: translateY(-10px);
}

.how-step h3 {
    color: var(--text-color);
    font-size: 34px;
    margin-bottom: 20px;
    font-weight: 800;
}

.how-step p {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.8;
    max-width: 320px;
    margin: 0 auto;
}

/* BOTTOM CARD */

.how-bottom-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 34px 40px;
    border-radius: 34px;
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 30px 80px rgba(124,92,255,0.08), inset 0 1px 0 rgba(255,255,255,0.7);
}

.how-bottom-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.how-bottom-icon {
    width: 78px;
    height: 78px;
    border-radius: 24px;
    background: rgba(123,97,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8A6BFF;
    font-size: 34px;
    box-shadow: 0 10px 30px rgba(138,107,255,0.15);
}

.how-bottom-left h4 {
    color: var(--text-color);
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 800;
}

.how-bottom-left p {
    color: var(--text-muted);
    font-size: 17px;
}

.how-bottom-features {
    display: flex;
    align-items: center;
    gap: 34px;
}

.how-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-weight: 600;
    max-width: 220px;
}

    .how-feature i {
        font-size: 24px;
        background: var(--primary-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

/* =========================================
   MOBILE
========================================= */

@media (max-width: 1200px) {

    .how-it-works-section {
        background: none;
    }

    .how-top {
        flex-direction: column;
    }

    .how-visual-card {
        transform: none;
    }

    .how-steps-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .how-line {
        display: none;
    }

    .how-bottom-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {

    .how-it-works-section {
        padding: 90px 0;
    }

    .how-it-works-container {
        width: calc(100% - 32px);
    }

    .how-title {
        font-size: 42px;
    }

    .how-description {
        font-size: 18px;
        line-height: 1.7;
    }

    .how-visual-card {
        width: 100%;
        height: auto;
        padding: 28px;
    }

    .how-chart-header strong {
        font-size: 32px;
    }

    .how-steps-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .how-step-circle {
        width: 110px;
        height: 110px;
    }

        .how-step-circle img {
            width: 105px;
        }

    .how-step h3 {
        font-size: 28px;
    }

    .how-step p {
        font-size: 16px;
    }

    .how-bottom-features {
        flex-direction: column;
        align-items: flex-start;
    }

    .how-bottom-left {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================
   DOCUMENTS SECTION
========================================= */

.documents-section {
    position: relative;
    overflow: hidden;
    padding: 140px 40px;
    background: var(--bg-docs) no-repeat center center;
    background-size: cover;
}

.documents-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.documents-container {
    position: relative;
    z-index: 2;
    max-width: 1450px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

/* LEFT */

.documents-badge {
    display: inline-flex;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    font-size: 13px;
    font-weight: 800;
    color: #7B61FF;
    margin-bottom: 28px;
}

.documents-title {
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    color: var(--text-color);
    margin-bottom: 28px;
}

    .documents-title span {
        background: var(--primary-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.documents-description {
    max-width: 650px;
    font-size: 22px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 50px;
}

/* FEATURES */

.documents-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.documents-feature {
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

.documents-feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8A6BFF;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: 0 10px 35px rgba(138,107,255,0.12);
}

.documents-feature h4 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 10px;
}

.documents-feature p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-muted);
}

/* RIGHT */

.documents-right {
    position: relative;
    height: 700px;
}

/* CARDS */

.doc-card {
    position: absolute;
    border-radius: 36px;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: 0 30px 80px rgba(124,92,255,0.12);
    padding: 34px;
    transition: transform .35s ease;
}

    .doc-card:hover {
        transform: translateY(-8px);
    }

.doc-main-card {
    width: 430px;
    height: 520px;
    top: 40px;
    left: 40px;
    transform: rotate(-2deg);
}

.doc-secondary-card {
    width: 260px;
    height: 430px;
    top: 120px;
    right: 80px;
    transform: rotate(4deg);
}

.doc-third-card {
    width: 240px;
    height: 390px;
    top: 220px;
    right: -20px;
    transform: rotate(6deg);
}

.doc-card-icon {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    background: rgba(123,97,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7B61FF;
    font-size: 34px;
    margin-bottom: 30px;
}

    .doc-card-icon.purple {
        color: #C15EFF;
    }

.doc-card h3 {
    font-size: 46px;
    font-weight: 900;
    color: var(--text-color);
    margin-bottom: 18px;
}

.doc-secondary-card h3,
.doc-third-card h3 {
    font-size: 38px;
}

.doc-card p {
    font-size: 22px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 34px;
}

.doc-secondary-card p,
.doc-third-card p {
    font-size: 18px;
}

/* LINES */

.doc-lines {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 34px;
}

    .doc-lines span {
        display: block;
        height: 14px;
        border-radius: 999px;
        background: rgba(15,23,42,0.06);
    }

        .doc-lines span:nth-child(1) {
            width: 100%;
        }

        .doc-lines span:nth-child(2) {
            width: 82%;
        }

        .doc-lines span:nth-child(3) {
            width: 60%;
        }

    .doc-lines.small span {
        height: 10px;
    }

/* STATUS */

.doc-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
}

    .doc-status.ready {
        background: rgba(123,97,255,0.12);
        color: #7B61FF;
    }

    .doc-status.pending {
        background: rgba(123,97,255,0.1);
        color: #7B61FF;
    }

    .doc-status.online {
        background: rgba(255,94,196,0.12);
        color: #FF5EC4;
    }

/* DARK */

[data-theme="dark"] .doc-card,
[data-theme="dark"] .documents-bottom-item,
[data-theme="dark"] .documents-feature-icon {
    background: rgba(30,41,59,0.72);
    border-color: rgba(255,255,255,0.08);
}

/* MOBILE */

@media (max-width: 1200px) {

    .documents-section {
        padding: 90px 20px;
        background: none;
    }

    .documents-container {
        grid-template-columns: 1fr;
    }

    .documents-right {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .doc-card {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: auto;
        top: auto;
        left: auto;
        right: auto;
        transform: none !important;
    }

    .documents-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .documents-title {
        font-size: 42px;
    }

    .documents-description {
        font-size: 18px;
    }

    .documents-feature h4 {
        font-size: 22px;
    }

    .documents-feature p {
        font-size: 16px;
    }

    .doc-card h3 {
        font-size: 34px;
    }

    .doc-card p {
        font-size: 16px;
    }

    .documents-bottom-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================
   CONTACT FORM SECTION
========================================= */
.contact-form-section {
    position: relative;
    padding: 100px 20px;
    z-index: 3;
    display: flex;
    justify-content: center;
    background: var(--bg-whyus);
}

.contact-form-container {
    max-width: 900px;
    width: 100%;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 50px;
    box-shadow: var(--shadow-lg);
}

.contact-form-header {
    text-align: center;
    margin-bottom: 40px;
}

    .contact-form-header h2 {
        font-size: 36px;
        font-weight: 800;
        margin-bottom: 12px;
        color: var(--text-color);
    }

    .contact-form-header p {
        font-size: 18px;
        color: var(--text-muted);
    }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .form-group.full-width {
        grid-column: span 2;
    }

    .form-group label {
        font-size: 14px;
        font-weight: 600;
        color: var(--text-color);
    }

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--card-inner-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .form-select option {
        background: var(--card-bg);
        color: var(--text-color);
    }

    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        border-color: #6F7BFF;
        box-shadow: 0 0 0 3px rgba(111, 123, 255, 0.2);
    }

.form-submit-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.submit-contact-btn {
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 320px;
    text-align: center;
}

.form-status-message {
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
}

    .form-status-message.success {
        background: rgba(25, 135, 84, 0.15);
        color: #198754;
        border: 1px solid #198754;
    }

    .form-status-message.error {
        background: rgba(220, 53, 69, 0.15);
        color: #dc3545;
        border: 1px solid #dc3545;
    }

/* =========================================
   ФОРМА И ПЛАТФОРМЫ (РЕКЛАМНЫЙ КАБИНЕТ)
========================================= */
.platforms-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted, #8a8a8a);
    margin-bottom: 12px;
    display: block;
}

.platforms-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Элемент выбора площадки */
.platform-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

    .platform-chip input[type="checkbox"] {
        display: none; /* Скрываем дефолтный чекбокс */
    }

/* Кастомный круглый маркер */
.chip-custom {
    width: 20px;
    height: 20px;
    border: 1.5px solid #cbd5e1;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chip-text {
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
}

/* Состояния при ховере и выборе */
.platform-chip:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.platform-chip input[type="checkbox"]:checked + .chip-custom {
    border-color: #4f46e5;
    background-color: #4f46e5;
}

    .platform-chip input[type="checkbox"]:checked + .chip-custom::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 6px;
        height: 6px;
        background: #ffffff;
        border-radius: 50%;
    }

.platform-chip input[type="checkbox"]:checked ~ .chip-text {
    color: #0f172a;
    font-weight: 600;
}

/* =========================================
   АДАПТИВНОСТЬ (DESKTOP / TABLET / MOBILE)
========================================= */

/* Планшеты (≤ 992px) */
@media (max-width: 992px) {
    .contact-form-container {
        padding: 40px 30px;
        max-width: 100%;
    }

    .contact-form-header h2 {
        font-size: 28px;
    }
}

/* Смартфоны (≤ 768px) */
@media (max-width: 768px) {
    .contact-form-section {
        padding: 40px 15px;
    }

    .contact-form-container {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .form-row {
        grid-template-columns: 1fr; /* Поля становятся в одну колонку */
        gap: 16px;
    }

    .platforms-grid {
        gap: 8px;
    }

    .platform-chip {
        padding: 8px 16px; /* Чуть более компактные кнопки для мобилок */
        width: calc(50% - 4px); /* По 2 чипса в ряд на мобильном */
        justify-content: flex-start;
    }

    .chip-text {
        font-size: 14px;
    }

    .submit-contact-btn {
        width: 100%;
        max-width: 100%;
    }
}

/* Маленькие смартфоны (≤ 480px) */
@media (max-width: 480px) {
    .platform-chip {
        width: 100%; /* По 1 чипсу на весь экран */
    }
}

/* Плавный скролл */
html {
    scroll-behavior: smooth;
}

/* Оформление текста Hero */
.hero-title {
    font-size: 52px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    max-width: 500px;
    margin-bottom: 35px;
    color: var(--text-muted);
}

/* Градиентный текст для ссылок при наведении или активных состояний */
header nav a:hover,
.footer-section a:hover,
.admin-footer a {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

/* Градиентное подчеркивание при наведении */
header nav a::after {
    background: var(--primary-gradient) !important;
}

/* Универсальный стиль для всех основных кнопок (Регистрация, Отправить, Активные переключатели) */
.register-btn,
.submit-btn,
.platform-btn.active,
.currency-btn.active {
    background: var(--primary-gradient) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(138, 107, 255, 0.3);
    transition: all 0.3s ease;
}

    .register-btn:hover,
    .submit-btn:hover,
    .platform-btn.active:hover {
        background: var(--primary-gradient-hover) !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(138, 107, 255, 0.4);
    }

.amount-input:focus {
    border-color: #6F7BFF;
    box-shadow: 0 0 0 3px rgba(111, 123, 255, 0.2);
}

/* Скроллбар тоже подстраиваем под палитру */
::-webkit-scrollbar-thumb {
    background: #8A6BFF; /* В некоторых браузерах сработает только сплошной цвет, тогда используйте #8A6BFF */
    border-radius: 10px;
}

.avatar {
    background: var(--primary-gradient);
    border: 2px solid var(--card-bg);
}

/* Текст "Всего к оплате" */
.result-item.total span:last-child {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* Добавлено для стандарта */
    display: inline-block; /* Важно для корректного отображения градиента */
    font-weight: 800;
}

/* Иконка уведомлений (колокольчик) */
/* Фикс градиента для колокольчика */
.notification-btn i {
    background: var(--primary-gradient) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important; /* Убираем базовый цвет полностью */
    display: inline-block !important;
    font-style: normal; /* Сброс для иконок шрифта */
}

/* Убираем изменение цвета при наведении, чтобы не ломать градиент */
.notification-btn:hover {
    background: var(--card-inner-bg); /* Оставляем только фон кнопки */
    color: transparent !important;
}

/* Переключатель темы (солнце/луна) */
.theme-toggle i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Также сделаем градиентной границу кнопки переключения темы при наведении */
.theme-toggle:hover {
    border-color: transparent;
    box-shadow: 0 0 0 1px #8A6BFF, var(--shadow-md);
}

.user-menu a i,
.user-menu button i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    width: 20px; /* Фиксируем ширину для ровного списка */
    text-align: center;
}

/* Глобальные настройки фона для страниц авторизации */
.auth-page-wrapper {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Важно, чтобы круги не создавали скролл */
}

/* Эффект перелива (Blobs) */
.blob {
    position: absolute;
    width: 800px; /* Увеличили размер для мягкости */
    height: 800px;
    border-radius: 50%;
    filter: blur(140px); /* Мощное размытие */
    z-index: 0;
    pointer-events: none;
}

.blob-1 {
    background: var(--blob-color-1);
    top: -200px;
    right: -100px;
}

.blob-2 {
    background: var(--blob-color-2);
    bottom: -200px;
    left: -100px;
}

/* Настройка для Темной темы */
[data-theme="dark"] .auth-page-wrapper {
    background-color: #0F172A !important;
}

[data-theme="dark"] .auth-blob {
    opacity: 0.1; /* В темной теме делаем пятна тусклее */
}

/* --- 3. ОБЩИЕ СТИЛИ ТЕЛА --- */
body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    transition: background 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased; /* Делает шрифт более гладким */
}

main {
    flex: 1 0 auto;
}

/* --- 4. HEADER (ШАПКА) --- */
header {
    width: 100%;
    padding: 0 4% !important;
    height: 85px !important; /* Увеличил до 90px и добавил принудительное применение */
    min-height: 85px !important; /* На всякий случай фиксируем минимальную высоту */
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start; /* Контент начинается слева (логотип) */
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

    /* Логотип */
    header .logo {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

        header .logo a {
            font-family: 'Playfair Display', serif;
            font-weight: 700;
            font-size: 30px; /* Было 24px */
            font-style: italic;
            color: var(--text-color);
            text-decoration: none;
            transition: color 0.3s;
        }

.logo-img {
    height: 55px; /* Было 42px */
    width: auto;
    margin-right: 15px;
    vertical-align: middle;
}

/* Навигация */
header nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 35px;
}

    header nav a {
        color: var(--text-color);
        text-decoration: none;
        font-weight: 600; /* Сделали чуть жирнее */
        font-size: 17px; /* Было 15px */
        transition: all 0.3s ease;
        position: relative;
    }

        header nav a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -5px;
            left: 0;
            background-color: var(--link-color);
            transition: width 0.3s;
        }

        header nav a:hover::after {
            width: 100%;
        }

        header nav a:hover {
            color: var(--link-color);
        }

    /* Базовый стиль ссылки (уже есть у тебя, просто проверь) */
    header nav a {
        position: relative;
        text-decoration: none;
        color: var(--text-color);
        font-weight: 600;
        transition: all 0.3s ease;
        padding-bottom: 5px;
    }

        /* Активная ссылка и состояние при наведении */
        header nav a.nav-link-active,
        header nav a:hover {
            color: var(--link-color) !important;
        }

        /* Линия под активной ссылкой и при наведении */
        header nav a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 3px;
            bottom: -5px; /* Опускаем линию чуть ниже текста */
            left: 0;
            background: var(--primary-gradient) !important;
            border-radius: 10px;
            transition: width 0.3s ease;
        }

        /* Если ссылка активна — ширина линии 100% */
        header nav a.nav-link-active::after {
            width: 100%;
        }

        /* При наведении на неактивные тоже красиво выезжает */
        header nav a:hover::after {
            width: 100%;
        }

        header nav a.has-badge::after {
            bottom: -5px;
        }

/* Кнопка переключения тем */
.theme-toggle {
    background: var(--card-inner-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 20px; /* Увеличили размер кнопки */
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px; /* Увеличили шрифт */
    font-weight: 600;
    transition: all 0.3s ease;
}

    .theme-toggle i {
        font-size: 18px; /* Иконка луны/солнца стала больше */
    }

    .theme-toggle:hover {
        border-color: var(--link-color);
        background: var(--card-bg);
        transform: scale(1.05); /* Легкое увеличение при наведении */
    }

/* --- 5. КНОПКИ АВТОРИЗАЦИИ --- */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.login-btn {
    color: var(--text-color) !important;
    text-decoration: none;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

    .login-btn:hover {
        color: var(--link-color) !important;
        text-decoration: none !important;
    }

.register-btn {
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

    .register-btn:hover {
        filter: brightness(1.1);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
        text-decoration: none !important;
    }

/* --- 6. ОСНОВНОЙ КОНТЕНТ (MAIN) --- */
main {
    flex: 1 0 auto;
    width: 100%; /* Теперь main всегда на всю ширину */
    /* Убираем жесткие margin и padding здесь */
}

/* Создаем отдельный класс для страниц, где нужен порядок и узкий контент (текстовые страницы) */
.content-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

h1 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

/* --- 7. ФУТЕР (MAIN FOOTER) --- */
.main-footer {
    flex-shrink: 0;
    background-color: var(--footer-bg);
    color: var(--text-color);
    padding: 60px 0 30px;
    /*margin-top: 60px;*/
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
}

.footer-section {
    flex: 0 1 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

    .footer-section h4 {
        color: var(--link-color);
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 20px;
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }

    .footer-section p {
        margin-bottom: 12px;
        color: var(--text-color);
        opacity: 0.9; 
        line-height: 1.6;
        font-size: 1rem;
    }

    .footer-section a {
        color: var(--text-color);
        text-decoration: none;
        transition: color 0.3s ease;
        font-weight: 500;
    }

        .footer-section a:hover {
            color: var(--link-color);
        }

/* Социальные сети */
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    justify-content: center;
}

    .social-links a {
        font-size: 1.8rem;
        color: var(--text-color);
        transition: all 0.3s ease;
    }

        .social-links a:hover {
            transform: translateY(-5px);
            color: var(--link-color);
        }

.highlight {
    color: #ff4d4d;
    font-weight: 700;
}

.footer-bottom {
    text-align: center;
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 25px 20px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Утилиты */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Адаптивность футера */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        align-items: center;
    }
}
/* --- 8. АДМИН И БИЛЛИНГ ФУТЕРЫ --- */
.admin-footer, .billing-footer {
    background: var(--footer-bg);
    color: var(--text-muted);
    padding: 25px 40px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 14px;
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

    .admin-footer a {
        color: var(--link-color);
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
    }

        .admin-footer a:hover {
            opacity: 0.8;
            text-decoration: underline;
        }

    .admin-footer p::before {
        content: "🛡️";
        margin-right: 8px;
    }

/* --- 9. КАЛЬКУЛЯТОР (ОСНОВНОЙ БЛОК) --- */
.calculator-container {
    position: relative; /* Обязательно для работы z-index */
    z-index: 999 !important; /* Ставим очень высокое значение, чтобы быть над всеми масками */
    isolation: isolate;
    margin-top: 10px !important;
    max-width: 1000px;
    margin: 20px auto;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

    .calculator-container h1 {
        font-size: 28px;
        margin-bottom: 30px;
        color: var(--text-color);
    }

.calculator-warning {
    background: var(--card-inner-bg);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.calculator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.calculator-left, .calculator-right {
    background: var(--card-inner-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

/* Заголовки внутри калькулятора */
.ad-platforms h3, .amount-section h3 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
}

/* Кнопки платформ и валют */
.platform-buttons, .currency-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.platform-btn, .currency-btn {
    padding: 12px 15px;
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 14px;
    flex: 1;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .platform-btn:hover, .currency-btn:hover {
        border-color: var(--link-color);
        transform: translateY(-1px);
    }

    .platform-btn.active, .currency-btn.active {
        background: var(--link-color);
        color: #fff;
        border-color: var(--link-color);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }

/* Поле ввода суммы */
.amount-input-container {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.amount-input {
    flex: 2;
    padding: 12px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .amount-input:focus {
        border-color: var(--link-color);
        box-shadow: 0 0 0 3px rgba(111, 123, 255, 0.2);
        outline: none;
    }

/* Инфо-тексты */
.exchange-rate, .result-note {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.commission-info {
    color: var(--link-color);
    font-weight: 600;
    font-size: 14px;
}

/* Результаты */
.result-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

    .result-item.highlighted {
        color: var(--link-color);
        font-weight: 700;
        font-size: 1.1rem;
    }

    .result-item.total {
        border-bottom: none;
        font-size: 1.3rem;
        font-weight: 800;
        color: var(--text-color);
        margin-top: 10px;
    }

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--link-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

    .submit-btn:hover {
        filter: brightness(1.1);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    }

/* --- 10. БЭЙДЖИ И АНИМАЦИИ --- */
.has-badge {
    position: relative;
}

    .has-badge::before {
        content: "Новое";
        position: absolute;
        top: -18px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--primary-gradient);
        color: white !important;
        -webkit-text-fill-color: white !important;
        padding: 2px 8px;
        border-radius: 8px;
        font-size: 9px;
        font-weight: 800;
        text-transform: uppercase;
        white-space: nowrap;
        animation: pulseCentered 2s infinite;
        z-index: 10;
    }

/* Обновленная анимация с сохранением центрирования */
@keyframes pulseCentered {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) scale(1.1);
        opacity: 0.9;
    }

    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}

/* Адаптивность калькулятора */
@media (max-width: 850px) {
    .calculator-content {
        grid-template-columns: 1fr;
    }

    .amount-input-container {
        flex-direction: column;
    }

    .currency-buttons {
        width: 100%;
    }

    .currency-btn {
        flex: 1;
    }
}

/* --- 11. ВЫПАДАЮЩЕЕ МЕНЮ ПОЛЬЗОВАТЕЛЯ И УВЕДОМЛЕНИЯ --- */
.user-dropdown {
    position: relative;
    margin-left: auto; /* МАГИЯ: это прижимает весь блок пользователя вправо */
    display: flex;
    align-items: center;
    gap: 15px; /* Расстояние между уведомлениями и профилем */
}

.user-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card-inner-bg); /* Добавил легкий фон кнопке, чтобы она выделялась */
    border: 1px solid var(--border-color);
    cursor: pointer;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    padding: 6px 16px; /* Сделал кнопку профиля чуть больше */
    border-radius: 50px; /* Овальная форма в стиле Apple/Google */
    transition: all 0.3s ease;
}

    .user-toggle:hover {
        background: var(--card-bg);
        box-shadow: var(--shadow-sm);
    }

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--link-color);
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.chevron {
    font-size: 10px;
    opacity: 0.6;
    transition: transform 0.3s ease;
}

/* Основной контейнер меню */
.user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0; /* Меню открывается ровно под кнопкой по правому краю */
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 6px;
    display: none;
    flex-direction: column;
    min-width: 220px; /* Сделал меню чуть шире */
    z-index: 1100;
    box-shadow: var(--shadow-md);
}

    .user-menu.show {
        display: flex;
        animation: fadeInTop 0.2s ease-out;
    }

    /* Элементы списка внутри меню */
    .user-menu a,
    .user-menu button {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 10px 14px;
        border: none;
        background: none;
        color: var(--text-color) !important;
        font-size: 14px;
        font-weight: 500;
        text-align: left;
        text-decoration: none;
        cursor: pointer;
        border-radius: 10px;
        transition: all 0.2s ease;
    }

        .user-menu a:hover,
        .user-menu button:hover {
            background: var(--card-inner-bg) !important;
            color: var(--link-color) !important;
        }

/* Специальный стиль для кнопки выхода */
.logout-item {
    margin-top: 4px;
    border-top: 1px solid var(--border-color) !important;
    border-radius: 0 0 10px 10px !important;
}

    .logout-item:hover {
        background: rgba(239, 68, 68, 0.1) !important; /* Нежно-красный фон */
        color: #ef4444 !important; /* Ярко-красный текст */
    }

/* Анимация появления */
@keyframes fadeInTop {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Колокольчик уведомлений (если есть) */
.notification-btn {
    position: relative;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s;
}

    .notification-btn:hover {
        background: var(--card-inner-bg);
    }

.badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid var(--card-bg);
}

/* --- Красивый скроллбар --- */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--border-color); /* Цвет ползунка зависит от темы */
    border-radius: 10px;
}

    .custom-scrollbar::-webkit-scrollbar-thumb:hover {
        background: var(--text-muted);
    }

/* --- Эффект наведения на уведомление --- */
.notification-item-row:hover {
    background-color: var(--card-inner-bg) !important;
}

/* Фикс для стрелочки или выпадающего меню, если оно было жестко темным */
.user-menu {
    border-radius: 12px !important;
    overflow: hidden;
}

/*--------------------Для главной страницы---------------------------------*/
/* 1. Убираем ограничения с родительского контейнера, если внутри есть наш фон */
main:has(.full-screen-wrapper) {
    display: grid !important;
    grid-template-columns: 100%;
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 2. Сама обертка */
.full-screen-wrapper {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 85px);
    background: linear-gradient(var(--bg-overlay), var(--bg-overlay)), var(--bg-image) no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background 0.4s ease-in-out;
}

    /* 3. Блобы внутри */
    .full-screen-wrapper .blob {
        position: absolute;
        width: 800px;
        height: 800px;
        border-radius: 50%;
        filter: blur(140px);
        z-index: 0;
        pointer-events: none;
    }

    .full-screen-wrapper .blob-1 {
        background: var(--blob-color-1);
        top: -100px;
        right: -100px;
    }

    .full-screen-wrapper .blob-2 {
        background: var(--blob-color-2);
        bottom: -100px;
        left: -100px;
    }

/* Если внутри main есть полноэкранный контент, отменяем центрирование и ширину */
main:has(.full-screen-wrapper),
main:has(.auth-page-wrapper) {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

main:has(.full-screen-wrapper),
main:has(.auth-page-wrapper) {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* Обертка, которая займет всё пространство */
.full-screen-wrapper {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 85px); /* Минус высота шапки */
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Чтобы блобы не создавали скролл */
    padding: 40px 20px;
}

    /* Позиционируем блобы так, чтобы они не раздували страницу */
    .full-screen-wrapper .blob {
        position: absolute;
        width: 800px;
        height: 800px;
        border-radius: 50%;
        filter: blur(140px);
        z-index: 0;
        pointer-events: none;
    }

.blob-1 {
    background: var(--blob-color-1);
    top: -200px;
    right: -100px;
}

.blob-2 {
    background: var(--blob-color-2);
    bottom: -200px;
    left: -100px;
}

/* Убираем отступ сверху у всех видов футеров, если они идут сразу после градиента */
main:has(.full-screen-wrapper) + footer,
main:has(.full-screen-wrapper) + .main-footer,
main:has(.full-screen-wrapper) + .billing-footer {
    margin-top: 0 !important;
}

/* Дополнительно: если футер находится ВНУТРИ body, но ВНЕ main */
body:has(.full-screen-wrapper) .main-footer {
    margin-top: 0 !important;
}

/* ---------------------- ГЛОБАЛЬНЫЙ КАСТОМНЫЙ СКРОЛЛБАР ---------------------------- */

/* 1. Ширина скроллбара */
::-webkit-scrollbar {
    width: 8px; /* Ширина для вертикального */
    height: 8px; /* Высота для горизонтального */
}

/* 2. Фон дорожки (трека), по которому двигается ползунок */
::-webkit-scrollbar-track {
    background: transparent; /* Оставляем прозрачным, чтобы не выбивался из дизайна */
}

/* 3. Сам ползунок */
::-webkit-scrollbar-thumb {
    background: #8A6BFF; /* Ваш фирменный синий цвет */
    border-radius: 10px; /* Закругленные края */
    border: 2px solid transparent; /* Отступ от краев дорожки, если нужно */
    background-clip: content-box;
}

    /* 4. Эффект при наведении на ползунок */
    ::-webkit-scrollbar-thumb:hover {
        background: #364fc7; /* Темно-синий при наведении */
    }

/* 5. Для Firefox (у него своя система стилизации) */
* {
    scrollbar-width: thin;
    scrollbar-color: #8A6BFF transparent; /* Для Firefox */
}

/* --- АДАПТИВНОСТЬ --- */

/* 1. Планшеты и малые ноутбуки (до 1024px) */
@media (max-width: 1024px) {
    .page-title {
        font-size: 2.2rem; /* Немного уменьшаем заголовок */
    }

    .pricing-grid {
        gap: 20px;
    }

    .info-sections-grid {
        grid-template-columns: 1fr; /* Блоки становятся друг под другом */
    }
}

/* 2. Планшеты (до 768px) */
@media (max-width: 768px) {
    .subscriptions-page {
        padding: 40px 20px; /* Уменьшаем отступы по краям страницы */
    }

    .page-title {
        font-size: 1.8rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr; /* Тарифы идут строго в 1 колонку */
        max-width: 500px;
        margin: 30px auto 0;
    }

    .badge-info {
        font-size: 0.85rem;
        padding: 8px 15px;
    }
}

/* 3. Телефоны (до 480px) */
@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .sub-title {
        font-size: 0.9rem;
    }

    /* Уменьшаем внутренние отступы карточек на узких экранах */
    .pricing-card {
        padding: 20px;
    }

    .price-value {
        font-size: 1.8rem;
    }

    .glass-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .step-content h5 {
        font-size: 12px;
    }
}

/* =========================
   MOBILE HEADER
========================= */

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    cursor: pointer;
    margin-left: 20px;
    z-index: 2000;
}

    .burger-menu span {
        width: 24px;
        height: 2px;
        background: var(--text-color);
        border-radius: 10px;
        transition: 0.3s;
    }

@media (max-width: 992px) {

    /* Уменьшаем логотип */
    .logo-img {
        height: 40px;
    }

    /* Показываем бургер */
    .burger-menu {
        display: flex;
    }

    /* Мобильное меню */
    header nav {
        position: fixed;
        top: 85px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 85px);
        background: var(--card-bg);
        border-left: 1px solid var(--border-color);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        gap: 25px;
        transition: right 0.35s ease;
        z-index: 1500;
    }

        /* Открытое меню */
        header nav.active {
            right: 0;
        }

        /* Ссылки */
        header nav a {
            font-size: 18px;
        }

    /* AUTH */
    .auth-buttons {
        margin-left: auto;
    }

    .login-btn {
        display: none;
    }

    /* User */
    .user-name {
        display: none;
    }

    .user-toggle {
        padding: 6px 10px;
    }
}
/* =========================================
   HERO RESPONSIVE
========================================= */

@media (max-width: 1200px) {

    .hero-section {
        background: none;
    }
}

@media (max-width: 992px) {
    #notificationMenu {
        /* Принудительный сброс позиционирования */
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%); /* Центрирование */
        /* Размеры */
        width: 90% !important; /* Адаптивная ширина */
        max-width: 400px;
        max-height: 80vh !important;
        /* Внешний вид */
        box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
        border-radius: 12px;
        border: none !important;
        /* Поверх всего */
        z-index: 2000 !important;
        /* Скрываем по умолчанию (класс 'show' будет отвечать за видимость) */
        display: none !important;
    }

        /* Когда добавляется класс 'show', показываем меню */
        #notificationMenu.show {
            display: block !important;
            animation: fadeIn 0.2s ease;
        }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}


/* Планшеты */
@media (max-width: 992px) {

    .hero-section {
        position: relative;
        overflow: hidden;
        padding: 40px 24px 80px;
        min-height: auto;
    }

        /* Overlay */
        .hero-section::before {
            content: '';
            position: absolute;
            inset: 0;
           /* background: rgba(10, 10, 20, 0.18);
            backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);*/
            z-index: 1;
        }

    .hero-content-wrapper {
        position: relative;
        z-index: 2;
        max-width: 100%;
    }

    /* Glass block */
    .hero-text-glass {
        background: rgba(255, 255, 255, 0.72);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border: 1px solid rgba(255,255,255,0.45);
        border-radius: 24px;
        padding: 24px 22px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.08);
        margin-bottom: 24px;
    }

    .hero-title-main {
        font-size: 52px;
        line-height: 1.1;
        color: #111827;
        margin-bottom: 18px;
        word-break: break-word;
    }

    .hero-description-large {
        font-size: 18px;
        line-height: 1.7;
        color: #374151;
        max-width: 100%;
        margin-bottom: 0;
    }

    /* Кнопки */
    .hero-btns-group {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        width: 100%;
        margin-top: 28px;
    }

        .hero-btns-group a {
            width: 100%;
            text-align: center;
        }

    /* Features */
    .hero-mini-features {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
    }

    .mini-feature {
        width: calc(50% - 8px);
    }

    /* Убираем BR */
    .hero-br {
        display: none;
    }

    .btn-glass-secondary {
        margin-left: 0 !important;
    }
}

/* Телефоны */
@media (max-width: 768px) {

    .hero-section {
        padding: 20px 20px 60px;
    }

    .hero-badge-glass {
        font-size: 12px;
    }

    .hero-text-glass {
        padding: 22px 20px;
        border-radius: 20px;
    }

    .hero-title-main {
        font-size: 40px;
        line-height: 1.08;
    }

    .hero-description-large {
        font-size: 16px;
        line-height: 1.6;
    }

    .mini-feature {
        width: 100%;
    }

    .icon-square {
        width: 42px;
        height: 42px;
    }

    .btn-glass-secondary {
        margin-left: 0 !important;
    }
}

/* Маленькие телефоны */
@media (max-width: 480px) {

    .hero-section {
        padding: 10px 16px 50px;
    }

    .hero-title-main {
        font-size: 32px;
        line-height: 1.05;
    }

    .hero-description-large {
        font-size: 15px;
    }

    .btn-gradient-main,
    .btn-glass-secondary {
        padding: 14px 18px;
        font-size: 15px;
    }

    .hero-text-glass {
        padding: 20px 18px;
    }

    .btn-glass-secondary {
        margin-left: 0 !important;
    }
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

    .admin-table th {
        background: #1f1f1f;
        color: white;
        padding: 14px;
    }

    .admin-table td {
        padding: 14px;
        border-bottom: 1px solid #333;
    }

    .admin-table tr:hover {
        background: #252525;
    }

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

    .info-grid label {
        display: block;
        margin-bottom: 6px;
        font-weight: 600;
    }

    .info-grid input,
    textarea {
        width: 100%;
        padding: 10px;
        border-radius: 8px;
        border: 1px solid #444;
        background: #222;
        color: white;
    }

.success-box {
    background: #198754;
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.error-box {
    background: #dc3545;
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/*КУКИСЫ*/
/* Запрет скролла при открытом модальном окне */
body.cookie-blocked {
    overflow: hidden !important;
    height: 100vh !important;
    touch-action: none; /* Запрет скролла на мобильных */
}

/* Полный экранный оверлей, перекрывающий ВСЁ */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px); /* Легкая размытость фона */
    z-index: 999999; /* Максимальный z-index */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

    .cookie-overlay.hidden {
        display: none !important;
    }

/* Карточка Cookie */
.cookie-modal {
    background-color: #111827;
    border: 1px solid #00f2ea;
    border-radius: 16px;
    padding: 30px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 242, 234, 0.15);
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
}

.cookie-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.cookie-modal h3 {
    margin: 0 0 12px 0;
    font-size: 1.3rem;
    color: #ffffff;
}

.cookie-modal p {
    font-size: 0.9rem;
    color: #9ca3af;
    line-height: 1.5;
    margin-bottom: 24px;
}

.cookie-modal a {
    color: #00f2ea;
    text-decoration: underline;
}

/* Кнопки */
.cookie-buttons {
    display: flex;
    gap: 12px;
}

.cookie-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.cookie-btn-accept {
    background-color: #00f2ea;
    color: #000000;
}

    .cookie-btn-accept:hover {
        background-color: #00d8d1;
        box-shadow: 0 0 12px rgba(0, 242, 234, 0.4);
    }

.cookie-btn-decline {
    background-color: #1f2937;
    color: #ef4444;
    border: 1px solid #374151;
}

    .cookie-btn-decline:hover {
        background-color: #374151;
    }