/* ============================================================
   ШУМА — B2B production company. Global stylesheet.
   Pure CSS3: variables, Flexbox, Grid. No frameworks.
   ============================================================ */

:root {
  --accent: #002e82;
  --accent-hover: #002265;
  --accent-light: #e8edf7;
  --accent-soft: #f4f7fc;

  --ink: #14181f;
  --ink-2: #3b4553;
  --muted: #6b7688;
  --line: #e4e8ef;
  --line-2: #eef1f6;
  --bg: #ffffff;
  --bg-2: #f7f9fc;

  --warn-bg: #fff7e0;
  --warn-border: #f0c94a;
  --warn-ink: #8a6400;
  --danger-bg: #fdecec;
  --danger-border: #e6a3a3;
  --danger-ink: #b32020;
  --ok-bg: #e9f7ee;
  --ok-border: #9fd8b3;
  --ok-ink: #1c7a3e;

  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 31, 0.06);
  --shadow: 0 6px 24px rgba(20, 24, 31, 0.08);
  --shadow-lg: 0 18px 48px rgba(0, 46, 130, 0.14);

  --container: 1200px;
  --header-h: 112px;

  --t: 0.2s ease;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--soft { background: var(--bg-2); }

.section-head { margin-bottom: 40px; max-width: 720px; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}
h1, h2, h3, h4 { line-height: 1.15; color: var(--ink); font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 4.4vw, 52px); }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: 20px; }
.lead { color: var(--ink-2); font-size: 18px; line-height: 1.6; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: #fff; color: var(--accent); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn--light { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--light:hover { background: rgba(255,255,255,0.22); }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.topbar {
  background: var(--accent);
  color: #dfe6f4;
  font-size: 13.5px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar__group { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar a { color: #fff; transition: opacity var(--t); }
.topbar a:hover { opacity: 0.8; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__ico { width: 14px; height: 14px; opacity: 0.85; }
.topbar__account {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border: 1px solid rgba(255,255,255,0.35);
  border-radius: 6px; font-weight: 600;
}
.topbar__account:hover { background: rgba(255,255,255,0.1); }

.header {
  position: sticky; top: 0; z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; min-height: 72px;
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 12px; }


.logo__mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--accent);    /* синий цвет линий (ваш фирменный) */
  /* фона и border-radius больше нет — квадрата не будет */
}

.logo__svg {
  width: 100%;
  height: 100%;
}

.logo-line {
  animation: logoFloat 2.4s ease-in-out infinite;
}
.logo-line--1 { animation-delay: 0s; }
.logo-line--2 { animation-delay: 0.35s; }

@keyframes logoFloat {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

/* текст логотипа (оставляем как было) */
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-weight: 900; font-size: 22px; letter-spacing: 0.12em; color: var(--accent); }
.logo__tag { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; margin-top: 4px; }
/* Nav / mega-menu */
.nav { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 14px; font-weight: 600; font-size: 15px; color: var(--ink-2);
  border-radius: 6px; transition: color var(--t), background var(--t);
}
.nav__link:hover, .nav__item:hover .nav__link { color: var(--accent); background: var(--accent-soft); }
.nav__link.is-active { color: var(--accent); }
.nav__caret { width: 12px; height: 12px; transition: transform var(--t); }
.nav__item:hover .nav__caret { transform: rotate(180deg); }

/* Mega dropdown */
.mega {
  position: absolute; left: 50%; top: calc(100% + 10px);
  transform: translateX(-50%) translateY(8px);
  width: min(880px, 88vw);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 26px; opacity: 0; visibility: hidden;
  transition: opacity var(--t), transform var(--t), visibility var(--t);
  z-index: 70;
}
.nav__item:hover .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mega__col h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 12px; font-weight: 700;
}
.mega__link { display: block; padding: 8px 10px; border-radius: 6px; color: var(--ink-2); font-size: 14.5px; transition: background var(--t), color var(--t); }
.mega__link:hover { background: var(--accent-soft); color: var(--accent); }
.mega__foot {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.mega__foot span { color: var(--muted); font-size: 14px; }

.header__actions { display: flex; align-items: center; gap: 10px; }

/* Burger */
.burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 8px; position: relative;
}
.burger span, .burger span::before, .burger span::after {
  content: ""; position: absolute; left: 11px; width: 22px; height: 2px;
  background: var(--accent); border-radius: 2px; transition: transform var(--t), opacity var(--t);
}
.burger span { top: 21px; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: translateY(7px) rotate(45deg); }
.burger.is-open span::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0 0 0 auto; width: min(360px, 86vw);
  background: #fff; z-index: 90; transform: translateX(100%);
  transition: transform 0.28s ease; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; padding: 20px; overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mobile-nav__close { width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 8px; font-size: 20px; color: var(--ink-2); }
.mobile-nav details { border-bottom: 1px solid var(--line-2); }
.mobile-nav summary { padding: 14px 4px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after { content: "+"; color: var(--accent); font-size: 20px; }
.mobile-nav details[open] summary::after { content: "\2212"; }
.mobile-nav details a { display: block; padding: 8px 12px; color: var(--ink-2); font-size: 15px; }
.mobile-nav__cta { margin-top: 18px; display: grid; gap: 10px; }
.overlay {
  position: fixed; inset: 0; background: rgba(10,16,30,0.5); z-index: 80;
  opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t);
}
.overlay.is-open { opacity: 1; visibility: visible; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero__inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px;
  align-items: center; padding: 68px 0 76px;
}
.hero__title { margin-bottom: 20px; }
.hero__title .accent { color: var(--accent); }
.hero__sub { max-width: 560px; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero__meta { display: flex; gap: 26px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.hero__meta strong { color: var(--ink); display: block; font-size: 15px; }
.hero__media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--accent-soft);
  border: 1px solid var(--line);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; left: 18px; bottom: 18px; background: #fff;
  border-radius: 10px; padding: 12px 16px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px; font-size: 14px;
}
.hero__badge b { color: var(--accent); font-size: 22px; }

/* Animated big counter strip in header of homepage */
.trust-strip {
  background: var(--accent); color: #fff; text-align: center; padding: 30px 0;
}
.trust-strip__num {
  font-size: clamp(46px, 8vw, 88px); font-weight: 900; letter-spacing: -0.02em; line-height: 1;
}
.trust-strip__label { font-size: clamp(15px, 2vw, 20px); font-weight: 600; margin-top: 8px; color: #cdd8f0; }

/* ============================================================
   STATS (Компания в цифрах)
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stats__cell {
  padding: 34px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats__cell:nth-child(4n) { border-right: none; }
/* Одинаковый размер всех цифр в блоке «Компания в цифрах» */
.stats__num {
  font-size: 46px !important;
  line-height: 1.1 !important;
  color: #053095 !important;
  font-weight: 800 !important;
}
.stats__label { color: var(--ink-2); margin-top: 8px; font-size: 15px; }

/* ============================================================
   B2B CONDITIONS
   ============================================================ */
.cond-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cond {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  background: #fff; transition: box-shadow var(--t), transform var(--t);
}
.cond:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.cond__ico {
  width: 44px; height: 44px; border-radius: 10px; background: var(--accent-light);
  display: grid; place-items: center; color: var(--accent); margin-bottom: 14px;
}
.cond h3 { font-size: 17px; margin-bottom: 6px; }
.cond p { color: var(--muted); font-size: 14.5px; }

/* ============================================================
   CATALOG FILTER
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-btn {
  padding: 10px 18px; border: 1.5px solid var(--line); background: #fff;
  border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--ink-2);
  transition: all var(--t);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; display: flex; flex-direction: column;
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--accent-light); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--accent-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card__tag { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.card__link {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 700; font-size: 14.5px;
}
.card__link svg { transition: transform var(--t); }
.card:hover .card__link svg { transform: translateX(4px); }
.is-hidden { display: none !important; }

/* ============================================================
   FORM (request / calc)
   ============================================================ */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.field .req { color: var(--danger-ink); }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
  font-size: 15px; color: var(--ink); background: #fff; transition: border-color var(--t), box-shadow var(--t);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light);
}
.textarea { resize: vertical; min-height: 100px; }
.input.err, .select.err, .textarea.err { border-color: var(--danger-border); }
.file-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px;
  border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--ink-2);
  font-weight: 600; font-size: 14.5px; width: 100%; justify-content: center; background: var(--bg-2);
  transition: border-color var(--t), color var(--t);
}
.file-btn:hover { border-color: var(--accent); color: var(--accent); }

