/* ============================================================
   БауМастер — чертёжная система
   Графит + фирменный красный с логотипа. Острые углы,
   волосяные линии, моноширинный для размеров и артикулов.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Sans+Condensed:wght@600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* фирменные — сняты с логотипа */
  --red:        #ed1c24;
  --red-dark:   #c4161c;
  --red-wash:   #fdeced;

  /* графит */
  --ink:        #17171a;
  --graphite:   #26262a;
  --gray-700:   #4d4d4d;
  --gray-500:   #77736e;
  --gray-400:   #a5a09a;

  /* бумага */
  --paper:      #ffffff;
  --bg:         #f2f0ed;
  --bg-tint:    #e9e6e1;
  --line:       #d8d4cf;
  --line-soft:  #e6e2dd;

  --sans:  'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --cond:  'IBM Plex Sans Condensed', 'IBM Plex Sans', system-ui, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --topbar-h: 34px;
  --head-h:   76px;
  --tr: .16s ease;

  /* миллиметровка */
  --grid: linear-gradient(var(--line-soft) 1px, transparent 1px),
          linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  --grid-dark: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
               linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  --grid-size: 26px 26px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--cond);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.005em;
}

/* технический ярлычок: моно, капс, разрядка */
.tag, .spec-head, .form-section-head, .contact-row .label,
.dir-more, .cat-badge, .footer-head, .topbar-status {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ============================================================
   01 · ВЕРХНЯЯ ПЛАШКА
   ============================================================ */
.topbar {
  background: var(--ink);
  color: var(--gray-400);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 11.5px;
}
.topbar-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-status {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-status::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--red);
  flex-shrink: 0;
}
.topbar-contacts { display: flex; align-items: center; gap: 20px; white-space: nowrap; }
.topbar-contacts a { color: #fff; font-weight: 500; }
.topbar-contacts a:hover { color: var(--red); }
.topbar-hours { color: var(--gray-500); }

/* ============================================================
   02 · ШАПКА
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--graphite);
  border-bottom: 1px solid #000;
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  height: var(--head-h);
  display: flex;
  align-items: center;
  gap: 40px;
}
.site-logo { flex-shrink: 0; }
.site-logo img { height: 46px; width: auto; }
.site-logo:hover img { opacity: .85; }

.site-nav { display: flex; align-items: stretch; gap: 0; margin-left: auto; height: 100%; }
.nav-item { position: relative; display: flex; align-items: stretch; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  font-family: var(--cond);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  color: rgba(255,255,255,.72);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--tr), border-color var(--tr);
}
.nav-link:hover, .nav-item:hover > .nav-link { color: #fff; }
.nav-link.active { color: #fff; border-bottom-color: var(--red); }
.nav-link .chevron { width: 11px; height: 11px; opacity: .55; transition: transform var(--tr); }
.nav-item:hover .chevron { transform: rotate(180deg); }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 268px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 6px;
  z-index: 50;
}
.nav-item:hover .dropdown { display: block; }
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--gray-700);
  transition: background var(--tr), color var(--tr);
}
.dropdown a:hover { background: var(--bg); color: var(--ink); }
.dropdown a .dot { width: 5px; height: 5px; background: var(--line); flex-shrink: 0; }
.dropdown a:hover .dot { background: var(--red); }
.dropdown hr { border: none; border-top: 1px solid var(--line-soft); margin: 6px 12px; }

.nav-calc {
  margin-left: 12px;
  align-self: center;
  padding: 9px 18px;
  background: var(--red);
  color: #fff !important;
  border: none;
  border-bottom: 2px solid transparent;
}
.nav-calc:hover { background: var(--red-dark); }
.nav-calc.active { border-bottom-color: transparent; background: var(--red-dark); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  margin-left: auto;
}
.burger span { width: 24px; height: 2px; background: #fff; display: block; }

/* ============================================================
   03 · ПОЛОТНО СТРАНИЦЫ
   ============================================================ */
.page-wrap {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 28px 80px;
  flex: 1;
  counter-reset: sec;
}

.page-title-block {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 22px;
  margin-bottom: 40px;
}
.page-title-block h1 {
  font-size: clamp(30px, 4.2vw, 50px);
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.page-title-block p {
  color: var(--gray-500);
  font-size: 16px;
  max-width: 760px;
}

/* нумерованные разделы — как пункты в спецификации */
.section-title {
  font-size: clamp(21px, 2.4vw, 28px);
  text-transform: uppercase;
  margin: 56px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.section-title::before {
  counter-increment: sec;
  content: counter(sec, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--red);
  letter-spacing: .06em;
  flex-shrink: 0;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.section-sub {
  color: var(--gray-500);
  font-size: 14px;
  margin: 0 0 26px 30px;
}

.breadcrumb {
  display: flex;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--gray-400);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--red); }
.breadcrumb a:hover { text-decoration: underline; }

/* ============================================================
   04 · ГЛАВНЫЙ ЭКРАН
   ============================================================ */
.hero {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 0;
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
}
.hero-content {
  padding: 52px 52px 48px;
  background-color: var(--paper);
  background-image: var(--grid);
  background-size: var(--grid-size);
}
.hero-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-500);
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 5px 11px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(32px, 4.6vw, 56px);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero p {
  font-size: 16px;
  color: var(--gray-700);
  max-width: 540px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* правая колонка первого экрана — чертёж */
.hero-figure {
  border-left: 1px solid var(--line);
  background-color: var(--bg);
  background-image: var(--grid);
  background-size: var(--grid-size);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  position: relative;
}
.hero-figure .prod-svg { max-height: 300px; }
.hero-figure figcaption {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-400);
  text-align: center;
  margin-top: 14px;
}

/* ============================================================
   05 · КНОПКИ
   ============================================================ */
.btn-primary, .btn-ghost, .btn-ghost-dark, .btn-white, .btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  font-family: var(--cond);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--tr), color var(--tr), border-color var(--tr);
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }

