/* ============================================================
   UlusLife — лендинг uluslife.ru
   Дизайн-система «Северный минимализм» — в тон приложению
   (docs/mobile-design.md §8) + фирменный якутский орнамент.
   ============================================================ */

:root {
  --bg: #F6F8FA;
  --surface: #FFFFFF;
  --brand: #17627A;
  --brand2: #2FA8CC;
  --brand-soft: #E8F2F6;
  --green: #2E9E6B;
  --green-dark: #26875B;
  --orange: #D9822B;
  --text: #16232B;
  --muted: #5B6B74;
  --line: #E3E9ED;
  --line-strong: #D2DBE1;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(22, 35, 43, .05), 0 4px 14px rgba(22, 35, 43, .06);
  --shadow-md: 0 6px 28px rgba(22, 35, 43, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--brand2);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 22px rgba(46, 158, 107, .28);
}
.btn-primary:hover { background: var(--green-dark); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--brand2); color: var(--brand); }

.btn-white {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 8px 22px rgba(9, 42, 54, .25);
}
.btn-white:hover { background: #EDF6F9; }

.btn svg { width: 20px; height: 20px; flex: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--surface);
  color: var(--brand);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 0 0 12px 0;
  box-shadow: var(--shadow-md);
}
.skip-link:focus { left: 0; text-decoration: none; }

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 86px;
}

.brand {
  display: inline-flex;
  align-items: center;
}
.brand:hover { text-decoration: none; }
.brand img { width: 64px; height: 64px; }
/* Горизонтальный лого-знак в шапке (высота задаёт ширину по пропорции 5:1) */
.site-header .brand img { width: auto; height: 48px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.main-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.main-nav a:hover { color: var(--brand); text-decoration: none; }
.main-nav a.btn-primary,
.main-nav a.btn-primary:hover { color: #fff; }

/* Выпадающий список «Документы» */
.nav-item.has-sub { position: relative; display: flex; align-items: center; }
.nav-sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.nav-sub-toggle:hover { color: var(--brand); }
.nav-sub-toggle svg { width: 14px; height: 14px; transition: transform .2s ease; }
.has-sub.open .nav-sub-toggle { color: var(--brand); }
.has-sub.open .nav-sub-toggle svg { transform: rotate(180deg); }
.sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  display: none;
  min-width: 290px;
  padding: 8px;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  z-index: 60;
  list-style: none;
}
.has-sub.open .sub-menu,
.has-sub:focus-within .sub-menu { display: block; }
.sub-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}
.sub-menu a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }

.qr-card {
  width: 200px;
  background: var(--surface);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 10px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.qr { display: block; width: 100%; height: auto; border-radius: 10px; }
.qr-card span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
}

.header-cta { margin-left: 8px; padding: 10px 20px; font-size: 15px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
}
.nav-toggle span + span { margin-top: 6px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #E9F2F6 0%, var(--bg) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("ornament-teal.svg") no-repeat right -180px top -220px;
  background-size: 900px auto;
  opacity: .07;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 48px;
  align-items: center;
  padding: 76px 0 108px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}
.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--orange);
  transform: rotate(45deg);
  border-radius: 2px;
  flex: none;
}

.hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(2.3rem, 5.2vw, 3.55rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.02em;
}
.hero h1 .grad {
  background: linear-gradient(95deg, var(--brand) 10%, var(--brand2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -.005em;
}
.hero-note span { display: inline-flex; align-items: center; white-space: nowrap; }
.hero-note span + span::before {
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 11px;
  background: var(--orange);
  transform: rotate(45deg);
  border-radius: 1.5px;
  opacity: .8;
}

/* Телефон в hero */

.hero-visual { position: relative; display: flex; justify-content: center; }

.phone {
  position: relative;
  width: min(288px, 76vw);
  border-radius: 42px;
  border: 9px solid #16232B;
  background: #16232B;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.phone img { width: 100%; height: auto; border-radius: 33px; }
.phone::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #16232B;
}

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 15px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  animation: float 5.5s ease-in-out infinite;
}
.float-chip .chip-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
}
.float-chip small {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.3;
}
.chip-push { top: 14%; left: -4%; }
.chip-push .chip-ico { background: var(--brand-soft); color: var(--brand); }
.chip-uluses { bottom: 12%; right: -6%; animation-delay: -2.7s; }
.chip-uluses .chip-ico { background: var(--brand-soft); color: var(--brand); }
.chip-uluses .chip-num { font-size: 18px; font-weight: 800; color: var(--brand); line-height: 1; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Статистика ---------- */

.stats-wrap { position: relative; z-index: 2; margin-top: -62px; }

.stats-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 30px 34px;
}
.stat { text-align: center; padding: 6px 4px; }
.stat .num {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 800;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.stat .num sup { font-size: .55em; font-weight: 800; }
.stat .lbl { font-size: 14px; color: var(--muted); margin: 3px 0 0; }

/* ---------- Секции ---------- */

.section { padding: 84px 0; }
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--orange);
  transform: rotate(45deg);
  border-radius: 1.5px;
}

