/* dev-ops.ru — строгая светлая тема */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f5;
  --ink: #1b2126;
  --ink-2: #3a444c;
  --muted: #66727b;
  --line: #dde3e1;
  --accent: #1d6b4f;
  --accent-ink: #ffffff;
  --accent-soft: #e6f1ec;
  --warn-soft: #fff6dc;
  --radius: 10px;
  --max: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg);
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* плашка прототипа */
.proto { background: var(--warn-soft); color: #6a5300; font-size: 0.85rem; text-align: center; padding: 6px 16px; border-bottom: 1px solid #f0e2b0; }

/* шапка */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { font-weight: 800; letter-spacing: -0.02em; font-size: 1.15rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo i { display: inline-block; width: 48px; height: 32px; background: url(/img/logo-mark.png) center / contain no-repeat; }
.menu { display: flex; gap: 24px; align-items: center; font-size: 0.95rem; }
.menu a { color: var(--ink-2); text-decoration: none; }
.menu a:hover { color: var(--accent); }
@media (max-width: 760px) { .menu a:not(.btn) { display: none; } }

/* кнопки */
.btn { display: inline-block; padding: 11px 20px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 1px solid var(--accent); line-height: 1.2; }
.btn-solid { background: var(--accent); color: var(--accent-ink) !important; }
.btn-solid:hover { background: #17573f; }
.btn-line { color: var(--accent); background: transparent; }
.btn-line:hover { background: var(--accent-soft); }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* первый экран */
.hero { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; max-width: 860px; margin-bottom: 20px; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 700px; margin-bottom: 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.facts span { font-size: 0.9rem; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--bg-soft); }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

/* секции */
.sec { padding: 64px 0; }
.sec.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; margin-bottom: 12px; }
h3 { font-size: 1.1rem; line-height: 1.3; font-weight: 700; margin-bottom: 8px; }
.sub { color: var(--muted); max-width: 720px; margin-bottom: 32px; }
.sec p { max-width: 760px; }
.sec p + p { margin-top: 12px; }

/* сетки и карточки */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--bg); display: flex; flex-direction: column; }
.card p { color: var(--ink-2); font-size: 0.97rem; }
.card .more { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 0.95rem; }
.card .more-row { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-weight: 600; font-size: 0.95rem; }
.card.main { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 2px 8px; margin-bottom: 12px; align-self: flex-start; }
.tag.grey { color: var(--muted); background: var(--bg-soft); }

/* списки */
.ticks { list-style: none; display: grid; gap: 10px; max-width: 820px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.ticks.dash li::before { width: 10px; height: 0; border-left: 0; transform: none; top: 0.8em; }

/* таблица состава */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--bg-soft); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; width: 34%; }
@media (max-width: 600px) {
  thead { display: none; }
  tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  tr:last-child { border-bottom: 0; }
  td { display: block; border: 0; padding: 0; width: auto !important; }
  td + td { color: var(--ink-2); margin-top: 2px; }
}

/* этапы */
.steps { list-style: none; display: grid; gap: 0; counter-reset: s; max-width: 820px; }
.steps li { counter-increment: s; position: relative; padding: 0 0 26px 58px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps li::after { content: ""; position: absolute; left: 18px; top: 42px; bottom: 4px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps .when { font-size: 0.85rem; color: var(--muted); font-weight: 600; }

/* пакеты */
.pack h3 { font-size: 1.25rem; }
.pack .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }
.pack .price { font-weight: 700; margin: 18px 0 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.pack .ticks { font-size: 0.95rem; gap: 8px; }

/* вопросы */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 1.3rem; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--ink-2); }

