/* ============================================================
   МИСТИЧЕСКОЕ ТАРО — редизайн 2026
   Чернильный фон, тёплое золото, крупная типографика.
   ============================================================ */

:root {
    --ink: #08050d;
    --ink-2: #0d0817;
    --ink-3: #130c20;
    --surface: rgba(255, 255, 255, .035);
    --surface-2: rgba(255, 255, 255, .06);
    --line: rgba(229, 192, 123, .16);
    --line-strong: rgba(229, 192, 123, .38);

    --gold: #e5c07b;
    --gold-soft: #f0d9a8;
    --gold-deep: #b08d4c;
    --cream: #f7f3ea;
    --muted: #b9adc9;
    --muted-2: #8d82a0;
    --violet: #8b5cf6;
    --danger: #e2705f;
    --text-main: var(--cream);
    --text-muted: var(--muted);
    --text-dim: var(--muted-2);
    --bg-deep: var(--ink);
    --bg-card: var(--surface);
    --gold-bright: var(--gold-soft);
    --purple-soft: var(--muted);

    --font-display: "Playfair Display", Georgia, serif;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-accent: "Cinzel", Georgia, serif;

    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 24px 60px rgba(0, 0, 0, .45);
    --shadow-soft: 0 12px 34px rgba(0, 0, 0, .3);
    --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--ink);
    color: var(--cream);
    font-family: var(--font-sans);
    font-size: 1.02rem;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(900px 600px at 12% -8%, rgba(139, 92, 246, .16), transparent 65%),
        radial-gradient(800px 520px at 88% 4%, rgba(229, 192, 123, .10), transparent 62%),
        linear-gradient(180deg, #0a0611 0%, #08050d 45%, #0b0715 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

section { position: relative; }

/* ================= ШАПКА ================= */
.header {
    position: sticky;
    top: 0;
    z-index: 800;
    padding: 18px 0;
    transition: background .3s var(--ease), padding .3s var(--ease), border-color .3s var(--ease);
    border-bottom: 1px solid transparent;
}

body.scrolled .header {
    padding: 10px 0;
    background: rgba(8, 5, 13, .82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--line);
}

.nav { display: flex; align-items: center; gap: 28px; }

.logo {
    font-family: var(--font-accent);
    font-size: 1.02rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--gold);
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    margin: 0 auto;
    padding: 0;
}

.nav-menu a {
    font-size: .92rem;
    color: var(--muted);
    position: relative;
    padding: 4px 0;
    transition: color .2s var(--ease);
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease);
}

.nav-menu a:hover { color: var(--cream); }
.nav-menu a:hover::after { transform: scaleX(1); }

.nav-cta {
    padding: 11px 22px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    color: var(--gold);
    font-size: .9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.nav-cta:hover { background: var(--gold); color: #16100a; border-color: var(--gold); }

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--line);
    color: var(--gold);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    font-size: 1.1rem;
}

/* ================= HERO ================= */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(620px 420px at 78% 30%, rgba(139, 92, 246, .18), transparent 70%),
        radial-gradient(520px 360px at 12% 70%, rgba(229, 192, 123, .07), transparent 70%);
}

.stars { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    opacity: .5;
    animation: twinkle var(--duration, 4s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes twinkle {
    0%, 100% { opacity: .15; transform: scale(.85); }
    50% { opacity: .75; transform: scale(1); }
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.06fr .94fr;
    align-items: center;
    gap: clamp(20px, 4vw, 56px);
}

.hero-content { max-width: 620px; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    font-family: var(--font-accent);
    font-size: .74rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
}

.hero-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--line-strong); }

.hero-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.3rem, 4.6vw, 3.9rem);
    line-height: 1.06;
    letter-spacing: -.02em;
    margin: 0 0 22px;
    text-wrap: balance;
}

.gradient-text {
    background: linear-gradient(100deg, var(--gold-soft) 0%, var(--gold) 45%, var(--gold-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.3vw, 1.14rem);
    color: var(--muted);
    margin: 0 0 34px;
    max-width: 46ch;
}

.hero-stats { display: flex; margin: 0 0 36px; flex-wrap: wrap; }

.stat { padding: 0 26px; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }

.stat-num { font-family: var(--font-display); font-size: 1.7rem; color: var(--gold); line-height: 1.1; }
.stat-label { font-size: .82rem; color: var(--muted-2); margin-top: 4px; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; font-size: .85rem; color: var(--muted-2); }
.trust-item { display: inline-flex; align-items: center; gap: 8px; }

.hero-deck {
    position: relative;
    height: clamp(340px, 42vw, 470px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-deck::before {
    content: "";
    position: absolute;
    width: 78%;
    height: 78%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, .28), transparent 68%);
    filter: blur(28px);
}

.hero-card {
    position: absolute;
    width: clamp(160px, 15vw, 210px);
    border-radius: 14px;
    border: 1px solid rgba(229, 192, 123, .45);
    box-shadow: 0 26px 60px rgba(0, 0, 0, .6);
    transition: transform .5s var(--ease);
}

.hero-card.c1 { transform: translateX(-58%) rotate(-13deg) translateY(14px); z-index: 1; }
.hero-card.c2 { transform: translateX(0) rotate(-1deg); z-index: 3; width: clamp(172px, 16vw, 228px); }
.hero-card.c3 { transform: translateX(58%) rotate(12deg) translateY(14px); z-index: 2; }

.hero-deck:hover .hero-card.c1 { transform: translateX(-72%) rotate(-17deg) translateY(20px); }
.hero-deck:hover .hero-card.c3 { transform: translateX(72%) rotate(16deg) translateY(20px); }

/* ================= СТРОКА ДОВЕРИЯ ================= */
.social-proof-bar {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .02);
    padding: 14px 0;
}

