/* people.doitai.ru — карточка AI-трансформации и внутренняя страница.
   Акцент управляется одной переменной --accent. */
:root {
  --ink: #0c1210;        /* тёмный чернильный фон */
  --ink-2: #131b18;      /* приподнятые поверхности */
  --paper: #eef1ec;      /* светлые секции */
  --accent: #3ff2d3;     /* электрический бирюзовый — единственная точка правки цвета */
  --on-accent: #0b1210;  /* текст на акцентных плоскостях */
  --muted: rgba(238, 241, 236, 0.62);
  --muted-dark: rgba(12, 18, 16, 0.62);
  --radius: 22px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --header-h: 73px; /* высота липкой шапки — участвует в снапе и высоте секций */
}
* { margin: 0; padding: 0; box-sizing: border-box; }
/* Атрибут hidden обязан побеждать display у самих элементов (форма после отправки). */
[hidden] { display: none !important; }
/* Скролл-снап: страница листается по секциям-экранам; снап учитывает шапку.
   proximity, а не mandatory: у хвоста (.page-tail) снап-точка только на входе,
   и mandatory на границе «зажёвывал» скролл в обе стороны. */
html { scroll-behavior: smooth; scroll-snap-type: y proximity; scroll-padding-top: var(--header-h); }
body { font-family: var(--font); background: var(--ink); color: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; }
.container { width: min(1160px, 100% - 48px); margin-inline: auto; }
.eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
.nowrap { white-space: nowrap; }

/* ---------- Общие элементы внутренней страницы ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, background-color 160ms ease;
}
.button-primary { background: var(--accent); color: var(--on-accent); }
.button-primary:hover, .button-primary:focus-visible { filter: brightness(0.94); }
.button-ghost { background: transparent; color: inherit; border-color: rgba(238, 241, 236, 0.28); }
.button-ghost:hover, .button-ghost:focus-visible { border-color: var(--accent); color: var(--accent); }
.button:active { transform: translateY(1px); }

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

h1, h2, h3 { font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); margin: 12px 0 16px; line-height: 1.08; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: 8px; }
.section-lead { max-width: 62ch; color: var(--muted-dark); font-size: clamp(1rem, 1.4vw, 1.15rem); margin-bottom: 22px; }

/* Секции-экраны: каждая занимает ровно вьюпорт (минус шапка), контент по центру.
   Прямые дети main снапятся; хвост (.page-tail: FAQ + контакт + футер) — один
   снап-блок выше экрана, внутри него браузер даёт свободный скролл. */
main > section {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
  padding: clamp(28px, 4vh, 48px) 0;
}
.page-tail { scroll-snap-align: start; }
.page-tail section { padding: clamp(40px, 6vh, 64px) 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark .section-lead { color: var(--muted); }
.section-light { background: var(--paper); color: var(--ink); }
.section-dark-strong { background: #070b09; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(12, 18, 16, 0.72);
  border-bottom: 1px solid rgba(238, 241, 236, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h); /* жёстко = переменной, от неё считается снап и высота секций */
}
.brand { color: var(--paper); text-decoration: none; font-weight: 800; letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.site-nav a:hover { color: var(--paper); }
.header-cta { margin-left: 16px; padding: 10px 20px; }
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  margin-left: 12px;
  border: none;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--paper); display: block; }
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 24px 20px;
}
.mobile-menu a { color: var(--paper); text-decoration: none; padding: 10px 0; border-bottom: 1px solid rgba(238, 241, 236, 0.08); }
/* CTA внутри меню — обычная акцентная кнопка, а не пункт списка. */
.mobile-menu a.button {
  color: var(--on-accent);
  border-bottom: none;
  justify-content: center;
  padding: 13px 24px;
  margin-top: 12px;
  align-self: stretch;
}
.mobile-menu.open { display: flex; }

