/* ВольтЛиния — базовые стили. Тёмная инженерная эстетика. */
/* Шрифт Manrope — файлы лежат на нашем хостинге (без обращений к сторонним серверам) */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/assets/fonts/manrope-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/assets/fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #0b1524;
  --bg-2: #101c30;
  --bg-3: #16243b;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f3f5f8;
  --text-2: #b9c2d0;
  --text-3: #8391a6;
  --accent: #ffd400;
  --accent-2: #ffb800;
  --accent-ink: #0b1524;
  --ok: #4ade80;
  --radius: 14px;
  --radius-s: 8px;
  --container: 1180px;
  --font: "Manrope", "Inter", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 212, 0, 0.07), transparent 60%),
    radial-gradient(700px 400px at -10% 20%, rgba(80, 130, 255, 0.08), transparent 60%);
  background-attachment: fixed;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 4.6vw, 52px); }
h2 { font-size: clamp(24px, 3.2vw, 36px); }
h3 { font-size: clamp(19px, 2.2vw, 23px); }
h4 { font-size: 17px; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.35em; }
small, .muted { color: var(--text-3); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 720px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-tight { padding: clamp(32px, 5vw, 64px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 14px;
}
.center { text-align: center; }
.mt-1 { margin-top: 16px; } .mt-2 { margin-top: 32px; } .mt-3 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 10px; font-weight: 700; font-size: 16px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s;
  white-space: nowrap; font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); color: var(--accent-ink); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-wa { background: #25d366; color: #062b16; }
.btn-wa:hover { background: #1fbf5b; color: #062b16; }
.btn-lg { padding: 18px 30px; font-size: 17px; }
.btn-block { width: 100%; }

/* Шапка */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 21, 36, 0.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 46px; width: auto; display: block; }
.logo-footer img { height: 52px; }
@media (max-width: 600px) { .logo img { height: 34px; } .logo-footer img { height: 44px; } }
.nav { display: flex; gap: 18px; margin-left: 4px; }
.nav a { font-size: 15px; color: var(--text-2); font-weight: 600; padding: 6px 0; white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--accent); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header-cta .btn { padding: 11px 18px; font-size: 15px; }
.header-phone { font-weight: 700; font-size: 15px; white-space: nowrap; }
/* Широкие экраны: шапке даём контейнер пошире, чтобы уместить логотип, меню, телефон и кнопку */
@media (min-width: 1381px) { .header .container { max-width: 1340px; } }
@media (max-width: 1380px) and (min-width: 1101px) { .header-phone { display: none; } .nav { gap: 16px; } .nav a { font-size: 14px; } .logo img { height: 42px; } }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; color: var(--text); cursor: pointer; }
.burger svg { width: 22px; height: 22px; }
@media (max-width: 1100px) {
  .nav, .header-cta { display: none; }
  .burger { display: inline-flex; }
  .header.open .nav {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 72px;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 16px 20px 20px; margin: 0; gap: 4px;
  }
  .header.open .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .header.open .header-cta { display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; top: calc(72px + 388px); padding: 16px 20px 24px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
}

/* Hero */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: 15px; color: var(--text-3); }
.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; }
/* Первый экран: три реальных кейса вместо схемы щита (v2.17) */
.hero-cases { display: flex; flex-direction: column; gap: 12px; }
.hero-cases-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 2px; }
.hero-cases-head span { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.hero-cases-head a { font-size: 14px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.hero-cases-head a:hover { color: var(--accent); }
.hero-case { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; padding: 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: border-color .2s, transform .2s; }
.hero-case:hover { color: var(--text); border-color: rgba(255, 212, 0, 0.5); transform: translateY(-2px); }
.hero-case img { width: 150px; height: 112px; object-fit: cover; border-radius: 9px; display: block; background: var(--bg-3); }
.hero-case-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hero-case-body b { font-size: 18px; font-weight: 800; line-height: 1.2; }
.hero-case-meta { font-size: 13px; color: var(--text-2); line-height: 1.35; }
.hero-case-price { font-size: 19px; font-weight: 800; color: var(--accent); line-height: 1.2; }
.hero-case-price small { font-size: 12px; font-weight: 600; color: var(--text-3); margin-left: 4px; }
@media (max-width: 960px) {
  .hero-visual { margin-top: 8px; }
  .hero-case { grid-template-columns: 120px 1fr; }
  .hero-case img { width: 120px; height: 90px; }
}
@media (max-width: 480px) {
  .hero-case { grid-template-columns: 96px 1fr; gap: 12px; padding: 8px; }
  .hero-case img { width: 96px; height: 80px; }
  .hero-case-body b { font-size: 16px; }
  .hero-case-price { font-size: 17px; }
}


/* Факты/цифры */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
@media (max-width: 960px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.fact { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,0.02); }
.fact b { display: block; font-size: 30px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.fact span { color: var(--text-2); font-size: 15px; }

/* Карточки */
.card {
  padding: 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--line-2); }
a.card:hover { color: inherit; transform: translateY(-2px); border-color: rgba(255, 212, 0, 0.5); }
.card h3 { margin-top: 10px; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 44px; height: 44px; color: var(--accent); }
.card .price { color: var(--accent); font-weight: 800; font-size: 20px; margin-top: 12px; }
.card .more { color: var(--accent); font-weight: 700; font-size: 15px; margin-top: 14px; display: inline-block; }
.card-accent { border-color: rgba(255, 212, 0, 0.45); box-shadow: 0 0 0 1px rgba(255, 212, 0, 0.15) inset; }

/* Шаги */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 24px 22px 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-weight: 800; font-size: 14px; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 10px;
}
.step h3 { font-size: 18px; }
.step p { color: var(--text-2); font-size: 15px; margin: 0; }

/* Таблица цен */
.price-table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 16px; }
.price-table th, .price-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table th { color: var(--text-3); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; }
.price-table td strong { color: var(--accent); }
.price-table .sub { color: var(--text-3); font-size: 14px; display: block; }
@media (max-width: 640px) { .price-table { font-size: 15px; } .price-table th, .price-table td { padding: 12px 8px; } }

