@import url("/shared/tokens.css");

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    margin: 0;
    background: var(--white);
    color: var(--black);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}

a { color: inherit; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; margin: 0; font-weight: 800; }
h1 { font-size: clamp(38px, 7vw, 68px); }
h2 { font-size: clamp(28px, 4.4vw, 44px); }
h3 { font-size: 20px; letter-spacing: -.01em; }
p { margin: 0; }

.shell { width: var(--shell); margin-inline: auto; }
.muted { color: var(--secondary); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { margin-top: 16px; font-size: clamp(17px, 2vw, 20px); color: var(--secondary); }
.eyebrow {
    display: inline-block; margin-bottom: 18px; padding: 7px 14px;
    border-radius: 999px; background: var(--bg-grey);
    font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.eyebrow.on-accent { background: rgba(255, 255, 255, .28); }

.logo {
    font-size: 26px; font-weight: 900; font-style: italic;
    letter-spacing: -.03em; text-decoration: none; white-space: nowrap;
}
.logo span { color: var(--accent); }

.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--border-light);
}
.header .shell { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--secondary); transition: color .15s; }
.nav a:hover { color: var(--black); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
    font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
    transition: background .15s, border-color .15s, transform .15s;
}
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--black-hover); }
.btn-ghost { border-color: var(--tertiary); color: var(--black); }
.btn-ghost:hover { border-color: var(--black); }
.btn-light { background: var(--white); color: var(--black); }
.header .btn { padding: 10px 18px; }

@media (max-width: 900px) { .nav { display: none; } .header .shell { gap: 12px; } }

.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-style: italic; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-lead { margin-top: 24px; font-size: clamp(18px, 2.2vw, 22px); color: var(--secondary); max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 15px; color: var(--secondary); }
.hero-note b { color: var(--black); font-weight: 700; }
.hero-art { position: relative; display: flex; justify-content: center; padding: 30px 0; }

.hero-art::before {
    content: ""; position: absolute; z-index: -1;
    left: 50%; top: 46%; width: min(720px, 118%); aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle closest-side,
    var(--accent-tint) 0%,
    rgba(255, 210, 179, .55) 42%,
    rgba(255, 210, 179, .18) 72%,
    rgba(255, 210, 179, 0) 100%);
}

.cloud { position: relative; width: 100%; height: 520px; }

.drift { position: absolute; transition: transform .45s cubic-bezier(.2, .8, .2, 1); will-change: transform; }

.bubble {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 17px 11px 12px; border-radius: 18px;
    background: var(--white); border: 1px solid var(--border-light);
    box-shadow: 0 18px 40px -18px rgba(3, 0, 3, .38);
    font-size: 14px; font-weight: 600; white-space: nowrap;
    animation: float 6s ease-in-out infinite;
}
.bubble .emo {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; flex: none;
    border-radius: 11px; background: var(--bg-flat); font-size: 18px;
}
.bubble i { font-style: normal; display: block; font-size: 12px; font-weight: 500; color: var(--secondary); margin-top: 1px; }
.bubble.accent { background: var(--accent); color: var(--white); border-color: transparent; }
.bubble.accent .emo { background: rgba(255, 255, 255, .22); }
.bubble.accent i { color: rgba(255, 255, 255, .8); }
.bubble.tint { background: var(--accent-tint); border-color: transparent; }
.bubble.tint i { color: rgba(3, 0, 3, .55); }
.bubble.ok .emo { background: rgba(8, 166, 34, .12); }
.bubble.ok b { color: var(--success); }

.balance {
    display: flex; flex-direction: column; gap: 2px;
    padding: 22px 26px; border-radius: 24px; min-width: 236px;
    background: var(--black); color: var(--white);
    box-shadow: 0 34px 70px -28px rgba(3, 0, 3, .6);
    animation: float 7.5s ease-in-out infinite;
}
.balance i { font-style: normal; font-size: 13px; color: rgba(255, 255, 255, .6); }
.balance b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; color: #4ADE6A; }
.balance u { text-decoration: none; font-size: 13px; color: rgba(255, 255, 255, .5); }

.d1 { top: 0;     left: 0; }
.d2 { top: 9%;    right: 0; }
.d3 { top: 34%;   left: 0; }
.d4 { bottom: 24%; right: 0; }
.d5 { bottom: 0;  left: 8%; }
.dc { top: 29%;   left: 40%; z-index: 3; }

