
:root {

  --green: #0e443c;
  --green-dark: #0a332d;
  --brown: #935a38;
  --brown-hover: #7a4a2e;
  --blue: #0e443c;
  --blue-dark: #0a332d;
  --orange: #935a38;
  --orange-hover: #7a4a2e;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --border: #e8e8e8;
  --bg: #ffffff;
  --bg-soft: #ffffff;
  --shadow: 0 8px 24px rgba(14, 68, 60, 0.08);
  --shadow-lg: 0 16px 40px rgba(14, 68, 60, 0.12);
  --container: 1360px;
  --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: auto;
  /* На мобилке stable даёт лишнюю полосу и горизонтальный скролл */
  scrollbar-gutter: auto;
  /* WP fatal-handler иногда вставляет html{background:#f1f1f1} в конец страницы */
  background: var(--bg, #fff) !important;
  /* Не ставить overflow-x на html — ломает position:sticky у шапки */
  max-width: 100%;
}

@media (min-width: 901px) {
  html {
    scrollbar-gutter: stable;
  }
}

body {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* overflow-x на body ломает sticky/fixed на iOS — режем только внутри main */
  overflow-x: visible;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

button,
input {
  font: inherit;
  border: none;
  background: none;
  outline: none;
}

.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: clamp(16px, 3.5vw, 32px);
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn--orange {
  background: var(--orange);
  color: #fff;
}

.btn--orange:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(147, 90, 56, 0.32);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 15px;
}

.btn--block {
  width: 100%;
}

.btn--outline {
  border: 1.5px solid var(--blue);
  color: var(--blue);
  background: transparent;
  padding: 8px 16px;
  font-size: 13px;
}

.btn--outline:hover {
  background: var(--blue);
  color: #fff;
}

.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 200;
  background: #fff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

/* Резерв высоты под fixed-шапку (точное значение пишет JS → --kd-head-h) */
.site-head-spacer {
  display: block;
  width: 100%;
  height: var(--kd-head-h, 120px);
  pointer-events: none;
  visibility: hidden;
}

body.admin-bar .site-head {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-head {
    top: 46px;
  }
}

@media (max-width: 860px) {
  .site-head-spacer {
    height: var(--kd-head-h, 64px);
  }
}

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

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

.topbar__left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  flex-wrap: wrap;
}

.topbar__city {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.city-switch {
  position: relative;
  z-index: 220;
  flex-shrink: 0;
}

.city-switch__btn {
  margin: 0;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  max-width: min(220px, 40vw);
}

.city-switch__drop[hidden] {
  display: none !important;
}

.city-switch__btn:hover,
.city-switch__btn[aria-expanded="true"] {
  color: var(--blue);
}

.city-switch__label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.city-switch__chev {
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.city-switch__btn[aria-expanded="true"] .city-switch__chev {
  transform: rotate(180deg);
}

.city-switch__drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(280px, calc(100vw - 32px));
  max-height: min(360px, 60vh);
  overflow: auto;
  padding: 10px 0;
  background: #fff;
  border: 1px solid var(--border, #e8e8e8);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.city-switch__hint {
  margin: 0;
  padding: 0 14px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted, #6b7280);
}

.city-switch__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.city-switch__item {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #1a1a1a);
  text-decoration: none;
}

.city-switch__item:hover,
.city-switch__item:focus-visible {
  background: #f4f7f6;
  color: var(--green, #0e443c);
  outline: none;
}

.city-switch__item.is-active {
  background: rgba(14, 68, 60, 0.08);
  color: var(--green, #0e443c);
}

@media (max-width: 900px) {
  .city-switch__btn {
    max-width: min(180px, 38vw);
  }
}

.topbar__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.topbar__nav a {
  font-weight: 500;
  color: var(--text-muted);
}

.topbar__nav a:hover {
  color: var(--blue);
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.topbar__auth {
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}

.topbar__auth:hover {
  color: var(--orange);
}

.topbar__phone {
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}

.topbar__phone:hover {
  color: var(--blue);
}

.header {
  background: #fff;
  padding: 16px 0;
  border-bottom: 1px solid #eef0f3;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px 28px;
}

 body .logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-align: left;
  flex-shrink: 0;
  min-width: 0;
}

 body .logo .custom-logo-link {
  display: block;
  line-height: 0;
}

 body .logo .custom-logo,
 body .logo__img {
  display: block;
  width: auto;
  height: 52px;
  max-width: min(280px, 58vw);
  object-fit: contain;
}

.header__infos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.header-info {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 200px;
}

.header-info__icon {
  flex-shrink: 0;
  color: #9aa3af;
}

.header-info__text {
  font-size: 13px;
  line-height: 1.35;
  color: var(--text);
  font-weight: 600;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex-shrink: 0;
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--green);
}

.header__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.header__burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.header__burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 115;
  background: rgba(8, 38, 32, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.mobile-nav__overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav__overlay[hidden],
.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  width: min(100vw - 48px, 340px);
  height: 100%;
  max-height: 100dvh;
  background: #fff;
  box-shadow: 8px 0 32px rgba(14, 68, 60, 0.18);
  transform: translateX(-105%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

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

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--green);
  color: #fff;
  flex-shrink: 0;
}

.mobile-nav__head strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.mobile-nav__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
}

.mobile-nav__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mobile-nav__body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 20px;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav__group {
  display: flex;
  flex-direction: column;
  padding: 8px 12px 12px;
}

.mobile-nav__group + .mobile-nav__group {
  border-top: 1px solid var(--border);
}

.mobile-nav__label {
  margin: 8px 10px 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brown);
}

.mobile-nav__list,
.mobile-nav__body .navbar__menu,
.mobile-nav__body .menu {
  list-style: none;
  margin: 0;
  padding: 4px 0 8px;
  display: flex;
  flex-direction: column;
}

.mobile-nav__list li,
.mobile-nav__body .navbar__menu li,
.mobile-nav__body .menu li {
  margin: 0;
}

.mobile-nav__list a,
.mobile-nav__body .navbar__menu a,
.mobile-nav__body .menu a,
.mobile-nav__group a {
  display: block;
  padding: 12px 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  border-radius: 8px;
  text-decoration: none;
}

.mobile-nav__list a:hover,
.mobile-nav__list a:active,
.mobile-nav__body .navbar__menu a:hover,
.mobile-nav__body .navbar__menu a:active,
.mobile-nav__body .menu a:hover,
.mobile-nav__body .menu a:active,
.mobile-nav__group a:hover,
.mobile-nav__group a:active {
  background: rgba(14, 68, 60, 0.06);
  color: var(--green);
}

.mobile-nav__foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: #fff;
  flex-shrink: 0;
}

