/* critical-home.css — above-the-fold главной. Regenerate: python3 scripts/build_critical_home_css.py */

/* ===================== ТЕХНОЛОГИИ ОБЩЕПИТА — bureau paper ===================== */
:root {
  --bg: #f4f2ee;
  --bg-2: #ebe7e0;
  --surface: #ffffff;
  --surface-2: #f7f5f1;
  --line: #d8d4cc;
  --text: #141418;
  --text-secondary: #45454b;
  --text-tertiary: #76767c;
  --text-on-media: rgba(255, 255, 255, 0.82);
  --text-on-media-muted: rgba(255, 255, 255, 0.58);
  --muted: var(--text-secondary);
  --accent: #ff6b2c;
  --accent-2: #e85a1a;
  --call: #1a7a3a;
  --call-dark: #156332;
  /* Цифры и метки потерь: один цвет риска, контраст 5.8:1 на --bg */
  --loss: #b0301a;
  --steel: var(--text-tertiary);
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 16px;
  --fs-md: 17px;
  --fs-lg: 21px;
  --lh-tight: 1.25;
  --lh-base: 1.55;
  --lh-relaxed: 1.65;
  --radius: 6px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --maxw: 1320px;
  --shadow: none;
  --shadow-accent: none;
  --grad-accent: #ff6b2c;
  --eng-blue: #3d6a99;
  --eng-blue-dim: rgba(61, 106, 153, 0.08);
  --eng-grid: transparent;
  --font-sans: "Golos Text", Inter, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --hero-h1-size: clamp(30px, 5.5vw, 46px);
  --hero-h1-lh: 1.12;
  --hero-h2-size: clamp(1.5rem, 3vw, 2rem);
  --hero-lead-size: 18px;
  --hero-lead-lh: 1.6;
  --section-py: clamp(56px, 10vw, 96px);
  --header-h: 56px;
  --topbar-h: 0px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 0.2s;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --text-on-dark: #f5f5f7;
  --text-on-dark-muted: #a1a1a6;
  --text-on-dark-subtle: #8e8e93;
  --text-on-light: #141418;
  --text-on-light-muted: #45454b;
  --surface-light: #ffffff;
  --surface-light-2: #f7f5f1;
  --header-glass: #f4f2ee;
  --header-glass-solid: #f4f2ee;
  --header-border: rgba(20, 20, 24, 0.1);
  --topbar-bg: transparent;
  --footer-bg: #ebe7e0;
  --sticky-bg: rgba(244, 242, 238, 0.96);
  --sticky-border: rgba(20, 20, 24, 0.1);
  --sticky-h: 88px;
  --cookie-bg: rgba(244, 242, 238, 0.98);
  --dropdown-bg: #ffffff;
  --dropdown-border: rgba(20, 20, 24, 0.1);
  --dropdown-divider: rgba(20, 20, 24, 0.08);
  --dropdown-hover: rgba(20, 20, 24, 0.04);
  --btn-ghost-bg: transparent;
  --btn-ghost-border: rgba(20, 20, 24, 0.18);
  --btn-ghost-hover-bg: rgba(20, 20, 24, 0.04);
  --btn-ghost-hover-border: rgba(20, 20, 24, 0.28);
  --grain-opacity: 0;
  --mobile-nav-bg: #f4f2ee;
  --mobile-nav-shadow: none;
  --section-photo-opacity: 0.58;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
  overflow-x: clip;
}
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: var(--lh-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

/* Заголовки и текст на тёмном фоне */
h1, h2, h3, h4, h5, h6 { color: var(--text); }
p, li, dd, dt, blockquote { color: inherit; }

/* Поля ввода и нативные кнопки — явный контраст (не полагаться на inherit) */
button, input, textarea, select { font-family: inherit; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="hidden"]),
textarea,
select {
  background-color: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
}
input::placeholder,
textarea::placeholder {
  color: var(--text-tertiary);
  opacity: 1;
}
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
  box-shadow: 0 0 0 1000px var(--surface) inset;
  caret-color: var(--text);
}

