/* ============================================================
   GofroTorg — Main Stylesheet
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --red:        #C0392B;
  --red-dark:   #96281B;
  --red-light:  #E74C3C;
  --white:      #FFFFFF;
  --gray-light: #F5F5F5;
  --gray-mid:   #CCCCCC;
  --gray-dark:  #555555;
  --text:       #222222;
  --shadow-sm:  0 2px 8px rgba(0,0,0,.10);
  --shadow-md:  0 6px 24px rgba(0,0,0,.14);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.18);
  --radius:     10px;
  --transition: .28s cubic-bezier(.4,0,.2,1);
  --container:  1240px;
  --header-h:   76px;
}

/* ── CSS Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: 'Montserrat', sans-serif; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { color: var(--gray-dark); }

/* ── Layout Helpers ───────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section--gray { background: var(--gray-light); }
.section-title {
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--gray-dark);
  font-size: 1.05rem;
  margin-bottom: 52px;
}
.divider {
  width: 60px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin: 12px auto 48px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .3px;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(192,57,43,.35);
}
.btn-primary:hover {
  background: var(--red-dark);
  box-shadow: 0 6px 20px rgba(192,57,43,.45);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--red);
}
.btn-outline-red {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}
.btn-outline-red:hover {
  background: var(--red);
  color: var(--white);
}
.btn-sm { padding: 10px 22px; font-size: .88rem; }
.btn-lg { padding: 18px 44px; font-size: 1.05rem; }

/* ──────────────────────────────────────────────────────────
   HEADER
   ────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--text);
}
.logo-sub {
  font-size: .68rem;
  color: var(--gray-dark);
  letter-spacing: .5px;
  text-transform: uppercase;
}
/* Nav */
.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active { color: var(--red); background: rgba(192,57,43,.07); }
/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.header-phone {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
  white-space: nowrap;
}
.header-phone:hover { color: var(--red); }
/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 6px;
  transition: var(--transition);
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
/* Mobile drawer */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  padding: 20px 24px 28px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  border-top: 3px solid var(--red);
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link {
  padding: 12px 16px;
  font-size: 1rem;
}
.mobile-menu .header-phone {
  padding: 12px 16px;
  font-size: 1.05rem;
}
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: 8px; }

/* ──────────────────────────────────────────────────────────
   HERO
   ────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #7B0C00 0%, var(--red) 45%, #E8503A 100%);
  color: var(--white);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero::after {
  content: '';
  position: absolute;
  right: -120px;
  bottom: -80px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 24px;
  padding: 6px 16px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 22px;
  backdrop-filter: blur(4px);
}
.hero h1 { max-width: 750px; margin-bottom: 20px; }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.88);
  max-width: 580px;
  margin-bottom: 38px;
  line-height: 1.65;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.hero-stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}
.hero-stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  margin-top: 4px;
}

/* ──────────────────────────────────────────────────────────
   ADVANTAGE CARDS
   ────────────────────────────────────────────────────────── */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.advantage-card {
  background: var(--white);
  border: 1px solid #EBEBEB;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--red);
}
.adv-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(192,57,43,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 1.6rem;
  transition: var(--transition);
}
.advantage-card:hover .adv-icon {
  background: var(--red);
  color: var(--white);
}
.advantage-card h3 { margin-bottom: 10px; font-size: 1rem; }
.advantage-card p { font-size: .88rem; line-height: 1.6; }

/* ──────────────────────────────────────────────────────────
   PRODUCT CARDS
   ────────────────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border: 1px solid #EBEBEB;
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.product-card[hidden] { display: none; }
.product-card-header {
  background: linear-gradient(135deg, var(--gray-light) 0%, #E8E8E8 100%);
  padding: 28px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.product-mark {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  overflow-wrap: anywhere;
}
.product-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .3px;
}
.badge-three  { background: #FFF3CD; color: #856404; }
.badge-five   { background: #D1ECF1; color: #0C5460; }
.badge-white  { background: #F8D7DA; color: #721C24; }
.badge-print  { background: #D4EDDA; color: #155724; }
.product-card-body {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-title { font-size: 1rem; margin-bottom: 4px; }
.product-specs { display: flex; flex-direction: column; gap: 4px; }
.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: .84rem;
}
.spec-label { color: var(--gray-dark); }
.spec-value { font-weight: 600; color: var(--text); }
.product-price {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid #EBEBEB;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--red);
}
.price-unit { font-size: .82rem; color: var(--gray-dark); }
.product-card-footer {
  padding: 16px 24px;
  border-top: 1px solid #EBEBEB;
}
.product-card-footer .btn { width: 100%; justify-content: center; }

/* ──────────────────────────────────────────────────────────
   FILTER BUTTONS
   ────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 9px 22px;
  border-radius: 24px;
  border: 2px solid var(--gray-mid);
  background: var(--white);
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray-dark);
  transition: var(--transition);
}
.filter-btn:hover {
  border-color: var(--red);
  color: var(--red);
}
.filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ──────────────────────────────────────────────────────────
   OVERVIEW CARDS (2-column)
   ────────────────────────────────────────────────────────── */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.overview-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}