.mobile-nav__phone {
  font-size: 16px;
  font-weight: 800;
  color: var(--green);
}

.mobile-nav__auth {
  font-size: 14px;
  font-weight: 600;
  color: var(--brown);
}

.mobile-nav__auth.is-auth {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--green);
}

.mobile-nav__auth .topbar__logout {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brown);
  cursor: pointer;
}

body.nav-open,
body.modal-open {
  overflow: hidden;
  padding-right: var(--kd-scrollbar-w, 0px);
}

body.nav-open .site-head,
body.modal-open .site-head {
  padding-right: var(--kd-scrollbar-w, 0px);
}

.cart-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 2px;
}

.kd-mini-cart {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-link__icon {
  position: relative;
  color: #6b7280;
}

.cart-link__badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  display: grid;
  place-items: center;
}

.cart-link__badge[hidden] {
  display: inline-grid !important;
  visibility: hidden;
}

.cart-link__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-size: 12px;
  color: var(--text-muted);
}

.cart-link__text strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.cart-link:hover .cart-link__icon,
.cart-link:hover strong {
  color: var(--orange);
}

.btn--cta {
  padding: 13px 22px;
  font-size: 14px;
  border-radius: 6px;
}

.navbar {
  position: relative;
  background: var(--blue);
  color: #fff;
  z-index: 40;
}

.navbar__inner {
  display: flex;
  align-items: stretch;
  min-height: 50px;
  gap: 4px;
}

.navbar__catalog-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  z-index: 50;
}

.navbar__catalog {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 0;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
  flex-shrink: 0;
}

.navbar__catalog:hover,
.navbar__catalog.is-open,
.navbar__catalog[aria-expanded="true"] {
  background: rgba(0, 0, 0, 0.28);
}

/* Flyout-каталог — как у «Кровли Юга»: текст + ›, колонка от пункта */
.catalog-flyout {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 60;
  overflow: visible;
}

.catalog-flyout[hidden] {
  display: none !important;
}

.catalog-flyout__cols {
  position: relative;
  display: block;
  overflow: visible;
}

.catalog-flyout__col {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  min-width: 280px;
  width: max-content;
  max-width: 360px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: 2px solid #c45c26;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  color: #555;
  overflow: visible;
}

/* Корневая колонка — без скролла (9 пунктов), иначе обрезает вложенные */
.catalog-flyout__cols > .catalog-flyout__col {
  position: relative;
  max-height: none;
  overflow: visible;
}

/* Вложенная колонка — ровно от активного пункта вправо */
.catalog-flyout__item {
  position: relative;
  margin: 0;
}

.catalog-flyout__item > .catalog-flyout__col {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  z-index: 5;
  max-height: none;
  overflow: visible;
}

.catalog-flyout__item.is-active > .catalog-flyout__col {
  display: block;
}

.catalog-flyout__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  padding: 12px 18px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  color: #555;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.catalog-flyout__label {
  min-width: 0;
}

.catalog-flyout__chev {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #bdbdbd;
  border-bottom: 1.5px solid #bdbdbd;
  transform: rotate(-45deg);
  margin-right: 2px;
  opacity: 0.9;
}

.catalog-flyout__item.is-active > .catalog-flyout__link,
.catalog-flyout__item > .catalog-flyout__link:hover {
  background: #f0f0f0;
  color: #333;
}

.catalog-flyout__item.is-active > .catalog-flyout__link .catalog-flyout__chev,
.catalog-flyout__item > .catalog-flyout__link:hover .catalog-flyout__chev {
  border-color: #999;
}

.catalog-flyout__empty {
  display: block;
  padding: 14px 18px;
  font-size: 14px;
  color: #888;
}

@media (max-width: 900px) {
  .catalog-flyout {
    display: none !important;
  }
}

.navbar__burger {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.navbar__burger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.navbar__menu {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.navbar__menu::-webkit-scrollbar {
  display: none;
}

.navbar__menu a {
  padding: 12px 12px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0.95;
  color: #fff !important;
  text-decoration: none !important;
}

.navbar__menu a:hover {
  background: rgba(255, 255, 255, 0.12);
  opacity: 1;
  color: #fff !important;
}

.navbar__search {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.navbar__search-btn {
  width: 50px;
  height: 100%;
  min-height: 50px;
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  transition: background var(--transition);
}

.navbar__search-btn:hover,
.navbar__search.is-open .navbar__search-btn {
  background: rgba(0, 0, 0, 0.18);
}

.navbar__search-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(380px, calc(100vw - 16px));
  z-index: 90;
}

.navbar__search-panel[hidden] {
  display: none;
}

.navbar__search-panel .kd-search {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.navbar__search-panel .search-drop {
  position: relative;
  top: 6px;
  left: auto;
  right: auto;
  box-shadow: var(--shadow);
}

.kd-search {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  min-width: 0;
  width: 100%;
}

.kd-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(14, 68, 60, 0.12);
}

.kd-search__input {
  flex: 1;
  padding: 11px 14px;
  min-width: 0;
}

.kd-search__btn {
  padding: 0 14px;
  color: var(--text-muted);
  cursor: pointer;
}

.kd-search__btn:hover {
  color: var(--blue);
  background: var(--bg-soft);
}

.hero {
  position: relative;
  background: var(--green-dark);
}

.hero__swiper {
  height: clamp(360px, 48vw, 500px);
}

.hero--single .hero__slide {
  height: clamp(360px, 48vw, 500px);
}

.hero__slide {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background: #0a332d;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(10, 51, 45, 0.78) 0%, rgba(10, 51, 45, 0.45) 45%, rgba(10, 51, 45, 0.15) 100%);
  pointer-events: none;
}

.hero__slide > .container {
  position: relative;
  z-index: 2;
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: clamp(16px, 3.5vw, 32px);
  box-sizing: border-box;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  width: 100%;
  margin: 0;
  margin-right: auto;
  padding-block: 40px;
  text-align: left;
}

@media (max-width: 860px) {
  .hero {
    background: #0a332d;
  }

  .hero__swiper {
    height: min(70vh, 460px);
    min-height: 360px;
  }

  .hero--single .hero__slide {
    height: min(70vh, 460px);
    min-height: 360px;
  }

  .hero__slide {
    align-items: center;
    height: 100%;
    min-height: 0;
  }

  .hero__slide > .container {
    align-items: center;
    height: 100%;
  }

  .hero__content {
    padding-top: 32px;
    padding-bottom: 36px;
  }

  .hero__title {
    font-size: clamp(24px, 7vw, 32px);
  }

  /* На мобилке точки слайдера не показываем — выглядят как лишняя зелёная полоса */
  .hero__pagination {
    display: none !important;
  }
}

.hero__title {
  color: #fff;
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  text-align: left;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
  animation: heroIn 0.8s ease both;
}

.hero__text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  margin-bottom: 24px;
  max-width: 460px;
  text-align: left;
  animation: heroIn 0.8s 0.1s ease both;
}

.hero__content .btn {
  animation: heroIn 0.8s 0.2s ease both;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background var(--transition), transform var(--transition);
}

.hero__nav::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.hero__nav--prev {
  left: 20px;
}

.hero__nav--prev::before {
  transform: rotate(-135deg) translate(-1px, -1px);
}

.hero__nav--next {
  right: 20px;
}

.hero__nav--next::before {
  transform: rotate(45deg) translate(-1px, 1px);
}

.hero__nav:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-50%) scale(1.05);
}