.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn-ghost-dark { border-color: var(--ink); color: var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); color: #fff; }

.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--red); color: #fff; }

.btn-outline-white { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* ============================================================
   06 · КАРТОЧКИ И СЕТКИ
   ============================================================ */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 30px 32px;
  margin-bottom: 8px;
}
.card p { font-size: 15px; color: var(--gray-700); line-height: 1.7; }
.card-h {
  font-family: var(--cond);
  font-size: 19px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}
.accent-card {
  background: var(--paper);
  border-left: 3px solid var(--red);
  margin-bottom: 48px;
}
.accent-card p { color: var(--ink); }

/* направления */
.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin-bottom: 48px; }
.dir-card {
  background: var(--paper);
  padding: 30px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background var(--tr);
}
.dir-card:hover { background: var(--red-wash); }
.dir-main {
  grid-column: 1 / -1;
  background-color: var(--graphite);
  color: #fff;
  background-image: var(--grid-dark);
  background-size: var(--grid-size);
}
.dir-main:hover { background-color: var(--ink); }
.dir-main h3 { color: #fff; }
.dir-main p { color: rgba(255,255,255,.7); max-width: 720px; }
.dir-main .dir-more { color: var(--red); }
.dir-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.dir-main .dir-icon { border-color: rgba(255,255,255,.25); }
.dir-main .dir-icon .ic { color: var(--red); }
.dir-card h3 { font-size: 20px; text-transform: uppercase; }
.dir-card p { font-size: 14px; color: var(--gray-500); line-height: 1.65; }
.dir-more { margin-top: auto; padding-top: 14px; color: var(--red); }

/* преимущества */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); margin-bottom: 48px; }
.feature-card { background: var(--paper); padding: 28px 26px; }
.feature-card:hover { background: var(--red-wash); }
.feature-icon {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-card h3 { font-family: var(--cond); font-size: 17px; text-transform: uppercase; margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; color: var(--gray-500); line-height: 1.6; }

/* услуги */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin-bottom: 48px; }
.service-card { background: var(--paper); padding: 30px 28px; }
.service-card:hover { background: var(--red-wash); }
.service-card .s-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-card h3 { font-family: var(--cond); font-size: 18px; text-transform: uppercase; margin-bottom: 9px; }
.service-card p { font-size: 14px; color: var(--gray-500); line-height: 1.65; }

