/* Local Знайомства — dating.local.vn.ua */
:root {
  color-scheme: light;
  --bg: #faf8ff;
  --surface: #ffffff;
  --tint: #f3effd;
  --text: #1b1530;
  --muted: #5b5675;
  --border: #e8e3f5;
  --primary: #6d28d9;
  --primary-hover: #5b21b6;
  --accent: #db2777;
  --on-primary: #ffffff;
  --shadow: 0 10px 30px rgba(76, 29, 149, .10);
  --shadow-lg: 0 30px 60px rgba(76, 29, 149, .22);
  --grad: linear-gradient(135deg, #6d28d9 0%, #a21caf 55%, #db2777 100%);
  --radius: 18px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f0b1d;
  --surface: #181230;
  --tint: #130e26;
  --text: #f1edff;
  --muted: #a9a2c6;
  --border: #2a2347;
  --primary: #7c3aed;
  --primary-hover: #8b5cf6;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 30px 60px rgba(0, 0, 0, .55);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f0b1d;
    --surface: #181230;
    --tint: #130e26;
    --text: #f1edff;
    --muted: #a9a2c6;
    --border: #2a2347;
    --primary: #7c3aed;
    --primary-hover: #8b5cf6;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-lg: 0 30px 60px rgba(0, 0, 0, .55);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1rem/1.65 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 84px; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 40px); }
.center { text-align: center; margin-top: 36px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .95rem/1.2 var(--font); cursor: pointer; text-decoration: none !important;
  transition: transform .15s, background .15s, box-shadow .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 20px rgba(109, 40, 217, .30); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--light { background: #fff; color: #5b21b6; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); }

.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; cursor: pointer;
  border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text);
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.menu-btn { display: none; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--border); box-shadow: 0 6px 20px rgba(76, 29, 149, .06); }
.header__row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.header__tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.25rem; text-decoration: none !important; }
.logo__mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--grad); }
.logo__mark .heart { width: 20px; height: 20px; fill: #fff; }
.logo__text { display: inline-flex; flex-direction: column; line-height: 1; }
.logo__sub { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--muted); font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--primary); background: var(--tint); text-decoration: none; }

.langs { display: inline-flex; padding: 3px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); }
.langs__item { padding: 5px 10px; font-size: .8rem; font-weight: 700; border-radius: 9px; color: var(--muted); }
.langs__item.is-active { background: var(--primary); color: #fff; }
a.langs__item:hover { color: var(--primary); text-decoration: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 84px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; z-index: -1; }
.hero::before { width: 460px; height: 460px; background: #a78bfa; top: -140px; right: -80px; }
.hero::after { width: 380px; height: 380px; background: #f9a8d4; bottom: -160px; left: -100px; opacity: .35; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 14px;
  border-radius: 999px; background: var(--tint); border: 1px solid var(--border);
  color: var(--primary); font-weight: 700; font-size: .85rem;
}
.eyebrow .heart { width: 14px; height: 14px; fill: var(--accent); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
.lead { margin-top: 20px; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__actions--center { justify-content: center; }

.stats { display: flex; flex-wrap: wrap; gap: 14px; margin: 38px 0 0; }
.stats__item { min-width: 130px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.stats dt { font-size: 1.5rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats dd { margin: 2px 0 0; font-size: .82rem; color: var(--muted); }

/* Phone mockup */
.hero__visual { position: relative; margin: 0; display: grid; place-items: center; }
.phone {
  width: min(340px, 100%); padding: 44px 18px 22px; border-radius: 40px; position: relative;
  background: var(--surface); border: 8px solid #1b1530; box-shadow: var(--shadow-lg);
  transform: rotate(2.5deg);
}
html[data-theme="dark"] .phone { border-color: #2f2655; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .phone { border-color: #2f2655; } }
.phone__notch { position: absolute; top: 10px; left: 50%; width: 90px; height: 22px; transform: translateX(-50%); background: #1b1530; border-radius: 999px; }
html[data-theme="dark"] .phone__notch { background: #2f2655; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .phone__notch { background: #2f2655; } }
.phone__bar { font-weight: 800; font-size: 1.05rem; margin-bottom: 14px; }
.profile { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 10px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg); }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font-weight: 800; font-size: 1.1rem; }
.avatar--1 { background: linear-gradient(135deg, #f472b6, #8b5cf6); }
.avatar--2 { background: linear-gradient(135deg, #38bdf8, #6d28d9); }
.profile__body { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.profile__body small { color: var(--muted); font-size: .78rem; }
.profile__like { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); }
.profile__like .heart { width: 16px; height: 16px; fill: var(--accent); }
.chat { margin-top: 14px; display: grid; gap: 8px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: .86rem; line-height: 1.4; }
.bubble--in { background: var(--tint); border-bottom-left-radius: 6px; }
.bubble--out { background: var(--primary); color: #fff; border-bottom-right-radius: 6px; justify-self: end; }
.float { position: absolute; width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.6rem; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite; }
.float--a { top: 6%; left: 2%; }
.float--b { bottom: 10%; right: 0; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Sections */
.section { padding: 84px 0; }
.section--tint { background: var(--tint); }
.section__head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section__head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
.section__head p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }

.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cards--4 { grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }
.card { padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.card--compact { padding: 22px; }
.card__icon { width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.6rem; border-radius: 15px; background: var(--tint); margin-bottom: 16px; }
.section--tint .card__icon { background: var(--bg); }
.card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: .95rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; counter-reset: s; }
.step { position: relative; padding: 30px 26px 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step__num { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 14px; color: #fff; font-weight: 800; background: var(--grad); }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.faq__item[open] { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: var(--shadow); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--tint); color: var(--primary); font-size: 1.2rem; font-weight: 700; transition: transform .2s; }
.faq details[open] summary::after { content: "–"; }
.faq__item p { padding: 0 22px 20px; color: var(--muted); }

/* CTA */
.cta { padding: 0 0 84px; }
.cta__box { text-align: center; padding: 60px 28px; border-radius: 28px; color: #fff; background: var(--grad); box-shadow: var(--shadow-lg); }
.cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
.cta p { margin: 14px auto 0; max-width: 52ch; opacity: .92; font-size: 1.08rem; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding-top: 56px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__brand p { margin: 14px 0; color: var(--muted); max-width: 34ch; }
.badge-18 { display: inline-block; padding: 3px 10px; border: 1.5px solid var(--border); border-radius: 8px; font-weight: 800; font-size: .8rem; color: var(--muted); }
.footer__col h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer__col li + li { margin-top: 8px; }
.footer__col a { color: var(--text); }
.footer__col a:hover { color: var(--primary); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 44px; padding: 22px 0 28px; border-top: 1px solid var(--border); color: var(--muted); }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 24px; }
.notfound__code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Responsive */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .phone { transform: none; width: min(320px, 100%); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .menu-btn { display: inline-grid; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 12px 20px 20px;
    flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 30px rgba(76, 29, 149, .10); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px; }
  .header__login { display: none; }
}
@media (max-width: 520px) {
  .section { padding: 60px 0; }
  .header__signup { display: none; }
  .header__row { gap: 12px; }
  .logo__sub { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
