/* ===== TeamControl v2 — редизайн по референсу Leadex Agency (no-kode.ru), черновик 06.09.26 =====
   Самостоятельный стиль для index-v2.html и последующих *-v2.html страниц — НЕ трогает
   и не переопределяет site.css (боевой сайт остаётся на v1 без изменений). Токены —
   см. DESIGN-v2.md. Шрифт TildaSans (референс) — проприетарный шрифт Tilda, недоступен
   как веб-шрифт снаружи их платформы, поэтому используем Manrope (уже подключён на сайте,
   близкие пропорции). Скролл-reveal — общий с v1 (.reveal/.reveal-visible, см. site.js).
   Цвета сверены 06.09.26 по точному CSS референса (сохранённый HTML "сайт.txt" от Андрея,
   не по сэмплингу пикселей скриншота) — #2c6ed9/#67a0fb/#101112/#0d1013/#f7f7f7 это ТОЧНЫЕ
   значения из исходного stylesheet Tilda, не приближение. */

:root {
  --v2-dark: #101112;
  --v2-dark-hero: #121416;
  --v2-light: #f7f7f7;
  --v2-light-alt: #f9f9f9;
  --v2-white: #ffffff;
  --v2-text-dark-bg: #ffffff;
  --v2-text-dark-bg-soft: #afb0b1;
  --v2-text-light-bg: #0d1013;
  --v2-text-light-bg-soft: #5a6068;
  --v2-blue-headline: #67a0fb;
  --v2-blue-solid: #2c6ed9;
  --v2-blue-solid-hover: #1158ca;
  --v2-line: #e2e2e3;
}

/* ---------- сброс — БАГ 07.09.26: браузерный дефолт body{margin:8px} никогда не
   обнулялся в этом файле (в отличие от site.css у v1), из-за чего вокруг всей
   страницы был зазор в 8px не по фону секций, а на уровне body — визуально читалось
   как "hero не на всю ширину". Секции сами по себе (.v2-dark/.v2-hero/.v2-white и
   т.д.) НЕ имеют max-width — это не было причиной, причина именно в body. ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.v2 { overflow-x: hidden; }

.v2 { font-family: 'Manrope', Arial, sans-serif; }
.v2 section { padding: 96px 0; }
.v2 .wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.v2 h1, .v2 h2, .v2 h3 { font-family: 'Manrope', Arial, sans-serif; margin: 0; overflow-wrap: break-word; }

/* ---------- секция-обёртки светлая/тёмная (чередование, фирменный приём референса) ---------- */
.v2-dark { background: var(--v2-dark); color: var(--v2-text-dark-bg); }
.v2-light { background: var(--v2-light); color: var(--v2-text-light-bg); }
.v2-light.alt { background: var(--v2-light-alt); }
.v2-white { background: var(--v2-white); color: var(--v2-text-light-bg); }

/* ---------- гигантское декоративное слово фоном (Leadex-приём) ---------- */
.v2-decor-word { position: relative; overflow: hidden; }
.v2-decor-word::before {
  content: attr(data-word);
  position: absolute; left: -0.03em; bottom: -0.18em;
  font-size: clamp(90px, 14vw, 220px); font-weight: 800; line-height: 1;
  color: rgba(255,255,255,.05); white-space: nowrap; pointer-events: none; z-index: 0;
}
.v2-light .v2-decor-word::before, .v2-white .v2-decor-word::before { color: rgba(13,16,19,.04); }
.v2-decor-word > .wrap { position: relative; z-index: 1; }