.proof-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .88rem;
    color: var(--muted);
}

.proof-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 500; }
.proof-text strong { color: var(--cream); font-weight: 600; }
.proof-divider { color: var(--line-strong); }

/* ================= СЕКЦИИ ================= */
.section-header { text-align: center; max-width: 640px; margin: 0 auto clamp(34px, 5vw, 56px); }

.section-eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    font-family: var(--font-accent);
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
}

.section-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -.015em;
    margin: 0 0 14px;
    text-wrap: balance;
}

.section-subtitle { margin: 0; color: var(--muted); font-size: 1rem; }
.text-gold { color: var(--gold); }

/* ================= КНОПКИ ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: .96rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
    text-align: center;
    line-height: 1.25;
}

.btn-lg { padding: 17px 34px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
    background: linear-gradient(135deg, #f2dfae 0%, var(--gold) 48%, #c9a25b 100%);
    color: #1a1206;
    box-shadow: 0 14px 34px rgba(229, 192, 123, .22);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 42px rgba(229, 192, 123, .3); }

.btn-secondary, .btn-ghost {
    background: rgba(255, 255, 255, .04);
    border-color: var(--line-strong);
    color: var(--cream);
}

.btn-secondary:hover, .btn-ghost:hover {
    background: rgba(255, 255, 255, .08);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.btn-telegram { background: rgba(41, 161, 218, .12); border-color: rgba(41, 161, 218, .45); color: #7cc7ea; }
.btn-telegram:hover { background: rgba(41, 161, 218, .2); }

.btn:focus-visible, a:focus-visible, button:focus-visible,
input:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* ================= КАРТА ДНЯ ================= */
.spread-section { padding: clamp(64px, 8vw, 108px) 0; }

.spread-container { max-width: 760px; margin: 0 auto; text-align: center; }

.spread-deck {
    position: relative;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.deck-card-back {
    position: absolute;
    width: 96px;
    height: 150px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background:
        radial-gradient(circle at 50% 40%, rgba(139, 92, 246, .35), transparent 60%),
        linear-gradient(160deg, #1b1030, #0e0819);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.1rem;
    box-shadow: var(--shadow-soft);
    transition: transform .45s var(--ease), opacity .45s var(--ease);
}

.spread-deck .deck-card-back:nth-child(1) { transform: rotate(-14deg) translateX(-46px); }
.spread-deck .deck-card-back:nth-child(2) { transform: rotate(-7deg) translateX(-23px); }
.spread-deck .deck-card-back:nth-child(3) { transform: rotate(0); }
.spread-deck .deck-card-back:nth-child(4) { transform: rotate(7deg) translateX(23px); }
.spread-deck .deck-card-back:nth-child(5) { transform: rotate(14deg) translateX(46px); }

.deck-card-back.dealt {
    transform: translateY(-14px) rotate(0) translateX(0) !important;
    opacity: .22;
}

.spread-instruction { max-width: 480px; margin: 0 auto 26px; }
.instruction-icon { font-size: 1.6rem; margin: 0 0 6px; }

.spread-instruction h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.2rem;
    margin: 0 0 8px;
    color: var(--cream);
}

.spread-instruction p { margin: 0; color: var(--muted); font-size: .95rem; }
.spread-action { margin: 0 0 8px; }
.spread-result { margin-top: 34px; }

.result-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    margin: 0 0 6px;
    color: var(--gold);
}

.result-subtitle { margin: 0 0 26px; color: var(--muted); font-size: .95rem; }

.result-cards { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }

.result-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    width: 200px;
    text-align: center;
    animation: cardIn .6s var(--ease) both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px) scale(.96); }
    to { opacity: 1; transform: none; }
}

.result-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
    margin-bottom: 12px;
}

.result-card-name { font-family: var(--font-display); font-size: 1.08rem; color: var(--gold); margin-bottom: 4px; }
.result-card-pos { font-size: .82rem; color: var(--muted-2); }
.result-cards.single .result-card { width: 320px; padding: 18px; }