.hero__pagination {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}

.hero__pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
}

.hero__pagination .swiper-pagination-bullet-active {
  background: var(--orange);
  transform: scale(1.2);
}

.section {
  padding: 52px 0;
}

.section__title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--green);
}

.section__lead {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
  max-width: 720px;
}

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.section__head .section__title {
  margin-bottom: 0;
}

.popular-cats {
  background: #fff;
  padding-top: 40px;
  padding-bottom: 48px;
}

.popular-cats__title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 28px;
}

.popular-cats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid #e8e8e8;
  border-left: 1px solid #e8e8e8;
  background: #fff;
}

.popular-card,
.popular-more {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 220px;
  height: 100%;
  padding: 24px 12px 20px;
  border-right: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
  text-align: center;
  color: inherit;
  transition: background 0.2s ease;
  box-sizing: border-box;
}

.popular-card:hover,
.popular-more:hover {
  background: #fff;
}

.popular-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 4px 8px;
  background: var(--brown);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.popular-card__img {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 100%;
  height: 120px;
  margin: 0;
  padding: 0 16px;
  background: #fff;
  isolation: isolate;
}

.popular-card__img img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
  transition: transform 0.25s ease;
}

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

.popular-card__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  flex: 1 1 auto;
  width: 100%;
  min-height: 2.7em;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  line-height: 1.35;
  text-wrap: balance;
}

.popular-cats__grid.is-collapsed > .popular-card:nth-child(n + 10) {
  display: none;
}

.popular-cats__grid > .popular-more {
  justify-content: center;
  cursor: pointer;
  font: inherit;
  width: 100%;
}

.popular-more {
  cursor: pointer;
  font: inherit;
  width: 100%;
}

.popular-more__plus {
  width: 44px;
  height: 44px;
  border: 1.5px solid #cfcfcf;
  border-radius: 50%;
  position: relative;
  margin-bottom: 4px;
}

.popular-more__plus::before,
.popular-more__plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #888;
  transform: translate(-50%, -50%);
}

.popular-more__plus::before {
  width: 16px;
  height: 1.5px;
}

.popular-more__plus::after {
  width: 1.5px;
  height: 16px;
}

.popular-more__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
}

.popular-more__meta {
  font-size: 12px;
  color: #9a9a9a;
}

.directions {
  padding-top: 28px;
  padding-bottom: 40px;
}

.directions__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: clamp(480px, 52vw, 580px);
}

.directions__grid .dir-tile:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / 3;
}

.directions__grid .dir-tile:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.directions__grid .dir-tile:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.directions__grid .dir-tile:nth-child(4) {
  grid-column: 3;
  grid-row: 1 / 3;
}

.directions__grid .dir-tile:nth-child(5) {
  grid-column: 4;
  grid-row: 1;
}

.directions__grid .dir-tile:nth-child(6) {
  grid-column: 4;
  grid-row: 2;
}

.dir-tile {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  isolation: isolate;
  min-height: 0;
}

.dir-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.dir-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.15) 100%
  );
  z-index: 1;
  transition: background 0.35s ease;
}

.dir-tile__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 22px 20px;
  color: #fff;
  text-align: left;
}

.dir-tile__overlay h3 {
  font-size: clamp(16px, 1.35vw, 22px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.dir-tile__overlay p {
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.4;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  max-width: 28ch;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.dir-tile:hover img {
  transform: scale(1.06);
}

.dir-tile:hover::after {
  background: linear-gradient(
    165deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.48) 40%,
    rgba(0, 0, 0, 0.22) 100%
  );
}

.navbar__search-wrap {
  position: relative;
  min-width: 0;
}

.search-drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 80;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  max-height: 360px;
  overflow: auto;
  padding: 8px;
}

.search-drop[hidden] {
  display: none;
}

.search-drop__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-drop__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition);
}

.search-drop__item:hover,
.search-drop__item.is-active {
  background: var(--bg-soft);
}

.search-drop__item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.search-drop__item span {
  font-size: 12px;
  color: var(--text-muted);
}

