/* ============ zakharov.works · чертёжный альбом · v2 ============ */
:root {
  --bg: #0e1116;
  --panel: #141922;
  --line: #2a3341;
  --frame: #43506180;
  --text: #e8edf3;
  --muted: #93a0af;
  --accent: #ffb054;
  --accent-ink: #10130a;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(20px, 5vw, 88px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--accent-ink); }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- фон-миллиметровка (бесшовный цикл) ---------- */
.blueprint {
  position: fixed; top: -56px; left: 0; right: 0; bottom: -56px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .28;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

/* ---------- HUD ---------- */
.hud {
  position: fixed; top: 18px; right: 20px; z-index: 50;
  display: flex; gap: 8px; align-items: baseline;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
  color: var(--muted);
  background: rgba(14, 17, 22, .82);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border: 1px solid var(--line);
  padding: 8px 12px;
  backdrop-filter: blur(6px);
}
.hud__sheet { color: var(--accent); font-weight: 700; font-size: 15px; }
.hud__name { border-left: 1px solid var(--line); padding-left: 8px; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); }

/* ---------- листы ---------- */
main { position: relative; z-index: 1; }
.sheet { position: relative; padding: clamp(90px, 14vh, 160px) var(--pad); }

.eyebrow {
  font-family: var(--mono); font-size: clamp(11px, 1vw, 13px);
  letter-spacing: .22em; color: var(--accent);
}
.eyebrow::before { content: "▍"; margin-right: 8px; }

h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 62px);
  line-height: 1.06;
  letter-spacing: -.01em;
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-block;
  font-family: var(--mono); font-size: 14px; letter-spacing: .06em;
  text-decoration: none; text-align: center;
  padding: 15px 26px;
  border: 1px solid var(--accent);
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  cursor: pointer;
}
.btn--accent { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 8px 28px #ffb05433; }
.btn--ghost { color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--soon {
  color: var(--muted); border-color: var(--line);
  border-style: dashed; cursor: default; opacity: .65;
}

/* ---------- reveal (заголовки, hero) ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .12s; }
[data-delay="2"] { transition-delay: .24s; }
[data-delay="3"] { transition-delay: .36s; }
[data-delay="4"] { transition-delay: .48s; }
[data-delay="5"] { transition-delay: .6s; }

/* ---------- float (карточки, живут на скролле в обе стороны) ---------- */
[data-float] { will-change: transform, opacity; }

/* ============ ЛИСТ 01 · HERO ============ */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.frame { position: absolute; inset: 14px; pointer-events: none; border: 1px solid var(--frame); }
.frame::before, .frame::after {
  content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid var(--accent);
}
.frame::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }

.hero__title {
  font-family: var(--display); font-weight: 800;
  /* «АЛЕКСАНДР» — 9 широких знаков Unbounded: размер считается от ширины экрана */
  font-size: clamp(36px, 9.2vw, 138px);
  line-height: .98; letter-spacing: -.015em;
  margin: 18px 0 clamp(22px, 4vh, 44px);
  max-width: 100%;
}
.hero__line { display: block; white-space: nowrap; }
.hero__line--accent { color: var(--accent); }

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.hero__sub { max-width: 560px; color: var(--muted); font-size: clamp(16px, 1.3vw, 21px); }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

.hero__media {
  position: relative;
  justify-self: center;
  width: clamp(280px, 30vw, 520px);
  will-change: transform;
}
.hero__media img {
  width: 100%;
  filter: grayscale(18%) contrast(1.04);
  border: 1px solid var(--line);
  background: var(--panel);
}
.tick { position: absolute; width: 22px; height: 22px; border: 2px solid var(--accent); }
.tick--tl { top: -8px; left: -8px; border-right: 0; border-bottom: 0; }
.tick--br { bottom: -8px; right: -8px; border-left: 0; border-top: 0; }
.hero__stamp {
  position: absolute; bottom: 14px; left: 14px;
  font-size: 10px; letter-spacing: .2em; color: var(--accent);
  border: 1px solid var(--accent); padding: 4px 8px;
  background: #0e1116cc;
}
.hero__scrollcue {
  position: absolute; bottom: 30px; left: var(--pad);
  font-size: 11px; letter-spacing: .2em; color: var(--muted);
}

/* ============ ЛИСТ 02 · МАНИФЕСТ ============ */
.manifesto { height: 340svh; padding: 0; }
.manifesto__stage {
  position: sticky; top: 0; height: 100svh;
  display: grid; place-items: center;
  padding: 0 var(--pad);
}
.manifesto__word {
  grid-area: 1 / 1;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, 6.4vw, 92px);
  line-height: 1.1; text-align: center;
  opacity: 0; transform: scale(.92);
  filter: blur(10px);
  transition: opacity .45s ease, transform .45s ease, filter .45s ease;
  will-change: opacity, transform, filter;
}
.manifesto__word.is-active { opacity: 1; transform: scale(1); filter: blur(0); }
.manifesto__word.is-past { opacity: 0; transform: scale(1.06); filter: blur(12px); }
.manifesto__word--accent { color: var(--accent); }