.d1 .bubble { animation-delay: -.4s;  animation-duration: 6.4s; }
.d2 .bubble { animation-delay: -2.1s; animation-duration: 7.2s; }
.d3 .bubble { animation-delay: -3.4s; animation-duration: 5.8s; }
.d4 .bubble { animation-delay: -1.2s; animation-duration: 6.9s; }
.d5 .bubble { animation-delay: -4.6s; animation-duration: 6.1s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-.7deg); }
    50%      { transform: translateY(-14px) rotate(.7deg); }
}

@media (max-width: 1180px) {
    .cloud { height: 480px; }
    .dc { left: 34%; }
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-lead { max-width: none; }
    .cloud { height: 460px; }
    .dc { left: 50%; margin-left: -118px; }
}

@media (max-width: 620px) {
    .cloud { height: 440px; }
    .d2 { display: none; }
    .d3 { top: 21%; }
    .dc { top: 42%; }
    .d4 { bottom: 15%; }
    .d5 { bottom: 0; left: 0; }
    .bubble { font-size: 13px; padding: 9px 14px 9px 10px; }
    .bubble .emo { width: 30px; height: 30px; font-size: 16px; }
    .balance { padding: 18px 22px; min-width: 200px; }
    .balance b { font-size: 28px; }
    .dc { margin-left: -100px; }
}

@media (max-width: 420px) {
    .bubble { font-size: 13px; padding: 8px 13px 8px 10px; }
    .bubble .emo { width: 30px; height: 30px; font-size: 16px; }
}

.phone {
    position: relative; width: 268px;  flex: none;
    border-radius: 40px; padding: 10px;
    background: var(--black);
    box-shadow: 0 30px 70px -30px rgba(3, 0, 3, .45), 0 4px 14px rgba(3, 0, 3, .12);
}
.phone > .screen {
    position: relative; height: 100%; border-radius: 31px; overflow: hidden;
    background: var(--bg-flat); display: block;
}
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone .placeholder {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center;
    background: repeating-linear-gradient(135deg, var(--bg-flat) 0 12px, var(--bg-grey) 12px 24px);
    color: var(--secondary); font-size: 13px; line-height: 1.4;
}
.phone .placeholder b { color: var(--black); font-size: 15px; }
.phone .placeholder code {
    font-size: 11px; word-break: break-all; color: var(--secondary);
    background: var(--white); padding: 4px 8px; border-radius: 8px;
}
.phone img + .placeholder { display: none; }
.phone.tilt-l { transform: rotate(-4deg); }
.phone.tilt-r { transform: rotate(4deg); }

.gallery-wrap { position: relative; }

.gallery-wrap::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 28px; width: 120px;
    background: linear-gradient(to left, var(--white) 12%, rgba(255, 255, 255, 0));
    pointer-events: none; opacity: 1; transition: opacity .2s;
}
.gallery-wrap.at-end::after { opacity: 0; }

.gallery {
    display: flex; gap: 28px; overflow-x: auto; padding: 12px 0 28px;
    scroll-behavior: smooth; scrollbar-width: thin;
}

@media (max-width: 620px) {
    .gallery { scroll-snap-type: x mandatory; }
}
.gallery::-webkit-scrollbar { height: 6px; }
.gallery::-webkit-scrollbar-thumb { background: var(--tertiary); border-radius: 999px; }

.scroll-hint {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 20px;
    padding: 9px 16px 9px 14px; border-radius: 999px;
    background: var(--bg-grey); font-size: 14px; font-weight: 600;
    border: 0; color: inherit; font-family: inherit; line-height: inherit;
    cursor: pointer; transition: background .15s;
}
.scroll-hint:hover { background: var(--accent-tint); }
.scroll-hint:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.scroll-hint .arrow { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(6px); }
}

.gallery-nav { display: flex; gap: 10px; margin-left: auto; }
.gallery-nav button {
    width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
    border: 1px solid var(--tertiary); background: var(--white); color: var(--black);
    font-size: 18px; line-height: 1; transition: border-color .15s, background .15s, opacity .15s;
}
.gallery-nav button:hover { border-color: var(--black); background: var(--bg-flat); }
.gallery-nav button:disabled { opacity: .3; cursor: default; }
.gallery-head { display: flex; align-items: flex-end; gap: 24px; }
@media (max-width: 860px) { .gallery-nav { display: none; } }

.gallery-head.fits .scroll-hint, .gallery-head.fits .gallery-nav { display: none; }
.shot { margin: 0; scroll-snap-align: center; display: flex; flex-direction: column; gap: 14px; }
.shot figcaption { max-width: 268px; font-size: 15px; color: var(--secondary); }
.shot figcaption b { display: block; color: var(--black); font-weight: 700; margin-bottom: 2px; }

