/* Сайт LCDO. Дизайн: sajt/DESIGN.md, направление «Повтор». */
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
[hidden] { display: none !important; }
img { max-width: 100%; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
#fSendErr { margin-top: 14px; }

/* VOICE   лендинг-плакат: громкий первый экран и форма, спокойная середина
   IDEA    синий плакат, за которым бегут строки рутины: ту работу мы и забираем
   PICTURE бегущие строки на первом экране и у формы, крупные цифры калькулятора и шагов
   COLOUR  кобальт #1B37D6 и белый, светло-синий для чередования, тёмно-синий текст
   TYPE    Unbounded для заголовков и цифр, Onest для текста
   LAYOUT  заголовок во всю ширину поверх строк; ниже полосы: белая, светлая, синяя, белая, светлая, синяя */
:root {
  --cobalt: #1B37D6;
  --cobalt-hover: #1429A8;
  --white: #FFFFFF;
  --tint: #F1F3FE;
  --ink: #0E1430;
  --text: #2E3550;
  --muted: #5A6180;
  --on-cobalt: rgba(255, 255, 255, 0.84);
  --on-cobalt-dim: rgba(255, 255, 255, 0.72);
  --marquee: rgba(255, 255, 255, 0.10);
  --line: #C9D0EE;
  --edge: #7E86A6;
  --error: #B42318;
  --display: "Unbounded", "Arial Black", Arial, sans-serif;
  --body: "Onest", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
  --band: clamp(72px, 9vw, 128px);
  --head: 72px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--head) + env(safe-area-inset-top, 0px)); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; z-index: 30; height: env(safe-area-inset-top, 0px); background: var(--cobalt); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
p, dd { text-wrap: pretty; }

.inner {
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.frame { max-width: 1320px; margin-inline: auto; }
.band { padding-block: var(--band); }
.tint { background: var(--tint); }
.blue { position: relative; overflow: hidden; isolation: isolate; background: var(--cobalt); color: var(--white); }

.h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.5rem, 1rem + 2.2vw, 3rem); line-height: 1.08; letter-spacing: -0.025em;
  color: var(--cobalt); text-wrap: balance;
}
.blue .h2 { color: var(--white); }
.h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
.lead { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); line-height: 1.45; }
.halo { text-shadow: 0 0 4px var(--cobalt), 0 0 12px var(--cobalt), 0 0 24px var(--cobalt); }
.ph { color: var(--muted); text-decoration: underline dashed 1px; text-underline-offset: 0.25em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 30px; border: 0;
  background: var(--cobalt); color: var(--white);
  font-weight: 600; font-size: 1.0625rem; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color 160ms var(--ease);
}
.blue .btn, .top .btn { background: var(--white); color: var(--cobalt); }
.blue .sheet .btn { background: var(--cobalt); color: var(--white); }
.btn-line { border: 1.5px solid var(--cobalt); background: var(--white); color: var(--cobalt); }
/* Обводка фокуса цветом фона вокруг кнопки, а не цветом текста кнопки */
.btn:focus-visible, .blue .sheet .btn:focus-visible { outline-color: var(--cobalt); }
.blue .btn:focus-visible, .top .btn:focus-visible { outline-color: var(--white); }
.link { font-weight: 500; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
@media (hover: hover) {
  .btn:hover, .blue .sheet .btn:hover { background: var(--cobalt-hover); }
  .blue .btn:hover, .top .btn:hover { background: #E4E9FF; }
  .btn-line:hover { background: var(--tint); }
  .link:hover { text-decoration-thickness: 2px; }
}

/* ---------- Шапка ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--cobalt); color: var(--white); }
.top-bar { display: flex; align-items: center; gap: 32px; min-height: var(--head); }
.logo { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: 0.01em; text-decoration: none; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 0.9375rem; font-weight: 500; }
.nav a { color: var(--on-cobalt); text-decoration: none; white-space: nowrap; transition: color 160ms var(--ease); }
.top .btn { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }
.menu-btn {
  display: none; align-items: center; gap: 8px; min-height: 44px; margin-left: auto; padding: 0 14px 0 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.5); background: transparent; color: var(--white);
  font-weight: 500; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.menu-btn svg { width: 22px; height: 22px; }
.menu { padding-block: 4px 24px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.menu a:not(.btn) {
  display: flex; align-items: center; min-height: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white); font-size: 1.125rem; font-weight: 500; text-decoration: none;
}
.menu .btn { width: 100%; margin-top: 20px; min-height: 52px; font-size: 1.0625rem; }
@media (hover: hover) { .nav a:hover { color: var(--white); } }
@media (max-width: 1080px) {
  .nav, .top-bar > .btn { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- Первый экран и форма: бегущие строки ---------- */
.run { position: absolute; inset: 0; z-index: -1; display: flex; flex-direction: column; justify-content: space-around; pointer-events: none; user-select: none; }
.run-row { overflow: hidden; white-space: nowrap; font-family: var(--display); font-weight: 500; font-size: clamp(24px, 0.8rem + 2.4vw, 50px); line-height: 1.2; color: var(--marquee); }
.run-track { display: inline-block; animation: run var(--dur, 220s) linear infinite; animation-delay: var(--shift, 0s); }
.run-row:nth-child(even) .run-track { animation-direction: reverse; }
@keyframes run { to { transform: translateX(-50%); } }

.hero .frame { padding-block: clamp(64px, 11vh, 132px) clamp(80px, 13vh, 150px); }
.h1 {
  max-width: 19em;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.375rem, 0.5rem + 4.4vw, 4rem); line-height: 1.06; letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero .lead { max-width: 44ch; margin-top: 30px; color: var(--on-cobalt); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.hero .link { color: var(--white); }

/* ---------- О нас ---------- */
.about-h { max-width: 17em; }
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 5vw, 80px); margin-top: clamp(32px, 4vw, 56px); }
.about-grid .lead { max-width: 40em; color: var(--text); }
.about-why p { margin-top: 12px; color: var(--text); }
.mission { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(28px, 3.5vw, 44px); border-top: 3px solid var(--cobalt); }
.mission-text {
  max-width: 30em; margin-top: 16px;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.375rem, 0.9rem + 1.7vw, 2.625rem); line-height: 1.22; letter-spacing: -0.02em;
  color: var(--cobalt); text-wrap: pretty;
}