/* ============ ЛИСТ 03 · ЦИФРЫ ============ */
.metrics__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.metric { background: var(--bg); padding: clamp(26px, 3vw, 48px); }
.metric__value {
  display: block; color: var(--accent); font-weight: 700;
  font-size: clamp(34px, 4.4vw, 68px); line-height: 1;
  margin-bottom: 14px;
}
.metric__label { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ============ ЛИСТ 04 · КЕЙСЫ ============ */
.cases__head { max-width: 820px; margin-bottom: clamp(40px, 6vh, 80px); }
.cases__head p { color: var(--muted); margin-top: 18px; max-width: 620px; }

.cases, .process, .contact { perspective: 1200px; }

.case {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), #12161e);
  padding: clamp(24px, 3.4vw, 52px);
  margin-bottom: clamp(22px, 3vh, 36px);
}
.case::before {
  content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 4px;
  background: var(--accent);
}
.case__meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; letter-spacing: .18em; color: var(--muted);
  margin-bottom: 22px;
}
.case__stamp { color: var(--accent); border: 1px solid var(--accent); padding: 4px 10px; letter-spacing: .22em; }
.case__stamp--dim { color: var(--muted); border-color: var(--line); }
.case__title { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.05; }
.case__role { font-size: 12px; letter-spacing: .16em; color: var(--muted); margin: 12px 0 22px; }
.case__body { max-width: 760px; display: grid; gap: 16px; color: #c7d0da; }
.case__scheme {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px 10px;
  padding: 16px 0;
  font-size: clamp(11px, 1vw, 13px); letter-spacing: .08em;
}
.node { border: 1px solid var(--line); background: var(--bg); padding: 8px 12px; white-space: nowrap; }
.node--accent { border-color: var(--accent); color: var(--accent); }
.arrow { color: var(--accent); }
.case__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.case--archive { border-style: dashed; background: transparent; }
.case--archive::before { background: var(--line); }
.case__archive-text { color: var(--muted); max-width: 860px; }

/* ============ ЛИСТ 05 · ПРОЦЕСС ============ */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.step {
  background: var(--bg); padding: clamp(24px, 3vw, 44px);
  display: flex; flex-direction: column; gap: 14px;
}
.step__num { color: var(--accent); font-size: 13px; letter-spacing: .2em; }
.step h3 { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2vw, 28px); }
.step p { color: var(--muted); font-size: 15px; }
/* цена всегда прижата к низу карточки — margin-top:auto надёжнее flex-хитростей */
.step .step__price {
  margin-top: auto;
  color: var(--text); font-size: 14px; letter-spacing: .12em;
  border-top: 1px solid var(--line); padding-top: 14px;
}

.filter { border: 1px dashed var(--line); padding: clamp(20px, 2.6vw, 36px); margin-top: 36px; max-width: 900px; }
.filter__title { color: var(--accent); letter-spacing: .2em; font-size: 12px; margin-bottom: 10px; }
.filter p:last-child { color: var(--muted); }

/* ============ ЛИСТ 06 · СВЯЗЬ ============ */
.contact__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px); align-items: start;
}
.contact__channels { display: grid; gap: 16px; }
.channel {
  display: block; text-decoration: none;
  border: 1px solid var(--line); background: var(--panel);
  padding: clamp(20px, 2.4vw, 32px);
  transition: border-color .2s ease;
}
.channel:hover { border-color: var(--accent); }
.channel__label { display: block; font-size: 11px; letter-spacing: .2em; color: var(--accent); margin-bottom: 10px; }
.channel__value { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(19px, 1.9vw, 26px); margin-bottom: 8px; }
.channel__hint { color: var(--muted); font-size: 14px; }

