/* Общие стили для четырёх страниц направления «Агентство»:
   /process/, /team/, /target/, /calculator/.
   Один файл на все четыре — страницы делят один и тот же каркас (шапка,
   хлебные крошки, герой, карточки, финальный CTA, подвал), поэтому копировать
   его в четыре файла бессмысленно.

   Токены --ink/--bone/--signal синхронизированы с public/production/_production.css,
   public/reels/_reels.css и src/index.css. Страницы только на русском. */
:root {
  --ink: #0A0A0A;
  --bone: #F5F1E8;
  --signal: #FFB020;
  --signal-700: #C97F0F;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 24px; }

/* ── NAV / FOOTER — тот же shell, что на /production/ и /reels/ ────────── */
nav.top { position: sticky; top: 0; z-index: 50; background: rgba(10,10,10,.85); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(245,241,232,.08); }
/* Ряд шапки — сетка, а не space-between: боковые колонки равны, поэтому
   средняя (вкладки направлений) стоит ровно по центру страницы. */
nav.top .row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; }
nav.top .row > * { min-width: 0; }
nav.top .row > a.brand { justify-self: start; }
nav.top .row > .nav-actions { justify-self: end; }
nav.top a.brand { display: flex; align-items: center; gap: 10px; color: var(--bone); text-decoration: none; }
nav.top a.brand img { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; }
nav.top a.brand span.name { font-family: 'Archivo Black', sans-serif; font-size: 15px; letter-spacing: -0.02em; }
nav.top .nav-actions { display: flex; gap: 8px; align-items: center; }
nav.top a.ghost { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid rgba(245,241,232,.2); color: rgba(245,241,232,.85); border-radius: 999px; text-decoration: none; font-family: 'Archivo Black', sans-serif; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; transition: all .2s; }
nav.top a.ghost:hover { border-color: var(--signal); color: var(--signal); }
nav.top .cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: var(--signal); color: var(--ink); border-radius: 999px; text-decoration: none; font-family: 'Archivo Black', sans-serif; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; transition: background .2s; }
nav.top .cta:hover { background: var(--signal-700); color: var(--bone); }
/* На узких экранах в шапке остаются логотип, обе вкладки направлений и одна
   кнопка. Словесный знак и второстепенные ссылки прячем — иначе строка
   переполняется и появляется горизонтальный скролл. */
@media (max-width: 560px) {
  nav.top a.ghost { display: none; }
  nav.top a.brand span.name { display: none; }
  nav.top .cta { padding: 9px 13px; font-size: 10px; }
}

/* Вкладки направлений в шапке — зеркалят Nav.jsx на главной и /production/. */
/* Вкладки направлений — без рамки, заливки и пилюли: активная отмечается
   только контрастом текста и подчёркиванием. У ссылки нет боковых паддингов,
   расстояние задаёт gap, поэтому left/right: 0 у ::after даёт подчёркивание
   ровно по ширине текста, а не по всей ячейке. */
nav.top .nav-tabs { display: flex; flex-wrap: nowrap; gap: 24px; align-items: center; justify-self: center; }
nav.top a.tab {
  position: relative; display: inline-flex; align-items: center;
  padding: 10px 0; border: 0; background: none; border-radius: 0;
  text-decoration: none; white-space: nowrap;
  font-family: 'Archivo Black', sans-serif; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(245,241,232,.6); transition: color .2s;
}
nav.top a.tab:hover { color: var(--signal); }
nav.top a.tab.is-on { color: var(--bone); }
nav.top a.tab.is-on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px;
  background: var(--signal); border-radius: 2px;
}
/* Без рамки вкладки это единственный индикатор клавиатурного фокуса. */
nav.top a.tab:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; border-radius: 3px; color: var(--bone); }
@media (max-width: 560px) {
  /* Вкладки по центру → весь запас справа съедают ссылки-действия.
     Поэтому ужимаем всё: сами вкладки, боковые отступы шапки и вордмарк. */
  nav.top .nav-tabs { gap: 12px; }
  nav.top a.tab { font-size: 10px; letter-spacing: 0; }
  nav.top a.brand span.name { display: none; }
}
/* Уже 360px: симметричные колонки не помещаются — правая группа шире логотипа
   и наезжала бы на вкладки. Отдаём вкладкам остаток и центрируем в нём. */