.section-title {
  margin: 12px 0 12px;
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.15;
}
.section-lead {
  margin: 0 0 44px;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 44em;
}

/* ---------- Возможности ---------- */

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-soft), #EDF7F2);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 27px; height: 27px; }

.feature-card h3 { margin: 0 0 8px; font-size: 1.13rem; font-weight: 700; }
.feature-card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Как это работает ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 26px 28px;
}
.step-num {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  transform: rotate(45deg);
  display: grid;
  place-items: center;
  margin: 4px 4px 20px;
  box-shadow: 0 6px 16px rgba(23, 98, 122, .28);
}
.step-num span {
  transform: rotate(-45deg);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}
.step h3 { margin: 0 0 8px; font-size: 1.13rem; font-weight: 700; }
.step p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Категории ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  padding: 20px 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.cat:hover {
  transform: translateY(-3px);
  border-color: var(--brand2);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.cat img { width: 46px; height: 46px; }

/* ---------- Скриншоты ---------- */

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 224px;
  gap: 22px;
  overflow-x: auto;
  padding: 8px 32px 26px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%);
}
.shots::-webkit-scrollbar { display: none; }
.shots img {
  width: 100%;
  height: auto;
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.shots-hint { font-size: 13.5px; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 12px; max-width: 800px; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  width: 11px;
  height: 11px;
  flex: none;
  border-right: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand);
  transform: rotate(45deg);
  transition: transform .2s ease;
  margin-top: -4px;
}
.faq-list details[open] summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}
.faq-a { padding: 0 22px 20px; color: var(--muted); }
.faq-a p { margin: 0; }

/* ---------- Финальный CTA ---------- */

.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, var(--brand) 0%, var(--brand2) 100%);
  border-radius: 28px;
  padding: clamp(36px, 5vw, 60px);
  color: #fff;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("ornament-white.svg") no-repeat right -140px bottom -240px;
  background-size: 760px auto;
  opacity: .14;
  pointer-events: none;
}
.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.15;
}
.cta p { margin: 0 0 28px; color: rgba(255, 255, 255, .88); font-size: 1.06rem; max-width: 36em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-store-note { font-size: 13.5px; color: rgba(255, 255, 255, .75); margin: 14px 0 0; }

/* ---------- Футер ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 44px 0 48px;
  margin-top: 84px;
}
.foot-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 40px;
}
.foot-brand { display: grid; gap: 6px; align-content: start; }
.foot-brand .brand img { width: 52px; height: 52px; }
.foot-tagline { font-size: 14px; color: var(--muted); }

/* Колонки подвала: Сервис / Документы / Контакты */
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
  gap: 32px;
}
.foot-col h4 {
  margin: 6px 0 12px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-col a { font-size: 14.5px; font-weight: 600; color: var(--muted); }
.foot-col a:hover { color: var(--brand); text-decoration: none; }
.foot-col p { margin: 0; font-size: 14px; color: var(--muted); }
.foot-col p a { font-weight: 700; }
.foot-bottom {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

/* ---------- Страница политики ---------- */

.doc-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, var(--brand), var(--brand2));
  color: #fff;
  padding: 44px 0 48px;
}
.doc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("ornament-white.svg") no-repeat right -160px top -200px;
  background-size: 640px auto;
  opacity: .12;
  pointer-events: none;
}
.doc-hero-inner { position: relative; }
.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 26px;
}
.doc-back:hover { color: #fff; text-decoration: none; }
.doc-hero h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 1.95rem); font-weight: 800; letter-spacing: -.01em; }
.doc-hero .doc-sub { margin: 0; color: rgba(255, 255, 255, .88); font-size: 14.5px; }

