/* ==========================================================================
   Установочный центр «САМУРАЙ» (samurai14.ru, г. Якутск)
   Дизайн-система: «Японский Самурай × Северная Якутия (Саха)»
   Без внешних Google Fonts CDN (100% соответствие ст. 12 ФЗ-152 РФ)
   ========================================================================== */

:root {
  --bg-obsidian: #080b10;
  --bg-permafrost: #0e141f;
  --bg-card: #131b29;
  --bg-card-elevated: #182234;
  --bg-glass: rgba(11, 15, 24, 0.86);

  --samurai-red: #c81e2b;
  --samurai-red-hover: #e22534;
  --samurai-red-soft: rgba(200, 30, 43, 0.16);

  --yakut-ice: #7cc6fe;
  --yakut-ice-soft: rgba(124, 198, 254, 0.14);
  --yakut-aurora: #3de0b6;
  --yakut-silver: #d8e2ec;
  --yakut-gold: #cfa968;

  --text-primary: #f3f7fb;
  --text-secondary: #a2b0c4;
  --text-muted: #6e7f96;

  --border-subtle: rgba(216, 226, 236, 0.11);
  --border-strong: rgba(216, 226, 236, 0.24);
  --border-ice: rgba(124, 198, 254, 0.36);

  --shadow-deep: 0 22px 50px rgba(0, 0, 0, 0.52);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: "Trebuchet MS", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg-obsidian);
  background-image:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(200, 30, 43, 0.12), transparent 60%),
    radial-gradient(ellipse 70% 45% at 88% 5%, rgba(124, 198, 254, 0.09), transparent 65%);
  color: var(--text-primary);
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--samurai-red);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus {
  left: 12px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== ЯКУТСКИЙ ОРНАМЕНТ «ХАРЫСХАЛ» & РАЗДЕЛИТЕЛИ ==================== */

.ornament-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 0;
  opacity: 0.85;
}

.ornament-divider::before,
.ornament-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 226, 236, 0.22), rgba(200, 30, 43, 0.55));
}
.ornament-divider::after {
  background: linear-gradient(90deg, rgba(200, 30, 43, 0.55), rgba(216, 226, 236, 0.22), transparent);
}

/* ==================== КНОПКИ С ГЕОМЕТРИЕЙ СРЕЗА КАТАНЫ ==================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  text-align: center;
  line-height: 1.25;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn:focus-visible {
  outline: 2px solid var(--yakut-ice);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, #d92230 0%, #a91521 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(200, 30, 43, 0.35);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #eb2a39 0%, #be1926 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(226, 37, 52, 0.45);
}

.btn-ice {
  background: rgba(124, 198, 254, 0.12);
  color: var(--text-primary);
  border-color: rgba(124, 198, 254, 0.42);
}
.btn-ice:hover:not(:disabled) {
  background: rgba(124, 198, 254, 0.22);
  border-color: var(--yakut-ice);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-outline:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--yakut-silver);
}

.btn-sm {
  padding: 9px 15px;
  font-size: 0.86rem;
}

/* ==================== ДВУХУРОВНЕВЫЙ ТОП САЙТА (TOPBAR + STICKY NAVBAR) ==================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(9, 13, 21, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216, 226, 236, 0.14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.42);
}

/* Верхняя информационная планка (адрес бокса №2, живое время Якутска, WhatsApp, 2ГИС) */
.topbar {
  background: linear-gradient(90deg, #05070b 0%, #0b101a 50%, #05070b 100%);
  border-bottom: 1px solid rgba(124, 198, 254, 0.14);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.topbar-item svg {
  color: var(--yakut-ice);
  flex-shrink: 0;
}

.topbar-box-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  background: rgba(200, 30, 43, 0.22);
  border: 1px solid rgba(200, 30, 43, 0.48);
  color: #ff8b94;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.topbar-sep {
  width: 1px;
  height: 12px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--yakut-silver);
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.topbar-link:hover {
  color: var(--yakut-ice);
}

.work-status-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--yakut-silver);
  font-weight: 600;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yakut-aurora);
  box-shadow: 0 0 8px var(--yakut-aurora);
  flex-shrink: 0;
}
.status-dot.closed {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

/* Основная навигационная полоса */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(200, 30, 43, 0.45));
}

.brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.1;
  color: #ffffff;
}