@media (max-width: 359px) {
  nav.top .row { grid-template-columns: auto 1fr auto; }
  nav.top .nav-tabs { gap: 10px; }
}

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: rgba(245,241,232,.55); margin-bottom: 28px; }
.crumbs a { color: rgba(245,241,232,.55); text-decoration: none; }
.crumbs a:hover { color: var(--signal); }
.crumbs span.now { color: var(--bone); }

footer.site { padding: 48px 0 64px; border-top: 1px solid rgba(245,241,232,.08); background: var(--ink); margin-top: 96px; }
footer.site .row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer.site .brand { display: flex; align-items: center; gap: 10px; color: var(--bone); text-decoration: none; }
footer.site .brand .badge { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; background: rgba(245,241,232,.05); color: var(--signal); border: 1px solid rgba(245,241,232,.12); border-radius: 6px; font-family: 'Archivo Black', sans-serif; font-size: 13px; }
footer.site .brand .name { font-family: 'Archivo Black', sans-serif; font-size: 14px; }
footer.site .right { color: rgba(245,241,232,.5); font-size: 13px; }
footer.site .right a { color: rgba(245,241,232,.78); text-decoration: underline; text-underline-offset: 3px; margin-left: 16px; }
footer.site .right a:hover { color: var(--signal); }

/* ── HERO ──────────────────────────────────────────────────────────────── */
header.page-hero { padding: 54px 0 34px; position: relative; overflow: hidden; }
header.page-hero::after {
  content: var(--ghost, ""); position: absolute; right: -4vw; top: 32%;
  font-family: 'Archivo Black', sans-serif; font-size: clamp(4rem, 12vw, 13rem); line-height: .8;
  color: rgba(245,241,232,.028); letter-spacing: -0.06em; pointer-events: none; user-select: none; white-space: nowrap;
}
header.page-hero .kicker { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--signal); display: block; margin-bottom: 14px; position: relative; z-index: 1; }
header.page-hero h1 { font-family: 'Archivo Black', sans-serif; font-size: clamp(1.95rem, 5.2vw, 4.4rem); line-height: .94; letter-spacing: -0.045em; text-transform: uppercase; max-width: 18ch; position: relative; z-index: 1; overflow-wrap: break-word; }
header.page-hero h1 em { font-style: normal; color: var(--signal); }
header.page-hero p.lede { font-family: 'Instrument Serif', Georgia, serif; font-size: clamp(1.1rem, 1.4vw, 1.35rem); line-height: 1.45; color: rgba(245,241,232,.75); max-width: 68ch; margin-top: 20px; font-style: italic; position: relative; z-index: 1; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; position: relative; z-index: 1; }
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid rgba(245,241,232,.16); border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245,241,232,.75); }
.hero-facts span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); flex: none; }
.hero-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; position: relative; z-index: 1; }

/* ── ОБЩИЙ БЛОК ───────────────────────────────────────────────────────── */
section.blk { padding: 76px 0 0; }
section.blk .kicker { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--signal); display: block; }
section.blk h2 { font-family: 'Archivo Black', sans-serif; font-size: clamp(1.55rem, 3.6vw, 3rem); line-height: .97; letter-spacing: -0.04em; text-transform: uppercase; max-width: 22ch; margin-top: 12px; overflow-wrap: break-word; }
section.blk h2 em { font-style: normal; color: var(--signal); }
section.blk p.sub { color: rgba(245,241,232,.72); margin-top: 18px; max-width: 66ch; font-size: 1.05rem; }
section.blk p.para { color: rgba(245,241,232,.72); margin-top: 16px; max-width: 66ch; font-size: 1rem; line-height: 1.65; }
section.blk p.para b { color: var(--bone); font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 34px; }
.card { padding: 24px 22px; border: 1px solid rgba(245,241,232,.09); border-radius: 16px; background: rgba(245,241,232,.02); display: flex; flex-direction: column; gap: 9px; transition: border-color .25s, transform .25s; }
.card:hover { border-color: rgba(255,176,32,.35); transform: translateY(-3px); }
.card strong { font-family: 'Archivo Black', sans-serif; font-size: .98rem; letter-spacing: -0.02em; text-transform: uppercase; }
.card span { color: rgba(245,241,232,.72); font-size: .95rem; line-height: 1.55; }
.card .num { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; color: rgba(245,241,232,.4); }

