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

:root {
  --white: #ffffff;
  --off-white: #f8f7f5;
  --accent: #9a6d4b;
  --accent-light: #b8875f;
  --accent-dark: #7d5638;
  --text: #1c1917;
  --text-2: #57534e;
  --text-3: #78716c;
  --border: #eae8e5;
  --radius: 8px;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;
  --site-max: 1560px;
  --site-gutter: 44px;
  --site-header-height: 0px;
  --slider-header-clear: 0px;
}

html {
  scroll-behavior: smooth;
}

html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--off-white);
}

::-webkit-scrollbar-thumb {
  background: #d6d3d1;
  border-radius: 3px;
}

/* ========== HEADER (3 уровня) ========== */
.site-header,
header.site-header {
  --header-brand-width-sync: 20.5rem;
  --header-logo-ratio: 0.404167;
  /* Не sticky/fixed: уезжает вверх при прокрутке на всех страницах */
  position: relative !important;
  top: auto;
  left: auto;
  width: 100%;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 var(--border);
}

.header-shell {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding-left: var(--site-gutter);
  padding-right: var(--site-gutter);
}

.header-main-inner > .header-brand-col {
  width: var(--header-brand-width-sync);
  min-width: 0;
  max-width: var(--header-brand-width-sync);
  justify-self: start;
  overflow: hidden;
}

/* Средний блок: лого, телефон, кнопки */
.header-main {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-main-inner {
  display: grid;
  grid-template-columns: var(--header-brand-width-sync) 1fr auto auto;
  align-items: center;
  gap: 28px 32px;
  padding: 16px 0;
}

.header-brand-col .logo.logo--dark {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.site-header .header-brand-col .logo--dark {
  align-items: flex-start;
  flex-shrink: 1;
  overflow: hidden;
}

.header-brand-col .logo {
  flex-shrink: 1;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo--dark {
  flex-direction: column;
  align-items: flex-start;
  max-height: none;
}

.site-header .logo--dark .logo-img,
.site-header .logo--dark .logo-img--navbar {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 480 / 194;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.2));
}

.logo--dark .logo-img-wrap,
.logo--dark .logo-slogan {
  display: none;
}

.logo--light .logo-img {
  display: block;
  width: auto;
  height: 50px;
  max-width: min(280px, 80vw);
  filter: none;
}

.header-contact {
  text-align: center;
  min-width: 0;
}

.header-phone-lg {
  display: block;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.header-phone-lg:hover {
  color: var(--accent);
}

.header-phone-city {
  display: block;
  margin-top: 4px;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-2);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.header-phone-city:hover {
  color: var(--accent);
}

.header-phone-note {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-3);
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Кнопки в шапке — один стиль (и замер, и звонок) */
.header-actions .btn-header-outline,
.header-actions .btn-callback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 18px;
  background: #fff;
  border: 1.5px solid #2a2622;
  border-radius: 2px;
  color: #2a2622;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
  box-sizing: border-box;
}

.header-actions .btn-header-outline:hover,
.header-actions .btn-callback:hover {
  background: #2a2622;
  color: #fff;
  border-color: #2a2622;
}

.btn-header-icon {
  flex-shrink: 0;
}

/* Нижнее меню */
.header-nav {
  background: #1c1917;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.header-nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px 32px;
  min-height: 52px;
  padding: 6px 0;
}

.header-nav-meta {
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-address {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.25s;
}

.header-address:hover {
  color: #fff;
}

.header-address-icon {
  flex-shrink: 0;
  color: var(--accent-light);
}

.header-official {
  justify-self: end;
  text-align: right;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.header-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 40px;
}

.header-nav-links a {
  position: relative;
  padding: 10px 0;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  transition: color 0.25s;
}

.header-nav-links a:hover {
  color: #fff;
}

.header-nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent-light);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.header-nav-links a:hover::after,
.header-nav-links a.nav-active::after {
  transform: scaleX(1);
}

.header-nav-links a.nav-active {
  color: #fff;
}

.header-mobile-actions {
  display: none;
}

.phone-number {
  text-decoration: none;
}

/* Кнопка «звонок» вне шапки (если где-то осталась) */
.btn-callback:not(.btn-header-outline) {
  padding: 10px 22px;
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: var(--radius);
}

.btn-callback:not(.btn-header-outline):hover {
  background: var(--accent);
  color: #fff;
}

/* ========== HOME SLIDER ========== */
.home-slider {
  position: relative;
  height: 100svh;
  min-height: 540px;
  margin-top: 0;
  overflow: hidden;
  background: #14120f;
}

.home-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.home-slider-slide {
  position: absolute;
  inset: 0;
  height: 100%;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s;
}

.home-slider-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.home-slider-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  background: linear-gradient(100deg,
      rgba(20, 18, 15, 0.93) 0%,
      rgba(20, 18, 15, 0.78) 38%,
      rgba(20, 18, 15, 0.5) 62%,
      rgba(20, 18, 15, 0.28) 100%);
  box-shadow: inset 0 0 140px rgba(0, 0, 0, 0.22);
}