.result-meanings { text-align: left; max-width: 620px; margin: 0 auto 40px; }

.meaning-row {
    background: var(--surface);
    border-left: 2px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    margin-bottom: 12px;
}

.meaning-row-title { font-family: var(--font-display); color: var(--gold); font-size: 1.05rem; margin-bottom: 8px; }
.meaning-row-text { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.7; }

.result-upsell {
    max-width: 560px;
    margin: 0 auto;
    padding: 30px 26px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background:
        radial-gradient(420px 220px at 50% -10%, rgba(139, 92, 246, .22), transparent 70%),
        var(--ink-3);
    text-align: center;
}

.upsell-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(229, 192, 123, .14);
    color: var(--gold);
    font-size: .76rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.result-upsell h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.32rem; margin: 0 0 16px; }

.upsell-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    text-align: left;
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: .93rem;
}

.upsell-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.upsell-guarantee { margin: 14px 0 0; font-size: .82rem; color: var(--muted-2); }

/* ================= УСЛУГИ ================= */
.services-section { padding: clamp(64px, 8vw, 108px) 0; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: start;
}

.service-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
    background: var(--surface-2);
    box-shadow: var(--shadow);
}

.service-card.featured {
    border-color: var(--line-strong);
    background:
        radial-gradient(360px 200px at 50% -20%, rgba(229, 192, 123, .14), transparent 70%),
        var(--surface-2);
}

.service-badge {
    position: absolute;
    top: -12px;
    left: 26px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--gold);
    color: #1a1206;
    font-size: .72rem;
    font-weight: 700;
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(229, 192, 123, .1);
    border: 1px solid var(--line);
    margin-bottom: 18px;
}

.service-title { font-family: var(--font-display); font-weight: 500; font-size: 1.32rem; margin: 0 0 10px; }
.service-desc { margin: 0 0 18px; color: var(--muted); font-size: .93rem; }

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    gap: 9px;
    font-size: .9rem;
    color: var(--muted);
}

.service-features li { padding-left: 22px; position: relative; }

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

.service-price { display: flex; align-items: baseline; gap: 12px; margin-top: auto; padding-top: 8px; }
.price-old { color: var(--muted-2); text-decoration: line-through; font-size: .92rem; }
.price-new { font-family: var(--font-display); font-size: 1.75rem; color: var(--gold); }
.service-card .btn { margin-top: 18px; width: 100%; }

.services-bottom {
    margin-top: 30px;
    text-align: center;
    color: var(--muted);
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================= ОБО МНЕ ================= */
.about-section { padding: clamp(64px, 8vw, 108px) 0; border-top: 1px solid var(--line); }

.about-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}

.about-portrait {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background:
        radial-gradient(300px 300px at 50% 30%, rgba(139, 92, 246, .3), transparent 70%),
        linear-gradient(160deg, #1a1030, #0c0716);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.4rem;
    color: var(--gold);
    box-shadow: var(--shadow);
}

.about-credentials { display: grid; gap: 8px; margin-top: 14px; }

.credential {
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .82rem;
    color: var(--muted);
    background: var(--surface);
    justify-self: start;
}

.about-content .section-title { text-align: left; margin-bottom: 16px; }
.about-content p { color: var(--muted); margin: 0 0 16px; }
.about-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* ================= ОТЗЫВЫ ================= */
.reviews-section { padding: clamp(64px, 8vw, 108px) 0; border-top: 1px solid var(--line); }

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.review-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color .3s var(--ease), transform .3s var(--ease);
}

.review-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }

.review-stars { color: var(--gold); letter-spacing: .12em; font-size: .85rem; }

.review-text {
    margin: 0;
    color: var(--cream);
    font-size: .96rem;
    line-height: 1.7;
    font-style: italic;
    flex: 1;
}

.review-author { display: flex; align-items: center; gap: 12px; }

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, rgba(229, 192, 123, .3), rgba(139, 92, 246, .3));
    border: 1px solid var(--line-strong);
    font-family: var(--font-display);
    color: var(--cream);
    flex-shrink: 0;
}

.review-name { font-size: .9rem; font-weight: 500; }
.review-date { font-size: .78rem; color: var(--muted-2); }

/* ================= ФОРМА ================= */
.order-section { padding: clamp(64px, 8vw, 108px) 0; border-top: 1px solid var(--line); }

.order-box {
    max-width: 620px;
    margin: 0 auto;
    padding: clamp(26px, 4vw, 44px);
    border: 1px solid var(--line-strong);
    border-radius: 26px;
    background:
        radial-gradient(520px 260px at 50% -10%, rgba(139, 92, 246, .2), transparent 70%),
        var(--ink-2);
    box-shadow: var(--shadow);
    text-align: center;
}

.order-box .section-title { margin-bottom: 10px; }
.order-box .section-subtitle { margin-bottom: 28px; }

.order-form { text-align: left; display: grid; gap: 16px; }
.form-group { display: grid; gap: 8px; }
.form-group label { font-size: .84rem; color: var(--muted); }