.brand-sub {
  font-size: 0.73rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Капсульное меню навигации */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.main-nav a {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--yakut-silver);
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.main-nav a:hover {
  background: rgba(124, 198, 254, 0.13);
  color: #ffffff;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Неразрывная капсула телефона (гарантированно в 1 строку на любом экране) */
.header-phone-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(216, 226, 236, 0.18);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  white-space: nowrap !important;
  flex-shrink: 0;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.header-phone-chip:hover {
  border-color: var(--yakut-ice);
  background: rgba(124, 198, 254, 0.12);
  transform: translateY(-1px);
}

.header-phone-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(200, 30, 43, 0.22);
  border: 1px solid rgba(200, 30, 43, 0.5);
  color: #ff6b76;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-drawer {
  display: none;
  padding: 16px 20px 22px;
  background: var(--bg-permafrost);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-strong);
}
.mobile-drawer.open {
  display: block;
}
.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.mobile-drawer-links a {
  padding: 9px 0;
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
}

/* ==================== HERO СЕКЦИЯ ==================== */

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: 64px 0 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.56;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #080b10 0%, rgba(8, 11, 16, 0.93) 44%, rgba(8, 11, 16, 0.58) 76%, rgba(8, 11, 16, 0.78) 100%),
    linear-gradient(180deg, rgba(8, 11, 16, 0.45) 0%, transparent 30%, #080b10 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: 36px;
  align-items: center;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(124, 198, 254, 0.1);
  border: 1px solid rgba(124, 198, 254, 0.32);
  color: var(--yakut-ice);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 3.8vw, 3.3rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.hero h1 .accent-red {
  color: #f03240;
}

.hero h1 .accent-ice {
  color: var(--yakut-ice);
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 610px;
  margin: 0 0 26px;
}

.hero-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.hero-pillars li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--yakut-silver);
}

.pillar-diamond {
  color: var(--samurai-red-hover);
  font-size: 0.95rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.trust-item strong {
  color: #ffffff;
  font-weight: 800;
}

/* Карточка флагмана StarLine E96 v2 ECO на первом экране */
.flagship-card {
  position: relative;
  background: linear-gradient(160deg, rgba(24, 34, 52, 0.94) 0%, rgba(14, 20, 31, 0.97) 100%);
  border: 1px solid rgba(216, 226, 236, 0.2);
  border-top: 3px solid var(--samurai-red);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-deep);
}

.flagship-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--samurai-red-soft);
  border: 1px solid rgba(200, 30, 43, 0.5);
  color: #ff6b76;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.flagship-title {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.flagship-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.flagship-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.88rem;
}

.flagship-specs li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--yakut-silver);
}

.spec-check {
  color: var(--yakut-ice);
  font-weight: 800;
  flex-shrink: 0;
}

.flagship-price-box {
  padding: 15px 16px;
  border-radius: var(--radius-md);
  background: rgba(8, 11, 16, 0.68);
  border: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.flagship-price-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: block;
}

.flagship-price-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.flagship-footnote {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin: 10px 0 0;
  line-height: 1.35;
}

/* ==================== ОБЩИЕ СЕКЦИИ ==================== */

.section {
  padding: 76px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(14, 20, 31, 0.75) 0%, rgba(10, 14, 22, 0.9) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yakut-ice);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 12px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

/* ==================== СЕКЦИЯ УСЛУГ ==================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  border-color: var(--border-ice);
  transform: translateY(-3px);
}

.service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(200, 30, 43, 0.14);
  border: 1px solid rgba(200, 30, 43, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff5864;
  flex-shrink: 0;
}

.service-tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--yakut-ice-soft);
  color: var(--yakut-ice);
  border: 1px solid rgba(124, 198, 254, 0.25);
}

.service-card h3 {
  font-size: 1.3rem;
  margin: 0 0 10px;
  font-weight: 800;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin: 0 0 16px;
}

.service-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.88rem;
  color: var(--yakut-silver);
}

.service-bullets li::before {
  content: "◆ ";
  color: var(--samurai-red-hover);
  font-size: 0.72rem;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.service-price-hint {
  font-weight: 800;
  font-size: 1.05rem;
  color: #ffffff;
}

/* ==================== 5 ПРИЧИН + ПРЕИМУЩЕСТВА ==================== */

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.reason-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 18px;
}

.reason-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--yakut-gold);
  margin-bottom: 10px;
}

.reason-card h3 {
  font-size: 1.02rem;
  margin: 0 0 8px;
}

.reason-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ==================== ИНТЕРАКТИВНЫЙ ПРАЙС-ЛИСТ (EXCEL) ==================== */

.pricelist-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(200, 30, 43, 0.16) 0%, rgba(19, 27, 41, 0.95) 55%, rgba(124, 198, 254, 0.12) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.pricelist-meta-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 4px;
}