.home-slider-inner {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  min-height: 100%;
  height: 100%;
  padding: 48px var(--site-gutter) 72px;
  width: 100%;
  max-width: var(--site-max);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

.home-slider-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 18px;
}

.home-slider-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.06;
  color: #fff;
  margin-bottom: 20px;
  max-width: min(600px, 46vw);
}

.home-slider-inner h1 em {
  font-style: italic;
  color: var(--accent-light);
}

.home-slider-desc {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 10px;
  max-width: min(540px, 40vw);
}

.home-slider-inner .btn-primary {
  margin-top: 14px;
  padding: 15px 32px;
  font-size: 12px;
  letter-spacing: 2px;
}

.home-slider-inner p:not(.home-slider-tag):not(.home-slider-desc) {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  max-width: min(540px, 40vw);
}

.home-slider-prev,
.home-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s, border-color 0.2s;
}

.home-slider-prev {
  left: 24px;
}

.home-slider-next {
  right: 24px;
}

.home-slider-prev:hover,
.home-slider-next:hover {
  background: rgba(196, 148, 74, 0.5);
  border-color: var(--accent-light);
}

.home-slider-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.home-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.35);
  transition: transform 0.2s, background 0.2s;
}

.home-slider-dot.is-active {
  background: var(--accent-light);
  transform: scale(1.2);
}

/* Слайд «Монтаж» — текст + фото дверей */
.home-slider-slide--montage .home-slider-overlay {
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  background: linear-gradient(100deg,
      rgba(20, 18, 15, 0.94) 0%,
      rgba(20, 18, 15, 0.82) 40%,
      rgba(20, 18, 15, 0.52) 68%,
      rgba(20, 18, 15, 0.25) 100%);
  box-shadow: inset 0 0 140px rgba(0, 0, 0, 0.22);
}

.home-slider-inner--split {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 72px);
  min-height: 100%;
  padding-bottom: 88px;
}

.home-slider-copy {
  flex: 1 1 420px;
  max-width: min(580px, 44vw);
  min-width: 0;
  align-self: center;
}

.home-slider-slide--montage h1 {
  max-width: none;
  line-height: 1.08;
  font-size: clamp(38px, 4.6vw, 62px);
}

.home-slider-price {
  white-space: nowrap;
  display: inline-block;
}

.home-slider-doors {
  position: relative;
  flex: 1 1 42%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  min-width: 0;
  padding-bottom: 8px;
  align-self: center;
  perspective: 1400px;
}

/* Мягкая «площадка» под дверями */
.home-slider-doors::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 115%;
  height: 28px;
  background: radial-gradient(ellipse 80% 100% at 50% 100%, rgba(0, 0, 0, 0.55) 0%, transparent 72%);
  filter: blur(6px);
  pointer-events: none;
  z-index: 0;
}

.home-slider-door {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  filter:
    drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35)) drop-shadow(0 22px 36px rgba(0, 0, 0, 0.45)) drop-shadow(0 40px 64px rgba(0, 0, 0, 0.28));
  transition: transform 0.45s ease, filter 0.45s ease;
}