.form-group input,
.form-group textarea,
.modal-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    color: var(--cream);
    font-family: inherit;
    font-size: .96rem;
    transition: border-color .2s var(--ease), background .2s var(--ease);
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted-2); }

.form-group input:focus,
.form-group textarea:focus,
.modal-input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, .06);
    outline: none;
}

.form-service {
    margin: 0;
    padding: 11px 15px;
    border-left: 2px solid var(--gold);
    background: rgba(229, 192, 123, .09);
    border-radius: var(--radius-sm);
    color: var(--gold);
    font-size: .9rem;
}

.form-service[hidden] { display: none; }

.checkbox-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: .85rem;
    color: var(--muted);
    cursor: pointer;
}

.checkbox-label input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); }
.checkbox-label a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

.form-disclaimer { margin: 4px 0 0; font-size: .8rem; color: var(--muted-2); text-align: center; }

.form-error {
    margin: 0;
    padding: 13px 16px;
    border-left: 2px solid var(--danger);
    background: rgba(226, 112, 95, .12);
    border-radius: var(--radius-sm);
    color: #f3d9d4;
    font-size: .9rem;
}

.form-error a { color: var(--gold); text-decoration: underline; }
.form-error[hidden] { display: none; }

.form-success { text-align: center; padding: 20px 0 4px; }
.form-success[hidden] { display: none; }
.success-icon { font-size: 2.4rem; margin-bottom: 10px; }

.form-success h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.5rem;
    margin: 0 0 10px;
    color: var(--gold);
}

.form-success p { color: var(--muted); margin: 0 0 20px; }

/* ================= FAQ ================= */
.faq-section { padding: clamp(64px, 8vw, 108px) 0; border-top: 1px solid var(--line); }

.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    padding: 0 20px;
    transition: border-color .25s var(--ease), background .25s var(--ease);
}

.faq-item[open] { border-color: var(--line-strong); background: var(--surface-2); }

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 30px 18px 0;
    position: relative;
    font-size: 1rem;
    color: var(--cream);
    font-weight: 500;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 1.3rem;
    line-height: 1;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p { margin: 0 0 18px; color: var(--muted); font-size: .94rem; line-height: 1.7; }

/* ================= SEO-ТЕКСТ ================= */
.seo-section {
    padding: clamp(64px, 8vw, 108px) 0;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .015);
}

.seo-wrap { max-width: 760px; }
.seo-section .section-title { text-align: left; }

.seo-section h3 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--gold);
    font-size: 1.18rem;
    margin: 32px 0 10px;
}

.seo-section p { color: var(--muted); margin: 0 0 14px; line-height: 1.75; }
.seo-list { color: var(--muted); line-height: 1.75; padding-left: 20px; margin: 0 0 14px; }
.seo-list li { margin-bottom: 10px; }
.seo-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* ================= ФИНАЛЬНЫЙ CTA ================= */
.final-cta {
    padding: clamp(56px, 7vw, 96px) 0;
    border-top: 1px solid var(--line);
    background: radial-gradient(620px 280px at 50% 0%, rgba(139, 92, 246, .18), transparent 70%);
}

.final-cta-content { text-align: center; max-width: 640px; margin: 0 auto; }

.final-cta h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    margin: 0 0 12px;
    text-wrap: balance;
}

.final-cta p { color: var(--muted); margin: 0 0 26px; }
.final-cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.final-cta-note { margin: 20px 0 0 !important; font-size: .85rem; color: var(--muted-2); }

/* ================= ПОДВАЛ ================= */
.footer {
    padding: clamp(44px, 6vw, 72px) 0 32px;
    border-top: 1px solid var(--line);
    background: var(--ink-2);
}

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

.footer-col h4 {
    font-family: var(--font-accent);
    font-size: .82rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 16px;
    font-weight: 500;
}

.footer-col p { color: var(--muted-2); font-size: .88rem; margin: 0 0 10px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col ul a { color: var(--muted); font-size: .9rem; transition: color .2s var(--ease); }
.footer-col ul a:hover { color: var(--gold); }

.footer-contacts { display: grid; gap: 9px; margin-top: 14px; }
.footer-contacts a { color: var(--muted); font-size: .9rem; transition: color .2s var(--ease); }
.footer-contacts a:hover { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .8rem;
    color: var(--muted-2);
}

.footer-disclaimer { max-width: 560px; margin: 0; line-height: 1.6; }

/* ================= ПЛАВАЮЩИЕ КНОПКИ ================= */
.floating-contacts {
    position: fixed;
    right: 20px;
    bottom: 22px;
    z-index: 880;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: opacity .25s var(--ease), visibility .25s var(--ease);
}

.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
    transition: transform .2s var(--ease);
    position: relative;
}

