/* TeamControl — общие стили сайта. Единая палитра/типографика для всех страниц. */
:root {
  --ice: #f4f8fa;
  --ice-2: #e8f0f3;
  --line: #cddce3;
  --ink: #0d2233;
  --ink-soft: #4a6072;
  --board: #0a1c2b;
  --board-2: #0f2740;
  --board-line: rgba(226, 240, 247, .16);
  --board-text: #eaf3f7;
  --board-text-soft: #a9bfcc;
  --accent: #e69f00;
  --accent-ink: #7a5200;
  --accent-soft: #fbeed0;
  --blue: #0072b2;
  --blue-soft: #dcecf6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; transition-delay: 0ms !important; }
}
body {
  margin: 0;
  background: var(--ice);
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Unbounded', 'Manrope', sans-serif; text-wrap: balance; margin: 0; overflow-wrap: break-word; }
/* Единая шкала line-height по уровню заголовка (просьба Андрея 06.09.26) — крупные (h1)
   плотнее, подзаголовки (h2/h3) чуть свободнее, тело текста остаётся на 1.6 (задано на
   body). Более специфичные селекторы (.hero h1: 1.04, .adv h3: 1.3) по-прежнему
   перебивают эти значения там, где уже осознанно выбрано другое (не трогаю). */
h1 { line-height: 1.15; }
h2 { line-height: 1.3; }
h3 { line-height: 1.3; }
.mono { font-family: 'IBM Plex Mono', 'Manrope', monospace; font-variant-numeric: tabular-nums; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Появление секций при скролле (просьба Андрея 06.09.26) — класс .reveal вешает JS
   (site.js) на верхнеуровневые <section>, .reveal-visible добавляется при первом
   пересечении с IntersectionObserver. Без JS класса .reveal никогда не будет — секция
   остаётся в обычном видимом состоянии, никакого голого инлайн-стиля с opacity:0 в HTML.
   Стагер — 80ms между прямыми детьми .wrap внутри секции (section-head/грид/футер-ссылка),
   не между отдельными карточками грида. */
.reveal > .wrap > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1);
}
.reveal.reveal-visible > .wrap > * { opacity: 1; transform: translateY(0); }
.reveal > .wrap > *:nth-child(2) { transition-delay: 80ms; }
.reveal > .wrap > *:nth-child(3) { transition-delay: 160ms; }
.reveal > .wrap > *:nth-child(4) { transition-delay: 240ms; }

a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
::selection { background: var(--accent-soft); color: var(--ink); }

/* topbar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  padding: 16px 24px;
  background: rgba(10,28,43,.94);
  backdrop-filter: blur(6px);
  color: var(--board-text);
}
.topbar-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 20px; color: #fff; text-decoration: none; }
.brand b { color: var(--accent); font-weight: 700; }
.topnav { display: flex; gap: 24px; font-size: 15px; font-weight: 500; }
.topnav a { text-decoration: none; color: var(--board-text-soft); transition: color .15s; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.topnav a:hover { color: #fff; }
.topnav a[aria-current="page"] { color: #fff; font-weight: 700; border-bottom-color: var(--accent); }
.topbar-cta {
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 14.5px;
  background: var(--accent); color: #241800; border: none; border-radius: 3px;
  padding: 10px 18px; text-decoration: none; white-space: nowrap;
}
@media (max-width: 760px) { .topnav { display: none; } }

/* page header (non-home pages) */
.page-header { background: var(--board); color: var(--board-text); padding: 48px 24px 64px; }
.page-header .kicker { color: var(--accent); }
.page-header h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; color: #fff; max-width: 22ch; }
.page-header p { margin: 16px 0 0; max-width: 52ch; font-size: 17px; color: var(--board-text-soft); }

section { padding: 96px 0; }
.section-head { max-width: 62ch; margin-bottom: 48px; }
.kicker {
  display: block; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px; font-weight: 600;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; color: var(--ink); }
.section-head p { margin: 16px 0 0; color: var(--ink-soft); font-size: 17px; max-width: 56ch; }
hr.rule { border: none; border-top: 1px solid var(--line); margin: 0; }

