/* ═══════════════════════════════════════════════════════════
   Залетаем — landing (handoff design)
   Stand-alone: все токены inline. Источник — newdisa/ (design handoff).
   ═══════════════════════════════════════════════════════════ */

/* Skip-link — visible only on keyboard focus */
.skip-link {
    position: absolute; top: -40px; left: 16px;
    background: var(--ink, #0A0A0A); color: #fff;
    padding: 10px 16px; border-radius: 10px;
    font-size: 14px; font-weight: 600;
    text-decoration: none; z-index: 100;
    transition: top 0.15s;
}
.skip-link:focus-visible { top: 16px; outline: 2px solid #EC4899; outline-offset: 3px; }

:root {
    --brand-pink: #EC4899;
    --brand-amber: #F59E0B;
    --brand-violet: #7C3AED;
    --brand-grad: linear-gradient(135deg, #7C3AED 0%, #EC4899 55%, #F59E0B 110%);
    --brand-grad-soft: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(236,72,153,0.10) 55%, rgba(245,158,11,0.10));
    --ink:       #0A0A0A;
    --ink-2:     rgba(10,10,10,0.62);
    --ink-3:     rgba(10,10,10,0.45);
    --line:      rgba(10,10,10,0.08);
    --line-2:    rgba(10,10,10,0.14);
    --bg:        #FCFBF9;
    --surface:   #FFFFFF;
    --surface-2: #F6F4F0;
    --link:      #D43383;
    --r-10: 10px; --r-14: 14px; --r-18: 18px; --r-pill: 999px;
    --shadow-1: 0 2px 8px rgba(10,10,10,0.06);
    --shadow-2: 0 8px 28px rgba(10,10,10,0.10);
    --shadow-3: 0 24px 60px rgba(124,58,237,0.18), 0 12px 32px rgba(236,72,153,0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;       /* prevent horizontal scroll from absolute/rotated cards */
    max-width: 100vw;
}
.hero, .cats-section { overflow: hidden; }  /* contain ambient blobs + scroll-x carousel */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
@media (max-width: 900px) {
    input, textarea, select { font-size: 16px !important; }
}

/* ── Utilities ───────────────────────────────────────── */
.h1 { font-weight: 800; letter-spacing: -0.032em; line-height: 1.05; }
.h2 { font-weight: 700; letter-spacing: -0.024em; line-height: 1.1; }
.h3 { font-weight: 700; letter-spacing: -0.018em; }

.grad-text {
    background: var(--brand-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.eyebrow {
    font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
    color: var(--ink);                        /* neutral text, works in both themes */
    text-transform: uppercase;
    margin-bottom: 12px; display: block;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ── Chip ────────────────────────────────────────────── */
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: var(--r-pill);
    background: var(--surface); border: 1px solid var(--line);
    font-size: 13px; font-weight: 500; line-height: 1;
}
.chip-dot::before {
    content: ""; width: 6px; height: 6px; border-radius: 999px;
    background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,0.18);
    animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.18); }
    50%      { box-shadow: 0 0 0 6px rgba(34,197,94,0.00); }
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 22px; border-radius: var(--r-pill);
    font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
    border: none; cursor: pointer; user-select: none; min-height: 48px;
    transition: transform 0.12s ease, box-shadow 0.15s ease;
    text-decoration: none; color: inherit; font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--brand-grad); color: #fff;
    box-shadow: 0 6px 20px rgba(236,72,153,0.32);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(236,72,153,0.42); }
.btn-ghost {
    background: transparent; color: var(--ink);
    border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: var(--surface-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 18px; min-height: 40px; font-size: 14px; }

/* ── Card ────────────────────────────────────────────── */
.card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-18); padding: 20px; box-shadow: var(--shadow-1);
}

