/* ========== CSS Variables ========== */
:root {
    --bg: #0B0716;
    --bg-soft: #151027;
    --card: #1B1433;
    --accent: #A78BFA;
    --accent-2: #FF6FB5;
    --gold: #FFD166;
    --text: #F3EFFF;
    --muted: #A79FC9;
    --font-display: 'Unbounded', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --radius: 16px;
    --radius-sm: 12px;
    --animate-duration: .8s;
    --header-h: 72px;
}

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background: var(--bg-soft);
}

/* ========== Section Header ========== */
.section__header {
    text-align: center;
    margin-bottom: 48px;
}

.section__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(167, 139, 250, .15);
    color: var(--accent);
    font-size: 18px;
    margin-bottom: 16px;
}

.section__header h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 600;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all .3s ease;
    white-space: nowrap;
}

.btn--accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 4px 24px rgba(167, 139, 250, .35);
}

.btn--accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 32px rgba(167, 139, 250, .5);
}

.btn--outline {
    border: 1px solid rgba(255,255,255,.15);
    color: var(--text);
}

.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(167,139,250,.08);
}

.btn--full {
    width: 100%;
}

/* ========== Header ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 7, 22, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: box-shadow .3s, height .3s;
    height: var(--header-h);
}

.header.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,.4);
    height: 60px;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

.header__logo i { font-size: 20px; }

.header__nav {
    display: flex;
    gap: 24px;
}

.header__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition: color .3s;
    position: relative;
}

.header__link:hover,
.header__link.active {
    color: var(--text);
}

.header__link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.header__cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    transition: transform .3s, box-shadow .3s;
}

.header__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(167,139,250,.4);
}

.header__burger {
    display: none;
    font-size: 24px;
    color: var(--text);
    z-index: 1001;
}

/* ========== Hero ========== */
.hero {
    padding: 60px 0 40px;
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero__badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(167,139,250,.12);
    border: 1px solid rgba(167,139,250,.25);
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--muted);
    margin-bottom: 32px;
    max-width: 520px;
    line-height: 1.7;
}

.hero__buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hero__trust {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero__trust span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
}

.hero__trust i {
    color: var(--accent);
    font-size: 12px;
}

.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.hero__photo {
    width: 300px;
    height: 360px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__placeholder-photo,
.about__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--card), rgba(167,139,250,.15));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: inherit;
    color: var(--muted);
    font-size: 14px;
}

.hero__placeholder-photo i,
.about__placeholder i {
    font-size: 48px;
    color: var(--accent);
    opacity: .5;
}

.hero__cards {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-30%, -50%);
    width: 300px;
    height: 200px;
    z-index: 1;
}

.hero__card {
    position: absolute;
    width: 120px;
    height: 180px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border: 2px solid rgba(255,255,255,.15);
    box-shadow: 0 8px 32px rgba(167,139,250,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: rgba(255,255,255,.6);
}

.hero__card::after {
    content: '\2726';
    font-size: 28px;
}

.hero__card--1 {
    top: 0;
    left: 10px;
    transform: rotate(-12deg);
    animation: float 4s ease-in-out infinite;
}

.hero__card--2 {
    top: -10px;
    left: 90px;
    transform: rotate(4deg);
    animation: float 4s ease-in-out infinite .5s;
    z-index: 3;
}

.hero__card--3 {
    top: 10px;
    left: 170px;
    transform: rotate(14deg);
    animation: float 4s ease-in-out infinite 1s;
}

@keyframes float {
    0%, 100% {  }
    50% { transform: translateY(-12px); }
}

/* ========== Marquee ========== */
.marquee {
    overflow: hidden;
    white-space: nowrap;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: var(--bg);
}

.marquee__track {
    display: inline-block;
    animation: marquee 30s linear infinite;
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--muted);
    letter-spacing: 2px;
}

.marquee__track span {
    padding-right: 40px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========== About ========== */
.about__grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 48px;
}

.about__photo {
    border-radius: 24px;
    overflow: hidden;
}

.about__text p {
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.7;
    color: var(--muted);
}

.about__principles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.principle-card {
    background: var(--card);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    transition: transform .3s, border-color .3s;
}

.principle-card:hover {
    transform: translateY(-4px);
    border-color: rgba(167,139,250,.3);
}

.principle-card i {
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 12px;
}

.principle-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}

/* ========== Topics ========== */
.topics__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.topic-card {
    background: var(--card);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: transform .3s, border-color .3s, box-shadow .3s;
}

.topic-card:hover {
    transform: translateY(-4px);
    border-color: rgba(167,139,250,.3);
    box-shadow: 0 8px 32px rgba(167,139,250,.15);
}

.topic-card i {
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 16px;
}

.topic-card h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.topic-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}

/* ========== How it works ========== */
.how__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step {
    position: relative;
    background: var(--card);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: transform .3s, border-color .3s;
}

.step:hover {
    transform: translateY(-4px);
    border-color: rgba(167,139,250,.3);
}

.step__number {
    position: absolute;
    top: 12px;
    right: 16px;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: rgba(167,139,250,.15);
}

.step i {
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 16px;
}

.step h3 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

/* ========== Pricing ========== */
.price__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.price-card {
    position: relative;
    background: var(--card);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    transition: transform .3s, border-color .3s;
}

.price-card:hover {
    transform: translateY(-4px);
    border-color: rgba(167,139,250,.3);
}

.price-card--featured {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(167,139,250,.2);
    transform: scale(1.03);
}