/* Тень на «полу» у каждой двери */
.home-slider-door::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 78%;
  height: 14px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.65) 0%, transparent 72%);
  filter: blur(5px);
  pointer-events: none;
  z-index: -1;
}

.home-slider-slide--montage.is-active .home-slider-door:nth-child(1) {
  animation: doorFloatIn 0.7s ease 0.15s both;
}

.home-slider-slide--montage.is-active .home-slider-door:nth-child(2) {
  animation: doorFloatIn 0.7s ease 0.28s both;
}

.home-slider-slide--montage.is-active .home-slider-door:nth-child(3) {
  animation: doorFloatIn 0.7s ease 0.41s both;
}

@keyframes doorFloatIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-slider-door:nth-child(2) img {
  height: clamp(240px, 38vh, 440px);
}

.home-slider-door img {
  height: clamp(230px, 36vh, 420px);
  width: auto;
  max-width: min(19vw, 195px);
  object-fit: contain;
  display: block;
  transition: transform 0.45s ease;
}

.home-slider-door:nth-child(1) img {
  transform: rotateY(-3deg);
}

.home-slider-door:nth-child(2) img {
  transform: rotateY(0deg) scale(1.03);
}

.home-slider-door:nth-child(3) img {
  transform: rotateY(3deg);
}

.home-slider-doors:hover .home-slider-door:nth-child(1) img {
  transform: rotateY(-2deg) translateY(-4px);
}

.home-slider-doors:hover .home-slider-door:nth-child(2) img {
  transform: scale(1.05) translateY(-6px);
}

.home-slider-doors:hover .home-slider-door:nth-child(3) img {
  transform: rotateY(2deg) translateY(-4px);
}

.home-slider-doors:hover .home-slider-door {
  filter:
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4)) drop-shadow(0 28px 44px rgba(0, 0, 0, 0.5)) drop-shadow(0 48px 72px rgba(0, 0, 0, 0.32));
}

/* Белый фон JPG «растворяется» в тёмном слайдере */
.home-slider-door--white-bg img {
  mix-blend-mode: multiply;
}

/* Чёрный фон PNG — убираем подложку */
.home-slider-door--dark-bg img {
  mix-blend-mode: lighten;
}

/* ========== HERO (legacy) ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/slide-1.jpg');
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(20, 18, 15, 0.82) 0%, rgba(20, 18, 15, 0.65) 50%, rgba(20, 18, 15, 0.75) 100%);
}

.hero-content {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 140px var(--site-gutter) 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-left {
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-tag-line {
  width: 40px;
  height: 1px;
  background: var(--accent-light);
}

.hero-tag-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-light);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 400;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-light);
}

.hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.3s;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(154, 109, 75, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.hero-right {
  position: relative;
  height: 600px;
  opacity: 0;
  animation: fadeIn 1.2s ease 0.6s forwards;
}

.hero-door-showcase {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-door-img {
  max-height: 520px;
  width: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
  transition: transform 0.6s;
}

.hero-door-img:hover {
  transform: scale(1.03);
}

.door-badge {
  position: absolute;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 8px 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 4px;
  z-index: 10;
}

.hero-stat-strip {
  position: absolute;
  bottom: 0;
  left: -40px;
  right: -40px;
  display: flex;
  z-index: 1;
}

.hero-stat {
  flex: 1;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--accent-light);
}

.hero-stat-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

/* ========== SECTIONS ========== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
}

.section-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-tag-line {
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.section-tag-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.1;
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-2);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
  white-space: nowrap;
}

.section-link:hover {
  color: var(--accent);
}

.section-link span {
  transition: transform 0.3s;
  display: inline-block;
}

.section-link:hover span {
  transform: translateX(4px);
}

/* ========== CATEGORIES (white bg) ========== */
.categories {
  padding: 88px 0;
  width: 100%;
  margin-top: 0;
}