.consent { display: flex; gap: 11px; align-items: flex-start; margin: 6px 0 4px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.consent label { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.consent a { color: var(--accent); text-decoration: underline; }
.field-error { color: var(--danger-ink); font-size: 13px; margin-top: 6px; display: none; }
.field-error.show { display: block; }

.alert { border-radius: var(--radius); padding: 14px 16px; font-size: 14.5px; font-weight: 600; margin-top: 16px; display: none; }
.alert.show { display: block; }
.alert--ok { background: var(--ok-bg); border: 1px solid var(--ok-border); color: var(--ok-ink); }
.alert--warn { background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-ink); }
.alert--danger { background: var(--danger-bg); border: 1px solid var(--danger-border); color: var(--danger-ink); }

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(10,16,30,0.55);
}
.modal.is-open { display: flex; }
.modal__box {
  background: #fff; border-radius: var(--radius-lg); width: min(560px, 100%);
  max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-lg);
}
.modal__head {
  padding: 22px 26px; border-bottom: 1px solid var(--line); display: flex;
  align-items: center; justify-content: space-between; position: sticky; top: 0; background: #fff;
}
.modal__head h3 { font-size: 20px; }
.modal__close { width: 38px; height: 38px; border: 1px solid var(--line); background: #fff; border-radius: 8px; font-size: 20px; color: var(--ink-2); }
.modal__body { padding: 24px 26px; }
.modal__summary {
  background: var(--accent-soft); border: 1px solid var(--accent-light); border-radius: var(--radius);
  padding: 14px 16px; font-size: 14px; margin-bottom: 18px; color: var(--ink-2);
}
.modal__summary b { color: var(--accent); }
/* ========== МОДАЛКА "РАССЧИТАТЬ СТОИМОСТЬ" — СИНИЙ ДИЗАЙН ========== */

/* Затемнение фона — тёмно-синее с размытием */
.modal {
  background: rgba(7, 24, 66, 0.6);
  backdrop-filter: blur(6px);
}

/* Карточка окна */
.modal__dialog,
.modal__content,
.modal-card {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
  border-radius: 20px;
  border: 1px solid #d9e4ff;
  box-shadow: 0 30px 80px rgba(7, 24, 66, 0.45);
  overflow: hidden;
}

/* Синяя градиентная полоса сверху */
.modal__dialog::before,
.modal__content::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, #0b2a6b, #1447c0, #3f7bff);
}