.search-drop__empty {
  padding: 14px 12px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.search-drop__empty[hidden] {
  display: none;
}

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

.tabs__btn {
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  color: var(--green);
  background: #fff;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), border-color var(--transition);
}

.tabs__btn:hover {
  color: var(--brown);
  border-color: var(--brown);
  transform: translateY(-1px);
}

.tabs__btn.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.products__grid,
.product-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.products__grid::before,
.products__grid::after,
.product-grid::before,
.product-grid::after {
  content: none !important;
  display: none !important;
}

.products__grid[hidden],
.product-grid[hidden],
[data-kd-panel][hidden] {
  display: none !important;
}

.products__grid.is-collapsed > .product-card:nth-child(n + 10) {
  display: none;
}

.products__grid .note--empty {
  grid-column: 1 / -1;
  padding: 28px 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.products__grid > .product-card,
.home-products .product-card {
  background: #fff;
  border: none;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 16px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 100%;
  min-width: 0;
  max-width: 100%;
  width: auto;
  float: none !important;
  margin: 0 !important;
  position: relative;
  transition: background var(--transition);
  box-shadow: none;
  transform: none;
  align-self: stretch;
  box-sizing: border-box;
}

.products__grid > .popular-more,
.products__grid > .product-more,
.home-products .popular-more,
.home-products .product-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  align-self: stretch;
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: 100%;
  height: auto;
  margin: 0 !important;
  padding: 16px 14px 18px;
  border: none;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  box-sizing: border-box;
  float: none !important;
  text-align: center;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background 0.2s ease;
}

.products__grid > .popular-more:hover,
.products__grid > .product-more:hover,
.home-products .popular-more:hover,
.home-products .product-more:hover {
  background: #fafafa;
}

.home-products .product-card:hover {
  transform: none;
  box-shadow: none;
  background: #fff;
  border-color: transparent;
  border-right-color: var(--border);
  border-bottom-color: var(--border);
}

.home-products .product-card__img,
.products .product-card__img {
  display: grid;
  place-items: center;
  text-decoration: none;
  color: inherit;
}

.home-products .product-card__title,
.products .product-card__title {
  text-decoration: none;
  color: var(--text);
}

.home-products .product-card__title:hover,
.products .product-card__title:hover {
  color: var(--green);
}

.home-products a.product-card__buy,
.products a.product-card__buy {
  text-align: center;
  text-decoration: none;
}

.product-card__media {
  position: relative;
}

.product-card__top {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
  pointer-events: none;
}

.product-card__top .product-card__badge,
.product-card__top .product-card__fav {
  pointer-events: auto;
}

.product-card__badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 3px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.product-card__fav {
  color: #d4a017;
  cursor: pointer;
  opacity: 0.85;
  transition: transform var(--transition), opacity var(--transition), color var(--transition);
}

.product-card__fav:hover,
.product-card__fav.is-active {
  opacity: 1;
  color: var(--orange);
  transform: scale(1.08);
}

.home-products .product-card__img,
.products .product-card__img {
  aspect-ratio: 1 / 1;
  width: 100%;
  flex: 0 0 auto;
  max-height: 220px;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  display: grid;
  place-items: center;
  isolation: isolate;
  padding: 8px;
  box-sizing: border-box;
}

.product-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 160px;
  background:
    linear-gradient(145deg, #eef1f0, #f7f8f7);
}

.home-products .product-card__img img,
.products .product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.home-products .product-card__title,
.products .product-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  min-height: calc(1.35em * 2);
  max-height: calc(1.35em * 2);
  color: var(--text);
}

.home-products .product-card__meta,
.products .product-card__meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  margin-top: auto;
  min-height: 1.35em;
}

.home-products .product-card__price,
.products .product-card__price {
  font-size: 18px;
  font-weight: 800;
  color: var(--green);
  line-height: 1.2;
  min-height: 1.2em;
}

.home-products .product-card__price--empty,
.products .product-card__price--empty {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.home-products .product-card__price span,
.products .product-card__price span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.product-card__old,
.recs-card__old,
span.onsale,
.kd-single-product .onsale,
.kd-single-product .price del {
  display: none !important;
}

.product-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.product-card__buy {
  flex: 1;
  padding: 10px 12px;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}

.product-card__buy:hover {
  background: var(--blue-dark);
}

.product-card__compare {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.product-card__compare:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.partners {
  background: #fff;
  padding-top: 40px;
  padding-bottom: 48px;
}

.partners__title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 28px;
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid #e8e8e8;
  background: #e8e8e8;
  /* gap-линии вместо border на ячейках — без субпиксельного «зубца» на части мобилок */
}

.partner-card,
.partners__more {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  min-width: 0;
  padding: 28px 16px 24px;
  border: none;
  background: #fff;
  text-align: center;
  color: inherit;
  box-sizing: border-box;
  transition: background 0.2s ease;
}

.partner-card:hover,
.partners__more:hover:not(:disabled) {
  background: #fff;
}

.partner-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 3px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  pointer-events: none;
}

.partner-card__name {
  display: block;
  width: 100%;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #2a2a2a;
  line-height: 1.25;
  /* имя всегда по центру ячейки, бейдж не сдвигает текст */
}

.partners__more {
  cursor: pointer;
  font: inherit;
  width: 100%;
}

.partners__more:disabled {
  cursor: default;
  opacity: 0.85;
}

.partners__more .popular-more__plus {
  margin: 0;
}

.news {
  background: #fff;
  padding-top: 44px;
  padding-bottom: 52px;
}

.news-tabs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 18px 24px;
  margin: 0 0 28px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 2px 6px;
  max-width: 100%;
}

.news-tabs::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .news-tabs {
    justify-content: safe center;
    gap: 32px 48px;
    padding-bottom: 4px;
  }
}

.news-tabs__btn {
  padding: 0 0 8px;
  background: none;
  border: none;
  border-bottom: 1px dotted transparent;
  font-size: clamp(12px, 3.4vw, 15px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  flex: 0 0 auto;
}

.news-tabs__btn:hover {
  color: var(--brown);
}

.news-tabs__btn.is-active {
  color: var(--green);
  font-weight: 700;
  border-bottom-color: var(--brown);
}

.recs {
  background: #fff;
  padding-top: 40px;
  padding-bottom: 48px;
}

.recs__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}

.recs__grid .note--empty {
  grid-column: 1 / -1;
  padding: 20px 8px;
}

.recs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 12px 24px 22px;
  border-right: 1px dotted #d1d5db;
  background: #fff;
}

.recs-card:last-child {
  border-right: none;
}

.recs-card__top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 24px;
}