.form { display: grid; gap: 18px; border: 1px solid var(--line); background: var(--panel); padding: clamp(22px, 2.6vw, 36px); }
.form label { display: grid; gap: 8px; }
.form label > span { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.form input[type="text"], .form textarea {
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  font-family: var(--body); font-size: 16px;
  padding: 13px 14px; resize: vertical;
  transition: border-color .2s ease;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }

/* согласие на обработку ПДн (152-ФЗ): чекбокс, по умолчанию НЕ отмечен */
.consent {
  display: grid; grid-template-columns: auto 1fr; gap: 12px;
  align-items: start;
}
.consent input[type="checkbox"] {
  appearance: none;
  width: 20px; height: 20px; margin-top: 2px;
  border: 1px solid var(--line); background: var(--bg);
  cursor: pointer; position: relative;
  transition: border-color .2s ease, background .2s ease;
}
.consent input[type="checkbox"]:checked { border-color: var(--accent); background: var(--accent); }
.consent input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid var(--accent-ink); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent > span {
  font-family: var(--body) !important;
  font-size: 13px !important; letter-spacing: 0 !important;
  text-transform: none !important; color: var(--muted) !important;
  line-height: 1.5;
}
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.form__submit { width: 100%; }
.form__status { min-height: 1.2em; font-size: 13px; letter-spacing: .08em; color: var(--accent); }
.form.is-sent input, .form.is-sent textarea, .form.is-sent .form__submit { opacity: .35; pointer-events: none; }

/* ============ ШТАМП ============ */
.stamp { position: relative; z-index: 1; padding: 0 var(--pad) 40px; }
.stamp__grid { display: grid; grid-template-columns: 2fr 2fr 1fr 1fr; border: 1px solid var(--line); }
.stamp__cell {
  padding: 16px 18px; border-right: 1px solid var(--line);
  display: grid; gap: 6px; font-size: 12px; letter-spacing: .14em;
}
.stamp__cell:last-child { border-right: 0; }
.stamp__cell span { color: var(--muted); font-size: 10px; }
.stamp__cell--accent b { color: var(--accent); }
.stamp__legal { margin-top: 14px; font-size: 11px; letter-spacing: .1em; }
.stamp__legal a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--muted); }
.stamp__legal a:hover { color: var(--accent); border-color: var(--accent); }

/* ============ СТРАНИЦА ПОЛИТИКИ ============ */
.legal { max-width: 900px; margin: 0 auto; padding: clamp(80px, 12vh, 140px) var(--pad) 60px; position: relative; z-index: 1; }
.legal__back { display: inline-block; margin-bottom: 34px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--muted); text-decoration: none; }
.legal__back:hover { color: var(--accent); }
.legal h1 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.6vw, 46px); line-height: 1.1; margin-bottom: 10px; }
.legal__meta { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--muted); margin-bottom: 44px; }
.legal h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(18px, 1.8vw, 24px);
  margin: 44px 0 14px; line-height: 1.25;
}
.legal h2 .num { color: var(--accent); font-family: var(--mono); margin-right: 10px; }
.legal p, .legal li { color: #c2ccd6; margin-bottom: 12px; font-size: 16px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal .legal__note { border: 1px dashed var(--line); padding: 18px 20px; color: var(--muted); font-size: 14px; margin-top: 40px; }

/* ---------- фокус с клавиатуры ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* ============ АДАПТИВ ============ */
@media (max-width: 1024px) {
  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { justify-self: center; width: min(78vw, 400px); margin-top: 18px; }
  .hero__title { font-size: clamp(34px, 10.4vw, 92px); }
  .contact__grid { grid-template-columns: 1fr; }
  .stamp__grid { grid-template-columns: 1fr 1fr; }
  .stamp__cell:nth-child(2) { border-right: 0; }
  .hud__name { display: none; }
  .hero__scrollcue { display: none; }
}
@media (max-width: 480px) {
  .metrics__grid { grid-template-columns: 1fr; }
  .case__actions .btn { width: 100%; }
  .hero__cta .btn { width: 100%; }
  .case__scheme { font-size: 11px; gap: 6px 8px; }
  .node { padding: 6px 9px; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  [data-float] { transform: none !important; opacity: 1 !important; }
  .manifesto { height: auto; padding: 90px var(--pad); }
  .manifesto__stage { position: static; height: auto; display: grid; gap: 28px; }
  .manifesto__word { position: static; opacity: 1; transform: none; filter: none; grid-area: auto; }
  .blueprint, .hero__media { transform: none !important; }
}
