/* ===== SELF-HOSTED FONTS (P3) — Oswald + PT Sans, кириллица и латиница ===== */
@font-face { font-family:'Oswald'; font-style:normal; font-weight:400; font-display:swap; src:url('fonts/Oswald-400-cyrillic.woff2') format('woff2'); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'Oswald'; font-style:normal; font-weight:400; font-display:swap; src:url('fonts/Oswald-400-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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Oswald'; font-style:normal; font-weight:500; font-display:swap; src:url('fonts/Oswald-500-cyrillic.woff2') format('woff2'); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'Oswald'; font-style:normal; font-weight:500; font-display:swap; src:url('fonts/Oswald-500-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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Oswald'; font-style:normal; font-weight:600; font-display:swap; src:url('fonts/Oswald-600-cyrillic.woff2') format('woff2'); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'Oswald'; font-style:normal; font-weight:600; font-display:swap; src:url('fonts/Oswald-600-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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Oswald'; font-style:normal; font-weight:700; font-display:swap; src:url('fonts/Oswald-700-cyrillic.woff2') format('woff2'); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'Oswald'; font-style:normal; font-weight:700; font-display:swap; src:url('fonts/Oswald-700-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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'PT Sans'; font-style:normal; font-weight:400; font-display:swap; src:url('fonts/PTSans-400-cyrillic.woff2') format('woff2'); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'PT Sans'; font-style:normal; font-weight:400; font-display:swap; src:url('fonts/PTSans-400-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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'PT Sans'; font-style:normal; font-weight:700; font-display:swap; src:url('fonts/PTSans-700-cyrillic.woff2') format('woff2'); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'PT Sans'; font-style:normal; font-weight:700; font-display:swap; src:url('fonts/PTSans-700-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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'PT Sans', sans-serif;
  background: #f4f6f8;
  color: #1e2a38;
  font-size: 16px;
  line-height: 1.6;
}

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #c0392b;
  --primary-dark: #962d22;
  --primary-light: #e74c3c;
  --steel: #1e2a38;
  --steel-mid: #2d3f52;
  --steel-light: #4a6278;
  --accent: #f39c12;
  --bg: #f4f6f8;
  --bg-card: #ffffff;
  --border: #d5dde5;
  --text: #1e2a38;
  --text-muted: #51606e;
  --success: #27ae60;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.14);
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--steel);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.site-header .container {
  display: flex;
  align-items: stretch;
  min-height: 58px;
  gap: 0;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  padding: 0 20px 0 0;
  white-space: nowrap;
}
.logo-icon {
  font-size: 26px;
  color: var(--primary-light);
}
.logo-text {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-left: auto;
}
.nav-home {
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.nav-home:hover { background: var(--steel-mid); }

/* Dropdown */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: stretch;
}
.nav-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: 'PT Sans', sans-serif;
  letter-spacing: 0.5px;
  cursor: pointer;
  padding: 0 18px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
}
.nav-toggle:hover, .nav-dropdown:hover .nav-toggle {
  background: var(--primary);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--steel-mid);
  min-width: 220px;
  border-top: 3px solid var(--primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #e0e8f0;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-menu a:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--steel) 0%, var(--steel-mid) 100%);
  color: #fff;
  padding: 40px 0 36px;
  border-bottom: 4px solid var(--primary);
}
.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.hero p {
  color: #b0c0d0;
  font-size: 16px;
}

/* ===== CATALOG GRID ===== */
.main-content { padding: 36px 20px 60px; }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.catalog-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 20px;
  text-decoration: none;
  color: var(--steel);
  gap: 14px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.catalog-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  color: var(--primary-dark);
}
.card-icon {
  width: 64px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel-light);
}
.catalog-card:hover .card-icon { color: var(--primary); }
.card-icon svg { width: 100%; height: 100%; }
.catalog-card span {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* ===== ABOUT SECTION ===== */
.about-section { margin-top: 20px; }
.about-section h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--steel);
  margin-bottom: 14px;
  border-left: 4px solid var(--primary);
  padding-left: 14px;
  text-transform: uppercase;
}
.about-section h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  color: var(--steel);
  margin: 24px 0 12px;
  text-transform: uppercase;
}
.about-section p { color: var(--text); margin-bottom: 12px; }
.about-section ul {
  margin: 0 0 20px 20px;
}
.about-section ul li { margin-bottom: 8px; }