.pricelist-meta-sub {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin: 0;
}

.pricelist-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.search-box {
  position: relative;
  flex: 1 1 280px;
  max-width: 420px;
}

.search-box input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: #ffffff;
}
.search-box input:focus {
  outline: none;
  border-color: var(--yakut-ice);
}

.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.cat-tab {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.16s ease;
}
.cat-tab:hover {
  color: #ffffff;
  border-color: var(--border-strong);
}
.cat-tab.active {
  background: var(--samurai-red);
  border-color: var(--samurai-red-hover);
  color: #ffffff;
}

.price-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.price-table th {
  background: rgba(8, 11, 16, 0.7);
  padding: 14px 18px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.price-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  font-size: 0.93rem;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.item-name-cell strong {
  display: block;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 3px;
}

.item-note {
  font-size: 0.81rem;
  color: var(--text-secondary);
}

.item-badge {
  display: inline-block;
  padding: 2px 8px;
  margin-left: 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--samurai-red-soft);
  color: #ff7580;
  border: 1px solid rgba(200, 30, 43, 0.4);
  vertical-align: middle;
}

.price-val {
  font-weight: 800;
  font-size: 1.06rem;
  white-space: nowrap;
  color: #ffffff;
}

.price-unit {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pricelist-more-bar {
  padding: 16px;
  text-align: center;
  background: rgba(8, 11, 16, 0.45);
  border-top: 1px solid var(--border-subtle);
}

.offer-legal-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==================== ОТЗЫВЫ КЛИЕНТОВ ==================== */

.reviews-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.rating-2gis-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
}

.rating-score {
  font-size: 2rem;
  font-weight: 800;
  color: var(--yakut-gold);
  line-height: 1;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: var(--yakut-gold);
  letter-spacing: 2px;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.review-headline {
  font-size: 1.06rem;
  font-weight: 800;
  margin: 0 0 10px;
}

.review-body {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0 0 20px;
}

.review-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.review-author strong {
  color: #ffffff;
}

.review-date {
  color: var(--text-muted);
}

/* ==================== КАРТА ПРОЕЗДА И КОНТАКТЫ ==================== */

.map-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: stretch;
}

.contacts-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-block-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yakut-ice);
  font-weight: 700;
  margin-bottom: 5px;
}

.address-main {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.address-entrance-highlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--samurai-red-soft);
  border: 1px solid rgba(200, 30, 43, 0.45);
  color: #ff858e;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.copy-addr-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--yakut-silver);
  font-size: 0.8rem;
  cursor: pointer;
}
.copy-addr-btn:hover {
  border-color: var(--yakut-ice);
  color: #fff;
}

.route-directions-list {
  margin: 0;
  padding: 14px 16px;
  list-style: none;
  background: rgba(8, 11, 16, 0.55);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.route-directions-list strong {
  color: #ffffff;
}

.contact-phones-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.phone-box {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

.phone-box a {
  font-weight: 800;
  font-size: 1rem;
  color: #ffffff;
  display: block;
  white-space: nowrap;
}
.phone-box span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.route-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.map-stage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 470px;
}

.map-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(8, 11, 16, 0.8);
  border-bottom: 1px solid var(--border-subtle);
}

.map-tab {
  padding: 7px 13px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  cursor: pointer;
}
.map-tab.active {
  background: var(--bg-card-elevated);
  border-color: var(--border-ice);
  color: #ffffff;
}

.map-viewport {
  position: relative;
  flex: 1;
  min-height: 410px;
  background: #0b111b;
}

.map-pane {
  display: none;
  width: 100%;
  height: 100%;
  min-height: 410px;
}
.map-pane.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-pane iframe {
  width: 100%;
  height: 100%;
  min-height: 410px;
  border: 0;
}

/* ==================== ФОРМА ЗАЯВКИ НА СТРАНИЦЕ ==================== */

.lead-section-card {
  background: linear-gradient(145deg, #141d2d 0%, #0d131e 100%);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--samurai-red);
  border-radius: var(--radius-lg);
  padding: 38px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--yakut-silver);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(8, 11, 16, 0.75);
  border: 1px solid var(--border-strong);
  color: #ffffff;
  transition: border-color 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--yakut-ice);
}

.form-field input.invalid {
  border-color: #f87171;
}

.field-error {
  font-size: 0.76rem;
  color: #fca5a5;
  min-height: 16px;
}

.consent-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--samurai-red);
  flex-shrink: 0;
  cursor: pointer;
}

