/* MyGrooming landing. Правила скилла landing-page-design, Part B:
   B1 шрифт Manrope, размеры только из шкалы Tailwind, веса до 700, без курсива
   B2 отступы только из таблицы: 0 2 4 8 12 16 24 32 40 48 64 80 96
   B3 радиусы Tailwind: 4 6 8 12 16 24 и full, вложенные по формуле outer минус gap
   B4 фоны плоские, граница вокруг карточки целиком
   B7 кривая cubic-bezier(0.22, 1, 0.36, 1), анимируются только transform и opacity */

:root {
  --brand: #0076E4;
  --brand-ink: #FFFFFF;
  --text: #0A0A0A;
  --muted: #5B6270;
  --bg: #FFFFFF;
  --bg-soft: #F5F6F8;
  --border-color: #E3E6EB;
  --border: 1px solid var(--border-color);
  --dark: #181818;
  --ok: #16A34A;

  --curve: cubic-bezier(0.22, 1, 0.36, 1);
  --w: 1152px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif; font-style: normal; font-synthesis: none;
  font-size: 16px; line-height: 24px; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  text-wrap: pretty;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.icon { width: 24px; height: 24px; fill: currentColor; flex: none; }
.icon--sm { width: 16px; height: 16px; }

/* ── Шкала типографики (B1): класс = шаг Tailwind ───────────────────────── */
.t-xs { font-size: 12px; line-height: 16px; }
.t-sm { font-size: 14px; line-height: 20px; }
.t-base { font-size: 16px; line-height: 24px; }
.t-lg { font-size: 18px; line-height: 28px; }
.t-xl { font-size: 20px; line-height: 28px; }
.t-2xl { font-size: 24px; line-height: 32px; }
.t-3xl { font-size: 30px; line-height: 36px; }
.t-4xl { font-size: 36px; line-height: 40px; }
.t-5xl { font-size: 48px; line-height: 1; }
.t-6xl { font-size: 60px; line-height: 1; }
h1, h2, h3, .balance { text-wrap: balance; }
h1, h2 { font-weight: 700; letter-spacing: -0.02em; }
h3 { font-weight: 600; }
.muted { color: var(--muted); }
.semibold { font-weight: 600; }

/* ── Сетка ───────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: calc(var(--w) + 48px); margin-inline: auto; padding-inline: 24px; }
.sec { padding-block: 64px; }
.sec--soft { background: var(--bg-soft); }
.sec-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-bottom: 40px; }
.sec-head--center { margin-inline: auto; text-align: center; align-items: center; }
.eyebrow { color: var(--brand); font-size: 14px; line-height: 20px; font-weight: 600; }
.sec-title { font-size: 30px; line-height: 36px; }
.sec-lead { font-size: 18px; line-height: 28px; color: var(--muted); }
@media (min-width: 768px) {
  .sec { padding-block: 96px; }
  .sec-title { font-size: 36px; line-height: 40px; }
}
@media (min-width: 1024px) {
  .sec-title { font-size: 48px; line-height: 1; }
}

/* ── Кнопки: один компонент (B1, B2: 8px по вертикали, 12px по горизонтали) ─ */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 8px 12px; border: 1px solid transparent; border-radius: 8px;
  font-size: 16px; line-height: 24px; font-weight: 600; text-align: center;
  transition: transform 300ms var(--curve), opacity 300ms var(--curve);
}
.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--ghost { background: var(--bg); color: var(--text); border-color: var(--border-color); }
.btn--light { background: #FFFFFF; color: var(--text); }
.btn--sm { min-height: 40px; font-size: 14px; line-height: 20px; }
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn:active { transform: scale(0.98); }

/* ── Навигация (B7): плавающая капсула, перекрытие размытием ────────────── */
.skip {
  position: fixed; z-index: 200; top: 8px; left: 8px; padding: 8px 12px; border-radius: 8px;
  background: var(--text); color: #FFFFFF; font-weight: 600;
  transform: translateY(-200%); transition: transform 300ms var(--curve);
}
.skip:focus { transform: none; }
.nav {
  position: fixed; z-index: 100; top: 16px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 24px; padding: 8px 8px 8px 12px;
  background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: var(--border); border-radius: 16px;
  width: calc(100% - 32px); justify-content: space-between;
}
.logo { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; line-height: 28px; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links, .nav-actions { display: none; }
.nav-links { align-items: center; gap: 4px; }
.nav-link {
  white-space: nowrap; padding: 8px 12px; border-radius: 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--muted);
  transition: opacity 300ms var(--curve), color 300ms var(--curve);
}
.nav-link:hover { color: var(--text); }
.nav-link[aria-current="true"] { color: var(--text); background: var(--bg-soft); }
.nav-actions { align-items: center; gap: 8px; }
.menu-toggle {
  position: relative; width: 40px; height: 40px; border: 1px solid var(--border-color); border-radius: 8px;
  background: var(--bg); padding: 0;
}
.menu-toggle span {
  position: absolute; left: 11px; width: 16px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform 500ms var(--curve);
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; z-index: 90; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 96px 24px 40px; background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden; transition: opacity 500ms var(--curve), visibility 0s linear 500ms;
}
.menu[data-open="true"] { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu a:not(.btn) { font-size: 30px; line-height: 36px; font-weight: 700; padding-block: 8px; }
.menu > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity 500ms var(--curve), transform 500ms var(--curve);
}
.menu[data-open="true"] > * { opacity: 1; transform: none; transition-delay: calc(var(--i) * 60ms); }
.menu .btn { margin-top: 16px; align-self: flex-start; }
@media (min-width: 900px) {
  .nav { width: auto; justify-content: flex-start; padding-right: 8px; }
  .nav-links, .nav-actions { display: flex; }
  .menu-toggle, .menu { display: none; }
}

/* ── Герой (B5): заголовок и подзаголовок до 680px, градиент только на тексте ─ */
.hero { padding-top: 96px; padding-bottom: 64px; }
.hero-copy { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.hero h1 {
  max-width: 680px; font-size: 36px; line-height: 40px;
  background: linear-gradient(90deg, #000000, #666666); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub { max-width: 680px; font-size: 18px; line-height: 28px; color: var(--muted); }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 14px; line-height: 20px; color: var(--muted); }
.proof li { display: inline-flex; align-items: center; gap: 4px; }
.proof .icon { color: var(--ok); }
@media (min-width: 1024px) { .hero h1 { font-size: 48px; line-height: 1; } }

/* ── Оживающий интерфейс (design to motion) ─────────────────────────────── */
.stage-wrap { margin-top: 48px; display: flex; justify-content: center; }
.window {
  position: relative; width: 100%; max-width: 1152px; aspect-ratio: 1920 / 1200;
  border: var(--border); border-radius: 16px; overflow: hidden; background: #FFFFFF; isolation: isolate;
}
.window--desktop { display: none; }
.window--phone { width: 280px; aspect-ratio: 780 / 1688; border-radius: 24px; }
@media (min-width: 768px) {
  .window--desktop { display: block; }
  .window--phone { display: none; }
}
.window .base, .window .lyr, .window .ring, .window .hl, .window .cursor { position: absolute; }
.window .base { inset: 0; width: 100%; height: 100%; max-width: none; }
.lyr { background-repeat: no-repeat; will-change: transform, opacity, filter; }
.ring { width: 1.2%; aspect-ratio: 1; border-radius: 9999px; border: 2px solid currentColor; opacity: 0; pointer-events: none; }
.hl { border: 2px solid var(--brand); border-radius: 6px; opacity: 0; pointer-events: none; }
.cursor { width: 2%; opacity: 0; pointer-events: none; z-index: 5; }
.cursor svg { width: 100%; height: auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); }

/* Фрагменты скриншотов: обрезка через переменные, картинка грузится рядом с экраном */
.crop {
  position: relative; width: 100%; aspect-ratio: var(--cw) / var(--ch); overflow: hidden;
  background-repeat: no-repeat;
  background-size: calc(var(--iw) / var(--cw) * 100%) auto;
  background-position: calc(var(--cx) / (var(--iw) - var(--cw)) * 100%) calc(var(--cy) / (var(--ih) - var(--ch)) * 100%);
}
.is-near .crop { background-image: var(--img-lg); }
@media (max-width: 767px) { .is-near .crop { background-image: var(--img-sm); } }
.crop .lyr, .crop .hl, .crop .sheen { position: absolute; }
.is-near .photo-slot .lyr { background-image: var(--img-lg); }
@media (max-width: 767px) { .is-near .photo-slot .lyr { background-image: var(--img-sm); } }
.hl--fill { background: rgba(0, 118, 228, 0.10); }

/* ── Секции содержания ──────────────────────────────────────────────────── */
.cmp { display: grid; gap: 16px; }
.cmp-item { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: var(--border); border-radius: 16px; background: var(--bg); }
.cmp-was { display: flex; gap: 8px; color: var(--muted); font-size: 14px; line-height: 20px; }
.cmp-was .icon { color: #B42318; }
.cmp-now { display: flex; gap: 8px; font-weight: 600; }
.cmp-now .icon { color: var(--ok); }
.cmp-item p { color: var(--muted); }
@media (min-width: 768px) { .cmp { grid-template-columns: repeat(3, 1fr); } }

.bento { display: grid; gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 16px; padding: 24px; overflow: hidden;
  border: var(--border); border-radius: 16px; background: var(--bg);
}
.card--soft { background: var(--bg-soft); }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; background: var(--bg-soft); color: var(--brand); }
.card--soft .card-icon { background: var(--bg); }
.card h3 { font-size: 20px; line-height: 28px; }
.card-text { color: var(--muted); }
.card-vis { margin-top: auto; min-height: 0; border: var(--border); border-radius: 8px; overflow: hidden; background: #FFFFFF; position: relative; }
.card-vis .crop { border-radius: 0; }
.vis-clip { position: relative; overflow: hidden; }
@media (min-width: 900px) {
  .calc { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento .c3 { grid-column: span 3; }
  .bento .c6 { grid-column: span 6; }
}
.sheen { inset: 0; width: 38%; background: rgba(255, 255, 255, 0.34); opacity: 0; pointer-events: none; }
.skel { position: absolute; background: #E9ECF1; opacity: 0; border-radius: 4px; pointer-events: none; }

.phones { display: flex; justify-content: center; align-items: flex-end; gap: 0; }
.phone {
  position: relative; width: 260px; aspect-ratio: 780 / 1688; overflow: hidden;
  border: var(--border); border-radius: 24px; background: #FFFFFF; flex: none;
}
.phone .screen { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; will-change: transform; }
.is-near .phone .s1 { background-image: var(--img1); }
.is-near .phone .s2 { background-image: var(--img2); }
.tap { position: absolute; width: 8%; aspect-ratio: 1; border-radius: 9999px; border: 2px solid var(--brand); opacity: 0; pointer-events: none; }
.card--wide { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .card--wide { grid-template-columns: 1fr 1fr; padding: 40px; } }

.steps { display: grid; gap: 16px; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: var(--border); border-radius: 16px; background: var(--bg); }
.step-n { font-size: 36px; line-height: 40px; font-weight: 700; color: var(--brand); }
.step p { color: var(--muted); }
.support { margin-top: 24px; display: flex; gap: 12px; align-items: flex-start; color: var(--muted); max-width: 680px; }
.support .icon { color: var(--brand); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.trust { display: grid; gap: 16px; }
.trust-item { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: var(--border); border-radius: 16px; background: var(--bg); }
.trust-item .icon { color: var(--brand); }
.trust-item p { color: var(--muted); }
@media (min-width: 768px) { .trust { grid-template-columns: repeat(3, 1fr); } }

/* ── Тариф ───────────────────────────────────────────────────────────────── */
.calc { display: grid; gap: 16px; }
.calc-box { padding: 24px; border: var(--border); border-radius: 16px; background: var(--bg); display: flex; flex-direction: column; gap: 16px; }
.calc-label { font-weight: 600; }
.calc-row { display: flex; align-items: center; gap: 12px; }
.calc-row input[type=range] { flex: 1; accent-color: var(--brand); height: 24px; }
.calc-btn {
  width: 40px; height: 40px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg);
  font-size: 20px; line-height: 28px; font-weight: 600; transition: transform 300ms var(--curve);
}
.calc-btn:active { transform: scale(0.98); }
.calc-count { min-width: 40px; text-align: right; font-weight: 700; font-size: 24px; line-height: 32px; }
.calc-lines { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: var(--border); }
.calc-lines li { display: flex; justify-content: space-between; gap: 16px; }
.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.term {
  display: flex; flex-direction: column; align-items: center; padding: 8px; border: 1px solid var(--border-color); border-radius: 8px;
  background: var(--bg); font-size: 14px; line-height: 20px; font-weight: 600;
  transition: transform 300ms var(--curve), opacity 300ms var(--curve);
}
.term:active { transform: scale(0.98); }
.term[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); }
.term-off { font-size: 12px; line-height: 16px; color: var(--ok); }
.calc-sum { font-size: 48px; line-height: 1; font-weight: 700; letter-spacing: -0.02em; }
.calc-save { color: var(--ok); font-weight: 600; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 8px; max-width: 768px; margin-inline: auto; }
.faq details { border: var(--border); border-radius: 12px; background: var(--bg); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 18px; line-height: 28px; border-radius: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform 500ms var(--curve); color: var(--muted); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 16px 16px; color: var(--muted); }

/* ── Финальный призыв ────────────────────────────────────────────────────── */
.final { background: var(--dark); color: #FFFFFF; }
.final-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.final h2 { max-width: 680px; }
.final p { max-width: 680px; color: #B5B5B5; font-size: 18px; line-height: 28px; }
.final .contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 14px; line-height: 20px; }
.final .contacts a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; }

footer { padding-block: 48px; border-top: var(--border); }
.f-cols { display: grid; gap: 32px; margin-bottom: 40px; }
.f-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 20px; }
.f-col b { font-weight: 600; margin-bottom: 4px; }
.f-col a, .f-col button { color: var(--muted); padding: 0; border: 0; background: none; font-size: 14px; line-height: 20px; text-align: left; }
.f-col a:hover, .f-col button:hover { color: var(--text); }
.f-note { color: var(--muted); font-size: 12px; line-height: 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (min-width: 768px) { .f-cols { grid-template-columns: 1.4fr repeat(3, 1fr); } }

/* ── Cookie banner (скрипт cookie-consent.js не менялся) ─────────────────── */
.cookie-banner {
  position: fixed; z-index: 150; left: 16px; right: 16px; bottom: 16px; max-width: 520px; padding: 16px;
  background: var(--bg); border: var(--border); border-radius: 16px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin-bottom: 12px; font-size: 14px; line-height: 20px; }
.cookie-banner a { text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Появление секций (B7): подъём на 32px, 700ms, один раз ──────────────── */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--curve), transform 700ms var(--curve); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .bento-card { opacity: 0; }
.js .bento-card.in { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 300ms linear; }
  .menu > * { transform: none; }
  .btn:hover { transform: none; }
}

/* ── 404 ─────────────────────────────────────────────────────────────────── */
.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; padding: 24px; }
.notfound .code { font-size: 96px; line-height: 1; font-weight: 700; color: var(--brand); }
