/* ═══════════════════════════════════════════════
   UzNeyro landing — light minimalism
   ═══════════════════════════════════════════════ */
:root {
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --text: #0f172a;
  --muted: #475569;            /* slate-600 — контраст AA и на белом, и на bg-alt */
  --border: #e6e8ef;
  --border-strong: #c2d0ec;
  --accent: #004aad;           /* синий из логотипа UzNeyro */
  --accent-600: #003b8a;
  --accent-soft: #eaf1fb;
  --accent-wash: #eef3fc;
  --accent-2: #cb6ce6;         /* фиолетовый из логотипа */
  --accent-2-600: #b551d1;
  --ink: #0f1e3d; --ink-2: #0b1730; --on-dark: #eaf0fb; --on-dark-muted: #9fb0d0;  /* тёмная панель */
  --r-sm: 10px;                /* контролы: кнопки, переключатель, иконки */
  --r-md: 14px;                /* поверхности: карточки, FAQ, бабблы */
  --container: 1120px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-md: 0 6px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 50px rgba(37, 99, 235, .18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 760px; }

/* Единый фокус для клавиатуры (мышь не трогаем — :focus-visible) */
:where(a, button, summary, .btn, .lang):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--accent); color: #fff;
  padding: .75rem 1.25rem; border: 1px solid transparent; border-radius: var(--r-sm);
  font: inherit; font-weight: 600; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--accent-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--accent); border-color: var(--border); box-shadow: none; }
.btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent); transform: none; box-shadow: none; }
.btn--white { background: #fff; color: var(--accent); }
.btn--white:hover { background: var(--accent-wash); }
.btn--lg { padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn--sm { padding: .5rem 1rem; font-size: .92rem; min-height: 44px; }
.btn--block { width: 100%; }

/* ─── Navbar ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 1rem; min-height: 66px; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; }
.brand__mark { display: inline-flex; }
.brand__name { font-size: 1.2rem; letter-spacing: -.02em; }
.nav__links { display: none; gap: 1.6rem; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: .96rem; transition: color .15s; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.lang {
  display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  min-width: 44px; height: 44px; padding: 0 .55rem; border-radius: var(--r-sm);
  font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; transition: all .15s;
}
.lang:hover { border-color: var(--accent); color: var(--accent); }
.lang svg { stroke: currentColor; }
/* Десктоп: логотип слева, меню по центру, действия справа (три равные флекс-зоны) */
@media (min-width: 820px) {
  .brand { flex: 1 1 0; }
  .nav__links { display: flex; flex: 0 0 auto; }
  .nav__actions { flex: 1 1 0; justify-content: flex-end; margin-left: 0; }
}

/* ─── Hero ─── */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem); }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent-soft); color: var(--accent);
  font-size: .85rem; font-weight: 600; padding: .375rem .875rem; border-radius: 999px; margin-bottom: 1rem;
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.2rem); line-height: 1.12; letter-spacing: -.03em; margin-bottom: 1rem; text-wrap: balance; }
.hero__sub { font-size: clamp(1.02rem, 2.2vw, 1.2rem); color: var(--muted); max-width: 36ch; margin-bottom: 1.5rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.hero__note { color: var(--muted); font-size: .92rem; }

/* Phone mockup */
.hero__mock { display: flex; justify-content: center; }
.phone {
  width: 100%; max-width: 330px; background: #fff;
  border: 1px solid var(--border); border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.phone__bar { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-bottom: 1px solid var(--border); background: #fff; }
.phone__ava { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; display: grid; place-items: center; font-weight: 700; }
.phone__bar b { font-size: .95rem; }
.phone__bar small { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .78rem; }
.phone__bar small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #16a34a; }
.phone__chat { padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--bg-alt); min-height: 260px; }
.bub { max-width: 82%; padding: .6rem .85rem; border-radius: var(--r-md); font-size: .93rem; line-height: 1.45; box-shadow: var(--shadow-sm); }
.bub--in { align-self: flex-start; background: #fff; border-bottom-left-radius: 5px; }
.bub--out { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; }
}
@media (max-width: 480px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn--lg { width: 100%; }
  .hero__cta .btn--ghost { align-self: center; }
}

/* ─── Sections ─── */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.head { text-align: center; max-width: 620px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.head h2 { font-size: clamp(1.6rem, 3.8vw, 2.3rem); line-height: 1.2; letter-spacing: -.02em; margin-bottom: .5rem; text-wrap: balance; }
.head p { color: var(--muted); font-size: 1.05rem; }

.grid { display: grid; gap: 1rem; }
.grid--3 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; } }

/* Cards */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 1.5rem; transition: border-color .18s, box-shadow .18s, transform .18s;
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.ico {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  background: var(--accent-soft); border-radius: 12px; margin-bottom: 1rem;
}
.ico svg { stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.12rem; line-height: 1.2; margin-bottom: .35rem; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: .96rem; }

/* Steps */
.steps .step { text-align: center; padding: 1.5rem; }
.step__n {
  display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1rem;
  background: #fff; border: 1px solid var(--border); border-radius: 50%;
  font-weight: 800; font-size: 1.3rem; color: var(--accent); box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 1.1rem; line-height: 1.2; letter-spacing: -.01em; margin-bottom: .3rem; }
.step p { color: var(--muted); font-size: .96rem; }
.how__cta { text-align: center; margin-top: 2.5rem; }

/* Pricing */
.plans { align-items: stretch; }
.plan {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 1.8rem; display: flex; flex-direction: column;
}
.plan--pro { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.plan__badge {
  position: absolute; top: -12px; right: 20px; background: var(--accent); color: #fff;
  font-size: .78rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px;
}
.plan__name { font-size: 1.15rem; margin-bottom: .6rem; }
.plan__price { margin-bottom: 1.2rem; }
.plan__num { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan__per { color: var(--muted); font-size: .95rem; }
.plan__list { list-style: none; margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.plan__list li { position: relative; padding-left: 1.7rem; color: #334155; font-size: .97rem; }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px;
  background: var(--accent-soft); border-radius: 50%;
}
.plan__list li::after {
  content: ""; position: absolute; left: 5px; top: .55em; width: 6px; height: 3px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan__pay { text-align: center; color: var(--muted); font-size: .86rem; margin-top: .8rem; }
.plan__pay--anchor { color: var(--text); background: var(--accent-soft); border-radius: var(--r-sm); padding: .6rem .8rem; }

/* ─── Ikki platforma (две платформы) ─── */
.platforms { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 820px) { .platforms { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.platform {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.platform:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.platform--model::before {
  content: ""; position: absolute; left: 20px; right: 20px; top: -1px; height: 3px;
  border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.platform__kicker {
  align-self: flex-start; margin-bottom: 1rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.platform__ico {
  display: inline-grid; place-items: center; width: 56px; height: 56px;
  border-radius: 16px; background: var(--accent-soft); margin-bottom: 1.1rem;
}
.platform__ico svg { stroke: var(--accent); }
.platform__ico--grad { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.platform__ico--grad svg { stroke: #fff; }
.platform__name { font-size: 1.35rem; line-height: 1.2; letter-spacing: -.02em; margin-bottom: .5rem; }
.platform__desc { color: var(--muted); font-size: 1rem; margin-bottom: 1.25rem; max-width: 42ch; }
.platform__list { margin-bottom: 1.75rem; }
.platform .btn { margin-top: auto; }

/* ─── Til modeli: explainer / тёмный блок / теги ─── */
.xcard__ico {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 8px 18px rgba(0, 74, 173, .22); margin-bottom: 1.1rem;
}
.xcard__ico svg { stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.xcard__ico--grad { background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 18px rgba(123, 63, 173, .22); }
.xcard {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.75rem 1.5rem;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.xcard:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.xcard h3 { font-size: 1.14rem; line-height: 1.25; letter-spacing: -.01em; margin-bottom: .4rem; }
.xcard p { color: var(--muted); font-size: .97rem; }

.section--dark {
  background: linear-gradient(160deg, #14264f 0%, var(--ink) 55%, var(--ink-2) 100%);
  color: var(--on-dark); border-radius: 24px;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
}
.section--dark .grid { gap: 1.1rem; }
.head--light h2 { color: #fff; }
.head--light p { color: var(--on-dark-muted); }
.darkcard {
  background: #fff; color: var(--text); border-radius: var(--r-md); padding: 1.6rem 1.5rem;
  box-shadow: 0 16px 36px rgba(4, 12, 30, .32); transition: transform .18s ease, box-shadow .18s ease;
}
.darkcard:hover { transform: translateY(-3px); box-shadow: 0 24px 46px rgba(4, 12, 30, .4); }
.darkcard h3 { color: var(--text); font-size: 1.14rem; line-height: 1.25; letter-spacing: -.01em; margin-bottom: .4rem; }
.darkcard p { color: var(--muted); font-size: .97rem; }

.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem .65rem; max-width: 860px; margin: 0 auto; }
.tag {
  display: inline-flex; align-items: center; padding: .55rem 1.05rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--border-strong); color: var(--accent);
  font-size: .95rem; font-weight: 600; line-height: 1;
}
.tags__note { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 1.25rem; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: .7rem; }
.faq__item { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 1rem 1.1rem; font-weight: 600; line-height: 1.2; position: relative; padding-right: 2.5rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--accent); font-weight: 400; transition: transform .2s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item summary:focus-visible { outline-offset: -2px; }
.faq__item p { padding: 0 1.1rem 1.1rem; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.cta-band__inner { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; text-align: center; }
.cta-band h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 2.5rem 0; }
.foot__inner { display: flex; flex-direction: column; gap: 1.2rem; align-items: center; text-align: center; }
.foot__brand p { color: var(--muted); font-size: .9rem; margin-top: .2rem; }
.foot__links { display: flex; gap: 1.4rem; }
.foot__links a { color: var(--muted); font-size: .95rem; transition: color .15s; }
.foot__links a:hover { color: var(--accent); }
.foot__copy { color: var(--muted); font-size: .86rem; }
@media (min-width: 720px) {
  .foot__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* Уважение к prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .btn:hover, .card:hover, .platform:hover, .xcard:hover, .darkcard:hover { transform: none; }
}
