
:root {
  --ink: #0d1912;
  --ink2: #14261c;
  --paper: #f5f2e9;
  --paper2: #ece7d6;
  --lime: #c8f35b;
  --leaf: #2f7d3a;
  --text: #12201a;
  --muted: #56655c;
  --line: rgba(18, 32, 26, 0.14);
  --white: #ffffff;
  --radius: 18px;
  --gutter: 18px;
  --shadow: 0 22px 44px -20px rgba(13, 25, 18, 0.55);
  --font-display: "Unbounded", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-text: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.55 var(--font-text);
  padding-bottom: 92px;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--ink); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; line-height: 1.14; }
h1 { font-weight: 700; font-size: clamp(28px, 7.4vw, 60px); }
h2 { font-weight: 700; font-size: clamp(23px, 5.2vw, 38px); }
h3 { font-weight: 600; font-size: 16px; }
p { margin: 0 0 12px; }
.sub { color: var(--muted); max-width: 62ch; margin: 12px 0 0; }
.note { color: var(--muted); font-size: 15px; margin-top: 18px; }
.link { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.more { margin-top: 8px; }

/* --- кнопки --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 52px; padding: 14px 24px; border-radius: 999px;
  font: 600 16px/1.2 var(--font-text); text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer; transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--lime); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line { border-color: rgba(245, 242, 233, 0.55); color: var(--paper); background: transparent; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }

/* --- шапка --- */
.top { position: sticky; top: 0; z-index: 40; background: var(--ink); color: var(--paper); border-bottom: 1px solid rgba(200, 243, 91, 0.25); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); font: 600 15px/1 var(--font-display); min-width: 0; min-height: 48px; }
.brand__logo { width: 38px; height: 38px; flex: none; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(182, 204, 184, 0.5); }
.brand__name { white-space: nowrap; }
.nav { display: none; gap: 24px; }
.nav a { text-decoration: none; font-weight: 500; opacity: 0.85; padding: 10px 0; }
.nav a:hover { opacity: 1; color: var(--lime); }
.top :focus-visible, .hero :focus-visible, .sec--ink :focus-visible, .foot :focus-visible { outline-color: var(--lime); }