.deliver { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.deliver b { font-weight: 500; font-size: 12px; padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(245,241,232,.14); color: rgba(245,241,232,.82); background: rgba(245,241,232,.03); }
.deliver-label { display: block; margin-top: 30px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(245,241,232,.45); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 34px; counter-reset: st; }
.step { counter-increment: st; padding: 26px 24px; border: 1px solid rgba(245,241,232,.09); border-radius: 16px; background: linear-gradient(150deg, rgba(255,176,32,.05), rgba(245,241,232,.02)); display: flex; flex-direction: column; gap: 10px; transition: border-color .25s, transform .25s; }
.step:hover { border-color: rgba(255,176,32,.4); transform: translateY(-3px); }
.step::before { content: counter(st, decimal-leading-zero); font-family: 'Archivo Black', sans-serif; font-size: 1.9rem; color: var(--signal); line-height: 1; letter-spacing: -0.03em; }
.step strong { font-family: 'Archivo Black', sans-serif; font-size: 1rem; letter-spacing: -0.02em; text-transform: uppercase; }
.step span { color: rgba(245,241,232,.72); font-size: .96rem; line-height: 1.5; }

/* ── СРАВНЕНИЕ «хаос → система» (донор: Problem.jsx) ───────────────────── */
.compare { margin-top: 32px; border-top: 1px solid rgba(245,241,232,.14); }
.compare .cr { display: grid; grid-template-columns: 42px 1fr 30px 1fr; gap: 12px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid rgba(245,241,232,.14); }
.compare .n { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: rgba(245,241,232,.4); }
.compare .bad { color: rgba(245,241,232,.5); text-decoration: line-through; text-decoration-color: rgba(245,241,232,.3); font-size: 1rem; }
.compare .arr { font-family: 'JetBrains Mono', monospace; color: var(--signal); font-size: 13px; }
.compare .good { color: var(--bone); font-weight: 500; font-size: 1rem; }
@media (max-width: 640px) {
  .compare .cr { grid-template-columns: 34px 1fr; gap: 6px 10px; }
  .compare .arr { display: none; }
  .compare .good { grid-column: 2; }
}

/* ── ТАРИФНЫЕ КАРТОЧКИ (донор: Tariffs.jsx) ────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 34px; }
.plan { position: relative; padding: 28px 24px; border-radius: 20px; border: 1px solid rgba(245,241,232,.1); background: rgba(245,241,232,.02); display: flex; flex-direction: column; }
.plan.hot { border-color: rgba(255,176,32,.45); background: radial-gradient(120% 150% at 10% 0%, rgba(255,176,32,.14), rgba(245,241,232,.02) 60%); }
.plan .badge { position: absolute; top: 18px; right: 18px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .18em; padding: 5px 9px; border-radius: 6px; background: var(--signal); color: var(--ink); }
.plan .pname { font-family: 'Archivo Black', sans-serif; font-size: 2.4rem; line-height: 1; letter-spacing: -0.04em; }
.plan .pprice { margin-top: 10px; font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: .1em; color: var(--signal); }
.plan ul { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.plan li { display: flex; gap: 12px; color: rgba(245,241,232,.85); font-size: .97rem; }
.plan li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); flex: none; margin-top: .5em; }
.plan .pnote { margin-top: 20px; color: rgba(245,241,232,.6); font-size: .9rem; }

/* ── ТАБЛИЦА (цены, примеры расчёта) ───────────────────────────────────── */
.tablewrap { margin-top: 30px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid rgba(245,241,232,.1); border-radius: 16px; }
table.price { width: 100%; border-collapse: collapse; min-width: 560px; }
table.price caption { caption-side: top; text-align: left; padding: 16px 18px 0; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(245,241,232,.45); }
table.price th, table.price td { padding: 14px 18px; text-align: left; border-bottom: 1px solid rgba(245,241,232,.08); font-size: .95rem; }
table.price thead th { font-family: 'Archivo Black', sans-serif; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(245,241,232,.6); }
table.price tbody th { font-weight: 600; color: var(--bone); }
table.price td.num { font-family: 'JetBrains Mono', monospace; color: var(--signal); white-space: nowrap; }
table.price tbody tr:last-child th, table.price tbody tr:last-child td { border-bottom: 0; }

/* ── КОМАНДА ───────────────────────────────────────────────────────────── */
.crew { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 34px; }
.person { border: 1px solid rgba(245,241,232,.09); border-radius: 18px; overflow: hidden; background: rgba(245,241,232,.02); display: flex; flex-direction: column; transition: border-color .25s, transform .25s; }
.person:hover { border-color: rgba(255,176,32,.35); transform: translateY(-3px); }
.person .shot { position: relative; aspect-ratio: 3 / 4; background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 60%, #6b6b6b 100%); }
.person .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.person .role { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 10px; border-radius: 6px; background: var(--signal); color: var(--ink); font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.person .bio { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 8px; }
.person .pn { font-family: 'Archivo Black', sans-serif; font-size: 1.05rem; letter-spacing: -0.03em; text-transform: uppercase; line-height: 1.1; }
.person .bio p { color: rgba(245,241,232,.68); font-size: .92rem; line-height: 1.55; }

.manifesto { margin-top: 34px; padding: 34px 30px; border-radius: 22px; background: linear-gradient(135deg, var(--signal) 0%, var(--signal-700) 100%); color: var(--ink); }
.manifesto .m { font-family: 'Archivo Black', sans-serif; font-size: clamp(1.4rem, 3.4vw, 2.6rem); line-height: .96; letter-spacing: -0.04em; text-transform: uppercase; max-width: 20ch; overflow-wrap: break-word; }
.manifesto p { margin-top: 16px; max-width: 52ch; color: rgba(10,10,10,.78); font-size: 1rem; line-height: 1.6; }
.manifesto .mm { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(10,10,10,.6); }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq { margin-top: 30px; border-top: 1px solid rgba(245,241,232,.12); }
.faq details { border-bottom: 1px solid rgba(245,241,232,.12); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-family: 'Archivo Black', sans-serif; font-size: 1rem; letter-spacing: -0.02em; color: var(--bone); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; translate: 0 -50%; font-family: 'JetBrains Mono', monospace; font-size: 20px; color: var(--signal); }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--signal); }
.faq .a { padding: 0 40px 22px 0; color: rgba(245,241,232,.72); font-size: 1rem; line-height: 1.65; max-width: 72ch; }

/* ── ПЕРЕЛИНКОВКА ──────────────────────────────────────────────────────── */
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 30px; }
a.link-card { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px; border: 1px solid rgba(245,241,232,.1); border-radius: 16px; background: rgba(245,241,232,.02); text-decoration: none; color: inherit; transition: border-color .25s, transform .25s; }
a.link-card:hover { border-color: rgba(255,176,32,.45); transform: translateY(-3px); }
a.link-card strong { font-family: 'Archivo Black', sans-serif; font-size: .98rem; letter-spacing: -0.02em; text-transform: uppercase; }
a.link-card span { color: rgba(245,241,232,.68); font-size: .93rem; line-height: 1.5; }
a.link-card .go { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--signal); }