.doc-main {
  max-width: 780px;
  margin: 0 auto;
  padding: 44px 24px 72px;
}
.doc-main section.doc-sec { margin-bottom: 8px; }
.doc-main h2 {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--brand);
  margin: 34px 0 12px;
  letter-spacing: -.01em;
}
.doc-main h3 { font-size: 1.05rem; font-weight: 700; margin: 22px 0 8px; }
.doc-main p, .doc-main li { margin: 8px 0; }
.doc-main ul { padding-left: 22px; }
.doc-main b { font-weight: 700; }
.doc-lead {
  font-size: 1.02rem;
  color: var(--text);
  border-left: 3px solid var(--brand);
  padding: 2px 0 2px 16px;
  margin: 0 0 26px;
}
.doc-meta {
  margin-top: 18px !important;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.todo {
  background: #FFF3A0;
  padding: 1px 6px;
  border-radius: 5px;
  font-weight: 600;
}
.note {
  color: var(--muted);
  font-size: 14.5px;
  background: var(--brand-soft);
  border-left: 3px solid var(--brand2);
  border-radius: 0 10px 10px 0;
  padding: 10px 14px;
  margin: 14px 0;
}

/* Страница-заглушка документа */
.doc-stub {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 38px 32px;
  text-align: center;
  margin-top: 12px;
}
.doc-stub-ico {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-soft), #EDF7F2);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}
.doc-stub-ico svg { width: 30px; height: 30px; }
.doc-stub h2 { margin: 0 0 10px; font-size: 1.3rem; font-weight: 800; color: var(--text); }
.doc-stub p { margin: 0 0 12px; color: var(--muted); }
.doc-stub p:last-child { margin: 0; font-size: 14.5px; }

/* ---------- Reveal-анимации ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; }
.js .reveal-d2 { transition-delay: .16s; }
.js .reveal-d3 { transition-delay: .24s; }

/* ---------- Адаптив ---------- */

@media (max-width: 1020px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 880px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 14px 24px 20px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }

  /* Выпадающий список на мобильном — раскрывается внутрь панели */
  .nav-item.has-sub { flex-direction: column; align-items: stretch; }
  .brand img { width: 56px; height: 56px; }
  .site-header .brand img { width: auto; height: 40px; }
  .header-inner { min-height: 76px; }
  .nav-sub-toggle { width: 100%; justify-content: space-between; padding: 11px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .sub-menu { position: static; transform: none; display: none; min-width: 0; border: none; box-shadow: none; padding: 2px 0 6px 14px; }
  .has-sub.open .sub-menu { display: block; }
  .has-sub:focus-within .sub-menu { display: block; }
  .sub-menu a { padding: 10px 4px; border-bottom: 1px solid var(--line); color: var(--muted); }
  .sub-menu li:last-child a { border-bottom: none; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 52px;
    padding: 54px 0 96px;
    text-align: center;
  }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-note { justify-content: center; }
  .hero-visual { margin-top: 6px; }
  .chip-push { left: 0; }
  .chip-uluses { right: 0; }

  .steps { grid-template-columns: 1fr; }
  .stats-card { grid-template-columns: repeat(2, 1fr); padding: 24px; }
  .cta-inner { grid-template-columns: 1fr; }
  .qr-card { justify-self: center; }
}

@media (max-width: 600px) {
  .container { padding-inline: 20px; }
  .section { padding: 64px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat { font-size: 12.5px; padding: 14px 6px 12px; }
  .cat img { width: 40px; height: 40px; }
  .float-chip { display: none; }
  .shots { grid-auto-columns: 200px; }
  .site-footer { margin-top: 64px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}

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

/* ---------- Уважение к 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;
  }
  .js .reveal { opacity: 1; transform: none; }
}