/* --- первый экран --- */
.hero { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; padding: 40px 0 64px; }
.hero::before {
  content: ""; position: absolute; right: -25%; top: -30%; width: 80vw; max-width: 760px; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(200, 243, 91, 0.26), transparent 70%); pointer-events: none;
}
.hero__grid { display: grid; gap: 40px; position: relative; }
.eyebrow { font: 600 14px/1.3 var(--font-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); margin-bottom: 16px; }
.mark { background: linear-gradient(transparent 64%, rgba(200, 243, 91, 0.9) 64%); padding: 0 0.06em; }
.lead { font-size: 18px; color: rgba(245, 242, 233, 0.84); max-width: 46ch; margin-top: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.chips { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border: 1px solid rgba(245, 242, 233, 0.3); border-radius: 999px; font-size: 14.5px; }
.hero__visual { display: flex; justify-content: center; }

/* --- телефоны-примеры --- */
.phone { width: 244px; padding: 9px; border-radius: 34px; background: #050a07; box-shadow: var(--shadow); margin: 0 auto; }
.hero .phone { width: min(268px, 78vw); transform: rotate(2.5deg); }
.phone__screen { border-radius: 26px; overflow: hidden; background: var(--s-bg); color: var(--s-fg); display: flex; flex-direction: column; min-height: 410px; font-size: 12.5px; line-height: 1.35; text-align: left; }
.phone__bar { display: flex; justify-content: space-between; align-items: center; padding: 11px 13px; background: var(--s-top); font: 700 12.5px/1 var(--font-display); }
.phone__hero { padding: 22px 13px 16px; display: grid; gap: 4px; }
.phone__hero strong { font: 700 17px/1.15 var(--font-display); }
.phone__hero span { opacity: 0.75; }
.phone__row { display: flex; justify-content: space-between; gap: 8px; padding: 11px 13px; border-top: 1px solid var(--s-line); }
.phone__row b { color: var(--s-accent); white-space: nowrap; }
.phone__cta { margin: auto 13px 15px; padding: 12px; border-radius: 12px; background: var(--s-accent); color: var(--s-on); text-align: center; font-weight: 700; }
.phone--barber { --s-bg: #171513; --s-fg: #f4efe6; --s-top: #0e0d0b; --s-line: rgba(255, 255, 255, 0.12); --s-accent: #e8a317; --s-on: #1a1306; }
.phone--tire { --s-bg: #0f2a52; --s-fg: #eef3fb; --s-top: #0a1d3a; --s-line: rgba(255, 255, 255, 0.14); --s-accent: #ff8a1f; --s-on: #1b0e00; }
.phone--salon { --s-bg: #fbefe9; --s-fg: #3a1f2a; --s-top: #f4d9d6; --s-line: rgba(58, 31, 42, 0.14); --s-accent: #b83a63; --s-on: #ffffff; }

/* --- секции --- */
.sec { padding: 56px 0; }
.sec--tint { background: var(--paper2); }
.sec--ink { background: var(--ink); color: var(--paper); }
.sec--ink .sub { color: rgba(245, 242, 233, 0.78); }

.journey, .steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.journey li, .steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.ico { width: 46px; height: 46px; border-radius: 14px; background: var(--ink); display: grid; place-items: center; margin-bottom: 12px; }
.ico svg { width: 22px; height: 22px; stroke: var(--lime); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.journey h3, .steps h3 { margin-bottom: 6px; }
.journey p, .steps p { margin: 0; color: var(--muted); font-size: 15.5px; }
.steps b { display: block; font: 800 42px/1 var(--font-display); color: transparent; -webkit-text-stroke: 1.5px var(--ink); margin-bottom: 10px; }

.mocks { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 28px calc(var(--gutter) * -1) 0; padding: 8px var(--gutter) 22px; -webkit-overflow-scrolling: touch; }
.mock { flex: 0 0 auto; scroll-snap-align: center; margin: 0; text-align: center; }
.mock figcaption { margin-top: 14px; font: 600 15px/1.2 var(--font-display); }

.tiers { display: grid; gap: 16px; margin-top: 28px; grid-template-columns: 1fr; }
.tier { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; display: flex; flex-direction: column; }
.tier--featured { background: #f3fbd3; border: 2px solid var(--ink); }
.tier__badge { position: absolute; top: -13px; left: 20px; background: var(--ink); color: var(--lime); font: 600 14px/1 var(--font-text); padding: 7px 12px; border-radius: 999px; }
.tier__name { font-size: 20px; }
.tier__tagline { color: var(--muted); margin: 6px 0 16px; font-size: 15.5px; }
.tier__price { font: 700 clamp(25px, 6vw, 32px)/1.1 var(--font-display); margin: 0; }
.tier__month { color: var(--muted); margin: 4px 0 18px; font-size: 15px; }
.tier__list { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.tier__list li { position: relative; padding-left: 28px; margin-bottom: 10px; font-size: 16px; }
.tier__list li::before { content: ""; position: absolute; left: 1px; top: 0.5em; width: 14px; height: 7px; border-left: 2.5px solid var(--leaf); border-bottom: 2.5px solid var(--leaf); transform: rotate(-45deg); }

/* --- форма --- */
.brief { display: grid; gap: 28px; }
.form { display: grid; gap: 18px; background: rgba(245, 242, 233, 0.06); border: 1px solid rgba(245, 242, 233, 0.2); border-radius: var(--radius); padding: 22px 20px; }
.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.field input[type=text], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid rgba(245, 242, 233, 0.32); background: var(--ink2); color: var(--paper); font: 400 16px/1.4 var(--font-text);
}
.field textarea { min-height: 100px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(245, 242, 233, 0.5); }
.chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.chipset input { position: absolute; opacity: 0; pointer-events: none; }
.chipset label { margin: 0; padding: 12px 18px; border-radius: 999px; border: 1.5px solid rgba(245, 242, 233, 0.38); cursor: pointer; min-height: 48px; display: inline-flex; align-items: center; font-weight: 600; font-size: 15.5px; }
.chipset input:checked + label { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.chipset input:focus-visible + label { outline: 3px solid var(--lime); outline-offset: 2px; }
.hint { font-size: 14.5px; color: rgba(245, 242, 233, 0.7); margin: 0; }

/* --- о студии --- */
.about { display: grid; gap: 24px; align-items: center; }
.about__logo { width: 96px; height: 96px; border-radius: 50%; box-shadow: var(--shadow); }
.story { font-size: 19px; max-width: 54ch; margin-top: 14px; }

/* --- вопросы --- */
details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 18px; margin-top: 12px; }
details:first-of-type { margin-top: 22px; }
summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 600 24px/1 var(--font-display); color: var(--leaf); flex: none; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 0 0 16px; }

/* --- подвал и плавающая кнопка --- */
.foot { background: var(--ink); color: rgba(245, 242, 233, 0.8); padding: 34px 0 40px; font-size: 15px; }
.foot p { margin: 0; }
.foot a { color: var(--lime); }
.foot__row { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.fab {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 45;
  min-height: 56px; padding: 0 22px 0 16px; border-radius: 999px; background: var(--lime); color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.55);
}
.fab svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --- анимация только для тех, кто её не отключал --- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .pulse { animation: pulse 2.4s ease-out infinite; }
  .hero::before { animation: drift 10s ease-in-out infinite alternate; }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 243, 91, 0.6); } 70% { box-shadow: 0 0 0 14px rgba(200, 243, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 243, 91, 0); } }
  @keyframes drift { to { transform: translate(-5%, 7%); } }
}

/* --- маленькие экраны --- */
@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .brand { font-size: 14px; gap: 8px; }
  .brand__logo { width: 32px; height: 32px; }
  .btn--sm { padding: 10px 14px; font-size: 14.5px; }
}

/* --- планшет --- */
@media (min-width: 520px) {
  .journey { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 520px) and (max-width: 859px) {
  .tiers { max-width: 620px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 820px) {
  .nav { display: flex; }
  .about { grid-template-columns: auto 1fr; gap: 36px; }
}
@media (min-width: 860px) {
  .tiers { grid-template-columns: repeat(3, 1fr); }
}

/* --- десктоп --- */
@media (min-width: 900px) {
  .hero { padding: 64px 0 88px; }
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
  .journey { grid-template-columns: repeat(4, 1fr); }
  .mocks { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 28px 0 0; padding: 8px 0 10px; justify-items: center; }
  .brief { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .sec { padding: 80px 0; }
}
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
  body { padding-bottom: 0; }
  .fab { display: none; }
}