/* ---------- Что можно автоматизировать ---------- */
.manual-h { max-width: 16em; }
.manual { width: 100%; margin-top: clamp(32px, 4vw, 56px); border-collapse: collapse; }
.manual thead th { padding: 0 24px 14px 0; border-bottom: 3px solid var(--cobalt); text-align: left; font-size: 0.9375rem; font-weight: 600; color: var(--muted); }
.manual tbody tr { border-bottom: 1px solid var(--line); }
.manual tbody th {
  width: 20%; padding: 24px 24px 24px 0; text-align: left; vertical-align: top;
  font-family: var(--display); font-weight: 700; font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--cobalt);
}
.manual td { width: 40%; padding: 24px 32px 24px 0; vertical-align: top; color: var(--text); }
.manual td + td { padding-right: 0; color: var(--ink); font-weight: 500; }

/* ---------- Сколько стоит ручная работа ---------- */
.cost-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(40px, 6vw, 96px); align-items: start; }
.cost-q { margin-top: 28px; font-family: var(--display); font-weight: 700; font-size: clamp(1.125rem, 0.95rem + 0.7vw, 1.5rem); line-height: 1.3; letter-spacing: -0.01em; }
.cost-text .cost-p { max-width: 36em; margin-top: 20px; color: var(--on-cobalt); }
.calc { padding: clamp(24px, 3vw, 40px); border: 1.5px solid rgba(255, 255, 255, 0.38); }
.calc-title { font-family: var(--display); font-weight: 700; font-size: 1.125rem; line-height: 1.3; }
.calc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; margin-top: 24px; }
.cf { display: grid; grid-template-rows: 1fr auto; gap: 8px; align-items: end; font-size: 0.9375rem; font-weight: 500; line-height: 1.3; color: var(--on-cobalt); }
.cf input { width: 100%; min-height: 52px; padding: 0 14px; border: 0; border-radius: 0; background: var(--white); color: var(--ink); font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.cf input:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.calc-out { display: grid; gap: 22px; margin-top: 32px; padding-top: 28px; border-top: 1.5px solid rgba(255, 255, 255, 0.38); }
.big { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.25rem, 1.5rem + 2.4vw, 3.5rem); line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.money { display: grid; grid-template-columns: repeat(auto-fit, minmax(10em, 1fr)); gap: 18px 24px; }
.mid { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cap { display: block; margin-top: 6px; font-size: 0.9375rem; color: var(--on-cobalt); }
.calc-note { margin-top: 24px; font-size: 0.875rem; line-height: 1.5; color: var(--on-cobalt-dim); }

/* ---------- Что мы разрабатываем ---------- */
.srv-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(40px, 6vw, 96px); }
.srv-head .h2 { grid-column: 1 / -1; }
.srv-head .lead { grid-column: 2; }
.srv-head .lead { max-width: 30em; color: var(--text); }
.srv { margin-top: clamp(40px, 5vw, 64px); border-top: 3px solid var(--cobalt); }
.srv-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px clamp(40px, 6vw, 96px); padding-block: clamp(22px, 2.4vw, 32px); border-bottom: 1px solid var(--line); }
.srv dt { font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 1rem + 0.9vw, 1.875rem); line-height: 1.15; letter-spacing: -0.015em; color: var(--cobalt); }
.srv dd { max-width: 34em; font-size: 1.125rem; line-height: 1.5; color: var(--text); }

