/* ============================================================
   «Гамма» — корпоративный сайт
   Тема, база, адаптив
   ============================================================ */

:root {
  --c-primary: #1e3a5f;
  --c-primary-2: #16304d;
  --c-graphite: #4a5b72;
  --c-accent: #0e9aa7;
  --c-accent-dark: #0b7f8b;
  --c-bg: #ffffff;
  --c-bg-soft: #f5f7fa;
  --c-text: #22303f;
  --c-muted: #64748b;
  --c-border: #e3e8ef;
  --c-success: #2e9e5b;

  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 1px 3px rgba(30, 58, 95, 0.08), 0 4px 14px rgba(30, 58, 95, 0.06);
  --shadow-lg: 0 8px 30px rgba(30, 58, 95, 0.12);

  --container: 1240px;
  --header-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-accent); }

h1, h2, h3, h4 { line-height: 1.2; color: var(--c-primary); margin: 0 0 0.5em; }

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

.container--narrow { max-width: 860px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.2;
}

.btn--accent { background: var(--c-accent); color: #fff; }
.btn--accent:hover { background: var(--c-accent-dark); color: #fff; }

.btn--outline { background: transparent; color: var(--c-primary); border-color: var(--c-border); }
.btn--outline:hover { border-color: var(--c-primary); color: var(--c-primary); }

.btn--ghost { background: transparent; color: var(--c-graphite); border-color: transparent; padding: 12px 8px; }
.btn--ghost:hover { color: var(--c-accent); }

/* ---------- Бейджи ---------- */
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  color: #fff;
}
.badge--hit { background: var(--c-accent); }
.badge--new { background: var(--c-success); }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-menu-bg, var(--c-primary));
  color: #fff;
  box-shadow: var(--shadow);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--c-menu-hover, #fff);
  letter-spacing: 0.02em;
}
.header__logo:hover { color: var(--c-menu-hover, #fff); }
.header__logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--c-accent);
  font-size: 20px;
}
.header__logo-img { height: 40px; width: auto; display: block; }
.header__logo-texts { display: flex; flex-direction: column; line-height: 1.05; }
.header__logo-line { display: block; font-weight: 700; }

