/*
 * VEGA editorial refresh.
 * A restrained industrial layer over the existing functional UI.
 */

:root {
  --bg-body: #efede6;
  --bg-surface: #f7f5ef;
  --bg-surface-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f4f1e9;
  --bg-input: #ffffff;
  --bg-overlay: rgba(20, 22, 21, 0.9);
  --accent-amber: #ed5a24;
  --accent-amber-light: #ff7440;
  --accent-amber-dark: #c94418;
  --accent-amber-glow: rgba(237, 90, 36, 0.2);
  --accent-amber-subtle: rgba(237, 90, 36, 0.1);
  --accent-steel: #5c686a;
  --accent-steel-glow: rgba(92, 104, 106, 0.16);
  --accent-steel-subtle: rgba(92, 104, 106, 0.09);
  --status-green: #8fae8b;
  --status-green-glow: rgba(143, 174, 139, 0.2);
  --text-main: #202321;
  --text-muted: #646a66;
  --text-dim: #858a86;
  --text-white: #ffffff;
  --border-subtle: #d8d5cd;
  --border-medium: #bcbab2;
  --radius-xs: 2px;
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --shadow-sm: 0 4px 14px rgba(31, 34, 32, 0.06);
  --shadow-md: 0 14px 34px rgba(31, 34, 32, 0.1);
  --shadow-lg: 0 24px 60px rgba(10, 12, 11, 0.2);
  --container-width: 1320px;
}

html {
  background: var(--bg-body);
  color: var(--text-main);
}

body {
  background:
    linear-gradient(rgba(29, 32, 30, 0.025) 1px, transparent 1px),
    var(--bg-body);
  background-size: 100% 72px;
  color: var(--text-main);
}

::selection {
  background: var(--accent-amber);
  color: #fff;
}

.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 10000;
  padding: 10px 14px;
  background: #fff;
  color: #171918;
  font-weight: 700;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 3px solid var(--accent-amber-light);
  outline-offset: 3px;
}

.h1,
.h2,
.h3,
.h4,
.section-title,
.category-title,
.feature-title {
  color: #1b1d1b;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

.h1 {
  font-size: clamp(2.8rem, 5.5vw, 5.7rem);
  line-height: 0.98;
}

.h2 {
  font-size: clamp(2rem, 3.7vw, 4rem);
  line-height: 1.04;
}

.text-gradient-amber {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--accent-amber-light);
}

.btn {
  min-height: 46px;
  height: auto;
  border-radius: 2px;
  padding: 10px 18px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: none;
  white-space: normal;
  line-height: 1.35;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--accent-amber);
  color: #fff;
  border: 1px solid var(--accent-amber);
}

.btn-primary:hover {
  background: #ff6b35;
  border-color: #ff6b35;
  box-shadow: none;
  transform: translateY(-2px);
}

.btn-secondary,
.btn-outline-amber {
  background: transparent;
  color: currentColor;
  border: 1px solid currentColor;
}

.badge {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge-amber,
.badge-steel,
.badge-green {
  background: transparent;
  border: 0;
  color: inherit;
}

.badge::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--accent-amber);
}

.topbar {
  display: none;
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 1000;
  height: 78px;
  background: rgba(24, 26, 25, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.header-content {
  min-height: 78px;
}

.brand-logo {
  gap: 12px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 1px;
  background: var(--accent-amber);
  border: 0;
  box-shadow: none;
}

.logo-icon svg path,
.logo-icon svg rect {
  fill: #fff;
}

.logo-title {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.logo-tagline {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.58rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active,
.phone-number {
  color: #fff;
}

.phone-label {
  color: rgba(255, 255, 255, 0.5);
}

.header-actions .btn-primary {
  min-height: 40px;
}

.section-hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 78px);
  padding: clamp(70px, 9vw, 132px) 0 0;
  background: #171918;
  overflow: clip;
}

.hero-yard-image,
.hero-yard-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-yard-image {
  z-index: -3;
  object-fit: cover;
  object-position: 58% center;
}

.hero-yard-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(12, 14, 13, 0.94) 0%, rgba(12, 14, 13, 0.76) 43%, rgba(12, 14, 13, 0.22) 73%, rgba(12, 14, 13, 0.38) 100%),
    linear-gradient(0deg, rgba(12, 14, 13, 0.88) 0%, transparent 42%);
}