.overview-card-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}
.overview-card-img.three-layer {
  background: linear-gradient(135deg, #BDC3C7, #95A5A6);
}
.overview-card-img.five-layer {
  background: linear-gradient(135deg, #7F8C8D, #4D5A5E);
}
.overview-card-img .layer-lines {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  gap: 4px;
  opacity: .35;
}
.layer-line {
  height: 4px;
  background: var(--white);
  border-radius: 2px;
}
.layer-line.wavy {
  background: repeating-linear-gradient(90deg, transparent, transparent 6px, var(--white) 6px, var(--white) 12px);
  height: 8px;
}
.overview-card-body { padding: 28px; background: var(--white); flex: 1; }
.overview-card-body h3 { margin-bottom: 10px; }
.overview-card-body p { margin-bottom: 18px; }
.spec-list { display: flex; flex-direction: column; gap: 8px; }
.spec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
}
.spec-item i { color: var(--red); width: 16px; }

/* ──────────────────────────────────────────────────────────
   COVERAGE MAP
   ────────────────────────────────────────────────────────── */
.coverage-section { background: var(--text); color: var(--white); }
.coverage-section .section-subtitle { color: rgba(255,255,255,.65); }
.coverage-section h2 { color: var(--white); }
.coverage-section .divider { background: var(--red); }
.coverage-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}
.coverage-map-wrap {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-bg {
  position: relative;
  width: 360px;
  height: 360px;
}
.map-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.circle-700 {
  width: 340px;
  height: 340px;
  border-color: rgba(255,255,255,.15);
  background: rgba(255,255,255,.03);
}
.circle-300 {
  width: 220px;
  height: 220px;
  border-color: rgba(192,57,43,.5);
  background: rgba(192,57,43,.06);
}
.circle-100 {
  width: 100px;
  height: 100px;
  border-color: var(--red);
  background: rgba(192,57,43,.15);
}
.map-center {
  width: 18px;
  height: 18px;
  background: var(--red);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 4px rgba(192,57,43,.4);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}
.city-dot {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
}
.city-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
}
.city-dot.red::before { background: var(--red-light); }
.city-torzhok { bottom: 44%; right: 38%; }
.city-tver    { bottom: 20%; left: 40%; }
.city-moscow  { bottom: -4%;  left: 26%; font-size: .82rem; }
.city-spb     { top: 6%;     right: 20%; }
.city-novgorod{ top: 20%;    right: 4%; }
.city-yaroslavl { top: 38%; left: 4%; }
.coverage-info { display: flex; flex-direction: column; gap: 28px; }
.coverage-stat {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.coverage-stat:last-child { border-bottom: none; padding-bottom: 0; }
.cov-icon {
  width: 52px;
  height: 52px;
  background: rgba(192,57,43,.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--red-light);
  flex-shrink: 0;
}
.cov-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.cov-label {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  margin-top: 4px;
  line-height: 1.45;
}

/* ──────────────────────────────────────────────────────────
   CTA BANNER
   ────────────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%);
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,.82); font-size: 1.05rem; margin-bottom: 32px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }

/* ──────────────────────────────────────────────────────────
   CALCULATOR
   ────────────────────────────────────────────────────────── */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
.calc-steps { display: flex; gap: 0; margin-bottom: 32px; }
.calc-step-tab {
  flex: 1;
  padding: 14px;
  text-align: center;
  background: var(--gray-light);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .88rem;
  color: var(--gray-dark);
  border-bottom: 3px solid var(--gray-mid);
  transition: var(--transition);
  cursor: pointer;
}
.calc-step-tab:hover { color: var(--red); background: #fff; }
.calc-step-tab:focus-visible { outline: 3px solid rgba(192,57,43,.3); outline-offset: -3px; }
.calc-step-tab.active {
  background: var(--white);
  color: var(--red);
  border-bottom-color: var(--red);
}
.calc-step-tab .step-num {
  width: 24px;
  height: 24px;
  background: var(--gray-mid);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  margin-right: 8px;
  color: var(--white);
  transition: var(--transition);
}
.calc-step-tab.active .step-num { background: var(--red); }
.calc-step-hint { margin: -20px 0 16px; color: var(--gray-dark); font-size: .8rem; line-height: 1.5; }
.calc-step-hint strong { color: var(--red-dark); }
.calc-panel { display: none; }
.calc-panel.active { display: block; }
.calc-card {
  background: var(--white);
  border: 1px solid #EBEBEB;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
/* Form elements */
.form-group { margin-bottom: 22px; }
fieldset.form-group { min-width: 0; margin-inline: 0; padding: 0; border: 0; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: 8px;
  color: var(--text);
}
.form-label span { color: var(--red); }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-mid);
  border-radius: 6px;
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--red); }
.form-control.error { border-color: #E74C3C; }
.form-hint { font-size: .78rem; color: var(--gray-dark); margin-top: 5px; }
.form-error { font-size: .78rem; color: var(--red); margin-top: 5px; display: none; }
.form-control.error + .form-error { display: block; }
/* Dimensions group */
.dim-group { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.dimension-configurator {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(250px, .9fr);
  gap: 22px;
  margin-bottom: 24px;
}
.box-visual-card,
.dimension-controls {
  min-width: 0;
  border: 1px solid #e9e5e2;
  border-radius: 12px;
  background: #fff;
}
.box-visual-card {
  padding: 20px 18px 14px;
  background-color: #fbf9f7;
  background-image: linear-gradient(rgba(90,75,65,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(90,75,65,.045) 1px, transparent 1px);
  background-size: 24px 24px;
}
.box-visual-heading,
.dimension-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.box-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--red);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .1em;
}
.box-visual-heading h2 { font-size: 1.1rem; }
.box-units {
  display: inline-grid;
  min-width: 40px;
  min-height: 32px;
  place-items: center;
  border: 1px solid #e4d8d0;
  border-radius: 7px;
  background: white;
  color: var(--gray-dark);
  font-size: .76rem;
  font-weight: 700;
}
.box-diagram { display: block; width: 100%; height: auto; margin: 4px 0 0; overflow: visible; }
.box-grid path { fill: none; stroke: #cfc7c1; stroke-width: .7; opacity: .52; }
#box-top { fill: url(#box-top-fill); stroke: #9e6247; stroke-width: 1.5; }
#box-side { fill: url(#box-side-fill); stroke: #9e6247; stroke-width: 1.5; }
#box-front { fill: url(#box-front-fill); stroke: #9e6247; stroke-width: 1.5; }
.box-measurements line { stroke: var(--red); stroke-width: 1.5; }
.box-measurements text { fill: #8f2a20; font: 700 12px 'Open Sans', sans-serif; paint-order: stroke; stroke: #fbf9f7; stroke-width: 5px; stroke-linejoin: round; }
.box-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: -2px; }
.box-legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--gray-dark); font-size: .72rem; }
.legend-mark { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.legend-width { background: #df936e; }
.legend-height { background: #8b6351; }
.box-visual-note { margin-top: 10px; color: var(--gray-dark); font-size: .74rem; text-align: center; }
.dimension-controls { padding: 20px; }
.dimension-controls-heading { margin-bottom: 16px; }
.dimension-controls-heading h3 { margin-bottom: 4px; font-size: 1rem; }
.dimension-controls-heading p { font-size: .78rem; line-height: 1.45; }
.dimension-control { padding: 13px 0 10px; border-top: 1px solid #eee9e5; }
.dimension-field-head { margin-bottom: 9px; }
.dimension-field-head > label { font-size: .84rem; font-weight: 700; }
.dimension-number-wrap { display: flex; align-items: center; gap: 7px; }
.dimension-number-wrap .form-control { width: 104px; padding: 8px 10px; text-align: right; font-variant-numeric: tabular-nums; }
.dimension-number-wrap > span { color: var(--gray-dark); font-size: .78rem; }
.dimension-range-label { display: block; margin-bottom: 0; color: var(--gray-dark); font-size: .72rem; }
.dimension-range {
  display: block;
  width: 100%;
  min-height: 34px;
  margin: 0;
  accent-color: var(--red);
  cursor: pointer;
  touch-action: pan-y;
}
.dimension-range:focus-visible { outline: 3px solid rgba(192,57,43,.3); outline-offset: 3px; border-radius: 8px; }
.dimension-range-scale { display: flex; justify-content: space-between; margin-top: -4px; color: #777; font-size: .64rem; font-variant-numeric: tabular-nums; }
.dimension-caveat { display: flex; gap: 9px; margin-top: 12px; padding: 10px; border-radius: 8px; background: #f8f5f2; color: var(--gray-dark); font-size: .72rem; line-height: 1.45; }
.dimension-caveat i { margin-top: 2px; color: var(--red); }
/* Radio cards */
.radio-cards { display: flex; flex-wrap: wrap; gap: 12px; }
.radio-card {
  position: relative;
}
.radio-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-card label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 2px solid var(--gray-mid);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: .88rem;
  transition: var(--transition);
  background: var(--white);
}
.radio-card input:checked + label {
  border-color: var(--red);
  background: rgba(192,57,43,.06);
  color: var(--red);
}
.radio-card input:focus-visible + label { outline: 3px solid var(--red); outline-offset: 3px; }
.radio-card label i { font-size: 1.1rem; }
/* Result panel */
.result-panel {
  background: var(--text);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.result-panel h3 { color: var(--white); margin-bottom: 20px; }
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: .9rem;
}
.result-row:last-of-type { border-bottom: none; }
.result-label { color: rgba(255,255,255,.65); }
.result-value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--white);
}
.result-total {
  background: var(--red);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  margin: 18px 0;
}
.result-total-label { font-size: .82rem; color: rgba(255,255,255,.8); margin-bottom: 4px; }
.result-total-val {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
}
.result-total-unit { font-size: .82rem; color: rgba(255,255,255,.75); }
.warn-box {
  display: flex;
  gap: 10px;
  background: rgba(255,193,7,.15);
  border: 1px solid rgba(255,193,7,.4);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  font-size: .82rem;
  color: #FFC107;
  display: none;
}
.warn-box.visible { display: flex; }
.warn-box i { flex-shrink: 0; }
/* Nav buttons */
.calc-nav { display: flex; gap: 12px; margin-top: 24px; }
.calc-nav .btn { flex: 1; justify-content: center; }

/* ──────────────────────────────────────────────────────────
   CONTACT FORM
   ────────────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.contact-info-block { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(192,57,43,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item h4 { margin-bottom: 4px; }
.contact-item p { font-size: .9rem; }
.contact-item a { color: var(--gray-dark); }
.contact-item a:hover { color: var(--red); }
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid #EBEBEB;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .form-group { margin-bottom: 18px; }
.form-grid .form-group.full { grid-column: 1 / -1; }
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.form-success.visible { display: flex; }
.success-icon {
  width: 72px;
  height: 72px;
  background: rgba(39,174,96,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #27AE60;
  font-size: 2rem;
}
.form-success h3 { font-size: 1.3rem; }
.form-success p { color: var(--gray-dark); }
/* Map placeholder */
.map-placeholder {
  background: #E8E8E8;
  border-radius: var(--radius);
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-mid);
}
.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(200,200,200,.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,200,200,.4) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-pin-icon { font-size: 3rem; color: var(--red); position: relative; z-index: 1; }
.map-placeholder p { font-size: .9rem; color: var(--gray-dark); position: relative; z-index: 1; font-weight: 600; }

/* ──────────────────────────────────────────────────────────
   ABOUT PAGE
   ────────────────────────────────────────────────────────── */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.capability-card {
  background: var(--white);
  border: 1px solid #EBEBEB;
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.capability-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.cap-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  background: rgba(192,57,43,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 1.5rem;
}
.capability-card h3 { font-size: .98rem; margin-bottom: 8px; }
.capability-card p { font-size: .84rem; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.photo-placeholder {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #E0E0E0, #C8C8C8);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--gray-dark);
  font-size: .82rem;
}
.photo-placeholder i { font-size: 2rem; color: var(--gray-mid); }
.reasons-list { display: flex; flex-direction: column; gap: 20px; }
.reason-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--red);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.reason-item:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.reason-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--red);
  opacity: .25;
  line-height: 1;
  min-width: 40px;
}
.reason-item h4 { margin-bottom: 6px; }
.reason-item p { font-size: .9rem; }
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-mid);
}
.timeline-item {
  position: relative;
  padding-bottom: 32px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--red);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--red);
}
.timeline-year {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--red);
  font-size: .88rem;
  margin-bottom: 4px;
}
.timeline-item h4 { margin-bottom: 4px; }
.timeline-item p { font-size: .88rem; }

