/* ООО ЛИДЕР ИМПОРТ — Лендинг на базе Modern HTML Template */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark: #0a1628;
  --dark-alt: #142840;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --white: #fff;
  --text: #1e293b;
  --muted: #64748b;
  /* Высота фиксированной шапки — с запасом под лого и кнопки */
  --header-height: clamp(5rem, 4.5rem + 2vw, 6.5rem);
  font-size: clamp(14px, 2vw, 18px);
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3.75rem);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: var(--white);
  padding: 24px 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  transition: color 0.2s;
}

.nav-link:hover { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 18px 36px;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-accent {
  background: var(--accent);
  color: var(--dark);
}

.btn-accent:hover { background: var(--accent-hover); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 3px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
}

.btn-lg { padding: 22px 44px; font-size: 1.3rem; }

.btn-block { width: 100%; padding: 20px; font-size: 1.2rem; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.burger span {
  width: 22px;
  height: 2px;
  background: var(--white);
}

.burger-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger-open span:nth-child(2) { opacity: 0; }
.burger-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(10, 22, 40, 0.85), rgba(20, 40, 64, 0.8)),
    url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?w=1920') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 22, 40, 0.3), rgba(10, 22, 40, 0.95));
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 48px;
}

.hero-buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections — полноэкранные блоки */
.section {
  padding: 120px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.section > .container {
  width: 100%;
}

.section-light {
  background: #f8fafc;
}

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin-bottom: 24px;
}

.section-title-light { color: var(--white); }

.section-intro {
  text-align: center;
  color: var(--muted);
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.2rem;
}