/* Advantages */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--success);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14px;
}
.adv-icon {
  color: var(--success);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.step-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-num {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.step-item p { font-size: 14px; color: var(--text-muted); }

/* ===== ГЛАВНАЯ: hero-оффер + чипы доверия ===== */
.hero .hero__offer { color: #cdd8e2; font-size: 17px; line-height: 1.5; max-width: 680px; margin-top: 6px; }
.hero__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.hero__chips li {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  color: #e0e8f0; font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: 0.3px; text-transform: uppercase; padding: 6px 13px; border-radius: 999px;
}

/* ===== ГЛАВНАЯ: эйброу + название на карточке каталога ===== */
.catalog-card .catalog-card__label { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.catalog-card .catalog-card__eyebrow {
  font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 1px;
  text-transform: uppercase; color: var(--steel-light);
}
.catalog-card:hover .catalog-card__eyebrow { color: var(--primary); }
.catalog-card .catalog-card__name {
  font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 600; letter-spacing: 0.3px;
  text-transform: uppercase; text-align: center; line-height: 1.15;
}

/* ===== ГЛАВНАЯ: общие блоки ===== */
.home-block { margin-top: 48px; }
.home-block__title {
  font-family: 'Oswald', sans-serif; font-size: 26px; font-weight: 700; color: var(--steel);
  text-transform: uppercase; border-left: 4px solid var(--primary); padding-left: 14px; margin-bottom: 18px;
}
.home-block__lead { color: var(--text-muted); margin: -6px 0 18px; max-width: 760px; }

/* Почему — плитки выгод */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.why-card {
  background: var(--bg-card); border: 1px solid var(--border); border-top: 3px solid var(--primary);
  border-radius: var(--radius); padding: 18px 18px 16px;
}
.why-card h3 { font-family: 'Oswald', sans-serif; font-size: 16px; text-transform: uppercase; color: var(--steel); margin-bottom: 6px; }
.why-card p { font-size: 14px; color: var(--text-muted); }

/* Кому полезен — карточки аудиторий */
.audience-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.audience-card {
  background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--steel-light);
  border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column;
}
.audience-card h3 { font-family: 'Oswald', sans-serif; font-size: 16px; text-transform: uppercase; color: var(--steel); margin-bottom: 6px; }
.audience-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; flex: 1; }
.audience-card a { font-weight: 700; color: var(--primary); font-size: 14px; text-decoration: none; }
.audience-card a:hover { text-decoration: underline; }

/* Финальный призыв */
.final-cta {
  margin-top: 48px; text-align: center; color: #fff; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--steel) 0%, var(--steel-mid) 100%);
  border-bottom: 4px solid var(--primary); padding: 30px 24px;
}
.final-cta h2 { font-family: 'Oswald', sans-serif; font-size: 22px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.final-cta p { color: #b0c0d0; max-width: 620px; margin: 0 auto 18px; }
.final-cta .cta-btn {
  display: inline-block; background: var(--primary); color: #fff; text-decoration: none;
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: 0.4px;
  padding: 13px 30px; border-radius: var(--radius); transition: background 0.2s, transform 0.1s;
}
.final-cta .cta-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.final-cta .cta-links { margin-top: 14px; font-size: 14px; }
.final-cta .cta-links a { color: #e0e8f0; text-decoration: underline; margin: 0 9px; }
.final-cta .cta-links a:hover { color: #fff; }

/* ===== CALCULATOR PAGE ===== */
.page-hero {
  background: linear-gradient(135deg, var(--steel) 0%, var(--steel-mid) 100%);
  color: #fff;
  padding: 32px 0 28px;
  border-bottom: 4px solid var(--primary);
}
.page-hero .container { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.page-hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.breadcrumb {
  font-size: 13px;
  color: #8090a0;
  margin-bottom: 6px;
}
.breadcrumb a { color: #8090a0; text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.page-hero__lead {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.82);
}
@media(max-width: 680px) { .page-hero__lead { font-size: 14px; } }

/* Вводный текстовый блок (между .page-hero и калькулятором) */
.calc-intro {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.calc-intro__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px;           /* боковые 20px — в одну линию с калькулятором */
  font-size: 15px;
  line-height: 1.7;
  color: #2b3742;
}
.calc-intro__inner p { margin-bottom: 12px; }
.calc-intro__inner p:last-child { margin-bottom: 0; }
@media(max-width: 680px) {
  .calc-intro__inner { padding: 20px 16px; font-size: 14.5px; }
}

/* Calc Layout */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  padding: 28px 20px 60px;
  max-width: 1100px;
  margin: 0 auto;
}
@media(max-width: 800px) {
  .calc-layout { grid-template-columns: 1fr; }
}

/* Calculator Card */
.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.calc-card-header {
  background: var(--steel);
  color: #fff;
  padding: 14px 20px;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Mode Tabs */
.mode-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  background: #f7f9fb;
}
.mode-tab {
  flex: 1;
  padding: 11px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text-muted);
  font-family: 'PT Sans', sans-serif;
  transition: background 0.15s, color 0.15s;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.mode-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: #fff;
}

/* Source Tabs */
.source-tabs {
  display: flex;
  gap: 0;
  padding: 14px 20px 0;
}
.source-tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: #f7f9fb;
  cursor: pointer;
  color: var(--text-muted);
  font-family: 'PT Sans', sans-serif;
  transition: 0.15s;
}
.source-tab:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.source-tab:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.source-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Form */
.calc-form { padding: 18px 20px 20px; }
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--steel-light);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: 'PT Sans', sans-serif;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}
select.form-control { cursor: pointer; }

/* Two column form row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Price toggle */
.price-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.toggle-switch {
  position: relative;
  width: 42px;
  height: 22px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 22px;
  cursor: pointer;
  transition: 0.3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  left: 3px;
  top: 3px;
  transition: 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-label { font-size: 14px; font-weight: 700; color: var(--text-muted); }
.price-inputs { display: none; }
.price-inputs.visible { display: block; }

/* Results */
.results-block {
  background: #f0f4f8;
  border-top: 2px solid var(--border);
  padding: 18px 20px;
}
.results-block h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.result-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}
.result-item:last-child { border-bottom: none; }
.result-label { font-size: 14px; color: var(--text-muted); }
.result-value {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}
.result-unit { font-size: 13px; color: var(--text-muted); margin-left: 4px; }
.result-total { border-top: 2px solid var(--border); padding-top: 10px; margin-top: 4px; }
.result-value-large { font-size: 28px !important; }
.result-info-row { justify-content: center; }
.result-info-text { font-size: 12px; color: #aaa; font-style: italic; text-align: center; }
/* Grade toggle */
.grade-toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.grade-toggle-row input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); }
.grade-toggle-row label { font-size: 13px; color: var(--text-muted); cursor: pointer; margin: 0; }

/* Schema Card */
.schema-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.schema-card-header {
  background: var(--steel);
  color: #fff;
  padding: 12px 16px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.schema-img-wrap {
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f7f9fb;
  border-bottom: 1px solid var(--border);
  min-height: 140px;
}
.schema-img-wrap svg {
  max-width: 200px;
  max-height: 160px;
}
.formula-block { padding: 16px; }
.formula-block h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.formula-box {
  background: #f0f4f8;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 14px;
  font-family: monospace;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--steel);
  font-weight: 700;
}
.formula-legend {
  font-size: 13px;
  color: var(--text-muted);
  list-style: none;
}
.formula-legend li { padding: 3px 0; }
.formula-legend li strong { color: var(--primary); }

/* Tables */
.table-section {
  margin-top: 32px;
  padding: 0 0 60px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px 60px;
}
.table-section h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--steel);
  margin-bottom: 14px;
  border-left: 4px solid var(--primary);
  padding-left: 14px;
  text-transform: uppercase;
}
.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--bg-card);
}
.data-table thead {
  background: var(--steel);
  color: #fff;
}
.data-table th {
  padding: 10px 14px;
  text-align: left;
  font-family: 'PT Sans', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.data-table td {
  padding: 9px 14px;
  border-bottom: 1px solid #eef1f4;
  color: var(--text);
}
.data-table tbody tr:hover { background: #f5f8fa; }
.data-table tbody tr:last-child td { border-bottom: none; }

/* Load more btn */
.btn-load-more {
  display: block;
  width: 100%;
  padding: 11px;
  background: none;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: border-color 0.2s, color 0.2s;
  font-family: 'PT Sans', sans-serif;
  margin-top: 8px;
}
.btn-load-more:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Export PDF button */
.btn-export-pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  margin-top: 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  font-family: 'PT Sans', sans-serif;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.1s;
}
.btn-export-pdf:hover { background: var(--primary-dark); }
.btn-export-pdf:active { transform: scale(0.98); }
.btn-export-pdf svg { flex-shrink: 0; }

/* Export Excel button (зелёный, под кнопкой PDF).
   Двойной класс — чтобы перебить дублирующий .btn-export-pdf ниже по файлу. */
.btn-export-pdf.btn-export-xls { background: var(--success); margin-top: 10px; }
.btn-export-pdf.btn-export-xls:hover { background: #1e8a4c; }

/* NAV GRID (bottom page nav) */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin: 32px 0;
  padding: 0 20px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.nav-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 8px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--steel);
  font-size: 13px;
  font-weight: 700;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: 0.2s;
}
.nav-grid a:hover, .nav-grid a.active {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff5f4;
}
.nav-grid a.active {
  background: var(--primary);
  color: #fff;
}