.price-card--featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.price-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.price-card__badge--vip {
    background: linear-gradient(135deg, var(--gold), #FF9E2C);
}

.price-card__header {
    text-align: center;
    margin-bottom: 16px;
}

.price-card__header i {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 12px;
}

.price-card__header h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.price-card__price {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-card__desc {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
    min-height: 36px;
}

.price-card__list {
    flex: 1;
    margin-bottom: 24px;
}

.price-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    padding: 6px 0;
    line-height: 1.5;
}

.price-card__list li i {
    color: var(--accent);
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 12px;
}

/* ========== Price Table ========== */
.price__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.price__table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.price__table th,
.price__table td {
    padding: 12px 16px;
    text-align: center;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.price__table th {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 12px;
    color: var(--accent);
    padding-bottom: 16px;
}

.price__table td:first-child {
    text-align: left;
    color: var(--muted);
    font-weight: 500;
}

.price__table tbody tr:hover {
    background: rgba(167,139,250,.04);
}

/* ========== Reviews ========== */
.reviews__grid {
    columns: 2;
    column-gap: 20px;
}

.review-card {
    break-inside: avoid;
    background: var(--card);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    transition: transform .3s, border-color .3s;
}

.review-card:hover {
    transform: translateY(-2px);
    border-color: rgba(167,139,250,.2);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}

.review-card__name {
    font-weight: 600;
    font-size: 14px;
}

.review-card__stars {
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 1px;
}

.review-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

/* ========== FAQ ========== */
.faq__list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color .3s;
}

.faq-item:hover {
    border-color: rgba(167,139,250,.2);
}

.faq-item__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
}

.faq-item__toggle i {
    color: var(--accent);
    transition: transform .3s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-item__toggle i {
    transform: rotate(45deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, padding .4s ease;
}

.faq-item.active .faq-item__answer {
    max-height: 300px;
}

.faq-item__answer p {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
}

/* ========== Contacts ========== */
.contacts__grid {
    max-width: 600px;
    margin: 0 auto;
}

.contacts__messengers {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.contacts__btn {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: transform .3s, box-shadow .3s;
}

.contacts__btn:hover {
    transform: translateY(-2px);
}

.contacts__btn i { font-size: 20px; }

.contacts__btn--tg {
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    color: #fff;
    box-shadow: 0 4px 16px rgba(42,171,238,.3);
}

.contacts__btn--vk {
    background: linear-gradient(135deg, #4C75A3, #3B6695);
    color: #fff;
    box-shadow: 0 4px 16px rgba(76,117,163,.3);
}

.contacts__btn--wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    box-shadow: 0 4px 16px rgba(37,211,102,.3);
}

.contacts__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contacts__form input,
.contacts__form select,
.contacts__form textarea {
    background: var(--card);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: border-color .3s;
}

.contacts__form input:focus,
.contacts__form select:focus,
.contacts__form textarea:focus {
    border-color: var(--accent);
}

.contacts__form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A79FC9' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.contacts__form select option {
    background: var(--card);
    color: var(--text);
}

.contacts__form textarea {
    resize: vertical;
    min-height: 80px;
}

/* ========== Footer ========== */
.footer {
    padding: 40px 0 24px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

.footer__logo i { font-size: 18px; }

.footer__nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__nav a {
    font-size: 13px;
    color: var(--muted);
    transition: color .3s;
}

.footer__nav a:hover {
    color: var(--text);
}

.footer__copy {
    font-size: 13px;
    color: var(--muted);
}

.footer__disclaimer {
    font-size: 11px;
    color: rgba(167,159,201,.6);
    max-width: 500px;
    line-height: 1.5;
}

/* ========== Back to Top ========== */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(167,139,250,.4);
    z-index: 900;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity .3s, transform .3s, box-shadow .3s;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(167,139,250,.6);
}

/* ========== Reveal animations ========== */
.reveal {
    opacity: 0;
}

.reveal.animate__animated {
    opacity: 1;
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; }
    .marquee__track { animation: none; }
}

/* ========== Mobile Menu Open ========== */
.header__nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 7, 22, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 999;
    padding: 80px 20px;
}

.header__nav.open .header__link {
    font-size: 20px;
    font-family: var(--font-display);
    font-weight: 600;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .price__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .price-card--featured {
        transform: none;
    }
    .price-card--featured:hover {
        transform: translateY(-4px);
    }
    .about__principles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header__nav {
        display: none;
    }
    .header__burger {
        display: block;
    }
    .header__cta {
        display: none;
    }
    .header__logo span {
        font-size: 14px;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
    }
    .hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__subtitle {
        max-width: none;
    }
    .hero__buttons {
        justify-content: center;
    }
    .hero__trust {
        justify-content: center;
    }
    .hero__visual {
        min-height: 300px;
        margin-top: 20px;
    }
    .hero__photo {
        width: 240px;
        height: 280px;
    }

    .about__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about__photo {
        max-width: 260px;
        margin: 0 auto;
    }
    .about__principles {
        grid-template-columns: 1fr 1fr;
    }

    .topics__grid {
        grid-template-columns: 1fr 1fr;
    }

    .how__steps {
        grid-template-columns: 1fr 1fr;
    }

    .price__grid {
        grid-template-columns: 1fr;
    }

    .reviews__grid {
        columns: 1;
    }

    .section {
        padding: 60px 0;
    }

    .contacts__messengers {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero__buttons .btn {
        width: 100%;
    }

    .about__principles {
        grid-template-columns: 1fr;
    }

    .topics__grid {
        grid-template-columns: 1fr;
    }

    .how__steps {
        grid-template-columns: 1fr;
    }

    .hero__cards {
        display: none;
    }

    .hero__trust {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .contacts__btn {
        min-width: auto;
    }
}