.cards { display: grid; gap: 16px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card {
    background: var(--bg-flat); border-radius: var(--radius-m); padding: 28px;
    display: flex; flex-direction: column; gap: 10px;
}
.card .ico { font-size: 30px; line-height: 1; }
.card p { color: var(--secondary); font-size: 16px; }
.card.accent { background: var(--accent); color: var(--white); }
.card.accent p { color: rgba(255, 255, 255, .82); }
.card.tint { background: var(--accent-tint); }
.card.tint p { color: rgba(3, 0, 3, .62); }
.card.dark { background: var(--black); color: var(--white); }
.card.dark p { color: rgba(255, 255, 255, .68); }

.soon {
    display: inline-block; margin-right: 6px; padding: 2px 9px;
    border-radius: 999px; background: var(--accent); color: var(--white);
    font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    vertical-align: 1px;
}
.card:not(.dark) .soon { background: var(--accent-tint); color: var(--black); }

@media (max-width: 1000px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .cards.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
    .cards.two, .cards.three, .cards.four { grid-template-columns: 1fr; }
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step {
    position: relative; padding: 32px 28px 28px; border-radius: var(--radius-m);
    background: var(--bg-flat);
}
.step::before {
    counter-increment: step; content: counter(step);
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; margin-bottom: 18px;
    border-radius: 50%; background: var(--accent); color: var(--white);
    font-weight: 800; font-size: 17px;
}
.step p { margin-top: 8px; color: var(--secondary); font-size: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.band { background: var(--accent); color: var(--white); border-radius: var(--radius-l); padding: clamp(36px, 5vw, 64px); }
.band h2 { max-width: 18ch; }
.band p { color: rgba(255, 255, 255, .84); }
.band-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.band-list { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.band-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.band-list li::before { content: "→"; font-weight: 800; }
@media (max-width: 900px) { .band-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ── Цифры ───────────────────────────────────────────────────────────── */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.figure { background: var(--bg-flat); border-radius: var(--radius-m); padding: 26px; }
.figure b { display: block; font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.03em; }
.figure span { color: var(--secondary); font-size: 15px; }
.figure.plus b { color: var(--success); }
.figure.minus b { color: var(--accent); }
@media (max-width: 860px) { .figures { grid-template-columns: 1fr 1fr; } }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details {
    background: var(--bg-flat); border-radius: var(--radius-s); padding: 20px 24px;
    transition: background .15s;
}
.faq details[open] { background: var(--bg-grey); }
.faq summary {
    cursor: pointer; font-weight: 700; font-size: 17px; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin-top: 12px; color: var(--secondary); font-size: 16px; }
.faq a { color: var(--accent); }

/* ── Магазины ────────────────────────────────────────────────────────── */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 12px 22px 12px 18px; border-radius: 16px;
    background: var(--black); color: var(--white); text-decoration: none;
    transition: background .15s, transform .15s;
}
.store:hover { background: var(--black-hover); }
.store:active { transform: scale(.98); }
.store svg { width: 26px; height: 26px; flex: none; }
.store i { font-style: normal; display: block; font-size: 11px; opacity: .7; letter-spacing: .04em; text-transform: uppercase; }
.store b { display: block; font-size: 16px; font-weight: 700; margin-top: 1px; }
.store.soon { background: var(--bg-grey); color: var(--secondary); cursor: default; pointer-events: none; }
.store.soon svg { opacity: .45; }
.stores.on-dark .store { background: var(--white); color: var(--black); }
.stores.on-dark .store:hover { background: var(--bg-grey); }
.stores.on-dark .store.soon { background: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .7); }

/* ── Финальный призыв ────────────────────────────────────────────────── */
.cta { background: var(--black); color: var(--white); border-radius: var(--radius-l); padding: clamp(40px, 6vw, 80px); text-align: center; }
.cta h2 { font-style: italic; max-width: 20ch; margin-inline: auto; }
.cta p { margin: 18px auto 32px; max-width: 52ch; color: rgba(255, 255, 255, .7); font-size: 18px; }
.cta .stores { justify-content: center; }
.cta-web { margin-top: 26px; font-size: 15px; color: rgba(255, 255, 255, .7); }
.cta-web a { color: var(--white); }

/* ── Подвал ──────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border-light); padding: 48px 0 64px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; }
.footer-links a { color: var(--secondary); text-decoration: none; }
.footer-links a:hover { color: var(--black); }
.footer-legal { margin-top: 28px; font-size: 13px; color: var(--tertiary); max-width: 70ch; line-height: 1.6; }