.float-btn:hover { transform: translateY(-3px) scale(1.04); }
.float-btn.whatsapp { background: #1f8f4e; color: #fff; }
.float-btn.telegram { background: #1d7fb3; color: #fff; }
.float-btn.callback { background: linear-gradient(140deg, var(--gold-soft), var(--gold-deep)); color: #1a1206; }

.float-tooltip {
    position: absolute;
    right: 62px;
    white-space: nowrap;
    background: rgba(13, 8, 23, .95);
    border: 1px solid var(--line);
    color: var(--cream);
    font-size: .78rem;
    padding: 7px 11px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ease);
}

.float-btn:hover .float-tooltip { opacity: 1; }

/* ================= COOKIE / МОДАЛКА / CTA ================= */
.cookie-banner {
    position: fixed;
    left: 20px;
    bottom: 22px;
    z-index: 1000;
    max-width: 380px;
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    background: rgba(13, 8, 23, .96);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cookie-banner p { margin: 0; font-size: .84rem; color: var(--muted); line-height: 1.55; }
.cookie-banner a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

.cookie-banner button {
    align-self: flex-start;
    padding: 9px 18px;
    border: none;
    border-radius: 999px;
    background: var(--gold);
    color: #1a1206;
    font-weight: 600;
    cursor: pointer;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(4, 2, 8, .78);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active { display: flex; }

.modal-content {
    position: relative;
    width: 100%;
    max-width: 460px;
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--line-strong);
    background: var(--ink-2);
    box-shadow: var(--shadow);
    display: grid;
    gap: 14px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
}

.sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(8, 5, 13, .98), rgba(8, 5, 13, .86));
    border-top: 1px solid var(--line-strong);
    backdrop-filter: blur(12px);
}

.sticky-cta[hidden] { display: none; }

/* ================= АДАПТИВ ================= */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-content { max-width: 640px; margin: 0 auto; text-align: center; }
    .hero-eyebrow::before { display: none; }
    .hero-stats, .hero-cta, .hero-trust { justify-content: center; }
    .hero-deck { order: -1; height: 300px; margin-bottom: 8px; }
    .hero-card { width: 130px; }
    .hero-card.c2 { width: 144px; }
    .services-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .reviews-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
    .about-grid { grid-template-columns: 1fr; }
    .about-portrait { max-width: 380px; margin: 0 auto; }
    .about-credentials { justify-items: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .mobile-menu-btn { display: block; margin-left: auto; }
    .nav-cta { display: none; }
    .hero { padding: 34px 0 52px; }
    .hero-title { font-size: clamp(1.9rem, 8vw, 2.6rem); }
    .hero-subtitle { margin-bottom: 26px; }
    .hero-stats { margin-bottom: 28px; }
    .stat { padding: 0 18px; }
    .stat-num { font-size: 1.4rem; }
    .stat-label { font-size: .76rem; }
    .hero-cta .btn { width: 100%; }
    .hero-trust { gap: 14px; font-size: .8rem; }

    .spread-deck { height: 130px; }
    .deck-card-back { width: 80px; height: 126px; }
    .result-cards.single .result-card { width: 250px; }

    .order-box { padding: 24px 20px; border-radius: 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .footer-bottom { flex-direction: column; }

    .floating-contacts { right: 12px; bottom: 16px; gap: 8px; }
    .float-btn { width: 48px; height: 48px; font-size: 1.15rem; }
    .float-tooltip { display: none; }
    body.has-sticky .floating-contacts { bottom: 104px; }
    body.has-sticky { padding-bottom: 92px; }

    .cookie-banner { left: 12px; right: 12px; max-width: none; }

    body:not(.scrolled) .floating-contacts { opacity: 0; visibility: hidden; pointer-events: none; }

    .final-cta-buttons .btn, .seo-actions .btn, .upsell-cta .btn { width: 100%; }
}

@media (max-width: 420px) {
    .container { padding: 0 18px; }
    .stat { padding: 0 12px; }
    .service-card { padding: 26px 20px; }
    .section-title { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Слой звёзд на весь экран */
.stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.nebula { display: none; }

/* ===== Правки второго прохода ===== */
:root {
    --muted: #c4b9d2;
    --muted-2: #a094b3;
}

.nav-menu a.active { color: var(--cream); }
.nav-menu a.active::after { transform: scaleX(1); }

/* мессенджеры: спокойнее, не спорят с главным CTA */
.float-btn.whatsapp { background: rgba(31, 143, 78, .18); color: #5fd08d; border-color: rgba(95, 208, 141, .35); }
.float-btn.telegram { background: rgba(29, 127, 179, .18); color: #6ec2e6; border-color: rgba(110, 194, 230, .35); }
.float-btn:hover { background: rgba(255, 255, 255, .12); }

/* третий стат убираем, чтобы не дублировать «бесплатно» */
@media (min-width: 0px) {
    .hero-stats .stat:nth-child(3) { display: none; }
}

/* ===== Третий проход ===== */
/* липкая кнопка только на мобильных */
@media (min-width: 769px) {
    .sticky-cta { display: none !important; }
}

/* цены: аккуратная пара «было / сейчас» */
.service-price { gap: 14px; align-items: baseline; }
.price-new, .price-old { font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-old { font-size: .85rem; opacity: .75; }
.price-new { letter-spacing: -.01em; }

/* бейджи без эмодзи — чуть строже */
.service-badge { letter-spacing: .04em; }

/* запас под липкую кнопку только там, где она есть */
@media (max-width: 768px) { body.has-sticky { padding-bottom: 92px; } }

/* ===== Мобильный hero: компактнее, CTA выше ===== */
@media (max-width: 768px) {
    .hero-deck { height: 196px; margin-bottom: 4px; }
    .hero-card { width: 104px; border-radius: 10px; }
    .hero-card.c2 { width: 118px; }
    .hero-title { font-size: clamp(1.72rem, 7.2vw, 2.35rem); margin-bottom: 16px; }
    .hero-eyebrow { font-size: .68rem; letter-spacing: .16em; margin-bottom: 14px; text-align: center; }
    .hero-subtitle { font-size: .96rem; margin-bottom: 22px; }
    .stat-label { color: #b5aac7; font-size: .78rem; }
    .stat-num { font-size: 1.32rem; }
    .hero-stats { margin-bottom: 24px; }
    .mobile-menu-btn { border: none; font-size: 1.35rem; width: 40px; height: 40px; }
    .hero-cta { gap: 10px; }
    .section-header { margin-bottom: 30px; }
}

/* Скроллбар в тон теме */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #08050d; }
::-webkit-scrollbar-thumb { background: rgba(229, 192, 123, .22); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(229, 192, 123, .4); }

/* Чуть плотнее на низких десктопах */
@media (min-width: 1025px) and (max-height: 820px) {
    .hero { padding: 34px 0 60px; }
    .hero-deck { height: clamp(280px, 34vw, 380px); }
    .hero-stats { margin-bottom: 26px; }
}

/* Фото в блоке «Обо мне» */
img.about-portrait {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 42%;
    background: none;
    font-size: 0;
}

.about-cta .btn { flex: 1 1 auto; min-width: 180px; }

/* Кнопка Telegram в общем ритме */
.btn-telegram {
    background: rgba(29, 127, 179, .16);
    border: 1px solid rgba(110, 194, 230, .45);
    color: #8ed0ee;
}
.btn-telegram:hover {
    background: rgba(29, 127, 179, .28);
    border-color: #6ec2e6;
    color: #d3f0ff;
}

/* Кнопки в парных блоках — одинаковой ширины */
.about-cta .btn, .upsell-cta .btn { flex: 1 1 0; min-width: 0; }
@media (max-width: 480px) {
    .about-cta .btn, .upsell-cta .btn { flex: 1 1 100%; }
}

/* Ссылки в подвале — текстовые, не кнопки */
.footer-contacts a, .footer-col a { display: inline; }

/* Фото «Обо мне»: без растяжения и апскейла */
.about-image { max-width: 360px; }
img.about-portrait {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center 40%;
}
@media (max-width: 1024px) { .about-image { max-width: 380px; } }
@media (max-width: 480px) { .about-image { max-width: 100%; } }

/* ===== Аватары отзывов ===== */
img.review-avatar {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 22%;
    background: none;
    border: 1px solid rgba(229, 192, 123, .35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
    display: block;
    font-size: 0;
}

/* ===== Мобильное меню (бутерброд) ===== */
.nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(4, 2, 8, .62);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease);
    z-index: 110;
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }

@media (max-width: 900px) {
    .nav-menu {
        display: flex;
        position: fixed;
        top: 0; right: 0; bottom: 0;
        width: min(84vw, 340px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        margin: 0;
        padding: 86px 22px 28px;
        background: rgba(10, 6, 18, .985);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--line);
        box-shadow: -24px 0 60px rgba(0, 0, 0, .55);
        transform: translateX(102%);
        transition: transform .34s cubic-bezier(.22, .61, .36, 1);
        z-index: 120;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .nav-menu.open { transform: translateX(0); }
    .nav-menu li { width: 100%; border-bottom: 1px solid rgba(255, 255, 255, .07); }
    .nav-menu li:last-child { border-bottom: none; }
    .nav-menu a {
        display: block;
        padding: 17px 4px;
        font-size: 1.05rem;
        color: var(--cream);
    }
    .nav-menu a::after { display: none; }
    .nav-menu a.active { color: var(--gold); }

    .mobile-menu-btn { display: block; margin-left: auto; position: relative; z-index: 130; }
    .nav-cta { display: none; }
    body.nav-open { overflow: hidden; }
}

/* Планшет: меню-бутерброд с 900px */
@media (max-width: 900px) and (min-width: 769px) {
    .nav-cta { display: none; }
}

/* ===== Мобильная оптимизация ===== */
@media (max-width: 900px) {
    .container { padding-left: 18px; padding-right: 18px; }
}

/* iOS не зумит поля, если шрифт ≥16px */
@media (max-width: 900px) {
    input, textarea, select, .form-input, .form-textarea { font-size: 16px !important; }
}

/* Тач-цели не меньше 44px */
@media (hover: none) and (pointer: coarse) {
    .btn, .nav-menu a, .nav-cta, .footer-col a, .footer-contacts a { min-height: 44px; }
    .btn { display: inline-flex; align-items: center; justify-content: center; }
    .nav-menu a { display: flex; align-items: center; }
}

/* Очень узкие экраны (320–360) */
@media (max-width: 360px) {
    .container { padding-left: 14px; padding-right: 14px; }
    .hero-title { font-size: clamp(1.55rem, 8.4vw, 2rem); }
    .hero-subtitle { font-size: .92rem; }
    .logo { font-size: .88rem; letter-spacing: .1em; }
    .section-title { font-size: clamp(1.45rem, 6.6vw, 1.9rem); }
    .stat { padding: 0 10px; }
    .stat-num { font-size: 1.22rem; }
    .stat-label { font-size: .7rem; }
    .hero-deck { height: 168px; }
    .hero-card { width: 92px; }
    .hero-card.c2 { width: 104px; }
    .btn { font-size: .95rem; padding-left: 18px; padding-right: 18px; }
    .order-box { padding: 20px 15px; }
    .review-card { padding: 18px 16px; }
    .service-card { padding: 22px 18px; }
    .footer-grid { gap: 22px; }
}

/* Планшеты 769–1024: сетки в две колонки, hero без разъезда */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); max-width: none; }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); max-width: none; }
    .reviews-grid .review-card:last-child { grid-column: 1 / -1; }
    .hero-content { max-width: none; }
    .hero-deck { height: clamp(240px, 34vw, 320px); }
}

/* Ландшафт на телефонах: hero ниже, карты меньше */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 520px) {
    .hero { padding: 18px 0 30px; }
    .hero-deck { display: none; }
    .hero-title { font-size: clamp(1.5rem, 4.6vw, 2rem); }
}

/* Крупные планшеты landscape */
@media (min-width: 1025px) and (max-width: 1280px) {
    .services-grid { gap: 18px; }
    .hero-deck { height: clamp(300px, 30vw, 400px); }
}

/* CTA внутри мобильного меню */
.nav-menu-cta { display: none; }
@media (max-width: 900px) {
    .nav-menu-cta { display: block; margin-top: 20px; border-bottom: none !important; }
    .nav-menu-cta a {
        width: 100%;
        text-align: center;
        padding: 15px 18px;
        border-radius: 999px;
        font-weight: 600;
        min-height: 52px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: #16100a !important;
    }
    .nav-menu-cta a::after { display: none; }
}

/* Мобильный подвал: ссылки-кнопки удобнее для пальца */
@media (max-width: 900px) {
    .footer-col ul { display: flex; flex-direction: column; gap: 0; }
    .footer-col a, .footer-contacts a {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
        padding: 4px 0;
    }
    .footer-col h4, .footer-title { margin-bottom: 8px; }
    .footer-grid { gap: 18px; }
    .logo { display: inline-flex; align-items: center; min-height: 40px; }
}

/* Звёзды отзывов — SVG вместо эмодзи */
.review-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 14px;
    line-height: 1;
}
.review-stars svg {
    width: 15px;
    height: 15px;
    fill: var(--gold);
    filter: drop-shadow(0 0 6px rgba(229, 192, 123, .35));
}

/* Контакты внизу мобильного меню */
.nav-menu-contacts { display: none; }
@media (max-width: 900px) {
    .nav-menu { display: flex; }
    .nav-menu-contacts {
        display: flex;
        flex-direction: column;
        gap: 2px;
        margin-top: auto;
        padding-top: 22px;
        border-top: 1px solid rgba(255, 255, 255, .07) !important;
        border-bottom: none !important;
    }
    .nav-menu-contacts a {
        font-size: .92rem;
        color: var(--muted);
        padding: 10px 4px !important;
    }
    .nav-menu-cta { border-bottom: none !important; }
    .nav-menu { padding-bottom: 26px; }
}

/* ==========================================================
   ЖИВАЯ АНИМАЦИЯ (работает и на тач-устройствах)
   ========================================================== */

/* --- 1. Веер карт в hero: дыхание + отклик на касание --- */
.hero-card {
    will-change: transform;
    animation: cardFloat 6.5s ease-in-out infinite;
}
.hero-card.c1 { animation-delay: 0s; }
.hero-card.c2 { animation-delay: .9s; }
.hero-card.c3 { animation-delay: 1.8s; }

@keyframes cardFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -9px; }
}