/* Чек-лист / преимущества */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; color: var(--text-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / contain no-repeat;
}
.checks li strong { color: var(--text); }

/* Сравнение / two-col */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.two-col-wide { grid-template-columns: 0.8fr 1.2fr; }
.steps-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .two-col, .two-col-wide { grid-template-columns: 1fr; gap: 28px; } .steps-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps-3 { grid-template-columns: 1fr; } }
/* Таблицы и схема не должны растягивать страницу */
@media (max-width: 640px) { .price-table { table-layout: fixed; } .price-table td:last-child, .price-table th:last-child { white-space: normal; } .price-table td, .price-table th { overflow-wrap: anywhere; } .breakdown li span:last-child { white-space: normal; } }
.scheme, .calc-result, .card { min-width: 0; }
.grid > * , .two-col > * { min-width: 0; }
.breakdown li span:first-child { overflow-wrap: anywhere; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0 20px; margin-bottom: 10px; background: rgba(255,255,255,0.02); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p, .faq details ul { color: var(--text-2); margin-bottom: 16px; }

/* Формы */
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 6px; font-weight: 600; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--bg-3);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23b9c2d0' d='M7 10l5 5 5-5z'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; background-size: 20px; padding-right: 36px; }
select option { background: var(--bg-3); color: var(--text); }
textarea { min-height: 96px; resize: vertical; }
.form-note { font-size: 13px; color: var(--text-3); }
.form-ok { display: none; padding: 20px; border: 1px solid rgba(74, 222, 128, 0.4); border-radius: var(--radius-s); color: var(--ok); }
.form.sent .form-ok { display: block; }
.form.sent .form-body { display: none; }
.form-fallback { display: none; padding: 20px; border: 1px solid rgba(255, 212, 0, 0.45); border-radius: var(--radius-s); color: var(--text); }
.form.sent-fallback .form-fallback { display: block; }
.form.sent-fallback .form-body { display: none; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* Панель заявки (лид-блок) */
.lead-block { border: 1px solid rgba(255, 212, 0, 0.35); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); background: linear-gradient(135deg, rgba(255,212,0,0.07), rgba(255,255,255,0.02)); }
.lead-block h2 { margin-bottom: 8px; }