.categories .section-header,
.categories .cat-grid {
  width: 100%;
  max-width: var(--site-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--site-gutter);
  padding-right: var(--site-gutter);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.cat-card {
  position: relative;
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 36px 26px 56px;
  min-height: 380px;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.35s;
  overflow: hidden;
  text-decoration: none;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.cat-icon {
  flex: 0 0 150px;
  width: 100%;
  height: 150px;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.cat-icon img {
  max-height: 130px;
  max-width: 88%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
  transition: transform 0.4s;
}

.cat-card:hover .cat-icon img {
  transform: scale(1.06);
}

.cat-num {
  display: none;
}

.cat-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.cat-desc {
  flex: 1 1 auto;
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.5;
  min-height: calc(1.5em * 3);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.cat-arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 14px;
  transition: all 0.3s;
}

.cat-card:hover .cat-arrow {
  border-color: var(--accent);
  color: var(--accent);
}

/* ========== BESTSELLERS (off-white bg) ========== */
.bestsellers {
  padding: 72px 0 88px;
  background: var(--off-white);
}

.bestsellers>.section-header,
.bestsellers>.products-grid {
  width: 100%;
  max-width: var(--site-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--site-gutter);
  padding-right: var(--site-gutter);
}

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

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  transition: all 0.35s;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* WHITE image zone — white photo edges invisible */
.product-img {
  height: 320px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-img img {
  max-height: 280px;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s;
}

.product-card:hover .product-img img {
  transform: scale(1.04);
}

.product-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  z-index: 2;
}

.product-info {
  padding: 24px;
}

.product-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.product-variant {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 16px;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--accent);
}

.product-price small {
  font-size: 14px;
  color: var(--text-3);
  font-weight: 400;
}

.product-btn {
  padding: 10px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
  text-decoration: none;
}

.product-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ========== PARALLAX BANNER ========== */
.parallax-banner {
  height: 380px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.parallax-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.parallax-banner-bg {
  display: none;
}

.parallax-banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  padding: 0 40px;
}

.parallax-banner-content h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  margin-bottom: 16px;
  color: #fff;
}

.parallax-banner-content h2 em {
  font-style: italic;
  color: var(--accent-light);
}

.parallax-banner-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.parallax-banner-content .section-tag-line {
  background: var(--accent-light);
}

.parallax-banner-content .section-tag-text {
  color: var(--accent-light);
}

/* ========== WHY US (off-white) ========== */
.why-us {
  padding: 100px 0;
  background: var(--off-white);
}

.why-content {
  width: 100%;
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 var(--site-gutter);
}

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

.why-card {
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.35s;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.why-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
}

.why-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.why-card:hover .why-icon img {
  opacity: 1;
}

.why-num {
  display: none;
}

.why-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
}

.why-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
}

/* ========== STEPS (white) ========== */
.steps {
  padding: 100px 0;
  width: 100%;
}

.steps .section-header,
.steps .steps-grid {
  width: 100%;
  max-width: var(--site-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--site-gutter);
  padding-right: var(--site-gutter);
}

.steps .steps-grid {
  margin-top: 60px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.step-card {
  text-align: center;
  padding: 32px 16px;
  position: relative;
}

.step-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
}

.step-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.85;
}

.step-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.2;
  margin-bottom: 16px;
  line-height: 1;
}

.step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

.step-connector {
  position: absolute;
  top: 80px;
  right: -16px;
  width: 32px;
  height: 1px;
  background: var(--border);
}

.step-card:last-child .step-connector {
  display: none;
}

/* ========== PARTNERS (off-white) ========== */
.partners {
  padding: 80px 0;
  background: var(--off-white);
}

.partners-content {
  width: 100%;
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 var(--site-gutter);
}

.partners-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(16px, 2.5vw, 40px);
  flex-wrap: nowrap;
}

