/* Штаб-квартира — модульные здания. Графит + оранжевый каркас + белый профлист. */
:root {
  --or: #EC6B1E; --or-d: #D2581A; --or-text: #B04A0C; --or-soft: #FCE9DC;
  --gr: #23272B; --gr-2: #2E3338; --dark: #1A1D20;
  --mut: #5A6066; --line: #DCDFDB; --soft: #F3F4F1; --bg: #FFFFFF; --glass: #9CC6DC;
  --f-display: "Russo One", "Arial Black", Arial, sans-serif;
  --f-body: "Onest", "Segoe UI", Arial, sans-serif;
  --wrap: 1200px; --r: 6px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--gr); font-family: var(--f-body); font-size: 17px; line-height: 1.6; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--or-text); text-underline-offset: 3px; }
a:hover { color: var(--gr); }
:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.15; letter-spacing: 0.005em; text-wrap: balance; margin: 0 0 0.5em; }
h1 { font-size: clamp(30px, 4.6vw, 56px); }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: 21px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--or-text); font-weight: 600; margin-bottom: 10px; display: block; }
.muted { color: var(--mut); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: var(--r); border: 2px solid transparent; font: 600 16px/1.2 var(--f-body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--or); color: var(--gr); }
.btn-primary:hover { background: #F28A4A; color: var(--gr); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: inherit; }
.btn-dark { background: var(--gr); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gr); flex: none; }
.logo svg { width: 34px; height: 34px; }
.logo b { font-family: var(--f-display); font-weight: 400; font-size: 18px; letter-spacing: 0.02em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--gr); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--or-text); }
.top-phone { font-weight: 700; color: var(--gr); text-decoration: none; white-space: nowrap; }
.top .btn { min-height: 42px; padding: 8px 16px; font-size: 15px; }
@media (max-width: 1180px) { .top-phone { display: none; } .nav { gap: 16px; } }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: var(--r); }
@media (max-width: 980px) {
  .nav, .top-phone, .top .btn { display: none; }
  .burger { display: inline-grid; place-items: center; }
  .top.open .nav { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 68px; background: #fff; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); gap: 14px; }
}

/* Подвал */
.foot { background: var(--dark); color: #C9CDD1; padding-block: 48px 32px; font-size: 15px; margin-top: 80px; }
.foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { font-family: var(--f-display); font-weight: 400; color: #fff; font-size: 16px; margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-bottom { border-top: 1px solid #33383D; margin-top: 32px; padding-top: 20px; font-size: 13px; color: #8E959C; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Главная ---------- */
.hero { background: var(--gr); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 64px 72px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--or); }
.hero p.lead { font-size: 19px; color: #D5D9DD; max-width: 560px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 32px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 560px; }
.hero-facts div { border-left: 3px solid var(--or); padding-left: 12px; }
.hero-facts b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 24px; color: #fff; }
.hero-facts span { font-size: 14px; color: #B9BFC5; }
.hero-art svg { width: 100%; height: auto; display: block; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 40px 48px; } .hero-art { order: -1; } }

.section { padding-block: 72px; }
.section.soft { background: var(--soft); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--mut); font-size: 18px; margin: 0; }

.solutions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sol { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; }
.sol-art { background: var(--soft); padding: 14px; border-bottom: 1px solid var(--line); }
.sol-art svg { display: block; width: 100%; height: auto; }
.sol-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sol-body h3 { margin: 0; font-size: 20px; }
.sol-body p { margin: 0; color: var(--mut); font-size: 15px; }
.sol-price { font-weight: 700; font-size: 18px; margin-top: auto; padding-top: 8px; }
.sol-links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
@media (max-width: 960px) { .solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .solutions { grid-template-columns: 1fr; } }

.konstruktor-frame { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.konstruktor-frame iframe { display: block; width: 100%; height: 760px; border: 0; }
.konstruktor-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 15px; }
@media (max-width: 860px) { .konstruktor-frame iframe { height: 1100px; } }

.adv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.adv-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
.adv-item svg { width: 44px; height: 44px; }
.adv-item h3 { font-size: 18px; margin: 4px 0 6px; }
.adv-item p { margin: 0; color: var(--mut); font-size: 15.5px; }
@media (max-width: 960px) { .adv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .adv { grid-template-columns: 1fr; } }

.process { counter-reset: st; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.process li { background: #fff; border-top: 4px solid var(--or); padding: 16px 14px; border-radius: 0 0 var(--r) var(--r); }
.process li::before { counter-increment: st; content: counter(st); font-family: var(--f-display); font-size: 28px; color: var(--or-text); display: block; }
.process b { display: block; margin: 6px 0 4px; }
.process span { font-size: 14.5px; color: var(--mut); }
@media (max-width: 1000px) { .process { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

.vs { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.vs th, .vs td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.vs thead th { font-family: var(--f-display); font-weight: 400; font-size: 16px; }
.vs .us { background: var(--or-soft); }

.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-family: var(--f-display); color: var(--or-text); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 10px 0 0; color: var(--mut); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--gr); background: #fff; transition: border-color .15s; }
.card:hover { border-color: var(--or); color: var(--gr); }
.card small { color: var(--or-text); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.card b { font-size: 18px; line-height: 1.3; }
.card span { color: var(--mut); font-size: 15px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.lead-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; background: var(--gr); color: #fff; border-radius: var(--r); padding: 40px; }
.lead-box h2 { color: #fff; }
.lead-box p { color: #C9CDD1; }
.contacts { display: grid; gap: 10px; margin-top: 20px; font-size: 17px; }
.contacts a { color: #fff; font-weight: 600; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: #C9CDD1; }
.form input, .form textarea, .form select { font: inherit; padding: 12px 14px; border-radius: var(--r); border: 1px solid #4A5056; background: #2E3338; color: #fff; min-height: 48px; }
.form textarea { min-height: 96px; resize: vertical; }
.form small { color: #9AA1A8; font-size: 13px; }
.form-ok { background: #2E3338; border-left: 4px solid var(--or); padding: 14px 16px; border-radius: var(--r); }
@media (max-width: 860px) { .lead-box { grid-template-columns: 1fr; padding: 28px 20px; } }

/* ---------- Статьи ---------- */
.crumbs { font-size: 14px; color: var(--mut); padding-top: 22px; }
.crumbs a { color: var(--mut); }
.article-head { padding-block: 18px 8px; max-width: 860px; }
.article-head h1 { font-size: clamp(28px, 3.6vw, 44px); }
.article-head .lead { font-size: 20px; color: #3A4046; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--mut); margin-top: 12px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 760px) 300px; gap: 56px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: 14.5px; border-left: 3px solid var(--line); padding-left: 16px; }
.toc b { font-family: var(--f-display); font-weight: 400; display: block; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.toc a { color: var(--gr); text-decoration: none; }
.toc a:hover, .toc a.on { color: var(--or-text); }
.toc .btn { margin-top: 18px; width: 100%; }
@media (max-width: 1060px) { .article-grid { grid-template-columns: minmax(0, 1fr); } .toc { position: static; border-left: 0; padding: 16px; background: var(--soft); border-radius: var(--r); order: -1; } }
.prose { min-width: 0; }
.prose h2 { margin-top: 1.8em; font-size: clamp(23px, 2.6vw, 30px); scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { max-width: 72ch; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--or-text); }
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: var(--r); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 520px; }
.table-wrap th { background: var(--soft); text-align: left; font-weight: 600; }
.table-wrap th, .table-wrap td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap tr:last-child td { border-bottom: 0; }

.fig { margin: 28px 0; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 14px; background: #fff; }
.fig-title { font-family: var(--f-display); font-size: 17px; margin-bottom: 12px; }
.fig-body { overflow-x: auto; }
.fig-body svg { display: block; width: 100%; min-width: 480px; height: auto; }
.fig figcaption { font-size: 14px; color: var(--mut); margin-top: 10px; }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pc-col { padding: 14px 16px; border-radius: var(--r); background: var(--soft); }
.pc-col b { display: block; margin-bottom: 6px; }
.pc-pro { border-top: 4px solid #3E8E63; }
.pc-con { border-top: 4px solid var(--or); }
.pc ul { margin: 0; padding-left: 18px; font-size: 15.5px; }
@media (max-width: 600px) { .pc { grid-template-columns: 1fr; } }

.note { margin: 24px 0; background: var(--soft); border-left: 4px solid var(--gr); padding: 14px 18px; border-radius: 0 var(--r) var(--r) 0; }
.note b { display: block; font-family: var(--f-display); font-weight: 400; margin-bottom: 4px; }
.note p { margin: 0; }
.note.warn { background: var(--or-soft); border-left-color: var(--or); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 24px 0; }
.fact { background: var(--gr); color: #fff; padding: 16px; border-radius: var(--r); }
.fact b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 26px; color: var(--or); line-height: 1.1; }
.fact span { font-size: 14px; color: #C9CDD1; }
.cta-inline { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 32px 0; padding: 22px 24px; border-radius: var(--r); background: var(--gr); color: #fff; }
.cta-inline b { font-family: var(--f-display); font-weight: 400; font-size: 20px; }
.cta-inline p { margin: 4px 0 0; color: #C9CDD1; font-size: 15.5px; }

.calc { margin: 28px 0; border: 2px solid var(--or); border-radius: var(--r); padding: 20px; }
.calc h4 { font-family: var(--f-display); font-weight: 400; font-size: 19px; margin: 0 0 14px; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.calc label { display: grid; gap: 4px; font-size: 14px; color: var(--mut); }
.calc input, .calc select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); min-height: 44px; background: #fff; color: var(--gr); }
.calc-out { background: var(--soft); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 6px; font-size: 15.5px; }
.calc-out b { font-size: 20px; }
.calc small { display: block; color: var(--mut); font-size: 13px; margin-top: 10px; }

.related { margin-top: 56px; }
.article-faq { margin-top: 40px; }

/* Список статей */
.rubrics { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; }
.rubric-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font: 500 15px var(--f-body); cursor: pointer; color: var(--gr); }
.rubric-btn[aria-pressed="true"] { background: var(--gr); color: #fff; border-color: var(--gr); }
.search { width: 100%; max-width: 520px; font: inherit; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); min-height: 48px; }
.rubric-block { margin-top: 40px; }
.rubric-block h2 { font-size: 26px; }