.nav { margin-left: 8px; }
.nav-menu {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu-item { position: relative; }
.nav__link {
  display: block;
  padding: 8px 12px;
  color: var(--c-menu-link, #d7dee9);
  font-size: 15px;
  border-radius: 6px;
  white-space: nowrap;
}
.nav__link:hover { color: var(--c-menu-hover, #fff); }
.nav__link.is-active,
.nav__link.active { color: var(--c-menu-hover, #fff); background: var(--c-menu-active-bg, rgba(255, 255, 255, 0.1)); }

/* Подменю (десктоп): уровень 1 → 2 выпадает вниз, глубже — вбок */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--c-submenu-bg, #fff);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 60;
}
.has-children:hover > .submenu,
.has-children:focus-within > .submenu,
.has-children.is-open > .submenu { display: block; }
.submenu .submenu { top: 0; left: 100%; margin-left: 4px; }

.submenu .nav__link {
  color: var(--c-submenu-link, var(--c-text));
  font-size: 14px;
  padding: 9px 12px;
  white-space: normal;
}
.submenu .nav__link:hover { color: var(--c-accent); background: var(--c-bg-soft); }
.submenu .nav__link.is-active,
.submenu .nav__link.active { color: var(--c-accent); background: var(--c-bg-soft); }

/* Кнопка раскрытия подменю — видна только на мобильных */
.submenu-toggle { display: none; background: none; border: 0; cursor: pointer; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.header__search {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.header__search-input {
  border: 0;
  outline: none;
  padding: 9px 12px;
  font-size: 14px;
  width: 200px;
}
.header__search-btn {
  border: 0;
  background: var(--c-accent);
  color: #fff;
  padding: 9px 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.header__phone { color: #fff; font-weight: 600; white-space: nowrap; }
.header__phone:hover { color: #fff; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.burger span { width: 24px; height: 2px; background: var(--c-menu-hover, #fff); }

/* ---------- Подвал ---------- */
.footer { background: var(--c-primary-2); color: #c8d2df; margin-top: 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1fr;
  gap: 40px;
  padding: 56px 24px 40px;
}
.footer__logo { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer__text { font-size: 14px; margin: 0 0 6px; }
.footer__title { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer__nav { display: flex; flex-direction: column; gap: 8px; }
.footer__nav a { color: #c8d2df; font-size: 14px; }
.footer__nav a:hover { color: #fff; }
.footer__address { font-style: normal; font-size: 14px; }
.footer__address p { margin: 0 0 8px; }
.footer__address a { color: #c8d2df; }
.footer__address a:hover { color: #fff; }
.footer__requisites { color: #9fb0c4; }
.footer__social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.footer__social a { color: #c8d2df; font-size: 14px; }
.footer__social a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  font-size: 13px;
  color: #9fb0c4;
}

/* ---------- Секции ---------- */
.section { padding: 72px 0; }
.section--soft { background: var(--c-bg-soft); }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section__title { font-size: 34px; margin: 0; }
.section__link { font-size: 15px; font-weight: 600; }

/* ---------- Слайдер (эффект «жалюзи») ---------- */
.slider { position: relative; overflow: hidden; background: var(--c-primary-2); }
.slider__track { position: relative; height: 460px; }
.slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
}
.slide.is-active { visibility: visible; }
.slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide__overlay {
  position: absolute;
  inset: 0;
  /* Фолбэк, затем градиент из темы (--c-primary-2) — баннеры следуют цветовой схеме. */
  background: linear-gradient(90deg, rgba(22, 48, 77, 0.92) 0%, rgba(22, 48, 77, 0.35) 100%);
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--c-primary-2) 92%, transparent) 0%,
    color-mix(in srgb, var(--c-primary-2) 35%, transparent) 100%);
  display: flex;
  align-items: center;
}
.slide__content { color: #fff; }
.slide__title { color: #fff; font-size: 48px; margin-bottom: 12px; }
.slide__subtitle { font-size: 20px; max-width: 560px; margin: 0 0 28px; color: #d7dee9; }

/* Створки жалюзи (создаются скриптом). Каждая створка несёт фрагмент всего
   слайда — картинку и текст — поэтому они появляются одновременно. */
.slider__blinds {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  perspective: 1200px;
}
.slider__blinds .blind {
  position: absolute;
  left: 0;
  right: 0;
  overflow: hidden;
  backface-visibility: hidden;
  transform: rotateX(90deg);
  transform-origin: center center;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.slider__blinds .blind.is-open { transform: rotateX(0deg); }
.slider__blinds .blind__inner { position: absolute; left: 0; width: 100%; }
.slider__blinds .blind__inner .slide { visibility: visible; }

.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.slider__arrow:hover { background: rgba(255, 255, 255, 0.3); }
.slider__arrow--prev { left: 20px; }
.slider__arrow--next { right: 20px; }
.slider__dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.slider__dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.4); cursor: pointer; }
.slider__dot.is-active { background: var(--c-accent); }

/* ---------- Сетка товаров ---------- */
.grid--products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--c-bg-soft);
  overflow: hidden;
}
.product-card__img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform 0.3s; }
.product-card:hover .product-card__img { transform: scale(1.03); }
.product-card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__title { font-size: 17px; margin: 0; }
.product-card__title a { color: var(--c-primary); }
.product-card__title a:hover { color: var(--c-accent); }
.product-card__sku { font-size: 13px; color: var(--c-muted); }
.product-card__price { font-size: 20px; font-weight: 700; color: var(--c-primary); }
.product-card__footer { margin-top: auto; padding-top: 12px; }

/* ---------- Преимущества ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature {
  margin: 10px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--c-border);
  transition: margin 0.5s ease, padding 0.5s ease, box-shadow 0.5s ease;
}
/* Появление на экране: карточка расширяется на 10px с каждой стороны до
   нормального размера (margin 10→0, padding 14→24; контент не смещается). */
.feature.is-visible {
  margin: 0;
  padding: 24px;
  box-shadow: var(--shadow);
}
.feature__icon { color: var(--c-accent); margin-bottom: 16px; }
.feature__title { font-size: 18px; margin-bottom: 8px; }
.feature__text { font-size: 15px; color: var(--c-muted); margin: 0; }

/* ---------- Направления ---------- */
.directions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.direction {
  display: block;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--c-primary);
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.direction:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.direction__title { color: #fff; font-size: 24px; margin-bottom: 12px; }
.direction__text { color: #d7dee9; margin: 0 0 20px; }
.direction__link { color: var(--c-accent); font-weight: 600; }

/* ---------- Наши партнёры ---------- */
.partners__viewport { overflow: hidden; }
.partners__track { display: flex; width: max-content; animation: partners-scroll 40s linear infinite; }
.partners__track:hover { animation-play-state: paused; }
@keyframes partners-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.partner { flex: 0 0 auto; display: grid; place-items: center; padding: 8px 36px; }
.partner img { height: var(--partners-logo-h, 48px); width: auto; max-width: 250px; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: filter 0.2s, opacity 0.2s; }
.partner:hover img { filter: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .partners__track { animation: none; justify-content: center; flex-wrap: wrap; } }

/* ---------- CTA ---------- */
.cta { background: var(--c-primary); }
.cta__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cta__title { color: #fff; font-size: 36px; }
.cta__desc { color: #d7dee9; font-size: 17px; margin: 0; }
.cta__form { background: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg); }

/* ---------- Формы ---------- */
.field { display: block; margin-bottom: 16px; }
.field__label { display: block; font-size: 13px; font-weight: 600; color: var(--c-graphite); margin-bottom: 6px; }
.field__input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field__input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08); }
textarea.field__input { resize: vertical; }

.lead-form__title { font-size: 24px; margin-bottom: 20px; }
.lead-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form__submit { width: 100%; margin-top: 4px; }
.lead-form__hint { font-size: 12px; color: var(--c-muted); margin: 10px 0 0; }
.lead-form__status { margin: 8px 0 0; font-size: 14px; font-weight: 600; min-height: 20px; }
.lead-form__status.is-ok { color: var(--c-success); }
.lead-form__status.is-err { color: var(--c-accent); }

.lead-form-wrap { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }

/* ---------- Хлебные крошки / заголовок страницы ---------- */
.page-head { background: var(--c-bg-soft); padding: 40px 0; border-bottom: 1px solid var(--c-border); }
.page-head__title { font-size: 40px; margin: 8px 0 4px; }
.page-head__subtitle { color: var(--c-muted); font-size: 17px; margin: 0; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--c-muted); margin-bottom: 4px; }
.breadcrumbs a { color: var(--c-graphite); }
.breadcrumbs a:hover { color: var(--c-accent); }

/* ---------- Каталог ---------- */
.catalog-block { margin-bottom: 56px; }
.catalog-block__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.catalog-block__title { font-size: 26px; margin: 0; }
.catalog-block__more { font-size: 14px; font-weight: 600; }
.catalog-block__desc { color: var(--c-muted); margin: 0 0 24px; }

/* ---------- Пагинация ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination__item {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  color: var(--c-primary);
  font-weight: 600;
}
.pagination__item:hover { border-color: var(--c-primary); }
.pagination__item.is-active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* ---------- Карточка товара ---------- */
.product__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.gallery__main {
  aspect-ratio: 4 / 3;
  background: var(--c-bg-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
}
.gallery__img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery__thumb {
  width: 76px;
  height: 58px;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: var(--c-bg-soft);
}
.gallery__thumb.is-active { border-color: var(--c-accent); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

.product__badges { position: static; display: flex; gap: 8px; margin-bottom: 8px; }
.product__badges .badge { position: static; }
.product__title { font-size: 32px; }
.product__meta { display: flex; gap: 20px; color: var(--c-muted); font-size: 15px; margin-bottom: 16px; }
.product__availability { color: var(--c-graphite); }
.product__availability.is-available { color: var(--c-success); font-weight: 600; }
.product__price { font-size: 32px; font-weight: 700; color: var(--c-primary); margin-bottom: 16px; }
.product__short { font-size: 17px; color: var(--c-graphite); margin: 0 0 24px; }
.product__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.product__section { margin-bottom: 40px; }
.product__section-title { font-size: 26px; margin-bottom: 20px; }

.specs { width: 100%; border-collapse: collapse; }
.specs__row:nth-child(odd) { background: var(--c-bg-soft); }
.specs__name { text-align: left; padding: 12px 16px; font-weight: 600; color: var(--c-graphite); width: 40%; }
.specs__value { padding: 12px 16px; }

.product__desc { color: var(--c-text); }

/* ---------- Прочие страницы ---------- */
.prose { font-size: 16px; color: var(--c-text); }
.prose h1 { font-size: 30px; margin-top: 32px; }
.prose h2 { font-size: 24px; margin-top: 32px; }
.prose h3 { font-size: 19px; margin-top: 24px; }
.prose h4 { font-size: 17px; margin-top: 20px; }
.prose ul { padding-left: 20px; }
.prose ol { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose blockquote { border-left: 3px solid var(--c-accent); margin: 16px 0; padding: 4px 0 4px 16px; color: var(--c-muted); }
.prose pre { background: var(--c-bg-soft); padding: 14px; border-radius: var(--radius); overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--c-border); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--c-bg-soft); }

/* ---------- Статьи ---------- */
.grid--articles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.article-card {
  display: block;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: var(--c-text);
  transition: box-shadow 0.2s, transform 0.2s;
}
.article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: var(--c-text); }
.article-card__title { font-size: 22px; margin-bottom: 12px; }
.article-card__desc { color: var(--c-muted); margin: 0 0 20px; }
.article-card__more { color: var(--c-accent); font-weight: 600; }
.product-card__snippet, .article-card__snippet { font-size: 13px; color: var(--c-muted); margin: 6px 0 0; line-height: 1.5; }
.product-card__snippet mark, .article-card__snippet mark { background: #ffe9a8; padding: 0 2px; border-radius: 2px; color: var(--c-text); }
.article-form { margin-top: 36px; padding: 28px; background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: var(--radius-lg); }

.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact { margin-bottom: 24px; }
.contact__title { font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-muted); margin-bottom: 4px; }
.contact__value { font-size: 18px; margin: 0; }
.contact__value a { color: var(--c-primary); }

.search-page { display: flex; gap: 12px; margin-top: 16px; max-width: 560px; }
.search-page__input { flex: 1; padding: 12px 16px; border: 1px solid var(--c-border); border-radius: var(--radius); font-size: 16px; }
.search-count { color: var(--c-muted); margin-bottom: 24px; }
.search-group { font-size: 22px; margin: 8px 0 20px; }
.search-group + .grid { margin-bottom: 40px; }
mark { background: #ffe9a8; padding: 0 2px; border-radius: 2px; }

.thanks, .error-page { text-align: center; padding: 40px 0; }
.thanks__icon { color: var(--c-success); margin-bottom: 16px; }
.thanks__title { font-size: 36px; }
.thanks__text { font-size: 18px; color: var(--c-muted); margin-bottom: 28px; }
.thanks__actions, .error-page__actions { display: flex; gap: 12px; justify-content: center; }
.error-page__code { font-size: 96px; font-weight: 800; color: var(--c-primary); line-height: 1; }
.error-page__title { font-size: 32px; }
.error-page__text { color: var(--c-muted); font-size: 17px; margin-bottom: 28px; }

.empty { color: var(--c-muted); padding: 24px 0; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1440px) {
  :root { --container: 1140px; }
}

@media (max-width: 1024px) {
  .nav-menu { gap: 0; }
  .nav__link { padding: 8px 8px; font-size: 14px; }
  .header__search-input { width: 150px; }
  .header__phone { display: none; }

  .grid--products { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .slide__title { font-size: 40px; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section__title { font-size: 28px; }
  .page-head__title { font-size: 32px; }

  .burger { display: flex; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--c-menu-bg, var(--c-primary-2));
    padding: 12px 16px;
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { display: block; }
  .nav-menu { flex-direction: column; gap: 2px; width: 100%; }
  .menu-item { position: static; }
  .nav__link { padding: 12px 8px; font-size: 16px; }
  .has-children { position: relative; }
  .has-children > .nav__link { padding-right: 44px; }
  .submenu-toggle {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
  }
  .submenu-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--c-menu-link, #d7dee9);
    border-bottom: 2px solid var(--c-menu-link, #d7dee9);
    transform: translate(-50%, -50%) rotate(45deg);
    transition: transform 0.2s;
  }
  .has-children.is-open > .submenu-toggle::before { transform: translate(-50%, -50%) rotate(225deg); }
  .submenu {
    position: static;
    display: none;
    min-width: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 4px 16px;
  }
  .has-children.is-open > .submenu { display: block; }
  .submenu .nav__link { color: var(--c-menu-link, #d7dee9); padding: 10px 8px; font-size: 15px; }
  .submenu .nav__link:hover { color: var(--c-menu-hover, #fff); background: rgba(255, 255, 255, 0.06); }
  .submenu .nav__link.is-active,
  .submenu .nav__link.active { color: var(--c-menu-hover, #fff); background: rgba(255, 255, 255, 0.1); }
  .header__search { order: 3; flex: 1; }
  .header__search-input { width: 100%; }
  .header__actions { gap: 8px; }

  .slider__track { height: 340px; }
  .slide__title { font-size: 30px; }
  .slide__subtitle { font-size: 16px; }

  .grid--products { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .directions { grid-template-columns: 1fr; }
  .cta__inner { grid-template-columns: 1fr; gap: 24px; }
  .product__layout { grid-template-columns: 1fr; gap: 24px; }
  .contacts__grid { grid-template-columns: 1fr; gap: 24px; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .header__logo-texts { display: none; }
  .slide__title { font-size: 24px; }
  .slide__subtitle { font-size: 15px; }
  .slider__track { height: 300px; }
  .slider__arrow { display: none; }

  .grid--products { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .lead-form__row { grid-template-columns: 1fr; gap: 0; }
  .product__actions { flex-direction: column; }
  .product__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .page-head__title { font-size: 28px; }
  .search-page { flex-direction: column; }
}