.avatar {
    border-radius: 999px; display: inline-flex;
    align-items: center; justify-content: center;
    color: #fff; font-weight: 700; flex-shrink: 0; line-height: 1;
}
.av-a { background: linear-gradient(135deg,#F59E0B,#EC4899); }
.av-b { background: linear-gradient(135deg,#7C3AED,#EC4899); }
.av-c { background: linear-gradient(135deg,#06B6D4,#7C3AED); }
.av-d { background: linear-gradient(135deg,#10B981,#F59E0B); }

/* ── NavBar ──────────────────────────────────────────── */
.navbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 32px; position: sticky; top: 0; z-index: 20;
    background: rgba(252,251,249,0.82);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.navbar .brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; letter-spacing: -0.02em; font-size: 18px;
    text-decoration: none; color: var(--ink);
}
.brand-logo {
    width: 32px; height: 32px; border-radius: 10px;
    background: var(--brand-grad);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
}
.nav-links {
    display: flex; align-items: center; gap: 28px;
    font-size: 14px; color: var(--ink-2);
}
.nav-links a { color: inherit; text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

@media (max-width: 720px) {
    .navbar { padding: 14px 20px; }
    .nav-links { display: none; }
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
    position: relative; padding: 72px 32px 48px;
    max-width: 1240px; margin: 0 auto;
}
.hero::before,
.hero::after {
    content: ""; position: absolute; pointer-events: none; z-index: 0;
}
.hero::before {
    top: -80px; right: -120px; width: 560px; height: 560px;
    background: radial-gradient(closest-side, rgba(236,72,153,0.22), rgba(124,58,237,0.12) 50%, transparent 75%);
    filter: blur(6px);
}
.hero::after {
    top: 120px; left: -180px; width: 460px; height: 460px;
    background: radial-gradient(closest-side, rgba(245,158,11,0.18), transparent 70%);
}
.hero-grid {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px;
    align-items: center; position: relative; z-index: 1;
}
.hero h1 { font-size: 76px; line-height: 1.02; margin: 0 0 20px; }
.hero-sub {
    font-size: 20px; line-height: 1.45; color: var(--ink-2);
    margin: 0 0 32px; max-width: 520px;
}
.hero-sub b { color: var(--ink); font-weight: 700; }
.hero-ctas { display: flex; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }

.hero-collage { position: relative; height: 560px; }
.hero-collage .card { position: absolute; box-shadow: var(--shadow-2); }
.hc-1 { top: 10px;  left: 0;   width: 270px; transform: rotate(-3deg); }
.hc-2 { top: 200px; right: 10px; width: 220px; transform: rotate(4deg); }
.hc-3 {
    bottom: 10px; left: 40px; width: 290px;
    background: var(--brand-grad); color: #fff; border: none;
}
.hc-4 {
    top: 10px; right: 0; padding: 12px 16px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 16px; box-shadow: var(--shadow-2);
    transform: rotate(-2deg);
    display: flex; align-items: center; gap: 10px;
    position: absolute;
    max-width: 220px;
}
.hc-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hc-emoji { font-size: 26px; }
.hc-title { font-weight: 700; font-size: 15px; }
.hc-meta  { font-size: 12px; color: var(--ink-2); }
.hc-foot  { display: flex; align-items: center; justify-content: space-between; }
.hc-avs   { display: flex; }
.hc-avs .avatar { width: 26px; height: 26px; font-size: 11px; border: 2px solid #fff; }
.hc-avs .avatar + .avatar { margin-left: -8px; }
.hc-going { font-size: 12px; color: var(--ink-2); }
.hc-bio { font-size: 13px; color: var(--ink-2); line-height: 1.4; margin-bottom: 10px; }
.hc-q-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; opacity: 0.85; margin-bottom: 8px; }
.hc-q-text { font-size: 18px; font-weight: 700; line-height: 1.3; margin-bottom: 14px; }
.hc-q-stats { display: flex; gap: 6px; font-size: 12px; opacity: 0.9; }

@media (max-width: 900px) {
    .hero { padding: 48px 20px 24px; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero h1 { font-size: 44px; }
    .hero-sub { font-size: 17px; }
    /* Collage is decorative — hide on narrow screens instead of transform-scaling.
       scale() doesn't shrink the bounding box → horizontal scroll. */
    .hero-collage { display: none; }
}

/* ── Sections ───────────────────────────────────────── */
section { padding: 80px 32px; }
section.section-wide   { max-width: 1240px; margin: 0 auto; }
section.section-narrow { max-width: 820px;  margin: 0 auto; }
section.section-mid    { max-width: 1100px; margin: 0 auto; }
section h2 { font-size: 44px; margin: 0 0 48px; max-width: 700px; }
.muted { color: var(--ink-3); }

@media (max-width: 720px) {
    section { padding: 56px 20px; }
    section h2 { font-size: 32px; margin-bottom: 32px; }
}

/* ── Problem → Solution ──────────────────────────────── */
.ps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ps-card { padding: 28px; }
.ps-emoji { font-size: 32px; margin-bottom: 20px; }
.ps-prob { font-size: 18px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.ps-sep {
    height: 1px; margin: 14px 0;
    background-image: linear-gradient(90deg, var(--line) 50%, transparent 0);
    background-size: 8px 1px; background-repeat: repeat-x;
}
.ps-tag {
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
    color: var(--ink); margin-bottom: 8px;    /* neutral text */
}
.ps-sol { font-size: 15px; color: var(--ink-2); line-height: 1.5; }

@media (max-width: 720px) { .ps-grid { grid-template-columns: 1fr; } }

/* ── How it works ────────────────────────────────────── */
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.how-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 18px; padding: 24px;
    position: relative; overflow: hidden;
}
.how-num {
    position: absolute; top: 16px; right: 18px;
    font-size: 44px; font-weight: 800;
    color: var(--ink-2);              /* ink-2 @ 0.35 ≈ 3.0:1 — readable as decor */
    opacity: 0.35;                    /* was 0.15 → 1.16:1 unreadable */
    font-variant-numeric: tabular-nums;
    pointer-events: none; user-select: none;
}
.how-emoji { font-size: 32px; margin-bottom: 48px; }
.how-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.how-desc { font-size: 14px; color: var(--ink-2); line-height: 1.5; }

@media (max-width: 960px) { .how-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .how-grid { grid-template-columns: 1fr; } }

/* ── Categories ──────────────────────────────────────── */
.cats-section {
    padding: 80px 0;
    background: var(--surface-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.cats-head { max-width: 1240px; margin: 0 auto 32px; padding: 0 32px; }
.cats-head h2 { margin: 0; }
.cats-scroll {
    overflow-x: auto;
    padding: 8px 32px 24px;
    scrollbar-width: none;
}
.cats-scroll::-webkit-scrollbar { display: none; }
.cats-row { display: flex; gap: 14px; padding-bottom: 8px; }
.cat-card {
    min-width: 220px;
    padding: 20px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-1);
    display: flex; flex-direction: column; gap: 12px;
}
.cat-emoji { font-size: 38px; line-height: 1; }
.cat-name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.cat-count {
    font-size: 12px; color: var(--ink-2);
    display: flex; align-items: center; gap: 6px;
    margin-top: auto;
}
.cat-count .live-dot {
    width: 6px; height: 6px; background: #22C55E; border-radius: 999px;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.18);
    animation: pulse 1.8s ease-in-out infinite;
}

/* ── Features grid ───────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-tile {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 18px; padding: 28px;
    display: flex; flex-direction: column; gap: 12px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.feature-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2);
}
.ft-icon { font-size: 36px; }
.ft-title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.ft-desc { font-size: 14px; color: var(--ink-2); line-height: 1.5; }

@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

/* ── Testimonials ────────────────────────────────────── */
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.t-card { padding: 28px; margin: 0; }
.t-quote {
    margin: 0; font-size: 17px; line-height: 1.45;
    color: var(--ink); letter-spacing: -0.005em;
}
.t-cap {
    display: flex; align-items: center; gap: 12px;
    margin-top: 20px; padding-top: 20px;
    border-top: 1px solid var(--line);
}
.t-cap .avatar { width: 40px; height: 40px; }
.t-name { font-size: 14px; font-weight: 700; }
.t-city { font-size: 12px; color: var(--ink-2); }

@media (max-width: 900px) { .t-grid { grid-template-columns: 1fr; } }

/* ── Cities grid ─────────────────────────────────────── */
.cities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.city-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 14px; font-size: 14px;
}
.city-row .name { font-weight: 600; }
.city-row .count {
    color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: 13px;
}
.city-more {
    display: flex; align-items: center; justify-content: center;
    padding: 14px 18px;
    border: 1px dashed var(--line-2); border-radius: 14px;
    font-size: 13px; color: var(--ink-2);
}
@media (max-width: 900px) { .cities-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── FAQ ─────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 14px; overflow: hidden;
}
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-question {
    width: 100%; display: flex;
    justify-content: space-between; align-items: center;
    padding: 18px 22px;
    cursor: pointer;
    font-size: 16px; font-weight: 600; color: var(--ink);
    letter-spacing: -0.01em;
}
.faq-plus {
    font-size: 22px; color: var(--ink-3); font-weight: 300;
    transition: transform 0.2s;
}
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-body {
    padding: 0 22px 20px;
    font-size: 15px; color: var(--ink-2); line-height: 1.55;
}

/* ── Final CTA ───────────────────────────────────────── */
.final-cta { padding: 80px 32px; }
.final-cta-box {
    max-width: 1040px; margin: 0 auto;
    border-radius: 28px;
    background: var(--brand-grad);
    color: #fff;
    padding: 72px 48px;
    text-align: center;
    position: relative; overflow: hidden;
}
.final-cta-box::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.2), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.14), transparent 40%);
    pointer-events: none;
}
.final-cta-inner { position: relative; z-index: 1; }
.final-cta h2 {
    font-size: 56px; margin: 0 0 20px; line-height: 1.05;
    font-weight: 800; letter-spacing: -0.032em;
}
.final-cta p {
    font-size: 18px; margin: 0 auto 36px; opacity: 0.9; max-width: 520px;
}
.final-cta-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--ink); font-weight: 700; }
.btn-white-outline {
    background: rgba(255,255,255,0.18); color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

@media (max-width: 720px) {
    .final-cta-box { padding: 48px 24px; border-radius: 22px; }
    .final-cta h2 { font-size: 36px; }
}

/* ── Footer ──────────────────────────────────────────── */
footer {
    padding: 48px 32px 32px;
    max-width: 1240px; margin: 0 auto;
    border-top: 1px solid var(--line);
}
.f-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 24px;
}
.f-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.f-brand-row .brand-logo { width: 28px; height: 28px; border-radius: 8px; font-size: 14px; }
.f-brand-name { font-weight: 700; }
.f-copy { font-size: 13px; color: var(--ink-2); }   /* was --ink-3 (3.13:1) → --ink-2 (5.56:1) */
.f-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); flex-wrap: wrap; }
.f-links a { color: inherit; text-decoration: none; }
.f-links a:hover { color: var(--ink); }

/* ── Focus outline for keyboard nav ──────────────────── */
:focus-visible {
    outline: 2px solid var(--brand-pink);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Inline text-links underline */
.faq-body a, .hero-meta a, footer a.inline {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}