/* ── ФИНАЛЬНЫЙ CTA / КОНТАКТЫ ──────────────────────────────────────────── */
section.final { padding: 84px 0 24px; border-top: 1px solid rgba(245,241,232,.08); margin-top: 84px; }
.final-cta { padding: 44px 40px; border-radius: 22px; border: 1px solid rgba(255,176,32,.22); background: radial-gradient(120% 160% at 12% 0%, rgba(255,176,32,.14), rgba(245,241,232,.02) 58%); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.final-cta .t { font-family: 'Archivo Black', sans-serif; font-size: clamp(1.25rem, 2.4vw, 2rem); line-height: 1.05; letter-spacing: -0.035em; text-transform: uppercase; max-width: 22ch; overflow-wrap: break-word; }
.final-cta .t em { font-style: normal; color: var(--signal); }
.final-cta p { color: rgba(245,241,232,.7); margin-top: 12px; max-width: 46ch; }
.final-cta .acts { display: flex; gap: 12px; flex-wrap: wrap; }
.contacts { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .06em; color: rgba(245,241,232,.6); }
.contacts a { color: rgba(245,241,232,.85); text-decoration: none; border-bottom: 1px solid rgba(245,241,232,.2); padding-bottom: 2px; }
.contacts a:hover { color: var(--signal); border-color: var(--signal); }
.more-link { display: inline-block; margin-top: 28px; color: rgba(245,241,232,.6); font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid rgba(245,241,232,.2); padding-bottom: 2px; }
.more-link:hover { color: var(--signal); border-color: var(--signal); }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; background: var(--signal); color: var(--ink); border-radius: 999px; text-decoration: none; font-family: 'Archivo Black', sans-serif; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; transition: background .2s, transform .2s; }
.btn:hover { background: var(--signal-700); color: var(--bone); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: rgba(245,241,232,.9); border: 1px solid rgba(245,241,232,.22); }
.btn.ghost:hover { background: transparent; border-color: var(--signal); color: var(--signal); }
@media (max-width: 640px) { .final-cta { padding: 30px 22px; } .manifesto { padding: 26px 20px; } section.blk { padding: 60px 0 0; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