.consent-row a {
  color: var(--yakut-ice);
  text-decoration: underline;
}

.form-status-msg {
  grid-column: 1 / -1;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}
.form-status-msg.success {
  display: block;
  background: rgba(61, 224, 182, 0.14);
  border: 1px solid rgba(61, 224, 182, 0.45);
  color: #a7f3d0;
}
.form-status-msg.error {
  display: block;
  background: rgba(248, 113, 113, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

/* Honeypot скрыт от людей и скринридеров */
.hp-wrap {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* ==================== ПОДВАЛ САЙТА (FOOTER) ==================== */

.site-footer {
  background: #06080c;
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 34px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a:hover {
  color: var(--yakut-ice);
}

.requisites-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  line-height: 1.5;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.79rem;
  color: var(--text-muted);
}

/* ==================== МОДАЛЬНОЕ ОКНО ОБРАТНОГО ЗВОНКА ==================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(4, 6, 10, 0.8);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--samurai-red);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-deep);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
}

/* ==================== БАННЕР COOKIE (152-ФЗ) ==================== */

.cookie-banner {
  position: fixed;
  bottom: 18px;
  left: 18px;
  right: 18px;
  max-width: 980px;
  margin: 0 auto;
  z-index: 1100;
  background: rgba(14, 20, 31, 0.97);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--yakut-ice);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-deep);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.cookie-banner.visible {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.83rem;
  color: var(--text-secondary);
}
.cookie-banner a {
  color: var(--yakut-ice);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Toast уведомление */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1300;
  background: #18263a;
  border: 1px solid var(--yakut-ice);
  color: #ffffff;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-deep);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.2s ease;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== СТРАНИЦЫ ЮР. ДОКУМЕНТОВ ==================== */

.legal-page-main {
  padding: 56px 0 80px;
}
.legal-doc-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
}
.legal-doc-card h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  margin-top: 0;
}
.legal-doc-card h2 {
  font-size: 1.18rem;
  color: var(--yakut-ice);
  margin-top: 28px;
}
.legal-doc-card p,
.legal-doc-card li {
  color: var(--text-secondary);
  font-size: 0.94rem;
}
.legal-doc-card ul {
  padding-left: 20px;
}

/* ==================== АДАПТИВНОСТЬ (320px — 1920px+) ==================== */

@media (max-width: 1280px) {
  .header-inner {
    gap: 12px;
  }
  .main-nav a {
    padding: 6px 10px;
    font-size: 0.84rem;
  }
  .header-phone-chip {
    padding: 7px 11px;
    font-size: 0.96rem;
  }
}

@media (max-width: 1180px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .topbar-hide-md {
    display: none;
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .map-layout,
  .lead-section-card {
    grid-template-columns: 1fr;
  }
  .reasons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    justify-content: center;
    min-height: 32px;
    font-size: 0.73rem;
  }
  .topbar-right {
    display: none;
  }
  .header-callback-btn {
    display: none;
  }
  .brand-sub {
    display: none;
  }
  .brand-emblem {
    width: 36px;
    height: 36px;
  }
  .brand-name {
    font-size: 1.02rem;
  }
  .header-inner {
    min-height: 60px;
    gap: 8px;
  }
  .header-phone-chip {
    padding: 7px 10px;
    font-size: 0.88rem;
    gap: 6px;
  }
  .header-phone-icon {
    width: 22px;
    height: 22px;
  }
  .hero {
    padding: 40px 0 52px;
  }
  .hero-pillars,
  .services-grid,
  .reasons-grid,
  .form-grid,
  .contact-phones-grid {
    grid-template-columns: 1fr;
  }
  .lead-section-card,
  .flagship-card,
  .legal-doc-card {
    padding: 22px 18px;
  }
  /* Мобильная карточная адаптация таблицы прайса (320px+) */
  .price-table thead {
    display: none;
  }
  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table td {
    display: block;
    width: 100%;
  }
  .price-table tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-strong);
  }
  .price-table td {
    padding: 5px 0;
    border: none;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-actions {
    width: 100%;
    justify-content: stretch;
  }
  .cookie-actions .btn {
    flex: 1;
  }
}

@media (max-width: 440px) {
  .topbar-city {
    display: none;
  }
  .topbar-box-badge {
    font-size: 0.68rem;
    padding: 1px 5px;
  }
}

@media (max-width: 374px) {
  .header-phone-icon {
    display: none;
  }
  .header-phone-chip {
    font-size: 0.82rem;
    padding: 6px 8px;
  }
}