/* OTHER CALCULATORS (bottom related nav) */
.related-calc {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.related-calc__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;          /* равные уступы: 40px сверху/снизу, 24px слева/справа */
}
.related-calc__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--steel);
  text-align: center;
  margin-bottom: 24px;
}
/* блок внутри раздела: убираем собственные внешние отступы, центрируем по плашке */
.related-calc .nav-grid {
  margin: 0;
  padding: 0;
  max-width: none;
}

/* SIZE FACT (строка-факт под H1 на дочерних страницах типоразмеров) */
.size-fact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 18px 0 0;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
}
.size-fact__item { font-size: 15px; color: var(--text-muted); }
.size-fact__item b {
  font-family: 'Oswald', sans-serif;
  font-size: 19px;
  color: var(--steel);
  margin-right: 4px;
}

/* POPULAR SIZES (блок ссылок на дочерние страницы типоразмеров) */
.popular-sizes {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.popular-sizes__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}
.popular-sizes__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--steel);
  margin: 0 0 12px;
}
.popular-sizes__lead {
  color: var(--text-muted);
  max-width: 780px;
  line-height: 1.6;
  margin: 0 0 24px;
}
.size-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.size-links a,
.size-links .is-current {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  padding: 12px 8px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.size-links__size {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
  color: var(--steel);
}
.size-links__w {
  font-size: 12px;
  color: var(--text-muted);
}
.size-links a:hover {
  border-color: var(--primary);
  background: #fff5f4;
}
.size-links a:hover .size-links__size { color: var(--primary); }
.size-links .is-current {
  border-color: var(--primary);
  background: var(--primary);
  cursor: default;
}
.size-links .is-current .size-links__size,
.size-links .is-current .size-links__w { color: #fff; }
.popular-sizes__back {
  display: inline-block;
  margin-top: 22px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.popular-sizes__back:hover { text-decoration: underline; }
.data-table tbody tr.is-row-current {
  background: #fff5f4;
  box-shadow: inset 3px 0 0 var(--primary);
  font-weight: 700;
}
@media (max-width: 600px) {
  .popular-sizes__inner { padding: 32px 16px; }
  .popular-sizes__title { font-size: 19px; }
  .size-links { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
}

/* Блок обратной связи (перед «Другие калькуляторы»).
   Десктоп — во всю ширину контента: текст слева, кнопка справа. */
.feedback-cta { background: var(--bg); padding: 8px 20px 32px; }
.feedback-cta__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.feedback-cta__inner p {
  margin: 0;
  flex: 1 1 auto;
  font-size: 15px;
  line-height: 1.7;
  color: #2b3742;
}
.feedback-cta__link { color: var(--primary); font-weight: 700; text-decoration: none; }
.feedback-cta__link:hover { text-decoration: underline; }
.feedback-cta__btn {
  flex: 0 0 auto;
  white-space: nowrap;
  display: inline-block;
  padding: 12px 26px;
  background: var(--primary);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.1s;
}
.feedback-cta__btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
/* Мобайл — прежняя компоновка: текст и кнопка по центру, в столбик */
@media(max-width: 680px) {
  .feedback-cta { padding: 4px 16px 24px; }
  .feedback-cta__inner { flex-direction: column; text-align: center; gap: 16px; padding: 22px 18px; }
}

/* Заглушка «Страница в разработке» (contacts.html) */
.under-construction {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 52vh;
  padding: 40px 20px;
}
.under-construction p {
  margin: 0;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--steel-light);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--steel);
  color: #8090a0;
  padding: 24px 0;
  text-align: center;
  font-size: 14px;
  border-top: 3px solid var(--primary);
}
.site-footer a { color: #8090a0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin-bottom: 4px; }

/* ===== MOBILE ===== */
@media(max-width: 680px) {
  .logo-text { font-size: 16px; }
  .burger { display: flex; }
  .main-nav {
    display: none;
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    background: var(--steel-mid);
    flex-direction: column;
    padding: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 99;
  }
  .main-nav.open { display: flex; }
  .nav-home { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-dropdown { flex-direction: column; }
  .nav-toggle { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  /* подменю «Калькуляторы» скрыто по умолчанию, открывается по .open */
  .nav-dropdown-menu {
    display: none;
    position: static;
    border-top: none;
    box-shadow: none;
    background: rgba(0,0,0,0.2);
  }
  /* на мобиле hover-правило десктопа перебивает JS-закрытие — отключаем */
  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  /* стрелка показывает состояние */
  .nav-dropdown.open .nav-toggle::after { content: ' ▴'; }
  .hero h1 { font-size: 24px; }
  /* плашки преимуществ — 2×2, все одинаковой ширины */
  .hero__chips { display: grid; grid-template-columns: 1fr 1fr; }
  .hero__chips li { text-align: center; }
  .catalog-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .form-row { grid-template-columns: 1fr; }
  .calc-layout { padding: 16px 12px 40px; }
  .related-calc__inner { padding: 32px 16px; }
  .related-calc__title { font-size: 19px; margin-bottom: 18px; }
}
@media(max-width: 400px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Larger tap targets (P2) ===== */
.source-tab, .mode-tab { min-height: 44px; }

/* ===== Expert content + FAQ (P4) ===== */
.content-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 24px 48px;
  font-size: 15px;
  line-height: 1.7;
  color: #2b3742;
}
.content-section h2 { font-family: 'Oswald', sans-serif; font-size: 24px; margin: 28px 0 12px; }
.content-section h3 { font-family: 'Oswald', sans-serif; font-size: 19px; margin: 24px 0 10px; }
.content-section ul, .content-section ol { margin: 10px 0 10px 22px; }
.content-section li { margin-bottom: 6px; }
.formula-inline {
  background: #f4f7fa; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 14px; font-weight: 700; color: #1f2a33; display: inline-block;
}
.table-note { max-width: 1100px; margin: 4px auto 0; padding: 0 24px; font-size: 13px; color: var(--text-muted); }
.content-meta { margin-top: 24px; font-size: 13px; color: var(--text-muted); }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 10px;
}
.faq summary { font-weight: 700; cursor: pointer; min-height: 24px; }
.faq details p { margin-top: 8px; }

/* Иерархия заголовков на калькуляторах (теги меняются, визуал — прежний):
   плашки карточек → h2 (сброс дефолтных отступов), формула → h3, вопросы FAQ → инлайн-h3 */
.calc-card-header, .schema-card-header { margin: 0; }
.formula-block h3 {
  font-family: 'Oswald', sans-serif; font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--text-muted); margin: 0 0 8px;
}
.faq summary h3 {
  display: inline; margin: 0; font-size: inherit; font-weight: inherit;
  font-family: inherit; color: inherit; letter-spacing: 0;
}

/* ===== Sticky results on mobile (P2) ===== */
@media(max-width: 800px) {
  .results-block {
    position: sticky; bottom: 0; z-index: 20;
    box-shadow: 0 -4px 14px rgba(0,0,0,0.12);
  }
}

/* ===== Hub title (P3) ===== */
.catalog-title {
  font-family: 'Oswald', sans-serif;
  font-size: 26px;
  margin: 0 0 18px;
  scroll-margin-top: 80px; /* отступ при переходе по якорю #catalog */
}

/* ===== CLS safeguards (P3): фиксируем размеры, чтобы вёрстка не «прыгала» ===== */
.card-icon { flex: 0 0 auto; }
.card-icon svg { display: block; }
.schema-img-wrap svg { height: auto; } /* сохраняем пропорции viewBox, не растягиваем */
.page-hero { min-height: 96px; }
.results-block { min-height: 180px; }
.advantage-item .adv-icon, .step-item .step-num { flex: 0 0 auto; }

/* ===== PDF Export Button ===== */
.btn-export-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  margin-top: 16px;
  background: #c0392b;
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-export-pdf:hover {
  background: #a02d21;
  transform: translateY(-2px);
}
.btn-export-pdf:active {
  transform: translateY(0);
}
.btn-export-pdf svg {
  width: 16px;
  height: 16px;
}


/* ===== COOKIE CONSENT (плавающий баннер согласия) ===== */
.cookie-consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120;
  max-width: 780px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  background: var(--steel); color: #e0e8f0;
  border: 1px solid #3a4d61; border-left: 4px solid var(--primary);
  border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  padding: 16px 18px;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent p { margin: 0; flex: 1; font-size: 14px; line-height: 1.5; }
.cookie-consent a { color: #fff; text-decoration: underline; }
.cookie-consent a:hover { color: var(--primary-light); }
.cookie-consent__btn {
  flex: 0 0 auto; cursor: pointer; border: none;
  background: var(--primary); color: #fff;
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.4px;
  padding: 11px 26px; border-radius: var(--radius); transition: background 0.2s;
}
.cookie-consent__btn:hover { background: var(--primary-dark); }
@media(max-width: 680px) {
  .cookie-consent { flex-direction: column; align-items: stretch; text-align: center;
    left: 10px; right: 10px; bottom: 10px; padding: 14px; }
}

/* ===== ЮРИДИЧЕСКИЕ СТРАНИЦЫ (политика, оферта) ===== */
.legal-content {
  max-width: 820px; margin: 0 auto; padding: 32px 24px 56px;
  font-size: 15px; line-height: 1.75; color: #2b3742;
}
.legal-content h2 {
  font-family: 'Oswald', sans-serif; font-size: 21px;
  margin: 26px 0 10px; color: var(--steel);
}
.legal-content p { margin: 0 0 12px; }
.legal-content ul { margin: 8px 0 14px 22px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--primary); }
.legal-lead { font-size: 16px; color: var(--steel-light); margin-bottom: 18px; }
.legal-meta { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted); }

/* Страница 404 */
.error-404 {
  text-align: center;
  padding: 56px 20px 64px;
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.error-404__code {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  line-height: 1;
  font-size: clamp(96px, 22vw, 200px);
  color: var(--primary);
  letter-spacing: 2px;
}
.error-404__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 4vw, 38px);
  color: var(--steel);
  margin: 6px 0 14px;
}
.error-404__text {
  max-width: 560px;
  margin: 0 auto 26px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}
.error-404__btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 16px;
  padding: 12px 30px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .15s ease;
}
.error-404__btn:hover { background: var(--primary-dark); }
.error-404__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 720px;
  margin: 36px auto 0;
}
.error-404__links a {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 14px;
  color: var(--steel);
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
.error-404__links a:hover { border-color: var(--primary); color: var(--primary); }

/* ===== CONTACTS ===== */
.contacts-section { padding: 40px 0 60px; overflow-x: hidden; }
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 32px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}
@media(max-width: 800px) {
  .contacts-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .contacts-section { padding: 28px 0 44px; }
}