.btn {
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 15.5px;
  border-radius: 3px; padding: 15px 26px; text-decoration: none; display: inline-block; border: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #241800; }
.btn-primary:hover { background: #f0ab1a; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid var(--board-line); }
.btn-ghost:hover { border-color: #fff; }
.btn-ghost-light { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost-light:hover { border-color: var(--ink); }

/* advantage tiles — asymmetric bento (не ровная 3-колоночная сетка: это
   поименованное клише "3-column feature grid in section 2", см.
   awesome-claude-design/prompts/break-default-aesthetic.md, правило 5) */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.adv:nth-child(1), .adv:nth-child(5) { grid-column: span 2; }
@media (max-width: 780px) {
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .adv:nth-child(1), .adv:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 560px) {
  .adv-grid { grid-template-columns: 1fr; }
  .adv:nth-child(1), .adv:nth-child(5) { grid-column: span 1; }
}
.adv { background: #fff; padding: 26px 20px; }
.adv .idx { font-family: 'IBM Plex Mono'; font-size: 12px; color: var(--accent-ink); font-weight: 600; }
.adv h3 { font-size: 15px; font-weight: 700; margin: 12px 0 8px; line-height: 1.3; }
.adv p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.adv:nth-child(1) h3, .adv:nth-child(5) h3 { font-size: 18px; }
.adv:nth-child(1) p, .adv:nth-child(5) p { font-size: 14.5px; max-width: 46ch; }

/* feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 880px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { background: #fff; padding: 26px 22px; }
.feature svg { width: 22px; height: 22px; stroke: var(--blue); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 15.5px; font-weight: 700; margin: 14px 0 6px; }
.feature p { margin: 0; font-size: 13.8px; color: var(--ink-soft); line-height: 1.5; }

/* audience cards */
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .audience-grid { grid-template-columns: 1fr; } }
.audience-card { border: 1px solid var(--line); border-radius: 4px; padding: 32px 28px; background: #fff; }
.audience-card .tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 4px 11px; display: inline-block;
}
.audience-card h3 { font-size: 21px; font-weight: 700; margin: 16px 0 10px; }
.audience-card p { color: var(--ink-soft); margin: 0; font-size: 15.5px; }
.audience-card ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.audience-card li { font-size: 15px; color: var(--ink); padding-left: 20px; position: relative; }
.audience-card li::before { content: ''; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; background: var(--blue); border-radius: 1px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 2px solid var(--line); padding-top: 16px; }
.step .idx { font-family: 'IBM Plex Mono'; font-size: 13px; color: var(--accent-ink); font-weight: 600; }
.step h3 { font-size: 16.5px; margin: 10px 0 8px; font-weight: 700; }
.step p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* real screenshots (demo-портал), framed in browser chrome — не CSS-макет с выдуманными
   строками, а живые скриншоты demo.teamcontrol.ru (см. image-скилл: модели галлюцинируют
   UI, поэтому берём реальный интерфейс, не рисуем его сами). */
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 820px) { .preview-grid { grid-template-columns: 1fr; } }
.preview-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .preview-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .preview-grid-3 { grid-template-columns: 1fr; } }
.screen-wrap { margin: 0; background: var(--board); border-radius: 6px; padding: 4px; box-shadow: 0 24px 60px -20px rgba(10,28,43,.4); }
.screen { background: #fff; border-radius: 4px; overflow: hidden; }
.screen-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--board-2); }
.screen-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.22); }
.screen img { display: block; width: 100%; height: auto; }
.screen-wrap figcaption { margin-top: 12px; font-size: 13.5px; color: var(--ink-soft); text-align: center; }

/* pricing */
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.price-table thead th { font-family: 'IBM Plex Mono'; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 600; border-bottom: 2px solid var(--ink); }
.price-table td.tier { font-weight: 700; }
.price-table td.tier small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 12.5px; margin-top: 2px; }
.price-table td.num { font-family: 'IBM Plex Mono'; font-weight: 600; }
.price-note { margin: 16px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.table-wrap { overflow-x: auto; }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { padding: 20px 0; font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: 'IBM Plex Mono'; color: var(--blue); flex: none; }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { margin: 0 0 22px; color: var(--ink-soft); font-size: 15px; max-width: 62ch; }

/* multisport */
.multisport { background: var(--blue-soft); border-radius: 4px; padding: 32px 30px; display: flex; gap: 24px; align-items: flex-start; }
.multisport svg { width: 30px; height: 30px; stroke: var(--blue); stroke-width: 1.6; fill: none; flex: none; margin-top: 3px; }
.multisport h4 { font-size: 18px; margin: 0 0 8px; font-weight: 700; }
.multisport p { margin: 0; color: var(--ink-soft); font-size: 15px; max-width: 62ch; }
.sport-chip-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.sport-chip { font-family: 'IBM Plex Mono'; font-size: 12px; padding: 4px 11px; border-radius: 999px; border: 1px solid rgba(0,114,178,.3); color: var(--blue); }
.sport-chip.ready { background: var(--blue); color: #fff; border-color: var(--blue); }

/* lead form */
.lead-section { background: var(--board); color: var(--board-text); }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .lead-grid { grid-template-columns: 1fr; gap: 32px; } }
.lead-section .kicker { color: var(--accent); }
.lead-section h2 { color: #fff; }
.lead-section .section-head p { color: var(--board-text-soft); }
.contact-line { margin-top: 24px; font-size: 15px; color: var(--board-text-soft); }
.contact-line a { color: var(--accent); text-decoration: none; font-weight: 600; }
form.lead-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--board-text-soft); font-weight: 600; }
.field input {
  font: inherit; font-size: 15px; padding: 13px 14px; border-radius: 3px; border: 1px solid var(--board-line);
  background: rgba(255,255,255,.04); color: #fff;
}
.field input::placeholder { color: #5f7688; }
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.lead-form .btn-primary { margin-top: 6px; width: 100%; text-align: center; }
.lead-note { font-size: 12.5px; color: var(--board-text-soft); margin: 4px 0 0; }
.form-msg { font-size: 14px; margin-top: 4px; min-height: 20px; }
.form-msg.ok { color: #7cd68a; }
.form-msg.err { color: #ef8f8f; }

footer { padding: 32px 0 50px; text-align: center; font-size: 13px; color: var(--board-text-soft); background: var(--board); }
footer .foot-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
footer .foot-links a { text-decoration: none; color: var(--board-text-soft); }
footer .foot-links a:hover { color: #fff; }