/* каталог */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--line); }
.cat-grid-3 { grid-template-columns: repeat(3, 1fr); margin-bottom: 48px; }
.cat-card { background: var(--paper); padding: 32px 26px; text-align: center; transition: background var(--tr); }
.cat-card:hover { background: var(--red-wash); }
.cat-card .cat-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.cat-card h4 { font-family: var(--cond); font-size: 19px; text-transform: uppercase; margin-bottom: 7px; }
.cat-card p { font-size: 13px; color: var(--gray-500); }
.cat-badge { display: inline-block; margin-top: 12px; color: var(--red); border: 1px solid currentColor; padding: 3px 9px; }

/* ============================================================
   07 · ИЗДЕЛИЯ — ЧЕРТЕЖИ
   ============================================================ */
.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); margin-bottom: 48px; }
.prod-card { background: var(--paper); display: flex; flex-direction: column; }
.prod-card-wide { grid-column: 1 / -1; }
.prod-figure {
  aspect-ratio: 16 / 9;
  background-color: var(--bg);
  background-image: var(--grid);
  background-size: var(--grid-size);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}
/* угловые засечки — как на подрамнике чертежа */
.prod-figure::before, .prod-figure::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--gray-400);
}
.prod-figure::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.prod-figure::after  { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.prod-card-wide .prod-figure { aspect-ratio: 40 / 9; }
.prod-svg { width: 100%; height: 100%; max-height: 270px; }
.prod-svg-wide { max-height: 205px; }
.prod-body { padding: 24px 28px 28px; }
.prod-body h3 { font-size: 21px; text-transform: uppercase; margin-bottom: 10px; }
.prod-body p { font-size: 14.5px; color: var(--gray-700); line-height: 1.7; }

/* ============================================================
   08 · СПЕЦИФИКАЦИЯ И ЦВЕТА
   ============================================================ */
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); margin-bottom: 48px; }
.spec-card { background: var(--paper); padding: 28px 30px; }
.spec-card:first-child { grid-column: 1 / -1; }
.spec-head { color: var(--red); display: block; margin-bottom: 14px; }
.spec-card p { font-size: 14.5px; color: var(--gray-700); line-height: 1.7; }
.spec-card strong { font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--ink); }

.ral-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  margin-top: 20px;
  border: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
}
.ral {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--gray-700);
  padding: 9px 14px 9px 9px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ral::before {
  content: '';
  width: 20px; height: 20px;
  background: var(--c);
  outline: 1px solid rgba(0,0,0,.14);
  outline-offset: -1px;
  flex-shrink: 0;
}

/* шаги */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); margin-bottom: 48px; }
.step { background: var(--paper); padding: 28px 26px; }
.step-n {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--red);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.step h4 { font-family: var(--cond); font-size: 17px; text-transform: uppercase; margin-bottom: 9px; }
.step p { font-size: 13.5px; color: var(--gray-500); line-height: 1.65; }

/* факты */
.facts-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin-bottom: 8px; }
.fact { background: var(--paper); padding: 28px 26px; }
.fact-n {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 10px;
}
.fact-t { font-size: 13px; color: var(--gray-500); line-height: 1.55; }

/* ============================================================
   09 · CTA
   ============================================================ */
