/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
  --primary: #4CB8D6;
  --primary-dark: #3BA5C2;
  --primary-light: #E6F5F9;
  --accent: #00A651;
  --dark: #1A1D23;
  --dark-soft: #2D3139;
  --text: #3A3F47;
  --text-light: #6B7280;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --bg: #FFFFFF;
  --bg-alt: #F7F8FA;
  --bg-card: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.12);
  --radius-sm: 50px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --container: 1380px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: 'DM Sans', sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

/* ============================================
   1. HEADER
   ============================================ */
.site-sticky-top {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: var(--bg);
  isolation: isolate;
}

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 1.5vw, 20px);
  height: auto;
  min-height: 72px;
  padding: 8px 0;
  min-width: 0;
  max-width: 100%;
}

.header-inner > * {
  min-width: 0;
}

.header-logo img {
  height: clamp(52px, 10vw, 97px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Catalog button */
.header-catalog-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  transition: background var(--transition);
  flex-shrink: 0;
}
.header-catalog-btn:hover { background: var(--primary-dark); }
.header-catalog-btn svg { width: 20px; height: 20px; }

/* Search */
.header-search {
  flex: 1 1 180px;
  max-width: 386px;
  min-width: 0;
  position: relative;
}
.header-search input {
  width: 100%;
  padding: 12px 18px 12px 46px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-alt);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.header-search input::placeholder { color: var(--text-muted); }
.header-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(76,184,214,0.15);
  background: #fff;
}
.header-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

.header-search.is-search-open {
  z-index: 10;
}

.header-search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: min(420px, 70vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 1205;
}

.header-search-panel[hidden] {
  display: none !important;
}

.header-search-panel__item {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: background var(--transition);
}

.header-search-panel__item:hover,
.header-search-panel__item:focus-visible {
  background: var(--bg-alt);
  outline: none;
}

.header-search-panel__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-search-panel__thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--bg-alt);
}

.header-search-panel__thumb--placeholder {
  background: var(--primary-light);
}

.header-search-panel__text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-search-panel__title {
  font-weight: 600;
  font-size: 15px;
  color: var(--dark);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.header-search-panel__meta {
  font-size: 13px;
  color: var(--text-muted);
}

.header-search-panel__price {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-top: 2px;
}

.header-search-panel__empty,
.header-search-panel__loading {
  margin: 0;
  padding: 14px 12px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

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

/* CTA button */
.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1.5px solid var(--primary);
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
}
.header-cta:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

/* Phone numbers */
.header-phones {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.header-phones a {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  transition: color var(--transition);
}
.header-phones a:hover { color: var(--primary); }

/* Language switcher */
.header-lang {
  position: relative;
  flex-shrink: 0;
}
.header-lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.header-lang-btn:hover { background: var(--bg-alt); }
.header-lang-btn svg { width: 14px; height: 14px; }

/* Cart */
.header-cart {
  position: relative;
  flex-shrink: 0;
}
.header-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.header-cart-btn:hover { background: var(--bg-alt); border-color: var(--text-muted); }
.header-cart-btn svg { width: 22px; height: 22px; color: var(--text); }
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  pointer-events: none;
  transform: scale(0);
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.cart-badge.is-active { transform: scale(1); }

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.mobile-menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
}

/* Proposal popup */
.proposal-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 3000;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.proposal-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}
.proposal-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26,29,35,0.55);
}
.proposal-modal__dialog {
  position: relative;
  z-index: 1;
  flex: 0 1 auto;
  width: min(560px, 100%);
  max-height: min(90vh, calc(100vh - 24px));
  max-height: min(90dvh, calc(100dvh - 24px));
  margin: auto;
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 22px 20px 20px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}
.proposal-modal__close {
  position: sticky;
  top: 0;
  z-index: 2;
  float: right;
  width: 36px;
  height: 36px;
  margin: -6px -6px 0 8px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text-light);
  font-size: 22px;
  line-height: 1;
}
.proposal-modal__title {
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 1.2;
  color: var(--dark);
  margin: 0 0 6px;
  padding-right: 44px;
}
.proposal-modal__subtitle {
  color: var(--text-light);
  margin-bottom: 18px;
}
.proposal-form__field { margin-bottom: 12px; }
.proposal-form__field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.proposal-form__field input,
.proposal-form__field textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 15px;
  font-family: var(--font-body);
  background: #fff;
}
.proposal-form__field input:focus,
.proposal-form__field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(76,184,214,0.15);
}
.proposal-form__field.is-invalid input,
.proposal-form__field.is-invalid textarea { border-color: #e35d5d; }
.proposal-form__check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 6px;
  font-size: 14px;
}
.proposal-form__check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
}
.proposal-form__check span {
  line-height: 1.35;
}
.proposal-form__error {
  display: block;
  min-height: 16px;
  color: #d94a4a;
  font-size: 12px;
}
.proposal-form__submit {
  width: 100%;
  margin-top: 8px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 12px 16px;
  font-size: 15px;
}
.proposal-form__submit:hover { background: var(--primary-dark); }
.proposal-form__success {
  margin-top: 10px;
  color: #1d7c45;
  font-weight: 600;
  font-size: 14px;
}