/* Светлая поверхность — тёмный текст */
.surface-light,
[data-surface="light"] {
  background: var(--surface-light);
  color: var(--text-on-light);
}
.surface-light :where(h1, h2, h3, h4, h5, h6, strong, .project-section__title),
[data-surface="light"] :where(h1, h2, h3, h4, h5, h6, strong, .project-section__title) {
  color: var(--text-on-light);
}
.surface-light :where(p, li, span, label, .project-section__lead),
[data-surface="light"] :where(p, li, span, label, .project-section__lead) {
  color: var(--text-on-light-muted);
}
.surface-light :where(input, textarea, select),
[data-surface="light"] :where(input, textarea, select) {
  background-color: #fff;
  border-color: #d1d1d6;
  color: var(--text-on-light);
}
.surface-light :where(input::placeholder, textarea::placeholder),
[data-surface="light"] :where(input::placeholder, textarea::placeholder) {
  color: #8e8e93;
}
.surface-light a:not([class*="btn"]),
[data-surface="light"] a:not([class*="btn"]) {
  color: #c2410c;
}

/* Кнопки-карточки в инструментах (расширения) */
.cfg-format-card,
.calc-filter,
.ai-filter,
.catalog-filter select {
  color: var(--text);
}
.material-filter { color: var(--muted); }
.material-filter--active,
.calc-filter--active,
.ai-filter--active { color: var(--text); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .grain { display: none; }
  .hero-line, .hero-accent { opacity: 1; transform: none; animation: none; }
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
.container {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  padding-left: max(clamp(20px, 5vw, 40px), env(safe-area-inset-left));
  padding-right: max(clamp(20px, 5vw, 40px), env(safe-area-inset-right));
}
.accent { color: var(--accent); }
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}
.link--accent { color: var(--accent-2); font-weight: 600; transition: color 0.2s; }
.link--accent:hover { color: var(--text); }
.link--phone { color: var(--text); font-weight: 700; letter-spacing: -0.02em; transition: color 0.2s; }
.link--phone:hover { color: var(--accent); }

}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-weight: 600; font-size: 17px; cursor: pointer;
  border: none; border-radius: var(--radius); padding: 14px 28px;
  transition: background 0.2s var(--ease-out), border-color 0.2s, color 0.2s;
  white-space: nowrap; text-align: center; letter-spacing: -0.01em;
}
.btn--primary { background: var(--accent); color: var(--text); box-shadow: none; }
.btn--primary.btn--xl { flex-direction: column; gap: 4px; line-height: 1.2; }
.btn--primary:hover { background: var(--accent-2); transform: none; box-shadow: none; }
.btn--call {
  background: transparent;
  color: var(--call);
  border: 1px solid rgba(48, 209, 88, 0.38);
  box-shadow: none;
  flex-direction: row;
  gap: 8px;
  padding: 12px 20px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.btn--call:hover {
  color: var(--text);
  background: rgba(48, 209, 88, 0.1);
  border-color: rgba(48, 209, 88, 0.55);
  transform: none;
  box-shadow: none;
}
.btn--call small {
  display: block;
  width: 100%;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  opacity: 1;
}
.btn--call-pulse { animation: none; }
.btn--ghost {
  background: var(--btn-ghost-bg); color: var(--text);
  border: 1px solid var(--btn-ghost-border);
}
.btn--ghost:hover { background: var(--btn-ghost-hover-bg); border-color: var(--btn-ghost-hover-border); }
body.catalog-page .header .btn--concept--header {
  background: var(--btn-ghost-bg);
  color: var(--text);
  border: 1px solid var(--btn-ghost-border);
  box-shadow: none;
}
body.catalog-page .header .btn--concept--header:hover {
  background: var(--btn-ghost-hover-bg);
  border-color: var(--btn-ghost-hover-border);
  color: var(--text);
}
.btn--lg { padding: 16px 32px; font-size: 17px; }
.btn--xl { padding: 20px 40px; font-size: 19px; }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--magnetic { transition: transform 0.2s var(--ease-out), box-shadow 0.25s, background 0.25s; }

/* ===== CONCEPT CTA — same object as hero primary ===== */
.btn--concept {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: var(--text);
  box-shadow: none;
  border: 0;
  white-space: nowrap;
  text-align: center;
  justify-content: center;
  gap: 0;
  height: 48px;
  min-height: 48px;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 600;
}
.btn--concept::before { display: none; }
.btn--concept:hover {
  background: var(--accent-2);
  transform: none;
  box-shadow: none;
}
.btn--concept:active { transform: none; }
.btn__concept-icon,
.btn__concept-arrow,
.btn__concept-sub { display: none; }
.btn__concept-text {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.btn__concept-main {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.btn--concept--header {
  height: 40px;
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}
.btn--concept--header .btn__concept-main { font-size: 15px; font-weight: 600; }
.btn--concept--sticky {
  height: 48px;
  min-height: 48px;
  animation: none;
  background: var(--accent);
  border: 0;
  box-shadow: none;
  font-size: 16px;
}
.btn--concept--sticky:hover {
  background: var(--accent-2);
  border: 0;
  box-shadow: none;
}
[data-theme="dark"] .btn--concept--sticky {
  background: var(--accent);
}
[data-theme="dark"] .btn--concept--sticky:hover {
  background: var(--accent-2);
}
.btn--concept--sticky .btn__concept-main {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
@keyframes conceptPulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: none; }

}

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h); transition: border-color 0.3s;
  max-width: 100%; overflow: visible;
  background: var(--header-glass-solid);
  border-bottom: 1px solid var(--header-border);
}
.header::after { display: none; }
.header.scrolled::after { display: none; }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 16px; max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  width: 100%; min-width: 0;
}
body[data-page="landing"] .header:not(.scrolled) {
  background: transparent;
  border-bottom-color: transparent;
}
body[data-page="landing"] .header:not(.scrolled) .nav > a,
body[data-page="landing"] .header:not(.scrolled) .nav-dropdown__trigger {
  color: var(--text-on-media);
}
body[data-page="landing"] .header.scrolled {
  background: var(--header-glass-solid);
  border-bottom-color: var(--header-border);
}
body[data-page="landing"] .header.scrolled .nav > a,
body[data-page="landing"] .header.scrolled .nav-dropdown__trigger {
  color: var(--text-secondary);
}
body[data-page="landing"] .header:not(.scrolled) .logo__img--theme-light {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body[data-page="landing"] .header:not(.scrolled) .logo__img--theme-dark {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body[data-page="landing"] .header:not(.scrolled) .header__phone {
  background: rgba(10, 10, 10, 0.35);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
body[data-page="landing"] .header:not(.scrolled) .burger {
  background: rgba(10, 10, 10, 0.35);
  border-color: rgba(255, 255, 255, 0.22);
}
body[data-page="landing"] .header:not(.scrolled) .burger::after {
  color: #fff;
}
body[data-page="landing"] .header:not(.scrolled) .nav.is-open > a,
body[data-page="landing"] .header:not(.scrolled) .nav.is-open .nav-dropdown__trigger,
body[data-page="landing"] .header:not(.scrolled) .nav.is-open .nav-dropdown__link,
body[data-page="landing"] .header:not(.scrolled) .nav.is-open .nav-dropdown__link-label {
  color: var(--text);
}
.header__inner > .logo {
  order: -1;
}
.header__phone-short { display: none; }
[data-theme="dark"] body[data-page="landing"] .header:not(.scrolled) {
  background: transparent;
  border-bottom-color: transparent;
}
[data-theme="dark"] body[data-page="landing"] .header:not(.scrolled) .header__phone {
  background: rgba(10, 10, 10, 0.45);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.logo {
  display: block;
  flex-shrink: 0;
  position: relative;
  width: min(200px, 52vw);
  height: 48px;
  line-height: 0;
}
.logo:hover { opacity: 0.88; }
.logo img,
.logo__img {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
.logo__img--theme-dark {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
[data-theme="dark"] .logo__img--theme-light {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
[data-theme="dark"] .logo__img--theme-dark {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.footer .logo {
  width: min(160px, 60vw);
  height: 40px;
}
.footer .logo img,
.footer .logo__img { height: 100%; max-width: 100%; }
.nav {
  display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px);
  flex: 1; justify-content: center; min-width: 0;
}
.nav > a,
.nav-dropdown__trigger {
  font-size: var(--fs-sm); color: var(--text-secondary); font-weight: 500;
  transition: color 0.2s; letter-spacing: -0.01em;
  background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer;
  white-space: nowrap;
}
.nav > a:hover,
.nav-dropdown__trigger:hover { color: var(--text); }
.nav > a.nav__stack,
.nav > a .nav__stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.12;
  gap: 1px;
  white-space: normal;
  text-align: center;
  min-width: 3.2rem;
}
.nav__stack span:first-child {
  font-size: var(--fs-sm);
  font-weight: 600;
}
.nav__stack span:last-child {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-tertiary, #8a8a8e);
  letter-spacing: 0.01em;
}
.nav > a:hover .nav__stack span:last-child { color: var(--text-secondary); }
.nav > a.is-active,
.nav-dropdown__trigger.is-active { color: var(--text); }
.nav > a.nav__ai,
.nav-dropdown__trigger.nav__ai,
.nav-dropdown__link.nav__ai--featured {
  color: var(--text);
  font-weight: 600;
}
.nav > a.nav__ai:hover,
.nav-dropdown__trigger.nav__ai:hover,
.nav-dropdown__link.nav__ai--featured:hover { color: var(--accent); }
.nav > a.nav__ai.is-active { color: var(--text); }
.nav-dropdown { position: relative; }
.nav-dropdown__trigger::after {
  content: ""; display: inline-block; width: 0; height: 0; margin-left: 6px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; opacity: 0.55; vertical-align: middle;
  transition: transform 0.2s;
}
.nav-dropdown.is-open .nav-dropdown__trigger::after { transform: rotate(180deg); }
.nav-dropdown__panel[hidden] { display: none !important; }
.nav-dropdown__panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 260px; max-width: min(92vw, 320px);
  padding: 10px 12px 12px; border-radius: var(--radius);
  background: var(--dropdown-bg);
  border: 1px solid var(--dropdown-border);
  box-shadow: none;
  z-index: 120;
}
/* Невидимый «мост» между кнопкой и панелью — курсор не теряет hover */
.nav-dropdown__panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
.nav-dropdown__section + .nav-dropdown__section {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--dropdown-divider);
}
.nav-dropdown__title {
  margin: 0 0 6px; padding: 0 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-tertiary, #8a8a8e);
}
.nav-dropdown__link {
  display: block; padding: 9px 10px; border-radius: var(--radius);
  font-size: var(--fs-sm); color: var(--text-secondary); font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-dropdown__link-label {
  display: block;
  font-weight: 600;
  color: var(--text);
}
.nav-dropdown__link-hint {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-tertiary, #8a8a8e);
}
.nav-dropdown__link:hover .nav-dropdown__link-hint {
  color: var(--text-secondary);
}
.nav-dropdown__link:hover {
  color: var(--text); background: var(--dropdown-hover);
}
.nav-dropdown__link.is-active {
  color: var(--text); background: var(--dropdown-hover);
}
.header__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header__phone {
  font-weight: 600; font-size: var(--fs-sm); color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  letter-spacing: -0.02em;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.header__phone::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--call); box-shadow: none;
  flex-shrink: 0;
}
.header__phone:hover {
  color: var(--text); border-color: var(--text);
  background: var(--surface);
}
.burger {
  display: none;
  box-sizing: border-box;
  grid-template-columns: auto auto;
  grid-template-rows: repeat(3, 5px);
  align-items: center;
  justify-content: center;
  column-gap: 8px;
  row-gap: 0;
  min-width: 44px;
  min-height: 40px;
  padding: 8px 12px;
  margin: 0;
  cursor: pointer;
  border-radius: var(--radius);
  background: rgba(255, 107, 44, 0.08);
  border: 1px solid rgba(255, 107, 44, 0.34);
  box-shadow: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.burger span {
  grid-column: 1;
  width: 18px;
  height: 2px;
  background: var(--accent, #ff6b2c);
  border-radius: 2px;
  transition: transform 0.2s var(--ease-out), opacity 0.2s;
}
.burger span:nth-child(1) { grid-row: 1; }
.burger span:nth-child(2) { grid-row: 2; }
.burger span:nth-child(3) { grid-row: 3; }
.burger::after {
  content: "Меню";
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}
.burger:hover {
  background: rgba(255, 107, 44, 0.14);
  border-color: rgba(255, 107, 44, 0.48);
}
.burger[aria-expanded="true"] {
  background: rgba(255, 107, 44, 0.16);
  border-color: rgba(255, 107, 44, 0.5);
}


/* ===== CINEMATIC HERO ===== */
.hero-cinema {
  position: relative; min-height: 100dvh; min-height: 100svh;
  display: flex; align-items: flex-end; overflow: hidden;
  padding-top: calc(var(--topbar-h) + var(--header-h));
  padding-bottom: clamp(48px, 8vh, 80px);
}
.hero-cinema__media {
  position: absolute;
  top: calc(-1 * (var(--topbar-h) + var(--header-h)));
  left: 0; right: 0; bottom: 0; z-index: 0;
  overflow: hidden;
}
.hero-cinema__poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 48%;
  transform: none;
  transition: opacity 0.4s ease;
}
.hero-cinema__video {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-cinema.is-video-ready .hero-cinema__poster {
  opacity: 0;
  pointer-events: none;
}
.hero-cinema__media img:not(.hero-cinema__poster),
.hero-cinema__media video {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 40% 48%;
  transform: none;
}
.hero-cinema.is-loaded .hero-cinema__media img:not(.hero-cinema__poster),
.hero-cinema.is-loaded .hero-cinema__media video,
.hero-cinema.is-loaded .hero-cinema__poster { transform: none; }
.hero-cinema__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10, 10, 10, 0.94) 0%, rgba(10, 10, 10, 0.62) 46%, rgba(10, 10, 10, 0.1) 100%),
    linear-gradient(to right, rgba(10, 10, 10, 0.86) 0%, rgba(10, 10, 10, 0.5) 48%, transparent 86%);
}
.hero-cinema__content {
  position: relative; z-index: 2; width: 100%;
  max-width: 780px;
}
/* Контент hero поверх видео — даже при сбое вложенности в HTML */
.hero-cinema > :not(.hero-cinema__media):not(.hero-cinema__scroll) {
  position: relative;
  z-index: 2;
}
.hero-cinema__trust a.link--phone {
  color: var(--text-on-media);
}
.hero-cinema__trust a.link--phone:hover {
  color: #fff;
}
.hero-cinema__badge,
.hero-cinema__trust,
.hero-cinema__scroll { display: none; }
.hero-cinema__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 14px;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500; text-shadow: 0 1px 18px rgba(0, 0, 0, 0.7);
}
.hero-cinema__proof b { color: #fff; font-weight: 700; } .hero-cinema__proof span { display: inline-flex; align-items: center; gap: 6px; }
.hero-cinema__proof .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); flex-shrink: 0; }
.hero-cinema__proof .highlight { color: var(--accent-2); font-weight: 700; }
.hero-cinema__title {
  font-family: 'Oswald', var(--font-sans); font-weight: 700;
  font-size: clamp(32px, 5.5vw, 52px); line-height: 1.08;
  letter-spacing: -0.02em; margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 2px 48px rgba(0, 0, 0, 0.55);
}
.hero-cinema__lead {
  font-size: clamp(var(--fs-md), 2.5vw, var(--fs-lg)); color: #fff;
  max-width: 560px; margin-bottom: 32px; font-weight: 500; line-height: 1.5;
  letter-spacing: -0.01em; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.92), 0 2px 20px rgba(0, 0, 0, 0.8);
}
.hero-cinema__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 28px;
}
.hero-cinema .btn--primary {
  background: var(--accent);
  color: var(--text);
  border: 0;
  box-shadow: none;
  height: 54px;
  padding: 0 32px;
  font-size: 17px;
  font-weight: 600;
  flex-direction: row;
  gap: 0;
}
.hero-cinema .btn--primary:hover {
  background: var(--accent-2);
  border: 0;
  box-shadow: none;
}
.hero-cinema .btn--primary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.hero-cinema__cta-note {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
}
@media (prefers-reduced-transparency: reduce) {
  .btn--concept--sticky,
  .btn--concept--sticky:hover {
    background: var(--accent);
    border: 0;
    box-shadow: none;
  }
}
.hero-cinema__trust {
  display: none;
  gap: 20px; flex-wrap: wrap; list-style: none;
  font-size: var(--fs-sm); color: var(--text-on-media-muted); font-weight: 500;
}
.hero-cinema__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: none; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255, 255, 255, 0.4); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; animation: scrollBounce 2s ease-in-out infinite;
}
.hero-cinema__scroll::after {
  content: ""; width: 1px; height: 32px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}