/* веер раскрывается по тапу — одинаково на телефоне и на десктопе */
.hero-deck { touch-action: pan-y; cursor: pointer; }
.hero-deck.fanned .hero-card.c1 { transform: translateX(-78%) rotate(-18deg) translateY(24px); }
.hero-deck.fanned .hero-card.c2 { transform: translateX(0) rotate(0deg) translateY(-12px); }
.hero-deck.fanned .hero-card.c3 { transform: translateX(78%) rotate(17deg) translateY(24px); }

@media (hover: none) {
    .hero-card:active { scale: 1.05; }
    .hero-card { transition: transform .5s cubic-bezier(.22,.61,.36,1), scale .18s ease; }
}

/* --- 2. Колода карты дня: тасуем и раздаём --- */
.spread-deck.shuffling .deck-card-back { animation: shuffle .42s ease-in-out 2; }
.spread-deck.shuffling .deck-card-back:nth-child(1) { animation-delay: 0s; }
.spread-deck.shuffling .deck-card-back:nth-child(2) { animation-delay: .05s; }
.spread-deck.shuffling .deck-card-back:nth-child(3) { animation-delay: .1s; }
.spread-deck.shuffling .deck-card-back:nth-child(4) { animation-delay: .05s; }
.spread-deck.shuffling .deck-card-back:nth-child(5) { animation-delay: 0s; }