.cta-band {
  background-color: var(--graphite);
  background-image: var(--grid-dark);
  background-size: var(--grid-size);
  border-left: 3px solid var(--red);
  padding: 34px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cta-band h3 { font-size: 24px; color: #fff; text-transform: uppercase; margin-bottom: 7px; }
.cta-band p { color: rgba(255,255,255,.65); font-size: 14px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-gold { background: var(--red); background-image: none; border-left-color: var(--ink); }
.cta-gold p { color: rgba(255,255,255,.82); }

/* ============================================================
   10 · СЕРВИС FAKRO
   ============================================================ */
.service-hero {
  display: grid;
  grid-template-columns: 1fr 236px;
  gap: 36px;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 34px 36px;
  margin-bottom: 48px;
}
.lead { font-size: 16px; color: var(--ink); line-height: 1.7; margin-bottom: 24px; }
.check-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 24px; border-top: 1px solid var(--line-soft); }
.check-list li {
  position: relative;
  padding: 10px 0 10px 26px;
  font-size: 14px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--line-soft);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 2px; top: 17px;
  width: 9px; height: 9px;
  background: var(--red);
}
.cert-link { display: block; }
.cert-link img { width: 100%; border: 1px solid var(--line); }
.cert-link span {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 12px;
}
.cert-link:hover img { border-color: var(--ink); }

/* ============================================================
   11 · УВЕДОМЛЕНИЯ И ФОРМА
   ============================================================ */
.notice-ok, .notice-warn {
  padding: 16px 20px;
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.notice-ok   { border-left: 3px solid #1f7a3f; }
.notice-warn { border-left: 3px solid var(--red); }
.notice-ok a, .notice-warn a { color: var(--red); text-decoration: underline; }

.form-card { margin-bottom: 48px; padding: 34px 36px; }
.form-section-head {
  color: var(--gray-400);
  padding-bottom: 11px;
  border-bottom: 1px solid var(--ink);
  margin: 30px 0 22px;
}
.form-section-head:first-of-type { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 20px; }
.field { display: block; margin-bottom: 20px; }
.form-grid .field { margin-bottom: 0; }
.field > span {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 12px 14px;
  transition: border-color var(--tr), background var(--tr);
}
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--red);
}
.field small { display: block; font-size: 12.5px; color: var(--gray-400); margin-top: 7px; line-height: 1.5; }
.form-foot {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}
.form-note { font-size: 12.5px; color: var(--gray-400); line-height: 1.55; flex: 1; min-width: 240px; }
.form-note a { color: var(--red); text-decoration: underline; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ============================================================
   12 · КОНТАКТЫ
   ============================================================ */
.contacts-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.contact-block { background: var(--paper); border: 1px solid var(--line); padding: 26px 28px; }
.contact-block h3 {
  font-family: var(--cond);
  font-size: 18px;
  text-transform: uppercase;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--ink);
}
.contact-row { display: flex; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.contact-row:last-child { border-bottom: none; padding-bottom: 0; }
.contact-row .icon {
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-row .info { flex: 1; }
.contact-row .label { color: var(--gray-400); display: block; }
.contact-row .value { font-size: 15px; margin-top: 4px; }
.contact-row .value a { color: var(--red); font-family: var(--mono); font-size: 14.5px; font-weight: 500; }
.contact-row .value a:hover { text-decoration: underline; }

.transport { background: var(--paper); border: 1px solid var(--line); padding: 22px 26px; }
.transport h3 { font-family: var(--cond); font-size: 17px; text-transform: uppercase; margin-bottom: 8px; }
.transport-row { display: flex; gap: 12px; padding: 11px 0; font-size: 13.5px; color: var(--gray-700); border-bottom: 1px solid var(--line-soft); }
.transport-row:last-child { border-bottom: none; }
.transport-row strong { color: var(--ink); white-space: nowrap; }

.map-wrap { display: block; border: 1px solid var(--line); }
.map-wrap img { width: 100%; }
.map-wrap:hover { border-color: var(--ink); }

.req-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.req-table td { padding: 10px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.req-table tr:last-child td { border-bottom: none; }
.req-table td:first-child {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-400);
  width: 46%;
  padding-right: 16px;
}
.req-table td:last-child { font-family: var(--mono); font-size: 13px; color: var(--ink); }

.text-page h3 { font-family: var(--cond); font-size: 17px; text-transform: uppercase; margin: 28px 0 10px; }
.text-page h3:first-child { margin-top: 0; }
.text-page a { color: var(--red); text-decoration: underline; }

/* ============================================================
   13 · ИКОНКИ
   ============================================================ */
.ic { width: 20px; height: 20px; display: block; color: var(--red); flex-shrink: 0; }
.service-card .s-icon .ic, .cat-card .cat-icon .ic { width: 21px; height: 21px; }
.contact-row .icon .ic { width: 16px; height: 16px; color: var(--gray-700); }
.tr-ic { display: inline-flex; }
.tr-ic .ic { width: 16px; height: 16px; color: var(--gray-400); }

/* ============================================================
   14 · ПОДВАЛ
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--gray-400);
  font-size: 13.5px;
  padding: 52px 28px 0;
  margin-top: auto;
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.footer-col p { margin-bottom: 14px; line-height: 1.65; }
.footer-col p:last-child { margin-bottom: 0; }
.footer-col strong { color: #fff; font-weight: 600; }
.footer-col .muted { color: var(--gray-500); font-family: var(--mono); font-size: 12px; line-height: 1.8; }
.footer-col a { color: rgba(255,255,255,.8); }
.footer-col a:hover { color: var(--red); }
.footer-logo { height: 42px; width: auto; margin-bottom: 18px; }
.footer-about { font-size: 13px; color: var(--gray-500); max-width: 310px; }
.footer-head {
  color: #fff;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.footer-msg { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-msg a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.24);
  padding: 6px 13px;
}
.footer-msg a:hover { border-color: var(--red); color: var(--red); }
.footer-bottom {
  max-width: 1320px;
  margin: 44px auto 0;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--gray-500);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--gray-500); }
.footer-links a:hover { color: var(--red); }

/* ============================================================
   15 · СТАРЫЕ СТРАНИЦЫ БРЕНДОВ
   ============================================================ */
.legacy { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.legacy img { max-width: 100%; height: auto; margin: 0 auto; }
.legacy img[width] { width: auto !important; max-width: 100%; }
.legacy p { font-size: 15px; color: var(--gray-700); line-height: 1.7; margin-bottom: 15px; }
.legacy h2 { font-size: clamp(22px, 2.6vw, 28px); text-transform: uppercase; margin-bottom: 18px; }
.legacy h3 { font-family: var(--cond); font-size: 19px; text-transform: uppercase; color: var(--ink); margin: 28px 0 12px; }
.legacy h4 { font-family: var(--cond); font-size: 16px; text-transform: uppercase; margin: 18px 0 8px; }
.legacy table { max-width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 18px 0; table-layout: auto; }
.legacy table td, .legacy table th { padding: 9px 11px; border-color: var(--line-soft) !important; vertical-align: top; }
.legacy .leftpic img { float: left; margin: 0 22px 14px 0; max-width: 45%; }
.legacy a { color: var(--red); text-decoration: underline; }

/* ============================================================
   16 · КАЛЬКУЛЯТОР
   ============================================================ */
.calc-fullpage { flex: none; display: flex; flex-direction: column; padding: 0; margin: 0; }
#calc-frame {
  width: 100%;
  height: calc(100vh - var(--head-h) - var(--topbar-h));
  min-height: 620px;
  border: none;
  display: block;
}

/* ============================================================
   17 · АДАПТИВ
   ============================================================ */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-figure { border-left: none; border-top: 1px solid var(--line); }
  .hero-content { padding: 40px 34px 36px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .dir-grid { grid-template-columns: 1fr 1fr; }
  .dir-grid .dir-card:last-child { grid-column: 1 / -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-hero { grid-template-columns: 1fr; }
  .cert-link { max-width: 260px; }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .burger { display: flex; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: calc(var(--head-h) + var(--topbar-h)) 0 0 0;
    background: var(--graphite);
    padding: 8px 0 24px;
    gap: 0;
    overflow-y: auto;
    z-index: 99;
    height: auto;
  }
  .site-nav.open .nav-item { display: block; }
  .site-nav.open .nav-link {
    padding: 15px 28px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    justify-content: space-between;
  }
  .site-nav.open .nav-link.active { border-bottom-color: var(--red); }
  .site-nav.open .dropdown {
    position: static;
    display: block;
    border: none;
    background: rgba(0,0,0,.28);
    padding: 0;
  }
  .site-nav.open .dropdown a { color: rgba(255,255,255,.72); padding: 13px 28px 13px 40px; }
  .site-nav.open .dropdown a:hover { background: rgba(255,255,255,.07); color: #fff; }
  .site-nav.open .dropdown hr { border-color: rgba(255,255,255,.12); margin: 0 28px; }
  .site-nav.open .nav-calc { margin: 18px 28px 0; justify-content: center; border-bottom: none; }

  .topbar-status { display: none; }
  .topbar-inner { justify-content: center; padding: 0 16px; }
  .contacts-grid { grid-template-columns: 1fr; }
  .page-wrap { padding: 28px 16px 60px; }
  .card, .form-card, .service-hero { padding: 24px; }
  .cta-band { padding: 26px 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .prod-card-wide .prod-figure { aspect-ratio: 20 / 9; }
  #calc-frame { height: calc(100vh - 62px - var(--topbar-h)); }
}

@media (max-width: 640px) {
  :root { --head-h: 62px; }
  .site-logo img { height: 36px; }
  .header-inner { padding: 0 16px; }
  .topbar { font-size: 11px; }
  .topbar-hours, .hide-sm { display: none; }

  .hero-content { padding: 30px 20px 28px; }
  .hero h1 { font-size: 30px; }
  .hero-actions { flex-direction: column; align-items: stretch; }

  .dir-grid, .prod-grid, .spec-grid, .steps,
  .facts-row, .form-grid, .features-grid,
  .services-grid, .cat-grid-3, .check-list { grid-template-columns: 1fr; }
  .form-grid { gap: 0; }
  .form-grid .field { margin-bottom: 20px; }
  .form-grid .field:last-child { margin-bottom: 0; }

  .section-title { font-size: 21px; margin-top: 44px; }
  .section-sub { margin-left: 0; }
  .prod-body { padding: 20px 22px 24px; }
  .ral-row { grid-template-columns: 1fr 1fr; }

  .cta-band { flex-direction: column; align-items: stretch; }
  .cta-actions { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .legacy .leftpic img { float: none; margin: 0 0 14px; max-width: 100%; }
  .legacy table { display: block; overflow-x: auto; }
}

/* спецификация в первом экране */
.hero-specs {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.hero-specs > div { padding: 14px 24px 14px 0; margin-right: 24px; border-right: 1px solid var(--line); }
.hero-specs > div:last-child { border-right: none; margin-right: 0; }
.hero-specs dt {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 5px;
}
.hero-specs dd { font-family: var(--mono); font-size: 16px; font-weight: 500; color: var(--ink); }
@media (max-width: 640px) {
  .hero-specs { flex-direction: column; }
  .hero-specs > div { border-right: none; border-bottom: 1px solid var(--line-soft); margin-right: 0; padding: 12px 0; }
  .hero-specs > div:last-child { border-bottom: none; }
}

/* ============================================================
   18 · КРУПНЫЕ СХЕМЫ-РАЗРЕЗЫ
   ============================================================ */
.scheme {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 48px;
}
.scheme-pie { grid-template-columns: 1fr; }
.scheme-figure {
  background-color: var(--bg);
  background-image: var(--grid);
  background-size: var(--grid-size);
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.scheme-figure::before, .scheme-figure::after {
  content: '';
  position: absolute;
  width: 13px; height: 13px;
  border: 1px solid var(--gray-400);
}
.scheme-figure::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.scheme-figure::after  { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.sch-svg { width: 100%; height: auto; max-height: 420px; }

.scheme-legend { list-style: none; background: var(--paper); counter-reset: lg; padding: 8px 0; }
.scheme-legend li {
  counter-increment: lg;
  position: relative;
  padding: 13px 26px 13px 56px;
  border-bottom: 1px solid var(--line-soft);
}
.scheme-legend li:last-child { border-bottom: none; }
.scheme-legend li::before {
  content: counter(lg);
  position: absolute;
  left: 22px; top: 13px;
  width: 22px; height: 22px;
  background: var(--red);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scheme-legend b { font-family: var(--cond); font-size: 16px; text-transform: uppercase; display: block; margin-bottom: 3px; }
.scheme-legend span { font-size: 13px; color: var(--gray-500); line-height: 1.55; display: block; }

/* ============================================================
   19 · СХЕМА ПРОЕЗДА
   ============================================================ */
.map-wrap {
  display: block;
  border: 1px solid var(--line);
  background-color: var(--paper);
  background-image: var(--grid);
  background-size: var(--grid-size);
  padding: 18px;
  margin-bottom: 20px;
}
.map-wrap:hover { border-color: var(--line); }
.map-svg { width: 100%; height: auto; }

@media (max-width: 1100px) {
  .scheme { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .scheme-figure { padding: 14px; }
  .scheme-legend li { padding: 12px 18px 12px 48px; }
  .scheme-legend li::before { left: 16px; }
  .map-wrap { padding: 10px; }
}

.map-notes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 8px;
}
.map-notes > div { background: var(--paper); padding: 22px 24px; }
.map-note-h {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 9px;
}
.map-notes p { font-size: 13.5px; color: var(--gray-500); line-height: 1.6; }
@media (max-width: 1100px) { .map-notes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .map-notes { grid-template-columns: 1fr; } }