@keyframes scrollBounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ===== TRUST STRIP ===== */
.trust {
  background: var(--bg-2); border-bottom: 1px solid var(--line);
  padding: clamp(32px, 5vw, 48px) 0;
}
.trust__grid {

.technologist__cta { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }

/* ===== FEARS ===== */
.fears { background: var(--bg-2); }
.fears__summary {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 16px 28px; margin-bottom: clamp(24px, 4vw, 36px);
  padding: clamp(18px, 3vw, 24px) clamp(20px, 4vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.fears__summary-loss,
.fears__summary-audit {
  display: flex; flex-direction: column; gap: 4px; text-align: center; min-width: 140px;
}
.fears__summary-loss strong {
  font-family: var(--font-sans); font-size: clamp(28px, 4vw, 40px);
  font-weight: 700; color: var(--loss); line-height: 1;
}
.fears__summary-audit strong {
  font-family: var(--font-sans); font-size: clamp(28px, 4vw, 40px);
  font-weight: 700; color: var(--call); line-height: 1;
}
.fears__summary-loss span,
.fears__summary-audit span { font-size: 13px; color: var(--muted); font-weight: 500; }
.fears__summary-divider {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  padding: 6px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.fears__grid {
  display: flex; flex-direction: column; gap: 0; margin-bottom: 24px;
  border-top: 1px solid var(--line);
}
.fears__card--compact .fears__fix,
.fears__card--compact .fears__plan-hint { display: none; }
@media (min-width: 769px) {
  .fears__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }
  .fears__card--lead { grid-column: 1 / -1; }
  .fears__card--compact {
    padding: clamp(18px, 2vw, 22px) clamp(14px, 2vw, 18px);
    border-right: 1px solid var(--line);
  }
  .fears__card--compact:last-child { border-right: 0; }
  .fears__card--compact h3 { font-size: clamp(16px, 1.6vw, 18px); margin-bottom: 4px; }
  .fears__card--compact .fears__cause { font-size: 13px; margin-bottom: 6px; }
  .fears__card--compact .fears__loss { font-size: 14px; margin-top: 4px; padding-top: 0; }
  .fears__card--lead.fears__card--visual .fears__card-main--visual {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    grid-template-areas: "body visual";
  }
  .fears__card--lead.fears__card--visual .fears__card-main--visual .fears__card-visual {
    grid-column: auto;
    grid-row: auto;
    grid-area: visual;
  }
  .fears__card--lead.fears__card--visual .fears__card-main--visual .fears__loss {
    grid-column: auto;
  }
}
.fears__card {
  position: relative;
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: clamp(18px, 2.5vw, 24px) 0; display: flex; flex-direction: column; gap: 10px;
  transition: none;
}
.fears__card:hover {
  border-color: var(--line);
  transform: none;
  box-shadow: none;
}
.fears__card--lead {
  border-color: var(--line);
  background: none;
  padding: clamp(18px, 2.5vw, 24px) 0;
}
.fears__icon { display: none; }
.fears__card-main {
  display: grid; grid-template-columns: 1fr auto; gap: clamp(14px, 3vw, 24px);
  align-items: start;
}
.fears__body { min-width: 0; }
.fears__rank {
  align-self: flex-start;
  font-family: inherit; font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: none;
  padding: 0; border-radius: 0;
  color: var(--text-tertiary); background: none; border: 0;
}
.fears__rank--muted {
  color: var(--muted); background: var(--bg-2); border-color: var(--line);
}
.fears__icon { display: none; }
.fears__card h3 {
  font-size: clamp(17px, 2vw, 19px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 6px;
}
.fears__cause {
  font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0 0 8px;
}
.fears__fix {
  font-size: 13px; font-weight: 600; color: var(--call); line-height: 1.45; margin: 0;
}
.fears__card--lead .fears__loss {
  text-align: left; align-self: start; margin: 0; white-space: nowrap;
  font-size: clamp(18px, 2.5vw, 22px);
}
.fears__loss {
  font-size: 15px; font-weight: 700; color: var(--loss); margin-top: auto; padding-top: 4px;
}
.fears__loss strong { color: var(--loss); font-size: 1.15em; }
.fears__loss-note {
  display: block; font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 2px;
}
.fears__bridge {
  text-align: center; border-color: rgba(255, 107, 44, 0.25);
  background: linear-gradient(160deg, rgba(255, 107, 44, 0.07), var(--surface));
}
.fears__bridge-kicker {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.fears__bridge-title {


/* ===== UPLOAD FORM ===== */
.upload-form input[type="text"],
.upload-form input[type="tel"],
.upload-form input[type="email"],
.upload-form select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
}
.upload-form__file { display: block; cursor: pointer; position: relative; overflow: hidden; }
.upload-form__file input[type="file"] {
  position: absolute; left: 0; top: 0; width: 1px !important; height: 1px !important;
  margin: 0; padding: 0; opacity: 0; pointer-events: none; overflow: hidden;
}
.upload-form__file-ui {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 28px 16px; border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--bg-2); transition: border-color 0.2s, background 0.2s;
  text-align: center;
  min-height: 96px;
  justify-content: center;
}
.upload-form__file-ui:hover,
.upload-form__file-ui.has-file {
  border-color: var(--accent); background: var(--surface);
}
.upload-form__file-icon { font-size: 22px; }
.upload-form__file-text { font-size: 15px; font-weight: 600; }
.upload-form__file-hint { font-size: 12px; color: var(--muted); }
.upload-form__file--compact .upload-form__file-ui { padding: 14px 12px; min-height: 0; }
.upload-form__more {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: var(--bg-2);
}
.upload-form__more > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 10px 0;
  list-style: none;
}
.upload-form__more > summary::-webkit-details-marker { display: none; }

.upload-form__more[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.upload-form__more-fields { display: flex; flex-direction: column; gap: 10px; padding-bottom: 12px; }
.upload-section { scroll-margin-top: calc(var(--topbar-h) + var(--header-h) + 16px); }


.review__stars { margin-bottom: 14px; }
.review p { font-size: 15px; line-height: 1.6; margin-bottom: 16px; color: var(--text); }
.review footer { font-size: 13px; color: var(--muted); font-weight: 500; }

/* ===== LEAD ===== */
.lead { background: var(--bg); }
.lead__inner {
  display: grid; grid-template-columns: 1fr; gap: clamp(32px, 6vw, 64px); align-items: center;
  min-width: 0; max-width: 100%;
}
@media (min-width: 901px) {
  .lead__inner { grid-template-columns: 1fr 440px; }
}
.lead__inner > * { min-width: 0; }
.lead__text, .lead__form { overflow-wrap: anywhere; }
.lead__form .checkbox,
.lead__form .checkbox span {
  overflow-wrap: normal;
  word-break: normal;
}
.checkbox span { flex: 1; min-width: 0; }
.lead__text h2 {
  font-family: var(--font-sans); font-size: clamp(28px, 4vw, 40px);
  font-weight: 700; line-height: 1.1; margin-bottom: 16px; letter-spacing: -0.02em;
}
.lead__text p { color: var(--muted); font-size: 17px; margin-bottom: 24px; line-height: 1.55; }
.lead__visual { margin: 0 0 24px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.lead__visual img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 35%; }
.lead__visual--founder {
  max-width: min(340px, 100%);
  margin-inline: auto;
  background: linear-gradient(180deg, #ebebeb 0%, #d4d4d4 100%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.lead__visual--founder img {
  aspect-ratio: auto;
  max-height: none;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
}
.lead__visual-caption {
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 16px 14px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--text-secondary); line-height: 1.4;
}
.lead__visual-caption b { color: var(--text); font-weight: 700; }
.lead__visual-caption span { font-size: 13px; color: var(--muted); }
@media (min-width: 901px) {
  /* Лицо инженера + тезисы рядом: клиент сразу видит «кто ответит» */
  body[data-page="landing"] .upload-section .lead__text,
  body[data-page="audit-plan"] .upload-section .lead__text {
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    column-gap: clamp(20px, 3vw, 32px);
    row-gap: 16px;
    align-items: start;
  }
  body[data-page="landing"] .upload-section .lead__text > .section__tag,
  body[data-page="landing"] .upload-section .lead__text > h2,
  body[data-page="landing"] .upload-section .lead__text > p:not(.lead__kit-link),
  body[data-page="audit-plan"] .upload-section .lead__text > .section__tag,
  body[data-page="audit-plan"] .upload-section .lead__text > h2,
  body[data-page="audit-plan"] .upload-section .lead__text > p:not(.lead__kit-link) {
    grid-column: 1 / -1;
  }
  body[data-page="landing"] .upload-section .lead__visual--founder,
  body[data-page="audit-plan"] .upload-section .lead__visual--founder {
    max-width: none;
    width: 100%;
    margin: 4px 0 0;
  }
  body[data-page="landing"] .upload-section .lead__benefits,
  body[data-page="audit-plan"] .upload-section .lead__benefits {
    margin: 12px 0 0;
    align-self: center;
  }
  body[data-page="landing"] .upload-section .lead__kit-link,
  body[data-page="audit-plan"] .upload-section .lead__kit-link {
    grid-column: 1 / -1;
    margin-top: 4px;
  }
  body[data-page="landing"] .upload-section .lead__text h2,
  body[data-page="audit-plan"] .upload-section .lead__text h2 {
    font-size: clamp(26px, 3.2vw, 36px);
  }
}
.lead__sketch-title {
  font-size: 14px; font-weight: 600; color: var(--text); margin: 0 0 8px;
}
.lead__sketch-list {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
  font-size: 14px; color: var(--muted); margin: 0 0 20px; padding: 14px 16px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
}
.lead__sketch-list li::before { content: "→ "; color: var(--accent); }
.lead__benefits { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; margin-bottom: 28px; }
.lead__call { margin-top: 12px; }
.lead__call-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.25rem, 2.8vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  transition: color 0.2s;
}
.lead__call-link:hover { color: var(--call); }

body.has-sticky-gate .sticky-cta {
  transform: translateY(100%); opacity: 0; visibility: hidden;
  transition: transform 0.28s var(--ease-out), opacity 0.28s var(--ease-out), visibility 0.28s;
}
body.has-sticky-gate .sticky-cta.is-visible { transform: none; opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  body.has-sticky-gate .sticky-cta { transition: none; }
}
.sticky-cta__phone:hover { border-color: var(--text); color: var(--text); }
.sticky-call-icon { display: none !important; }
.sticky-cta__inner .btn--concept--sticky { width: 100%; min-height: 48px; flex: 1; }

/* ===== MODAL ===== */