/* ---------- шапка (НЕ sticky — в потоке, поверх hero) ---------- */
.v2-header { position: relative; z-index: 2; }
.v2-header-inner { max-width: 1180px; margin: 0 auto; padding: 20px 32px; display: flex; align-items: center; justify-content: space-between; }
.v2-header .v2-brand { font-weight: 700; font-size: 19px; color: #fff; text-decoration: none; }
.v2-header .v2-brand b { color: var(--v2-blue-headline); font-weight: 700; }
.v2-header nav { display: flex; gap: 28px; font-size: 15px; }
.v2-header nav a { color: var(--v2-text-dark-bg-soft); text-decoration: none; transition: color .15s ease; }
.v2-header nav a:hover, .v2-header nav a[aria-current="page"] { color: #fff; }
@media (max-width: 760px) { .v2-header nav { display: none; } }

/* ---------- hero ---------- */
.v2-hero { position: relative; padding: 64px 0 110px; }
.v2-hero-inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.v2-hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--v2-text-dark-bg-soft); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 6px 14px; margin-bottom: 28px; }
.v2-hero .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--v2-blue-headline); }
.v2-hero h1 { font-size: clamp(36px, 5.4vw, 70px); font-weight: 300; line-height: 1; letter-spacing: -.02em; max-width: 17ch; color: #fff; }
.v2-hero h1 .accent { color: var(--v2-blue-headline); font-weight: 500; }
.v2-hero-sub { margin: 28px 0 0; max-width: 48ch; font-size: 18px; color: var(--v2-text-dark-bg-soft); font-weight: 400; line-height: 1.5; }
.v2-hero-ctas { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.v2-btn { display: inline-block; font-size: 18px; font-weight: 500; border-radius: 15px; padding: 15px 28px; text-decoration: none; border: none; cursor: pointer; transition: background-color .18s ease, transform .18s ease, border-color .18s ease; }
.v2-btn-primary { background: var(--v2-blue-solid); color: #fff; }
.v2-btn-primary:hover { background: var(--v2-blue-solid-hover); transform: translateY(-1px); }
.v2-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.24); }
.v2-btn-ghost:hover { border-color: rgba(255,255,255,.5); }
.v2-light .v2-btn-ghost, .v2-white .v2-btn-ghost { color: var(--v2-text-light-bg); border-color: var(--v2-line); }
.v2-light .v2-btn-ghost:hover, .v2-white .v2-btn-ghost:hover { border-color: #b8b8ba; }
.v2 a:focus-visible, .v2 button:focus-visible, .v2 summary:focus-visible { outline: 2px solid var(--v2-blue-headline); outline-offset: 2px; }

/* ---------- процесс (4 шага + скриншот) ---------- */
.v2-steps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.v2-step { }
.v2-step .v2-step-num { display: inline-block; background: var(--v2-blue-solid); color: #fff; font-size: 13px; font-weight: 700; border-radius: 6px; padding: 4px 10px; margin-bottom: 14px; }
.v2-step h3 { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.v2-step p { margin: 0; color: var(--v2-text-light-bg-soft); font-size: 15px; }
.v2-process-shot { border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.12); border: 1px solid var(--v2-line); }
.v2-process-shot img { display: block; width: 100%; height: auto; }
.v2-process-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 959px) { .v2-process-split, .v2-steps-grid { grid-template-columns: 1fr; } }

/* ---------- услуги/фичи — построчный список на тёмном фоне ---------- */
/* 2-колоночная сетка (просьба Андрея 07.09.26, было построчным списком на всю ширину) —
   8 карточек = 4 строки по 2. Разделитель top-border теперь только у строк сетки начиная
   со 2-й строки (nth-child(n+3)), а не у каждого отдельного элемента — иначе на 2
   колонках линия шла бы между парой в одной визуальной строке, а не между строками. */
.v2-service-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; margin-top: 48px; }
.v2-service-row { display: flex; align-items: flex-start; gap: 20px; padding: 28px 0; border-top: 1px solid rgba(255,255,255,.08); }
.v2-service-row:nth-child(1), .v2-service-row:nth-child(2) { border-top: none; padding-top: 0; }
.v2-service-icon { flex: none; width: 56px; height: 56px; border-radius: 10px; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; }
.v2-service-icon svg { width: 26px; height: 26px; stroke: var(--v2-blue-headline); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.v2-service-body { flex: 1 1 auto; min-width: 0; }
.v2-service-body h3 { font-size: 18px; font-weight: 700; margin: 0 0 6px; color: #fff; }
.v2-service-body p { margin: 0; color: var(--v2-text-dark-bg-soft); font-size: 14.5px; max-width: 46ch; }
@media (max-width: 639px) { .v2-service-grid { grid-template-columns: 1fr; } .v2-service-row:nth-child(2) { border-top: 1px solid rgba(255,255,255,.08); padding-top: 28px; } }

/* ---------- результаты/наши экраны (замена чужих кейсов — подтверждено 06.09.26) ---------- */
.v2-results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.v2-result-card { }
.v2-device { border-radius: 12px; overflow: hidden; border: 1px solid var(--v2-line); box-shadow: 0 20px 50px rgba(0,0,0,.1); transition: transform .25s ease, box-shadow .25s ease; }
.v2-device:hover { transform: translateY(-4px); box-shadow: 0 28px 64px rgba(0,0,0,.16); }
.v2-device img { display: block; width: 100%; height: auto; }
.v2-result-card h3 { font-size: 18px; font-weight: 700; margin: 16px 0 4px; }
.v2-result-card h3::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--v2-blue-solid); margin-right: 8px; }
.v2-result-card p { margin: 0; color: var(--v2-text-light-bg-soft); font-size: 14.5px; }
@media (max-width: 959px) { .v2-results-grid { grid-template-columns: 1fr; } }

/* ---------- команда — плейсхолдер-сетка (НЕ реальные люди, подтверждено 06.09.26) ---------- */
.v2-team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--v2-line); border: 1px solid var(--v2-line); margin-top: 48px; }
.v2-team-tile { aspect-ratio: 1 / 1.05; background: #e9e9ea; display: flex; align-items: center; justify-content: center; }
.v2-team-tile span { font-size: 13px; color: var(--v2-text-light-bg-soft); text-align: center; padding: 0 12px; }
@media (max-width: 959px) { .v2-team-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- отзывы — плейсхолдер «рамка письма» (НЕ реальные отзывы, подтверждено 06.09.26) ---------- */
.v2-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.v2-testi-frame { aspect-ratio: 3/4; background: #1b1d1f; border: 10px solid #f2f2f0; border-radius: 2px; box-shadow: 0 16px 40px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; padding: 20px; }
.v2-testi-frame span { color: #9199a1; font-size: 13.5px; text-align: center; line-height: 1.5; }
@media (max-width: 959px) { .v2-testi-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ — аккордеон. Плюс-иконка сверена по точной разметке референса
   (T668__accordion в сайт.txt): по умолчанию белый кружок БЕЗ рамки + синие линии
   #67a0fb (акцентный светлый, не насыщенный #2c6ed9!), при hover кружок заливается
   тем же #67a0fb и линии становятся белыми — инверсия, а не просто поворот. Сам
   плюс/крестик у нас через transform:rotate(45deg) на CSS-based "+" (референс
   использует parametric SVG-переключение, эффект идентичный). ---------- */
.v2-faq-item { border-bottom: 1px solid var(--v2-line); }
.v2-faq-item summary { list-style: none; cursor: pointer; padding: 22px 4px; display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 600; transition: color .15s ease; }
.v2-faq-item summary:hover { color: var(--v2-blue-solid); }
.v2-faq-item summary::-webkit-details-marker { display: none; }
.v2-faq-item summary .v2-faq-plus { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--v2-blue-headline); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 400; transition: transform .15s ease, background-color .15s ease, color .15s ease; }
.v2-faq-item summary:hover .v2-faq-plus { background: var(--v2-blue-headline); color: #fff; }
.v2-faq-item[open] summary .v2-faq-plus { transform: rotate(45deg); }
.v2-faq-item p { margin: 0 0 22px; color: var(--v2-text-light-bg-soft); font-size: 15px; max-width: 68ch; }

/* ---------- footer (тёмный, 3 колонки) ---------- */
.v2-footer { background: var(--v2-dark); color: var(--v2-text-dark-bg-soft); padding: 64px 0 32px; font-size: 14.5px; }
.v2-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.v2-footer-grid h4 { color: #fff; font-size: 14px; margin: 0 0 16px; }
.v2-footer-grid a { display: block; color: var(--v2-text-dark-bg-soft); text-decoration: none; margin-bottom: 10px; }
.v2-footer-grid a:hover { color: #fff; }
.v2-footer-bottom { padding-top: 24px; text-align: center; }
@media (max-width: 760px) { .v2-footer-grid { grid-template-columns: 1fr; } }

/* ---------- мобильное меню-бургер — точная структура референса (T450 в сайт.txt):
   белая боковая панель шириной 260px, выезжает справа, затемняющий фон #333 opacity
   .7. Точных значений transition/timing в сохранённом файле нет (они в подключаемом
   tilda CSS, не попали в сохранённую страницу) — использована консистентная с
   остальным сайтом скорость (.25s ease), не выдумка с нуля, а осознанное решение
   там, где точных цифр референса нет. ---------- */
.v2-burger { display: none; flex: none; width: 32px; height: 22px; position: relative; background: none; border: none; cursor: pointer; padding: 0; }
.v2-burger span { position: absolute; left: 0; right: 0; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .25s ease, top .25s ease; }
.v2-burger span:nth-child(1) { top: 0; }
.v2-burger span:nth-child(2) { top: 10px; }
.v2-burger span:nth-child(3) { top: 20px; }
.v2-burger[aria-expanded="true"] span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.v2-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.v2-burger[aria-expanded="true"] span:nth-child(3) { top: 10px; transform: rotate(-45deg); }
@media (max-width: 959px) { .v2-header nav { display: none; } .v2-burger { display: block; } }

.v2-menu-overlay { position: fixed; inset: 0; background: #333333; opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 40; }
.v2-menu-overlay.is-open { opacity: .7; pointer-events: auto; }
.v2-menu-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 260px; max-width: 84vw; background: #fff; z-index: 41; transform: translateX(100%); transition: transform .28s ease; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0,0,0,.2); }
.v2-menu-panel.is-open { transform: translateX(0); }
.v2-menu-panel-top { display: flex; align-items: center; justify-content: space-between; padding: 20px; }
.v2-menu-panel-top .v2-brand { color: var(--v2-text-light-bg); font-weight: 700; font-size: 17px; text-decoration: none; }
.v2-menu-panel-top .v2-brand b { color: var(--v2-blue-solid); }
.v2-menu-close { width: 32px; height: 32px; border: none; background: none; cursor: pointer; position: relative; }
.v2-menu-close span { position: absolute; top: 50%; left: 4px; right: 4px; height: 2px; background: #333; }
.v2-menu-close span:nth-child(1) { transform: rotate(45deg); }
.v2-menu-close span:nth-child(2) { transform: rotate(-45deg); }
.v2-menu-panel nav { padding: 8px 20px; flex: 1 1 auto; }
.v2-menu-panel nav a { display: block; padding: 12px 0; color: var(--v2-text-light-bg); text-decoration: none; font-size: 16px; border-bottom: 1px solid var(--v2-line); }
.v2-menu-panel nav a:hover { color: var(--v2-blue-solid); }
.v2-menu-panel-bottom { padding: 20px; border-top: 1px solid var(--v2-line); }
.v2-menu-panel-bottom p { margin: 0 0 12px; font-size: 13.5px; color: var(--v2-text-light-bg-soft); }
.v2-menu-panel-bottom a { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--v2-blue-solid); text-decoration: none; }
@media (min-width: 960px) { .v2-menu-overlay, .v2-menu-panel { display: none; } }

/* ---------- заглушка [TODO] ---------- */
.v2-todo-badge { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #b45309; background: #fef3c7; border-radius: 4px; padding: 3px 8px; margin-bottom: 12px; }

@media (prefers-reduced-motion: reduce) { .v2 * { animation: none !important; transition: none !important; } }