@keyframes shuffle {
    0%, 100% { translate: 0 0; rotate: 0deg; }
    25% { translate: -8px -6px; rotate: -4deg; }
    75% { translate: 8px -4px; rotate: 4deg; }
}

/* карта улетает из колоды вверх с поворотом */
.spread-deck .deck-card-back.dealt {
    transform: translateY(-70px) rotate(var(--spin, 12deg)) scale(.7) !important;
    opacity: 0;
    transition: transform .7s cubic-bezier(.3,.9,.4,1), opacity .7s ease;
}

/* --- 3. Появление карты дня: разворот в 3D --- */
.result-card {
    animation: cardReveal .95s cubic-bezier(.16,.84,.3,1) both;
    transform-style: preserve-3d;
}

@keyframes cardReveal {
    0% {
        opacity: 0;
        transform: perspective(1100px) rotateY(88deg) scale(.86);
        filter: blur(8px) brightness(.6);
    }
    55% { opacity: 1; filter: blur(0) brightness(1.12); }
    100% {
        opacity: 1;
        transform: perspective(1100px) rotateY(0deg) scale(1);
        filter: blur(0) brightness(1);
    }
}

/* золотое свечение вокруг карты сразу после появления */
.result-cards.single { position: relative; }
.result-cards.single::after {
    content: "";
    position: absolute;
    inset: -10% 15%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(229,192,123,.22), transparent 62%);
    animation: glowPulse 2.6s ease-in-out 3;
    pointer-events: none;
    z-index: -1;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0; transform: scale(.9); }
    45% { opacity: 1; transform: scale(1.04); }
}