.recs-card__badge {
  margin-right: auto;
  padding: 3px 8px;
  border-radius: 2px;
  background: #e11d48;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.recs-card__star {
  color: #d4a017;
  font-size: 16px;
  line-height: 1;
}

.recs-card__img {
  display: block;
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: #f5f6f5;
}

.recs-card__img img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.25s ease;
}

.recs-card__placeholder {
  display: block;
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, #eef1ef, #e2e7e4);
}

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

.recs-card__title {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  line-height: 1.35;
  min-height: 2.7em;
  text-decoration: none;
}

.recs-card__title:hover {
  color: var(--blue);
}

.recs-card__price {
  font-size: 18px;
  font-weight: 800;
  color: var(--green);
  line-height: 1.2;
}

.recs-card__price del,
.recs-card__price ins {
  text-decoration: none;
  background: none;
}

.recs-card__price span {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
}

.recs-card__old {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: line-through;
  margin-top: -4px;
}

.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.news-card:hover {
  transform: none;
  box-shadow: none;
}

.news-card__img {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #e8efed;
}

.news-card__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.news-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 160px;
  background:
    linear-gradient(145deg, rgba(14, 68, 60, 0.1), rgba(147, 90, 56, 0.08)),
    #e8efed;
}

.news-card__title {
  margin: 0;
  flex: 1 1 auto;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #2a2a2a;
}

.news-card__title a {
  color: inherit;
  text-decoration: none;
}

.news-card__title a:hover {
  color: var(--green);
}