.partner-item {
  flex: 1 1 0;
  min-width: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.partner-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

.partner-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* ========== CTA ========== */
.cta {
  padding: 100px 40px;
  position: relative;
  overflow: hidden;
  background: #0a0908;
}

.cta-bg {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: calc(100% + 4px);
  background-image: url('../img/parallax-2.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.18);
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1.1;
  color: #fff;
}

.cta h2 em {
  font-style: italic;
  color: var(--accent-light);
}

.cta p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  line-height: 1.7;
}

.cta .section-tag-line {
  background: var(--accent-light);
}

.cta .section-tag-text {
  color: var(--accent-light);
}

.cta-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.cta-form input {
  flex: 1;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
  border-radius: var(--radius);
}

.cta-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.cta-form input:focus {
  border-color: var(--accent-light);
}

.cta-form button {
  padding: 16px 32px;
  background: var(--accent);
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.cta-form button:hover {
  background: var(--accent-light);
}

/* ========== FOOTER ========== */
footer {
  padding: 80px 0 40px;
  background: #1c1917;
}

.footer-content {
  width: 100%;
  max-width: var(--site-max);
  margin: 0 auto;
  padding-left: var(--site-gutter);
  padding-right: var(--site-gutter);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid #2c2825;
}

.footer-brand .logo {
  margin-bottom: 14px;
}

.footer-brand .logo-img {
  filter: none;
  opacity: 1;
}

/* Футер: делаем лого заметнее и шире */
.footer-brand .logo-img--footer {
  width: 280px;
  height: auto;
  max-width: 100%;
}

.footer-brand p {
  font-size: 14px;
  color: #a09890;
  line-height: 1.7;
  max-width: 340px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #a09890;
  margin-bottom: 24px;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: #a09890;
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  width: 100%;
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 30px var(--site-gutter) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 12px;
  color: #8a8580;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-social {
  width: 36px;
  height: 36px;
  border: 1px solid #2c2825;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.footer-social img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(0.4);
  transition: filter 0.3s;
}

.footer-social:hover {
  border-color: var(--accent-light);
}

.footer-social:hover img {
  filter: brightness(0) invert(0.8);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-right {
    height: 400px;
  }

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

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

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

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .step-connector {
    display: none !important;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .partners-grid {
    justify-content: center;
  }

  :root {
    --site-gutter: 24px;
  }

  .header-contact,
  .header-actions {
    display: none;
  }

  .header-main-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 16px;
    padding: 10px 0;
  }

  .header-main-inner > .header-brand-col {
    width: auto;
    max-width: min(220px, calc(100vw - 88px));
  }

  .site-header .logo--dark .logo-img,
  .site-header .logo--dark .logo-img--navbar {
    width: auto;
    height: 48px;
    max-height: 48px;
    max-width: min(200px, calc(100vw - 88px));
    aspect-ratio: 480 / 194;
  }

  .header-nav {
    display: none;
  }

  .burger {
    display: flex !important;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
}

@media (max-width: 640px) {
  .hero-content {
    padding: 80px 20px 60px;
  }

  .hero-right {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

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

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

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta-form {
    flex-direction: column;
  }

  .phone-number {
    display: none;
  }

  section,
  .categories,
  .bestsellers,
  .steps {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .parallax-banner {
    height: 300px;
  }
}

/* ========== SCROLL REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Header shrink */
header {
  transition: padding 0.35s ease, box-shadow 0.35s ease;
}

.header-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.header-scrolled .header-main-inner {
  padding-top: 10px;
  padding-bottom: 10px;
}

.header-scrolled .site-header .logo--dark .logo-img,
.header-scrolled .site-header .logo--dark .logo-img--navbar {
  max-height: none;
}

/* Hero entrance */
.hero .hero-right {
  opacity: 0;
}

.hero.hero-loaded .hero-right {
  animation: heroSlideLeft 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

@keyframes heroSlideRight {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heroSlideLeft {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Smooth image zoom on cards */
.cat-icon img,
.product-img img,
.product-card .product-img img,
.related-card-img img,
.hero-door-img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Button transitions */
.btn-primary,
.btn-secondary,
.btn-callback,
.btn-order,
.btn-order-lg,
.btn-measure,
.product-btn {
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Card lift */
.cat-card,
.product-card,
.why-card,
.related-card,
.contact-card,
.service-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Nav underline smooth */
nav a::after {
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Footer social hover */
.footer-social {
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-social:hover {
  transform: translateY(-3px);
}

/* Partner logo hover */
.partner-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Parallax backgrounds use transform instead of scroll */
.parallax-banner-bg,
.cta-bg {
  background-attachment: scroll !important;
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero .hero-left,
  .hero .hero-right {
    opacity: 1;
    animation: none !important;
  }

  .parallax-banner-bg,
  .cta-bg {
    transform: none !important;
  }

  .home-slider-slide--montage.is-active .home-slider-door {
    animation: none !important;
  }
}


/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal-overlay {
  display: none;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 99999 !important;
  background: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
}

.modal-overlay.modal-active {
  display: flex !important;
}

.modal {
  background: #fff;
  border-radius: 8px;
  padding: 48px 40px;
  max-width: 460px;
  width: 90%;
  position: relative;
  z-index: 100000 !important;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #aaa;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #222;
}

.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  margin-bottom: 10px;
}

.modal-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 28px;
  line-height: 1.6;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-form input {
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.modal-form input:focus {
  border-color: var(--accent-light);
}

.modal-success {
  display: none;
  margin-top: 16px;
  color: #2a7a2a;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}


/* ========== БУРГЕР-МЕНЮ ========== */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10001;
  line-height: 0;
}

.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #1c1917;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.open span {
  background: #fff;
}

.burger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .header-nav {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(10, 9, 8, 0.98);
    align-items: center;
    justify-content: center;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 10000;
  }

  .header-nav.nav-open {
    transform: translateX(0);
  }

  .header-nav-inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 40px 24px;
  }

  .header-nav-meta {
    align-items: center;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .header-official {
    justify-self: center;
    text-align: center;
    white-space: normal;
    order: 2;
    padding-bottom: 20px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .header-nav-links {
    order: 3;
  }

  .header-mobile-actions {
    order: 4;
  }

  .header-nav-links {
    flex-direction: column;
    gap: 28px;
  }

  .header-nav-links a {
    padding: 0;
    font-size: 22px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.85);
  }

  .header-nav-links a::after {
    display: none;
  }

  .header-nav-links a:hover,
  .header-nav-links a.nav-active {
    color: var(--accent-light);
  }

  .header-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(320px, 100%);
    margin-top: 8px;
  }

  .header-mobile-actions .btn-header-outline,
  .header-mobile-actions .btn-callback {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    border-radius: 2px;
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    background: transparent;
  }

  .header-mobile-actions .btn-header-outline:hover,
  .header-mobile-actions .btn-callback:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }
}


/* ========== PAGE TRANSITIONS ========== */
body {
  opacity: 1;
  transition: opacity 0.35s ease;
}

body.page-entering {
  opacity: 0;
}

body.page-entered {
  opacity: 1;
}

body.page-leaving {
  opacity: 0;
  pointer-events: none;
}

/* Modal overlays should never be affected by page transitions */
.cta-success {
  display: none;
  margin-top: 16px;
  color: #d4a96a;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.footer-tg {
  color: #a89070;
  display: flex;
  align-items: center;
}

.footer-tg:hover {
  color: var(--accent-light);
}

.footer-email {
  color: #a89070;
  display: flex;
  align-items: center;
}

.footer-email:hover {
  color: var(--accent-light);
}


/* ========== UTILITY CLASSES ========== */
.btn-full {
  width: 100%;
  justify-content: center;
}

.mb-16 {
  margin-bottom: 16px;
}

.admin-link {
  color: var(--text-3);
  font-size: 10px;
  opacity: 0.5;
  text-decoration: none;
}

.modal-textarea {
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  resize: none;
  outline: none;
  width: 100%;
}

.section-tag--center {
  justify-content: center;
  margin-bottom: 20px;
}


/* ========================================
   УЛУЧШЕННЫЙ АДАПТИВ
   ======================================== */

/* ---- 1024px (планшет) ---- */
@media (max-width: 1024px) {

  /* Секции */
  .categories,
  .bestsellers,
  .steps,
  .why-us,
  .partners,
  .cta {
    padding-left: 24px;
    padding-right: 24px;
  }

  /* Hero */
  .hero-stat-strip {
    left: 0;
    right: 0;
  }

  .hero-stat {
    padding: 14px 8px;
  }

  .hero-stat-num {
    font-size: 24px;
  }

  .hero-stat-label {
    font-size: 9px;
  }

  /* Section header */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 40px;
  }

  /* Why-grid 2 cols on tablet */
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-content {
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* ---- 768px (малый планшет / большой телефон) ---- */
@media (max-width: 768px) {

  /* Слайдер — слайд с монтажом */
  .home-slider-inner--split {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding-bottom: 88px;
  }

  .home-slider-inner h1,
  .home-slider-desc,
  .home-slider-inner p:not(.home-slider-tag):not(.home-slider-desc) {
    max-width: 100%;
  }

  .home-slider-copy {
    max-width: 100%;
    flex-basis: auto;
  }

  .home-slider-doors {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

  .home-slider-door {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
  }

  .home-slider-door img,
  .home-slider-door:nth-child(2) img {
    height: clamp(140px, 28vw, 200px);
    max-width: 100%;
    transform: none !important;
  }

  /* Hero */
  .hero-content {
    padding: 120px 24px 80px;
  }

  .hero h1 {
    font-size: clamp(36px, 9vw, 56px);
  }

  .hero-desc {
    font-size: 14px;
    margin-bottom: 32px;
  }

  .hero-actions {
    gap: 12px;
  }

  .hero-stat-strip {
    position: relative;
    left: auto;
    right: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stat {
    border-top: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* Categories */
  .cat-card {
    min-height: 320px;
    padding: 28px 20px 48px;
  }

  .cat-icon {
    flex: 0 0 120px;
    height: 120px;
    min-height: 120px;
  }

  .cat-icon img {
    max-height: 100px;
  }

  .cat-name {
    font-size: 20px;
  }

  /* Products */
  .product-img {
    height: 260px;
  }

  .product-img img {
    max-height: 220px;
  }

  .product-name {
    font-size: 18px;
  }

  .product-price {
    font-size: 22px;
  }

  /* Why */
  .why-card {
    padding: 28px 20px;
  }

  .why-title {
    font-size: 18px;
  }

  /* Steps */
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .step-num {
    font-size: 40px;
  }

  /* Partners */
  .partners-grid {
    gap: 24px;
    justify-content: center;
  }

  .partner-item {
    height: 70px;
  }

  /* CTA */
  .cta {
    padding: 60px 24px;
  }

  .cta h2 {
    font-size: clamp(28px, 7vw, 40px);
  }

  .cta-form {
    flex-direction: column;
    gap: 10px;
  }

  .cta-form input,
  .cta-form button {
    width: 100%;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
  }

  footer {
    padding: 60px 24px 32px;
  }

  /* Section titles */
  .section-title {
    font-size: clamp(28px, 6vw, 40px);
  }

  /* Parallax banner */
  .parallax-banner {
    height: 260px;
    background-attachment: scroll;
  }

  .parallax-banner-content {
    padding: 0 24px;
  }

  .parallax-banner-content h2 {
    font-size: clamp(24px, 6vw, 36px);
  }

  .parallax-banner-content p {
    font-size: 14px;
  }
}

/* ---- 480px (телефон) ---- */
@media (max-width: 480px) {

  /* Header */
  .header-top {
    padding: 12px 16px;
  }

  :root {
    --site-gutter: 16px;
  }

  .home-slider {
    height: auto;
    min-height: 0;
  }

  .home-slider-track {
    height: auto;
    min-height: 0;
  }

  .home-slider-slide {
    position: absolute;
    inset: 0;
    height: 100%;
    min-height: 0;
  }

  .home-slider-slide.is-active {
    position: relative;
    height: auto;
    min-height: 520px;
  }

  .home-slider-inner {
    padding: 32px 16px 72px;
    align-items: flex-start;
    height: auto;
    min-height: 520px;
  }

  .home-slider-inner h1 {
    font-size: clamp(26px, 8vw, 36px);
    max-width: 100%;
    margin-bottom: 14px;
  }

  .home-slider-desc,
  .home-slider-inner p:not(.home-slider-tag):not(.home-slider-desc) {
    font-size: clamp(14px, 3.8vw, 16px);
    max-width: 100%;
  }

  .home-slider-inner--split {
    min-height: auto;
    padding-bottom: 72px;
  }

  .home-slider-doors {
    display: none;
  }

  .home-slider-door img,
  .home-slider-door:nth-child(2) img {
    height: clamp(120px, 32vw, 170px);
    max-width: 100%;
    transform: none !important;
  }

  .home-slider-doors:hover .home-slider-door img {
    transform: none !important;
  }

  .home-slider-door::after {
    width: 90%;
    height: 10px;
  }

  .home-slider-slide--montage .home-slider-overlay {
    background: linear-gradient(180deg,
        rgba(20, 18, 15, 0.92) 0%,
        rgba(20, 18, 15, 0.82) 55%,
        rgba(20, 18, 15, 0.62) 100%);
  }

  .home-slider-prev,
  .home-slider-next {
    width: 40px;
    height: 40px;
  }

  .home-slider-prev {
    left: 8px;
  }

  .home-slider-next {
    right: 8px;
  }

  .site-header .logo--dark .logo-img,
  .site-header .logo--dark .logo-img--navbar,
  header .logo--dark .logo-img {
    height: 40px;
    max-height: 40px;
    max-width: min(168px, calc(100vw - 72px));
  }

  .logo--light .logo-img {
    height: 38px;
    max-width: 190px;
  }

  .phone-number {
    display: none;
  }

  /* Footer */
  .footer-brand .logo-img--footer {
    width: 240px;
  }

  /* Hero */
  .hero-content {
    padding: 100px 16px 60px;
  }

  .hero h1 {
    font-size: clamp(32px, 10vw, 48px);
  }

  .hero-desc {
    font-size: 13px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }

  .hero-stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stat-num {
    font-size: 20px;
  }

  /* Categories */
  .categories {
    padding: 60px 16px;
  }

  .cat-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cat-card {
    min-height: 300px;
    padding: 24px 16px 48px;
  }

  .cat-icon {
    flex: 0 0 100px;
    height: 100px;
    min-height: 100px;
  }

  /* Products */
  .bestsellers {
    padding: 60px 16px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-img {
    height: 240px;
  }

  .product-info {
    padding: 16px;
  }

  .product-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .product-btn {
    width: 100%;
    text-align: center;
  }

  /* Why */
  .why-us {
    padding: 60px 16px;
  }

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

  .why-card {
    padding: 24px 16px;
  }

  /* Steps */
  .steps {
    padding: 60px 16px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .step-card {
    padding: 20px 8px;
  }

  .step-num {
    font-size: 32px;
  }

  .step-title {
    font-size: 12px;
  }

  .step-desc {
    font-size: 11px;
  }

  /* Partners */
  .partners {
    padding: 50px 16px;
  }

  .partners-grid {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .partner-item {
    flex: 0 1 calc(33.333% - 14px);
    height: 56px;
  }

  /* CTA */
  .cta {
    padding: 50px 16px;
  }

  .cta p {
    font-size: 14px;
    margin-bottom: 28px;
  }

  /* Footer */
  footer {
    padding: 50px 16px 28px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-brand p {
    max-width: 100%;
  }

  /* Section headers */
  .section-header {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: clamp(26px, 8vw, 36px);
  }

  /* Модалка */
  .modal {
    padding: 32px 20px;
    width: 95%;
  }

  .modal-title {
    font-size: 26px;
  }

  /* Parallax */
  .parallax-banner {
    height: 220px;
  }

  .parallax-banner-content p {
    display: none;
  }
}

/* ---- Очень маленькие экраны (360px и меньше) ---- */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 28px;
  }

  .hero-stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }

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

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