/* Заголовок */
.modal__title,
.modal h2,
.modal h3 {
  color: #0b2a6b;
  font-weight: 800;
}

/* Крестик закрытия */
.modal__close {
  color: #1447c0;
  background: #eef4ff;
  border-radius: 10px;
  transition: all .2s;
}
.modal__close:hover {
  background: #1447c0;
  color: #fff;
  transform: rotate(90deg);
}

/* Поля ввода */
.modal .input,
.modal .select,
.modal .textarea {
  background: #f7faff;
  border: 1.5px solid #d9e4ff;
  border-radius: 12px;
  color: #0b2a6b;
  transition: all .2s;
}
.modal .input:focus,
.modal .select:focus,
.modal .textarea:focus {
  background: #fff;
  border-color: #1447c0;
  box-shadow: 0 0 0 4px rgba(20, 71, 192, 0.12);
  outline: none;
}
.modal .input::placeholder,
.modal .textarea::placeholder {
  color: #9db1d9;
}

/* Подписи полей */
.modal label {
  color: #0b2a6b;
  font-weight: 600;
}
.modal .req { color: #ff5a5a; }

/* Кнопка "Загрузить макет" */
.modal .file-btn {
  border: 1.5px dashed #9db9f0;
  background: #f2f7ff;
  color: #1447c0;
  border-radius: 12px;
  transition: all .2s;
}
.modal .file-btn:hover {
  background: #e5efff;
  border-color: #1447c0;
}

/* Чекбокс согласия */
.modal input[type="checkbox"] {
  accent-color: #1447c0;
  width: 18px;
  height: 18px;
}

/* Главная кнопка */
.modal .btn--primary {
  background: linear-gradient(135deg, #0b2a6b 0%, #1447c0 60%, #2f6bff 100%);
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(20, 71, 192, 0.35);
  transition: all .25s;
}
.modal .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(20, 71, 192, 0.45);
  filter: brightness(1.08);
}
.modal .btn--primary:active {
  transform: translateY(0);
}

/* Зелёная плашка успеха */
.modal .alert--ok {
  background: #e9f9f0;
  border: 1px solid #bfe8d2;
  color: #177245;
  border-radius: 12px;
}

/* ============================================================
   CALCULATOR (services.html)
   ============================================================ */
.calc { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.calc__panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.calc__group { margin-bottom: 26px; }
.calc__group:last-child { margin-bottom: 0; }
.calc__legend { font-size: 15px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.calc__legend .step { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 12px; display: grid; place-items: center; font-weight: 700; }

.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.opt {
  position: relative; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; cursor: pointer; transition: all var(--t); display: flex;
  flex-direction: column; gap: 3px;
}
.opt:hover { border-color: var(--accent); }
.opt input { position: absolute; opacity: 0; }
.opt__name { font-weight: 700; font-size: 14.5px; }
.opt__meta { font-size: 12.5px; color: var(--muted); }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.opt:has(input:checked) .opt__name { color: var(--accent); }

.qty-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qty-input { width: 120px; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; }
.preset {
  padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 6px; background: #fff;
  font-weight: 600; font-size: 13.5px; color: var(--ink-2); transition: all var(--t);
}
.preset:hover, .preset.is-active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.qty-hint { font-size: 13px; color: var(--muted); margin-top: 8px; }

.toggle { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.toggle label { padding: 10px 18px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-2); transition: all var(--t); }
.toggle input { position: absolute; opacity: 0; }
.toggle label:has(input:checked) { background: var(--accent); color: #fff; }

/* Result sticky */
.calc__result { position: sticky; top: calc(var(--header-h) + 16px); }
.result-card { background: var(--accent); color: #fff; border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg); }
.result-card__price { font-size: 46px; font-weight: 900; letter-spacing: -0.02em; line-height: 1; }
.result-card__unit { color: #cdd8f0; font-size: 15px; margin-top: 6px; margin-bottom: 20px; }
.result-breakdown { border-top: 1px solid rgba(255,255,255,0.18); padding-top: 16px; display: grid; gap: 9px; }
.result-breakdown div { display: flex; justify-content: space-between; font-size: 14px; color: #dfe6f4; }
.result-breakdown div b { color: #fff; }
.result-card__date { margin-top: 16px; font-size: 14px; color: #cdd8f0; }
.result-card__date b { color: #fff; }
.result-card .btn { margin-top: 20px; }

.calc-note { margin-top: 12px; border-radius: var(--radius); padding: 12px 14px; font-size: 13.5px; font-weight: 600; }
.calc-note--warn { background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-ink); }
.calc-note--danger { background: var(--danger-bg); border: 1px solid var(--danger-border); color: var(--danger-ink); }

/* ============================================================
   GENERIC CONTENT (about, portfolio, contacts)
   ============================================================ */
.page-hero { background: var(--accent); color: #fff; padding: 56px 0; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #cdd8f0; max-width: 640px; margin-top: 12px; font-size: 18px; }
.crumbs { font-size: 13.5px; color: #b6c4e6; margin-bottom: 14px; }
.crumbs a:hover { color: #fff; }

.equip-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.equip-table th, .equip-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.equip-table th { background: var(--accent-soft); color: var(--accent); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.equip-table tr:last-child td { border-bottom: none; }
.equip-table td:first-child { font-weight: 700; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: st; }
.step-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; position: relative; }
.step-card__n { font-size: 34px; font-weight: 900; color: var(--accent-light); line-height: 1; }
.step-card h3 { margin: 8px 0 8px; font-size: 18px; }
.step-card p { color: var(--muted); font-size: 14.5px; }

.cases { display: grid; gap: 22px; }
.case {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff;
}
.case__media { background: var(--accent-soft); min-height: 260px; }
.case__media img { width: 100%; height: 100%; object-fit: cover; }
.case__body { padding: 30px; }
.case__row { margin-bottom: 16px; }
.case__row h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 5px; }
.case__row p { color: var(--ink-2); font-size: 15px; }
.case__result { display: flex; gap: 24px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line-2); }
.case__result div b { display: block; font-size: 26px; font-weight: 900; color: var(--accent); }
.case__result div span { font-size: 13px; color: var(--muted); }

.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.info-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.info-card h3 { margin-bottom: 14px; }
.info-list { display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; font-size: 15px; }
.info-list .k { color: var(--muted); min-width: 90px; }
.info-list .v { color: var(--ink); font-weight: 600; }
.map-embed { border: 0; width: 100%; height: 340px; border-radius: var(--radius-lg); }
.req-table td { padding: 9px 0; font-size: 14.5px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.req-table td:first-child { color: var(--muted); width: 42%; }
.req-table td:last-child { font-weight: 600; }

.prose { max-width: 800px; }
.prose h2 { margin: 32px 0 12px; font-size: 24px; }
.prose h3 { margin: 22px 0 8px; }
.prose p { color: var(--ink-2); margin-bottom: 12px; }
.prose ul.dot { list-style: disc; padding-left: 22px; margin-bottom: 14px; color: var(--ink-2); }
.prose ul.dot li { margin-bottom: 6px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--accent); color: #cdd8f0; padding-top: 56px; }
.footer a { color: #cdd8f0; transition: color var(--t); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.footer__brand .logo__name { color: #fff; }
.footer__brand p { margin-top: 14px; font-size: 14px; max-width: 280px; line-height: 1.6; }
.footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer__links { display: grid; gap: 10px; font-size: 14.5px; }
.footer__contacts { display: grid; gap: 12px; font-size: 14.5px; }
.footer__contacts b { color: #fff; display: block; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.14); padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px;
}
.footer__legal { max-width: 720px; line-height: 1.6; }
.footer__age { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 24px; padding: 0 8px; border: 1px solid rgba(255,255,255,0.4); border-radius: 5px; font-weight: 700; color: #fff; font-size: 13px; }
.footer__meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Portfolio case extras ---------- */
.case--reverse .case__media { order: 2; }
.tag-static { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.case__label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 4px; font-weight: 700; }
.case__stats { display: flex; gap: 26px; flex-wrap: wrap; padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--line-2); }
.case__stats div b { display: block; font-size: 24px; font-weight: 900; color: var(--accent); letter-spacing: -0.01em; }
.case__stats div span { font-size: 13px; color: var(--muted); }
.case__body h2 { margin-bottom: 16px; }

/* ---------- Contacts / requisites extras ---------- */
.contacts-grid { grid-template-columns: repeat(3, 1fr); }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; background: #fff; }
.contact-card h3 { margin-top: 4px; }
.map-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }
.requisites { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.note-muted { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 14px; }
.download-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; text-align: center; background: var(--accent-soft); position: sticky; top: calc(var(--header-h) + 16px); }
.download-card__ico { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 14px; background: var(--accent-light); color: var(--accent); display: grid; place-items: center; }
.download-card__ico svg { width: 26px; height: 26px; }
.download-card h3 { margin-bottom: 8px; }
.download-card p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 18px; }

/* ============================================================
   REVEAL animation on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .stats, .cond-grid { grid-template-columns: repeat(2, 1fr); }
  .stats__cell:nth-child(2n) { border-right: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr; }
  .calc__result { position: static; }
  .case { grid-template-columns: 1fr; }
  .case--reverse .case__media { order: 0; }
  .case__media { min-height: 220px; }
  .steps { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .request-wrap { grid-template-columns: 1fr !important; }
  .download-card { position: static; }
}
@media (max-width: 860px) {
  .nav, .header__actions .btn { display: none; }
  .burger { display: block; }
  .header__actions { gap: 0; }
}
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .container { padding: 0 16px; }
  .stats, .cond-grid, .cards { grid-template-columns: 1fr; }
  .stats__cell { border-right: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .topbar__group--left { gap: 14px; }
  .topbar { font-size: 12.5px; }
}

.file-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 2px dashed #1447c0;
  border-radius: 10px;
  color: #1447c0;
  cursor: pointer;
  font-weight: 600;
}
.file-btn:hover { background: #eef3ff; }
.file-name {
  display: block;
  font-size: 12px;
  color: #1447c0;
  margin-top: 6px;
}