/* контакт */
.cta { background: var(--ink); color: #fff; border-radius: 14px; padding: 44px; display: grid; gap: 18px; }
.cta h2 { color: #fff; }
.cta p { color: #c9d1cf; max-width: 640px; }
.cta .btn-solid { background: #fff; color: var(--ink) !important; border-color: #fff; }
.cta .btn-line { color: #fff; border-color: #6e7b78; }
@media (max-width: 600px) { .cta { padding: 28px 22px; } }

/* подвал */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 0.9rem; color: var(--muted); }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

/* пометка для непроверенного (только в прототипе) */
.todo { background: var(--warn-soft); border-radius: 3px; padding: 0 4px; font-size: 0.85em; color: #6a5300; }

/* ── Визуальный слой v2: иконки, «коротко», навигация по странице, схемы, хронология ── */
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.badge { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.card .badge + .tag { margin-top: -4px; }

/* Первый экран: тёмный вариант и полоса фактов */
.hero.dark { background: radial-gradient(1200px 400px at 85% -10%, #26584a 0%, transparent 60%), var(--ink); color: #fff; border-bottom: 0; padding-bottom: 72px; }
.hero.dark.lift { padding-bottom: 96px; }
.hero.dark .facts span { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #e2e9e7; }
.hero.dark h1 { color: #fff; }
.hero.dark .lead { color: #c9d4d1; }
.hero.dark .eyebrow { color: #7fd1b0; }
.hero.dark .crumbs, .hero.dark .crumbs a { color: #9fb0ac; }
.hero.dark .btn-solid { background: #fff; color: var(--ink) !important; border-color: #fff; }
.hero.dark .btn-line { color: #fff; border-color: #6e7b78; }
.hero.dark .btn-line:hover { background: rgba(255,255,255,.08); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; max-width: 900px; }
.stat { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); border-radius: 12px; padding: 14px 16px; }
.stat b { display: block; font-size: 1.4rem; letter-spacing: -.02em; }
.stat span { font-size: .85rem; color: #b5c3bf; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat b { font-size: 1.15rem; } }

/* «Коротко»: три карточки поверх первого экрана */
.inshort { margin-top: -56px; position: relative; z-index: 2; padding-bottom: 8px; }
.inshort .grid { grid-template-columns: repeat(3, 1fr); }
.inshort .card { box-shadow: 0 12px 32px rgba(27,33,38,.10); }
.inshort .lbl { display: flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.inshort .card p { color: var(--ink-2); }
@media (max-width: 860px) { .inshort .grid { grid-template-columns: 1fr; } .inshort { margin-top: -40px; } }

/* Навигация по разделам страницы */
.subnav { position: sticky; top: 64px; z-index: 9; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { white-space: nowrap; font-size: .86rem; font-weight: 600; color: var(--muted); padding: 6px 12px; border-radius: 99px; text-decoration: none; }
.subnav a:hover { background: var(--accent-soft); color: var(--accent); }
.subnav a.go { margin-left: auto; background: var(--accent); color: #fff; }
section[id] { scroll-margin-top: 130px; }

/* Схема «было → стало» / «требование → чем закрываем» */
.flow { display: grid; grid-template-columns: 1fr 48px 1fr; }
.flow-h { padding: 14px 18px; border-radius: 12px 12px 0 0; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.flow-h small { display: block; font-weight: 500; font-size: .8rem; opacity: .8; }
.flow-h.from { background: #e9edeb; color: var(--ink-2); }
.flow-h.to { background: var(--accent); color: #fff; }
.flow-c { padding: 12px 18px; border: 1px solid var(--line); border-top: 0; background: var(--bg); font-size: .95rem; }
.flow-c b { display: block; font-size: .96rem; }
.flow-c span { color: var(--muted); font-size: .86rem; }
.flow-c.from { background: #f7f8f8; }
.flow-c.from b { color: var(--ink-2); }
.flow-c.to { border-color: #b9d6ca; }
.flow-c.to b { color: #17573f; }
.flow-c.end { border-radius: 0 0 12px 12px; }
.flow-a { display: grid; place-items: center; color: var(--accent); }
.flow-a .ico { width: 24px; height: 24px; stroke-width: 2; }
@media (max-width: 720px) {
  .flow { grid-template-columns: 1fr 26px 1fr; }
  .flow-h { font-size: .86rem; padding: 10px; } .flow-h .ico { display: none; }
  .flow-c { padding: 10px; font-size: .84rem; } .flow-c span { display: none; }
  .flow-a .ico { width: 16px; height: 16px; }
}

/* Хронология «что изменилось» */
.tl { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.tl::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 2px; background: linear-gradient(90deg, var(--line), var(--accent)); }
.tl-i { position: relative; padding-top: 44px; }
.tl-dot { position: absolute; top: 0; left: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); color: var(--accent); display: grid; place-items: center; }
.tl-dot .ico { width: 16px; height: 16px; stroke-width: 2; }
.tl-i.law .tl-dot { border-color: #8a6d1c; color: #8a6d1c; }
.tl-i.now .tl-dot { background: var(--accent); color: #fff; }
.tl-when { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.tl-i.law .tl-when { color: #8a6d1c; }
.tl-i h3 { font-size: .98rem; margin: 4px 0 6px; }
.tl-i p { font-size: .86rem; color: var(--muted); }
.tl-i a { display: inline-block; margin-top: 8px; font-size: .84rem; font-weight: 600; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin: 0 0 22px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); margin-right: 6px; vertical-align: -1px; }
.legend i.law { border-color: #8a6d1c; }
.note { font-size: .82rem; color: var(--muted); margin-top: 22px; max-width: 900px; }
@media (max-width: 960px) {
  .tl { grid-template-columns: 1fr; gap: 0; padding-left: 46px; }
  .tl::before { left: 15px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--line), var(--accent)); }
  .tl-i { padding: 0 0 22px; }
  .tl-dot { left: -46px; }
}

/* Мобильная кнопка связи */
.mcta { display: none; }
@media (max-width: 760px) {
  .mcta { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; justify-content: center; padding: 14px; border-radius: 12px; background: var(--accent); color: #fff !important; font-weight: 700; text-decoration: none; box-shadow: 0 10px 30px rgba(27,33,38,.25); opacity: 0; transform: translateY(120%); transition: opacity .2s, transform .2s; pointer-events: none; }
  .mcta.show { opacity: 1; transform: none; pointer-events: auto; }
  .foot { padding-bottom: 90px; }
}

/* факты в карточке продукта */
.pfacts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 14px 0 0; font-size: .85rem; line-height: 1.45; }
.pfacts dt { color: var(--muted); }
.pfacts dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.card[id] { scroll-margin-top: 130px; }

/* справочник лицензий */
table.lic td:first-child { width: 18%; white-space: nowrap; }
table.lic td small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; white-space: normal; margin-top: 2px; }
table.lic td { font-size: .92rem; }
tr[id] { scroll-margin-top: 130px; }
@media (max-width: 600px) { table.lic td:first-child { white-space: normal; } table.lic td + td { margin-top: 8px; } }

/* таблица процессов ГОСТ (/how-we-work/) */
table.gost td:first-child { width: 22%; }
table.gost td:nth-child(2) { width: 13%; white-space: nowrap; }
table.gost td small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
table.gost td { font-size: .92rem; }
table.gost .tag { margin: 0; }
table.gost tr.grp td { background: var(--bg-soft); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); width: auto; padding: 10px 18px; }
.legend .tag { margin: 0 6px 0 0; }
@media (max-width: 600px) { table.gost td:nth-child(2) { white-space: normal; margin: 6px 0; } table.gost td + td { margin-top: 6px; } }

/* согласие на аналитику */
.cc { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,.12); padding: 16px 18px; display: flex; gap: 16px; align-items: center; font-size: .9rem; color: var(--ink-2); }
.cc p { margin: 0; }
.cc-btns { display: flex; gap: 8px; flex-shrink: 0; }
.cc .btn { cursor: pointer; font: inherit; font-weight: 600; }
@media (max-width: 640px) { .cc { flex-direction: column; align-items: stretch; } .cc-btns .btn { flex: 1; } }
.doc h2 { margin-top: 32px; }
.doc p, .doc li { max-width: 820px; }
.doc ol, .doc ul { padding-left: 22px; margin: 10px 0; }
.doc li { margin: 4px 0; }