/* Левая колонка — информация */
.contacts-info h2,
.contact-form h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--steel);
  margin-bottom: 10px;
}
.contacts-lead {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.cd-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(192,57,43,0.08);
  color: var(--primary);
}
.cd-body { display: flex; flex-direction: column; gap: 2px; }
.cd-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
}
.cd-body a, .cd-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--steel);
  text-decoration: none;
}
.cd-body a:hover { color: var(--primary); }

.contact-messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.messenger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.messenger-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); opacity: .94; }
.messenger-btn svg { flex-shrink: 0; }
.msg-tg { background: #29a9eb; }
.msg-max { background: #1f6bff; }

/* Правая колонка — форма */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 26px 28px;
}
@media(max-width: 680px) { .contact-form { padding: 20px 18px 22px; } }
.contact-form .form-group { margin-bottom: 16px; }
.contact-form textarea.form-control { resize: vertical; min-height: 96px; line-height: 1.5; }
.form-control.is-invalid { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(192,57,43,0.12); }

/* honeypot — невидим для людей */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.smart-captcha-wrap { max-width: 100%; overflow: hidden; margin-bottom: 16px; }
.smart-captcha { width: 300px; }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
}
.form-consent input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--primary); cursor: pointer; }
.form-consent label { font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.form-consent a { color: var(--primary); }

.contact-submit {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.contact-submit:hover { background: var(--primary-dark); }
.contact-submit:active { transform: scale(0.99); }
.contact-submit:disabled { opacity: .7; cursor: default; }

/* Сообщения формы */
.form-success {
  text-align: center;
  padding: 24px 16px 8px;
}
.form-success .fs-icon { color: var(--success); display: inline-flex; }
.form-success h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  color: var(--steel);
  margin: 10px 0 6px;
}
.form-success p { font-size: 14px; color: var(--text-muted); }
.form-error {
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid #f0a8a0;
  background: #fdf2f1;
  border-radius: var(--radius);
  color: var(--primary-dark);
  font-size: 13.5px;
  line-height: 1.5;
}

/* Мессенджеры — моб. версия: 2 кнопки в ряд 50/50, равные уступы 12px */
@media(max-width: 800px) {
  /* Обнуляем 20px боковой padding контейнера (margin 0 -20px) и задаём свой
     одинаковый отступ 12px (padding 0 12px). С box-sizing:border-box ряд = ровно
     ширина экрана, а зазоры слева / между кнопками / справа все по 12px. */
  .contact-messengers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 22px -20px 0;
    padding: 0 12px;
  }
  .contact-messengers .messenger-btn {
    justify-content: center;
    padding: 15px 12px;
    border-radius: 14px;
    font-size: 15px;
  }
}


/* ===== РСЯ: десктоп плавающий блок в правой колонке ===== */
.rtb-side {
  position: sticky;
  top: 74px;
  margin-top: 24px;
  min-height: 250px; /* резерв высоты — анти-CLS */
}
@media (max-width: 800px) {
  .rtb-side { display: none; } /* десктоп-блок; на мобиле будет отдельный напольный */
}

/* РСЯ: моб-блок над кнопками экспорта (создаётся из common.js только на ≤800px) */
.rtb-mob-export { margin: 16px 0 4px; min-height: 100px; }