/* ---------- Как мы работаем ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px clamp(32px, 4vw, 64px); margin-top: clamp(40px, 5vw, 64px); }
.step-n { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 2.6rem + 4vw, 7rem); line-height: 0.9; letter-spacing: -0.04em; color: var(--cobalt); }
.steps .h3 { margin-top: 24px; }
.steps p { margin-top: 12px; color: var(--text); }

/* ---------- Форма ---------- */
.order-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.order .lead { max-width: 30em; margin-top: 24px; color: var(--on-cobalt); }
.sheet { padding: clamp(24px, 3vw, 44px); background: var(--white); color: var(--ink); }
.fld + .fld { margin-top: 24px; }
.fld > label:not(.check) { display: block; font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.hint { margin-top: 2px; font-size: 0.9375rem; color: var(--muted); }
.fld textarea, .fld input[type="text"] {
  display: block; width: 100%; margin-top: 10px; padding: 14px 16px;
  border: 1.5px solid var(--edge); border-radius: 0; background: var(--white); color: var(--ink);
  font-size: 1.0625rem; line-height: 1.5;
}
.fld input[type="text"] { min-height: 52px; padding-block: 0; }
.fld textarea { min-height: 150px; resize: vertical; }
.fld textarea::placeholder, .fld input::placeholder { color: #80869F; opacity: 1; }
.fld textarea:focus-visible, .fld input[type="text"]:focus-visible { border-color: var(--cobalt); outline: 2px solid var(--cobalt); outline-offset: 0; }
.fld.is-bad textarea, .fld.is-bad input[type="text"] { border-color: var(--error); }
.err { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; font-size: 0.9375rem; line-height: 1.4; color: var(--error); }
.err svg { flex: none; width: 20px; height: 20px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; line-height: 1.45; color: var(--text); cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--cobalt); }
.check a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.sheet .btn { width: 100%; margin-top: 28px; }
.form-note { margin-top: 14px; font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
.form-note a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.done { outline: none; }
.done svg { width: 44px; height: 44px; color: var(--cobalt); }
.done h3 { margin-top: 16px; font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1.2; color: var(--cobalt); }
.done p { margin-top: 10px; color: var(--text); }
.done .mock { margin-top: 16px; font-size: 0.875rem; color: var(--muted); }

/* ---------- Подвал ---------- */
.foot { padding-block: 44px 52px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 24px 40px; font-size: 0.9375rem; line-height: 1.5; color: var(--text); }
.foot .logo { font-size: 26px; color: var(--cobalt); }
.foot-tag { margin-top: 10px; }
.foot-col p + p { margin-top: 6px; }
.foot a:not(.logo) { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.foot-btn {
  display: block; margin-top: 6px; padding: 2px 0; border: 0; background: none;
  color: var(--ink); font: inherit; text-align: left;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; cursor: pointer;
}
.foot-col .foot-btn + p { margin-top: 6px; }

/* ---------- Плашка про Яндекс Метрику ---------- */
/* Справа: слева на первом экране главная кнопка, её плашка закрывать не должна */
.metrika-ask {
  position: fixed; z-index: 40; right: max(24px, env(safe-area-inset-right, 0px)); bottom: 24px;
  width: min(380px, calc(100vw - 48px)); padding: 20px 24px 24px;
  border: 2px solid var(--cobalt); background: var(--white); color: var(--text);
  font-size: 0.9375rem; line-height: 1.5;
}
.metrika-ask p { text-wrap: pretty; }
.metrika-ask a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.metrika-ask-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.metrika-ask .btn { flex: 1 1 auto; min-height: 48px; padding: 0 18px; font-size: 1rem; }
@media (max-width: 600px) {
  .metrika-ask {
    right: 0; bottom: 0; width: 100%; border-width: 2px 0 0;
    padding: 16px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  }
  .metrika-ask-actions { margin-top: 12px; }
  .metrika-ask .btn { min-height: 44px; }
}
@media print { .metrika-ask { display: none; } }

/* ---------- Юридические страницы ---------- */
/* Заголовок шире колонки текста, текст не шире 40rem (около 70 знаков) */
.doc .h2 { max-width: 20em; }
.doc > :not(.h2) { max-width: 40rem; }
.doc > p { margin-top: 20px; }
.nobr { white-space: nowrap; }
.doc p, .doc dd { color: var(--text); line-height: 1.6; }
.doc > .doc-meta { margin-top: 16px; font-size: 0.9375rem; color: var(--muted); }
.doc h2 {
  margin-top: 56px; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.25; letter-spacing: -0.01em;
  color: var(--cobalt); text-wrap: balance;
}
.doc h2 + p, .doc h2 + .doc-dl { margin-top: 16px; }
.doc a:not(.link) { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.doc-dl { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); column-gap: 24px; margin-top: 20px; border-top: 3px solid var(--cobalt); }
.doc-dl dt, .doc-dl dd { padding-block: 14px; border-bottom: 1px solid var(--line); }
.doc-dl dt { font-weight: 600; line-height: 1.45; color: var(--ink); }
.doc-btn { margin-top: 24px; }
.doc > .doc-req { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.doc > .doc-back { margin-top: 24px; }
@media (max-width: 640px) {
  .doc-dl { grid-template-columns: minmax(0, 1fr); }
  .doc-dl dt { padding-bottom: 0; border-bottom: 0; }
  .doc-dl dd { padding-top: 4px; }
}

/* ---------- Узкие экраны ---------- */
@media (max-width: 900px) {
  .about-grid, .cost-grid, .srv-head, .order-grid, .srv-row, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .srv-head .lead { grid-column: 1; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .step-n { font-size: 4rem; }
}
@media (max-width: 760px) {
  .hero .frame { padding-block: 56px 72px; }
  .actions .btn { width: 100%; }
  .manual thead { display: none; }
  .manual, .manual tbody, .manual tr, .manual th, .manual td { display: block; width: auto; }
  .manual tbody { border-top: 3px solid var(--cobalt); }
  .manual tbody tr { padding-block: 20px; }
  .manual tbody th { width: auto; padding: 0 0 10px; }
  .manual td, .manual td + td { padding: 8px 0 0; }
  .manual td::before { content: attr(data-l); display: block; font: 600 0.8125rem/1.4 var(--body); color: var(--muted); }
}
@media (max-width: 380px) {
  .calc-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .run-track { animation: none; }
  .btn, .nav a { transition: none; }
}
