/* ЧИНАП — стили сайта */

:root {
  --ink: #0d1117;
  --ink-2: #161b24;
  --ink-3: #222a36;
  --paper: #f6f4ef;
  --paper-2: #ece8df;
  --white: #ffffff;
  --text: #141821;
  --muted: #5b6270;
  --muted-light: #a3abb9;
  --line: #d9d4c8;
  --line-dark: rgba(255, 255, 255, 0.12);
  --accent: #ff8a1f;
  --accent-ink: #1a0f00;
  --accent-hover: #ffa04a;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button, input, textarea { font: inherit; color: inherit; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--accent); color: var(--accent-ink);
  border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--line); background: transparent; color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.eyebrow--light { color: var(--muted-light); }
.eyebrow .dot { display: none; }

.h2 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 800; }

.head {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px 64px; align-items: end;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.head__lede { color: var(--muted); font-size: 18px; max-width: 46ch; }

.section { padding: var(--section) 0; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--white); }
.section--dark .head__lede { color: var(--muted-light); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--white);
  transition: background .3s, box-shadow .3s, transform .35s var(--ease);
}
.header--solid { background: rgba(13, 17, 23, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line-dark); }
.header--hidden { transform: translateY(-100%); }
.header__row { display: flex; align-items: center; gap: 32px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 36px; height: 36px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 19px; letter-spacing: 0.08em; }
.brand__sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-light); }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: 15px; font-weight: 600; text-decoration: none; color: rgba(255,255,255,.78); transition: color .2s; }
.nav a:hover { color: var(--white); }

.header__actions { display: flex; align-items: center; gap: 20px; }
.header__phone { font-family: var(--mono); font-size: 14px; text-decoration: none; color: rgba(255,255,255,.85); }
.header__phone:hover { color: var(--accent); }

.burger {
  display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-dark); border-radius: 50%;
  background: transparent; cursor: pointer; position: relative;
}
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.menu { background: var(--ink); border-top: 1px solid var(--line-dark); height: calc(100dvh - var(--header-h)); overflow-y: auto; }
.menu__nav { display: flex; flex-direction: column; padding-top: 24px; padding-bottom: 32px; }
.menu__nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line-dark); font-size: 22px; font-weight: 700; text-decoration: none; }
.menu__nav .menu__phone { font-family: var(--mono); font-size: 18px; font-weight: 500; color: var(--accent); border-bottom: 0; }
.menu__nav .btn { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 920px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 64px) 0 0;
  background: var(--ink); color: var(--white);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(13,17,23,.94) 0%, rgba(13,17,23,.78) 45%, rgba(13,17,23,.35) 100%),
    linear-gradient(0deg, rgba(13,17,23,1) 0%, rgba(13,17,23,0) 40%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}
.hero__inner { padding-bottom: clamp(48px, 7vw, 88px); }
.hero__title { font-size: clamp(36px, 6vw, 76px); font-weight: 800; letter-spacing: -0.035em; max-width: 15ch; line-height: 1.04; }
.hero__lead { margin-top: 28px; max-width: 58ch; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.78); }

.quick {
  display: flex; gap: 8px; margin-top: 36px; max-width: 640px; padding: 6px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.quick__input { flex: 1; min-width: 0; padding: 0 20px; border: 0; background: transparent; color: var(--white); font-size: 16px; }
.quick__input::placeholder { color: rgba(255,255,255,.5); }
.quick__input:focus { outline: none; }
.quick:focus-within { border-color: var(--accent); }
.hero__hint { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.55); }