/* Калькулятор */
.calc { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; }
@media (max-width: 960px) { .calc { grid-template-columns: 1fr; } }
.calc-result { position: sticky; top: 90px; padding: 26px; border: 1px solid rgba(255,212,0,0.4); border-radius: var(--radius); background: var(--bg-2); }
.calc-result .total { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--accent); line-height: 1.1; margin: 6px 0 4px; }
.calc-result .breakdown { list-style: none; padding: 0; margin: 16px 0; font-size: 15px; color: var(--text-2); }
.calc-result .breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.calc-result .breakdown li span:last-child { color: var(--text); white-space: nowrap; }
.range { display: flex; align-items: center; gap: 14px; }
.range input[type=range] { padding: 0; border: none; background: transparent; accent-color: var(--accent); }
.range output { min-width: 72px; text-align: right; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span { display: inline-block; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 15px; cursor: pointer; color: var(--text-2); }
.chip input:checked + span { border-color: var(--accent); color: var(--accent); background: rgba(255,212,0,0.08); }

/* Портфолио */
.case { display: grid; grid-template-rows: auto 1fr; overflow: hidden; padding: 0; }
.case .photo { aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--bg-3), var(--bg-2)); display: grid; place-items: center; color: var(--text-3); font-size: 14px; border-bottom: 1px solid var(--line); position: relative; }
.case .photo::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 28px 28px; }
.case .photo:has(img)::after { display: none; }
.case .photo { overflow: hidden; }
.case .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
a.case { text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
a.case:hover { border-color: rgba(255,212,0,0.45); transform: translateY(-2px); }

/* Галерея объекта */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: var(--bg-2); }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.gallery figcaption { padding: 10px 12px; font-size: 13px; color: var(--text-3); }
.media { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.media img { width: 100%; height: auto; display: block; }
.media figcaption { padding: 12px 16px; font-size: 14px; color: var(--text-3); margin: 0; }
/* v2.19: фото с объектов */
.media-43 img { aspect-ratio: 4 / 3; object-fit: cover; }
.article-media { margin: 28px 0; }
.article-media img { aspect-ratio: auto; }

figure.media { margin: 0; }
.case .body { padding: 22px; }
.case .meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--text-3); margin-bottom: 10px; }
.case .meta b { color: var(--text); font-weight: 600; }
.placeholder { border: 1px dashed rgba(255,212,0,0.5); color: var(--accent); padding: 6px 10px; border-radius: 6px; font-size: 13px; display: inline-block; }

/* Схема трасс */
.scheme { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--bg-2); }
.scheme svg { width: 100%; height: auto; }
.scheme-img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--line); }
.scheme-caption { margin: 14px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--text-2); margin-top: 12px; }
.legend i { display: inline-block; width: 22px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 8px; }

/* Хлебные крошки, статьи */
.crumbs { font-size: 14px; color: var(--text-3); margin-bottom: 18px; }
.crumbs a { color: var(--text-2); }
.crumbs span { margin: 0 8px; }
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); }
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose blockquote { margin: 1.4em 0; padding: 16px 20px; border-left: 3px solid var(--accent); background: rgba(255,212,0,0.05); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.article-meta { color: var(--text-3); font-size: 14px; margin-bottom: 24px; }

/* Подвал */
.footer { border-top: 1px solid var(--line); padding: 48px 0 28px; background: #08101c; color: var(--text-2); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: var(--text); margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Плавающий WhatsApp */
/* Плавающие контакты: на десктопе — круглая кнопка WhatsApp, на телефоне — нижняя панель WhatsApp + Позвонить.
   Панель занимает свою полосу (body padding-bottom), поэтому ничего не перекрывает. */
.float-cta { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; gap: 10px; transition: opacity .25s, transform .25s; }
.float-cta.is-hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }
.float-wa { width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,0.4); color: #fff; }
.float-wa svg { width: 28px; height: 28px; fill: #fff; }
.float-wa span, .float-call { display: none; }
.float-wa:hover { background: #1fbf5b; }
@media (max-width: 640px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .float-cta { left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); background: rgba(11,21,36,0.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line-2); }
  .float-cta.is-hidden { opacity: 1; pointer-events: auto; transform: none; }
  .float-wa, .float-call { display: flex; align-items: center; justify-content: center; gap: 8px; width: auto; height: 46px; border-radius: 12px; font-weight: 700; font-size: 15px; box-shadow: none; }
  .float-wa svg { width: 22px; height: 22px; }
  .float-wa span { display: inline; }
  .float-call { background: var(--accent); color: var(--accent-ink); }
  .float-call svg { width: 20px; height: 20px; fill: currentColor; }
  .header.open .float-cta { display: none; }
}

/* Утилиты */
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(255,212,0,0.12); color: var(--accent); }
.divider { height: 1px; background: var(--line); margin: 32px 0; }
.note { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-s); color: var(--text-2); font-size: 15px; background: rgba(255,255,255,0.02); }
.note strong { color: var(--text); }
.cols-list { columns: 2; column-gap: 32px; }
@media (max-width: 640px) { .cols-list { columns: 1; } }