/* ---------- Hero ---------- */
/* Вертикальное центрирование даёт flex секции — свой padding-top не нужен. */
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.hero-copy h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); line-height: 1.06; margin: 14px 0 20px; }
.hero-lead { color: var(--muted); max-width: 56ch; margin-bottom: 28px; font-size: clamp(1rem, 1.4vw, 1.2rem); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-metrics { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; }
.hero-metrics li {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(238, 241, 236, 0.16);
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-console {
  background: var(--ink-2);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(238, 241, 236, 0.08);
}
.hero-console .eyebrow { color: var(--muted); margin-bottom: 20px; }
.ring { position: relative; width: 148px; height: 148px; margin: 0 auto 24px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring-track { stroke: rgba(238, 241, 236, 0.12); }
.ring-value {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: calc(327 - (327 * var(--value, 0) / 100));
  transition: stroke-dashoffset 600ms ease;
}
.ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
}
/* Подпись обязана целиком помещаться в кольцо: кегль и трекинг подобраны так,
   чтобы «высвобождено» (самое длинное слово, не переносится) было заметно уже
   внутреннего круга. */
.ring-label small { font-size: 0.55rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; color: var(--muted); max-width: 14ch; }
.console-lines { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; color: var(--muted); border-top: 1px solid rgba(238, 241, 236, 0.1); padding-top: 16px; }
.console-note { margin-top: 16px; font-size: 0.78rem; color: var(--muted); }

/* ---------- Проблема / карточки ---------- */
.card-grid { display: grid; gap: 20px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.info-card {
  background: var(--ink-2);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 28px;
}
.section-light .info-card { background: #ffffff; color: var(--ink); }
.card-index { display: block; font-size: 0.85rem; font-weight: 800; color: var(--accent); margin-bottom: 12px; }

/* ---------- Решение / схема ---------- */
.scheme {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 20px;
  align-items: stretch; /* три плашки одной высоты */
  margin: 28px 0;
}
.scheme-col { background: var(--ink-2); border-radius: var(--radius); padding: 24px; }
.scheme-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px; }
.scheme-col ol { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; }
.scheme-core {
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* при равной высоте колонок контент ядра — по центру */
  gap: 6px;
}
.core-title { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; }
.core-sub { font-size: 0.8rem; opacity: 0.75; }
.core-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.core-tags span { background: rgba(11, 18, 16, 0.14); border-radius: 999px; padding: 4px 12px; font-size: 0.76rem; font-weight: 700; }

.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.principle { border-top: 1px solid rgba(238, 241, 236, 0.16); padding-top: 16px; }
.principle .eyebrow { color: var(--accent); margin-bottom: 10px; }

/* ---------- Экономика / калькулятор ---------- */
.impact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.checklist li { padding-left: 22px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

.calculator {
  background: #ffffff;
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 20px 60px rgba(12, 18, 16, 0.08);
}
.calc-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; font-size: 0.9rem; font-weight: 700; }
.calc-field input[type="range"] { accent-color: var(--accent); }
.calc-field output { font-weight: 800; color: var(--ink); }
.calc-result { border-top: 1px solid rgba(12, 18, 16, 0.1); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 1.02rem; }
.calc-result strong { color: var(--ink); font-size: 1.3rem; }
.calc-note { margin-top: 16px; font-size: 0.78rem; color: var(--muted-dark); }

/* ---------- Масштаб ---------- */
.scale-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.scale-steps li { background: var(--ink-2); border-radius: var(--radius); padding: 28px; }
.step-index { font-size: 2rem; font-weight: 800; color: var(--accent); display: block; margin-bottom: 12px; }
.step-meta { margin-top: 12px; font-size: 0.82rem; color: var(--muted); }

/* ---------- Архитектура (табы) ---------- */
.layers { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; margin-top: 24px; align-items: stretch; }
.layers-tabs { display: flex; flex-direction: column; gap: 8px; }
.layers-tabs [role="tab"] {
  text-align: left;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(12, 18, 16, 0.12);
  background: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  color: var(--ink);
}
.layers-tabs [role="tab"][aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.layers-panel {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
}
.layer-index { font-size: 2.4rem; font-weight: 800; color: var(--accent); }
.layers-panel .eyebrow { color: var(--muted); margin: 4px 0 12px; }
.layers-panel h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin-bottom: 12px; }
.layer-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.layer-tags span { border: 1px solid rgba(238, 241, 236, 0.24); border-radius: 999px; padding: 4px 14px; font-size: 0.78rem; }

/* ---------- Контроль (лестница) ---------- */
/* Пять ступеней в ряд — секция целиком помещается в экран.
   На узких экранах (медиазапрос ниже) складываются в вертикальный список. */
.trust-ladder { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 24px; }
.trust-ladder li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 0 0;
  border-top: 1px solid rgba(238, 241, 236, 0.12);
}
.ladder-index { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--accent); line-height: 1; }
.trust-ladder h3 { font-size: 1.05rem; }
.trust-ladder p { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 900px) {
  .trust-ladder { grid-template-columns: 1fr; gap: 0; }
  .trust-ladder li { flex-direction: row; align-items: baseline; gap: 20px; padding: 18px 0; }
}

/* ---------- Результат / анимация ---------- */
.result-layout { display: flex; flex-direction: column; gap: 18px; height: 100%; }
.anim-stage {
  flex: 1;
  min-height: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100svh - var(--header-h) - 190px); /* кикер+заголовок+отступы — секция остаётся одним экраном */
}
@media (orientation: portrait) {
  .anim-stage { aspect-ratio: 9 / 16; max-height: 70svh; }
}