.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 24px 32px 0; border-top: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 4px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.stat b { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--white); }
.stat span { font-size: 14px; color: var(--muted-light); }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; background: var(--accent); color: var(--accent-ink); padding: 14px 0; }
.ticker__track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker__track span { padding: 0 22px; font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.ticker__track span::after { content: "◆"; margin-left: 44px; font-size: 8px; vertical-align: middle; opacity: .55; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__text .h2 { margin-bottom: 28px; }
.about__text p { color: #333a46; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a0f00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat;
}
.about__media { position: relative; margin: 0; }
.about__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.tag {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  display: flex; flex-direction: column; gap: 2px; padding: 16px 20px;
  background: rgba(13,17,23,.86); color: var(--white); border-radius: var(--radius-sm);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.tag__k { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.tag__v { font-size: 15px; font-weight: 600; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 32px; min-height: 280px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(13,17,23,.25); border-color: transparent; }
.card h3 { font-size: 21px; font-weight: 700; margin-top: auto; }
.card p { color: var(--muted); font-size: 16px; }
.card__num { position: absolute; top: 28px; right: 32px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.card__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px;
  background: var(--paper-2); margin-bottom: 24px;
}
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card__icon { background: var(--accent); }

.card--feature { grid-column: span 2; grid-row: span 1; padding: 0; overflow: hidden; border: 0; color: var(--white); background: var(--ink); }
.card--feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .6s var(--ease); }
.card--feature:hover img { transform: scale(1.04); }
.card--feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,17,23,.95) 0%, rgba(13,17,23,.1) 70%); }
.card--feature .card__body { position: relative; z-index: 1; margin-top: auto; padding: 32px; display: flex; flex-direction: column; gap: 12px; max-width: 620px; }
.card--feature .card__num { position: static; color: var(--accent); }
.card--feature h3 { font-size: clamp(24px, 2.4vw, 30px); margin: 0; }
.card--feature p { color: rgba(255,255,255,.78); }

.card--cta { grid-column: span 2; min-height: 0; justify-content: center; align-items: flex-start; background: var(--accent); border-color: var(--accent); }
.card--cta h3 { margin: 0; font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; }
.card--cta p { color: rgba(26,15,0,.75); max-width: 52ch; }
.card--cta .btn { margin-top: 8px; background: var(--ink); color: var(--white); }
.card--cta .btn:hover { background: var(--ink-3); }

/* ---------- Catalog ---------- */
.catalog { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: start; }
.catalog > * { min-width: 0; }
.catalog__side { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 12px; }

.search { position: relative; }
.search svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search input {
  width: 100%; height: 52px; padding: 0 18px 0 50px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: 16px;
}
.search input:focus { outline: none; border-color: var(--text); }

.cats {
  display: flex; flex-direction: column; max-height: 62vh; overflow-y: auto;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px;
  scrollbar-width: thin;
}
.cat {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 11px 14px; border: 0; border-radius: var(--radius-sm);
  background: transparent; text-align: left; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .2s;
}
.cat:hover { background: var(--paper); }
.cat[aria-selected="true"] { background: var(--ink); color: var(--white); }
.cat__n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.cat[aria-selected="true"] .cat__n { color: var(--accent); }

.catalog__panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); min-height: 100%; }
.catalog__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.catalog__head h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; }
.pill { flex-shrink: 0; padding: 4px 12px; border-radius: 999px; background: var(--paper-2); font-family: var(--mono); font-size: 13px; color: var(--muted); }

.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.brand-chip {
  display: flex; flex-direction: column; justify-content: flex-start; gap: 2px;
  min-height: 68px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
  font-weight: 700; font-size: 15px; line-height: 1.25;
  animation: chip-in .35s var(--ease) both;
}
.brand-chip__logo { display: flex; align-items: center; height: 40px; margin-bottom: 10px; }
.brand-chip__logo img { max-width: 118px; max-height: 34px; width: auto; height: auto; object-fit: contain; }
.brand-chip__mono {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--paper-2); color: var(--text); font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: .02em;
}
.brand-chip small { font-weight: 500; font-size: 12px; color: var(--muted); }
.brand-chip mark { background: rgba(255,138,31,.3); color: inherit; border-radius: 2px; }
@keyframes chip-in { from { opacity: 0; transform: translateY(6px); } }
.brands__empty { grid-column: 1 / -1; padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--muted); }