/* ──────────────────────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────────────────────── */
.site-footer {
  background: #1A1A1A;
  color: rgba(255,255,255,.75);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo-name { color: var(--white); }
.footer-brand .logo-sub { color: rgba(255,255,255,.4); }
.footer-desc {
  font-size: .88rem;
  line-height: 1.7;
  margin: 16px 0 20px;
  color: rgba(255,255,255,.55);
}
.footer-phone {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-phone i { color: var(--red); }
.footer-col h4 {
  color: var(--white);
  font-size: .92rem;
  margin-bottom: 18px;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links a::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-contacts { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-row {
  display: flex;
  gap: 12px;
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  align-items: flex-start;
}
.footer-contact-row i { color: var(--red); width: 16px; margin-top: 2px; }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.35); }
.footer-bottom a:hover { color: var(--white); }

/* ──────────────────────────────────────────────────────────
   SCROLL ANIMATIONS
   ────────────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-in-right.visible { opacity: 1; transform: translateX(0); }
.stagger-1 { transition-delay: .1s; }
.stagger-2 { transition-delay: .2s; }
.stagger-3 { transition-delay: .3s; }
.stagger-4 { transition-delay: .4s; }

/* ──────────────────────────────────────────────────────────
   PAGE HERO (inner pages)
   ────────────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #7B0C00 0%, var(--red) 60%, #D45442 100%);
  color: var(--white);
  padding: 60px 0;
}
.page-hero h1 { margin-bottom: 10px; font-size: clamp(1.6rem, 4vw, 2.6rem); }
.page-hero p { color: rgba(255,255,255,.82); font-size: 1.05rem; }
.site-note { padding: 16px 20px; margin-bottom: 28px; border-left: 4px solid var(--red); background: #fff3ef; color: var(--text); }
.content-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
.content-grid p { margin: 16px 0; }
.info-panel { padding: 32px; background: var(--gray-light); border-radius: var(--radius); }
.feature-list { list-style: disc; padding-left: 20px; margin-top: 18px; line-height: 2; }
.result-disclaimer { color: var(--white); font-size: .8rem; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.page-hero :focus-visible, .result-panel :focus-visible { outline-color: var(--white); }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* ──────────────────────────────────────────────────────────
   WORKING HOURS
   ────────────────────────────────────────────────────────── */
.hours-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hours-table tr { border-bottom: 1px solid #EBEBEB; }
.hours-table td { padding: 10px 0; }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--text); }
.hours-open { color: #27AE60; }

/* ──────────────────────────────────────────────────────────
   MISC UTILITIES
   ────────────────────────────────────────────────────────── */
.text-red { color: var(--red); }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-dark);
  display: none;
}
.no-results i { font-size: 3rem; margin-bottom: 16px; display: block; color: var(--gray-mid); }

/* ──────────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .coverage-inner { grid-template-columns: 1fr; }
  .coverage-map-wrap { height: 300px; }
  .map-bg { width: 280px; height: 280px; }
  .circle-700 { width: 270px; height: 270px; }
  .circle-300 { width: 175px; height: 175px; }
  .circle-100 { width: 80px; height: 80px; }
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .main-nav, .header-right .btn { display: none; }
  .hamburger { display: flex; }
  .overview-grid { grid-template-columns: 1fr; }
  .calc-layout { grid-template-columns: 1fr; }
  .result-panel { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-phone { font-size: .85rem; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .header-right { display: none; }
  .fade-in-left, .fade-in-right { transform: none; }
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .advantages-grid { grid-template-columns: 1fr; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .dim-group { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .form-group.full { grid-column: 1; }
  .hero-stats { gap: 24px; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .calc-steps { flex-direction: column; }
  .dimension-configurator { grid-template-columns: 1fr; gap: 14px; }
  .box-visual-card { padding: 16px 12px 12px; }
  .dimension-controls { padding: 16px; }
}