/* ---------- Передача ---------- */
.roles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.role-card { background: #ffffff; border-radius: var(--radius); padding: 28px; }
.role-card .eyebrow { color: var(--ink); margin-bottom: 10px; }
.delivery-summary {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}
.summary-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.summary-tags span { background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 6px 16px; font-size: 0.8rem; font-weight: 800; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.faq-list details {
  background: var(--ink-2);
  border-radius: 16px;
  padding: 18px 22px;
}
.faq-list summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--accent); font-weight: 800; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { margin-top: 12px; color: var(--muted); }

/* ---------- Контакт ---------- */
.section-contact { background: var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-copy h2 { color: var(--paper); }
.contact-form-wrap {
  background: var(--ink-2);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
}
#people-contact-form { display: flex; flex-direction: column; gap: 14px; }
#people-contact-form input,
#people-contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(238, 241, 236, 0.18);
  background: rgba(238, 241, 236, 0.04);
  color: var(--paper);
  font-family: inherit;
  font-size: 0.95rem;
}
#people-contact-form input::placeholder,
#people-contact-form textarea::placeholder { color: var(--muted); }
#people-contact-form textarea { resize: vertical; min-height: 96px; }
#people-contact-form button { align-self: flex-start; margin-top: 4px; }
.form-done, .form-fail { margin-top: 16px; font-size: 0.92rem; }
.captcha-note { margin-top: 14px; font-size: 0.78rem; color: var(--muted); }
.captcha-note a { color: inherit; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.82rem; color: var(--muted); cursor: pointer; }
/* Селектор с ID — иначе общий #people-contact-form input (width:100%, паддинги)
   перебивает по специфичности и растягивает чекбокс на всю форму. */
#people-contact-form .consent input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  padding: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent a { color: inherit; }
.form-done { color: var(--accent); }
.form-fail { color: #ff8a8a; }
.contact-footnote { margin-top: 28px; text-align: center; color: var(--muted); font-size: 0.85rem; }

/* ---------- Футер ---------- */
.site-footer { border-top: 1px solid rgba(238, 241, 236, 0.08); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; }
.footer-inner .brand { color: var(--paper); }
.footer-inner a { color: var(--muted); text-decoration: none; margin-left: auto; }
.footer-inner a:hover { color: var(--paper); }
.footer-inner a + a { margin-left: 0; }

/* ---------- Reveal-анимация ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
}

/* ---------- Мобильная адаптация ---------- */
@media (max-width: 900px) {
  .site-nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .hero-grid, .impact-grid, .contact-grid { grid-template-columns: 1fr; }
  .card-grid.three,
  .principles-grid,
  .scale-steps,
  .roles-grid { grid-template-columns: 1fr; }
  .scheme { grid-template-columns: 1fr; }
  .layers { grid-template-columns: 1fr; }
  .layers-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .layers-tabs [role="tab"] { flex: 0 0 auto; white-space: nowrap; }
  .footer-inner a { margin-left: 0; }
  /* На мобильных секции выше экрана — снап и полноэкранная высота только на десктопе. */
  html { scroll-snap-type: none; }
  main > section { min-height: 0; display: block; padding: clamp(40px, 6vh, 56px) 0; }
}