.section-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 5px;
  background: var(--accent-amber);
}

.hero-grid {
  align-items: start;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.62fr);
  gap: clamp(38px, 6vw, 92px);
}

.hero-left {
  min-width: 0;
}

.hero-badges {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.78);
}

.hero-badges .badge + .badge {
  display: none;
}

.hero-title {
  max-width: 900px;
  color: #fff;
}

.hero-subtitle {
  max-width: 720px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.65;
}

.hero-cta {
  margin-top: 34px;
}

.hero-cta .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.56);
}

.hero-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(52px, 7vw, 92px);
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.metric-card {
  min-height: 116px;
  padding: 20px 18px 24px 0;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
}

.metric-card + .metric-card {
  padding-left: 18px;
}

.metric-value {
  color: var(--accent-amber-light);
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.metric-label {
  max-width: 150px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  line-height: 1.45;
}

.hero-card {
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(22, 25, 23, 0.84);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.hero-card::before {
  height: 4px;
  background: var(--accent-amber);
}

.hero-card-title {
  color: #fff;
  font-size: 1.12rem;
}

.hero-card-desc,
.hero-card .form-label {
  color: rgba(255, 255, 255, 0.64);
}

.hero-card .form-input {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
}

.hero-card .form-input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.section-categories,
.section-pricing,
.section-features,
.section-delivery {
  color: var(--text-main);
}

.section-categories {
  padding-block: clamp(92px, 11vw, 152px);
  background: var(--bg-body);
}

.section-header {
  max-width: 920px;
  margin: 0 0 clamp(46px, 6vw, 76px);
  text-align: left;
}

.section-tag {
  justify-content: flex-start;
  color: var(--accent-amber-dark);
}

.section-title {
  margin-top: 18px;
}

.section-desc {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.categories-grid {
  gap: 0;
  border-top: 1px solid var(--border-medium);
  border-left: 1px solid var(--border-medium);
}

.category-card {
  min-height: 410px;
  padding: 30px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--border-medium);
  border-bottom: 1px solid var(--border-medium);
  border-radius: 0;
  box-shadow: none;
}

.category-card:hover {
  background: #fff;
  border-color: var(--border-medium);
  box-shadow: none;
  transform: none;
}

.category-icon-box {
  width: 48px;
  height: 48px;
  color: var(--accent-amber);
  background: transparent;
  border: 1px solid var(--accent-amber);
  border-radius: 0;
}

.category-title {
  margin-top: 28px;
  font-size: 1.08rem;
}

.category-desc,
.category-feature-item,
.price-label {
  color: var(--text-muted);
}

.category-card-footer {
  border-top-color: var(--border-subtle);
}

.price-val {
  color: var(--accent-amber-dark);
}

.section-brick-picker {
  position: relative;
  padding-block: clamp(92px, 10vw, 142px);
  background: #1a1d1b;
  color: #fff;
}

.section-brick-picker::before {
  content: '11 ОТТЕНКОВ';
  position: absolute;
  inset: 36px 24px auto auto;
  color: rgba(255, 255, 255, 0.045);
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 9rem);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.section-brick-picker .section-title,
.section-brick-picker .h2,
.section-brick-picker .h3 {
  color: #fff;
}

.section-brick-picker .section-desc {
  color: rgba(255, 255, 255, 0.58);
}

.brick-picker-wrapper {
  background: transparent;
  border: 0;
  border-radius: 0;
}

.brick-picker-grid {
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.brick-visualizer-box,
.brick-picker-controls {
  background: #202321;
  border: 0;
  border-radius: 0;
}

.swatch-btn {
  border-radius: 2px;
}

.section-pricing {
  padding-block: clamp(92px, 10vw, 142px);
  background: #f7f5ef;
}

.pricing-controls {
  border-radius: 2px;
  border: 1px solid var(--border-medium);
  background: #fff;
  box-shadow: none;
  margin-bottom: 18px;
  overflow: hidden;
}

.pricing-top-bar {
  background: #1d201e;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.search-box {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-box svg {
  position: absolute;
  left: 14px;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 9px 14px 9px 40px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  color: #fff;
  font-size: 0.88rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-amber);
  background: rgba(255, 255, 255, 0.12);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.view-switcher {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.view-btn {
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.view-btn.active {
  background: var(--accent-amber);
  color: #fff;
}

.category-tabs {
  background: #fff;
  padding: 10px 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}

.tab-btn {
  padding: 6px 12px;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  background: #f7f5ef;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  white-space: nowrap;
}

.tab-btn:hover {
  border-color: var(--border-medium);
  color: #171918;
}

.tab-btn.active {
  background: var(--accent-amber);
  color: #fff;
  border-color: var(--accent-amber);
}
.compact-table-container {
  background: #fff;
  border: 1px solid var(--border-medium);
  border-radius: 2px;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  max-height: 540px;
  overflow-y: auto;
}

.compact-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
}

.price-table th,
.compact-table th {
  background: #ebe8e0;
  color: #555b57;
  border-color: var(--border-subtle);
}

.price-table td,
.compact-table td {
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.price-table tr:hover td,
.compact-table tr:hover td {
  background: #f7f4ed;
}

.product-name-text {
  color: #171918;
}

.product-meta-sub {
  color: var(--text-dim);
}

.price-cell,
.price-val-compact {
  color: var(--accent-amber-dark);
}

.btn-call-compact {
  background: var(--accent-amber);
  color: #fff;
  border: 1px solid var(--accent-amber);
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 8px;
}

.btn-call-compact:hover {
  background: #ff6b35;
  border-color: #ff6b35;
  color: #fff;
}

.price-card-compact {
  background: #fff;
  border-color: var(--border-subtle);
  border-radius: 2px;
}

.card-compact-title {
  color: #171918;
}

.pricing-footer-banner {
  background: #fff;
  border: 1px solid var(--border-medium);
  border-radius: 2px;
}

.section-calculator {
  padding-block: clamp(92px, 10vw, 142px);
  background:
    linear-gradient(90deg, var(--accent-amber) 0, var(--accent-amber) 12px, transparent 12px),
    #202321;
}

.section-calculator .section-title,
.section-calculator .h2,
.section-calculator .h3 {
  color: #fff;
}

.section-calculator .section-desc {
  color: rgba(255, 255, 255, 0.58);
}

.calculator-box {
  border-radius: 2px;
  border-color: rgba(255, 255, 255, 0.18);
  background: #292d2a;
  box-shadow: none;
}

.calc-tabs {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.calc-tab-btn {
  color: rgba(255, 255, 255, 0.58);
  border-radius: 0;
}

.calc-tab-btn.active {
  color: #fff;
  border-bottom-color: var(--accent-amber);
}

.calculator-box .form-label {
  color: rgba(255, 255, 255, 0.7);
}

.calculator-box .form-input,
.calculator-box .form-select {
  background: #1c1f1d;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 2px;
}

.calc-summary-card {
  background: var(--accent-amber);
  border: 0;
  border-radius: 2px;
}

.calc-result-row,
.calc-result-total,
.total-sum {
  color: #fff;
}

.section-features {
  padding-block: clamp(92px, 10vw, 142px);
  background: var(--bg-body);
}

.features-grid {
  gap: 0;
  border-top: 1px solid var(--border-medium);
}

.feature-item {
  padding: 32px 28px 36px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-medium);
  border-radius: 0;
}

.feature-item:nth-child(odd) {
  padding-left: 0;
  padding-right: 48px;
}

.feature-item:nth-child(even) {
  padding-left: 48px;
}

.feature-item:hover {
  transform: none;
  border-color: var(--border-medium);
  box-shadow: none;
}

.feature-icon {
  width: 42px;
  height: 42px;
  color: var(--accent-amber);
  background: transparent;
  border: 1px solid var(--accent-amber);
  border-radius: 0;
}

.feature-desc,
.delivery-list-item {
  color: var(--text-muted);
}

.section-delivery {
  padding-block: clamp(92px, 10vw, 142px);
  background: #f7f5ef;
  border-top: 1px solid var(--border-subtle);
}

.delivery-grid {
  gap: 18px;
}

.delivery-card {
  padding: clamp(28px, 4vw, 52px);
  border-radius: 2px;
  border-color: var(--border-medium);
  background: transparent;
  box-shadow: none;
}

.delivery-card .delivery-card-title {
  color: #171918;
}

.delivery-card:first-child {
  background: #1d201e;
  color: #fff;
  border-color: #1d201e;
}

.delivery-card:first-child .delivery-card-title,
.delivery-card:first-child .delivery-list-item {
  color: #fff;
}

.section-contacts {
  padding-block: clamp(92px, 10vw, 142px);
  background: #1a1d1b;
}

.section-contacts .section-title,
.section-contacts .h2,
.section-contacts .h3,
.contact-value {
  color: #fff;
}

.section-contacts .section-desc,
.contact-label {
  color: rgba(255, 255, 255, 0.55);
}

.contacts-info-card,
.contacts-map-card {
  background: #222624;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  box-shadow: none;
}

.contact-icon {
  color: var(--accent-amber-light);
  background: transparent;
  border: 1px solid var(--accent-amber);
  border-radius: 0;
}

.map-embed {
  filter: grayscale(1) contrast(1.05);
}

.site-footer {
  background: #111311;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-card {
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #202321;
}

@media (max-width: 1180px) {
  .nav-menu {
    gap: 18px;
  }

  .nav-link:nth-child(2),
  .nav-link:nth-child(5),
  .nav-link:nth-child(6) {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 34px;
  }
}

@media (max-width: 1024px) {
  .section-hero {
    min-height: auto;
    padding-bottom: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-right {
    max-width: 620px;
  }

  .hero-metrics {
    margin-top: 52px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-header,
  .header-content {
    height: 68px;
    min-height: 68px;
  }

  .menu-toggle {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
  }

  .nav-menu {
    display: none;
    background: #1a1d1b;
    border-bottom: 4px solid var(--accent-amber);
    transform: none;
  }

  .nav-menu.active {
    display: flex;
    transform: none;
  }

  .nav-link,
  .nav-link:nth-child(2),
  .nav-link:nth-child(5),
  .nav-link:nth-child(6) {
    display: block;
    color: rgba(255, 255, 255, 0.78);
  }

  .section-hero {
    min-height: auto;
    padding-top: 64px;
  }

  .hero-yard-image {
    object-position: 66% center;
  }

  .hero-yard-shade {
    background:
      linear-gradient(90deg, rgba(12, 14, 13, 0.92), rgba(12, 14, 13, 0.55)),
      linear-gradient(0deg, rgba(12, 14, 13, 0.95), transparent 60%);
  }

  .h1 {
    font-size: clamp(2.35rem, 12vw, 4.5rem);
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-card:nth-child(2) {
    border-right: 0;
  }

  .metric-card:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: auto;
  }

  .feature-item,
  .feature-item:nth-child(odd),
  .feature-item:nth-child(even) {
    padding: 28px 0;
  }

  .section-calculator {
    background:
      linear-gradient(90deg, var(--accent-amber) 0, var(--accent-amber) 6px, transparent 6px),
      #202321;
  }

  .price-table-wrapper,
  .compact-table-container {
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-medium);
    border-radius: 2px;
  }

  .price-table,
  .compact-table {
    width: 100%;
    min-width: 580px;
    table-layout: auto;
    font-size: 0.82rem;
  }

  .price-table th,
  .compact-table th,
  .price-table td,
  .compact-table td {
    display: table-cell !important;
    padding: 10px 12px;
  }

  .price-table .btn,
  .compact-table .btn-call-compact {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 0.68rem;
  }

  .price-cell {
    font-size: 0.86rem;
    white-space: normal;
  }

  .delivery-grid,
  .contacts-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .delivery-card,
  .contacts-info-card,
  .contacts-map-card {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 18px;
  }

  .logo-tagline {
    display: none;
  }

  .section-hero {
    padding-top: 52px;
  }

  .hero-badges {
    margin-bottom: 18px;
  }

  .hero-subtitle {
    margin-top: 22px;
    font-size: 0.96rem;
  }

  .hero-cta {
    gap: 10px;
  }

  .hero-metrics {
    margin-top: 42px;
  }

  .metric-card,
  .metric-card + .metric-card {
    min-height: 110px;
    padding: 16px 12px 18px 0;
  }

  .metric-card:nth-child(even) {
    padding-left: 14px;
  }

  .section-header {
    margin-bottom: 38px;
  }

  .category-card {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