/* Общий блок «прикрепить файл» (модалка предложения и др.) */
.abct-form-file__caption {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}
.abct-form-file__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.abct-form-file__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg-alt);
  color: var(--dark);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.abct-form-file__btn:hover {
  border-color: var(--primary);
  background: rgba(76, 184, 214, 0.08);
}
.abct-form-file__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.abct-form-file__picked {
  font-size: 13px;
  color: var(--text-light);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proposal-form__field.is-invalid .abct-form-file__btn {
  border-color: #e35d5d;
}
.proposal-form__check.is-invalid span {
  color: #d94a4a;
}

/* ============================================
   2. CATEGORY NAV
   ============================================ */
.category-nav {
  background: #1a1a2e!important;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.category-nav--mega {
  position: relative;
}
.category-nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.category-nav-inner::-webkit-scrollbar { display: none; }

.category-nav-item {
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
  position: relative;
  transition: color var(--transition);
  border-bottom: 2px solid transparent;
}
.category-nav-item:hover,
.category-nav-item.active {
  color: #fff;
  border-bottom-color: var(--primary);
}
.category-nav-item.active { font-weight: 600; color: #fff; }

/* Меню с выпадающими подразделами (hover / focus-within + тач через .is-open) */
.category-nav--mega .category-nav-inner--mega,
.category-nav-inner--mega,
.category-nav-inner--catalog {
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: visible;
}

/* Левый край текста — в одну линию с логотипом и .container (хлебные крошки) */
.category-nav--mega .category-nav-inner--mega > .category-nav-item--top:first-child {
  padding-left: 0;
}

.category-nav--mega .category-nav-inner--mega > .category-nav-dropdown:first-child .category-nav-dropdown__title {
  padding-left: 0;
}

.category-nav-item--top {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  padding: 16px 20px 14px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.category-nav-item--top:hover,
.category-nav-item--top.active {
  color: #fff;
  border-bottom-color: var(--primary);
}
.category-nav-item--top.active {
  font-weight: 600;
}

.category-nav-dropdown {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: stretch;
}
.category-nav-dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
  z-index: 1198;
}
.category-nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  margin: 0;
  padding: 16px 18px 14px;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.category-nav-dropdown__trigger:hover,
.category-nav-dropdown__trigger:focus-visible {
  color: #fff;
  outline: none;
}
.category-nav-dropdown__trigger .category-nav-dropdown__chev {
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.22s ease, opacity 0.2s ease;
}
.category-nav-dropdown:hover .category-nav-dropdown__trigger .category-nav-dropdown__chev,
.category-nav-dropdown:focus-within .category-nav-dropdown__trigger .category-nav-dropdown__chev,
.category-nav-dropdown.is-open .category-nav-dropdown__trigger .category-nav-dropdown__chev {
  transform: rotate(180deg);
  opacity: 1;
}

.category-nav-dropdown__head {
  display: inline-flex;
  align-items: stretch;
  align-self: stretch;
}
.category-nav-dropdown__title {
  display: inline-flex;
  align-items: center;
  padding: 16px 4px 14px 20px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.category-nav-dropdown__title:hover,
.category-nav-dropdown__title:focus-visible {
  color: #fff;
  outline: none;
}
.category-nav-dropdown__title.active {
  color: #fff;
  border-bottom-color: var(--primary);
}
.category-nav-dropdown__caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 16px 16px 14px 4px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: color var(--transition), transform 0.22s ease;
}
.category-nav-dropdown__caret:hover,
.category-nav-dropdown__caret:focus-visible {
  color: #fff;
  outline: none;
}
.category-nav-dropdown:hover .category-nav-dropdown__caret svg,
.category-nav-dropdown:focus-within .category-nav-dropdown__caret svg,
.category-nav-dropdown.is-open .category-nav-dropdown__caret svg {
  transform: rotate(180deg);
}

.category-nav-dropdown__panel {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 100%;
  width: max-content;
  max-width: min(520px, calc(100vw - 48px));
  padding: 10px 0 12px;
  margin: 0;
  background: linear-gradient(180deg, #222238 0%, #2a2a48 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.22s ease, visibility 0.2s;
  z-index: 1200;
}

/* «Услуги» и правые пункты — панель не обрезается у края экрана */
/* .category-nav-inner--mega > .category-nav-dropdown:last-child .category-nav-dropdown__panel {
  left: auto;
  right: -12px;
} */

/* @media (min-width: 992px) {
  .category-nav-inner--mega > .category-nav-dropdown:last-child .category-nav-dropdown__panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 4px;
    min-width: min(560px, calc(100vw - 48px));
    padding: 12px 4px 14px;
  }
} */
.category-nav-dropdown:hover .category-nav-dropdown__panel,
.category-nav-dropdown:focus-within .category-nav-dropdown__panel,
.category-nav-dropdown.is-open .category-nav-dropdown__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.category-nav-dropdown__link {
  display: block;
  padding: 11px 22px 11px 24px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  white-space: nowrap;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.category-nav-dropdown__link:hover,
.category-nav-dropdown__link:focus-visible {
  background: rgba(76, 184, 214, 0.14);
  color: #fff;
  outline: none;
  border-left-color: var(--primary);
}
.category-nav-dropdown__link.active {
  background: rgba(76, 184, 214, 0.18);
  color: #fff;
  font-weight: 600;
  border-left-color: var(--primary);
}

.category-nav-dropdown.is-active-group > .category-nav-dropdown__trigger,
.category-nav-dropdown.is-active-group > .category-nav-dropdown__head .category-nav-dropdown__title {
  color: #fff;
  border-bottom-color: var(--primary);
}
.category-nav-dropdown.is-active-group > .category-nav-dropdown__head .category-nav-dropdown__caret {
  color: #fff;
  border-bottom-color: var(--primary);
}
.category-nav-dropdown__trigger.is-current {
  color: #fff;
  border-bottom-color: var(--primary);
}

.category-nav-divider {
  display: inline-block;
  align-self: stretch;
  width: 1px;
  min-height: 32px;
  margin: 10px 12px 10px 6px;
  background: rgba(255, 255, 255, 0.22);
  flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .category-nav-dropdown__panel,
  .category-nav-dropdown__trigger .category-nav-dropdown__chev,
  .category-nav-dropdown__caret svg {
    transition: none !important;
  }
  .category-nav-dropdown:hover .category-nav-dropdown__panel,
  .category-nav-dropdown:focus-within .category-nav-dropdown__panel,
  .category-nav-dropdown.is-open .category-nav-dropdown__panel {
    transform: none;
  }
}

@media (max-width: 768px) {
  .category-nav-dropdown__panel {
    left: auto;
    right: 0;
    width: auto;
    min-width: min(280px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
  }

  .category-nav-dropdown__link {
    white-space: normal;
  }

  .category-nav-inner--mega > .category-nav-dropdown:last-child .category-nav-dropdown__panel {
    display: block;
    min-width: min(280px, calc(100vw - 32px));
  }
}

/* Мобильная category-nav (шапка — в responsive-layout.css) */
@media (max-width: 767px) {
  .site-sticky-top {
    z-index: 1100;
    box-shadow: none;
  }

  .category-nav {
    border-bottom: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .category-nav--mega .category-nav-inner--mega,
  .category-nav-inner--mega {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 0;
    padding: 0;
    gap: 0;
  }

  .category-nav--mega .category-nav-inner--mega > .category-nav-item--top:first-child,
  .category-nav--mega .category-nav-inner--mega > .category-nav-dropdown:first-child .category-nav-dropdown__title {
    padding-left: 0;
  }

  .category-nav-item--top,
  .category-nav-dropdown,
  .category-nav-dropdown__head {
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  .category-nav-item--top,
  .category-nav-dropdown__trigger,
  .category-nav-dropdown__title {
    padding: 12px 14px;
    font-size: 14px;
  }

  .category-nav-dropdown__trigger {
    padding-right: 12px;
  }

  .category-nav-divider {
    display: none;
  }

  .category-nav-dropdown::before {
    display: none;
  }
}

/* ============================================
   3. HERO SECTION (premium grid + strip)
   ============================================ */
.hero-section {
  background: var(--bg, #fff);
  padding: 20px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(220px, 1fr) minmax(200px, 1fr);
  gap: 14px;
  min-height: 520px;
}

.hero-block {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 26px 28px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  transition: transform var(--transition), box-shadow var(--transition);
  isolation: isolate;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/*.hero-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}*/

.hero-block:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.hero-block__bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.03);
  transition: transform 0.55s ease;
  z-index: 0;
  pointer-events: none;
}

.hero-block:hover .hero-block__bg {
  transform: scale(1.07);
}

.hero-block--gradient .hero-block__bg {
  display: none;
}

.hero-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.72) 100%);
  z-index: 1;
}

/* 1 — слева на всю высоту; 2–3 — справа сверху; 4 — справа снизу на всю ширину */
.hero-block--cell-1 {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.hero-block--cell-2 {
  grid-column: 2;
  grid-row: 1;
}

.hero-block--cell-3 {
  grid-column: 3;
  grid-row: 1;
}

.hero-block--cell-4 {
  grid-column: 2 / span 2;
  grid-row: 2;
}

.hero-block--gradient::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.58) 100%);
}

.hero-block--g-cool {
  background: radial-gradient(ellipse 130% 110% at 18% 0%, #1f5c42 0%, #0f2e1f 42%, #050a07 100%);
}

.hero-block--g-warm {
  background: radial-gradient(ellipse 130% 110% at 82% 8%, #1e3f72 0%, #0f1a2e 48%, #06090f 100%);
}

.hero-block--g-fresh {
  background: radial-gradient(ellipse 130% 110% at 72% 12%, #5c4520 0%, #2a2010 46%, #0a0805 100%);
}

.hero-block--g-dark {
  background: radial-gradient(ellipse 130% 110% at 28% 0%, #2f4524 0%, #162010 50%, #080a06 100%);
}

.hero-block--cell-1 .hero-block__title {
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  max-width: 14ch;
}

.hero-block__label {
  position: relative;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 10px;
}

.hero-block__title {
  position: relative;
  z-index: 2;
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 400;
  font-style: normal;
  color: #fff;
  line-height: 1.22;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.hero-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #4cb8d6;
  color: #fff;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  width: fit-content;
  border: 1px solid rgba(76, 184, 214, 0.35);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.hero-block:hover .hero-btn,
.hero-btn:hover {
  background: rgba(30, 96, 114, 0.98);
  border-color: rgba(125, 206, 230, 0.55);
  transform: translateY(-1px);
}

.hero-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.hero-block:hover .hero-btn svg {
  transform: translateX(3px);
}

.hero-strip {
  margin-top: 14px;
  background: var(--bg, #fff);
  border-top: 1px solid var(--border, #e5e7eb);
}

.hero-strip__list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 18px 0;
}

.hero-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.hero-strip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.hero-strip__icon svg {
  width: 20px;
  height: 20px;
}

.hero-strip__text {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark, #1a1d23);
  line-height: 1.35;
}

/* ============================================
   4. PRODUCTS SECTION
   ============================================ */
.section--alt { background: var(--bg-alt); }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}
.section-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.section-link:hover { gap: 8px; }
.section-link svg { width: 16px; height: 16px; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
  display: block;
  text-decoration: none;
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.product-card__image {
  aspect-ratio: 1;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  position: relative;
}
.product-card__image img {
  max-height: 184px;
  object-fit: contain;
}
.product-card__thumb {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}
.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
}

.product-card__body { padding: 18px 24px 24px; }
.product-card__brand {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.product-card__name {
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 14px;
  min-height: 44px;
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-card__price {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 700;
  color: var(--dark);
}
.product-card__price span { font-size: 16px; font-weight: 500; }

.product-card__add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  transition: background var(--transition), transform var(--transition);
}
.product-card__add-btn:hover { background: var(--primary-dark); transform: scale(1.05); }
.product-card__add-btn svg { width: 20px; height: 20px; }

.section--popular-products{
  padding: 10px 0;
}

/* Главная: «Популярные товары» — 12 карточек, 4 в ряд, визуально ~75% от базового блока */
.section--popular-products .section-header {
  margin-bottom: 27px;
}
.section--popular-products .section-title {
  font-size: 24px;
}
.section--popular-products .section-link {
  font-size: 12px;
}
.section--popular-products .product-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.section--popular-products .product-card__image {
  padding: 21px;
}
.section--popular-products .product-card__image img {
  max-height: 138px;
}
.section--popular-products .product-card__badge {
  top: 9px;
  left: 9px;
  padding: 4px 9px;
  font-size: 10px;
}
.section--popular-products .product-card__body {
  padding: 14px 18px 18px;
}
.section--popular-products .product-card__brand {
  font-size: 11px;
}
.section--popular-products .product-card__name {
  font-size: 13px;
  min-height: 34px;
  margin-bottom: 10px;
}
.section--popular-products .product-card__footer {
  gap: 6px;
}
.section--popular-products .product-card__price {
  font-size: 17px;
}
.section--popular-products .product-card__price span {
  font-size: 12px;
}
.section--popular-products .product-card__add-btn {
  width: 34px;
  height: 34px;
}
.section--popular-products .product-card__add-btn svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 1180px) {
  .section--popular-products .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Services on homepage → assets/css/home-services.css */

/* ============================================
   6. WHY CHOOSE US
   ============================================ */
.why-section {
  background: var(--primary);
  padding: 64px 0;
}
.why-section .section-title {
  color: #fff;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.why-card {
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  text-align: center;
}
.why-card__number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1;
}
.why-card__label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
}

/* Brands */
.brands-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 46px;
  flex-wrap: wrap;
  padding: 36px 0;
  border-top: 1px solid var(--border);
}
.brand-logo {
  height: 48px;
  width: 48px;
  object-fit: contain;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: opacity var(--transition), filter var(--transition);
  border-radius: 8px;
}
.brand-logo:hover { opacity: 1; filter: grayscale(0%); }

.brand-svg {
  height: 68px;
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0.65;
  filter: grayscale(100%);
  transition: opacity var(--transition);
}
.brand-svg:hover { opacity: 1; filter: grayscale(0%); }

/* Placeholder brand logos as text */
.brand-item {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  transition: color var(--transition);
}
.brand-item:hover { color: var(--dark); }

/* ============================================
   7. FOOTER
   ============================================ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 46px;
  padding-bottom: 46px;
}
.footer-about__logo {
  height: 42px;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}
.footer-about__text {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 22px;
  color: rgba(255,255,255,0.55);
}
.footer-about__text p {
  margin: 0 0 0.65em;
}
.footer-about__text p:last-child {
  margin-bottom: 0;
}
.footer-about__text a {
  color: rgba(255,255,255,0.8);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-about__text a:hover {
  color: #fff;
}
.footer-about__contacts p {
  font-size: 16px;
  margin-bottom: 6px;
}
.footer-about__contacts a {
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
}
.footer-about__contacts a:hover { color: #fff; }

.footer-column__title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 22px;
}
.footer-column ul li { margin-bottom: 10px; }
.footer-column ul a {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-column ul a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .header-cta { display: none; }
  .hero-grid {
    min-height: 460px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(200px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr);
  }

  .hero-block--cell-1 {
    grid-column: 1 / span 2;
    grid-row: 1;
  }

  .hero-block--cell-2 {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-block--cell-3 {
    grid-column: 2;
    grid-row: 2;
  }

  .hero-block--cell-4 {
    grid-column: 1 / span 2;
    grid-row: 3;
  }

  .hero-strip__item {
    flex: 1 1 calc(50% - 12px);
  }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .section--popular-products .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}


@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: minmax(220px, auto);
    min-height: 0;
  }

  .hero-block--cell-1,
  .hero-block--cell-2,
  .hero-block--cell-3,
  .hero-block--cell-4 {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-block--cell-1 {
    min-height: 280px;
  }

  .hero-block__title {
    font-size: 1.5rem;
  }

  .hero-strip__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
  }

  .hero-strip__item {
    flex: 1 1 auto;
    width: 100%;
  }

  .section-title { font-size: 25px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .section--popular-products .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card__body { padding: 14px 16px 18px; }
  .product-card__name { font-size: 15px; min-height: auto; }
  .product-card__price { font-size: 18px; }

  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .brands-row { gap: 24px; }
  .brand-svg { height: 54px; }
}

@media (max-width: 389px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .section--popular-products .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .why-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeUp 0.6s ease forwards;
}
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }
.delay-5 { animation-delay: 0.5s; opacity: 0; }
.delay-6 { animation-delay: 0.6s; opacity: 0; }