/* --- 4. Кнопки: живой отклик --- */
.btn { position: relative; overflow: hidden; }
.btn:active { transform: scale(.975); }
.btn-primary::after {
    content: "";
    position: absolute;
    top: 0; left: -60%;
    width: 45%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
    transform: skewX(-18deg);
    opacity: 0;
    pointer-events: none;
}
.btn-primary:hover::after { animation: shine 1.1s ease forwards; }
.btn-primary:active::after { opacity: .9; animation: shine 1.1s ease forwards; }

@keyframes shine {
    0% { left: -60%; opacity: 0; }
    12% { opacity: 1; }
    100% { left: 120%; opacity: 0; }
}

/* --- 5. Появление блоков при прокрутке --- */
.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
    transition-delay: var(--d, 0s);
    will-change: transform, opacity;
}
.js .reveal.in { opacity: 1; transform: none; }

/* --- 6. Звёздное небо медленно плывёт --- */
.stars { animation: drift 90s linear infinite; }
@keyframes drift {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-16px, 12px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

/* --- 7. Плавающие кнопки --- */
.float-btn { transition: transform .22s cubic-bezier(.22,.61,.36,1), background .22s, border-color .22s; }
.float-btn:active { transform: scale(.92); }
.floating-contacts.visible .float-btn { animation: floatIn .5s cubic-bezier(.22,.61,.36,1) both; }
.floating-contacts.visible .float-btn:nth-child(2) { animation-delay: .07s; }
.floating-contacts.visible .float-btn:nth-child(3) { animation-delay: .14s; }

@keyframes floatIn {
    from { opacity: 0; transform: translateY(14px) scale(.9); }
    to { opacity: 1; transform: none; }
}

/* --- 8. Уважаем настройку «уменьшить движение» --- */
@media (prefers-reduced-motion: reduce) {
    .hero-card, .stars, .result-cards.single::after,
    .spread-deck.shuffling .deck-card-back, .floating-contacts.visible .float-btn {
        animation: none !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; }
    .result-card { animation-duration: .01ms !important; }
}