/* Текстовые ссылки внутри контента — видимые */
main p > a:not(.btn):not(.card),
main li > a:not(.btn):not(.card) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 212, 0, .45);
}
main p > a:not(.btn):not(.card):hover,
main li > a:not(.btn):not(.card):hover {
  text-decoration-color: var(--accent);
}

/* Статьи: таблицы, короткие ответы, призыв внутри текста */
.prose .table-wrap { overflow-x: auto; margin: 12px 0 24px; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.prose th, .prose td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--text-2); }
.prose th { color: var(--text-3); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.prose td strong { color: var(--text); }
.prose td:first-child { color: var(--text); font-weight: 600; }
.prose .faq { margin-top: 12px; }
.prose .faq details p { color: var(--text-2); }
.prose .article-cta { margin: 32px 0; padding: 24px 26px; border: 1px solid rgba(255, 212, 0, 0.35); border-radius: var(--radius); background: linear-gradient(135deg, rgba(255,212,0,0.07), rgba(255,255,255,0.02)); }
.prose .article-cta h3 { margin-top: 0; }
.prose .article-cta p:last-child { margin-bottom: 0; }
.prose .article-cta .btn { margin-right: 10px; margin-bottom: 8px; }
.prose .source { font-size: 14px; color: var(--text-3); }
@media (max-width: 640px) { .prose .article-cta { padding: 20px 18px; } }
@media (max-width: 640px) {
  .prose .table-wrap { overflow: visible; }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; min-width: 0; width: 100%; }
  .prose thead { display: none; }
  .prose tr { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; margin-bottom: 10px; background: rgba(255,255,255,0.02); }
  .prose td { border: 0; padding: 5px 0; }
  .prose td::before { content: attr(data-label); display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin-bottom: 2px; }
  .prose td[data-label=""]::before { display: none; }
  .prose td:first-child { font-size: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  .prose td:first-child::before { display: none; }
}

/* Согласие на обработку персональных данных в форме */
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 14px; font-weight: 400; color: var(--text-2); line-height: 1.45; cursor: pointer; }
.consent input[type=checkbox] { flex: none; width: 20px; height: 20px; margin: 1px 0 0; padding: 0; accent-color: var(--accent); cursor: pointer; }
.consent a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.consent a:hover { color: var(--accent); }
.consent.is-error { color: #ff8f8f; }
.consent.is-error input[type=checkbox] { outline: 2px solid #ff6b6b; outline-offset: 2px; }

/* Уведомление о cookie */
.cookie-banner { position: fixed; left: 24px; bottom: 24px; z-index: 70; width: min(440px, calc(100vw - 48px)); padding: 18px 20px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); box-shadow: var(--shadow); font-size: 14px; line-height: 1.5; color: var(--text-2); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 14px; }
.cookie-banner a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner a:hover { color: var(--accent); }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie-actions .btn { padding: 11px 14px; font-size: 15px; }
@media (max-width: 640px) {
  .cookie-banner { left: 12px; right: 12px; width: auto; bottom: calc(76px + env(safe-area-inset-bottom)); padding: 14px 16px; }
}

/* Правовые ссылки и документы */
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a, .legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal code { font-size: 0.92em; color: var(--text); }

/* ---- Проект на просчёт: баннер и модальное окно с загрузкой файлов (v2.21) ---- */
.project-cta { border: 1px solid rgba(255, 212, 0, 0.45); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); background: linear-gradient(120deg, rgba(255,212,0,0.12), rgba(255,255,255,0.02) 60%); display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 32px; align-items: center; }
.project-cta h2 { margin-bottom: 10px; }
.project-cta .lead { margin-bottom: 0; }
.project-cta-side { display: grid; gap: 12px; justify-items: stretch; }
.project-cta-side .btn { justify-content: center; }
.project-cta-formats { font-size: 13px; color: var(--text-3); text-align: center; line-height: 1.5; }
.project-cta-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.project-cta-steps li { position: relative; padding: 12px 14px 12px 44px; border: 1px solid var(--line); border-radius: var(--radius-s); background: rgba(255,255,255,0.02); font-size: 14px; color: var(--text-2); line-height: 1.4; }
.project-cta-steps li strong { display: block; color: var(--text); font-size: 15px; }
.project-cta-steps li::before { content: counter(pcs); counter-increment: pcs; position: absolute; left: 12px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.project-cta-steps { counter-reset: pcs; }
@media (max-width: 960px) {
  .project-cta { grid-template-columns: 1fr; gap: 20px; }
  .project-cta-steps { grid-template-columns: 1fr; gap: 10px; }
}
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 10, 20, 0.78); backdrop-filter: blur(3px); }
.modal-card { position: relative; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.modal-card h3 { font-size: clamp(20px, 2.6vw, 26px); line-height: 1.2; margin: 6px 0 10px; }
.modal-lead { color: var(--text-2); margin: 0 0 18px; font-size: 15px; line-height: 1.55; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg-3); color: var(--text-2); font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.modal-close:hover { color: var(--accent); border-color: var(--accent); }
body.modal-open { overflow: hidden; }
.file-drop { display: grid; justify-items: center; gap: 6px; padding: 24px 16px; border: 1.5px dashed var(--line-2); border-radius: var(--radius-s); background: rgba(255,255,255,0.02); text-align: center; cursor: pointer; color: var(--text-2); font-weight: 400; margin: 0; transition: border-color .15s, background .15s; }
.file-drop:hover, .file-drop.is-over, .file-drop:focus-within { border-color: var(--accent); background: rgba(255,212,0,0.06); }
.file-drop.is-error { border-color: #ff6b6b; }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-drop svg { width: 32px; height: 32px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.file-drop-title { font-weight: 700; color: var(--text); font-size: 16px; }
.file-drop-note { font-size: 13px; color: var(--text-3); line-height: 1.45; }
.file-drop.has-files { padding: 14px 16px; }
.file-drop.has-files .file-drop-title::after { content: ' — добавить ещё'; font-weight: 400; color: var(--text-3); }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.file-list:empty { display: none; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--bg-3); font-size: 14px; }
.file-list .file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.file-list .file-size { color: var(--text-3); font-size: 13px; flex: none; }
.file-list .file-remove { flex: none; width: 28px; height: 28px; border: none; border-radius: 50%; background: transparent; color: var(--text-3); font-size: 20px; line-height: 1; cursor: pointer; }
.file-list .file-remove:hover { color: #ff8f8f; background: rgba(255,107,107,0.12); }
.form-error { margin: 0; padding: 10px 14px; border: 1px solid rgba(255, 107, 107, 0.5); border-radius: var(--radius-s); color: #ff9f9f; font-size: 14px; line-height: 1.45; }
.form-error[hidden] { display: none; }
.form-error a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.req { color: var(--accent); }
@media (max-width: 640px) {
  .modal { padding: 0; align-items: end; }
  .modal-card { width: 100%; max-height: 100vh; max-height: 100dvh; border-radius: var(--radius) var(--radius) 0 0; padding: 22px 16px calc(24px + env(safe-area-inset-bottom)); }
  .file-drop { padding: 18px 12px; }
}