.catalog__cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.catalog__cta p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.step { position: relative; padding: 32px 24px 8px 0; border-top: 1px solid var(--line-dark); }
.step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(255,138,31,.15); }
.step__num { display: block; margin-bottom: 40px; font-family: var(--mono); font-size: 13px; color: var(--muted-light); }
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.step p { font-size: 15px; color: var(--muted-light); }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.why__media { margin: 0; }
.why__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.why__text .h2 { margin-bottom: 32px; }
.why__list { margin: 0; display: grid; }
.why__list div { display: grid; grid-template-columns: 220px 1fr; gap: 8px 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.why__list div:last-child { border-bottom: 1px solid var(--line); }
.why__list dt { font-weight: 800; }
.why__list dd { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__note { margin-top: 24px; color: var(--muted); }
.faq__note a { color: var(--text); font-weight: 700; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.faq__list { display: grid; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 22px 64px 22px 26px; font-size: 18px; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141821' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .3s var(--ease), background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--accent); }
.faq details p { padding: 0 26px 24px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__lede { margin-top: 20px; color: var(--muted-light); font-size: 18px; max-width: 44ch; }
.channels { list-style: none; padding: 0; margin: 40px 0 0; }
.channels li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-dark); }
.channels li:last-child { border-bottom: 1px solid var(--line-dark); }
.channels__k { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-light); padding-top: 3px; }
.channels a { font-size: 18px; font-weight: 600; text-decoration: none; }
.channels a:hover { color: var(--accent); }

.form { padding: clamp(24px, 3.5vw, 40px); background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); display: grid; gap: 18px; }
.form__title { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.form__split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--muted-light); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line-dark); border-radius: var(--radius-sm);
  background: var(--ink-3); color: var(--white); font-size: 16px; transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: #6b7383; }
.field--error input, .field--error textarea { border-color: #ff5c5c; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted-light); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.check a, .form__alt a { color: var(--white); }
.form__status { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--accent); }
.form__alt { margin: 0; font-size: 13px; color: var(--muted-light); }

/* ---------- Footer ---------- */
.footer { background: #090c11; color: var(--muted-light); padding: 72px 0 32px; font-size: 15px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer__brand .brand { color: var(--white); margin-bottom: 18px; }
.footer__brand .brand__mark { width: 32px; height: 32px; }
.footer__brand p { max-width: 40ch; }
.footer h4 { font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--white); margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer__legal { font-family: var(--mono); font-size: 13px; line-height: 1.8; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 28px; font-size: 13px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Legal page ---------- */
.legal { padding: calc(var(--header-h) + 64px) 0 var(--section); }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 40px 0 14px; }
.legal p, .legal li { color: #333a46; }
.legal ul { padding-left: 22px; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.header--static { background: var(--ink); }
.back { display: inline-flex; gap: 8px; margin-bottom: 24px; font-weight: 600; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav, .header__phone { display: none; }
  .header__actions { margin-left: auto; }
  .burger { display: block; }
  .catalog { grid-template-columns: 300px 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .why__list div { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .head, .about, .why, .faq, .contact { grid-template-columns: 1fr; }
  .head { align-items: start; }
  .about__media img, .why__media img { aspect-ratio: 16/10; }
  .why__media { order: 2; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .services { grid-template-columns: 1fr 1fr; }
  .card--feature { min-height: 360px; }
  .card--cta { grid-column: auto; }
  .catalog { grid-template-columns: 1fr; }
  .catalog__side { position: static; }
  .cats { flex-direction: row; max-height: none; overflow-x: auto; padding: 6px; gap: 4px; scroll-snap-type: x proximity; }
  .cat { flex-shrink: 0; width: auto; white-space: nowrap; scroll-snap-align: start; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .header .btn--sm { display: none; }
  .brand__sub { display: none; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 40px); }
  .quick { flex-direction: column; border-radius: var(--radius); padding: 8px; }
  .quick__input { height: 48px; padding: 0 12px; }
  .stat { padding: 20px 12px 24px 0; }
  .stat + .stat { padding-left: 12px; }
  .stat:nth-child(3) { padding-left: 0; }
  .services { grid-template-columns: 1fr; }
  .card--feature, .card--cta { grid-column: auto; }
  .card { min-height: 0; padding: 26px; }
  .card__num { top: 24px; right: 26px; }
  .steps { grid-template-columns: 1fr; }
  .step { padding-top: 24px; }
  .step__num { margin-bottom: 14px; }
  .brands { grid-template-columns: 1fr 1fr; }
  .form__split { grid-template-columns: 1fr; }
  .channels li { grid-template-columns: 1fr; gap: 4px; }
  .footer__top { grid-template-columns: 1fr; }
  .faq summary { font-size: 16px; padding: 18px 56px 18px 20px; }
  .faq summary::after { right: 16px; }
  .faq details p { padding: 0 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