.news-card__btn {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 4px;
  background: var(--green);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.news-card__btn:hover {
  background: var(--green-dark);
  color: #fff !important;
}

.news-card__link {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.news-card__meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .news__grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .news__grid {
    grid-template-columns: 1fr;
  }
}

.news-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.news-more__link {
  font-size: 15px;
  font-weight: 700;
  color: var(--brown);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.news-more__link:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

.header--inner {
  border-bottom: 1px solid var(--border);
}

.header__actions--links {
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
}

.header__actions--links a:hover {
  color: var(--brown);
}

.breadcrumbs {
  display: block;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--brown);
}

.news__grid--archive {
  margin-top: 28px;
}

.catalog__cats {
  margin-top: 24px;
}

.catalog__seo {
  margin-top: 40px;
}

.section--center {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-404 {
  position: relative;
  isolation: isolate;
  min-height: clamp(520px, 70vh, 760px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(14, 68, 60, 0.08), transparent 70%),
    linear-gradient(180deg, #f4f7f6 0%, #ffffff 55%, #ffffff 100%);
}

.page-404::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image:
    linear-gradient(135deg, rgba(14, 68, 60, 0.05) 1px, transparent 1px),
    linear-gradient(45deg, rgba(147, 90, 56, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.page-404__container {
  width: 100%;
  padding-block: clamp(48px, 8vw, 96px);
}

.page-404__panel {
  position: relative;
  width: min(100%, 640px);
  margin-inline: auto;
  padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 40px);
  text-align: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(14, 68, 60, 0.1);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(14, 68, 60, 0.08);
  backdrop-filter: blur(6px);
  animation: page404-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-404__code {
  position: absolute;
  top: 0.35rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: clamp(5.5rem, 18vw, 8.5rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: rgba(14, 68, 60, 0.07);
  pointer-events: none;
  user-select: none;
}

.page-404__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0.35rem auto 1.1rem;
  color: var(--green);
  background: rgba(14, 68, 60, 0.08);
  border-radius: 50%;
  animation: page404-icon 0.7s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-404__icon svg {
  width: 34px;
  height: 34px;
}

.page-404__header {
  position: relative;
  z-index: 1;
  margin: 0 0 1.5rem;
}

.page-404__title {
  margin: 0 0 0.65rem;
  color: var(--green);
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-404__lead {
  margin: 0 auto;
  max-width: 36ch;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.page-404__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 0 0 1.75rem;
}

.page-404__actions .btn {
  min-width: 9.5rem;
}

.page-404__search {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  margin-inline: auto;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(14, 68, 60, 0.1);
  animation: page404-search 0.55s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-404__search-label {
  margin: 0 0 0.7rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.page-404__search .kd-search {
  border-color: rgba(14, 68, 60, 0.18);
  box-shadow: 0 4px 14px rgba(14, 68, 60, 0.04);
}

.page-404__search .kd-search:focus-within {
  border-color: var(--green);
}

@keyframes page404-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes page404-icon {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes page404-search {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 560px) {
  .page-404__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-404__actions .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-404__panel,
  .page-404__icon,
  .page-404__search {
    animation: none;
  }
}

.page-search__container {
  padding-block: clamp(24px, 4vw, 48px) clamp(48px, 6vw, 80px);
}

.page-search__header {
  margin: 0 0 1.25rem;
}

.page-search__title {
  margin: 0;
  color: var(--green);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
}

.page-search__form {
  width: min(100%, 480px);
  margin: 0 0 1.75rem;
}

.page-search__empty {
  padding: 1.5rem 1.35rem;
  background: #f4f7f6;
  border: 1px solid rgba(14, 68, 60, 0.1);
  border-radius: 12px;
}

.page-search__empty-text {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.page-search__empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.entry__content {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

.entry__content h2 {
  margin: 1.6em 0 0.6em;
  font-size: 1.45em;
  color: var(--green);
}

.entry__content h3 {
  margin: 1.4em 0 0.5em;
  font-size: 1.2em;
  color: var(--green);
}

.entry__content h4 {
  margin: 1.2em 0 0.4em;
  font-size: 1.05em;
}

.entry__content p {
  margin: 0 0 1em;
}

.entry__content ul,
.entry__content ol {
  margin: 0 0 1em 1.2em;
}

.entry__content li {
  margin-bottom: 0.35em;
}

.entry__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
}

.entry__content th,
.entry__content td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}

.entry__content blockquote {
  margin: 1.2em 0;
  padding: 12px 18px;
  border-left: 3px solid var(--brown);
  background: rgba(147, 90, 56, 0.06);
}

.entry__content img {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  object-position: center;
  margin: 1em 0;
  border-radius: 8px;
}

.design-banner {
  padding-top: 12px;
  padding-bottom: 40px;
  background: transparent;
}

.design-banner__panel {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(4, 20, 40, 0.35);
}

.design-slide {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  min-height: 380px;
  padding: 44px 56px 56px;
  background:
    radial-gradient(ellipse 28% 40% at 12% 22%, rgba(90, 180, 150, 0.32), transparent 70%),
    radial-gradient(ellipse 22% 32% at 38% 18%, rgba(50, 140, 110, 0.2), transparent 65%),
    radial-gradient(ellipse 35% 50% at 78% 42%, rgba(30, 120, 95, 0.28), transparent 60%),
    radial-gradient(ellipse 20% 28% at 92% 78%, rgba(80, 160, 130, 0.18), transparent 70%),
    radial-gradient(ellipse 18% 24% at 55% 88%, rgba(20, 90, 75, 0.22), transparent 70%),
    radial-gradient(circle at 64% 12%, rgba(140, 200, 170, 0.14), transparent 35%),
    linear-gradient(155deg, #062820 0%, #0e443c 38%, #0c3a34 68%, #082620 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.design-slide__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.design-slide__bg span {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(160, 210, 180, 0.5), rgba(50, 140, 110, 0.12) 45%, transparent 70%);
  filter: blur(1px);
  animation: design-bokeh 10s ease-in-out infinite;
}

.design-slide__bg span:nth-child(1) { width: 220px; height: 220px; top: -60px; left: 28%; opacity: 0.55; animation-delay: 0s; }
.design-slide__bg span:nth-child(2) { width: 140px; height: 140px; top: 18%; left: 8%; opacity: 0.4; animation-delay: -2s; }
.design-slide__bg span:nth-child(3) { width: 90px; height: 90px; top: 58%; left: 22%; opacity: 0.35; animation-delay: -4s; }
.design-slide__bg span:nth-child(4) { width: 180px; height: 180px; top: 8%; right: 18%; opacity: 0.45; animation-delay: -1s; }
.design-slide__bg span:nth-child(5) { width: 70px; height: 70px; bottom: 22%; right: 32%; opacity: 0.5; animation-delay: -3s; }
.design-slide__bg span:nth-child(6) { width: 110px; height: 110px; bottom: -20px; left: 42%; opacity: 0.3; animation-delay: -5s; }
.design-slide__bg span:nth-child(7) { width: 48px; height: 48px; top: 42%; left: 48%; opacity: 0.55; animation-delay: -2.5s; }
.design-slide__bg span:nth-child(8) { width: 160px; height: 160px; bottom: 8%; right: -30px; opacity: 0.35; animation-delay: -6s; }

.design-slide__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent 0,
      transparent 46px,
      rgba(100, 180, 150, 0.03) 46px,
      rgba(100, 180, 150, 0.03) 47px
    );
  opacity: 0.7;
}

.design-slide__bg::after {
  content: "KД";
  position: absolute;
  right: 4%;
  top: 8%;
  font-size: clamp(100px, 15vw, 190px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(160, 210, 180, 0.07);
  text-transform: uppercase;
  user-select: none;
}

@keyframes design-bokeh {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.06); }
}

.design-slide__content {
  position: relative;
  z-index: 2;
  max-width: 480px;
}

.design-slide__title {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 40, 30, 0.45);
}

.design-slide__sub {
  margin: 6px 0 0;
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  color: #e0a878;
  text-shadow: 0 0 28px rgba(147, 90, 56, 0.35);
}

.design-slide__feats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 36px;
  margin-top: 36px;
  list-style: none;
  padding: 0;
}

.design-slide__feats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 64px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.design-slide__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  filter: drop-shadow(0 0 8px rgba(147, 90, 56, 0.35));
}

.design-slide__icon svg {
  width: 32px;
  height: 32px;
}

.design-slide__visual {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
}

.roof-3d {
  width: min(100%, 460px);
  animation: roof-float 5s ease-in-out infinite;
  filter: drop-shadow(0 28px 40px rgba(2, 16, 40, 0.55));
}

.roof-3d svg {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes roof-float {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50% { transform: translateY(-12px) rotate(0.4deg); }
}

.footer__tagline {
  background: #082620;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer__tagline p {
  font-size: 14px;
  color: #9ca3af;
}

.footer__tagline strong {
  color: #fff;
  font-weight: 800;
}

.product-card__link,
.news-card__link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.note--empty {
  opacity: 0.7;
  margin: 0;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-card__img {
  aspect-ratio: 1.15 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-soft);
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.product-card__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  min-height: 2.7em;
}

.product-card__title:hover {
  color: var(--blue);
}

.product-card__price {
  font-size: 18px;
  font-weight: 800;
}

.product-card__price span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.works {
  padding-top: 36px;
  padding-bottom: 36px;
}

.works__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}

.works__heading {
  min-width: 0;
  flex: 1;
}

.works__header .section__title {
  margin-bottom: 0.35rem;
}

.works__header .section__lead {
  margin: 0;
}

.works__more {
  flex-shrink: 0;
  margin-top: 0.35rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .works__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .works__more {
    margin-top: 0;
  }
}

.projects-empty {
  max-width: 40rem;
  padding: 1.5rem 0 2rem;
}

.projects-empty .entry-cta__actions {
  margin-top: 1.25rem;
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.work-card {
  display: flex;
  flex-direction: column;
  border-radius: 0;
  overflow: hidden;
  background: var(--blue);
  transition: transform var(--transition), box-shadow var(--transition);
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.work-card__img {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--green-dark);
}

.work-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.work-card:hover .work-card__img img {
  transform: scale(1.05);
}

.work-card__body {
  padding: 16px 14px 18px;
  background: var(--blue);
  color: #fff;
  flex: 1;
}

.work-card__body strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
  color: #fff;
}

.work-card__body span {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

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

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 168px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

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

.service-card strong {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
}

.service-card span:last-child {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.footer {
  background: var(--green-dark);
  color: #d1d5db;
  padding-top: 48px;
}

.footer__top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}

.footer__heading {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
  pointer-events: none;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer__col a {
  font-size: 14px;
  color: #9ca3af;
}

.footer__col a:hover {
  color: #fff;
}

.footer__note {
  display: block;
  font-size: 13px;
  color: #93c5fd;
  line-height: 1.4;
  margin-top: 4px;
}

.footer__linkbtn {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.footer__linkbtn:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}

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

.footer__cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #9ca3af;
}

.footer__cell strong {
  color: #fff;
  font-size: 14px;
  margin-bottom: 2px;
}

.footer__cell a:hover {
  color: #fff;
}

.footer__phone {
  color: #60a5fa !important;
  font-size: 18px !important;
  font-weight: 800;
}

.cookie {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  width: min(320px, calc(100vw - 32px));
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border);
  animation: slideUp 0.45s ease both;
}

.cookie p {
  font-size: 13px;
  color: var(--text-muted);
}

.cookie__btn {
  background: var(--blue);
  color: #fff;
  border-radius: 6px;
  padding: 10px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
}

.cookie__actions {
  display: flex;
  gap: 8px;
}

.cookie__actions .cookie__btn {
  flex: 1;
}

.cookie__btn--ghost {
  background: #fff;
  color: var(--blue);
  border-color: var(--border);
}

.cookie__btn--ghost:hover {
  background: #f5f7f6;
}

.cookie__btn:hover {
  background: var(--blue-dark);
}

.cookie a {
  color: var(--blue);
  text-decoration: underline;
}

.cookie.is-hidden {
  animation: fadeOut 0.3s ease forwards;
  pointer-events: none;
}

.cookie[hidden] {
  display: none !important;
  animation: none;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(12px);
  }
}

.modal[hidden] {
  display: none !important;
}

/* Хвост WP die-page, если критическая ошибка всё же дописалась в HTML */
.wp-die-message {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
}

.modal__box {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.35s ease both;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal__box h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.modal__box > p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal__form[hidden] {
  display: none !important;
}

.modal__form input {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}

.modal__form input:focus {
  border-color: var(--blue);
}

.topbar__auth.is-auth {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.topbar__logout {
  border: 1px solid rgba(14, 68, 60, 0.25);
  background: #fff;
  color: var(--blue);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.topbar__logout:hover {
  background: var(--blue);
  color: #fff;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin: 8px 0 14px;
}

.auth-tabs__btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 13px;
  color: var(--green);
  cursor: pointer;
}

.auth-tabs__btn.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.auth-error {
  min-height: 18px;
  margin: 0 0 8px;
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
}

.product-card__compare.is-active {
  color: var(--blue);
  border-color: var(--blue);
}

.cart-drawer[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 220;
}

.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: #fff;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  animation: cartIn 0.28s ease both;
}

@keyframes cartIn {
  from { transform: translateX(24px); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--border);
}

.cart-drawer__head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.cart-drawer__empty {
  padding: 24px 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.cart-drawer__list {
  flex: 1;
  overflow: auto;
  padding: 8px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.cart-item__img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: grid;
  place-items: center;
}

.cart-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cart-item__body strong {
  font-size: 13px;
  line-height: 1.35;
}

.cart-item__price {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.cart-item__price small {
  font-weight: 600;
  color: var(--text-muted);
}

.cart-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cart-item__qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
}

.cart-item__qty button {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
}

.cart-item__remove {
  font-size: 12px;
  font-weight: 700;
  color: #dc2626;
  cursor: pointer;
}

.cart-drawer__foot {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}

.cart-drawer__total strong {
  font-size: 18px;
  font-weight: 800;
}

.kd-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  transform: translateX(-50%) translateY(16px);
  opacity: 0;
  pointer-events: none;
  background: #082620;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.kd-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.float-dock {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 90;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  width: 52px;
  max-width: 52px;
  background: rgba(147, 90, 56, 0.88);
  backdrop-filter: blur(4px);
  border-radius: 8px 0 0 8px;
  overflow: hidden;
  box-shadow: -4px 8px 24px rgba(14, 68, 60, 0.18);
  /* Не растягивать layout / не участвовать в overflow документа */
  contain: layout;
}

.float-dock__btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #fff;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.float-dock__btn:last-child {
  border-bottom: none;
}

.float-dock__btn:hover {
  background: rgba(0, 0, 0, 0.12);
}

.float-dock__btn svg {
  width: 22px;
  height: 22px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
.header__burger {
    display: flex;
  }

  .header__inner {
    gap: 12px 16px;
  }

  .header__infos {
    display: none;
  }

  .topbar__nav {
    display: none;
  }

  .directions__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    height: auto;
  }

  .directions__grid .dir-tile:nth-child(1),
  .directions__grid .dir-tile:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
    min-height: 320px;
  }

  .directions__grid .dir-tile:nth-child(2),
  .directions__grid .dir-tile:nth-child(3),
  .directions__grid .dir-tile:nth-child(5),
  .directions__grid .dir-tile:nth-child(6) {
    grid-column: auto;
    grid-row: auto;
    min-height: 220px;
  }

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

  .products__grid,
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

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

  .recs-card:nth-child(2n) {
    border-right: none;
  }

  .design-slide {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 36px 44px 56px;
    gap: 12px;
  }

  .design-slide__visual {
    order: -1;
  }

  .roof-3d {
    width: min(100%, 280px);
  }

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

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

@media (max-width: 860px) {
.header__burger {
    display: flex;
  }

  .topbar {
    display: none;
  }

  .navbar {
    display: none;
  }

  .header {
    padding: 10px 0;
  }

  .header__inner {
    gap: 10px 12px;
    align-items: center;
  }

  .header__infos {
    display: none;
  }

  .header__actions {
    width: auto;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
  }

  .btn--cta {
    display: none;
  }

  .cart-link__text {
    display: none;
  }

  .logo {
    min-width: 0;
  }

   body .logo .custom-logo,
   body .logo__img {
    height: 40px;
    max-width: min(220px, 62vw);
  }

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

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

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

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

  .partner-card,
  .partners__more {
    min-height: 120px;
    padding: 26px 12px 20px;
  }

  .partner-card__name {
    font-size: 16px;
  }

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

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

  .recs-card {
    border-right: none;
    border-bottom: 1px dotted #d1d5db;
  }

  .recs-card:last-child {
    border-bottom: none;
  }

  .design-slide {
    padding: 28px 36px 52px;
  }

  .design-slide__feats {
    gap: 18px 24px;
  }

  .products .product-card {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .directions__grid {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }

  .dir-tile {
    min-height: 200px;
  }

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

  .hero__nav {
    display: none;
  }

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

@media (max-width: 560px) {
.topbar__auth {
    display: none;
  }

  .section {
    padding: 36px 0;
  }

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

  .products__grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .popular-cats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .popular-cats__grid .popular-card,
  .popular-cats__grid .popular-more {
    min-height: 0;
    padding: 16px 8px 14px;
    gap: 10px;
  }

  .products__grid > .popular-more,
  .products__grid > .product-more {
    min-height: 260px;
    justify-content: center;
  }

  .popular-card__img {
    height: 88px;
    padding: 0 10px;
  }

  .popular-card__img img {
    max-height: none;
  }

  .popular-card__name {
    font-size: 12px;
    min-height: 2.7em;
    hyphens: auto;
    word-break: break-word;
  }

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

  .directions__grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .directions__grid .dir-tile:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    min-height: 240px;
  }

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

   body .logo .custom-logo,
   body .logo__img {
    height: 34px;
    max-width: min(190px, 58vw);
  }

  .float-dock {
    top: auto;
    bottom: 16px;
    transform: none;
    border-radius: 8px 0 0 8px;
  }
}

.catalog {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 24px;
}

.catalog__main,
.catalog__grid {
  min-width: 0;
  width: 100%;
}

.catalog__filters {
  position: sticky;
  top: 5.75rem;
  z-index: 5;
  max-height: none;
  overflow: visible;
  padding: 16px 12px 18px;
  border: 1px solid rgba(14, 68, 60, 0.14);
  border-radius: 12px;
  background: #f3f5f4;
}

body.admin-bar .catalog__filters {
  top: 7.5rem;
}

/* Сетка магазина — дубль в main.css, чтобы не зависеть только от theme.css */
.catalog__grid ul.products,
.woocommerce .catalog__grid ul.products,
.kd-wc .catalog__grid ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  align-items: stretch !important;
  gap: 1.25rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}

.catalog__grid ul.products::before,
.catalog__grid ul.products::after,
.woocommerce .catalog__grid ul.products::before,
.woocommerce .catalog__grid ul.products::after {
  content: none !important;
  display: none !important;
}

/* Карточки магазина: WC задаёт ul.products li.product{padding:0} — перебиваем всегда,
   даже без .catalog__grid (если на сервере старый archive-product.php). */
main.kd-wc ul.products > li.product,
main.kd-wc ul.products > li.product-card,
.kd-wc__container ul.products > li.product,
.woocommerce ul.products > li.product.product-card,
.woocommerce-page ul.products > li.product.product-card,
ul.products.columns-4 > li.product-card {
  width: auto !important;
  max-width: 100% !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 16px 14px 18px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  height: 100% !important;
  min-width: 0 !important;
  background: #fff !important;
  border: 1px solid var(--border, #e8e8e8) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  position: relative !important;
}

main.kd-wc ul.products,
.kd-wc__container ul.products,
.woocommerce ul.products.columns-4 {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 1.25rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}

main.kd-wc ul.products::before,
main.kd-wc ul.products::after,
.woocommerce ul.products.columns-4::before,
.woocommerce ul.products.columns-4::after {
  content: none !important;
  display: none !important;
}

.catalog__grid ul.products > li.product,
.catalog__grid ul.products > .product-card,
.woocommerce .catalog__grid ul.products > li.product,
.woocommerce-page .catalog__grid ul.products > li.product,
.kd-wc .catalog__grid ul.products > li.product {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  /* WC задаёт li.product { padding: 0 } — возвращаем отступы как на главной */
  padding: 16px 14px 18px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 100%;
  align-self: stretch;
  min-width: 0;
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  position: relative !important;
}

.catalog__grid .product-card {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 14px 18px;
  background: #fff;
  box-shadow: none;
  box-sizing: border-box;
}

.catalog__filter-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}

.catalog__filter-group {
  margin-bottom: 16px;
}

.catalog__filter-group:last-child {
  margin-bottom: 0;
}

.catalog__filter-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}

.catalog__filters label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
  cursor: pointer;
}

.catalog__filters input[type="checkbox"] {
  accent-color: var(--green);
}

.catalog__main .catalog__cats {
  margin-top: 0;
}

.faq {
  margin-top: 40px;
}

.faq__title {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--green);
}

