/* Лендинг Envoy v4, основа: токены, шрифт, сетка, текст, кнопки, ссылки, шапка, нижняя панель.
   Направление «Рабочий свет» (Отчёты/Лендинг v4/01 Дизайн-кодекс.md) с правками 07: светлый «офис» и тёмный «зал»,
   золото только акцентами. Разделы: landing-phone, landing-hero, landing-sections, landing-info, landing-form, landing-cal. */

@font-face {
  font-family: "Medeo";
  src: url("fonts/medeo-lp.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #F4F1EB;
  --sheet: #FAF8F3;
  --ink: #1D1D1F;
  --graphite: #4E4E53;     /* 7,3:1 на --paper: длинный серый текст читается как основной */
  --hall: #141311;
  --hall-2: #1E1C19;
  --hall-3: #292723;
  --hall-4: #3A3833;
  --stub: #F2B531;          /* корешок знака: как в платформе (.notch) и в пульте */
  --hall-text: #F3F1EC;
  --hall-muted: #C9C5BD;    /* APCA Lc 71 на --hall */
  --hall-small: #D6D2CA;    /* для 13–14 px на тёмном, Lc 79 */
  --hall-line: rgba(243, 241, 236, 0.12);
  --paper-line: rgba(29, 29, 31, 0.12);
  --field-line: #8C8B8B;    /* рамка поля на --sheet, 3,3:1 */
  --err: #B42318;
  --btn: #1D1D1F;
  --btn-text: #FFFFFF;
  --btn-hover: #3A3A3F;

  --font: "Medeo", "Golos Text", "Helvetica Neue", Arial, sans-serif;

  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-pill: 999px;
  --r-shot: 12px;           /* экран платформы на компьютере: как окно macOS */

  --t-hover: 140ms; --t-state: 200ms; --t-move: 260ms; --t-panel: 320ms; --t-data: 600ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-enter: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-move: cubic-bezier(0.65, 0, 0.35, 1);

  --gut: 24px;
  --gap: 16px;
  --head: 64px;
  --sec-top: 80px;
  --sec-bottom: 64px;

  --fs-h1: clamp(40px, 3.05vw + 28.1px, 72px);
  --fs-h2: clamp(30px, 1.39vw + 24px, 44px);
  --fs-h3: clamp(20px, 0.38vw + 18.5px, 24px);
  --fs-lead: clamp(18px, 0.19vw + 17.2px, 20px);
  --fs-text: clamp(16px, 0.1vw + 15.6px, 17px);
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gut: 48px; --gap: 24px; --sec-top: 128px; --sec-bottom: 64px; } }
@media (min-width: 1280px) { :root { --gut: 80px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; overscroll-behavior: none; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink); overscroll-behavior: none;
  font: 400 var(--fs-text)/1.55 var(--font);
  font-optical-sizing: auto; font-synthesis: none;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
/* Фокус: одна понятная рамка. У элементов со своей рамкой (поля, чипы, контурная кнопка) свой вид без outline */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dark :focus-visible { outline-color: var(--stub); }

.wrap { width: min(100% - 2 * var(--gut), 1280px); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.sec { padding-block: var(--sec-top) var(--sec-bottom); }
/* Секция ровно в экран: шапка липкая и плотная, она ложится на верхние 64 px отступа */
@media (min-width: 1024px) and (min-height: 700px) { .screen { min-height: min(100svh, 1000px); } .screen-2 { min-height: min(200svh, 2000px); } }
.dark { background: var(--hall); color: var(--hall-text); }

.h1 { font-size: var(--fs-h1); line-height: 1.04; font-weight: 640; letter-spacing: -0.03em; }
.h2 { font-size: var(--fs-h2); line-height: 1.08; font-weight: 620; letter-spacing: -0.02em; max-width: 22ch; }
.h3 { font-size: var(--fs-h3); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; max-width: 32ch; }
.lead { font-size: var(--fs-lead); line-height: 1.45; max-width: 34em; color: var(--graphite); }
.muted { color: var(--graphite); }
.dark .muted, .dark .lead { color: var(--hall-muted); }
.tag { font-size: 13px; line-height: 1.3; font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.num { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 15px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }

/* Ссылка «Перейти к содержанию»: видна только с клавиатуры */
.skip { position: fixed; left: 16px; top: 8px; z-index: 50; padding: 12px 16px; border-radius: var(--r-md); background: var(--sheet); color: var(--ink); transform: translateY(-200%); }
.skip:focus-visible { transform: none; outline-color: var(--ink); }

/* Кнопки: одна залитая «Запросить смету» (тёмная, только на светлом фоне), остальное контур или ссылка */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-md); border: 1px solid transparent;
  font: 500 16px/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease), transform 100ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-main { background: var(--btn); color: var(--btn-text); }
@media (hover: hover) and (pointer: fine) { .btn-main:hover { background: var(--btn-hover); } }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn-line:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); } }
.btn-line:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--ink); }
.btn[disabled] { cursor: progress; }
.link {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0; border-radius: var(--r-sm);
  color: var(--graphite); font-weight: 500; text-underline-offset: 4px; text-decoration-thickness: 1px;
  transition: color var(--t-hover) var(--ease), text-decoration-thickness var(--t-hover) var(--ease);
}
@media (hover: hover) and (pointer: fine) { .link:hover { color: var(--ink); text-decoration-thickness: 2px; } }

/* Шапка: плотная, без стекла и без нижней линии; над тёмными секциями остаётся светлой (меню 7,3:1).
   Лежит поверх страницы: секции начинаются на целых экранах, верхние 64 px их отступа под шапкой */
.head { position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--head); background: var(--paper); }
.head .wrap { display: flex; align-items: center; gap: 24px; height: 100%; }
.logo { display: inline-flex; align-items: center; min-height: 48px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.logo svg { width: 156px; height: 28px; overflow: visible; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: var(--r-md);
  color: var(--graphite); text-decoration: none; font-size: 16px; white-space: nowrap;
  transition: color var(--t-hover) var(--ease);
}
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px; border-radius: 1px; background: var(--ink); transform: scaleX(0); transition: transform var(--t-state) var(--ease); }
.nav a[aria-current="true"] { color: var(--ink); }
.nav a[aria-current="true"]::after { transform: none; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); } }
.head .btn { min-height: 40px; padding: 0 18px; font-size: 15px; border-radius: 10px; }
@media (max-width: 1199px) { .nav .wide { display: none; } }
@media (max-width: 767px) { .head .btn { display: none; } .nav a { padding: 0 8px; } .nav a::after { left: 8px; right: 8px; } }
@media (max-width: 419px) { .nav .mid { display: none; } }

/* Нижняя панель на телефоне: прячется у первого экрана и у формы */
.dock {
  position: fixed; inset: auto 0 0 0; z-index: 25; display: none;
  padding: 8px var(--gut) calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--paper);
  transition: transform var(--t-panel) var(--ease), opacity var(--t-panel) var(--ease);
}
.dock .btn { width: 100%; min-height: 52px; }
.dock.off { transform: translateY(100%); opacity: 0; pointer-events: none; }
@media (max-width: 767px) { .dock { display: block; } .foot { padding-bottom: calc(64px + 72px); } }
@media (prefers-reduced-motion: reduce) { .dock { transition: opacity var(--t-state) var(--ease); } .dock.off { transform: none; } }