/* Calculator — адаптивный, блоки друг под другом, rem/em */
.calc-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.calc-section .section-intro {
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

/* Режимы: Калькулятор / Отслеживание */
.calc-mode-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.calc-mode-tab {
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.calc-mode-tab:hover { color: var(--dark); background: #f1f5f9; }

.calc-mode-tab.active {
  color: var(--accent);
  background: rgba(245, 158, 11, 0.12);
}

.calc-mode-panel {
  display: none;
  flex-direction: column;
  gap: clamp(1rem, 3vw, 1.5rem);
}

.calc-mode-panel.active {
  display: flex;
}

/* Блок отслеживания */
.calc-track-block {
  padding: clamp(1rem, 3vw, 1.5rem) 0;
  text-align: center;
}

.calc-track-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.calc-track-desc {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.calc-track-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 0 auto 0.75rem;
}

.calc-track-input {
  flex: 1;
  min-width: 12rem;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.2s;
}

.calc-track-input:focus { border-color: var(--accent); }

.calc-track-btn {
  white-space: nowrap;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.calc-track-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.calc-track-result { margin-top: 1.5rem; padding: 1.25rem; border-radius: 0.75rem; text-align: left; max-width: 28rem; margin-left: auto; margin-right: auto; }
.calc-track-error { background: #fef2f2; border: 2px solid #fecaca; color: #b91c1c; }
.calc-track-error .calc-track-hint { color: #991b1b; }
.calc-track-success { background: #f0fdf4; border: 2px solid #bbf7d0; }
.calc-track-num { font-weight: 700; font-size: 1.1rem; color: var(--dark); margin-bottom: 0.5rem; }
.calc-track-status { margin: 0.5rem 0; }
.calc-track-route { color: var(--muted); margin: 0.5rem 0; }
.calc-track-dates { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1.5rem; margin: 1rem 0 0; font-size: 0.9rem; }
.calc-track-dates dt { color: var(--muted); }
.calc-track-dates dd { margin: 0; }
.status-badge { display: inline-block; padding: 6px 12px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; }
.status-1 { background: #dbeafe; color: #1d4ed8; }
.status-2 { background: #fef3c7; color: #b45309; }
.status-3 { background: #e0e7ff; color: #4338ca; }
.status-4 { background: #fce7f3; color: #be185d; }
.status-5 { background: #d1fae5; color: #047857; }
.status-6 { background: #fee2e2; color: #b91c1c; }
.status-7 { background: #f1f5f9; color: #64748b; }

.calc-wrapper {
  max-width: 40rem;
  margin: 0 auto;
  width: 100%;
}

/* Блоки калькулятора — вертикальный стек (мобильные, планшеты) */
.calc-main {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--white);
  border-radius: clamp(1rem, 3vw, 1.5rem);
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: 0 0.5rem 2.5rem rgba(10, 22, 40, 0.12);
  border: 2px solid rgba(245, 158, 11, 0.25);
  position: relative;
  overflow: hidden;
}

.calc-main::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0.25rem;
  background: linear-gradient(90deg, var(--accent), #fbbf24);
  border-radius: 1rem 1rem 0 0;
}

.calc-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.calc-tab {
  padding: 0.6rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.calc-tab:hover { color: var(--dark); }

.calc-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.calc-tab-panel {
  display: none;
}

.calc-tab-panel.active {
  display: block;
}

.calc-dimensions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.calc-dimensions input {
  width: 5rem;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 1em;
  font-weight: 600;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  text-align: center;
}

.calc-dimensions input:focus {
  outline: none;
  border-color: var(--accent);
}

.calc-dim-sep {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--muted);
}

.calc-dim-hint {
  margin: 0.4rem 0 0;
  font-size: 0.8em;
  color: var(--muted);
}

.calc-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.calc-tab {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.calc-tab:hover { color: var(--dark); }
.calc-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.calc-tab-panel {
  display: none;
}
.calc-tab-panel.active {
  display: block;
}

.calc-dimensions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.calc-dimensions input {
  width: 5rem;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 1em;
  font-weight: 600;
  border: 2px solid #e2e8f0;
  border-radius: 0.375rem;
}
.calc-dimensions input:focus {
  outline: none;
  border-color: var(--accent);
}
.calc-dim-sep { font-weight: 700; color: var(--muted); font-size: 1.1em; }
.calc-dim-hint { font-size: 0.8em; color: var(--muted); margin-top: 0.4rem; margin-bottom: 0; }

.calc-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid #e2e8f0;
}
.calc-tab {
  padding: 0.6rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.calc-tab:hover { color: var(--dark); }
.calc-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.calc-tab-panel {
  display: none;
}
.calc-tab-panel.active {
  display: block;
}

.calc-params {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 3vw, 1.5rem);
}

.calc-dimensions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.calc-dimensions input {
  width: 5rem;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 1em;
  font-weight: 600;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  transition: border-color 0.2s;
}
.calc-dimensions input:focus {
  outline: none;
  border-color: var(--accent);
}
.calc-dim-sep {
  font-weight: 700;
  color: var(--muted);
  font-size: 1.1em;
}
.calc-dim-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.4rem;
  margin-bottom: 0;
}

.calc-param-group label {
  display: block;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.calc-param-group select {
  width: 100%;
  max-width: 20rem;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 1em;
  font-weight: 600;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.calc-param-group select:hover,
.calc-param-group select:focus {
  border-color: var(--accent);
}

.calc-input-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.calc-input-row input[type="range"] {
  flex: 1;
  min-width: 6rem;
  height: 0.5rem;
  -webkit-appearance: none;
  appearance: none;
  background: #e2e8f0;
  border-radius: 0.25rem;
}

.calc-input-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0.125rem 0.5rem rgba(245, 158, 11, 0.4);
  transition: transform 0.2s;
}

.calc-input-row input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.calc-input-row input[type="number"] {
  width: 5rem;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 1em;
  font-weight: 600;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}

.calc-input-row input[type="number"]:focus {
  border-color: var(--accent);
}

.calc-unit {
  font-size: 0.9em;
  color: var(--muted);
  font-weight: 500;
}

.calc-route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.calc-route input {
  flex: 1;
  min-width: 8rem;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1em;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.2s;
}

.calc-route input:focus {
  border-color: var(--accent);
}

.calc-route-arrow {
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  width: 100%;
  text-align: center;
  order: -1;
}

@media (min-width: 36em) {
  .calc-route-arrow { width: auto; order: 0; }
}

.calc-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr));
  gap: 0.5rem;
}

.calc-method {
  cursor: pointer;
  margin: 0;
}

.calc-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calc-method-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
  padding: 0.75rem 0.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  transition: all 0.25s ease;
  background: #fafafa;
}

.calc-method-card:hover {
  border-color: #cbd5e1;
  background: #fff;
  transform: translateY(-0.125rem);
}

.calc-method input:checked + .calc-method-card {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.06));
  box-shadow: 0 0.25rem 0.75rem rgba(245, 158, 11, 0.25);
}

.calc-method-icon { font-size: 1.25em; line-height: 1; }
.calc-method-name { font-size: 0.95em; font-weight: 700; color: var(--dark); }
.calc-method-meta { font-size: 0.7em; color: var(--muted); }

/* Результат — ниже параметров */
.calc-output {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 3vw, 1.75rem);
}

.calc-price-box {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.03));
  border: 2px solid rgba(245, 158, 11, 0.3);
  border-radius: 1rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  text-align: center;
  transition: transform 0.3s ease;
}

.calc-price-box:hover {
  transform: scale(1.01);
}

.calc-price-label {
  font-size: 0.8em;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5em;
}

.calc-price-value {
  font-size: clamp(1.75rem, 6vw, 3rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
  text-shadow: 0 0 1.25rem rgba(245, 158, 11, 0.2);
  transition: transform 0.2s;
}

.calc-price-value.calc-price-animate {
  animation: calc-pulse 0.5s ease;
}

@keyframes calc-pulse {
  0% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.calc-price-hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 12px 0 8px;
}

.calc-volume-hint {
  font-size: 0.8em;
  color: var(--muted);
  margin: 0.4rem 0 0;
  line-height: 1.4;
}

.calc-price-note {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.calc-lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.calc-lead-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.calc-lead-form input {
  padding: 14px 18px;
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
}

.calc-lead-form input:focus {
  border-color: var(--accent);
}

.calc-captcha-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.calc-captcha-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.calc-captcha-box img {
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #f8fafc;
}

.calc-captcha-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  color: var(--muted);
  text-decoration: none;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  transition: color 0.2s, border-color 0.2s;
}

.calc-captcha-refresh:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.calc-captcha-box input {
  width: 6rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}

.calc-honeypot {
  display: none !important;
}

.calc-success {
  display: none;
  text-align: center;
  padding: 24px 0;
}

.calc-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
  font-size: 2rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 20px;
  animation: calc-success-pop 0.5s ease;
}

@keyframes calc-success-pop {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.calc-success h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.calc-success p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
}

.service-card {
  background: var(--white);
  padding: 44px 36px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 1.2rem;
  color: var(--muted);
}

/* Advantages */
.advantages-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px 64px;
}

.advantages-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.4rem;
  font-weight: 500;
}

.adv-icon { font-size: 2.2rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info address {
  font-style: normal;
  color: var(--muted);
  margin-top: 16px;
}

.contact-info a {
  color: var(--accent);
  text-decoration: none;
}

.contact-info a:hover { text-decoration: underline; }

.map-placeholder {
  height: 280px;
  background: var(--dark-alt);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input {
  padding: 22px 24px;
  font-family: inherit;
  font-size: 1.2rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  outline: none;
}

.contact-form input:focus { border-color: var(--accent); }

/* Footer */
.footer {
  position: relative;
  background: var(--dark);
  color: var(--white);
  padding: 40px 0;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(10, 22, 40, 0.88), rgba(10, 22, 40, 0.82));
  background-position: center, left center;
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 100%, auto 100%;
  z-index: 0;
  pointer-events: none;
}
.footer .container {
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 1.2rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 1.15rem;
}

.footer a:hover { color: var(--accent); }

.footer-req {
  width: 100%;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.footer-req p { margin: 0.25rem 0; }

/* ===== Responsive — адаптив всего приложения ===== */

/* Full HD и больше — калькулятор в формате 16:9, компактная горизонтальная раскладка */
@media (min-width: 1280px) {
  .calc-section .calc-wrapper {
    max-width: min(90vw, 1600px);
  }
  .calc-main {
    padding: 1.5rem 2rem;
    max-height: min(56.25vw, 85vh);
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .calc-mode-panel[data-mode="calculator"].active {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 1.25rem 2rem;
    flex: 1;
    min-height: 0;
    align-content: start;
  }
  .calc-mode-panel .calc-tabs { grid-column: 1 / -1; margin-bottom: 0; }
  .calc-mode-panel .calc-params {
    grid-column: 1;
    gap: 0.85rem;
    overflow-y: auto;
    min-height: 0;
  }
  .calc-mode-panel .calc-output {
    grid-column: 2;
    grid-row: 2;
    gap: 1rem;
    min-height: 0;
    overflow-y: auto;
  }
  .calc-mode-panel[data-mode="tracking"].active {
    flex: 1;
    justify-content: center;
  }
  .calc-param-group label { font-size: 0.8em; margin-bottom: 0.35em; }
  .calc-input-row input[type="number"] { width: 4.5rem; padding: 0.4rem 0.5rem; font-size: 0.95em; }
  .calc-input-row input[type="range"] { min-width: 4rem; }
  .calc-route input { padding: 0.4rem 0.75rem; font-size: 0.9em; }
  .calc-methods { grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
  .calc-method-card { padding: 0.6rem 0.5rem; }
  .calc-method-meta { font-size: 0.65em; }
  .calc-price-box { padding: 1rem 1.25rem; }
  .calc-price-value { font-size: 2rem; }
  .calc-price-hint, .calc-price-note { font-size: 0.8rem; margin: 0.4em 0; }
  .calc-lead-form input { padding: 0.5rem 0.75rem; font-size: 0.9rem; }
  .calc-dimensions input { width: 4rem; padding: 0.4rem 0.5rem; font-size: 0.9em; }
  .calc-dim-hint { font-size: 0.75em; margin-top: 0.25rem; }
}

/* Планшет (до 1024px) */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .section { padding: 80px 0; min-height: auto; }
  .calc-main {
    padding: 40px 32px;
    gap: 36px;
  }
  .calc-methods { grid-template-columns: 1fr 1fr; }
  .section-intro { margin-bottom: 36px; font-size: 1.1rem; }
  .service-card { padding: 36px 28px; }
}

/* Планшет вертикально и крупные телефоны (до 768px) */
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .section { padding: 60px 0; min-height: auto; }

  /* Шапка: бургер-меню */
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
  }
  .nav.nav-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .burger { display: flex; }

  /* Калькулятор — одна колонка, компактнее */
  .calc-main { padding: 28px 24px; gap: 28px; }
  .calc-mode-panel[data-mode="calculator"].active {
    display: flex;
    flex-direction: column;
  }
  .calc-output { position: static; }
  .calc-price-value {
    font-size: 2.5rem;
  }
  .calc-methods { grid-template-columns: 1fr 1fr; gap: 10px; }
  .calc-method-card { padding: 14px 10px; }
  .calc-route { flex-wrap: wrap; }
  .calc-route-arrow { width: 100%; text-align: center; order: 0; }

  .calc-track-form { flex-direction: column; }
  .calc-track-btn { width: 100%; }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .service-card { padding: 28px 24px; }
  .service-icon { font-size: 2.5rem; }
  .service-card h3 { font-size: 1.35rem; }
  .service-card p { font-size: 1.05rem; }

  .advantages-list {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .advantages-list li { font-size: 1.2rem; }
  .adv-icon { font-size: 1.8rem; }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* Телефоны (до 480px) */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .section-title { font-size: 1.75rem; }
  .section-intro { font-size: 1rem; margin-bottom: 28px; }

  .header { padding: 16px 0; }
  .logo { font-size: 1.35rem; }
  .nav { top: 60px; padding: 20px 16px; }

  /* Калькулятор — ещё компактнее */
  .calc-main { padding: 20px 16px; border-radius: 16px; }
  .calc-section .section-intro { margin-bottom: 24px; }
  .calc-param-group label { font-size: 0.9rem; margin-bottom: 10px; }
  .calc-input-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .calc-input-row input[type="number"] { width: 80px; font-size: 0.95rem; }
  .calc-route {
    flex-direction: column;
    gap: 8px;
  }
  .calc-route input { padding: 14px 16px; font-size: 1rem; }
  .calc-route-arrow { transform: rotate(-90deg); }
  .calc-methods { grid-template-columns: 1fr; }
  .calc-method-card { padding: 16px 12px; }
  .calc-price-box { padding: 20px 16px; }
  .calc-price-value { font-size: 2rem; }
  .calc-price-hint, .calc-price-note { font-size: 0.85rem; }
  .calc-lead-form input { padding: 14px 16px; }

  .hero-buttons { flex-direction: column; gap: 12px; }
  .hero-buttons .btn { width: 100%; }
  .hero-title { font-size: 1.75rem; margin-bottom: 16px; }
  .hero-subtitle { font-size: 1.1rem; margin-bottom: 28px; }

  .service-card { padding: 24px 18px; }
  .service-icon { font-size: 2rem; }
  .service-card h3 { font-size: 1.2rem; }
  .advantages-list li { font-size: 1.1rem; gap: 12px; }
  .footer-inner { padding: 20px 16px; font-size: 1rem; }
}

/* Очень узкие экраны (до 360px) */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .calc-main { padding: 16px 12px; }
  .calc-price-value { font-size: 1.75rem; }
  .btn { padding: 14px 24px; font-size: 1rem; }
  .btn-lg { padding: 18px 28px; font-size: 1.1rem; }
}

/* Фиксированный header (.site-body — без :has(), совместимость со всеми браузерами) */
.site-body > main:not(.section) {
  padding-top: var(--header-height);
}

/* Не центрировать блок по вертикали — иначе калькулятор «поднимается» под шапку */
.site-body > main:not(.section) > .section:first-child {
  align-items: flex-start;
  padding-top: clamp(1.25rem, 3vw, 2.5rem);
  padding-bottom: clamp(2rem, 8vw, 7.5rem);
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
}

.site-body > main.section.privacy-page {
  padding-top: calc(var(--header-height) + clamp(1.5rem, 4vw, 3rem));
  padding-bottom: clamp(2rem, 8vw, 7.5rem);
  box-sizing: border-box;
}

.site-body main [id],
.site-body .section[id] {
  scroll-margin-top: calc(var(--header-height) + 0.5rem);
}