.related {
  margin: 2.5rem 0;
}

.related__links {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.related__links li {
  margin: 0.35rem 0;
}

.related__more,
.entry-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 0.85rem;
  margin: 1.5rem 0 0;
}

.entry-cta {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.entry-gallery {
  margin: 2rem 0 2.5rem;
}

.entry-gallery__title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--green);
}

.entry-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.entry-gallery__item {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-soft, #f5f6f8);
}

.entry-gallery__link {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}

.entry-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 900px) {
  .catalog {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    align-items: stretch !important;
    width: 100% !important;
  }

  /* Ящик фильтров выносится из потока в theme.css (position: fixed). */

  .catalog__main,
  .catalog__grid {
    position: relative !important;
    z-index: 1;
    order: 2;
    width: 100% !important;
    min-width: 0 !important;
    clear: both !important;
    float: none !important;
  }

  .catalog__grid ul.products,
  .woocommerce .catalog__grid ul.products,
  main.kd-wc ul.products {
    grid-template-columns: 1fr !important;
    float: none !important;
    width: 100% !important;
  }
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.review {
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--brown, #935a38);
}

.review__text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.55;
}

.review__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 13px;
}

.review__name {
  font-weight: 700;
  color: var(--green);
}

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

.home-cta {
  margin-top: 2rem;
  padding-top: 8px;
}

.home-cta__panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
  padding: 28px 32px;
  background: var(--green);
  color: #fff;
}

.home-cta__title {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
}

.home-cta__lead {
  margin: 0;
  opacity: 0.88;
  font-size: 15px;
  max-width: 42ch;
}

.home-cta__phone {
  margin: 12px 0 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.home-cta__phone a {
  color: inherit;
}

.home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.home-cta .btn--outline {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}

@media (max-width: 860px) {
  .reviews__grid {
    grid-template-columns: 1fr;
  }

  .home-cta__panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

