

/* Start:/css/main.css?1792424608311670*/

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  padding: 13px 24px;
  transition: all 0.2s ease;
  background: none;
}
.btn_primary {
  background: var(--color-accent, #8C1F3B);
  color: #fff;
  border-color: var(--color-accent, #8C1F3B);
}
.btn_primary:hover {
  background: var(--color-accent-hover, #6E1630);
  border-color: var(--color-accent-hover, #6E1630);
}
.btn_secondary {
  background: transparent;
  color: var(--color-text-primary, #1A1A1A);
  border: 1px solid var(--color-text-primary, #1A1A1A);
}
.btn_secondary:hover {
  border-color: var(--color-accent, #8C1F3B);
  color: var(--color-accent, #8C1F3B);
}
.btn_outline {
  background: transparent;
  color: var(--color-text);
  border-color: currentColor;
}
.btn_outline:hover {
  opacity: 0.7;
}
.btn_lg {
  padding: 18px 32px;
  font-size: 14px;
}
.btn_text {
  padding: 0;
  color: var(--color-accent, #8C1F3B);
  border: none;
  background: none;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  text-decoration: underline;
}

.section,
.cart,
.cart-page,
.account-page {
  margin-bottom: clamp(80px, 10vw, 130px);
}

:root {
  
  --color-white: #ffffff;
  --color-bg: #ffffff;
  --color-bg-warm: #F7F5F2;
  --color-bg-blush: #F0E8EA;
  --color-bg-configurator: #FCFCFC;
  --color-primary: #8C1F3B;
  --color-accent: #8C1F3B;
  --color-accent-hover: #6E1630;
  --color-accent-light: #F4E8EC;
  
  --color-accent-tint: #F6EDF0;
  --color-accent-tint-2: #F2E6EA;
  --color-disabled: #C9B5BB;
  --color-text: #1A1A1A;
  --color-text-primary: #1A1A1A;
  --color-text-strong: #23272F;
  --color-text-soft: #4A4F57;
  --color-text-secondary: #6B6B6B;
  --color-text-muted: #6B6B6B;
  /* #9E9E9E давал 2.68:1 на белом — ниже порога WCAG AA (4.5:1 для мелкого текста),
     а токеном покрашены цены «от», хлебные крошки, подписи полей, счётчики и мета-строки.
     #767676 — 4.58:1, самый светлый серый, который проходит порог. */
  --color-text-light: #767676;
  --color-text-footer: #A09A96;
  --color-bg-dark: #1C1C1C;
  --color-footer-bg: #333333;
  --color-bg-header: #FFFFFF;
  --color-topbar: #EEEDEB;
  --color-bg-card: #F5F5F5;
  --color-surface: #F5F5F5;
  --color-border: #E0DDDA;
  --color-border-light: #EEEDEB;
  --color-border-input: #D9D5D1;
  --color-border-dark: #BFBAB6;
  --color-divider: rgba(255, 255, 255, 0.1);
  --color-overlay: rgba(140, 31, 59, 0.05);
  --color-section-alt: #F5F5F5;
  --color-star: #8C1F3B;
  --color-star-empty: #D9D5D1;
  
  --radius-btn: 6px;
  --radius-card: 8px;
  --radius-input: 6px;
  --radius-img: 8px;

  --font-main: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --text-hero-title-size: 52px;
  --text-hero-title-height: 1.15;
  --text-hero-sub-size: 16px;
  --text-hero-sub-height: 1.65;
  --text-btn-size: 13px;
  --text-btn-height: 1;
  --text-heading-size: 34px;
  --text-heading-height: 1.25;
  --text-card-title-size: 14px;
  --text-card-title-height: 1.4;
  --text-card-price-size: 15px;
  --text-card-price-height: 1.2;
  --text-badge-size: 10px;
  --text-link-size: 16px;
  --text-link-height: 2.75;
  --text-body-size: 15px;
  --text-body-height: 1.65;
  --text-footer-caption-size: 12px;
  --text-footer-title-size: 11px;
  --text-footer-title-spacing: 0.08em;
  --text-footer-link-size: 13px;
  --text-footer-link-height: 1.4;

  --fluid-hero-title: clamp(28px, 5vw, 56px);
  --fluid-hero-sub: clamp(14px, 2vw, 16px);
  --fluid-heading: clamp(22px, 4vw, 36px);

  --container-max: 1320px;
  --container-wide: 1920px;
  --header-height: 56px;
  --section-gap: 64px;
  --card-width: 360px;
  --card-padding-x: 16px;
  --card-padding-bottom: 40px;
  --card-inner-padding: 16px 16px 26px;
  --gap-cards: 24px;
  --gap-section-inner: 32px;
  --footer-padding-top: 100px;
  --footer-column-gap: 130px;
}

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

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-white);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
}

.page_index {
  background: #f3f3f3;
}
.page_cart {
  background: #f9f9f9;
}
.page_account {
  background: #f9f9f9;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: clamp(12px, 1.5vw, 14px);
  line-height: 1.4;
  color: var(--color-text-light);
}

.breadcrumbs__link {
  color: inherit;
}

.breadcrumbs__link:hover {
  color: var(--color-text);
}

.breadcrumbs__sep {
  color: inherit;
}

.breadcrumbs__current {
  color: var(--color-text);
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
}

.header__level_1 {
  background: var(--color-topbar);
}

.header__top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 24px);
  /* Резиновая высота для десктопа: вертикальный padding линейно уменьшается
     16px→4px по мере сужения окна 1920px→1280px (на низких разрешениях шапка
     не съедает четверть экрана). Ниже 1280px — держим компактные 4px. */
  padding: clamp(4px, 1.875vw - 20px, 16px) clamp(16px, 3vw, 40px);
  max-width: 1440px;
  margin: 0 auto;
}

.header__location,
.header__right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__link {
  font-family: var(--font-main);
  font-size: var(--text-body-size);
  line-height: var(--text-body-height);
  color: var(--color-text);
}

.header__icon-img {
  display: block;
}

.header__city {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.header__level_2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 24px);
  /* Резиновая высота: вертикальный padding 16px→6px при 1920px→1280px. */
  padding: clamp(6px, 1.5625vw - 14px, 16px) clamp(16px, 3vw, 40px);
  max-width: 1440px;
  margin: 0 auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 375px;
  width: 100%;
}

.header__nav-item {
  font-size: 16px;
  line-height: 1.37;
  color: var(--color-text);
}

.header__logo {
  display: block;
}

.header__logo img {
  /* Логотип уменьшается пропорционально до 75% (196px→147px) линейно при
     1920px→1280px; высота auto сохраняет пропорцию 196:59. */
  width: clamp(147px, 7.656vw + 49px, 196px);
  height: auto;
  object-fit: contain;
}

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

.header__phone {
  font-size: 20px;
  line-height: 1.37;
  color: var(--color-text);
}

.header__topbar-callback {
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-accent);
  background: transparent;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-btn);
  cursor: pointer;
  padding: 6px 14px;
  white-space: nowrap;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.header__topbar-callback:hover {
  background: var(--color-accent);
  color: #fff;
}

.header__icon-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.header__icon-btn img {
  display: block;
  width: 24px;
  height: 24px;
}

.header__icon-btn_active {
  position: relative;
}

.header__icon-btn_active::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 0;
  border: 2px solid var(--color-white);
}

.hero {
  position: relative;
  width: 100%;
  max-width: 1920px;
  min-height: clamp(400px, 50vw, 740px);
  height: clamp(400px, 50vw, 740px);
  display: flex;
  align-items: center;
  padding: 0 clamp(16px, 3vw, 40px) 0 clamp(16px, 14vw, 270px);
  margin: 0 auto;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url("/css/../images/hero-bg.svg") center/cover no-repeat;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: min(770px, 90vw);
}

.hero__subtitle {
  margin: 0 0 clamp(8px, 1vw, 12px);
  font-family: var(--font-main);
  font-size: var(--fluid-hero-sub);
  line-height: var(--text-hero-sub-height);
  text-transform: uppercase;
  color: var(--color-white);
}

.hero__title {
  margin: 0 0 clamp(16px, 2.5vw, 24px);
  font-family: var(--font-main);
  font-size: var(--fluid-hero-title);
  font-weight: 400;
  line-height: var(--text-hero-title-height);
  color: var(--color-white);
  max-width: 100%;
}

.hero__btn {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 24px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: var(--text-btn-size);
  line-height: var(--text-btn-height);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  margin-top: 0;
}

.hero__btn::after {
  content: "";
  width: 12.75px;
  height: 12.75px;
  background: url("/css/../images/arrow.svg") center/contain no-repeat;
}

.btn {
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.9;
}

.section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
}

.section__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: var(--fluid-heading);
  line-height: var(--text-heading-height);
  color: var(--color-text);
}

.section__title_center {
  text-align: center;
}

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--gap-section-inner);
}

.section__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: var(--text-link-size);
  line-height: var(--text-link-height);
  color: var(--color-text);
}

.section__link::after {
  content: "";
  width: 10.09px;
  height: 11px;
  background: url("/css/../images/icon-arrow-right.svg") center/contain no-repeat;
}

.section__cards {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  justify-content: center;
}

.section__cards_wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 20px);
  padding: clamp(24px, 4vw, 60px) clamp(16px, 3vw, 40px);
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .section__cards_wrap {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .section__cards_wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .section__cards_wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(8px, 2vw, 12px);
  }
}

.section_in-stock {
  width: 100%;
  max-width: 1920px;
  padding: clamp(40px, 6vw, 80px) 0;
  margin: 0 auto;
}

.section_in-stock .section__head {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section_in-stock .section__cards {
  overflow-x: auto;
  padding: clamp(24px, 8vw, 140px) clamp(16px, 4vw, 40px);
  justify-content: flex-start;
  gap: clamp(12px, 2vw, 20px);
  max-width: 1920px;
  margin: 0 auto;
}

.card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 1px solid #f1f1f1;
  transition: all 0.3s ease;
  min-width: 0;
  cursor: pointer;
}

.card__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--color-surface);
  overflow: hidden;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__image-wrap_square {
  aspect-ratio: 1 / 1;
}

.card_static .card__link {
  cursor: default;
}

.card__image {
  width: 100%;
  height: 90%;
  object-fit: contain;
  transition: opacity 0.35s ease;
}

.card__image_hover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 90%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card:hover .card__image_hover {
  opacity: 1;
}

.card:hover .card__image--has-hover {
  opacity: 0;
}

.card:hover .card__image:not(.card__image--has-hover):not(.card__image_hover) {
  transform: scale(1.05);
}

.card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--color-white);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
}

.card__badge_sale {
  background: #555;
  color: #fff;
}

.card__fav {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23333' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.228 9 12 9 12s9-4.772 9-12z' /%3E%3C/svg%3E")
    no-repeat center;
  background-size: contain;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s;
}

.card__fav:hover {
  transform: scale(1.1);
}

.card__fav.is-active {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238C1F3B'%3E%3Cpath d='M11.645 20.91l-.007-.003-.022-.012a15.247 15.247 0 01-.383-.218 25.18 25.18 0 01-4.244-3.17C4.688 15.36 2.25 12.174 2.25 8.25 2.25 5.322 4.714 3 7.688 3A5.5 5.5 0 0112 5.052 5.5 5.5 0 0116.313 3c2.973 0 5.437 2.322 5.437 5.25 0 3.925-2.438 7.111-4.739 9.256a25.175 25.175 0 01-4.244 3.17 15.247 15.247 0 01-.383.219l-.022.012-.007.004-.003.001a.752.752 0 01-.704 0l-.003-.001z' /%3E%3C/svg%3E")
    no-repeat center;
}

.card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
}

.card__eyebrow {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.card__title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.3;
}

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

.card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card__price {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.card__price-prefix {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-light);
}

.bento-categories {
  margin-bottom: clamp(40px, 6vw, 80px);
}

.bento-categories__head {
  margin-bottom: clamp(20px, 3vw, 40px);
}

.bento-categories__title {
  font-size: clamp(24px, 3vw, 36px);
  margin: 0;
}

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

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
}

.bento-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: #eaeaea;
  text-decoration: none;
}

@media (min-width: 769px) {
  .bento-card_large {
    grid-column: span 2;
    grid-row: span 2;
  }
  .bento-card_wide {
    grid-column: span 2;
    grid-row: span 1;
  }
  .bento-card_tall {
    grid-column: span 1;
    grid-row: span 2;
  }
  .bento-card_box {
    grid-column: span 1;
    grid-row: span 1;
  }
}

.bento-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0) 40%
  );
  pointer-events: none;
}

.bento-card__content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bento-card__title {
  color: #fff;
  font-size: 20px;
  margin: 0;
  font-weight: 500;
}

.bento-card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: #fff;
  transition: background 0.3s;
}

.bento-card:hover .bento-card__arrow {
  background: rgba(255, 255, 255, 0.4);
}

.section_news {
  background: rgba(140, 31, 59, 0.15);
  padding: clamp(40px, 6vw, 80px) clamp(16px, 3vw, 40px) clamp(40px, 5vw, 60px);
}

.news {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-right: 0;
  max-width: 1655px;
  margin: 0 auto;
}

.news__divider {
  width: 100%;
  max-width: 1426px;
  height: 1px;
  background: var(--color-border);
  margin-bottom: clamp(20px, 3vw, 40px);
}

.news__content {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: clamp(12px, 2vw, 20px);
  flex: 1;
}

@media (min-width: 600px) {
  .news__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .news__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .news__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  overflow: hidden;
}

.news-card__image {
  width: 100%;
  aspect-ratio: 440/302;
  object-fit: cover;
  display: block;
}

.news-card__meta {
  display: flex;
  gap: 20px;
  padding: clamp(12px, 2vw, 20px) 0 0;
}

.news-card__date,
.news-card__tag {
  font-family: var(--font-heading);
  font-size: var(--text-body-size);
  line-height: 1.29;
  color: var(--color-text-light);
}

.news-card__title {
  margin: 0;
  padding: clamp(8px, 1vw, 0) 0 0;
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.2;
  color: var(--color-text);
}

.news__nav {
  min-height: 70px;
}

.news__tabs {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 40px);
}

.news__tab {
  padding-bottom: 18px;
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: 20px;
  line-height: 1.5;
  color: var(--color-text-light);
}

.news__tab_active {
  color: var(--color-bg-dark);
  border-bottom: 2px solid var(--color-bg-dark);
}

.footer {
  background: var(--color-footer-bg);
  color: var(--color-white);
  padding-top: clamp(40px, 8vw, 100px);
  padding-bottom: 0;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 25px);
  width: 100%;
  max-width: 1390px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px) clamp(40px, 5vw, 60px);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
  flex: 1 1 280px;
  min-width: 0;
}

.footer__logo {
  width: min(266px, 100%);
  height: auto;
  object-fit: contain;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__phone {
  font-family: var(--font-main);
  font-size: 26px;
  line-height: 1em;
  color: var(--color-white);
}

.footer__hours {
  margin: 0;
  font-family: var(--font-main);
  font-size: var(--text-footer-caption-size);
  line-height: var(--text-body-height);
  color: var(--color-text-footer);
}

.footer__social-title {
  margin: 0;
  font-size: var(--text-footer-caption-size);
  line-height: var(--text-body-height);
  color: var(--color-text-footer);
}

.footer__social-links {
  display: flex;
  gap: 8px;
  min-height: 28px;
}

.footer__email-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__label {
  margin: 0;
  font-family: var(--font-main);
  font-size: var(--text-footer-caption-size);
  line-height: var(--text-body-height);
  color: var(--color-text-footer);
}

.footer__email {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  color: var(--color-white);
}

.footer__columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: clamp(32px, 8vw, 130px);
  flex: 2 1 400px;
  min-width: 0;
}

.footer__column {
  display: flex;
  flex-direction: column;
  gap: 27.5px;
}

.footer__column-title {
  margin: 0;
  font-family: var(--font-main);
  font-size: var(--text-footer-title-size);
  line-height: 1.5;
  letter-spacing: var(--text-footer-title-spacing);
  text-transform: uppercase;
  color: var(--color-white);
}

.footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer__list a {
  font-family: var(--font-main);
  font-size: var(--text-footer-link-size);
  line-height: var(--text-footer-link-height);
  color: var(--color-text-footer);
}

.footer__list a:hover {
  color: var(--color-white);
}

/* Соцсети и оплата — цветные плитки trace-logos.ru. Фон плитки залит на весь viewBox,
   форму (скругление) задаём здесь, чтобы все логотипы были одной геометрии. */
.footer__social-links a {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.footer__social-links a:hover,
.footer__social-links a:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
}
.footer__social-links img {
  display: block;
  width: 100%;
  height: 100%;
}

.footer__pay {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__pay-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__pay-logo {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 5px;
}
/* SberPay на trace-logos есть только «таблеткой» 57×29 — своя форма, без скругления плитки */
.footer__pay-logo_wide {
  width: 47px;
  border-radius: 12px;
}

.footer__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 1390px;
  margin: 0 auto;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  width: 100%;
  max-width: 1390px;
  margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 40px) 40px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}
.footer__legal span {
  line-height: 1.5;
}

@media (max-width: 767px) {
  .header__level_1 {
    display: none;
  }

  .header__nav {
    width: auto;
    flex-wrap: wrap;
  }

  .header__nav-item {
    font-size: 14px;
  }

  .header__logo img {
    width: 140px;
    height: auto;
  }

  .header__phone {
    font-size: 16px;
  }

  .hero {
    padding-left: clamp(16px, 5vw, 24px);
    padding-right: clamp(16px, 5vw, 24px);
  }

  .hero__btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .section__cards_wrap {
    padding-left: clamp(8px, 2vw, 16px);
    padding-right: clamp(8px, 2vw, 16px);
    gap: clamp(8px, 2vw, 12px);
  }

  .card {
    min-width: 0;
  }
}

.product-page {
  max-width: 1920px;
  margin: 0 auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-bottom: clamp(20px, 4vw, 40px);
  font-size: clamp(12px, 1.5vw, 14px);
  line-height: 1.4;
  color: var(--color-text-light);
}

.breadcrumbs__link {
  color: inherit;
}

.breadcrumbs__link:hover {
  color: var(--color-text);
}

.breadcrumbs__sep {
  color: inherit;
}

.breadcrumbs__current {
  color: var(--color-text);
}

.product {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 80px;
  flex-wrap: nowrap;
}

.product__gallery-col {
  flex: 1 1 0;
}
.product__info-col {
  flex: 1 1 0;
}

@media (max-width: 1024px) {
  .product {
    flex-direction: column;
    gap: clamp(24px, 4vw, 40px);
  }
}

.product__badges {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.product__badge {
  padding: 6px 10px;
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product__badge_border {
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.product__badge_fill {
  background: var(--color-primary);
  color: var(--color-white);
  border: 1px solid var(--color-primary);
}
.product__gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .product__gallery {
    flex-direction: row;
  }
}

.product__thumbs {
  display: none;
}

@media (max-width: 768px) {
  .product__thumbs {
    display: none;
  }
}

@media (min-width: 768px) {
  .product__thumbs {
    display: none;
  }
}

.product__thumb {
  width: clamp(60px, 14vw, 100px);
  height: clamp(60px, 14vw, 100px);
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0;
  background: var(--color-bg-card);
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product__thumb:hover {
  border-color: var(--color-border);
  background: rgba(246, 241, 234, 0.8);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.product__thumb_active {
  border-color: var(--color-primary);
  background: rgba(140, 31, 59, 0.05);
  box-shadow: 0 2px 6px rgba(140, 31, 59, 0.12);
}

.product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(6px, 1.5vw, 10px);
}

.product__main-image {
  flex: 1;
  min-width: 0;
  height: 520px;
  background: var(--color-bg-card);
  border-radius: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (max-width: 768px) {
  .product__main-image {
    height: 50vh;
  }
  .product__main-image img {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
}

.product__main-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}

.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.product-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.product-lightbox__img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
}

.product__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(32px, 6vw, 48px);
  height: clamp(48px, 8vw, 64px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-size: 0;
}

.product__arrow:hover:not(:disabled) {
  background: rgba(255, 255, 255, 1);
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(140, 31, 59, 0.15);
}

.product__arrow:focus-visible:not(:disabled) {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.product__arrow:active:not(:disabled) {
  transform: translateY(-50%) scale(0.95);
}
.product__arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.7);
}
.product__arrow_prev {
  left: clamp(8px, 2vw, 16px);
}

.product__arrow_next {
  right: clamp(8px, 2vw, 16px);
}

.product__arrow::before {
  content: "";
  display: block;
  width: clamp(16px, 3vw, 20px);
  height: clamp(16px, 3vw, 20px);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: opacity 0.2s;
}

.product__arrow:hover::before:not(:disabled) {
  opacity: 0.8;
}

.product__arrow_prev::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23610125' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
}

.product__arrow_next::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23610125' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
}

.product__info {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.product__title {
  margin: 0 0 24px;
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.5;
  color: var(--color-text);
}

.product__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
  height: 31px;
}

.product__in-stock {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 40px;
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 1;
  color: var(--color-text);
}

.product__in-stock-dot {
  width: 16px;
  height: 16px;
  border-radius: 16px;
  background: url("/css/../images/icon-check.svg") center/contain no-repeat;
  flex-shrink: 0;
}

.product__reviews {
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
  padding: 5px 0;
}

.product__reviews:hover {
  text-decoration: underline;
}

.product__option {
  margin-bottom: 20px;
}

.product__option:first-of-type {
  margin-top: 40px;
}

.product__option-header {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 4px;
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 0;
}

.product__option-label {
  color: var(--color-text-light);
}

.product__option-value {
  color: var(--color-text);
}

.product__option-link {
  display: block;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1;
  color: var(--color-text);
  margin-bottom: 8px;
}

.product__option-hint {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.5;
  color: #848283;
}

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

.product__size {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 1px 19px;
  font-family: var(--font-heading);
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  color: var(--color-text-light);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.product__size:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

.product__size_active {
  border-color: var(--color-text);
  color: var(--color-text);
}

.product__size_measure {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.product__size_measure:hover {
  background: rgba(140, 31, 59, 0.04);
}

.product__size_own {
  color: var(--color-text-light);
  border-color: var(--color-border);
}

.product__colors {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
  position: relative;
}

.product__color {
  position: relative;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease;
  flex-shrink: 0;
  overflow: hidden;
}

.product__color_active {
  border-color: var(--color-text);
  margin-right: 58px;
}

.product__color-inner {
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.product__color:hover {
  border-color: #9C9B9A;
}

.product__colors-overflow {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  max-width: 520px;
  max-height: 400px;
  overflow-y: auto;
  padding: 16px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  box-sizing: border-box;
}

.product__color_more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 4px;
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg-header);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.product__color_more:hover {
  border-color: #9C9B9A;
}

.product__color-custom-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.product__price-block {
  padding-top: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.product__price {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.5;
  color: var(--color-text);
  display: flex;
  align-items: baseline;
  gap: 0;
}

.product__price-note {
  font-size: 13px;
  color: var(--color-text-light, #888);
  margin-top: -4px;
}

.product__currency {
  font-family: "IBM Plex Sans", "Manrope", sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.5;
}

.product__actions {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  align-items: center;
}

.product__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 40px;
  height: 56px;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  border-radius: 0;
  transition: opacity 0.2s;
}

.product__btn:hover {
  opacity: 0.88;
}

.product__btn_cart {
  flex: 1;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0 40px;
}

.product__btn-icon_cart {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("/css/../images/icon-bag.svg") center/contain no-repeat;
  filter: invert(1);
  flex-shrink: 0;
}

.product__btn_config {
  width: 100%;
  background: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-text);
  padding: 1px 31px;
  letter-spacing: 0.03em;
}

.product__btn_wishlist {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  padding: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
}

.product__btn_wishlist::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background: url("/css/../images/icon-heart.svg") center/contain no-repeat;
  margin: 0 auto;
}

.product__btn_wishlist_active {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.product__btn_wishlist_active::before {
  filter: invert(1);
}

.product__btn_wishlist.is-active::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238C1F3B'%3E%3Cpath d='M11.645 20.91l-.007-.003-.022-.012a15.247 15.247 0 01-.383-.218 25.18 25.18 0 01-4.244-3.17C4.688 15.36 2.25 12.174 2.25 8.25 2.25 5.322 4.714 3 7.688 3A5.5 5.5 0 0112 5.052 5.5 5.5 0 0116.313 3c2.973 0 5.437 2.322 5.437 5.25 0 3.925-2.438 7.111-4.739 9.256a25.175 25.175 0 01-4.244 3.17 15.247 15.247 0 01-.383.219l-.022.012-.007.004-.003.001a.752.752 0 01-.704 0l-.003-.001z' /%3E%3C/svg%3E");
}

.card__action_active {
  background: url("data:image/svg+xml,%3Csvg width='24' height='25' viewBox='0 0 24 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z' fill='%238C1F3B'/%3E%3C/svg%3E")
    center/contain no-repeat;
}

.header__wishlist-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  border-radius: 2px;
  pointer-events: none;
}

@media (max-width: 768px) {
  .product__sizes .product__size_own {
    display: none;
  }
  .product__option-link {
    margin-left: 0;
  }
  .product__actions {
    flex-wrap: wrap;
  }
}

.product__extra {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}

.product__extra-title {
  margin: 0 0 0;
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.5;
  color: var(--color-text);
}

.product__extra-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-text);
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  text-decoration: none;
  transition: opacity 0.2s;
}

.product__extra-link:first-of-type {
  border-top: 0;
  margin-top: 0;
}

.product__extra-link:hover {
  opacity: 0.7;
}

.product__extra-icon {
  display: inline-block;
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-text);
  flex-shrink: 0;
  background: url("/css/../images/icon-search.svg") center/16px no-repeat;
}

.product__extra-text {
  flex: 1;
}

.product__extra-arrow {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: url("/css/../images/icon-arrow-right.svg") center/contain no-repeat;
  flex-shrink: 0;
}

.product-section {
  max-width: 919px;
  margin: 0 auto clamp(32px, 6vw, 56px);
  padding: 0 clamp(16px, 2vw, 0px);
}

.product-section_related,
.product-section_viewed {
  max-width: 1440px;
  padding: 0;
}

.product-section__title {
  margin: 0 0 clamp(12px, 2vw, 29px);
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.5;
}

.product-section__text {
  margin: 0 0 0.58px;
  font-family: var(--font-heading);
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

.product-section__text_muted {
  color: #848283;
}

.product-specs {
  width: 100%;
}

.product-specs__row {
  display: grid;
  grid-template-columns: minmax(200px, 533.59px) minmax(0, 1fr);
  gap: 10px;
  padding: 13px 0 15px;
  font-family: var(--font-heading);
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.3;
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--color-border);
}

.product-specs__row:first-child {
  border-top: 1px solid var(--color-border);
}

@media (max-width: 560px) {
  .product-specs__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.product-specs__label {
  color: var(--color-text-light);
}

.product-specs__value {
  color: var(--color-text);
}

.product-reviews {
  max-width: 1389px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 0px);
}

.product-reviews__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 0;
}

.product-reviews__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-reviews__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1;
}

.product-reviews__count-badge {
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1;
  color: var(--color-text);
}

.product-reviews__top {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 20px;
  position: relative;
}

.product-reviews__photos-block {
  flex: 1;
}

.product-reviews__photos-title {
  margin: 24px 0 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  color: var(--color-text);
}

.product-reviews__photos {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch;
}

.product-reviews__photo {
  width: 100px;
  height: 110px;
  flex-shrink: 0;
  background: var(--color-bg-card);
}

.product-reviews__write-btn {
  position: absolute;
  right: 0;
  top: -46px;
  flex-shrink: 0;
  width: 320px;
  padding: 19.5px 30px 20.5px;
  flex: none;
}

@media (max-width: 920px) {
  .product-reviews__write-btn {
    position: static;
    width: 100%;
  }
  .product-reviews__top {
    flex-direction: column;
  }
}

.product-reviews__list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 10px;
}

.review {
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.review__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  padding-bottom: 16px;
}

.review__meta {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.review__author {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

.review__date {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #a7a7a7;
}

.review__stars {
  display: flex;
  gap: 2px;
}

.review__star {
  display: inline-block;
  width: 19px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 19' fill='%23E0E0E0' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 0l2.4 7.4H20l-6.2 4.5 2.4 7.4L10 14.8l-6.2 4.5 2.4-7.4L0 7.4h7.6L10 0z'/%3E%3C/svg%3E")
    center/contain no-repeat;
}

.review__star_filled {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 19' fill='%23F2C94C' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 0l2.4 7.4H20l-6.2 4.5 2.4 7.4L10 14.8l-6.2 4.5 2.4-7.4L0 7.4h7.6L10 0z'/%3E%3C/svg%3E");
}

.review__body {
  position: relative;
}

.review__text {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

.review__text_clipped {
  max-height: 120px;
  overflow: hidden;
  position: relative;
}

.review__read-more {
  margin-top: 10px;
  background: transparent;
  border: none;
  padding: 0;
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1;
  color: var(--color-text);
  cursor: pointer;
  text-decoration: underline;
}

.product-reviews__show-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 15px 31px;
  margin-top: 30px;
  background: transparent;
  border: 1px solid var(--color-text);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text);
  cursor: pointer;
  transition: opacity 0.2s;
}

.product-reviews__show-all:hover {
  opacity: 0.7;
}

.product-reviews__show-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: url("/css/../images/icon-arrow-right.svg") center/contain no-repeat;
}

.product-section__cards {
  padding-left: 0;
  padding-right: 0;
}

.product-section_related .product-section__title,
.product-section_viewed .product-section__title {
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1;
  padding: 0 clamp(16px, 3vw, 20px);
  margin-bottom: 30px;
}

.product-help {
  width: 100%;
  max-width: 1920px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
  background: rgba(140, 31, 59, 0.15);
  position: relative;
  overflow: hidden;
  min-height: 659px;
}

@media (max-width: 920px) {
  .product-help {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

.product-help__content {
  padding: clamp(40px, 5vw, 80px) clamp(20px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: flex-start;
  align-self: flex-start;
}

.product-help__kicker {
  margin: 0 0 80px;
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-text);
}

.product-help__title {
  margin: 0 0 0;
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  color: var(--color-text);
}

.product-help__text {
  margin: 0 0 clamp(24px, 4vw, 161px);
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.5vw, 26px);
  line-height: 1.2;
  color: var(--color-text);
}

.product-help__btn {
  align-self: flex-start;
  flex: none;
  padding: 19.5px 60px 20.5px;
  height: 56px;
}

.product-help__image-wrap {
  position: relative;
  min-height: clamp(260px, 40vw, 651px);
  overflow: hidden;
}

.product-help__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.mobile-menu {
  display: none;
}

@media (max-width: 560px) {
  .mobile-menu {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: var(--color-white);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .product-page {
    padding-bottom: calc(clamp(16px, 2.5vw, 40px) + 72px);
  }
}

.mobile-menu__item {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 6px 4px;
  border-radius: 0;
}

.mobile-menu__label {
  font-size: 11px;
  line-height: 1.1;
  color: var(--color-text);
  text-align: center;
}

.mobile-menu__icon {
  width: 22px;
  height: 22px;
  background: url("/css/../images/icon-search.svg") center/contain no-repeat;
  opacity: 0.9;
}

.mobile-menu__icon_service {
  background-image: url("/css/../images/icon-user.svg");
}

.mobile-menu__icon_about {
  background-image: url("/css/../images/icon-heart.svg");
}

.mobile-menu__icon_contacts {
  background-image: url("/css/../images/icon-location.svg");
}

.mobile-menu__icon_cart {
  background-image: url("/css/../images/icon-bag.svg");
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
}

.modal[aria-hidden="false"] {
  display: block;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.modal__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(920px, calc(100vw - 32px));
  max-height: min(86vh, 780px);
  display: grid;
  grid-template-rows: auto auto 1fr;
  background: var(--color-white);
  border-radius: 0;
  overflow: hidden;
}

@media (max-width: 560px) {
  .modal__panel {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    transform: none;
    width: 100%;
    max-height: 90vh;
    border-radius: 0;
  }
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.modal__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.modal__close {
  width: 40px;
  height: 40px;
  border-radius: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--color-white);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.modal__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.modal__tab {
  padding: 12px 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 13px;
  color: var(--color-text-light);
}

.modal__tab_active {
  color: var(--color-text);
  font-weight: 500;
}

.modal__body {
  overflow: auto;
}

.config-step {
  display: none;
  padding: 16px;
}

.config-step_active {
  display: block;
}

.config-layout {
  display: flex;
  gap: 40px;
}

.config-layout__left,
.config-layout__right {
  flex: 1 1 0;
}

@media (max-width: 768px) {
  .config-layout {
    flex-direction: column;
    gap: 16px;
  }
}

.config-layout__image {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--color-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.config-layout__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.config-block {
  background: var(--color-bg-header);
  border-radius: 0;
  padding: 14px;
}

.config-block__label {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--color-text-light);
}

.config-block__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.config-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 44px;
  padding: 1px 19px;
  font-family: var(--font-heading);
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  color: var(--color-text-light);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.config-chip:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

.config-chip_active {
  border-color: var(--color-text);
  color: var(--color-text);
  background: transparent;
  font-weight: 500;
}

.modal__footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

.modal__btn {
  border: none;
  border-radius: 0;
  padding: 14px 16px;
  cursor: pointer;
  background: var(--color-primary);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 13px;
}

.modal__btn_secondary {
  background: var(--color-white);
  color: var(--color-text);
  border: 1px solid rgba(0, 0, 0, 0.16);
}

.config-detail-item {
  border-bottom: 1px solid var(--color-border);
  padding: 24px 0;
}

.config-detail-item:last-child {
  border-bottom: none;
}

.config-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 0;
}

.config-detail-label {
  flex: 1;
  font-size: 14px;
  color: var(--color-text-light);
}

.config-detail-value {
  font-weight: 500;
  color: var(--color-text);
  font-size: 14px;
}

.config-detail-toggle {
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent no-repeat center;
  background-size: 24px 24px;
  background-image: url("/css/../images/Plus.svg");
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.config-detail-toggle::before {
  content: none;
  display: none;
}

.config-detail-toggle[aria-expanded="true"] {
  background-image: url("/css/../images/Minus.svg");
}

.config-detail-toggle[aria-expanded="false"] {
  background-image: url("/css/../images/Plus.svg");
}

.config-detail-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 0;
  padding: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.25s ease,
    margin 0.25s ease,
    opacity 0.25s ease;
}
.config-detail-options.is-open {
  max-height: 5000px;
  padding: 24px 0;
  opacity: 1;
  visibility: visible;
  overflow: visible;
}

.config-items {
  margin-bottom: 24px;
  max-height: 400px;
  overflow-y: auto;
}

.config-item {
  border: 1px solid var(--color-border);
  border-radius: 0;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.config-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 6px rgba(140, 31, 59, 0.1);
}

.config-item__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  user-select: none;
}

.config-item__toggle {
  width: 24px;
  height: 24px;
  min-width: 24px;
  padding: 0;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 16px;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.config-item__toggle[aria-expanded="true"]::before {
  content: "−";
}

.config-item__toggle[aria-expanded="false"]::before {
  content: "+";
}

.config-item__info {
  flex: 1;
}

.config-item__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.config-item__spec {
  margin: 0;
  font-size: 12px;
  color: var(--color-text-light);
}

.config-item__price {
  min-width: 80px;
  text-align: right;
}

.config-item__amount {
  display: block;
  font-weight: 500;
  color: var(--color-text);
  font-size: 14px;
}

.config-item__text {
  display: block;
  font-size: 12px;
  color: var(--color-text-light);
}

.config-item__currency {
  font-size: 12px;
  color: var(--color-text-light);
}

.config-item__body {
  padding: 24px 24px;
  border-top: 1px solid var(--color-border);
  background: rgba(140, 31, 59, 0.02);
}

.config-item__row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.config-item__row:last-child {
  margin-bottom: 0;
}

.config-item__label {
  font-size: 13px;
  color: var(--color-text-light);
  min-width: 100px;
}

.config-item__qty {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--color-border);
  border-radius: 0;
}

.config-qty-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: var(--color-text);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.config-qty-btn:hover {
  background: rgba(140, 31, 59, 0.05);
  color: var(--color-primary);
}

.config-qty-input {
  width: 50px;
  padding: 6px 4px;
  border: none;
  text-align: center;
  font-size: 14px;
  color: var(--color-text);
  background: transparent;
}

.config-qty-input::-webkit-outer-spin-button,
.config-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.config-item__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid var(--color-border);
}

.config-item__total-label {
  font-size: 13px;
  color: var(--color-text-light);
}

.config-item__total-price {
  font-weight: 500;
  color: var(--color-text);
  font-size: 14px;
}

.config-summary {
  margin: 24px 0;
  padding: 16px;
  background: rgba(140, 31, 59, 0.05);
  border-radius: 0;
}

.config-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.config-summary__label {
  font-size: 14px;
  color: var(--color-text-light);
}

.config-summary__value {
  font-weight: 600;
  color: var(--color-text);
  font-size: 16px;
}

.config-summary__currency {
  font-size: 14px;
}

.catalog-page {
  max-width: 1440px;
  margin: 0 auto;
  /* Боковые отступы даёт вложенный .container (--layout-pad). Здесь их убрали,
     иначе складывались вдвое (catalog-page + container) и ужимали сетку. */
  padding: clamp(16px, 2.5vw, 32px) 0 clamp(48px, 6vw, 80px);
}

.catalog-page__breadcrumbs {
  margin: clamp(12px, 2vw, 20px) 0 clamp(16px, 3vw, 28px);
}

.catalog-page__title {
  margin: 0 0 clamp(20px, 3vw, 32px);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* SEO-текст под листингом каталога/коллекции — глубина контента, общие ключи. */
.catalog-seo {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(32px, 4vw, 56px) var(--layout-pad) 0;
}
.catalog-seo__inner {
  /* 900px при 16px давали 92 знака в строке — заметно выше комфортных 65–75. */
  max-width: 720px;
  border-top: 1px solid var(--color-border, #E5E0D8);
  padding-top: clamp(24px, 3vw, 36px);
  color: var(--color-text-secondary, #4f4f4f);
}
.catalog-seo__title {
  margin: 0 0 14px;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary, #1A1A1A);
}
.catalog-seo__subtitle {
  margin: clamp(20px, 2.5vw, 28px) 0 10px;
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 700;
  color: var(--color-text-primary, #1A1A1A);
}
.catalog-seo p { margin: 0 0 14px; line-height: 1.62; }
.catalog-seo em { font-style: italic; }

.collections {
  margin-bottom: clamp(28px, 5vw, 56px);
}

.collections__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(12px, 2vw, 18px);
}

.collections__title {
  margin: 0;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.2;
}

.collections__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
}

@media (max-width: 920px) {
  .collections__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .collections__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.collection-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 0;
  overflow: hidden;
  background: var(--color-bg-header);
  min-width: 0;
}

.collection-card__image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e9e9e9;
}

.collection-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-card__body {
  padding: clamp(12px, 2vw, 18px);
  display: grid;
  gap: 6px;
}

.collection-card__title {
  margin: 0;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.25;
}

.collection-card__meta {
  margin: 0;
  font-size: clamp(12px, 1.6vw, 14px);
  line-height: 1.4;
  color: var(--color-text-light);
}

.catalog__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 20px);
  flex-wrap: wrap;
  margin-bottom: clamp(12px, 2vw, 18px);
}

.catalog__title {
  margin: 0;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.2;
}

.catalog__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(16px, 2vw, 24px);
}

.catalog__cat-btn {
  appearance: none;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  border-radius: 0;
  padding: 10px 20px;
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}

.catalog__cat-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.catalog__cat-btn_active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.catalog__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog__chip {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--color-white);
  color: var(--color-text);
  border-radius: 0;
  padding: 10px 14px;
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.catalog__chip:hover {
  border-color: rgba(0, 0, 0, 0.24);
}

.catalog__grid {
  padding-left: 0;
  padding-right: 0;
  flex: 1;
  min-width: 0;
}

.catalog-hardware-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.catalog-hardware__group-title {
  font-family: var(--font-main);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  color: var(--color-text);
  margin: 32px 0 16px;
  letter-spacing: 0.01em;
}
.catalog-hardware__group-title:first-child { margin-top: 0; }

.catalog-hardware__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.catalog__hw-filter-btn {
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: all 0.2s;
}
.catalog__hw-filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.catalog__hw-filter-btn_active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.hw-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  overflow: hidden;
  cursor: default;
}
.hw-card__image-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
  padding: 12px;
}
.hw-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hw-card__info {
  padding: 12px 16px 16px;
}
.hw-card__title {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text);
  margin: 0 0 6px;
  line-height: 1.35;
}
.hw-card__price {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  margin: 0;
}
.catalog-empty-message {
  text-align: center;
  font-family: var(--font-main);
  font-size: 18px;
  color: var(--color-text-secondary, #888);
  padding: 80px 20px;
}
@media (max-width: 600px) {
  .catalog-hardware-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .hw-card__info { padding: 8px 10px 12px; }
  .hw-card__title { font-size: 12px; }
  .hw-card__price { font-size: 14px; }
}

.catalog__body {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.catalog__sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.catalog__sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.catalog__sidebar-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.catalog__sidebar-close {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.catalog__filter-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.catalog__filter-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 12px;
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  border-left: 2px solid transparent;
}

.catalog__filter-btn:hover {
  color: var(--color-text);
  background: #f5f5f5;
}

.catalog__filter-btn_active {
  color: var(--color-text);
  font-weight: 600;
  border-left-color: var(--color-primary);
  background: rgba(140, 31, 59, 0.04);
}

.catalog__filter-toggle {
  display: none;
  width: 100%;
  padding: 12px 20px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 500;
  background: #FCFCFC;
  border: 1px solid var(--color-border);
  cursor: pointer;
  margin-bottom: 16px;
  text-align: center;
}

@media (max-width: 768px) {
  .catalog__filter-toggle {
    display: block;
  }

  .catalog__sidebar {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    width: 100%;
    background: #fff;
    padding: 24px;
    overflow-y: auto;
  }

  .catalog__sidebar.is-open {
    display: block;
  }

  .catalog__sidebar-close {
    display: block;
  }

  .catalog__body {
    flex-direction: column;
  }
}

.catalog__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(16px, 3vw, 28px);
}

.catalog__more-btn {
  min-width: min(320px, 100%);
}

.service-page {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(16px, 2.5vw, 32px) var(--layout-pad) clamp(48px, 6vw, 80px);
}

.service-page__breadcrumbs {
  margin: clamp(12px, 2vw, 20px) 0 clamp(16px, 3vw, 28px);
}

.service-page__title {
  margin: 0 0 clamp(20px, 3vw, 32px);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Информационные страницы (Оплата / Доставка / Возврат / Условия покупки).
   Единый читаемый текстовый блок + CTA (переиспользуем .pdp-help). */
.info-page__body {
  max-width: 820px;
  color: var(--color-text-primary, #1A1A1A);
}
.info-page__lead {
  margin: 0 0 clamp(24px, 3vw, 36px);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
}
.info-page__subtitle {
  margin: clamp(28px, 3.5vw, 40px) 0 clamp(12px, 1.5vw, 16px);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.2;
}
.info-page__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.info-page__list li {
  position: relative;
  padding-left: 22px;
  line-height: 1.55;
  color: var(--color-text-secondary, #4f4f4f);
}
.info-page__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent, #8C1F3B);
}
.info-page__list a { color: var(--color-accent, #8C1F3B); text-decoration: underline; }
.info-page__note {
  margin: clamp(28px, 3.5vw, 40px) 0 0;
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.2vw, 26px);
  background: var(--color-surface, #F4F1EC);
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.55;
}
.info-page__note a { color: var(--color-accent, #8C1F3B); text-decoration: underline; }
.info-page__cta {
  margin-top: clamp(40px, 5vw, 64px);
}
.info-page__phone {
  display: inline-block;
  margin-top: 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary, #1A1A1A);
}

/* Правовые страницы (Политика конфиденциальности / Обработка персональных данных).
   Длинный юридический текст — читаемая колонка, чёткая иерархия заголовков и списков. */
.legal-page {
  padding: clamp(16px, 2.5vw, 32px) 0 clamp(56px, 7vw, 96px);
}
.legal-page__title {
  margin: clamp(8px, 1.5vw, 16px) 0 clamp(24px, 3vw, 36px);
  max-width: 900px;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text-primary, #1A1A1A);
}
.legal-page__body {
  max-width: 860px;
  color: var(--color-text-primary, #1A1A1A);
}
.legal-page__body h2 {
  margin: clamp(30px, 4vw, 48px) 0 clamp(12px, 1.5vw, 16px);
  font-size: clamp(19px, 2.1vw, 25px);
  font-weight: 700;
  line-height: 1.25;
}
.legal-page__body h2:first-child { margin-top: 0; }
.legal-page__body p {
  margin: 0 0 14px;
  line-height: 1.62;
  color: var(--color-text-secondary, #4f4f4f);
}
.legal-page__body ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.legal-page__body li {
  position: relative;
  padding-left: 22px;
  line-height: 1.6;
  color: var(--color-text-secondary, #4f4f4f);
}
.legal-page__body li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent, #8C1F3B);
}
.legal-page__body strong { color: var(--color-text-primary, #1A1A1A); font-weight: 700; }
.legal-page__body a { color: var(--color-accent, #8C1F3B); text-decoration: underline; }
.legal-page__note {
  margin-top: clamp(28px, 3.5vw, 40px);
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.2vw, 26px);
  background: var(--color-surface, #F4F1EC);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.55;
}

.service-hero {
  background: var(--color-bg-header);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: clamp(28px, 5vw, 56px);
}

.service-hero__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  align-items: stretch;
}

@media (max-width: 920px) {
  .service-hero__grid {
    grid-template-columns: 1fr;
  }
}

.service-hero__content {
  padding: clamp(16px, 3vw, 28px);
  display: grid;
  align-content: start;
  gap: 14px;
}

.service-hero__lead {
  margin: 0;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.35;
  color: var(--color-text);
}

.service-hero__bullets {
  margin: 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 8px;
  color: var(--color-text);
}

.service-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-top: 6px;
}

.service-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 0;
  background: var(--color-primary);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.service-hero__link {
  text-decoration: underline;
}

.service-hero__media {
  min-height: clamp(220px, 34vw, 420px);
  background: #e9e9e9;
}

.service-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-steps {
  margin-bottom: clamp(28px, 5vw, 56px);
}

.service-steps__title {
  margin: 0 0 clamp(12px, 2vw, 18px);
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.2;
}

.service-steps__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
}

@media (max-width: 1024px) {
  .service-steps__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .service-steps__grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background: var(--color-bg-header);
  border-radius: 0;
  padding: clamp(14px, 2vw, 18px);
  display: grid;
  gap: 10px;
}

.step-card__num {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.step-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.step-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-light);
}

.service-faq {
  margin-bottom: clamp(28px, 5vw, 56px);
}

.service-faq__title {
  margin: 0 0 clamp(12px, 2vw, 18px);
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.2;
}

.service-faq__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
}

@media (max-width: 920px) {
  .service-faq__grid {
    grid-template-columns: 1fr;
  }
}

.faq-item {
  background: var(--color-bg-header);
  border-radius: 0;
  padding: 14px 16px;
}

.faq-item__summary {
  cursor: pointer;
  font-size: 16px;
  line-height: 1.3;
}

.faq-item__text {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-light);
}

.map-module {
  background: var(--color-bg-header);
  border-radius: 0;
  overflow: hidden;
}

.map-module__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  align-items: stretch;
}

@media (max-width: 920px) {
  .map-module__grid {
    grid-template-columns: 1fr;
  }
}

.map-module__info {
  padding: clamp(16px, 3vw, 28px);
  display: grid;
  align-content: start;
  gap: 12px;
}

.map-module__title {
  margin: 0;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.2;
}

.map-module__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-light);
}

.map-module__list {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.map-point {
  background: var(--color-white);
  border-radius: 0;
  padding: 14px 14px;
  display: grid;
  gap: 6px;
}

.map-point__name {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-light);
}

.map-point__addr {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  color: var(--color-text);
}

.map-point__link {
  font-size: 16px;
  line-height: 1.35;
  text-decoration: underline;
}

.map-module__map {
  min-height: clamp(280px, 40vw, 520px);
  position: relative;
}

.map-module__map iframe,
.map-module__map ymaps {
  width: 100% !important;
  height: 100% !important;
  min-height: clamp(280px, 40vw, 520px);
  display: block;
}

.contacts-page {
  max-width: 1440px;
  margin: 0 auto;
  /* Боковой отступ — единый токен --layout-pad, как у каталога/карточки. */
  padding: clamp(16px, 2.5vw, 32px) var(--layout-pad) clamp(48px, 6vw, 80px);
}

.contacts-page__breadcrumbs {
  margin: clamp(12px, 2vw, 20px) 0 clamp(16px, 3vw, 28px);
}

.contacts-page__title {
  margin: 0 0 clamp(20px, 3vw, 32px);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.contacts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
  margin-bottom: clamp(24px, 5vw, 56px);
}

@media (max-width: 920px) {
  .contacts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.contact-card {
  background: var(--color-bg-header);
  border-radius: 0;
  padding: clamp(14px, 2vw, 18px);
  display: grid;
  gap: 8px;
  min-width: 0;
}

.contact-card__title {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  color: var(--color-text-light);
}

.contact-card__value {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.2;
  color: var(--color-text);
}

.contact-card__value_text {
  margin: 0;
}

.contact-card__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-text-light);
}

/* Страницы-заглушки (Блог, Проекты) — центрированный контейнер как у остальных разделов. */
.stub-page {
  max-width: 1920px;
  margin: 0 auto;
  padding: clamp(16px, 2.5vw, 40px);
}

.stub-page .breadcrumbs {
  justify-content: center;
  margin-bottom: clamp(16px, 2.5vw, 24px);
}

.stub-page__inner {
  max-width: 640px;
  margin: clamp(40px, 10vw, 120px) auto;
  padding: 0 clamp(16px, 3vw, 24px);
  text-align: center;
}

.stub-page__title {
  margin: 0 0 clamp(16px, 3vw, 24px);
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: var(--fluid-heading);
  line-height: 1.2;
  color: var(--color-text);
}

.stub-page__text {
  margin: 0 0 clamp(24px, 4vw, 36px);
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.6;
  color: var(--color-text-light);
}

.about-page {
  max-width: 1920px;
  margin: 0 auto;
  padding: clamp(16px, 2.5vw, 40px);
}

.about-page__title {
  margin: 0 0 clamp(24px, 4vw, 40px);
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: var(--fluid-heading);
  line-height: 1.2;
  color: var(--color-text);
}

.about-page .breadcrumbs {
  margin-bottom: clamp(16px, 2.5vw, 24px);
}

.about-banner {
  width: 100%;
  margin-bottom: clamp(40px, 6vw, 80px);
  border-radius: 0;
  overflow: hidden;
}

.about-banner__image {
  width: 100%;
  height: auto;
  min-height: 300px;
  object-fit: cover;
  display: block;
}

.about-intro {
  max-width: 1440px;
  margin: 0 auto clamp(60px, 10vw, 100px);
}

.about-intro__heading {
  margin: 0 0 clamp(16px, 2vw, 24px);
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.2;
  color: var(--color-text);
}

.about-intro__text {
  margin: 0 0 clamp(12px, 2vw, 20px);
  font-family: var(--font-main);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--color-text);
  max-width: 800px;
}

.about-intro__text_muted {
  color: var(--color-text-light);
}

.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  margin-bottom: clamp(40px, 8vw, 80px);
}

@media (max-width: 767px) {
  .about-block {
    grid-template-columns: 1fr;
  }

  .about-block_image-right .about-block__image-wrap {
    order: -1;
  }

  .about-block_image-left .about-block__image-wrap {
    order: -1;
  }
}

.about-block_image-left .about-block__image-wrap {
  order: 1;
}

.about-block_image-left .about-block__content {
  order: 2;
}

.about-block_alt {
  background: var(--color-section-alt);
  margin-left: calc(-1 * clamp(16px, 3vw, 40px));
  margin-right: calc(-1 * clamp(16px, 3vw, 40px));
  padding: clamp(24px, 4vw, 60px) clamp(16px, 3vw, 40px);
  border-radius: 0;
}

@media (max-width: 767px) {
  .about-block_alt {
    margin-left: 0;
    margin-right: 0;
    padding-left: clamp(16px, 3vw, 24px);
    padding-right: clamp(16px, 3vw, 24px);
  }
}

.about-block__heading {
  margin: 0 0 clamp(12px, 2vw, 20px);
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
  color: var(--color-text);
}

.about-block__text {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.5;
  color: var(--color-text-light);
}

.about-block__image-wrap {
  border-radius: 0;
  overflow: hidden;
}

.about-block__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.about-quality {
  position: relative;
  padding: clamp(40px, 8vw, 80px) clamp(16px, 3vw, 40px);
  margin: 0 calc(-1 * clamp(16px, 3vw, 40px)) 0;
  border-radius: 0;
  overflow: hidden;
}

@media (max-width: 767px) {
  .about-quality {
    margin-left: 0;
    margin-right: 0;
  }
}

.about-quality__bg {
  position: absolute;
  inset: 0;
  background: var(--color-primary);
}

.about-quality__content {
  position: relative;
  z-index: 1;
  max-width: 1040px;
}

.about-quality__heading {
  margin: 0 0 clamp(12px, 2vw, 20px);
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
  color: var(--color-white);
}

.about-quality__intro {
  margin: 0 0 clamp(20px, 3vw, 32px);
  font-family: var(--font-main);
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.5;
  color: var(--color-white);
}

.about-quality__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
  margin: 0;
}

.about-quality__step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(20px, 2.2vw, 28px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.about-quality__step-num {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

.about-quality__step-icon {
  width: 150px;
  height: 150px;
  max-width: 100%;
  object-fit: contain;
}

.about-quality__step-text {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.35;
  color: var(--color-white);
}

@media (max-width: 900px) {
  .about-quality__steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .about-quality__steps { grid-template-columns: 1fr; }
}

.about-certs {
  background: #e8dbdf;
  margin: 0 calc(-1 * clamp(16px, 3vw, 40px)) clamp(40px, 6vw, 60px);
  padding: clamp(40px, 8vw, 80px) clamp(16px, 3vw, 40px);
}

.about-certs__title {
  margin: 0 0 clamp(12px, 2vw, 20px);
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
  color: var(--color-text);
}

.about-certs__lead {
  margin: 0 0 clamp(20px, 3vw, 32px);
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.5;
  color: var(--color-text-light);
  max-width: 720px;
}

.about-certs__grid {
  display: grid;
  /* auto-fit — карточки растягиваются по ширине ряда (3 на ПК, 2 на планшете, 1 на телефоне). */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.cert-card {
  background: var(--color-white);
  padding: clamp(12px, 2vw, 18px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: border-color 0.15s, transform 0.15s;
}

.cert-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.cert-card__image-wrap {
  position: relative;
  aspect-ratio: 5 / 7;
  background: var(--color-bg-header);
  overflow: hidden;
}

.cert-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.cert-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.cert-card__label {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-text);
}

.cert-card__meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text-light);
}

.about-news {
  margin-bottom: clamp(40px, 6vw, 80px);
}

.about-news__title {
  margin: 0 0 clamp(16px, 3vw, 28px);
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
  color: var(--color-text);
}

.about-news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.about-news-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}

.about-news-card__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.about-news-card__body {
  display: grid;
  gap: 8px;
  align-content: start;
}

.about-news-card__date {
  font-size: 13px;
  color: var(--color-text-light);
}

.about-news-card__title {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.35;
  color: var(--color-text);
}

.page_wishlist .wishlist-page {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(16px, 2.5vw, 32px) var(--layout-pad) clamp(48px, 6vw, 80px);
}

.wishlist-page {
  padding: clamp(16px, 2.5vw, 32px) 0 clamp(48px, 6vw, 80px);
}

.wishlist-page__title {
  margin: 0 0 clamp(20px, 3vw, 32px);
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  color: var(--color-text);
}

.wishlist-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(16px, 3vw, 28px);
  margin-bottom: clamp(32px, 4vw, 60px);
}

.wishlist-card {
  position: relative;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
}

.wishlist-card__image-wrap {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-bg-header);
}

.wishlist-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.wishlist-card__image-wrap:hover .wishlist-card__image {
  transform: scale(1.04);
}

.wishlist-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.wishlist-card__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: clamp(15px, 1.5vw, 17px);
}

.wishlist-card__title-link {
  color: var(--color-text);
  text-decoration: none;
}

.wishlist-card__title-link:hover {
  color: var(--color-primary);
}

.wishlist-card__specs {
  margin: 0;
  display: grid;
  gap: 6px;
}

.wishlist-card__spec-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-light);
}

.wishlist-card__spec-label {
  flex-shrink: 0;
}

.wishlist-card__spec-value {
  text-align: right;
  color: var(--color-text);
  font-weight: 500;
}

.wishlist-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--color-bg-header);
}

.wishlist-card__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

.wishlist-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wishlist-card__add-cart-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--color-border);
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
  flex-shrink: 0;
}
.wishlist-card__add-cart-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-header);
}
.wishlist-card__add-cart-btn img {
  display: block;
}

.wishlist-card__cart-btn {
  padding: 8px 16px;
  border: 1.5px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s;
}

.wishlist-card__cart-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.wishlist-card__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  cursor: pointer;
  color: var(--color-text-light);
  transition:
    color 0.15s,
    border-color 0.15s,
    background 0.15s;
  z-index: 2;
}

.wishlist-card__remove:hover {
  color: var(--color-white);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.wishlist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: clamp(40px, 8vw, 80px) 0;
  text-align: center;
}

.wishlist-empty__text {
  margin: 0;
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 1.4;
  color: var(--color-text-light);
}

.wishlist-empty__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s;
}

.wishlist-empty__link:hover {
  opacity: 0.88;
}

.cart-page {
  max-width: 1440px;
  margin: 0 auto;
  /* Боковой отступ — единый токен --layout-pad; вертикальный оставляем прежним. */
  padding: clamp(16px, 2.5vw, 40px) var(--layout-pad);
}

.cart-page__title {
  margin: 0 0 clamp(24px, 4vw, 40px);
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: var(--fluid-heading);
  line-height: 1.2;
  color: var(--color-text);
}

.cart-page .breadcrumbs {
  margin-bottom: clamp(16px, 2vw, 24px);
}

.cart {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}

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

.cart__items {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
}

.cart-item {
  padding: clamp(20px, 2.5vw, 32px);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.cart-item + .cart-item {
  margin-top: clamp(16px, 2vw, 24px);
}

.cart-item__door-section {
  display: grid;
  grid-template-columns: 160px 1fr;
  column-gap: clamp(20px, 2.5vw, 32px);
}

.cart-item__image-wrap {
  width: 160px;
  min-height: 180px;
  background: var(--color-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cart-item__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-item__price-col {
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
}

.cart-item__price-label {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.cart-item__price {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  color: var(--color-text);
}

.cart-item__props {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.cart-item__qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}
.cart-item__qty-label {
  font-size: 14px;
  color: var(--color-text-light);
}
.cart-item__qty-controls {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--color-border);
}
.cart-item__qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.cart-item__qty-btn:hover {
  background: rgba(140, 31, 59, 0.05);
  color: var(--color-primary);
}
.cart-item__qty-value {
  width: 36px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  line-height: 32px;
}

/* «Хочу такую же, но с другим размером» — кнопка на всю ширину внизу позиции. */
.cart-item__resize {
  display: block;
  width: 100%;
  margin-top: clamp(16px, 2vw, 24px);
  padding: 12px 16px;
  border: 1px solid var(--color-accent, #8C1F3B);
  border-radius: 6px;
  background: transparent;
  color: var(--color-accent, #8C1F3B);
  font-family: var(--font-main);
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.cart-item__resize:hover {
  background: var(--color-accent, #8C1F3B);
  color: #fff;
}

/* Всплывающее меню выбора размера (как в конструкторе): 6 в ряд на ПК, адаптив. */
.resize-modal {
  position: fixed;
  inset: 0;
  z-index: 10600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 40px);
}
.resize-modal[aria-hidden="true"] {
  display: none;
}
.resize-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
}
.resize-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--color-white, #fff);
  border-radius: 10px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}
.resize-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--color-text-light);
  cursor: pointer;
}
.resize-modal__title {
  margin: 0 0 clamp(16px, 2.5vw, 24px);
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--color-text-primary, #1A1A1A);
}
.resize-modal__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.resize-modal__size {
  padding: 12px 8px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-white, #fff);
  color: var(--color-text-primary, #1A1A1A);
  font-family: var(--font-main);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.resize-modal__size:hover {
  border-color: var(--color-accent, #8C1F3B);
  color: var(--color-accent, #8C1F3B);
}
.resize-modal__size_active {
  border-color: var(--color-accent, #8C1F3B);
  color: var(--color-accent, #8C1F3B);
  font-weight: 600;
}
.resize-modal__size_custom {
  grid-column: 1 / -1;
  font-weight: 500;
}
@media (max-width: 1024px) {
  .resize-modal__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .resize-modal__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 400px) {
  .resize-modal__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cart-item__prop-row {
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  gap: 6px;
}

.cart-item__prop-label {
  color: var(--color-text-light);
  white-space: nowrap;
}

.cart-item__prop-value {
  color: var(--color-text);
  font-weight: 500;
}

.cart-item__title {
  margin: 0;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 600;
  font-family: var(--font-main);
  color: var(--color-text);
}

.cart-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 20px;
}

.cart-meta__count {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text);
}

.cart-meta__clear {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-main);
  color: var(--color-text-light);
  padding: 0;
}

.cart-meta__clear:hover {
  color: var(--color-primary);
}

.cart-empty {
  font-size: 16px;
  color: var(--color-text-light);
  padding: 40px 0;
  text-align: center;
}

.cart-empty a {
  color: var(--color-primary);
  text-decoration: none;
}

@media (max-width: 768px) {
  .cart-item__door-section {
    grid-template-columns: 100px 1fr;
  }
  .cart-item__image-wrap {
    width: 100px;
    min-height: 120px;
  }
  .cart-item__props {
    grid-template-columns: 1fr;
  }
  .cart-item__header {
    flex-direction: column;
    gap: 8px;
  }
  .cart-item__action-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .cart-item__door-section {
    grid-template-columns: 80px 1fr;
  }
  .cart-item__image-wrap {
    width: 80px;
    min-height: 100px;
  }
  .cart-item__price-col {
    grid-column: 1 / -1;
    text-align: left;
    margin-top: 12px;
  }
  .cart-item__accessory {
    grid-template-columns: 60px 1fr;
  }
  .cart-item__accessory-img {
    width: 60px;
    height: 60px;
  }
}

.cart-item__accessories-group {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--color-border);
}

.cart-item__accessories-header {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cart-item__accessory {
  display: grid;
  grid-template-columns: 80px 1fr;
  column-gap: clamp(12px, 1.5vw, 20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.cart-item__accessory:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-item__accessory-img {
  width: 80px;
  height: 80px;
  background: var(--color-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cart-item__accessory-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item__accessory-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}

.cart-item__accessory-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.cart-item__accessory-spec {
  font-size: 14px;
  color: var(--color-text-light);
}

.cart-item__accessory-qty-label {
  font-size: 13px;
  color: var(--color-text-light);
}

.cart-comp-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}
.cart-comp-section__title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
}
.cart-comp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cart-comp {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  min-width: 0;
}
.cart-comp__img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--color-bg-card, #f5f3f0);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-comp__img img { width: 100%; height: 100%; object-fit: contain; }
.cart-comp__body { min-width: 0; }
.cart-comp__name { display: block; font-size: 14px; line-height: 1.3; color: var(--color-text-primary); }
.cart-comp__qty { display: block; margin-top: 4px; font-size: 12px; color: var(--color-text-light); }
@media (max-width: 1024px) {
  .cart-comp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .cart-comp-grid { grid-template-columns: 1fr; }
}

.cart-item__action-link_more { color: var(--color-accent); font-weight: 600; }

.cart-details { position: fixed; inset: 0; z-index: 1400; display: none; }
.cart-details[aria-hidden="false"] { display: block; }
.cart-details__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.cart-details__panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 80vw; max-width: 80vw; max-height: 88vh; overflow-y: auto;
  background: #fff; border-radius: 16px; padding: clamp(20px, 3vw, 36px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}
/* Попап «Подробнее»: слева фото двери (60vh на ПК), справа вся информация. */
.cart-details__grid {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.cart-details__media { position: sticky; top: 0; min-width: 0; }
.cart-details__media-btn {
  display: block; width: 100%; padding: 0; border: 0;
  background: var(--color-bg-light, #f5f5f5);
  border-radius: 12px; overflow: hidden; cursor: zoom-in;
}
.cart-details__media-btn img { display: block; width: 100%; height: 60vh; object-fit: contain; }
.cart-details__content { min-width: 0; }
.cart-details__content .cart-details__title { margin-top: 0; }
/* погонаж/фурнитура — фикс. число в ряд, текст не съезжает */
.cart-details .cart-comp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cart-details .cart-comp { min-width: 0; }
.cart-details .cart-comp__name { overflow-wrap: anywhere; }
@media (max-width: 1024px) {
  .cart-details__panel { width: 92vw; max-width: 92vw; }
  /* планшет/мобилка: одна колонка, фото не выходит за пределы экрана */
  .cart-details__grid { grid-template-columns: 1fr; gap: 20px; }
  .cart-details__media { position: static; }
  .cart-details__media-btn img { height: 44vh; max-height: 360px; }
  /* Мобильная версия попапа «Подробнее»: погонаж/фурнитура по одному в строку,
     каждый следующий объект переносится на новую строку (задача 5.2). */
  .cart-details .cart-comp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cart-details__media-btn img { height: 38vh; }
  .cart-details .cart-comp-grid { grid-template-columns: 1fr; }
}

/* Лайтбокс увеличения фото двери (корзина + попап «Подробнее»). */
.cart-item__image_zoomable { cursor: zoom-in; }
.img-zoom { position: fixed; inset: 0; z-index: 1600; display: none; }
.img-zoom[aria-hidden="false"] { display: block; }
.img-zoom__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.85); }
.img-zoom__img {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  max-width: 92vw; max-height: 92vh; object-fit: contain; border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}
.img-zoom__close {
  position: absolute; top: 16px; right: 24px; z-index: 1;
  border: 0; background: none; color: #fff; font-size: 40px; line-height: 1; cursor: pointer;
}
.cart-details__close {
  position: absolute; top: 14px; right: 16px; border: 0; background: none;
  font-size: 26px; line-height: 1; cursor: pointer; color: var(--color-text-light);
}
.cart-details__close:hover { color: var(--color-accent); }
.cart-details__title { margin: 0 0 16px; font-size: clamp(20px, 3vw, 26px); font-weight: 700; letter-spacing: -0.01em; }
.cart-details .cart-comp-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 18px; }
.order-details-door + .order-details-door { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--color-border); }
.order-details-door__title { margin: 0 0 12px; font-style: italic; font-size: clamp(16px, 2vw, 20px); font-weight: 600; }
.order-block__total { margin-top: 16px; text-align: right; font-size: 15px; }

.cart-item__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.cart-item__remove {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-main);
  color: var(--color-text-light);
  padding: 0;
}

.cart-item__remove:hover {
  color: var(--color-primary);
}

.cart-item__accessories {
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-accessory {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-accessory__img-wrap {
  width: 52px;
  height: 52px;
  background: var(--color-bg-card);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cart-accessory__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-accessory__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-accessory__name {
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.3;
  color: var(--color-text);
}

.cart-accessory__spec {
  font-family: var(--font-main);
  font-size: 12px;
  color: var(--color-text-light);
}

.cart-accessory__qty {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.cart-accessory__qty-btn {
  width: 26px;
  height: 26px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-accessory__qty-btn:hover {
  background: var(--color-section-alt);
}

.cart-accessory__qty-input {
  width: 36px;
  padding: 4px;
  font-family: var(--font-main);
  font-size: 13px;
  text-align: center;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 0;
  -moz-appearance: textfield;
}

.cart-accessory__qty-input::-webkit-outer-spin-button,
.cart-accessory__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-accessory__pricing {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
  min-width: 80px;
}

.cart-accessory__price {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text);
  white-space: nowrap;
}

.cart-accessory__old-price {
  font-family: var(--font-main);
  font-size: 12px;
  color: var(--color-text-light);
  text-decoration: line-through;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .cart-item__accessories {
    grid-column: 1 / -1;
  }

  .cart-accessory {
    flex-wrap: wrap;
  }

  .cart-accessory__info {
    flex: 1 1 calc(100% - 64px);
  }

  .cart-accessory__qty,
  .cart-accessory__pricing {
    flex: 0 0 auto;
  }
}

.cart-summary {
  position: sticky;
  /* Учитываем полную высоту липкой шапки (оба уровня). --dv-header-h измеряется
     по всему .header в catalog-filter.js и обновляется на resize/load; иначе
     второй уровень шапки перекрывал верх сводки. Фолбэк — старое значение. */
  top: calc(var(--dv-header-h, 104px) + 16px);
}

@media (max-width: 1024px) {
  .cart-summary {
    position: static;
    order: -1;
  }
}

.cart-summary__content {
  padding: clamp(20px, 3vw, 32px);
  background: var(--color-section-alt);
  border-radius: 6px;
}

.cart-summary__breakdown {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0;
}

.cart-summary__breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 4px 0;
  font-size: 13px;
  color: var(--color-text-light);
}

.cart-summary__breakdown-name {
  font-family: var(--font-main);
  font-style: italic;
}

.cart-summary__breakdown-qty {
  margin-left: 4px;
  font-style: normal;
  font-weight: 600;
  color: var(--color-accent, #8C1F3B);
  white-space: nowrap;
}

.cart-summary__breakdown-price {
  font-family: var(--font-main);
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}

.cart-summary__title {
  margin: 0 0 clamp(16px, 2vw, 24px);
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: clamp(20px, 2.5vw, 24px);
  line-height: 1.2;
  color: var(--color-text);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(6px, 0.8vw, 10px) 0;
  font-size: 14px;
  color: var(--color-text-light);
}

.cart-summary__row_discount .cart-summary__value {
  color: var(--color-primary);
}

.cart-summary__discount-arrow {
  font-size: 10px;
  opacity: 0.6;
}

.cart-summary__label {
  font-family: var(--font-main);
}

.cart-summary__value {
  font-family: var(--font-main);
  font-weight: 500;
  color: var(--color-text);
  text-align: right;
}

.cart-summary__row_total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.cart-summary__row_total .cart-summary__label {
  font-size: 16px;
  font-weight: 700;
}

.cart-summary__row_total .cart-summary__value {
  font-size: 18px;
  font-weight: 700;
}

.cart-summary__toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
  margin-top: 8px;
}

.cart-summary__toggle-row + .cart-summary__toggle-row {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.cart-summary__toggle-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
}

.cart-summary__switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cart-summary__switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cart-summary__slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.3s;
}

.cart-summary__slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}

.cart-summary__switch input:checked + .cart-summary__slider {
  background: var(--color-primary);
}

.cart-summary__switch input:checked + .cart-summary__slider::before {
  transform: translateX(20px);
}

.cart-summary__total {
  padding: 0;
  margin-top: 0;
  border-top: none;
}

.cart-summary__total-label {
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: clamp(18px, 2vw, 20px);
  color: var(--color-text);
}

.cart-summary__total-value {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 28px);
  color: var(--color-text);
}

.cart-summary__btn {
  width: 100%;
  padding: clamp(14px, 2vw, 16px) clamp(20px, 3vw, 24px);
  margin-top: clamp(16px, 2vw, 24px);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-primary);
  border: none;
  border-radius: 0;
  cursor: pointer;
}

.cart-summary__btn:hover {
  opacity: 0.9;
}

.cart-summary__promo-link {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
  text-align: center;
  padding: 8px 0;
}

.cart-summary__promo-link:hover {
  color: var(--color-primary);
}

.cart-summary__promo-field {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.cart-summary__promo-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-main);
  border: 1px solid var(--color-border);
  outline: none;
  border-radius: 0;
}

.cart-summary__promo-input:focus {
  border-color: var(--color-text);
}

.cart-summary__promo-apply {
  padding: 10px 16px;
  font-size: 13px;
  font-family: var(--font-main);
  font-weight: 600;
  background: var(--color-text);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  border-radius: 0;
}

.cart-summary__promo-apply:hover {
  opacity: 0.85;
}

.cart-summary__continue {
  display: block;
  margin-top: clamp(12px, 2vw, 16px);
  font-family: var(--font-main);
  font-size: 14px;
  text-align: center;
  color: var(--color-text);
  text-decoration: underline;
}

.cart-summary__continue:hover {
  color: var(--color-primary);
}

.cart-item__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.cart-item__header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item__price-tag {
  font-size: 13px;
  color: var(--color-text-light);
}

.cart-item__action-links {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.cart-item__action-link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-main);
  font-size: 13px;
  color: var(--color-text-light);
  cursor: pointer;
  text-decoration: none;
}

.cart-item__action-link:hover {
  color: var(--color-primary);
}

.cart-item__action-link_delete {
  color: var(--color-text-light);
}

.cart-item__action-link_delete:hover {
  color: var(--color-primary);
}

.cart-services {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.cart-services__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.cart-services__checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.cart-services__label {
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
}

.cart-services__show-all {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-main);
}

.cart-services__show-all:hover {
  color: var(--color-primary);
}

.checkout-confirm__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0 0 24px;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal[aria-hidden="true"] {
  display: none;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.auth-modal__panel {
  position: relative;
  z-index: 1;
  background: var(--color-white);
  width: min(440px, calc(100vw - 32px));
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}

.auth-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.auth-modal__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.2;
}

.auth-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  line-height: 0;
  color: var(--color-text);
  flex-shrink: 0;
}

.auth-modal__tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.modal__tab {
  flex: 1;
  padding: 10px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font-main);
  font-size: 14px;
  cursor: pointer;
  color: var(--color-text-light);
  text-align: center;
  text-decoration: none;
  margin-bottom: -1px;
}

.modal__tab_active {
  border-bottom-color: var(--color-text);
  color: var(--color-text);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form__field {
  display: grid;
  gap: 6px;
}

.auth-form__label {
  font-size: 13px;
  color: var(--color-text-light);
}

.auth-form__input {
  padding: 12px 14px;
  font-size: 16px;
  font-family: var(--font-main);
  border: 1px solid var(--color-border-input);
  background: var(--color-white);
  color: var(--color-text);
  outline: none;
  border-radius: 0;
  width: 100%;
  box-sizing: border-box;
}

.auth-form__input:focus {
  border-color: var(--color-text);
}

.auth-form__error {
  color: var(--color-primary);
  font-size: 13px;
  min-height: 18px;
}

.auth-form__btn {
  padding: 14px 20px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 0;
}

.auth-form__btn:hover {
  opacity: 0.9;
}

.auth-modal__tabs .modal__tab {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
}
.auth-modal__tabs .modal__tab_active {
  border-bottom-color: var(--color-primary);
  color: var(--color-text);
  font-weight: 600;
}

.auth-form__forgot {
  justify-self: end;
  margin-top: -6px;
  font-size: 13px;
  color: var(--color-text-light);
  text-decoration: none;
  
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}
.auth-form__forgot:hover { color: var(--color-primary); }

.auth-form__switch {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--color-text);
  padding: 4px;
  text-align: center;
}
.auth-form__switch:hover { color: var(--color-primary); }

.auth-modal__hint {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text-light);
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-modal[aria-hidden="true"] {
  display: none;
}

.checkout-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.checkout-modal__panel {
  position: relative;
  z-index: 1;
  background: var(--color-white);
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}

.checkout-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.checkout-modal__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.2;
}

/* Крестик — текстовый символ «×», а не иконка: без font-size он наследовал 16px,
   а line-height:0 схлопывал глиф почти в точку. Размер и зона нажатия — как у
   остальных модалок (36×36, ≥44px по касанию с учётом отступов панели). */
.checkout-modal__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--color-text-light);
  transition: color 0.15s;
  flex-shrink: 0;
}

.checkout-modal__close:hover {
  color: var(--color-accent);
}

.checkout-form {
  display: grid;
  gap: 16px;
}

.checkout-form__field {
  display: grid;
  gap: 6px;
}

.checkout-form__label {
  font-size: 13px;
  color: var(--color-text-light);
}

.checkout-form__input,
.checkout-form__textarea {
  padding: 12px 14px;
  font-size: 16px;
  font-family: var(--font-main);
  border: 1px solid var(--color-border-input);
  background: var(--color-white);
  color: var(--color-text);
  outline: none;
  border-radius: 0;
  width: 100%;
  box-sizing: border-box;
}

.checkout-form__input:focus,
.checkout-form__textarea:focus {
  border-color: var(--color-text);
}

.checkout-form__textarea {
  resize: vertical;
  min-height: 80px;
}

.checkout-form__error {
  color: var(--color-primary);
  font-size: 13px;
  min-height: 18px;
}

.checkout-form__submit {
  padding: 14px 20px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 0;
  margin-top: 8px;
}

.checkout-form__submit:hover {
  opacity: 0.9;
}

.checkout-auth-hint {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}
.checkout-auth-hint__text {
  font-size: 13px;
  color: var(--color-text-light);
  margin: 0;
}
.checkout-auth-hint__link {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--color-primary);
  text-decoration: underline;
  cursor: pointer;
  font-family: var(--font-main);
}
.checkout-auth-hint__link:hover {
  opacity: 0.8;
}

.product__btn_config img {
  vertical-align: middle;
  margin-right: 4px;
  filter: brightness(0) invert(1);
}

.checkout-success {
  text-align: center;
  padding: clamp(32px, 5vw, 48px) 0;
}

.checkout-success__icon {
  display: block;
  font-size: 52px;
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.checkout-success__title {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.5vw, 28px);
}

.checkout-success__text {
  margin: 0 0 28px;
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.5;
}

.checkout-success__link {
  display: inline-block;
  padding: 14px 32px;
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 0;
}

.checkout-success__link:hover {
  opacity: 0.9;
}

.account-page {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(16px, 2.5vw, 32px) var(--layout-pad) clamp(48px, 6vw, 80px);
}

.account-page__title {
  margin: 0 0 clamp(24px, 4vw, 40px);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.account-content {
  min-width: 0;
}

@media (max-width: 768px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
}

.account-aside {
  background: var(--color-surface);
  padding: clamp(16px, 2vw, 24px);
}

.account-user-greeting {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-bg-header);
  margin-bottom: 8px;
}

.account-user-greeting__name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}

.account-user-greeting__email {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-light);
  word-break: break-word;
}

.account-nav__item {
  border-bottom: 1px solid var(--color-bg-header);
  position: relative;
}

.account-nav__item:last-child {
  border-bottom: none;
}

.account-nav__link {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  color: var(--color-text);
  text-decoration: none;
}

.account-nav__link:hover {
  color: var(--color-primary);
}

.account-nav__item_active {
  border-left: 2px solid var(--color-accent);
  background: var(--color-accent-tint);
}
.account-nav__item_active .account-nav__link {
  color: var(--color-accent);
  font-weight: 600;
  padding-left: 14px;
  padding-right: 16px;
}

.account-nav__marker {
  display: none;
}

.account-nav__logout {
  display: block;
  width: 100%;
  padding: 12px 0;
  font-size: 15px;
  font-family: var(--font-main);
  background: none;
  border: none;
  border-top: 1px solid var(--color-bg-header);
  cursor: pointer;
  text-align: left;
  color: var(--color-text-light);
  margin-top: 4px;
}

.account-nav__logout:hover {
  color: var(--color-primary);
}

.account-orders {
  display: grid;
  gap: clamp(16px, 2.5vw, 24px);
}
.account-orders[hidden],
.account-profile-panel[hidden] {
  display: none !important;
}

.account-profile-panel {
  background: var(--color-white);
  padding: clamp(24px, 3vw, 40px);
}

.account-profile-panel__title {
  margin: 0 0 clamp(20px, 3vw, 32px);
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: clamp(18px, 2.5vw, 24px);
}

.account-profile-form {
  display: grid;
  gap: 16px;
  max-width: 420px;
}

.account-profile-form__group {
  display: grid;
  gap: 6px;
}

.account-profile-form__label {
  font-size: 13px;
  color: var(--color-text-light);
  font-weight: 500;
}

.account-profile-form__input {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  font-family: var(--font-main);
  border: 1px solid var(--color-border);
  background: var(--color-bg-header);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.account-profile-form__input:focus {
  border-color: var(--color-primary);
}

.account-profile-form__divider {
  position: relative;
  padding: 8px 0 0;
  border-top: 1px solid var(--color-border);
  margin-top: 4px;
}

.account-profile-form__divider-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-profile-form__error {
  font-size: 13px;
  color: #c0392b;
  min-height: 18px;
}

.account-profile-form__success {
  font-size: 13px;
  color: #27ae60;
  min-height: 18px;
}

.account-profile-form__btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 14px;
  font-family: var(--font-main);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 4px;
}

.account-profile-form__btn:hover {
  opacity: 0.88;
}

.account-empty {
  padding: clamp(40px, 6vw, 64px) 0;
  text-align: center;
}

.account-empty__text {
  margin: 0 0 20px;
  font-size: 18px;
  color: var(--color-text-light);
}

.account-empty__link {
  display: inline-block;
  padding: 14px 32px;
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 0;
}

.account-empty__link:hover {
  opacity: 0.9;
}

.order-card {
  border: 1px solid #eee;
  padding: 20px;
  margin-bottom: 16px;
  background: var(--color-white);
}

.order-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.order-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.order-card__date {
  font-size: 13px;
  color: #999;
}

.order-card__summary {
  margin: 0 0 8px;
  font-size: 14px;
  color: #555;
}

.order-card__badge {
  display: inline-block;
  margin-right: 8px;
  padding: 3px 8px;
  background: #f0f0f0;
  font-size: 11px;
}

.order-card__badges {
  margin-bottom: 8px;
}

.order-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-card__total {
  font-size: 16px;
  font-weight: 700;
}

.order-card__detail-btn {
  padding: 8px 20px;
  font-size: 13px;
}

.order-card_highlight {
  border-color: #8C1F3B;
  border-width: 2px;
}

.order-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
}

.order-detail-modal {
  background: #fff;
  width: min(1100px, calc(100vw - 32px));
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
}

.order-detail-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.order-detail-modal__title {
  margin: 0;
  font-size: 20px;
}

.order-detail-modal__close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.order-detail-modal__date {
  margin: 0 0 12px;
  font-size: 13px;
  color: #999;
}

.order-detail-modal__badges {
  margin-bottom: 16px;
}

.order-detail-modal__total {
  text-align: right;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  font-size: 18px;
  font-weight: 700;
}

.order-detail__item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.order-detail__item-img {
  width: 80px;
  height: 100px;
  object-fit: contain;
  background: #f9f9f9;
  padding: 4px;
  flex-shrink: 0;
}

.order-detail__item-body {
  flex: 1;
  min-width: 0;
}

.order-detail__item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.order-detail__item-title {
  margin: 0;
  font-size: 15px;
}

.order-detail__qty {
  color: #999;
}

.order-detail__item-price {
  font-weight: 600;
  white-space: nowrap;
  margin-left: 12px;
}

.order-detail__props {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 24px;
  font-size: 13px;
  color: #555;
}

.order-detail__prop-label {
  color: #999;
}

.order-detail__accessories {
  margin-top: 16px;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
}

.order-detail__acc-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.order-detail__acc-row {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
}

.order-detail__acc-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #f5f5f5;
}

.order-detail__acc-spec {
  color: #999;
}

.order-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: clamp(12px, 2vw, 20px);
  padding: 16px 0;
  border-bottom: 1px solid var(--color-bg-header);
  align-items: start;
}

.order-item:last-child {
  border-bottom: none;
}

.order-item__image-wrap {
  background: var(--color-bg-header);
  aspect-ratio: 1 / 1.4;
  min-height: 80px;
}

.order-item__info {
  display: grid;
  gap: 8px;
  align-content: start;
}

.order-item__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

a.order-item__title:hover {
  color: var(--color-primary);
}

.order-item__specs {
  display: grid;
  gap: 4px;
}

.order-item__spec {
  font-size: 13px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: baseline;
}

.order-item__spec-label {
  color: var(--color-text-light);
  white-space: nowrap;
}

.order-item__spec-value {
  color: var(--color-text);
}

.order-item__price-block {
  text-align: right;
  display: grid;
  gap: 4px;
  align-content: start;
}

.order-item__price-label {
  font-size: 12px;
  color: var(--color-text-light);
  white-space: nowrap;
}

.order-item__price {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.header__user-name {
  font-family: var(--font-main);
  font-size: 13px;
  white-space: nowrap;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.header__profile-link {
  width: auto !important;
  max-width: 160px;
  height: auto !important;
  padding: 2px 6px;
  text-decoration: none;
  color: var(--color-text);
}

.header__profile-link:hover {
  color: var(--color-primary);
}

.call-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.call-modal[aria-hidden="true"] {
  display: none;
}

.call-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.call-modal__panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: var(--color-white);
  padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 44px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.call-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-light);
  transition: color 0.15s;
}

.call-modal__close:hover {
  color: var(--color-primary);
}

.call-modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  width: 64px;
  height: 64px;
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  border-radius: 50%;
}

.call-modal__title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: clamp(20px, 3vw, 26px);
}

.call-modal__subtitle {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.5;
}

.call-modal__form {
  display: grid;
  gap: 14px;
  text-align: left;
}

.call-modal__field {
  display: grid;
  gap: 6px;
}

.call-modal__label {
  font-size: 13px;
  color: var(--color-text-light);
  font-weight: 500;
}

.call-modal__input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px; /* >=16px — иначе iOS зумит страницу при фокусе (п.60) */
  font-family: var(--font-main);
  border: 1px solid var(--color-border);
  background: var(--color-bg-header);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.call-modal__input:focus {
  border-color: var(--color-primary);
}

.call-modal__error {
  font-size: 13px;
  color: #c0392b;
  min-height: 16px;
  text-align: left;
}

.call-modal__submit {
  width: 100%;
  padding: 14px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 14px;
  font-family: var(--font-main);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 4px;
}

.call-modal__submit:hover {
  opacity: 0.88;
}

.call-modal__success {
  padding: 16px 0 8px;
  text-align: center;
}

.call-modal__success-icon {
  font-size: 40px;
  color: #27ae60;
  line-height: 1;
  margin-bottom: 12px;
}

.call-modal__success-text {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.5;
  margin: 0;
}

/* Старое окно поиска (.search-overlay) заменено новым — css/search.css (13.10.2026). */
/* Системный «×» очистки поля type=search (синий, не в нашей палитре). */
.mob-search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

.config-chip {
  vertical-align: top;
}

.config-chip__delta {
  display: block;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-text-light);
  letter-spacing: 0;
  white-space: nowrap;
}

.config-chip_active .config-chip__delta {
  color: var(--color-text);
  opacity: 0.85;
}

.config-detail-header {
  cursor: pointer;
  user-select: none;
}

.config-detail-header:hover .config-detail-label {
  color: var(--color-text);
}

.config-detail-toggle:focus,
.config-detail-toggle:focus-visible,
.cfg-section__header_toggle:focus,
.cfg-section__header_toggle:focus-visible {
  outline: none;
  box-shadow: none;
}

.config-summary__value {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
}

.config-total-price {
  color: inherit;
}

.cfg-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  flex-direction: row;
  background: var(--color-white);
  box-sizing: border-box;
}

.cfg-modal[aria-hidden="false"] {
  display: flex;
}

.cfg-modal__image {
  flex: 0 0 50%;
  width: 50%;
  background: var(--color-bg-header);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5% 0;
  box-sizing: border-box;
}

.cfg-modal__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cfg-modal__side {
  flex: 0 0 50%;
  width: 50%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cfg-modal__topbar {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
  padding: 0 20px;
  gap: 12px;
}

.cfg-modal__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--color-text-light);
  padding: 4px 0;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  white-space: nowrap;
}
.cfg-modal__close-icon {
  font-size: 20px;
  line-height: 1;
}
.cfg-modal__close:hover {
  color: var(--color-primary);
}
/* Кнопка «Поделиться сборкой» — иконка-стрелка в топбаре, рядом с «Закрыть». */
.cfg-modal__share {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-text-light);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.cfg-modal__share:hover {
  color: var(--color-primary);
  background: rgba(0, 0, 0, 0.05);
}
.cfg-modal__share.is-copied {
  color: var(--color-primary);
}
.cfg-modal__share.is-loading {
  opacity: 0.5;
  pointer-events: none;
}
/* Тост подтверждения копирования ссылки на сборку. */
.dv-share-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 12px);
  z-index: 10000;
  max-width: 90vw;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--color-text-primary);
  color: #fff;
  font: 500 14px/1.3 var(--font-main);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.dv-share-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cfg-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  padding: 16px 0;
  margin-top: 0;
}

.cfg-stepper__step {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s;
}

.cfg-stepper__step_active {
  opacity: 1;
}

.cfg-stepper__num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-bg-header);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-light);
  flex-shrink: 0;
  transition: all 0.2s;
}

.cfg-stepper__step_active .cfg-stepper__num {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.cfg-stepper__label {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--color-text);
}

.cfg-stepper__step_active .cfg-stepper__label {
  font-weight: 700;
  color: var(--color-text);
}

.cfg-stepper__line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
  margin: 0 8px;
  min-width: 12px;
}

.cfg-modal__params {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 24px;
}

.cfg-modal__params .config-step {
  display: none;
  padding: 0;
}

.cfg-modal__params .config-step_active {
  display: block;
}

.cfg-modal__params .config-detail-item {
  border-bottom: 1px solid var(--color-border);
  padding: 24px 0;
}

.cfg-modal__params .config-detail-item:last-child {
  border-bottom: none;
}

.cfg-modal__params .config-detail-options.is-open {
  padding: 24px 0;
}

.cfg-modal__params .config-item__body:not([hidden]) {
  padding: 24px 0;
}

/* Подвал переносится, когда не помещается в строку.
   Цена и две кнопки требуют ~690px, и на правой колонке уже этого (ноутбук
   1024–1280px, окно конфигуратора у менеджера) кнопка «Выбрать погонаж»
   уезжала за край без всякой прокрутки. Перенос — страховка: пока места
   хватает, всё остаётся одной строкой. */
.cfg-modal__footer {
  border-top: 1px solid var(--color-border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
  background: var(--color-white);
}

.cfg-modal__price {
  font-size: 15px;
  color: var(--color-text-light);
  white-space: nowrap;
}

.cfg-modal__price strong {
  color: var(--color-text);
  font-size: 18px;
}

.cfg-modal__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;   /* после переноса кнопки остаются прижатыми вправо */
}

/* «Прислать расчёт» — мягкий захват: ссылка под ценой + всплывающая форма (телефон). */
.cfg-modal__price-row { white-space: nowrap; }
.cfg-modal__calc { position: relative; margin-top: 3px; }
.cfg-modal__calc-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: 500 13px/1.2 var(--font-main);
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.cfg-modal__calc-toggle:hover { color: var(--color-accent); }
.cfg-modal__calc-popover {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 40;
  width: 300px;
  max-width: 78vw;
  box-sizing: border-box;
  padding: 16px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* Предок .cfg-modal__price задаёт white-space:nowrap — гасим, иначе текст
     согласия и хинт не переносятся и вылезают за рамки формы. */
  white-space: normal;
  text-align: left;
}
.cfg-modal__calc-hint {
  margin: 0 0 2px;
  font: 400 12px/1.4 var(--font-main);
  color: var(--color-text-light);
  white-space: normal;
}
.cfg-modal__calc-input {
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: 400 14px var(--font-main);
  color: var(--color-text);
  background: #fff;
}
.cfg-modal__calc-input:focus { outline: none; border-color: var(--color-primary); }
.cfg-modal__calc-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font: 400 11px/1.4 var(--font-main);
  color: var(--color-text-light);
  cursor: pointer;
}
.cfg-modal__calc-consent input {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--color-accent);
}
.cfg-modal__calc-consent span { min-width: 0; overflow-wrap: anywhere; }
.cfg-modal__calc-consent a { color: var(--color-text); text-decoration: underline; }
.cfg-modal__calc-send { width: 100%; justify-content: center; margin-top: 2px; }

.cfg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 24px;
  white-space: nowrap;
  transition: all 0.2s;
}
.cfg-btn__icon {
  flex-shrink: 0;
}

.cfg-btn_outline {
  background: transparent;
  border: 1.5px solid var(--color-text-primary, #1A1A1A);
  color: var(--color-text-primary, #1A1A1A);
}

.cfg-btn_outline:hover {
  border-color: var(--color-accent, #8C1F3B);
  color: var(--color-accent, #8C1F3B);
}

.cfg-btn_fill {
  background: var(--color-accent, #8C1F3B);
  color: var(--color-white);
  border: 1.5px solid var(--color-accent, #8C1F3B);
}

.cfg-btn_fill:hover {
  background: var(--color-accent-hover, #6E1630);
  border-color: var(--color-accent-hover, #6E1630);
}

.cfg-section {
  margin-bottom: 4px;
}

.cfg-section__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  padding: 16px 24px 4px;
  margin: 0;
}

.cfg-section__header {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.cfg-section_active > .cfg-section__header,
.cfg-section_active [data-section-toggle] {
  background: transparent;
  border-bottom-color: var(--color-border);
}

.cfg-section__header_toggle {
  cursor: pointer;
}

.cfg-section__body {
  max-height: 0;
  padding: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.25s ease,
    margin 0.25s ease,
    opacity 0.25s ease;
  border-bottom: none;
}

.cfg-section__body.is-open {
  /* max-height: none — тело секции занимает натуральную высоту в потоке и толкает
     следующий пункт вниз. Фиксированный кап (5000px) при высоком содержимом
     (много покрытий/цветов) + overflow:visible приводил к наезду на след. секцию (4.2). */
  max-height: none;
  padding: 32px 0 12px;
  opacity: 1;
  visibility: visible;
  overflow: visible;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  border-bottom: 1px solid var(--color-border);
}

.cfg-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  text-align: center;
  min-width: 0;
}

.cfg-item:last-child {
  border-bottom: none;
}

.cfg-item__thumb {
  width: 80px;
  height: 80px;
  background: var(--color-bg-header);
  border: none;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
}

.cfg-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cfg-item {
  position: relative;
}
.cfg-item:hover .cfg-item__zoom {
  display: block;
}
.cfg-item__zoom {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 250px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  z-index: 10100;
  pointer-events: none;
  background: #fff;
}
.cfg-item__zoom.is-visible {
  display: block;
}
.cfg-item__zoom:not(.cfg-item__zoom_below) {
  bottom: calc(100% + 8px);
  top: auto;
}
.cfg-item__zoom.cfg-item__zoom_below {
  top: calc(100% + 8px);
  bottom: auto;
}
.cfg-item__zoom img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cfg-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
}

.cfg-item__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.cfg-item__spec {
  font-size: 12px;
  color: var(--color-text-light);
}

.cfg-item__price-display {
  font-size: 12px;
  color: var(--color-text-light);
}

.cfg-item__qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
}

.cfg-qty-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 17px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.cfg-qty-btn:hover {
  background: rgba(140, 31, 59, 0.07);
  color: var(--color-primary);
}

.cfg-qty-input {
  width: 36px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  padding: 4px 0;
  font-size: 14px;
  font-family: var(--font-main);
  color: var(--color-text);
  background: transparent;
  -moz-appearance: textfield;
}

.cfg-qty-input::-webkit-outer-spin-button,
.cfg-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.cfg-item__price {
  text-align: right;
  min-width: 70px;
}

.cfg-item__price .config-item__amount {
  display: inline;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.cfg-item__currency {
  font-size: 12px;
  color: var(--color-text-light);
}

.cfg-modal__back-btn,
.cfg-modal__door-info {
  display: none;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .cfg-modal[aria-hidden="false"] {
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cfg-modal__side { display: contents; }
  .cfg-modal__topbar { order: 1; }
  .cfg-modal__image {
    order: 2;
    width: 100%;
    height: 55vh;
    flex: none;
    background: #EFEDEA;
    padding: 24px;
    box-sizing: border-box;
  }
  .cfg-modal__image img { max-width: 100%; max-height: 100%; object-fit: contain; }
  .cfg-modal__door-info { display: block; order: 3; padding: 20px 24px 0; }
  .cfg-modal__params { order: 4; flex: none; overflow: visible; height: auto; }
  .cfg-modal__footer {
    order: 5;
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
  }
  .cfg-modal__actions { display: flex; flex-direction: column; gap: 8px; width: 100%; }
  .cfg-btn { width: 100%; }
  .cfg-modal__share { align-self: flex-end; }
  .cfg-modal__calc-popover { left: auto; right: 0; }
  .cfg-modal__price { text-align: center; }
  .cfg-stepper__step:not(.cfg-stepper__step_active),
  .cfg-stepper__line { display: none; }
  .cfg-stepper__label { display: none; }
  .cfg-modal__topbar .cfg-stepper { justify-content: center; }
  .cfg-modal__back-btn { display: none; }
  .cfg-modal[data-step="molding"] .cfg-modal__back-btn,
  .cfg-modal[data-step="hardware"] .cfg-modal__back-btn { display: flex; }
  .cfg-modal__close-text { display: none; }
}

@media (max-width: 768px) {

  .cfg-modal[aria-hidden="false"] {
    display: flex !important;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    /* На мобильной версии верхний отступ (под админ-панель Битрикс) не нужен (4.4). */
    padding-top: 0;
  }
  .cfg-modal__params {
    max-width: 100%;
    box-sizing: border-box;
  }
  .cfg-modal__topbar { order: 1; }
  .cfg-modal__image { order: 2; }
  .cfg-modal__door-info { order: 3; }
  .cfg-modal__params { order: 4; }
  .cfg-modal__footer { order: 5; }

  .cfg-modal__image {
    width: 100%;
    height: 55vh;
    flex: none;
    position: static;
    background: #EFEDEA;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
  }
  .cfg-modal__image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
  }

  .cfg-modal__side {
    display: contents;
  }

  .cfg-modal__topbar {
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 48px;
    border-bottom: 1px solid var(--color-border);
    gap: 8px;
    flex-shrink: 0;
  }

  .cfg-stepper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
    padding: 0;
  }
  .cfg-stepper__step:not(.cfg-stepper__step_active),
  .cfg-stepper__line {
    display: none;
  }
  .cfg-stepper__step_active {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 1;
  }
  .cfg-stepper__num {
    width: 24px;
    height: 24px;
    font: 600 12px/24px 'Manrope';
    text-align: center;
    border-radius: 50%;
    border: 1.5px solid var(--color-text);
    color: var(--color-text);
    flex-shrink: 0;
  }
  .cfg-stepper__step_active .cfg-stepper__num {
    background: #fff;
    border-color: var(--color-text);
    color: var(--color-text);
  }
  .cfg-stepper__label {
    display: none;
  }
  /* Название текущего этапа рядом с номером — иначе одинокая цифра смотрится
     смещённой. Пара «② Погонаж» читается как единый центрированный заголовок. */
  .cfg-stepper__step_active .cfg-stepper__label {
    display: inline;
    font: 600 14px/1.2 'Manrope';
    color: var(--color-text);
    white-space: nowrap;
  }

  .cfg-modal__back-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    color: var(--color-text);
  }
  .cfg-modal[data-step="molding"] .cfg-modal__back-btn,
  .cfg-modal[data-step="hardware"] .cfg-modal__back-btn {
    display: flex;
  }

  .cfg-modal__close {
    font: 400 13px/1 'Manrope';
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    flex-shrink: 0;
  }
  .cfg-modal__close-text { display: none; }
  .cfg-modal__close-icon { font-size: 22px; }

  .cfg-modal__topbar .cfg-stepper {
    justify-content: center;
  }

  .cfg-modal__door-info {
    display: block;
    padding: 20px 16px 0;
    flex-shrink: 0;
  }
  .cfg-modal__door-name {
    font: 600 18px/1.3 'Manrope';
    color: var(--color-text);
    margin: 0 0 4px;
  }
  .cfg-modal__door-price {
    font: 400 15px/1.3 'Manrope';
    color: var(--color-text-light);
    margin: 0;
  }

  .cfg-modal__params {
    flex: none;
    overflow: visible;
    height: auto;
    padding: 0 16px;
  }

  .config-detail-header {
    /* padding убран (задача 4.1). */
    padding: 0;
    border-bottom: none;
    cursor: pointer;
  }
  .config-detail-label {
    font: 400 15px/1.4 'Manrope';
    color: var(--color-text-light);
  }
  .config-detail-value {
    font: 600 15px/1.4 'Manrope';
    color: var(--color-text);
  }
  .config-detail-toggle {
    width: 22px;
    height: 22px;
    background-size: 22px 22px;
  }
  .config-detail-toggle::before {
    content: none;
    display: none;
  }

  .config-detail-options.is-open {
    padding: 16px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .cfg-coatings-group { flex: 1 1 100%; }
  .config-chip {
    height: 40px;
    padding: 0 14px;
    font: 400 14px/1 'Manrope';
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text);
    white-space: nowrap;
    box-sizing: border-box;
  }
  .config-chip_active {
    border-color: var(--color-text);
    font-weight: 600;
  }

  .cfg-section__header {
    padding: 18px 0;
    border-bottom: 1px solid var(--color-border);
  }
  .cfg-section__body.is-open {
    padding: 16px 0;
  }

  .cfg-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    flex: none;
    min-width: 0;
    max-width: 100%;
    text-align: left;
  }
  .cfg-item__thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }
  .cfg-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .cfg-item__info {
    flex: 1;
    min-width: 0;
    align-items: flex-start;
  }
  .cfg-item__name {
    font: 600 14px/1.3 'Manrope';
    display: block;
    margin-bottom: 4px;
  }
  .cfg-item__spec {
    font: 400 12px/1.4 'Manrope';
    color: var(--color-text-light);
  }

  .cfg-item__qty-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
  }
  .cfg-item__qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: 6px;
  }
  .cfg-qty-btn {
    width: 32px;
    height: 32px;
    font: 400 18px/1 'Manrope';
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cfg-qty-input {
    width: 32px;
    height: 32px;
    text-align: center;
    font: 600 14px/1 'Manrope';
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    background: transparent;
  }
  .cfg-item__price {
    font: 600 14px/1 'Manrope';
    color: var(--color-text);
    white-space: nowrap;
  }
  .cfg-item__price-total {
    font: 400 13px/1 'Manrope';
    color: var(--color-text-muted);
    text-decoration: line-through;
    white-space: nowrap;
  }

  .cfg-item__zoom {
    display: none !important;
  }

  .cfg-section__title {
    padding: 12px 16px 2px;
  }

  .cfg-radio-group {
    padding: 8px 0;
    gap: 8px;
  }

  .cfg-modal__footer {
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: #fff;
    border-top: 1px solid var(--color-border);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .cfg-modal__price {
    font: 400 14px/1.3 'Manrope';
    color: var(--color-text-light);
    text-align: center;
  }
  .cfg-modal__price strong {
    font-size: 18px;
    color: var(--color-text);
  }
  /* Действия (Grid — детерминированно, без зависимости от ширины текста кнопок):
     строка 1 = [поделиться 48px][Добавить в корзину], строка 2 = основная кнопка
     на всю ширину. minmax(0,1fr) не даёт содержимому распирать колонку. */
  .cfg-modal__actions {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }
  .cfg-modal__share {
    width: auto;
    height: auto;
    align-self: stretch;
    border: 1.5px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
  }
  .cfg-modal__actions .cfg-btn_outline {
    width: auto;
    min-width: 0;
  }
  .cfg-modal__actions .cfg-btn_fill {
    grid-column: 1 / -1;
    width: auto;
  }
  .cfg-btn {
    width: 100%;
    padding: 16px;
    font: 600 13px/1 'Manrope';
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    border-radius: 6px;
  }
  .cfg-btn_outline {
    background: transparent;
    border: 1.5px solid var(--color-text);
    color: var(--color-text);
  }
  .cfg-btn_fill {
    background: var(--color-primary);
    color: #fff;
    border: none;
  }
  
}

.req-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.req-modal[aria-hidden="true"] {
  display: none;
}
.req-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.req-modal__panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: var(--color-white);
  padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 44px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
}
.req-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-light);
  font-size: 16px;
  transition: color 0.15s;
}
.req-modal__close:hover {
  color: var(--color-primary);
}
.req-modal__title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-weight: 550;
  font-size: clamp(20px, 3vw, 26px);
}
.req-modal__subtitle {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.5;
}
.req-modal__form {
  display: grid;
  gap: 14px;
}
.req-modal__field {
  display: grid;
  gap: 6px;
}
.req-modal__label {
  font-size: 13px;
  color: var(--color-text-light);
  font-weight: 500;
}
.req-modal__input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font-main);
  border: 1px solid var(--color-border);
  background: var(--color-bg-header);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.req-modal__input:focus {
  border-color: var(--color-primary);
}
.req-modal__error {
  font-size: 13px;
  color: #c0392b;
  min-height: 16px;
}
.req-modal__submit {
  width: 100%;
  padding: 14px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 14px;
  font-family: var(--font-main);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 4px;
}
.req-modal__submit:hover {
  opacity: 0.88;
}
.req-modal__success {
  padding: 16px 0 8px;
  text-align: center;
}
.req-modal__success-icon {
  font-size: 40px;
  color: #27ae60;
  line-height: 1;
  margin-bottom: 12px;
}
.req-modal__success-text {
  font-size: 15px;
  color: var(--color-text);
}

.cfg-item_active {
  border: 1px solid var(--color-primary);
  border-radius: 12px;
  background: #fdfdfd;
}

.cfg-item__price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.cfg-item__old-price {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .section__cards {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 20px; 
    
    padding-left: 16px;
    padding-right: 16px;
    margin-left: -16px;
    margin-right: -16px;
  }

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

  .section__cards {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .section__cards > .card {
    scroll-snap-align: start;
    min-width: 240px; 
    flex: 0 0 auto;
  }
}

.blog {
  background: #f4eff2;
  padding: clamp(60px, 8vw, 120px) 0;
  overflow: hidden;
}

.blog__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
}

.blog__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 20px;
}

.blog__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  max-width: 500px;
}

.blog__tabs {
  display: flex;
  gap: 24px;
}

.blog__tab {
  font-size: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  color: #666;
}

.blog__tab.is-active,
.blog__tab:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.blog__slider-wrap {
  position: relative;
}

.blog__carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  
  scrollbar-width: none;
}
.blog__carousel::-webkit-scrollbar {
  display: none;
}

.blog-card {
  flex: 0 0 80%;
  max-width: 400px;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .blog-card {
    flex: 0 0 30%;
  }
}

.blog-card__img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 16px;
  background: #eaeaea;
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.blog-card__meta {
  font-size: 12px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
}

.blog-card__title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog__nav-btn {
  position: absolute;
  top: 40%;
  right: -20px;
  width: 48px;
  height: 48px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 0;
  cursor: pointer;
  display: none;
}
@media (min-width: 1024px) {
  .blog__nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.lead {
  margin-bottom: 60px;
}

.lead__panorama {
  width: 100%;
  height: clamp(200px, 30vw, 300px);
  background: url("/css/../images/news-1.png") center/cover;
}

.lead__container {
  max-width: 1000px;
  margin: -60px auto 0;
  background: #fff;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 60px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  position: relative;
  text-align: center;
}

.lead__title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 16px;
}

.lead__subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 40px;
}

.lead__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .lead__form {
    flex-direction: row;
  }
}

.lead__input {
  flex: 1;
  padding: 16px 20px;
  border: 1px solid var(--color-border);
  font-family: var(--font-main);
  font-size: 16px;
  outline: none;
}
.lead__input:focus {
  border-color: var(--color-primary);
}

.lead__submit {
  padding: 16px 32px;
  white-space: nowrap;
}

.lead__policy {
  font-size: 12px;
  color: #888;
}
.lead__policy a {
  color: var(--color-primary);
  text-decoration: underline;
}

.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-slider__slides {
  position: relative;
}

.hero-slider__slide {
  display: none;
  width: 100%;
}

.hero-slider__slide.is-active {
  display: block;
  animation: heroFadeIn 0.6s ease;
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-slider__nav[hidden] {
  display: none;
}

.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-text);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.hero-slider__arrow:hover {
  background: rgba(255, 255, 255, 1);
}

.hero-slider__arrow_prev {
  left: 16px;
}

.hero-slider__arrow_next {
  right: 16px;
}

.hero-slider__dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s;
}

.hero-slider__dot.is-active {
  background: #fff;
}

.hero-new {
  display: flex;
  flex-direction: column;
  width: 100%;
}
@media (min-width: 768px) {
  .hero-new {
    flex-direction: row;
    min-height: clamp(500px, 70vh, 800px);
  }
}

.hero-new__col {
  position: relative;
  overflow: hidden;
}

.hero-new__col_left {
  flex: 1;
  display: flex;
  align-items: flex-end;
  min-height: 400px;
}

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

.hero-new__col_left::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 60%);
  z-index: 1;
}

.hero-new__content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: clamp(30px, 5vw, 60px) clamp(20px, 4vw, 60px);
  max-width: 600px;
}
@media (min-width: 768px) {
  .hero-new__content {
    max-width: 50%;
  }
}

.hero-new__subtitle {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.85;
}

.hero-new__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 500;
  margin-bottom: 32px;
}

.hero-new__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-new__col_right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f3ef;
  min-height: 350px;
  padding: 40px;
}
@media (min-width: 768px) {
  .hero-new__col_right {
    flex: 0 0 45%;
    min-height: auto;
  }
}

.hero-new__door-img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}

.promo {
  display: flex;
  flex-direction: column;
  width: 100%;
}
@media (min-width: 768px) {
  .promo {
    flex-direction: row;
    min-height: 560px;
  }
}

.promo_mirrored {
  flex-direction: column;
}
@media (min-width: 768px) {
  .promo_mirrored {
    flex-direction: row;
  }
}

.promo__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 60px);
}
@media (min-width: 768px) {
  .promo__content {
    flex: 0 0 40%;
  }
}

.promo__content_beige {
  background: #f5f2ed;
  color: #333;
}

.promo__content_dark {
  background: #f0e4e7;
  color: #333;
}

.promo__content_pink {
  background: #fdf6f7;
  color: #333;
}

.promo__title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.5vw, 40px);
  margin-bottom: 20px;
  font-weight: 600;
}

.promo__text {
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 420px;
  color: #555;
}

.promo__btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.promo__images {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media (min-width: 768px) {
  .promo__images {
    flex: 0 0 60%;
  }
}

.promo__img-wrap {
  overflow: hidden;
}

.promo__img-wrap_top,
.promo__img-wrap_bottom {
  min-height: 200px;
}

.promo__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo__image-wrap {
  flex: 1;
  overflow: hidden;
}
@media (min-width: 768px) {
  .promo__image-wrap {
    flex: 0 0 50%;
  }
}

.promo-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.promo-slider__slides {
  position: relative;
}

.promo-slider__slide {
  display: none;
  width: 100%;
}

.promo-slider__slide.is-active {
  display: flex;
  flex-direction: column;
  animation: promoFadeIn 0.6s ease;
}

@media (min-width: 768px) {
  .promo-slider__slide.is-active {
    flex-direction: row;
    min-height: 560px;
    height: 560px;
  }
}

@keyframes promoFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.promo-slider__slide .promo__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 60px);
}
@media (min-width: 768px) {
  .promo-slider__slide .promo__content {
    flex: 0 0 40%;
  }
}

.promo-slider__slide .promo__images {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media (min-width: 768px) {
  .promo-slider__slide .promo__images {
    flex: 0 0 60%;
  }
}

.promo-slider__slide .promo__img-wrap {
  overflow: hidden;
  min-height: 200px;
}

.promo-slider__slide .promo__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo-slider__dots {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.promo-slider__dot {
  width: 24px;
  height: 3px;
  border-radius: 0;
  border: none;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s;
}

.promo-slider__dot.is-active {
  background: var(--color-primary);
}

.promo-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.promo-slider__arrow:hover {
  background: rgba(255, 255, 255, 1);
}

.promo-slider__arrow_prev {
  left: 16px;
}

.promo-slider__arrow_next {
  right: 16px;
}

@media (max-width: 768px) {
  .promo-slider__arrow {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
  .promo-slider__arrow_prev {
    left: 8px;
  }
  .promo-slider__arrow_next {
    right: 8px;
  }
}

.panorama-banner {
  width: 100%;
  overflow: hidden;
  max-height: clamp(250px, 35vw, 500px);
}
.panorama-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lead {
  padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 6vw, 80px);
}

.lead__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.lead__eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 16px;
}

.lead__title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.5vw, 36px);
  margin-bottom: 16px;
  line-height: 1.3;
}

.lead__subtitle {
  font-size: 15px;
  color: #666;
  margin-bottom: 40px;
}

.lead__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}
@media (min-width: 768px) {
  .lead__form {
    flex-direction: row;
  }
}

.lead__input {
  flex: 1;
  padding: 16px 20px;
  border: 1px solid var(--color-border);
  font-family: var(--font-main);
  font-size: 16px;
  outline: none;
}
.lead__input:focus {
  border-color: var(--color-primary);
}

.lead__submit {
  padding: 16px 32px;
  white-space: nowrap;
}

.lead__policy {
  font-size: 12px;
  color: #888;
}
.lead__policy a {
  color: var(--color-primary);
  text-decoration: underline;
}

.appeal-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.appeal-popup[hidden] { display: none; }
.appeal-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.appeal-popup__window {
  position: relative;
  background: #fff;
  width: min(480px, calc(100vw - 32px));
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 24px;
}
.appeal-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}
.appeal-popup__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 24px;
}
.appeal-popup__group {
  margin-bottom: 16px;
}
.appeal-popup__label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}
.appeal-popup__input,
.appeal-popup__textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
}
.appeal-popup__textarea {
  resize: vertical;
}
.appeal-popup__btn {
  width: 100%;
  margin-top: 8px;
}

.collection-hero {
  display: flex;
  flex-direction: column;
  width: 100%;
}
@media (min-width: 768px) {
  .collection-hero {
    flex-direction: row;
    min-height: 500px;
  }
}
.collection-hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(30px, 5vw, 60px) clamp(20px, 4vw, 60px);
  background: #f5f2ed;
}
@media (min-width: 768px) {
  .collection-hero__content {
    flex: 0 0 40%;
  }
}
.collection-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  margin: 16px 0 0;
}
.collection-hero__image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f7f4;
  min-height: 400px;
  padding: 40px;
}
@media (min-width: 768px) {
  .collection-hero__image {
    flex: 0 0 60%;
    min-height: auto;
  }
}
.collection-hero__image img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}
.collection-products {
  padding: clamp(30px, 5vw, 60px) clamp(20px, 4vw, 60px);
}
.card__variant {
  font-size: 12px;
  color: var(--color-text-light);
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

html {
  font-size: clamp(14px, 1.2vw, 16px);
}
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  /* overflow-x:hidden на body (не на html!) — гасит горизонтальный скролл, но
     НЕ ломает position: sticky (переполнение body проксируется на вьюпорт). */
  overflow-x: hidden;
}
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  /* Мин. 12px по бокам на мобиле (было 16) — как у остальных страниц (--layout-pad):
     на телефоне контент шире, сетка не выглядит ужатой. Десктоп не меняется (3vw→40px). */
  padding: 0 clamp(12px, 3vw, 40px);
}

[hidden] {
  display: none !important;
}

.coatings-popup {
  position: absolute;
  z-index: 100;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 420px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  padding: 16px;
}
.coatings-popup__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.coatings-popup__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.coatings-popup__close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #888;
  padding: 0 4px;
}
.coatings-popup__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}
.coatings-popup__swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: none;
  cursor: pointer;
  transition: border-color .15s;
}
.coatings-popup__swatch:hover {
  border-color: #ccc;
}
.coatings-popup__swatch_active {
  border-color: var(--color-accent, #8C1F3B);
}
.coatings-popup__color {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.1);
}
.coatings-popup__name {
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  word-break: break-word;
  color: #333;
}

.cfg-coatings-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}
.cfg-coating-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: none;
  cursor: pointer;
  transition: border-color .15s;
  width: 100px;
  flex-shrink: 0;
  position: relative;
}
/* Ховер — только у НЕвыбранного свотча: иначе .cfg-coating-swatch:hover (специфичнее)
   перебивал бордовую обводку выбранного, и выбор «пропадал» под курсором. */
.cfg-coating-swatch:hover:not(.cfg-coating-swatch_active) {
  border-color: #ccc;
}
.cfg-coating-swatch_active {
  border-color: var(--color-accent, #8C1F3B);
  box-shadow: 0 0 0 1px var(--color-accent, #8C1F3B);
}
.cfg-coating-swatch__color {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.08);
  background-size: cover;
  background-position: center;
}

.cfg-coating-swatch_custom .cfg-coating-swatch__color {
  background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red);
  border: 1px solid var(--color-border, rgba(0,0,0,.12));
}

.cfg-coating-swatch__name {
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  word-break: break-word;
  color: #333;
}

.cfg-swatch-zoom {
  display: none;
  position: fixed;
  width: 200px;
  height: 250px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  z-index: 10100;
  pointer-events: none;
  background-size: cover;
  background-position: center;
}
.cfg-swatch-zoom.is-visible {
  display: block;
}

/* Цвет фурнитуры: тело секции НЕ участвует в 4-колоночной сетке .is-open.
   Его единственный ребёнок — .cfg-color-grid — должен занимать всю ширину,
   иначе флекс-плитки зажимаются в первую колонку грида (1/4 ширины на ПК,
   1/2 на мобилке) и вылезают за аккордеон. 3 класса → бьёт .is-open на всех
   брейкпоинтах (в т.ч. mobile @media repeat(2)) вне зависимости от порядка. */
.cfg-section__body.cfg-section__body_flow.is-open {
  display: block;
}

.cfg-color-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.cfg-color-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 2px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: none;
  cursor: pointer;
  transition: border-color .15s;
  /* one row on desktop: tiles share the width and shrink so they never
     overflow the accordion/screen even with long colour labels */
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  box-sizing: border-box;
  position: relative;
}
.cfg-color-tile:hover {
  border-color: #ccc;
}
.cfg-color-tile_active {
  border-color: var(--color-accent, #8C1F3B);
}
.cfg-color-tile__swatch {
  display: block;
  width: 44px;
  height: 44px;
  max-width: none;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.08);
  overflow: hidden;
  flex-shrink: 0;
}
.cfg-color-tile__swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cfg-color-tile__label {
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  color: #333;
  max-width: 100%;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Планшет: цвета фурнитуры по 5 в ряд с переносом. */
@media (min-width: 769px) and (max-width: 1024px) {
  .cfg-color-grid {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
  }
  .cfg-color-tile {
    flex: 0 0 calc(20% - 8px);
  }
}

.cfg-item__thumb-none {
  font: 500 32px/1 var(--font-main);
  color: var(--color-text-light, #999);
}

.cfg-item__thumb:empty,
.cfg-item__thumb[aria-hidden="true"]:not(:has(img)) {
  padding: 16px;
  min-width: 80px;
  min-height: 80px;
  box-sizing: border-box;
  background: #f5f5f5;
  border-radius: 0;
}

.cfg-radio-group .cfg-item {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 6px;
  transition: border-color .15s;
}
.cfg-radio-group .cfg-item:hover {
  border-color: #ccc;
}
.cfg-radio-group .cfg-item_active {
  border-color: var(--color-accent, #8C1F3B);
}

.cfg-glazing-swatch {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 0;
  border: 1px solid rgba(0,0,0,.08);
  vertical-align: middle;
  margin-right: 4px;
}

.cfg-dep-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-text, #232323);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  opacity: 0;
  transition: opacity .3s, transform .3s;
  z-index: 10001;
  pointer-events: none;
  max-width: 420px;
  text-align: center;
}
.cfg-dep-toast_show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .header__level_1 {
    display: none !important;
  }
  .header__level_2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 56px;
    position: relative;
  }
  .header__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    flex-shrink: 0;
  }
  .header__burger-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--color-text);
  }
  .header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .header__logo img {
    width: 120px;
    height: auto;
  }
  .header__phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--color-text);
    /* Отступ между иконкой личного кабинета и телефоном (задача 3.3). */
    margin-left: 16px;
  }
  /* 19.10.2026: слева бургер и кабинет, справа поиск и звонок. Поиск прижимает
     правую пару к краю (margin-left: auto), кабинет стоит сразу за бургером. */
  .header__profile-icon,
  .header__search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 0;
    padding: 0;
    background: none;
    border: 0;
    flex-shrink: 0;
    color: var(--color-text);
  }
  .header__profile-icon { margin-left: 16px; }
  .header__search-icon { margin-left: auto; }
  .header__nav,
  .header__phone,
  .header__actions {
    display: none !important;
  }
}
@media (min-width: 769px) {
  .header__burger,
  .header__phone-icon,
  .header__profile-icon,
  .header__search-icon {
    display: none;
  }
}

.mob-menu {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: #fff;
  display: none;
  overflow: hidden;
}
.mob-menu[aria-hidden="false"] {
  display: block;
}
.mob-panel {
  position: absolute;
  inset: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mob-panel_active {
  transform: translateX(0);
}
.mob-panel_behind {
  transform: translateX(-30%);
}
.mob-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  min-height: 52px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.mob-panel__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  padding: 0;
}
.mob-panel__title {
  font: 500 16px/1 'Manrope', sans-serif;
  color: var(--color-text);
}
.mob-panel__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-light);
  padding: 0;
}
.mob-panel__search {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.mob-search-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 8px 0;
  font: 400 16px/1.4 'Manrope', sans-serif;
  color: var(--color-text);
  background: transparent;
  outline: none;
  box-sizing: border-box;
}
.mob-search-input::placeholder {
  color: var(--color-text-muted);
}
/* Те же общие правила, что ломали поиск на компьютере (см. .search-overlay):
   кольцо фокуса и скругление 6px у поля, которое нарисовано одной нижней линией.
   Фокус — той же линией, бордовой. */
/* !important — вынужденно: общее скругление полей `input:not(...)×4` весит 0,4,1,
   и ослаблять его ради одного поля значит менять скругление всех полей сайта. */
.mob-panel__search .mob-search-input { border-radius: 0 !important; }
.mob-panel__search .mob-search-input:focus-visible { outline: none; border-bottom-color: var(--color-accent); }
.mob-menu__city {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 20px 8px;
  font: 400 14px/1.4 'Manrope', sans-serif;
  color: var(--color-text-light);
  flex-shrink: 0;
}
.mob-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mob-nav__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  font: 400 17px/1.3 'Manrope', sans-serif;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.mob-nav__item:first-child {
  border-top: 1px solid var(--color-border);
}
.mob-nav__chevron {
  flex-shrink: 0;
  color: var(--color-text-muted);
}
.mob-menu__footer {
  padding: 32px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
}
.mob-menu__cta {
  width: 100%;
  padding: 18px;
  background: var(--color-primary);
  color: #fff;
  font: 600 13px/1 'Manrope', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  margin-bottom: 32px;
}
.mob-menu__contacts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mob-menu__contacts-label {
  margin: 0 0 8px;
  font: 500 11px/1 'Manrope', sans-serif;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}
.mob-menu__phone {
  font: 600 24px/1.2 'Manrope', sans-serif;
  color: var(--color-text);
  text-decoration: none;
}
.mob-menu__hours {
  margin: 0 0 16px;
  font: 400 13px/1.4 'Manrope', sans-serif;
  color: var(--color-text-light);
}
.mob-menu__email-label {
  margin: 0;
  font: 400 13px/1.4 'Manrope', sans-serif;
  color: var(--color-text-light);
}
.mob-menu__email {
  font: 500 16px/1.4 'Manrope', sans-serif;
  color: var(--color-text);
  text-decoration: none;
}
.mob-menu__social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.mob-menu__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  
  .section__cards_wrap {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    scroll-snap-type: none !important;
    padding-left: 12px;
    padding-right: 12px;
    margin-left: 0;
    margin-right: 0;
  }
  .section__cards_wrap > .card {
    min-width: 0 !important;
    flex: none !important;
    scroll-snap-align: none !important;
  }
  .catalog__grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    overflow-x: visible !important;
  }

  .card {
    background: transparent;
  }
  .card__image-wrap {
    background: transparent;
  }

  .card__info {
    padding: 8px 4px;
    gap: 2px;
  }
  .card__title {
    font-size: 13px;
  }
  .card__price {
    font-size: 13px;
  }

  .product__color {
    width: 38px;
    height: 38px;
  }
  .product__color_active {
    margin-right: 42px;
  }
  .product__color_more {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }
  .product__colors-overflow .product__color {
    width: 38px;
    height: 38px;
  }

  .cfg-coating-swatch {
    width: 72px;
  }
  .cfg-coating-swatch__color {
    width: 56px;
    height: 56px;
  }
  .cfg-coating-swatch__name {
    font-size: 10px;
  }

  .cfg-color-grid {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
  }
  /* Мобилка: по 3 цвета в ряд с переносом. */
  .cfg-color-tile {
    flex: 0 0 calc(33.333% - 8px);
  }
  .cfg-color-tile__swatch {
    width: 48px;
    height: 48px;
  }

  .cfg-section__body.is-open {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .cfg-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 6px;
    border-bottom: none;
    border-radius: 12px;
    max-width: 100%;
    min-width: 0;
  }
  .cfg-item__thumb {
    width: 80px;
    height: 80px;
  }
  .cfg-item__info {
    align-items: center;
  }

  .collection-card__info {
    padding: 10px;
  }
  .collection-card__title {
    font-size: 14px;
  }
}

.bottom-nav {
  display: none;
}
@media (max-width: 768px) {
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 400;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    background: #fff;
    border-top: 1px solid var(--color-border);
    padding: 4px 0 max(4px, env(safe-area-inset-bottom));
  }
  .bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Иконка с подписью занимала 36px по высоте — палец промахивается.
       Растягиваем сам пункт: зоны нажатия становятся смежными, иконки не двигаются. */
    flex: 1 1 0;
    min-height: 48px;
    gap: 2px;
    text-decoration: none;
    color: var(--color-text-light);
    font-size: 10px;
    font-family: var(--font-heading);
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
  }
  .bottom-nav__item.is-active {
    color: var(--color-primary);
  }
  .bottom-nav__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }
  .bottom-nav__label {
    line-height: 1;
  }
  
  body {
    padding-bottom: 64px;
  }
  
  body:has(.cfg-modal[aria-hidden="false"]) {
    padding-bottom: 0;
  }
  body:has(.cfg-modal[aria-hidden="false"]) .bottom-nav {
    display: none;
  }
}

.promo-slider {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.cfg-coating-swatch__color {
  border-color: #E9E9E9;
}

.cfg-coatings-group {
  margin-bottom: 16px;
}
/* Тип покрытия показан в заголовке графы («Покрытие • ПЭТ», #cfgCoatingKind),
   поэтому подпись группы с линией над свотчами не нужна. */
.cfg-coatings-group__title {
  display: none;
}
.cfg-coating-kind::before {
  content: "\00a0•\00a0";
}


.cfg-chip__price {
  display: block;
  font-size: 11px;
  color: var(--color-text-light);
  font-weight: 400;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .cart-item__door-section {
    gap: 12px;
  }
  .cart-item__info {
    min-width: 0;
  }
  .cart-item__title {
    font-size: 15px;
    word-break: break-word;
  }
}

[data-price-row="blade-surcharge"] {
  display: flex;
  justify-content: space-between;
  padding: 8px 24px;
  font-size: 14px;
}
[data-price-row="blade-surcharge"][hidden] {
  display: none;
}

.product__blade-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product__blade-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-text);
  background: transparent;
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.product__blade-btn:hover {
  border-color: #9C9B9A;
}
.product__blade-btn_active {
  border-color: var(--color-text);
  font-weight: 600;
}
.product__blade-corner {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
}
.product__blade-price {
  display: block;
  font-size: 12px;
  color: var(--color-text-light);
  font-weight: 400;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .cart-item {
    overflow: visible;
  }
  .cart-item__door-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cart-item__image-wrap {
    width: 100%;
    max-width: 200px;
    min-height: 140px;
    margin: 0 auto;
  }
  .cart-item__header {
    flex-direction: column;
    gap: 8px;
  }
  .cart-item__action-links {
    flex-wrap: wrap;
    gap: 8px;
  }
  .cart-item__props {
    grid-template-columns: 1fr;
  }
  .cart-item__qty-row {
    flex-wrap: wrap;
  }
}
@media (max-width: 480px) {
  .cart-item__door-section {
    grid-template-columns: 1fr;
  }
  .cart-item__image-wrap {
    max-width: 160px;
  }
}

.product__color_active {
  order: -1;
  margin-right: 26px;
}

.product__colors-overflow {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product__colors-overflow .product__colors-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product__colors-group__title {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: 100%;
}
.product__colors-overflow .product__colors-group .product__colors-group__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cfg-coating-swatch {
  position: relative;
  overflow: visible;
}

.home-page {
  background: #fff;
  color: #23272f;
  padding-bottom: 100px;
}

/* Единый вертикальный ритм между блоками главной — 100px (задача 3.3). */
.home-page > section {
  margin-top: 100px;
  margin-bottom: 0;
}
.home-page > section:first-child {
  margin-top: 0;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 50px;
  padding: 13px 31px;
  border: 0;
  border-radius: 0;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.home-btn_primary {
  background: var(--color-accent);
  color: #fff;
}

.home-btn_ghost {
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto 32px;
  padding: 0 20px;
}

.home-section-title,
.home-blog__title,
.home-promo__title,
.home-contact__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  color: #23272f;
}

.home-section-title {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
}

.home-section-link {
  color: #23272f;
  font-size: 16px;
  line-height: 44px;
  text-decoration: none;
}

.home-hero {
  position: relative;
  min-height: 740px;
  overflow: hidden;
}

.home-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 806px;
  object-fit: cover;
  /* Двери на фото справа — прижимаем кадр к правому краю (задача 1). */
  object-position: right center;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 18, 17, 0.62) 0%, rgba(20, 18, 17, 0.34) 45%, rgba(20, 18, 17, 0.05) 100%);
}

/* Контент первого экрана стоит на той же колонке, что шапка и подвал.
   Было: padding-left: max(24px, (100vw - 1440px)/2) — эта формула давала левый
   край БЕЗ --layout-pad, поэтому текст героя всегда оказывался на 40px левее
   логотипа и меню, на любой ширине экрана. */
.home-hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--layout-max, 1440px);
  margin: 0 auto;
  padding: clamp(120px, 13vw, 186px) var(--layout-pad, clamp(16px, 3vw, 40px)) 0;
}

.home-hero__eyebrow {
  margin: 0 0 8px;
  color: #fff;
  font-size: 16px;
  line-height: 25px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-hero__title {
  /* Заголовок помещается в 65% ширины экрана. */
  max-width: 65vw;
  /* Было 54px до лида и 0 после него: описание отрывалось от заголовка,
     который оно объясняет, и слипалось с кнопками. Группируем наоборот. */
  margin: 0 0 18px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(42px, 4.2vw, 72px);
  font-weight: 600;
  line-height: 1.05;
}

.home-hero__progress {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 155px;
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
}

.home-hero__progress span,
.home-promo__progress span {
  position: relative;
  display: block;
  width: 90px;
  height: 3px;
  overflow: hidden;
  border-radius: 100px;
  background: rgba(140, 31, 59, 0.1);
}

/* Полоса заполнения активного таба — ширину задаёт JS (rAF), всегда синхронна со сменой слайда. */
.home-promo__dot-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--color-accent);
}

.home-promo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 41.3%) 1fr;
  max-width: 1655px;
  min-height: 740px;
  
  margin: 22px auto 0;
  overflow: hidden;
}

.home-promo__body {
  position: relative;
  z-index: 1;
  align-self: center;
  min-height: 658px;
  /* padding-right = padding-left = 60px (задача 1.1). */
  padding: 156px 60px 80px 60px;
  background: #dfdfdf;
  border-radius: 4px;
}

.home-promo_fit .home-promo__body {
  background: #e7dbde;
}

/* Второй блок (промо-слайдер) — фиксированная высота серого контейнера,
   чтобы контент страницы не «прыгал» при авто-смене слайда (задача 1.1).
   Блок примерки (_fit) не трогаем — у него статичный контент. */
.home-promo:not(.home-promo_fit) .home-promo__body {
  height: 700px;
  min-height: 0;
}
@media (max-width: 640px) {
  .home-promo:not(.home-promo_fit) .home-promo__body {
    height: 500px;
  }
}

.home-promo__progress {
  position: absolute;
  top: 66px;
  /* Растянут по всей ширине контейнера (правый = левый паддинг body = 60px) — задача 1.2. */
  left: 60px;
  right: 60px;
  display: flex;
  gap: 20px;
}

.home-promo__progress span {
  /* Полосы делят ширину поровну; высота 5px, скругление максимальное — задача 1.1. */
  flex: 1;
  width: auto;
  height: 5px;
  border-radius: 100px;
}

.home-promo__title {
  max-width: 550px;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1;
}

.home-promo__text {
  max-width: 444px;
  margin: 40px 0 48px;
  color: #4f4f4f;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.3;
  /* Текст показывается ПОЛНОСТЬЮ, не обрезается (задача 1). Небольшой min-height —
     чтобы короткие слайды не «схлопывали» блок. */
  min-height: 120px;
}

.home-promo_fit .home-promo__text,
.home-promo_fit .home-promo__title {
  color: #23272f;
}

/* Этапы визуальной примерки (задача 3.7) — нумерованный список в стиле блока. */
.home-promo__steps {
  list-style: none;
  max-width: 480px;
  margin: 48px 0 56px;
  padding: 0;
  counter-reset: promo-step;
}
.home-promo__steps li {
  position: relative;
  padding: 0 0 22px 48px;
  color: #23272f;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.35;
}
.home-promo__steps li:last-child {
  padding-bottom: 0;
}
.home-promo__steps li::before {
  counter-increment: promo-step;
  content: counter(promo-step);
  position: absolute;
  left: 0;
  top: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 600;
}

.home-promo__media {
  min-height: 652px;
  margin: 44px 80px 44px -164px;
  overflow: hidden;
  border-radius: 4px;
}

.home-promo__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 652px;
  object-fit: cover;
  /* Двери на фото справа — прижимаем кадр к правому краю (задача 1, промо + примерка). */
  object-position: right center;
}

.home-promo__dot {
  cursor: pointer;
}
.home-promo__dot:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}
.home-promo__title,
.home-promo__text,
.home-promo [data-promo-link],
.home-promo__media img {
  transition: opacity 0.22s ease;
}
.home-promo.is-fading .home-promo__title,
.home-promo.is-fading .home-promo__text,
.home-promo.is-fading [data-promo-link],
.home-promo.is-fading .home-promo__media img {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .home-promo__title,
  .home-promo__text,
  .home-promo [data-promo-link],
  .home-promo__media img {
    transition: none;
  }
}

.home-door-section {
  max-width: 1440px;
  margin: 0 auto 130px;
  /* Боковые отступы как у остальных страниц (корзина и т.п.) — карточки не липнут к краю. */
  padding-left: var(--layout-pad);
  padding-right: var(--layout-pad);
}

.home-door-section_stock {
  margin-bottom: 0;
  padding-top: 0;
}

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

@media (max-width: 960px) {
  .home-door-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.home-door-card {
  position: relative;
  min-width: 0;
  background: #fff;
}

.home-door-card__link {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 2vw, 40px) clamp(16px, 2.4vw, 45px) clamp(22px, 2.4vw, 40px);
  color: inherit;
  text-decoration: none;
}

.home-door-card__badge {
  position: absolute;
  top: 14px;
  left: 21px;
  z-index: 2;
  height: 25px;
  padding: 7px 11px;
  border: 1px solid #bdbdbd;
  color: #4f4f4f;
  font-size: 10px;
  line-height: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-door-card__fav {
  position: absolute;
  top: 17px;
  right: 24px;
  width: 18px;
  height: 18px;
}

.home-door-card__fav::before,
.home-door-card__fav::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 9px;
  height: 13px;
  border: 1px solid #949494;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  transform-origin: bottom center;
}

.home-door-card__fav::before {
  left: 2px;
  transform: rotate(-45deg);
}

.home-door-card__fav::after {
  right: 2px;
  transform: rotate(45deg);
}

.home-door-card__image-wrap {
  display: flex;
  aspect-ratio: 3 / 4;
  background: var(--color-surface);
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-door-card__image {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

.home-door-card__coll {
  display: block;
  margin-top: 12px;
  color: var(--color-text-light);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-door-card__name {
  display: block;
  min-height: 42px;
  margin-top: 4px;
  color: var(--color-text-primary);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}

.home-door-card__price {
  display: block;
  margin-top: 18px;
  color: var(--color-text-strong);
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
}

.home-door-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  color: var(--color-accent);
  font-size: 14px;
  line-height: 1.3;
}

.home-build {
  background: var(--color-surface);
}
.home-build__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 100px) clamp(18px, 4vw, 40px);
}
.home-build__title {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--color-text-strong);
  max-width: 24ch;
}
.home-build__sub {
  margin: 0 0 48px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-soft);
  max-width: 60ch;
  font-weight: 300;
}
.home-build__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: rgba(35, 39, 47, 0.1);
  border: 1px solid rgba(35, 39, 47, 0.1);
}
.home-build__cell {
  background: var(--color-surface);
  padding: clamp(24px, 2.4vw, 34px);
}
.home-build__cell-title {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text-strong);
}
.home-build__cell-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-soft);
  font-weight: 300;
}

.home-review {
  background: var(--color-bg-dark);
  color: #fff;
}
.home-review__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 90px) clamp(18px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.home-review__body {
  margin: 0 0 22px;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.home-review__author {
  margin: 0;
  font-size: 15px;
  color: #9A9490;
}
.home-review__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #262626;
}
.home-review__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 768px) {
  .home-review__media { aspect-ratio: 16 / 10; }
}

.home-blog {
  margin-top: 0;
  padding: 140px 0 112px;
  overflow: hidden;
  background: rgba(140, 31, 59, 0.15);
}

.home-blog__inner {
  width: min(100%, 1655px);
  margin-left: max(24px, calc((100vw - 1390px) / 2));
}

.home-blog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1407px;
  padding-bottom: 47px;
  border-bottom: 1px solid #e2e2e2;
}

.home-blog__title {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
}

.home-blog__tabs {
  display: flex;
  gap: 40px;
  padding-right: 18px;
}

.home-blog__tabs a {
  padding-bottom: 18px;
  color: #949494;
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  text-decoration: none;
}

.home-blog__tabs .is-active {
  border-bottom: 2px solid #191919;
  color: #191919;
}

.home-blog .blog__slider-wrap {
  position: relative;
  margin-top: 60px;
}

.home-blog .blog__carousel {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.home-blog .blog__carousel::-webkit-scrollbar {
  display: none;
}

.home-blog .blog-card {
  flex: 0 0 440px;
  min-height: 409px;
  background: transparent;
  scroll-snap-align: start;
}

.home-blog .blog-card__img-wrap {
  display: block;
  height: 302px;
  margin-bottom: 20px;
  overflow: hidden;
}

.home-blog .blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-blog .blog-card__meta {
  margin: 0 0 16px;
  color: #949494;
  font-size: 14px;
  line-height: 18px;
  text-transform: none;
}

.home-blog .blog-card__title {
  margin: 0;
  max-width: 440px;
  color: #23272f;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

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

.home-blog .bx-blog-card__more {
  display: none;
}

.home-blog .blog__nav-btn {
  position: absolute;
  top: 70px;
  right: 230px;
  width: 50px;
  height: 50px;
  border: 0;
  background: #23272f;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.home-contact {
  max-width: 1407px;
  
  margin: 0 auto 187px;
}

.home-contact__image {
  height: 506px;
  overflow: hidden;
}

.home-contact__image img {
  display: block;
  width: 100%;
  height: 118%;
  object-fit: cover;
  object-position: center top;
}

.home-contact__body {
  max-width: 1036px;
  padding-top: 56px;
}

.home-contact__eyebrow {
  margin: 0 0 40px;
  color: #23272f;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-contact__title {
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1;
}

.home-contact__text {
  margin: 40px 0;
  color: #23272f;
  font-size: 20px;
  line-height: 1.3;
}

.home-contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.home-contact__input {
  width: 100%;
  height: 56px;
  padding: 19px 0 16px;
  border: 0;
  border-bottom: 1px solid #afafaf;
  border-radius: 0;
  outline: 0;
  color: #23272f;
  font-family: var(--font-main);
  font-size: 16px;
  background: transparent;
}

.home-contact__input:focus {
  border-color: var(--color-accent);
}

.home-contact__submit {
  width: 100%;
  height: 56px;
}

.home-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 18px;
  cursor: pointer;
}

.home-consent input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--color-accent);
  /* Без этого чекбокс — сжимаемый флекс-элемент: длинный текст согласия
     выдавливал его с 16px до 13px, и зона нажатия уезжала ниже нормы. */
  flex: 0 0 auto;
}

.home-consent a {
  color: #23272f;
  text-decoration: underline;
}

.home-contact__consent {
  grid-column: 1 / -1;
  margin-top: 0;
}

.home-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.home-modal[hidden] {
  display: none;
}

.home-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}

.home-modal__dialog {
  position: relative;
  width: min(480px, 100%);
  padding: 36px;
  background: #fff;
}

.home-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #23272f;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.home-modal__title {
  margin: 0 0 12px;
  color: #23272f;
  font-size: 32px;
  line-height: 1.15;
}

.home-modal__text {
  margin: 0 0 24px;
  color: #4f4f4f;
  font-size: 16px;
  line-height: 1.45;
}

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

.home-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #4f4f4f;
  font-size: 14px;
}

.home-field input {
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d6d6d6;
  font: inherit;
}

.home-field input:focus {
  border-color: var(--color-accent);
  outline: 0;
}

.home-modal__submit {
  width: 100%;
}

@media (max-width: 1280px) {
  .home-promo,
  .home-contact {
    margin-left: 24px;
    margin-right: 24px;
  }

  .home-blog__inner {
    margin-left: 24px;
  }

  .home-blog .blog__nav-btn {
    right: 24px;
  }
}

@media (max-width: 1024px) {
  .home-hero {
    min-height: 620px;
  }

  .home-promo {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  /* Мобильная раскладка: сначала фото, затем описание (задача 1.1). */
  .home-promo__media {
    order: 1;
  }

  .home-promo__body {
    order: 2;
    min-height: 0;
    padding: 120px 48px 56px;
  }

  .home-promo__progress {
    left: 48px;
    right: 48px;
  }

  .home-promo__media {
    min-height: 420px;
    margin: 0;
  }

  .home-promo__media img {
    min-height: 420px;
  }

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

  .home-blog__header {
    flex-direction: column;
    gap: 24px;
    padding-right: 24px;
  }

  .home-contact__form {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 640px) {
  /* Мобильный первый экран (задача 1): фото сверху 65vh, ниже — блок контента
     во всю ширину с отступами по сетке. Оверлей и белый текст поверх фото не нужны. */
  .home-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
  }

  .home-hero__image {
    position: static;
    width: 100%;
    height: 55vh;
  }

  .home-hero__overlay {
    display: none;
  }

  .home-hero__content {
    position: static;
    width: 100%;
    max-width: none;
    /* --layout-pad, а не 20px: на телефоне секции стоят на 12px, и герой
       с жёсткой двадцаткой выбивался из общей линии. */
    padding: 32px var(--layout-pad, clamp(12px, 3vw, 40px)) 0;
  }

  .home-hero__eyebrow {
    color: var(--color-text-secondary);
  }

  .home-hero__title {
    max-width: none;
    margin-bottom: 12px;
    font-size: 30px;
    color: var(--color-text-primary);
  }

  .home-hero__actions {
    margin-bottom: 0;
  }

  .home-hero__actions .home-btn {
    flex: 1 1 auto;
  }

  /* На светлом фоне «призрачная» кнопка нуждается в тёмной обводке/тексте. */
  .home-hero .home-btn_ghost {
    background: transparent;
    color: var(--color-text-primary);
    border-color: var(--color-border);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .home-promo {

    margin: 0;
  }

  .home-promo__body {
    padding: 88px 20px 40px;
  }

  .home-promo__progress {
    top: 40px;
    left: 20px;
    right: 20px;
    gap: 10px;
  }

  .home-promo__text {
    margin: 32px 0 40px;
    font-size: 16px;
  }

  .home-door-section {
    margin: 0 0 72px;
  }

  .home-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .home-door-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .home-door-card {
    flex: 0 0 82vw;
    scroll-snap-align: start;
  }

  .home-door-card__link {
    min-height: 580px;
    padding: 40px 32px 48px;
  }

  .home-door-card__image-wrap {
    height: 430px;
  }

  .home-door-card__image {
    height: 400px;
  }

  .home-blog {
    padding: 72px 0;
  }

  .home-blog__title {
    font-size: 30px;
  }

  .home-blog__tabs {
    gap: 20px;
  }

  .home-blog .blog-card {
    flex-basis: 82vw;
  }

  .home-blog .blog-card__img-wrap {
    height: auto;
    max-height: 450px;
    aspect-ratio: 4 / 5;
  }
  .home-blog .blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .home-blog .blog__nav-btn {
    display: none;
  }

  .home-contact {
    
    margin: 0 0 96px;
  }

  .home-contact__image {
    height: 300px;
  }

  .home-contact__body {
    padding: 40px 20px 0;
  }

  .home-contact__title {
    font-size: 30px;
  }

  .home-modal__dialog {
    padding: 32px 20px;
  }
}

.question-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
.question-modal[aria-hidden="false"] {
  display: block;
}
.question-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.question-modal__panel {
  position: relative;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  margin: 64px auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}
.question-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}
.question-modal__title {
  margin: 0;
  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text);
}
.question-modal__close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text);
  padding: 4px 8px;
}
.question-form {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.question-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.question-form__label {
  font-size: 13px;
  color: var(--color-text-muted, #6b6b6b);
}
.question-form__input {
  padding: 12px 14px;
  border: 1px solid var(--color-border, #e4e0db);
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 15px;
  background: #fff;
}
.question-form__input:focus {
  outline: none;
  border-color: var(--color-primary);
}
textarea.question-form__input {
  resize: vertical;
  min-height: 100px;
}
.question-form__error {
  color: var(--color-primary, #8c1f3b);
  font-size: 13px;
  min-height: 1.2em;
}
.question-form__submit {
  margin-top: 4px;
  padding: 14px 22px;
  background: var(--color-primary, #8c1f3b);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.question-form__submit:hover {
  background: var(--color-primary-hover, #6e1630);
}
.question-form__success {
  margin: 0;
  padding: 12px 0;
  color: #2a7a3e;
  font-size: 14px;
  text-align: center;
}

.account-orders {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.account-order-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--color-border, #e4e0db);
  border-radius: 4px;
  cursor: pointer;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.account-order-card:hover,
.account-order-card:focus-visible {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  outline: none;
}
.account-order-card__image-wrap {
  width: 180px;
  height: 220px;
  background: var(--color-bg-warm, #f5f1ec);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.account-order-card__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.account-order-card__image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #efeae3 0%, #e4ddd2 100%);
}
.account-order-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.account-order-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.account-order-card__title {
  margin: 0;
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
}
.account-order-card__price {
  text-align: right;
  white-space: nowrap;
}
.account-order-card__price-label {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted, #6b6b6b);
}
.account-order-card__price-value {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
}
.account-order-card__specs {
  margin: 0;
  display: grid;
  gap: 4px;
}
.account-order-card__spec {
  display: flex;
  gap: 6px;
  font-size: 14px;
  line-height: 1.5;
}
.account-order-card__spec-label {
  margin: 0;
  color: var(--color-text-muted, #6b6b6b);
  font-weight: 400;
}
.account-order-card__spec-value {
  margin: 0;
  color: var(--color-text);
}
.account-order-card__meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--color-text-muted, #6b6b6b);
}

@media (max-width: 768px) {
  .account-order-card {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }
  .account-order-card__image-wrap {
    width: 100%;
    height: 240px;
  }
  .account-order-card__head {
    flex-direction: column;
  }
  .account-order-card__price {
    text-align: left;
  }
}

.order-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
.order-detail-modal[aria-hidden="false"] {
  display: block;
}
.order-detail-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.order-detail-modal__panel {
  position: relative;
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  margin: 56px auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}
.order-detail-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border, #e4e0db);
}
.order-detail-modal__title {
  margin: 0;
  font-family: var(--font-main);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
}
.order-detail-modal__close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text);
  padding: 4px 8px;
}
.order-detail-modal__body {
  padding: 20px 24px 24px;
}
.order-detail-modal__meta {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--color-text-muted, #6b6b6b);
}
.order-detail-modal__item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
}
.order-detail-modal__img {
  width: 160px;
  height: 200px;
  object-fit: contain;
  background: var(--color-bg-warm, #f5f1ec);
}
.order-detail-modal__item-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
}
.order-detail-modal__specs {
  margin: 0 0 12px;
  display: grid;
  gap: 4px;
}
.order-detail-modal__spec {
  display: flex;
  gap: 6px;
  font-size: 14px;
}
.order-detail-modal__spec dt {
  color: var(--color-text-muted, #6b6b6b);
  margin: 0;
  font-weight: 400;
}
.order-detail-modal__spec dd {
  margin: 0;
  color: var(--color-text);
}
.order-detail-modal__price {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.order-detail-modal__qty {
  color: var(--color-text-muted, #6b6b6b);
  font-size: 14px;
  font-weight: 400;
}
.order-detail-modal__total {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--color-border, #e4e0db);
  font-size: 18px;
  font-weight: 600;
  text-align: right;
}
@media (max-width: 600px) {
  .order-detail-modal__item {
    grid-template-columns: 1fr;
  }
  .order-detail-modal__img {
    width: 100%;
    height: 240px;
  }
}

.collection-page {
  padding-bottom: clamp(64px, 8vw, 120px);
}
.collection-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  margin: clamp(16px, 2vw, 28px) 0 clamp(40px, 5vw, 72px);
}
.collection-hero__media {
  min-height: clamp(280px, 38vw, 520px);
  border-radius: 4px;
  /* Обложки коллекций скомпонованы с упором на правую сторону. */
  background: #ededed right / cover no-repeat;
}
.collection-hero__eyebrow {
  margin: 0 0 16px;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.collection-hero__title {
  margin: 0 0 20px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  color: var(--color-text-primary);
}
.collection-hero__text {
  max-width: 540px;
  margin: 0 0 32px;
  color: #4f4f4f;
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 300;
  line-height: 1.5;
}
.collection-doors {
  margin-top: clamp(24px, 3vw, 40px);
}
.collection-doors .home-door-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .collection-doors .home-door-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .collection-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .collection-hero__media {
    order: -1;
    min-height: 240px;
  }
  .collection-doors .home-door-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .collection-doors .home-door-grid {
    grid-template-columns: 1fr;
  }
}

.back-to-top {
  position: fixed;
  left: 50px;
  bottom: 150px;
  z-index: 1100;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--color-border, #d8d3cc);
  background: #fff;
  color: var(--color-accent, #8c1f3b);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.18s, color 0.18s;
  pointer-events: none;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* Открытый конфигуратор (z-index 900) не должен перекрываться кнопкой «наверх»
   (z-index 1100) — прячем её на время работы конструктора. */
html.cfg-modal-open .back-to-top {
  opacity: 0;
  pointer-events: none;
}
.back-to-top:hover {
  background: var(--color-accent, #8c1f3b);
  color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 0.01s; }
}
@media (max-width: 768px) {
  .back-to-top {
    left: 30px;
    bottom: 50px;
    width: 46px;
    height: 46px;
  }
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
select,
textarea,
.btn,
[class*="btn"],
[class*="submit"],
[class*="input"],
[class*="field"],
[class*="chip"],
[class*="__tab"],
[class*="__cta"] {
  border-radius: var(--radius-input);
}

[class*="__panel"],
[class*="__dialog"],
[class*="__summary"],
[class*="card"],
.cart__item,
.cart-services__item,
.account-content,
.account-aside,
.order-detail__item,
.home-build__cell,
.cfilter__list_scroll {
  border-radius: var(--radius-img);
}

img,
[class*="image"],
[class*="__media"],
[class*="__img"], [class*="-img"],
[class*="photo"],
[class*="picture"],
[class*="avatar"],
.card, .coll-card, .home-door-card, .cat-tile,
.home-promo__media, .collection-hero__media, .home-review__media {
  border-radius: 0;
}

/* Карточка товара — скругление углов 4px (выше .card обнулён вместе с img).
   overflow:hidden обрезает картинку/обводку по этим же 4px. */
.card {
  border-radius: 4px;
  overflow: hidden;
}

/* ── Подтверждение e-mail в личном кабинете ──────────────────────────── */
.account-email__row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}
.account-email__input { flex: 1 1 220px; }
.account-email__btn {
  flex: 0 0 auto;
  padding: 0 18px;
  border: 1px solid var(--color-accent);
  background: transparent;
  color: var(--color-accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease;
}
.account-email__btn:hover:not([data-confirmed]) { background: var(--color-accent); color: #fff; }
.account-email__btn:disabled { opacity: .6; cursor: default; }
.account-email__btn_ok {
  border-color: #2f8f4e;
  color: #2f8f4e;
  cursor: default;
}
.account-email__btn_ok:hover { background: transparent; color: #2f8f4e; }
.account-email__hint { margin: 8px 0 0; font-size: 14px; line-height: 1.4; }
.account-email__hint_ok  { color: #2f8f4e; }
.account-email__hint_err { color: var(--color-accent); }
.account-email__change { margin: 8px 0 0; font-size: 14px; color: var(--color-text-secondary, #6b6b6b); }
.account-email__change-link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--color-accent);
  text-decoration: underline;
  cursor: pointer;
}

/* «Забыли пароль?» в модалке входа */
.auth-form__forgot {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.auth-form__forgot:hover { border-bottom-color: currentColor; }

/* Восстановление доступа (/auth/?forgot_password=yes): выбор способа + формы */
.auth-recover {
  max-width: 460px;
  margin: 32px auto;
  padding: 32px;
  border: 1px solid var(--color-border, #e6e6e6);
}
.auth-recover__title { margin: 0 0 8px; font-size: 24px; font-weight: 700; color: var(--color-text-primary); }
.auth-recover__lead { margin: 0 0 20px; color: var(--color-text-secondary, #6b6b6b); line-height: 1.5; }
.auth-recover__note { font-size: 13px; color: #999; }
.auth-recover__choice { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.auth-recover__choice-btn {
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px 18px;
  border: 1px solid var(--color-border, #d8d8d8);
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease;
}
.auth-recover__choice-btn:hover { border-color: var(--color-accent); background: #faf5f6; }
.auth-recover__choice-title { font-weight: 600; color: var(--color-text-primary); }
.auth-recover__choice-desc { font-size: 13px; color: var(--color-text-secondary, #6b6b6b); }
.auth-recover__form { display: flex; flex-direction: column; gap: 12px; }
.auth-recover__input { width: 100%; padding: 12px 14px; border: 1px solid var(--color-border, #d8d8d8); font: inherit; }
.auth-recover__btn {
  padding: 13px 20px; border: 0; background: var(--color-accent); color: #fff;
  font: inherit; font-weight: 600; cursor: pointer;
}
.auth-recover__btn:hover { opacity: .92; }
.auth-recover__msg { margin: 4px 0 0; font-size: 14px; line-height: 1.4; }
.auth-recover__msg_ok { color: #2f8f4e; }
.auth-recover__msg_err { color: var(--color-accent); }
.auth-recover__back { display: inline-block; margin-top: 16px; font-size: 14px; color: var(--color-accent); text-decoration: none; }
.auth-recover__back:hover { text-decoration: underline; }

/* Страница /auth/confirm-email/ — результат подтверждения */
.confirm-result {
  max-width: 520px;
  margin: 48px auto;
  padding: 40px 32px;
  text-align: center;
  border: 1px solid var(--color-border, #e6e6e6);
}
.confirm-result__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}
.confirm-result_ok .confirm-result__icon    { background: #eaf6ee; color: #2f8f4e; }
.confirm-result_error .confirm-result__icon { background: #f7eaee; color: var(--color-accent); }
.confirm-result__title { margin: 0 0 12px; font-size: 24px; font-weight: 700; color: var(--color-text-primary); }
.confirm-result__text  { margin: 0 0 24px; color: var(--color-text-secondary, #6b6b6b); line-height: 1.5; }
.confirm-result__btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.confirm-result__btn:hover { opacity: .92; }

/* Штатные формы Битрикса на /auth/ (вход/восстановление/смена пароля) */
.auth-page .bx-authform,
.auth-page .bx-auth-secure { max-width: 460px; margin: 24px auto; }
.auth-page .bx-authform-formgroup { margin-bottom: 16px; }
.auth-page .bx-authform-label-container { margin-bottom: 6px; font-weight: 600; color: var(--color-text-primary); }
.auth-page .bx-authform-input-container input[type="text"],
.auth-page .bx-authform-input-container input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border, #d8d8d8);
  font: inherit;
}
.auth-page .btn.btn-default,
.auth-page input[type="submit"] {
  display: inline-block;
  padding: 12px 28px;
  border: 0;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* ============================================================
   ЛК: оплата заказа (пункт виден только при статусе «Ожидает оплаты»)
   ============================================================ */
.account-nav__badge {
  display: inline-block;
  min-width: 18px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 9px;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  vertical-align: middle;
}

.account-pay__intro {
  margin: 0 0 24px;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.account-pay__notice {
  margin: 0 0 20px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.45;
  border-left: 3px solid var(--color-accent);
  background: rgba(140, 31, 59, 0.05);
  color: var(--color-text-primary);
}

.account-pay__notice_ok {
  border-left-color: #2E7D46;
  background: rgba(46, 125, 70, 0.06);
}

.account-pay__notice_err {
  border-left-color: var(--color-accent);
}

.account-pay-card {
  padding: 22px 24px;
  margin: 0 0 16px;
  border: 1px solid var(--color-border);
  background: #FFFFFF;
}

.account-pay-card__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 10px;
}

.account-pay-card__num {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.account-pay-card__date {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.account-pay-card__sum {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--color-text-secondary);
}

.account-pay-card__sum b {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.account-pay-card__methods {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.account-pay-card__btn {
  display: inline-block;
  padding: 13px 28px;
  border: 1px solid var(--color-accent);
  background: var(--color-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.account-pay-card__btn:hover {
  opacity: 0.88;
}

.account-pay-card__btn_alt {
  background: transparent;
  color: var(--color-accent);
}

.account-pay-card__btn_alt:hover {
  background: rgba(140, 31, 59, 0.06);
  opacity: 1;
}

/* Страница перехода к оплате */
.pay-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.pay-page__title {
  margin: 16px 0 24px;
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.pay-page__hint {
  margin: 0 0 20px;
  color: var(--color-text-secondary);
}

.pay-page__error {
  margin: 0 0 20px;
  padding: 16px 20px;
  border-left: 3px solid var(--color-accent);
  background: rgba(140, 31, 59, 0.05);
  color: var(--color-text-primary);
  font-size: 15px;
}

.pay-page__back {
  display: inline-block;
  margin-top: 8px;
  color: var(--color-accent);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

@media (max-width: 480px) {
  .account-pay-card__methods { flex-direction: column; }
  .account-pay-card__btn { text-align: center; }
}

/* ── Уведомление о cookie (152-ФЗ). Инжектит js/modules/cookie-consent.js ── */
.cookie-consent {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1300; /* выше контента/навигации (400), ниже модалок и оверлеев (9999+) */
  width: 360px;
  max-width: calc(100vw - 48px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px;
  background: var(--color-bg, #ffffff);
  border: 1px solid var(--color-border, #d8d3cc);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(26, 26, 26, 0.14);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cookie-consent.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.cookie-consent__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-primary, #1A1A1A);
}
.cookie-consent__link {
  color: var(--color-accent, #8C1F3B);
  text-decoration: underline;
}
.cookie-consent__btn {
  align-self: flex-start;
  padding: 10px 26px;
  border: none;
  border-radius: 999px;
  background: var(--color-accent, #8C1F3B);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.cookie-consent__btn:hover {
  background: var(--color-accent-hover, #6E1630);
}
@media (max-width: 768px) {
  .cookie-consent {
    right: 12px;
    left: 12px;
    /* над мобильной нижней навигацией (60px + safe-area) */
    bottom: calc(72px + env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    padding: 16px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-consent { transition: opacity 0.01s; }
}

/* Итог конструктора пересчитывается на сервере (PriceCalculator): пока летит запрос,
   показываем локальную оценку приглушённой — цифра вот-вот заменится авторитетной. */
.config-total-price.is-recalculating {
  opacity: 0.55;
  transition: opacity 0.15s ease;
}
@media (prefers-reduced-motion: reduce) {
  .config-total-price.is-recalculating { transition: none; }
}

/* Согласие на обработку ПД в модалке звонка и в оформлении заказа.
   Наследует вид от .home-consent (эталон — форма на главной), правим только отступы. */
.call-modal__consent,
.checkout-form__consent {
  margin: 4px 0 12px;
  text-align: left;
}

/* ============================================================================
   Блог: список (/blog/) и статья (/blog/{code}/).

   Форма — редакционный индекс, а не сетка карточек: у статей может не быть
   обложки, и «три равные карточки в ряд» на двух материалах разваливаются.
   Строки индекса держат ритм при любом количестве статей и без картинок.

   Токены дизайн-системы: Manrope, #1A1A1A, акцент #8C1F3B, --radius-card 8px,
   контейнер --container-max, отступы --layout-pad.
   ========================================================================== */
.blog-page,
.post-page {
  /* --layout-max, как у шапки и подвала: на 1320 контент вставал на 53px правее. */
  max-width: var(--layout-max, 1440px);
  margin: 0 auto;
  padding: 0 var(--layout-pad, clamp(16px, 3vw, 40px)) clamp(48px, 6vw, 88px);
}

/* Единая колонка раздела. До этого шапка жила на 720px, заголовок ведущей
   статьи растягивался на все 1240px, а текст под ним сидел на 58ch — три
   разные меры на одной странице читались как сбитая сетка. */
.blog-page { --blog-col: 900px; }
.blog-page .breadcrumbs,
.blog-head,
.blog-lead,
.blog-index,
.blog-empty { max-width: var(--blog-col); }

/* Выделение текста мышью — тоже часть оформления, а не браузерный дефолт.
   Тонируем от акцента, но приглушённо, чтобы читать поверх было комфортно. */
/* Выделение мышью задано глобально, ниже по файлу (секция «Браузерные поверхности»). */

/* Мета-строка: дата · время чтения · просмотры. Одна на список и на статью. */
.post-meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-light, #9E9E9E);
  font-variant-numeric: tabular-nums;
}
.post-meta__dot { margin: 0 .55em; color: var(--color-border, #E0DDDA); }

/* Шапка раздела ------------------------------------------------------------ */
.blog-head {
  margin: clamp(16px, 2vw, 28px) 0 clamp(32px, 4.5vw, 56px);
}
.blog-head__title {
  margin: 0 0 16px;
  font-size: clamp(28px, 4.4vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--color-text-primary, #1A1A1A);
}
.blog-head__lead {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65;
  color: var(--color-text-secondary, #6B6B6B);
  text-wrap: pretty;
}

/* Ведущая статья ----------------------------------------------------------- */
.blog-lead {
  padding: 0 0 clamp(28px, 3.5vw, 44px);
  border-top: 1px solid var(--color-border, #E0DDDA);
  padding-top: clamp(24px, 3vw, 38px);
}
.blog-lead__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
  align-items: center;
  text-decoration: none;
  color: inherit;
}
/* Две колонки — только когда у статьи есть обложка. Без :has остаётся
   вертикальная раскладка, она тоже корректна. */
@media (min-width: 900px) {
  .blog-lead__link:has(.blog-lead__media) { grid-template-columns: minmax(0, 1fr) minmax(0, 46%); }
}
.blog-lead__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-img, 8px);
  background: var(--color-surface, #F5F5F5);
  order: 2;
}
.blog-lead__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.blog-lead__link:hover .blog-lead__media img { transform: scale(1.03); }
.blog-lead__text { order: 1; }
.blog-lead__title {
  margin: 0 0 14px;
  font-size: clamp(23px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.028em;
  text-wrap: balance;
  transition: color .2s ease;
}
.blog-lead__link:hover .blog-lead__title { color: var(--color-accent, #8C1F3B); }
.blog-lead__excerpt {
  margin: 0 0 16px;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.65;
  color: var(--color-text-secondary, #6B6B6B);
  text-wrap: pretty;
}
.blog-lead__more {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent, #8C1F3B);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color .2s ease;
}
.blog-lead__link:hover .blog-lead__more { color: var(--color-accent-hover, #6E1630); }

/* Индекс статей ------------------------------------------------------------ */
/* Линия принадлежит строке и стоит НАД ней. Раньше линию сверху рисовал список,
   а снизу — каждый пункт: на двух статьях выходило три линии, и последняя
   висела внизу, ничего не отделяя. */
.blog-index {
  list-style: none;
  margin: 0;
  padding: 0;
}
.blog-index__item {
  border-top: 1px solid var(--color-border, #E0DDDA);
}
.blog-index__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: center;
  /* Никаких отрицательных отступов: строка стоит ровно в колонке, поэтому
     реакция на наведение живёт в тексте и картинке, а не в фоновой плашке,
     которая раньше вылезала за хайрлайны на 14px с каждой стороны. */
  padding: clamp(20px, 2.4vw, 30px) 0;
  text-decoration: none;
  color: inherit;
}
.blog-index__link:has(.blog-index__thumb) { grid-template-columns: minmax(0, 1fr) 200px; }
.blog-index__link:focus-visible {
  outline: 2px solid var(--color-accent, #8C1F3B);
  outline-offset: 4px;
}
.blog-index__title {
  margin: 0 0 8px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.022em;
  text-wrap: balance;
  transition: color .2s ease;
}
.blog-index__link:hover .blog-index__title {
  color: var(--color-accent, #8C1F3B);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.blog-index__excerpt {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary, #6B6B6B);
  text-wrap: pretty;
}
.blog-index__thumb {
  display: block;
  width: 200px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-img, 8px);
  background: var(--color-surface, #F5F5F5);
  transition: opacity .3s ease;
}
.blog-index__link:hover .blog-index__thumb { opacity: .88; }

.blog-empty {
  padding: clamp(32px, 5vw, 64px);
  background: var(--color-surface, #F5F5F5);
  border-radius: var(--radius-card, 8px);
  text-align: center;
}
.blog-empty__text { margin: 0 0 20px; font-size: 16px; line-height: 1.6; color: var(--color-text-secondary, #6B6B6B); }

/* Полоса прогресса чтения -------------------------------------------------- */
.post-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 101; /* над шапкой (100), но сильно ниже модалок (1400) */
  pointer-events: none;
  background: transparent;
}
.post-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--color-accent, #8C1F3B);
  will-change: transform;
}

/* Статья ------------------------------------------------------------------- */
/* Ширина колонки задана в пикселях, а не в ch, намеренно: ch считается от шрифта
   САМОГО элемента, поэтому одно и то же «72ch» дало бы у крошек (14px) заметно
   более узкую строку, чем у текста статьи (17px), и левые края разъехались бы.
   704px при 17px Manrope — примерно 72 знака, середина диапазона 65–75 (п.50). */
.post-page { --post-col: 704px; }
.post { max-width: var(--post-col); margin: 0 auto; }
.post__head { margin: clamp(16px, 2vw, 28px) 0 clamp(24px, 3vw, 36px); }
.post__title {
  margin: 0 0 14px;
  font-size: clamp(29px, 4.4vw, 46px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.post__meta { margin: 0 0 20px; }
.post__lead {
  margin: 0;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.58;
  color: var(--color-text-soft, #4A4F57);
  font-weight: 500;
  text-wrap: pretty;
}
.post__cover { margin: 0 0 clamp(24px, 3vw, 36px); }
.post__cover img { width: 100%; height: auto; border-radius: var(--radius-img, 8px); display: block; }
.post__video {
  position: relative; padding-top: 56.25%; margin: 0 0 clamp(24px, 3vw, 36px);
  border-radius: var(--radius-img, 8px); overflow: hidden; background: var(--color-surface, #F5F5F5);
}
.post__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Тело статьи: типографика под длинный текст. Над заголовком воздуха больше,
   чем под ним, — так подзаголовок читается как начало своего блока. */
.post__body { font-size: 17px; line-height: 1.75; color: var(--color-text-primary, #1A1A1A); }
.post__body p { margin: 0 0 20px; text-wrap: pretty; }
.post__body h2 {
  margin: clamp(38px, 4.6vw, 54px) 0 14px;
  font-size: clamp(21px, 2.4vw, 28px); font-weight: 700; line-height: 1.22; letter-spacing: -0.024em;
  text-wrap: balance;
}
.post__body h3 {
  margin: clamp(28px, 3.4vw, 38px) 0 12px;
  font-size: clamp(18px, 2vw, 21px); font-weight: 700; line-height: 1.3; text-wrap: balance;
}
.post__body ul, .post__body ol { margin: 0 0 20px; padding-left: 22px; }
.post__body li { margin-bottom: 9px; }
.post__body img { max-width: 100%; height: auto; border-radius: var(--radius-img, 8px); margin: 8px 0 20px; }
.post__body a {
  color: var(--color-accent, #8C1F3B);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(140, 31, 59, .35);
  transition: text-decoration-color .2s ease;
}
.post__body a:hover { text-decoration-color: currentColor; }
/* Цитата: отбивка воздухом и кеглем, без цветной планки слева. */
.post__body blockquote {
  margin: clamp(28px, 3.4vw, 40px) 0;
  padding: 0;
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.55;
  font-style: italic;
  color: var(--color-text-soft, #4A4F57);
  text-wrap: pretty;
}
.post__body blockquote p:last-child { margin-bottom: 0; }
.post__body table {
  width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.post__body th, .post__body td { padding: 11px 12px; border-bottom: 1px solid var(--color-border, #E0DDDA); text-align: left; }
.post__body th { font-weight: 700; color: var(--color-text-secondary, #6B6B6B); font-size: 13px; letter-spacing: .01em; }
/* Широкие таблицы прокручиваются внутри себя, а не растягивают страницу. */
.post__body { overflow-wrap: break-word; }

.post__tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: clamp(28px, 3.4vw, 40px) 0 0;
  padding-top: clamp(20px, 2.4vw, 28px);
  border-top: 1px solid var(--color-border, #E0DDDA);
}
.post__tag {
  padding: 6px 11px;
  border-radius: var(--radius-btn, 6px);
  background: var(--color-surface, #F5F5F5);
  font-size: 13px;
  color: var(--color-text-secondary, #6B6B6B);
}

.post__cta {
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: clamp(24px, 3vw, 36px);
  background: var(--color-surface, #F5F5F5);
  border: 1px solid var(--color-border, #E0DDDA);
  border-radius: var(--radius-card, 8px);
}
.post__cta-title { margin: 0 0 10px; font-size: clamp(19px, 2vw, 24px); font-weight: 700; letter-spacing: -0.022em; text-wrap: balance; }
.post__cta-text { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: var(--color-text-secondary, #6B6B6B); text-wrap: pretty; }
.post__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Статья, крошки над ней и «Читайте также» стоят на одной колонке. Иначе на
   странице три разных левых края и текст выглядит съехавшим относительно сетки. */
.post-page .breadcrumbs,
.post-more { max-width: var(--post-col); margin-left: auto; margin-right: auto; }
.post-more { margin-top: clamp(48px, 6vw, 80px); }
.post-more__title { margin: 0 0 clamp(16px, 1.8vw, 22px); font-size: clamp(21px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.025em; }

/* «Читайте также» (2026-10-09): три карточки с обложкой в колонке статьи. Рамка
   и реакция на наведение — как у .blog-item в списке блога, чтобы раздел читался
   одной системой. Кадр 3:2 одинаковый у всех: заголовки разной длины не сдвигают
   обложки, ряд держит одну верхнюю линию. */
.post-more__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.post-more__card {
  min-width: 0;
  border: 1px solid var(--color-border, #E0DDDA);
  border-radius: var(--radius-card, 8px);
  background: var(--color-bg-header, #FFFFFF);
  transition: border-color .2s ease;
}
.post-more__card:hover { border-color: var(--color-text-light, #767676); }
.post-more__link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 12px 12px 16px;
  text-decoration: none;
  color: inherit;
}
.post-more__link:focus-visible {
  outline: 2px solid var(--color-accent, #8C1F3B);
  outline-offset: 3px;
  border-radius: var(--radius-card, 8px);
}
.post-more__media {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-img, 8px);
  background: var(--color-surface, #F5F5F5);
}
.post-more__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}
.post-more__link:hover .post-more__media img { transform: scale(1.03); }
.post-more__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 0 4px; }
.post-more__meta { font-size: 13px; color: var(--color-text-light, #767676); }
.post-more__name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-wrap: balance;
  transition: color .2s ease;
}
.post-more__link:hover .post-more__name { color: var(--color-accent, #8C1F3B); }
/* Без обложки: текст сверху, карточка той же высоты, что соседние. */
.post-more__card_text .post-more__body { padding-top: 4px; }

/* Телефон: три кадра столбиком заняли бы два экрана. Строка «миниатюра + текст»
   показывает все три статьи сразу, как в ленте рекомендаций. */
@media (max-width: 640px) {
  .post-more__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .post-more__link { flex-direction: row; align-items: center; gap: 14px; padding: 10px; }
  .post-more__media { flex: 0 0 104px; aspect-ratio: 1 / 1; }
  .post-more__body { padding: 0; }
  .post-more__name { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .post-more__media img { transition: none; }
  .post-more__link:hover .post-more__media img { transform: none; }
}

/* Появление: один сдержанный вход с лесенкой, экспоненциальное замедление. */
@media (prefers-reduced-motion: no-preference) {
  .dv-rise {
    opacity: 0;
    animation: dv-rise .7s cubic-bezier(.16, 1, .3, 1) forwards;
    animation-delay: calc(var(--d, 0) * 70ms);
  }
  @keyframes dv-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
}

@media (max-width: 640px) {
  /* В одну колонку у ведущей статьи логичнее сначала обложка, потом текст. */
  .blog-lead__media { order: 1; }
  .blog-lead__text { order: 2; }
  .blog-index__link { gap: 14px; padding-block: 20px; }
  .blog-index__link:has(.blog-index__thumb) { grid-template-columns: minmax(0, 1fr) 88px; }
  .blog-index__thumb { width: 88px; aspect-ratio: 1 / 1; }
  .blog-index__excerpt { display: none; }
  .post__body { font-size: 16px; }
  .post-page { --post-col: none; }
}

/* ============================================================================
   Мобильные зоны нажатия (п.58 чек-листа: «палец не промахивается»).
   Иконкам расширяем ЗОНУ через ::after, а не padding — иначе поедет вёрстка
   шапки. Визуально ничего не меняется, кликабельная область становится ~44px.
   ========================================================================== */
@media (max-width: 768px) {
  .header__burger,
  .header__icon-btn,
  .header__phone-icon,
  .card__fav {
    position: relative;
  }
  .header__burger::after,
  .header__icon-btn::after,
  .header__phone-icon::after,
  .card__fav::after {
    content: "";
    position: absolute;
    inset: -10px;
    /* только зона нажатия, ничего не рисуем */
  }

  /* Ссылки в подвале: высота 18px → ~40px + разделение между строками */
  .footer__list li + li { margin-top: 4px; }
  .footer__list a,
  .footer__legal-links a {
    display: inline-block;
    padding: 9px 0;
    line-height: 1.3;
  }
  .footer__phone,
  .footer__email {
    display: inline-block;
    padding: 7px 0;
  }
  .cookie-consent__link { display: inline-block; padding: 4px 0; }

  /* Чекбоксы согласия: 13×16 → 22×22, промахнуться сложно */
  .home-consent input[type="checkbox"],
  .call-modal__consent input[type="checkbox"],
  .checkout-form__consent input[type="checkbox"],
  .cookie-consent input[type="checkbox"] {
    width: 22px;
    height: 22px;
  }
}

/* Подзаголовок первого экрана с фактами (п.6: цифры вместо оценок) */
.home-hero__lead {
  margin: 0 0 clamp(26px, 2.6vw, 34px);
  max-width: 46ch;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.6;
  /* Текст лежит на фотографии, а обложка меняется при каждой перезагрузке —
     запас по контрасту нужен под самый светлый кадр из пула. */
  color: rgba(255, 255, 255, 0.94);
}

/* Дескриптор текстом рядом с логотипом (п.14/17) */
.header__logo { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; }
.header__descriptor {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-secondary, #6B6B6B);
  white-space: nowrap;
}
@media (max-width: 768px) { .header__descriptor { display: none; } }

/* Анимированная галочка «заявка отправлена». Круг и птичка рисуются штрихом
   (stroke-dashoffset). Анимация играет только с классом .is-in — JS сбрасывает
   его при каждом показе, иначе браузер проигрывает её лишь один раз. */
.dv-check { display: flex; justify-content: center; margin-bottom: 14px; }
.dv-check svg { width: 64px; height: 64px; display: block; }
.dv-check__circle,
.dv-check__mark { stroke: var(--color-accent, #8C1F3B); }
.dv-check__circle { stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; }
.dv-check__mark { stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.dv-check.is-in .dv-check__circle { animation: dv-check-circle .5s cubic-bezier(.22,.75,.25,1) forwards; }
.dv-check.is-in .dv-check__mark { animation: dv-check-mark .35s .42s cubic-bezier(.22,.75,.25,1) forwards; }
@keyframes dv-check-circle { to { stroke-dashoffset: 0; } }
@keyframes dv-check-mark { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .dv-check__circle, .dv-check__mark { stroke-dashoffset: 0; }
  .dv-check.is-in .dv-check__circle, .dv-check.is-in .dv-check__mark { animation: none; }
}

/* Блок обращений и претензий на /contacts/ (п.111 чек-листа) */
.contact-claims {
  margin-top: clamp(20px, 3vw, 32px);
  padding: clamp(20px, 2.5vw, 28px);
  background: var(--color-surface, #F5F5F5);
  border-radius: var(--radius-card, 8px);
}
.contact-claims__title { margin: 0 0 10px; font-size: clamp(17px, 1.8vw, 21px); font-weight: 700; letter-spacing: -0.02em; }
.contact-claims__text { margin: 0; font-size: 15px; line-height: 1.65; color: var(--color-text-secondary, #6B6B6B); max-width: 72ch; }
.contact-claims__text a { color: var(--color-accent, #8C1F3B); }

/* ============================================================================
   Мобильный первый экран (п.29/35/59/66 чек-листа).
   Было: фото-герой 740px + cookie-баннер 188px + гео-модалка на весь экран —
   заголовка и кнопки не видно вообще. Стало: герой по высоте экрана, баннер —
   компактная полоса над нижней навигацией.
   ========================================================================== */
@media (max-width: 768px) {
  .home-hero {
    min-height: 0;
    /* оставляем место под шапку и нижнюю навигацию, чтобы заголовок с кнопками
       попадал в первый экран без скролла */
    /* минус шапка, нижняя навигация и cookie-полоса — чтобы первая кнопка
       гарантированно оставалась выше баннера (замерено: было перекрытие 24px) */
    height: calc(100svh - 158px);
    min-height: 400px;
  }
  .home-hero__image { height: 100%; object-fit: cover; }

  .cookie-consent {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    bottom: 72px; /* над нижней навигацией (60px) */
  }
  .cookie-consent__text {
    font-size: 12px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .cookie-consent__btn { align-self: center; flex: none; padding: 9px 16px; font-size: 13px; }
}

/* Первый экран телефона: заголовок + лид + кнопки должны уместиться над
   cookie-полосой, поэтому ужимаем типографику и отступы (п.59). */
@media (max-width: 768px) {
  .home-hero__title {
    max-width: 100%;
    margin: 0 0 10px;
    font-size: clamp(22px, 6.2vw, 28px);
    line-height: 1.15;
  }
  .home-hero__eyebrow { margin-bottom: 6px; font-size: 11px; }
  /* На мобиле контент героя уходит из-под фото на белый фон, поэтому светлый
     текст лида здесь невидим — переключаем на тёмный (заголовок так же). */
  .home-hero__lead { margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: var(--color-text-secondary, #6B6B6B); }
  .home-hero__actions { margin-top: 0; gap: 8px; }
  .home-hero__content { padding-bottom: 8px; }
}

/* Блок «в цифрах» на /about/ — факты вместо оценочных суждений (п.6/10 чек-листа) */
.about-facts { margin: clamp(28px, 4vw, 48px) 0; }
.about-facts__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px);
}
.about-facts__item {
  display: flex; flex-direction: column; gap: 6px;
  padding: clamp(18px, 2vw, 24px);
  background: var(--color-surface, #F5F5F5);
  border-radius: var(--radius-card, 8px);
  border: 1px solid var(--color-border, #E0DDDA);
}
.about-facts__num { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.02em; color: var(--color-text-primary, #1A1A1A); }
.about-facts__label { font-size: 14px; line-height: 1.5; color: var(--color-text-secondary, #6B6B6B); }
@media (max-width: 900px) { .about-facts__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .about-facts__list { grid-template-columns: 1fr; } }

/* Подзаголовок секции на главной (текст, вынесенный из заголовка) */
.home-section-sub {
  margin: -6px 0 clamp(18px, 2.5vw, 28px);
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.6;
  color: var(--color-text-secondary, #6B6B6B);
  max-width: 60ch;
}

/* ============================================================================
   ЕДИНАЯ СЕТКА ГЛАВНОЙ.
   Секции достались от прототипа с произвольными max-width (1440/1360/1655/1407)
   и разными отступами: левый край контента гулял 24 / 60 / 73 / 9 px.

   Правило теперь одно:
     - внешняя рамка секции  = --container-max (край карточек-плашек);
     - текст и сетки внутри  = ещё +--layout-pad (единая линия текста).
   Вложенные контейнеры не дублируем, иначе отступ удваивается.
   ========================================================================== */
.home-door-section,
.home-build,
.home-promo,
.home-contact,
.home-cases,
.home-journal {
  /* --layout-max, а не --container-max: на 1320 контент главной вставал на 53px
     правее шапки и подвала, которые живут на 1440. Теперь линия одна. */
  max-width: var(--layout-max, 1440px);
  margin-left: auto;
  margin-right: auto;
}
/* в прототипе у формы был margin-left: 9px — сбрасываем */
.home-contact { margin-left: auto; }

/* Сетка карточек и шапка секции — по линии текста */
.home-door-section,
.home-cases,
.home-journal { padding-left: var(--layout-pad); padding-right: var(--layout-pad); }
.home-section-head { max-width: none; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }

/* Плашки (промо, «делаем сами», примерка, форма) занимают всю ширину контейнера,
   а их внутренний текст встаёт на ту же линию, что и карточки дверей. */
.home-promo, .home-contact { padding-left: 0; padding-right: 0; }
.home-promo__body { padding-left: var(--layout-pad); padding-right: var(--layout-pad); }
.home-contact__body { padding-left: var(--layout-pad); padding-right: var(--layout-pad); }
/* у .home-build отступ уже задаёт вложенный .home-build__inner — снаружи обнуляем,
   иначе отступ удваивается и заголовок уезжает вправо на 40px */
.home-build { padding-left: 0; padding-right: 0; }
.home-build__inner { max-width: none; padding-left: var(--layout-pad); padding-right: var(--layout-pad); }

/* Заголовок секции: слева заголовок с описанием, справа ссылка.
   Раньше описание было третьим элементом flex-строки и его зажимало между
   заголовком и ссылкой — отсюда «кривой» перенос. */
.home-section-head {
  align-items: flex-end;
  gap: clamp(16px, 3vw, 48px);
}
.home-section-head__main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.home-section-sub {
  margin: 0;
  max-width: 54ch;
}
@media (max-width: 700px) {
  .home-section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ============================================================================
   Список статей — те же карточки, что в разделе «Проекты»: рамка, кадр слева,
   текст справа, две в ряд, 16px между ними. Отличие одно: у статьи обложки
   может не быть, и тогда карточка становится целиком текстовой — клетку она
   занимает ту же, ряд не ломается.

   Класс намеренно .blog-item, а не .blog-card: последний остался от прототипа
   (карусель блога на главной) и несёт max-width: 400px — новые карточки
   молча ужимались бы до 400px в колонке шириной 664.
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
}
.blog-item {
  min-width: 0;
  border: 1px solid var(--color-border, #E0DDDA);
  border-radius: var(--radius-card, 8px);
  padding: clamp(14px, 1.4vw, 18px);
  background: var(--color-bg-header, #FFFFFF);
  transition: border-color .2s ease;
}
.blog-item:hover { border-color: var(--color-text-light, #767676); }
.blog-item__link {
  display: grid;
  /* Пропорция обратная проектам: там работу показывает кадр, здесь читают
     текст. При 60/40 в пользу фото колонка анонса ужималась до 250px,
     абзац рассыпался на восемь строк и карточка вытягивалась вдвое. */
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(14px, 1.6vw, 22px);
  align-items: stretch;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
/* Без обложки колонки не нужны — текст занимает карточку целиком. Флексом,
   а не блоком: иначе тело не растягивается и ссылка «Читать статью» не
   прижимается к низу, а зависает в середине пустой карточки. */
.blog-item_text .blog-item__link { display: flex; flex-direction: column; }
.blog-item__body { flex: 1 1 auto; }
.blog-item__link:focus-visible {
  outline: 2px solid var(--color-accent, #8C1F3B);
  outline-offset: 4px;
  border-radius: var(--radius-img, 8px);
}
.blog-item__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-img, 8px);
  background: var(--color-surface, #F5F5F5);
  /* Кадр тянется на высоту карточки: карточки в ряду выравниваются по нижнему
     краю, а обрезка уходит на бока вместо верха и низа. */
  height: 100%;
  min-height: 220px;
}
.blog-item__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}
.blog-item__link:hover .blog-item__media img { transform: scale(1.03); }
.blog-item__body { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.blog-item__title {
  margin: 6px 0 0;
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.022em;
  text-wrap: balance;
  transition: color .2s ease;
}
.blog-item__link:hover .blog-item__title { color: var(--color-accent, #8C1F3B); }
.blog-item__text {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary, #6B6B6B);
  text-wrap: pretty;
}
.blog-item__more {
  margin-top: auto;
  padding-top: clamp(14px, 1.8vw, 20px);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-accent, #8C1F3B);
}
.blog-item__link:hover .blog-item__more { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1024px) and (min-width: 701px) {
  .blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .blog-grid { grid-template-columns: 1fr; }
  /* Телефон: разворот распрямляется — кадр сверху, текст под ним. */
  .blog-item__link { display: block; }
  .blog-item__media { height: auto; min-height: 0; aspect-ratio: 3 / 2; margin-bottom: 14px; }
}

/* Ответ формы главной. Показывается только после ответа сервера: пока он не
   пришёл, посетитель не должен думать, что заявка ушла. */
.home-form-msg {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-secondary, #6B6B6B);
}
.home-form-msg:empty { display: none; }
.home-form-msg.is-error { color: var(--color-accent, #8C1F3B); font-weight: 600; }

/* ============================================================================
   Две ленты главной: «Двери в готовых интерьерах» и «Разбираемся в дверях».

   Один каркас карточки на оба блока — рамка, скругление, внутренний отступ —
   и разное содержимое: проект ведёт фотография, статья ведёт текст. У статьи
   обложки может не быть вовсе, и карточка без картинки в фото-сетке читалась
   бы как ошибка загрузки.

   Высоты зафиксированы конструкцией, а не пикселями: grid-auto-rows: 1fr
   равняет карточки в ряду, кадру задано соотношение, заголовок обрезан по
   строкам. Поэтому карточки не скачут ни от длины названия, ни от формата фото.
   ========================================================================== */
.home-cases { margin: clamp(48px, 6vw, 88px) auto; }
.home-journal { margin: clamp(48px, 6vw, 88px) auto; }

.home-tiles {
  display: grid;
  /* Колонки с ПОТОЛКОМ ширины, а не 1fr: пока кейсов два, растянутая на пол-экрана
     карточка давала вертикальный кадр высотой 825px — витрина превращалась
     в простыню. 440px — предел, за которым карточка перестаёт быть анонсом. */
  grid-template-columns: repeat(auto-fit, minmax(260px, 440px));
  grid-auto-rows: 1fr;
  justify-content: start;
  gap: 16px;
}
.home-tile {
  min-width: 0;
  border: 1px solid var(--color-border, #E0DDDA);
  border-radius: var(--radius-card, 8px);
  background: var(--color-bg-header, #FFFFFF);
  overflow: hidden;
  transition: border-color .2s ease;
}
.home-tile:hover { border-color: var(--color-text-light, #767676); }
.home-tile__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.home-tile__link:focus-visible {
  outline: 2px solid var(--color-accent, #8C1F3B);
  outline-offset: -2px;
  border-radius: var(--radius-card, 8px);
}
.home-tile__media {
  margin: 0;
  overflow: hidden;
  background: var(--color-surface, #F5F5F5);
  /* 4/5 — вертикальный кадр под вертикальный предмет: дверь видна целиком. */
  aspect-ratio: 4 / 5;
}
.home-tile__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}
.home-tile__link:hover .home-tile__media img { transform: scale(1.03); }
.home-tile__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: clamp(14px, 1.4vw, 18px);
}
.home-tile__title {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-text-primary, #1A1A1A);
  transition: color .2s ease;
  /* Две строки: третья строка у одного названия ломала бы ряд. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-tile__link:hover .home-tile__title { color: var(--color-accent, #8C1F3B); }
.home-tile__meta {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text-light, #767676);
}
.home-tile__excerpt {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-secondary, #6B6B6B);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-tile__more {
  margin-top: auto;
  padding-top: clamp(14px, 1.6vw, 20px);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent, #8C1F3B);
}
.home-tile__link:hover .home-tile__more { text-decoration: underline; text-underline-offset: 3px; }

/* Карточка проекта подписывает кадр — мета идёт под названием, а не над ним. */
.home-tiles_cases .home-tile__meta { margin: 8px 0 0; }
/* Текстовая карточка без фото должна держать рост ряда сама. */
.home-tile_text .home-tile__body { min-height: 232px; }

@media (max-width: 900px) {
  .home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Третья карточка не должна висеть одна в ряду — прячем её на двух колонках. */
  .home-tiles > .home-tile:nth-child(3) { display: none; }
}

@media (max-width: 600px) {
  .home-tiles { grid-template-columns: minmax(0, 1fr); }
  .home-tiles > .home-tile:nth-child(3) { display: block; }
  .home-tile__media { aspect-ratio: 3 / 4; }
  .home-tile_text .home-tile__body { min-height: 0; }
}

/* ============================================================================
   Браузерные поверхности и состояния (полировка 2026-09-07).

   Части интерфейса, которые мы не рисовали, всё равно видны пользователю:
   выделение текста, родные чекбоксы, кольцо фокуса. По умолчанию они
   принадлежат браузеру, а не дизайн-системе. Приводим их к нашим токенам.
   ========================================================================== */

/* Выделение текста — от акцента, но приглушённо: читать поверх должно быть комфортно. */
::selection {
  background: rgba(140, 31, 59, .14);
  color: var(--color-text-primary, #1A1A1A);
}

/* Родные чекбоксы и радио. Раньше акцент был задан только у формы на главной,
   в фильтре каталога и оформлении заказа они оставались системно-синими. */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--color-accent);
}

/* Кольцо фокуса по умолчанию. Появляется только при навигации с клавиатуры;
   селекторы намеренно слабые — все точечные правила выше остаются главнее. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Наведение срабатывало рывком: у этих элементов не было ни одного перехода. */
.header__location,
.header__icon-btn,
.catalog-toolbar__view-btn,
.pdp__thumb,
.pdp-coating__all {
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease;
}

/* ============================================================================
   Причёсывание страниц /about/, /services/, /contacts/ (2026-09-07).

   Общая болезнь трёх страниц: «карточки» с фоном --color-bg-header (#FFFFFF)
   лежали на белой странице и были невидимы, но их padding честно сдвигал
   содержимое вправо. Получалось, что заголовки секций стоят на одном крае,
   а текст внутри — на другом, без видимой причины. Отсюда ощущение сбитой сетки.

   Решение: поверхность делаем видимой там, где контейнер осмыслен (карточки
   контактов, шаги, вопросы, блоки с картинкой), и убираем её там, где это была
   просто обёртка. Радиусы — по токенам дизайн-системы, а не border-radius: 0.
   ========================================================================== */

/* --- Услуги --------------------------------------------------------------- */

/* Первый блок и блок с картой — это сплит «текст | изображение».
   Поверхность оправдывает внутренний отступ и скругляет угол картинки. */
.service-hero,
.map-module {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.step-card,
.faq-item,
.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
}

/* Вопросы: у <summary> по умолчанию браузерный треугольник — убираем его
   и рисуем свою «галочку», которая разворачивается вместе с блоком. */
.faq-item { padding: 0; }
.faq-item__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  transition: color .2s ease;
}
.faq-item__summary::-webkit-details-marker { display: none; }
.faq-item__summary::marker { content: ""; }
.faq-item__summary:hover { color: var(--color-accent); }
.faq-item__summary::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .25s ease;
}
.faq-item[open] .faq-item__summary::after { transform: translateY(2px) rotate(225deg); }
.faq-item__text {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--color-text-secondary);
}

.step-card__text { color: var(--color-text-secondary); }

/* --- Контакты ------------------------------------------------------------- */

/* Реквизиты — самый длинный текст на странице. В колонке шириной в треть
   строки ломались посреди адреса («Юридический адрес: 429950, / Чувашская
   Республика, / г. Новочебоксарск, ул. / Промышленная...»). Отдаём блоку
   две колонки из трёх — адрес и банковские строки помещаются целиком. */
@media (min-width: 921px) {
  .contacts__grid > .contact-card:nth-child(4) { grid-column: span 2; }
}
.contact-card__note { color: var(--color-text-secondary); }

/* --- О компании ----------------------------------------------------------- */

/* Вертикальный ритм был случайным: 80 / 100 / 48 / 72 / 72 / 0 / 60px между
   секциями. Приводим к одному шагу — страница начинает дышать ровно. */
.about-banner,
.about-intro,
.about-facts,
.about-block { margin-bottom: clamp(40px, 6vw, 72px); }
.about-facts { margin-top: clamp(40px, 6vw, 72px); }

/* Плашка сертификатов была на «сыром» #e8dbdf мимо палитры. */
.about-certs { background: var(--color-bg-blush); }

/* Номер шага стоял на var(--color-accent) — том же бордовом, что и фон полосы.
   Контраст 1:1, цифра была не видна вообще. На цветной подложке вторичный
   текст тонируем от переднего плана, а не берём акцент. */
.about-quality__step-num { color: rgba(255, 255, 255, .72); }

/* Текстовая колонка прижималась к верху, хотя высоту блока задаёт картинка
   рядом: под текстом оставалась пустая треть карточки. Центрируем по вертикали. */
.service-hero__content,
.map-module__info { align-content: center; }

/* Реквизиты — служебные данные, а не контакт для связи. На общем кегле 22px
   они перевешивали телефон и почту; возвращаем им вес обычного текста. */
@media (min-width: 921px) {
  .contacts__grid > .contact-card:nth-child(4) .contact-card__value {
    font-size: 16px;
    line-height: 1.65;
  }
}

/* ============================================================================
   Проекты: список (/projects/) и кейс (/projects/{code}/).

   Раздел показывает работу, поэтому ведёт фотография, а интерфейс отходит:
   у карточек нет рамок и плашек, подпись живёт под кадром. Текстовые части
   кейса стоят на той же колонке, что и статьи блога (--post-col), чтобы
   длина строки была одинаковой во всех читаемых разделах сайта.
   ========================================================================== */
.projects-page,
.project-page {
  /* Именно --layout-max, а не --container-max: шапка и подвал стоят на 1440,
     и на 1320 контент раздела уезжал вправо на 53px относительно логотипа
     и меню. То же значение у /about/, /services/, /contacts/ и карточки товара. */
  max-width: var(--layout-max, 1440px);
  margin: 0 auto;
  padding: 0 var(--layout-pad, clamp(16px, 3vw, 40px)) clamp(48px, 6vw, 88px);
  --post-col: 704px;
}

.projects-page ::selection,
.project-page ::selection {
  background: rgba(140, 31, 59, .14);
  color: var(--color-text-primary, #1A1A1A);
}

/* --- Список --------------------------------------------------------------- */

.projects-head {
  max-width: 900px;
  margin: clamp(16px, 2vw, 28px) 0 clamp(28px, 4vw, 48px);
}
.projects-head__title {
  margin: 0 0 16px;
  font-size: clamp(28px, 4.4vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--color-text-primary, #1A1A1A);
}
.projects-head__lead {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65;
  color: var(--color-text-secondary, #6B6B6B);
  text-wrap: pretty;
}

/* Карточка кейса в списке одна на всех: кадр слева, справа заголовок, короткий
   текст (задача или решение) и характеристики объекта. Раньше первый кейс был
   «ведущим» и выглядел иначе остальных; одинаковые карточки честнее — список
   не должен намекать, что один проект важнее другого.

   Разворот внутри карточки — единственный способ показать вертикальное фото
   ЦЕЛИКОМ и рядом с ним описание: кадром сверху карточка в 604px вырастала до
   1235px, и в ряд помещалась ровно одна строка. Со сдвоенной колонкой кадр
   узкий (~265px) и высотой ~350px — дверь видна вся, а текст стоит рядом. */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
/* Обводка по дизайн-системе: карточка должна читаться как объект с границей,
   иначе на светлом фоне непонятно, где она кончается и начинается соседняя. */
.projects-grid .project-card {
  border: 1px solid var(--color-border, #E0DDDA);
  border-radius: var(--radius-card, 8px);
  padding: clamp(14px, 1.4vw, 18px);
  background: var(--color-bg-header, #FFFFFF);
  transition: border-color .2s ease;
}
.projects-grid .project-card:hover { border-color: var(--color-text-light, #767676); }
.project-card__link { display: block; text-decoration: none; color: inherit; }
.projects-grid .project-card__link {
  display: grid;
  /* 60 / 40 в пользу кадра: раздел показывает работу, текст её подписывает. */
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(14px, 1.6vw, 22px);
  align-items: stretch;
  /* Ссылка тянется на всю карточку, иначе кадр меряет высоту по своему
     тексту, и соседние карточки в ряду не совпадают по нижнему краю. */
  height: 100%;
}
/* Кадр тянется на высоту карточки, а не держит свою пропорцию: так у него
   не остаётся белого поля под собой, карточки в ряду выравниваются по нижнему
   краю, и — главное — обрезка уходит с верха и низа на бока. Вертикальному
   фото двери это на пользу: полотно видно целиком по высоте. */
.projects-grid .project-card__media {
  margin: 0;
  height: 100%;
  aspect-ratio: auto;
  min-height: 300px;
}
.project-card__media {
  margin: 0 0 clamp(14px, 1.6vw, 20px);
  overflow: hidden;
  border-radius: var(--radius-img, 8px);
  background: var(--color-surface, #F5F5F5);
  /* Соотношение приходит инлайном и зависит от самой обложки: вертикальный
     кадр получает высокую ячейку, а не обрезается под горизонтальную. */
  aspect-ratio: var(--ar, 3 / 2);
}
.project-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}
.project-card__link:hover .project-card__media img { transform: scale(1.03); }
.project-card__title {
  margin: 0 0 8px;
  font-size: clamp(19px, 2.1vw, 25px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.024em;
  text-wrap: balance;
  transition: color .2s ease;
}
.project-card__link:hover .project-card__title { color: var(--color-accent, #8C1F3B); }
.project-card__text {
  margin: 8px 0 0;
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary, #6B6B6B);
  text-wrap: pretty;
}
.project-card__facts.project-facts_spec { margin-top: clamp(12px, 1.5vw, 18px); }
.project-card__facts .project-facts__item { padding: 8px 0; gap: 10px; }
.project-card__facts .project-facts__label { font-size: 12px; }
.project-card__facts .project-facts__value { font-size: 14px; }
/* Текстовая ссылка со стрелкой. Подчёркивается по ховеру ВСЕЙ карточки:
   кликабельна карточка целиком, а это span — вложенная ссылка в ссылке
   недопустима. */
.project-card__more {
  display: inline-block;
  margin-top: clamp(14px, 1.8vw, 20px);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-accent, #8C1F3B);
}
.project-card__link:hover .project-card__more { text-decoration: underline; text-underline-offset: 3px; }
.project-card__link:focus-visible {
  outline: 2px solid var(--color-accent, #8C1F3B);
  outline-offset: 4px;
  border-radius: var(--radius-img, 8px);
}

.projects-empty {
  padding: clamp(32px, 5vw, 64px);
  background: var(--color-surface, #F5F5F5);
  border-radius: var(--radius-card, 8px);
  text-align: center;
}
.projects-empty__text {
  max-width: 56ch;
  margin: 0 auto 22px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary, #6B6B6B);
}
.projects-empty__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* --- Кейс ----------------------------------------------------------------- */

/* Шапка кейса. Форму разворота задаёт сама обложка: вертикальный кадр встаёт
   рядом с заголовком, горизонтальный — панорамой над ним. Модификатор ставит
   шаблон, потому что ориентацию файла знает только сервер. */
.project-hero { margin: clamp(14px, 2vw, 24px) 0 clamp(28px, 3.6vw, 48px); }
.project-hero__media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-img, 8px);
  background: var(--color-surface, #F5F5F5);
  cursor: zoom-in;
}
.project-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.16, 1, .3, 1);
}
.project-hero__media:hover img { transform: scale(1.02); }
.project-hero__media:focus-visible { outline: 2px solid var(--color-accent, #8C1F3B); outline-offset: 4px; }

.project-hero_split {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
/* Потолок высоты — чтобы вертикальный кадр не оставлял справа дыру:
   текстовая колонка короче фотографии, и без ограничения рядом с ней
   образуется пустое поле в пол-экрана. */
.project-hero_split .project-hero__media {
  /* width обязателен: с одним только aspect-ratio потолок высоты ужимает и
     ширину, и кадр перестаёт держать свою колонку. Здесь ширину задаём явно,
     а max-height лишь подрезает кадр, если рассказ в колонке совсем короткий. */
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: clamp(460px, 74vh, 820px);
}
.project-hero_wide .project-hero__media {
  aspect-ratio: 16 / 9;
  margin-bottom: clamp(20px, 2.6vw, 34px);
}
.project-hero_wide .project-hero__text,
.project-hero_bare .project-hero__text { max-width: 900px; }

/* Факты внутри разворота: две колонки, одна линия сверху и никакого низа —
   визуально это подпись к кадру, а не отдельная секция. */
.project-facts.project-facts_spec {
  display: block;
  margin: clamp(22px, 2.6vw, 32px) 0 0;
  padding: 0;
  border: 0;
}
.project-facts_spec .project-facts__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(11px, 1.2vw, 15px) 0;
  border-top: 1px solid var(--color-border, #E0DDDA);
}
.project-facts_spec .project-facts__item:last-child { border-bottom: 1px solid var(--color-border, #E0DDDA); }
.project-facts_spec .project-facts__label { margin: 0; }
.project-facts_spec .project-facts__value { text-align: right; }

/* Рассказ в колонке разворота: те же блоки, что и ниже по странице, но
   плотнее — колонка узкая, и воздух между ними съел бы её целиком. */
.project-hero__story { margin-top: clamp(20px, 2.4vw, 30px); }
.project-hero__story .project-story__block { margin-bottom: clamp(16px, 1.8vw, 22px); }
.project-hero__story .project-story__block:last-child { margin-bottom: 0; }
.project-hero__story .project-story__title { font-size: clamp(17px, 1.7vw, 19px); margin-bottom: 8px; }
.project-hero__story .project-story__text { font-size: 15px; line-height: 1.6; }

.project-hero__eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-text-light, #767676);
}
.project-hero__title {
  margin: 0 0 14px;
  font-size: clamp(29px, 4.4vw, 46px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.project-hero__lead {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--color-text-soft, #4A4F57);
  text-wrap: pretty;
}

/* Факты объекта — строка «этикеток», а не плитка карточек: цифры здесь
   подписывают проект, а не изображают статистику. */
.project-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin: 0 0 clamp(32px, 4vw, 52px);
  padding: clamp(20px, 2.4vw, 28px) 0;
  border-top: 1px solid var(--color-border, #E0DDDA);
  border-bottom: 1px solid var(--color-border, #E0DDDA);
}
.project-facts__item { min-width: 0; }
.project-facts__label {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--color-text-light, #767676);
}
.project-facts__value {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-primary, #1A1A1A);
}

/* Текстовая часть — на той же колонке, что и статьи блога. */
.project-story { max-width: var(--post-col); margin: 0 0 clamp(32px, 4vw, 52px); }
.project-story__block { margin: 0 0 clamp(24px, 3vw, 34px); }
.project-story__title {
  margin: 0 0 12px;
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.022em;
}
.project-story__text {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-primary, #1A1A1A);
  text-wrap: pretty;
}
.project-story__body { margin-top: clamp(24px, 3vw, 34px); }

.project-gallery { margin: 0 0 clamp(36px, 4.5vw, 60px); }
.project-gallery__title {
  margin: 0 0 clamp(16px, 2vw, 24px);
  font-size: clamp(21px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
}
/* Мозаика: сетка на 12 колонок, ряды собирает шаблон по ориентации кадров
   (см. projects/detail.php). Отсюда --span (сколько колонок занять), --start
   (с какой начать, если ряд собран вручную), --ar (соотношение ячейки) и
   --nat (родное соотношение файла — им пользуется мобильная версия). */
.project-gallery__mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 20px);
  align-items: start;
}
.project-shot {
  grid-column: var(--start, auto) / span var(--span, 6);
  display: block;
  overflow: hidden;
  border-radius: var(--radius-img, 8px);
  background: var(--color-surface, #F5F5F5);
  cursor: zoom-in;
}
.project-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--ar, 3 / 2);
  object-fit: cover;
  transition: transform .7s cubic-bezier(.16, 1, .3, 1);
}
.project-shot:hover img { transform: scale(1.035); }
.project-shot:focus-visible { outline: 2px solid var(--color-accent, #8C1F3B); outline-offset: 3px; }

.project-quote {
  max-width: var(--post-col);
  margin: 0 0 clamp(36px, 4.5vw, 60px);
}
.project-quote__text {
  margin: 0 0 12px;
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.5;
  font-style: italic;
  color: var(--color-text-soft, #4A4F57);
  text-wrap: pretty;
}
.project-quote__author { margin: 0; font-size: 14px; color: var(--color-text-light, #767676); }

/* Модели в проекте. Карточки те же, что в каталоге (dver_render_product_card):
   цена, коллекция, ховер ПГ → ПО, избранное — кейс должен вести к покупке той
   же дорогой, что и витрина. Колонки фиксированной ширины, а не 1fr: у кейса
   бывает две модели, и растянутые на весь ряд карточки выглядели бы поломкой. */
.project-models { margin: 0 0 clamp(36px, 4.5vw, 60px); }
.project-models__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin: 0 0 clamp(18px, 2.2vw, 28px);
}
.project-models__title {
  margin: 0;
  font-size: clamp(21px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.project-models__note {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-secondary, #6B6B6B);
}
.project-models__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 300px));
  justify-content: start;
  gap: clamp(16px, 2vw, 24px);
}

.project-cta {
  max-width: var(--post-col);
  margin: 0 0 clamp(36px, 5vw, 60px);
  padding: clamp(24px, 3vw, 36px);
  background: var(--color-surface, #F5F5F5);
  border: 1px solid var(--color-border, #E0DDDA);
  border-radius: var(--radius-card, 8px);
}
.project-cta__title { margin: 0 0 10px; font-size: clamp(19px, 2vw, 24px); font-weight: 700; letter-spacing: -0.022em; text-wrap: balance; }
.project-cta__text { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: var(--color-text-secondary, #6B6B6B); text-wrap: pretty; }
.project-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* «Другие проекты» — от одной до трёх карточек. Здесь важнее отсутствие дыр,
   чем колонки: flex даёт ряд нужной длины при любом количестве. */
.project-more__grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 2.6vw, 36px) clamp(18px, 2.2vw, 28px);
}
.project-more__grid > .project-card { flex: 1 1 260px; max-width: 420px; }

.project-more__title {
  margin: 0 0 clamp(16px, 2vw, 24px);
  font-size: clamp(21px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* --- Лайтбокс ------------------------------------------------------------- */

.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
  padding: clamp(48px, 6vw, 72px) clamp(12px, 3vw, 40px);
  background: rgba(20, 18, 19, .92);
}
.project-lightbox[aria-hidden="true"] { display: none; }
.project-lightbox__img {
  grid-column: 2;
  justify-self: center;
  max-width: 100%;
  max-height: calc(100dvh - clamp(96px, 12vw, 144px));
  width: auto;
  height: auto;
  border-radius: var(--radius-img, 8px);
}
.project-lightbox__close,
.project-lightbox__nav {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color .2s ease;
}
.project-lightbox__close:hover,
.project-lightbox__nav:hover { background: rgba(255, 255, 255, .24); }
.project-lightbox__close:focus-visible,
.project-lightbox__nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.project-lightbox__close {
  position: absolute;
  top: clamp(12px, 2vw, 24px);
  right: clamp(12px, 3vw, 40px);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
/* Крестик рисуем сами: юникодный символ в роли иконки выглядит чужим. */
.project-lightbox__x { position: relative; width: 16px; height: 16px; display: block; }
.project-lightbox__x::before,
.project-lightbox__x::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
}
.project-lightbox__x::before { transform: rotate(45deg); }
.project-lightbox__x::after { transform: rotate(-45deg); }

.project-lightbox__nav {
  width: 48px;
  height: 48px;
  position: relative;
  flex: 0 0 auto;
}
.project-lightbox__nav::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 11px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}
.project-lightbox__nav_prev::before { transform: translate(-40%, -50%) rotate(45deg); }
.project-lightbox__nav_next::before { transform: translate(-60%, -50%) rotate(-135deg); }
.project-lightbox__nav_prev { grid-column: 1; }
.project-lightbox__nav_next { grid-column: 3; }
.project-lightbox__counter {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(12px, 2vw, 24px);
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, .72);
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: no-preference) {
  .project-card { opacity: 0; animation: dv-rise .7s cubic-bezier(.16, 1, .3, 1) forwards; animation-delay: calc(var(--d, 0) * 70ms); }
}

/* Планшет: карточка в ряду одна, разворот тот же, но кадру можно дать больше
   места — в две колонки карточкам на этой ширине уже тесно. */
@media (max-width: 1024px) and (min-width: 701px) {
  .projects-grid { grid-template-columns: 1fr; }
  .projects-grid .project-card__link {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: clamp(20px, 3vw, 36px);
  }
  .projects-grid .project-card__media { width: 100%; min-height: 360px; max-height: 68vh; }
}

/* Разворот шапки кейса складывается раньше мозаики: в двух колонках ему тесно,
   а мозаика на этой ширине ещё держится. */
@media (max-width: 900px) {
  .project-hero_split { grid-template-columns: 1fr; gap: clamp(18px, 3vw, 26px); }
}

@media (max-width: 700px) {
  /* Телефон: разворот распрямляется — фото сверху, содержимое под ним. */
  .projects-grid { grid-template-columns: 1fr; }
  .projects-grid .project-card__link { display: block; }
  .projects-grid .project-card__media {
    margin: 0 0 clamp(14px, 1.6vw, 20px);
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: var(--ar, 3 / 2);
  }
  /* На телефоне мозаика распрямляется в ленту, и кадры показываются
     в СВОИХ пропорциях: обрезать вертикальное фото в узкой колонке незачем. */
  .project-shot { grid-column: 1 / -1; }
  .project-shot img { aspect-ratio: var(--nat, 3 / 2); }
  .project-hero_split .project-hero__media,
  .project-hero_wide .project-hero__media { aspect-ratio: var(--nat, 4 / 5); max-height: none; }
  .project-models__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-story__text { font-size: 16px; }
  .projects-page, .project-page { --post-col: none; }
  .project-lightbox { grid-template-columns: 1fr; padding-inline: 12px; }
  .project-lightbox__nav { position: absolute; bottom: clamp(40px, 9vw, 64px); }
  .project-lightbox__nav_prev { left: 16px; }
  .project-lightbox__nav_next { right: 16px; }
  .project-lightbox__img { grid-column: 1; }
}

/* ---------- Отзывы клиентов: виджет Яндекс Карт (dver_yandex_reviews) ----------
   Один блок на главной, в карточке товара и «О компании». Строка-шапка
   (заголовок слева, «Все отзывы» справа) как у остальных секций главной,
   под ней виджет во всю ширину блока. Рамка — на обёртке, не на iframe:
   так скругление и граница из дизайн-системы. */
.yreviews { margin: clamp(48px, 6vw, 88px) auto; }
.yreviews__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  margin: 0 0 clamp(20px, 2.5vw, 32px);
}
.yreviews__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  color: var(--color-text-primary, #1a1a1a);
}
.yreviews__link {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-primary, #1a1a1a);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.yreviews__link:hover { color: var(--color-accent, #8c1f3b); border-color: currentColor; }
.yreviews__frame {
  position: relative;
  overflow: hidden;
  /* Потолок 760px — предел самого виджета: шире Яндекс контент не тянет,
     правее 760 остаётся пустой фон. Поэтому ограничиваем и центрируем. */
  max-width: 760px;
  margin: 0 auto;
  height: clamp(520px, 66vh, 680px);
  border: 1px solid var(--color-border, #e0ddda);
  border-radius: var(--radius-card, 8px);
  background: var(--color-surface, #f5f5f5);
}
.yreviews__iframe { display: block; width: 100%; height: 100%; border: 0; }
/* Подпись-атрибуция из кода виджета Яндекса: ей отведён низ фрейма. */
.yreviews__caption {
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  padding: 0 16px;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  color: var(--color-text-light, #767676);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Главная: та же линия 1440, что у шапки, кейсов и журнала. */
.yreviews_home {
  max-width: var(--layout-max, 1440px);
  padding-left: var(--layout-pad);
  padding-right: var(--layout-pad);
}

/* Карточка товара: секция стоит в потоке .pdp, ритм как у соседних блоков. */
.yreviews_pdp { margin: clamp(40px, 5vw, 72px) 0 0; }

@media (max-width: 900px) {
  .yreviews__frame { height: clamp(480px, 75vh, 600px); }
}

/* ---------- Страница входа /auth/ ----------
   Свой шаблон system.auth.form (классы .auth-form__* общие с попапом в шапке).
   Старые правила .auth-page .bx-* относились к штатной разметке и больше
   не применяются — оставлены на случай, если где-то всплывёт стандартная форма. */
.auth-page__box {
  max-width: 420px;
  margin: clamp(24px, 5vw, 56px) auto clamp(40px, 8vw, 80px);
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--color-border, #E0DDDA);
  border-radius: var(--radius-card, 8px);
  background: var(--color-bg-header, #fff);
}
.auth-page__title {
  margin: 0 0 22px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.2;
  color: var(--color-text-primary, #1A1A1A);
}
.auth-page__remember {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--color-text-soft, #4A4F57);
  cursor: pointer;
}
.auth-page__remember input { width: 16px; height: 16px; accent-color: var(--color-accent, #8C1F3B); }
.auth-page__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border, #E0DDDA);
}
.auth-page__link {
  font-size: 14px;
  color: var(--color-text-soft, #4A4F57);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.auth-page__link:hover { color: var(--color-accent, #8C1F3B); border-color: currentColor; }
.auth-page__done { margin: 0 0 14px; font-size: 16px; }

/* Позиция заказа без фотографии (погонаж, фурнитура, услуги из кабинета менеджера):
   пустая рамка на месте изображения читалась как «фото не загрузилось».
   Плюс такие карточки не тянутся по высоте соседа — им нечем заполнять место. */
.order-door_plain .cart-item__door-section { grid-template-columns: minmax(0, 1fr); display: block; }
.order-door_plain .cart-item__info { padding-left: 0; }
.order-door_plain { align-self: start; }

/* End */


/* Start:/css/search.css?179207159513684*/
/* ==========================================================================
   Поиск по сайту — всплывающее окно (13.10.2026)

   Компьютер: панель под шапкой по центру, затемнение с лёгким размытием.
   Телефон: на весь экран, поле сверху, результаты — под большим пальцем.
   Классы без подстрок «input» и «field»: общие правила main.css по этим
   подстрокам и `input:focus-visible` уже ломали прошлый поиск.
   Цвета — DESIGN.md: бордовый только у выбранного и у действия.
   ========================================================================== */

.site-search {
  --ss-ink: #1A1A1A;
  --ss-soft: #6B6B6B;
  --ss-mute: #767676;
  --ss-line: #E0DDDA;
  --ss-warm: #F7F5F2;
  --ss-accent: #8C1F3B;
  --ss-accent-wash: #F7EFF2;
  --ss-ease: cubic-bezier(.16, 1, .3, 1);
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(56px, 11vh, 120px) 20px 24px;
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ss-ink);
}
.site-search[aria-hidden="true"] { display: none; }
.site-search *, .site-search *::before, .site-search *::after { box-sizing: border-box; }

.site-search__scrim {
  position: absolute;
  inset: 0;
  background: rgba(26, 16, 20, .46);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: ss-fade .2s ease-out;
}

.site-search__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(840px, 100%);
  max-height: calc(100dvh - clamp(56px, 11vh, 120px) - 24px);
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 30px 80px -30px rgba(28, 14, 20, .55);
  animation: ss-in .32s var(--ss-ease);
}

/* ---------- строка поиска ---------- */

.site-search__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px 0 22px;
  border-bottom: 1px solid var(--ss-line);
  transition: box-shadow .2s;
}
.site-search__bar:focus-within { box-shadow: inset 0 -2px 0 var(--ss-accent); }
.site-search__lens { width: 22px; height: 22px; flex: none; color: var(--ss-soft); }
.site-search .site-search__q {
  flex: 1;
  min-width: 0;
  height: 68px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  font-family: inherit;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--ss-ink);
  -webkit-appearance: none;
  appearance: none;
}
.site-search .site-search__q:focus,
.site-search .site-search__q:focus-visible { outline: none; box-shadow: none; }
.site-search__q::placeholder { color: #9A938C; font-weight: 400; }
.site-search__q::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.site-search__q::selection { background: var(--ss-accent-wash); color: var(--ss-accent); }

.site-search__x {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ss-soft);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.site-search__x svg { width: 16px; height: 16px; }
.site-search__x:hover { background: var(--ss-warm); color: var(--ss-ink); }
.site-search__x:focus-visible { outline: 2px solid var(--ss-accent); outline-offset: 2px; }

/* ---------- тело ---------- */

.site-search__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 10px 14px;
  scrollbar-width: thin;
  scrollbar-color: #D3CDC7 transparent;
}

.ss-group { padding: 10px 0 4px; }
.ss-group + .ss-group { border-top: 1px solid #EFEBE7; margin-top: 4px; }
.ss-group__title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 4px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ss-mute);
}
.ss-group__title b { font-weight: 600; letter-spacing: 0; color: #A39B95; }
.ss-group__more {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ss-accent);
  text-decoration: none;
}
.ss-group__more:hover { color: #6E1630; }
.ss-group__more:focus-visible { outline: 2px solid var(--ss-accent); outline-offset: 2px; }

.ss-note { margin: 8px 12px 0; font-size: 13px; color: var(--ss-soft); }

/* результат */
.ss-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--ss-ink);
  text-decoration: none;
  animation: ss-row .35s var(--ss-ease) both;
  animation-delay: calc(var(--i, 0) * 18ms);
}
.ss-opt[aria-selected="true"] { background: var(--ss-warm); }
.ss-opt[aria-selected="true"] .ss-title { color: var(--ss-accent); }
.ss-opt:focus-visible { outline: 2px solid var(--ss-accent); outline-offset: -2px; }

/* Полотно — вертикальная миниатюра, как сама дверь. */
.ss-thumb {
  display: grid;
  place-items: center;
  width: 38px;
  height: 58px;
  flex: none;
  overflow: hidden;
  border-radius: 3px;
  background: var(--ss-warm);
}
.ss-thumb img { width: 100%; height: 100%; object-fit: contain; }
/* Коллекция — обложка-интерьер, горизонтальная. */
.ss-thumb_wide { width: 64px; height: 42px; }
.ss-thumb_wide img { object-fit: cover; }
.ss-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 6px;
  background: var(--ss-warm);
  color: var(--ss-soft);
}
.ss-icon svg { width: 18px; height: 18px; }

.ss-main { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ss-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  transition: color .15s;
}
.ss-title mark { background: none; color: inherit; box-shadow: inset 0 -2px 0 rgba(140, 31, 59, .35); }
.ss-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--ss-soft); font-variant-numeric: tabular-nums; }
.ss-go { width: 16px; height: 16px; flex: none; color: #B5AEA7; opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .25s var(--ss-ease), color .15s; }
.ss-opt[aria-selected="true"] .ss-go { opacity: 1; transform: none; color: var(--ss-accent); }

/* пустое поле: недавнее, коллекции, разделы (редизайн 15.10.2026) */

/* Случайные коллекции карточками: обложка, под ней название и «N моделей · от …». */
.ss-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; padding: 6px 12px 12px; }
.ss-col {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
  color: var(--ss-ink);
  text-decoration: none;
  animation: ss-row .4s var(--ss-ease) both;
}
.ss-col:nth-child(2) { animation-delay: 30ms; }
.ss-col:nth-child(3) { animation-delay: 60ms; }
.ss-col:nth-child(4) { animation-delay: 90ms; }
.ss-col:nth-child(5) { animation-delay: 120ms; }
.ss-col:nth-child(6) { animation-delay: 150ms; }
.ss-col__img {
  display: block;
  aspect-ratio: 16 / 10;
  margin-bottom: 7px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ss-warm);
}
.ss-col__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ss-ease); }
.ss-col:hover .ss-col__img img { transform: scale(1.04); }
.ss-col__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; line-height: 1.3; transition: color .15s; }
.ss-col:hover .ss-col__name { color: var(--ss-accent); }
.ss-col__meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--ss-soft); font-variant-numeric: tabular-nums; }
.ss-col:focus-visible { outline: 2px solid var(--ss-accent); outline-offset: 4px; border-radius: 6px; }
.ss-col_skel {
  aspect-ratio: 16 / 13;
  border-radius: 6px;
  background: linear-gradient(90deg, #F4F1EE 0%, #FAF8F6 50%, #F4F1EE 100%) 0 0 / 200% 100%;
  animation: ss-shimmer 1.2s linear infinite;
}

.ss-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 12px 8px; }
.ss-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--ss-line);
  border-radius: 100px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ss-ink);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.ss-chip svg { width: 15px; height: 15px; color: var(--ss-mute); }
.ss-chip:hover { border-color: var(--ss-accent); color: var(--ss-accent); }
.ss-chip:focus-visible, .ss-quick__link:focus-visible, .ss-btn:focus-visible { outline: 2px solid var(--ss-accent); outline-offset: 2px; }
.ss-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 4px 12px 8px; }
.ss-quick__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--ss-line);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ss-ink);
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.ss-quick__link:hover { border-color: var(--ss-accent); color: var(--ss-accent); }
.ss-quick__link .ss-go { opacity: 1; transform: none; }
.ss-quick__link:hover .ss-go { color: var(--ss-accent); transform: translateX(2px); }

/* загрузка */
.ss-group_loading { display: grid; gap: 8px; padding: 14px 12px; }
.ss-skel {
  height: 54px;
  border-radius: 6px;
  background: linear-gradient(90deg, #F4F1EE 0%, #FAF8F6 50%, #F4F1EE 100%) 0 0 / 200% 100%;
  animation: ss-shimmer 1.2s linear infinite;
}

/* ничего не нашлось */
.ss-empty { display: grid; gap: 10px; justify-items: start; padding: 26px 14px 18px; }
.ss-empty__title { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.ss-empty__text { margin: 0; max-width: 56ch; font-size: 14px; line-height: 1.6; color: var(--ss-soft); }
.ss-empty__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.ss-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ss-ink);
  border-radius: 3px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ss-ink);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.ss-btn:hover { border-color: var(--ss-accent); color: var(--ss-accent); }
.ss-btn_primary { border-color: var(--ss-accent); background: var(--ss-accent); color: #fff; }
.ss-btn_primary:hover { background: #6E1630; border-color: #6E1630; color: #fff; }

/* подвал */
.site-search__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 12px 22px;
  border-top: 1px solid var(--ss-line);
  background: #FBFAF9;
  font-size: 12px;
  color: var(--ss-mute);
}
.site-search__all { font-size: 13px; font-weight: 600; color: var(--ss-accent); text-decoration: none; }
.site-search__all:hover { color: #6E1630; }

/* кнопка поиска в бургер-меню (телефон) */
.mob-search-open { display: block; width: 100%; text-align: left; color: #9A938C; cursor: pointer; }

@keyframes ss-fade { from { opacity: 0; } }
@keyframes ss-in { from { opacity: 0; transform: translateY(-14px) scale(.985); } }
@keyframes ss-row { from { opacity: 0; transform: translateY(6px); } }
@keyframes ss-shimmer { to { background-position: -200% 0; } }

/* ---------- телефон ---------- */
@media (max-width: 760px) {
  .site-search { padding: 0; }
  .site-search__scrim { display: none; }
  .site-search__panel {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    animation: ss-up .3s var(--ss-ease);
  }
  .site-search__bar { padding: env(safe-area-inset-top) 6px 0 16px; }
  .site-search .site-search__q { height: 60px; font-size: 17px; }
  .site-search__x { width: 44px; height: 44px; }
  .site-search__body { padding: 6px 6px 18px; }
  .ss-opt { min-height: 56px; padding: 8px 10px; }
  .ss-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px 10px 8px; }
  .ss-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; padding: 6px 10px 12px; }
  .ss-cols > :nth-child(n+5) { display: none; }
  .site-search__foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .ss-empty__acts .ss-btn { flex: 1 1 100%; justify-content: center; }
}
@keyframes ss-up { from { opacity: 0; transform: translateY(24px); } }

@media (prefers-reduced-motion: reduce) {
  .site-search__scrim, .site-search__panel, .ss-opt, .ss-skel, .ss-col, .ss-col_skel { animation: none; }
  .ss-col__img img { transition: none; }
}

/* End */


/* Start:/css/responsive.css?178876690614828*/


:root {
  --layout-max: 1440px;
  --layout-pad: clamp(12px, 3vw, 40px);
}

.page {
  overflow-x: hidden;
}

main,
.hero,
.section,
.about-page,
.product-page,
.cart-page {
  width: 100%;
}

.header__top-row,
.header__level_2,
.about-page,
.product-page,
.cart-page {
  padding-left: var(--layout-pad);
  padding-right: var(--layout-pad);
}

.header__top-row,
.header__level_2,
.about-page,
.product-page,
.cart-page,
.section__head,
.footer__top {
  max-width: var(--layout-max);
  margin-left: auto;
  margin-right: auto;
}

.hero {
  min-height: clamp(360px, 56vw, 740px);
  height: auto;
  padding-top: clamp(32px, 8vw, 88px);
  padding-bottom: clamp(32px, 8vw, 88px);
}

.section__cards,
.section__cards_wrap,
.product-section__cards {
  width: 100%;
}

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

.news__content {
  flex-direction: column;
  gap: clamp(16px, 3vw, 24px);
}

.news__tabs {
  justify-content: flex-start;
}

.about-banner__image,
.about-block__image,
.about-quality {
  width: 100%;
}

/* Боковой отступ уже задан на .about-page (а для .about-quality__content — на самой
   секции, которая выходит из контейнера отрицательным margin и возвращает padding).
   Повторный --layout-pad здесь давал двойной отступ: H1 стоял на 40px, а все H2
   внутри секций — на 80px, из-за чего страница читалась как съехавшая по сетке. */
.about-intro,
.about-block,
.about-quality__content {
  max-width: var(--layout-max);
  margin-left: auto;
  margin-right: auto;
}

.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  margin-bottom: clamp(28px, 5vw, 72px);
}

.about-block_image-left .about-block__image-wrap {
  order: -1;
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 80px);
}

.product__gallery {
  min-width: 0;
}

.product__main-image {
  min-height: clamp(320px, 42vw, 620px);
}
@media (max-width: 768px) {
  .product__main-image {
    min-height: 0;
    height: 50vh;
    max-height: 50vh;
  }
  .product__main-image img {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
}

.product__main-image img {
  max-width: min(100%, 560px);
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product__colors {
  position: static;
  min-height: 0;
  gap: 10px;
}

.product__color,
.product__color_more,
.product__color-custom-wrap {
  position: static;
}

.product__color-custom-wrap {
  width: auto;
  height: auto;
}

.product__color {
  width: 56px;
  height: 56px;
}

.product__color-inner {
  height: 54px;
  border-width: 4px;
}

.product__color_more {
  width: 56px;
  height: 56px;
  border-width: 4px;
}

.product__actions {
  gap: 12px;
}

.product__btn_cart {
  min-width: 0;
}

.product-help {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 4vw, 40px);
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 var(--layout-pad);
}

.cart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(16px, 3vw, 32px);
  align-items: start;
}

.cart-summary {
  position: sticky;
  top: 96px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
}

.modal[aria-hidden="false"] {
  display: block;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 32px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  margin: 12px auto;
  background: #ffffff;
  padding: clamp(14px, 2.2vw, 28px);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal__close {
  border: 0;
  width: 34px;
  height: 34px;
  background: transparent;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.modal__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.modal__tab {
  border: 1px solid #c9c9c9;
  background: #fff;
  min-height: 40px;
  cursor: pointer;
}

.modal__tab_active {
  border-color: var(--color-accent, #8C1F3B);
  color: var(--color-accent, #8C1F3B);
}

.config-step {
  display: none;
}

.config-step_active {
  display: block;
}

.config-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: clamp(14px, 2.5vw, 24px);
}

.config-layout__image {
  background: #f6f1ea;
  min-height: clamp(240px, 40vw, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.config-layout__image img {
  width: 100%;
  max-width: 360px;
  height: auto;
  object-fit: contain;
}

.config-details,
.config-items {
  border: 1px solid #e8e8e8;
}

.config-detail-item,
.config-item {
  border-bottom: 1px solid #e8e8e8;
}

.config-detail-item:last-child,
.config-item:last-child {
  border-bottom: 0;
}

.config-item__header {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.config-detail-toggle,
.config-item__toggle {
  width: 24px;
  height: 24px;
  border: none;            
  background-color: transparent;
  cursor: pointer;
}

.config-item__toggle[aria-expanded="true"]::before {
  content: "−";
}

.config-item__toggle[aria-expanded="false"]::before {
  content: "+";
}

.config-detail-options.is-open,
.config-item__body:not([hidden]) {
  padding: 0 12px 12px;
}

.config-chip {
  border: 1px solid #bdbdbd;
  background: #fff;
  min-height: 34px;
  padding: 0 12px;
  cursor: pointer;
}

.config-chip_active {
  border-color: var(--color-accent, #8C1F3B);
  color: var(--color-accent, #8C1F3B);
}

.config-item__qty {
  display: inline-flex;
  align-items: center;
}

.config-qty-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #bdbdbd;
  background: #fff;
  cursor: pointer;
}

.config-qty-input {
  width: 48px;
  height: 34px;
  border: 1px solid #bdbdbd;
  border-left: 0;
  border-right: 0;
  text-align: center;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 14px;
}

.modal__btn {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--color-accent, #8C1F3B);
  background: var(--color-accent, #8C1F3B);
  color: #fff;
  cursor: pointer;
}

.modal__btn_secondary {
  background: #fff;
  color: var(--color-accent, #8C1F3B);
}

@media (max-width: 1200px) {
  .header__actions {
    gap: 14px;
  }

  .header__phone {
    font-size: 16px;
  }

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

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

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

@media (max-width: 900px) {
  .header__level_1 {
    display: none;
  }

  .header__level_2 {
    gap: 10px;
    flex-wrap: wrap;
  }

  .header__nav {
    width: 100%;
    order: 3;
    justify-content: space-between;
  }

  .header__logo {
    order: 1;
  }

  .header__actions {
    order: 2;
    margin-left: auto;
  }

  .header__phone {
    display: none;
  }

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

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

  .about-block_image-left .about-block__image-wrap {
    order: 0;
  }

  .modal__panel {
    width: min(100%, 100vw);
    margin: 0;
    max-height: 100vh;
    min-height: 100vh;
  }

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

  .config-layout__left {
    order: 2;
  }

  .config-layout__right {
    order: 1;
  }
}

@media (max-width: 560px) {
  .header__logo img {
    width: 136px;
    height: auto;
  }

  .header__actions {
    gap: 10px;
  }

  .header__icon-btn {
    width: 20px;
    height: 20px;
  }

  .hero__title {
    max-width: 26ch;
  }

  .hero__btn {
    width: 100%;
    justify-content: center;
  }

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

  .section_in-stock .section__cards {
    padding-bottom: 22px;
  }

  .news__tabs {
    gap: 18px;
  }

  .product__thumbs {
    order: 2;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .product__actions {
    flex-wrap: wrap;
  }

  .product__btn_cart,
  .product__btn_wishlist {
    width: 100%;
  }

  .product__btn_wishlist {
    height: 48px;
  }

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

  .modal__footer {
    justify-content: stretch;
  }

  .modal__btn {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .cart-item__action-links {
    flex-wrap: wrap;
    gap: 8px;
  }

  .cart-item__accessories-group {
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .lead__form {
    flex-direction: column;
  }

  .lead__submit {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .header__nav {
    gap: 12px;
  }
}

@media (max-width: 768px) {

  .header__top-row {
    padding: 6px var(--layout-pad);
    font-size: 12px;
  }
  .header__level_2 {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px var(--layout-pad);
  }
  .header__nav {
    width: 100%;
    order: 3;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    scrollbar-width: none;
  }
  .header__nav::-webkit-scrollbar { display: none; }
  .header__nav-item { white-space: nowrap; font-size: 13px; }
  .header__phone { font-size: 15px; }
  .header__actions { gap: 10px; }
  .header__icon-btn svg { width: 18px; height: 18px; }

  .hero-new__col_left { min-height: 300px; }
  .hero-new__content { padding: 24px 16px; }
  .hero-new__title { font-size: clamp(22px, 5vw, 32px); }
  .hero-new__subtitle { font-size: 11px; }
  .hero-new__btn { width: 100%; justify-content: center; }

  .promo-slider { max-width: 100%; }
  .promo-slider__slide.is-active { flex-direction: column; }
  .promo__title { font-size: clamp(20px, 5vw, 28px); }
  .promo__text { font-size: 14px; }
  .promo-slider__nav { bottom: 12px; }

  .section__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section__title { font-size: clamp(18px, 5vw, 24px); }
  .section__cards_wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

  .card__title { font-size: 14px; }
  .card__price { font-size: 14px; }
  .card__image { min-height: 160px; }

  .product { grid-template-columns: 1fr; gap: 24px; }
  .product__gallery { order: 1; }
  .product__info { order: 2; }
  .product__title { font-size: clamp(20px, 5vw, 28px); }
  .product__price { font-size: clamp(18px, 4vw, 24px); }
  .product__sizes { flex-wrap: wrap; gap: 6px; }
  .product__size { padding: 8px 12px; font-size: 13px; }
  .product__color { width: 44px; height: 44px; }
  .product__color-inner { height: 42px; }
  .product__color_more { width: 44px; height: 44px; }
  .product__actions { flex-direction: column; gap: 10px; }
  .product__btn_cart,
  .product__btn_wishlist { width: 100%; }
  .product__thumbs { overflow-x: auto; flex-wrap: nowrap; }
  .product__thumb { flex: 0 0 60px; }

  .cfg-section__body.is-open { grid-template-columns: repeat(2, 1fr); }
  .cfg-color-grid { grid-template-columns: repeat(3, 1fr); }

  .product__blade-types { flex-direction: column; }
  .product__blade-btn { width: 100%; justify-content: flex-start; }

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

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

  .catalog-grid,
  .collections-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .collection-header__title { font-size: clamp(20px, 5vw, 28px); }
  .collection-header__text { font-size: 14px; }
  .collection-content { grid-template-columns: 1fr; }

  .cart { grid-template-columns: 1fr; gap: 16px; }
  .cart-summary {
    position: static;
    order: -1;
  }
  .cart-item__door-section { grid-template-columns: 1fr; gap: 12px; }
  .cart-item__image-wrap {
    width: 100%;
    max-width: 180px;
    min-height: 120px;
    margin: 0 auto;
  }
  .cart-item__header { flex-direction: column; gap: 8px; align-items: flex-start; }
  .cart-item__title { font-size: 16px; }
  .cart-item__props { grid-template-columns: 1fr; gap: 4px; }
  .cart-item__prop-row { font-size: 13px; }
  .cart-item__qty-row { flex-wrap: wrap; gap: 10px; }
  .cart-item__action-links { flex-wrap: wrap; gap: 8px; }
  .cart-item__accessories-group { padding: 12px 8px; }
  .cart-item__accessory { flex-direction: column; gap: 8px; align-items: flex-start; }
  .cart-item__accessory-img { width: 60px; flex-shrink: 0; }
  .cart-summary__row { font-size: 14px; }
  .cart-summary__total { font-size: 18px; }
  .cart-summary__btn { width: 100%; }
  .cart-meta { flex-direction: column; gap: 8px; align-items: flex-start; }

  .contacts__grid { grid-template-columns: 1fr; gap: 24px; }
  .contacts__map { min-height: 300px; }

  .about-block { grid-template-columns: 1fr; gap: 24px; }
  .about-intro { padding: 24px 0; } /* боковой отступ — на .about-page, не дублируем */

  .footer__top { flex-direction: column; gap: 32px; padding: 32px var(--layout-pad); }
  .footer__columns { flex-direction: column; gap: 24px; }
  .footer__brand { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; padding: 16px var(--layout-pad); }

  .lead__form { flex-direction: column; gap: 10px; }
  .lead__submit { width: 100%; }
  .lead__title { font-size: clamp(18px, 5vw, 24px); }

  .news__tabs { flex-wrap: wrap; gap: 12px; }
  .news__tab { font-size: 14px; }

  .cfg-modal { flex-direction: column; }
  .cfg-modal__image { max-height: 55vh; min-height: 200px; }
  .cfg-modal__side { max-height: 60vh; }
  .cfg-stepper__label { display: none; }
  .cfg-stepper__num { width: 28px; height: 28px; font-size: 13px; }
  .cfg-modal__topbar { padding: 8px 12px; }
  .cfg-modal__footer { padding: 10px 12px; flex-direction: column; gap: 8px; }
  .cfg-modal__actions { flex-direction: column; gap: 8px; }
  .cfg-btn { width: 100%; text-align: center; }
  .config-layout { grid-template-columns: 1fr; }

  .account-page__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .section__cards_wrap { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .catalog-grid,
  .collections-grid { grid-template-columns: 1fr; }
  .card__image { min-height: 140px; }
  .product__color { width: 36px; height: 36px; }
  .product__color-inner { height: 34px; }
  .product__color_more { width: 36px; height: 36px; }
  .cart-item__image-wrap { max-width: 140px; }
  .cfg-modal__image { max-height: 55vh; }
}

/* End */


/* Start:/css/transitions.css?17912318346263*/

:root {
  --t-fast: 160ms;
  --t-base: 260ms;
  --t-slow: 380ms;
  --t-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.t-card-resize {
  transition: transform var(--t-base) var(--t-ease),
    box-shadow var(--t-base) var(--t-ease);
  will-change: transform;
}
.t-card-resize:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
}

@keyframes t-num-pop {
  0% { transform: translateY(0.18em) scale(0.92); opacity: 0; }
  60% { transform: translateY(-0.04em) scale(1.04); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.t-num-pop {
  animation: t-num-pop var(--t-base) var(--t-spring);
  display: inline-block;
}

@keyframes t-badge-pop {
  0% { transform: scale(0) translate(4px, -4px); opacity: 0; }
  55% { transform: scale(1.25) translate(0, 0); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.t-badge-pop {
  animation: t-badge-pop var(--t-base) var(--t-spring);
}

@keyframes t-modal-in {
  from { transform: translateY(14px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes t-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.auth-modal[aria-hidden="false"] .auth-modal__panel,
.search-overlay[aria-hidden="false"] .search-overlay__panel,
.call-modal[aria-hidden="false"] .call-modal__panel {
  animation: t-modal-in var(--t-base) var(--t-ease);
}
.auth-modal[aria-hidden="false"] .auth-modal__backdrop,
.search-overlay[aria-hidden="false"] .search-overlay__backdrop,
.call-modal[aria-hidden="false"] .call-modal__backdrop {
  animation: t-backdrop-in var(--t-fast) linear;
}

/* Бургер-меню (05.10.2026).
   Открытие: экран меню раскрывается кругом из кнопки бургера (центр и радиус
   ставит load-components.js: --mm-x, --mm-y, --mm-r), пункты поднимаются
   лесенкой (--mm-i — номер пункта в панели), крестик доворачивается.
   Закрытие: пункты гаснут разом, круг схлопывается обратно в кнопку.
   Меню больше не прячется display:none — иначе закрытие нечем анимировать;
   скрыто visibility, которая переключается после схлопывания. */
.mob-menu,
.mob-menu[aria-hidden="false"] {
  display: block;
}
.mob-menu {
  visibility: hidden;
  pointer-events: none;
  clip-path: circle(0px at var(--mm-x, 24px) var(--mm-y, 28px));
  transition: clip-path 0.55s cubic-bezier(0.7, 0, 0.2, 1) 0.12s, visibility 0s linear 0.7s;
}
.mob-menu[aria-hidden="false"] {
  visibility: visible;
  pointer-events: auto;
  clip-path: circle(var(--mm-r, 150vmax) at var(--mm-x, 24px) var(--mm-y, 28px));
  transition: clip-path 0.75s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}
.mob-menu .mob-panel :is(.mob-menu__city, .mob-panel__search, .mob-nav__item, .mob-menu__footer > *) {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.16s ease, transform 0.2s ease;
}
.mob-menu[aria-hidden="false"] .mob-panel_active :is(.mob-menu__city, .mob-panel__search, .mob-nav__item, .mob-menu__footer > *) {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.5s ease calc(0.14s + min(var(--mm-i, 0), 12) * 45ms),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) calc(0.14s + min(var(--mm-i, 0), 12) * 45ms);
}
/* Значки соцсетей «выпрыгивают» последними. */
.mob-menu .mob-menu__social-link {
  transform: scale(0.4);
  transition: transform 0.2s ease;
}
.mob-menu[aria-hidden="false"] .mob-panel_active .mob-menu__social-link {
  transform: none;
  transition: transform 0.6s var(--t-spring) calc(0.2s + min(var(--mm-i, 0), 16) * 45ms);
}
.mob-menu .mob-panel__close svg {
  transform: rotate(-90deg) scale(0.6);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.15s ease;
}
.mob-menu[aria-hidden="false"] .mob-panel__close svg {
  transform: none;
  opacity: 1;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.25s, opacity 0.3s ease 0.25s;
}
/* Отклик на касание пункта. */
.mob-nav__item:active { background: #F7F5F2; }
.mob-menu__cta:active,
.mob-menu__social-link:active { transform: scale(0.96); }

.cfilter__overlay {
  animation: t-backdrop-in var(--t-fast) linear;
}

#mobile-menu-open img,
.header__burger img {
  transition: transform var(--t-base) var(--t-ease), opacity var(--t-fast) linear;
}
#mobile-menu-open[aria-expanded="true"] img,
.header__burger[aria-expanded="true"] img {
  transform: rotate(90deg) scale(0.9);
  opacity: 0.6;
}

@keyframes t-shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-8px); }
  30% { transform: translateX(7px); }
  45% { transform: translateX(-5px); }
  60% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}
.t-shake {
  animation: t-shake var(--t-slow) var(--t-ease);
}

@media (prefers-reduced-motion: reduce) {
  .t-card-resize,
  .t-card-resize:hover,
  .t-num-pop,
  .t-badge-pop,
  .t-shake,
  .auth-modal[aria-hidden="false"] .auth-modal__panel,
  .search-overlay[aria-hidden="false"] .search-overlay__panel,
  .call-modal[aria-hidden="false"] .call-modal__panel,
  .auth-modal[aria-hidden="false"] .auth-modal__backdrop,
  .search-overlay[aria-hidden="false"] .search-overlay__backdrop,
  .call-modal[aria-hidden="false"] .call-modal__backdrop,
  .cfilter__overlay,
  #mobile-menu-open[aria-expanded="true"] img,
  .header__burger[aria-expanded="true"] img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Бургер без движения: открывается и закрывается сразу, пункты на месте. */
@media (prefers-reduced-motion: reduce) {
  .mob-menu,
  .mob-menu[aria-hidden="false"] {
    clip-path: none;
    transition: none;
  }
  .mob-menu .mob-panel :is(.mob-menu__city, .mob-panel__search, .mob-nav__item, .mob-menu__footer > *),
  .mob-menu .mob-menu__social-link,
  .mob-menu .mob-panel__close svg {
    opacity: 1;
    transform: none;
    transition: none !important;
  }
}

/* End */


/* Start:/css/product-detail.css?179236092819809*/


.pdp {
  max-width: 1440px;
  margin: 0 auto;
  /* Боковой отступ — единый токен --layout-pad (clamp(12px,3vw,40px)), как у .container
     и .catalog-page. Раньше был clamp(16px,5vw,80px) → карточка была на ~80px уже каталога. */
  padding: 0 var(--layout-pad) clamp(48px, 6vw, 96px);
}

.pdp__main {
  display: grid;
  /* Обе стороны тянутся поровну (галерея масштабируется), а расстояние между ними —
     фиксированные 36px. Раньше колонки были minmax(0,600px) + justify-content:space-between:
     галерея упиралась в 600px и переставала расти, а весь остаток ширины уходил в зазор,
     из-за чего «расстояние между сторонами» гуляло, а не держалось на 36px. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  margin-top: 24px;
}

.pdp__gallery { min-width: 0; }
.pdp__stage {
  position: relative;
  aspect-ratio: 600 / 560;
  background: var(--color-section-alt, #f5f5f5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  
  padding: 60px 0;
  box-sizing: border-box;
}
.pdp__stage img {
  /* width/height 100% (не max-*), чтобы object-fit:contain реально управлял вписыванием:
     iOS Safari игнорирует max-height у flex-картинки и растягивает её (выглядит как cover).
     Тот же надёжный паттерн, что у .pdp__thumb img ниже. */
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.pdp__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 55px;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary, #1a1a1a);
  transition: background 0.18s;
}
.pdp__arrow:hover { background: #fff; }
.pdp__arrow_prev { left: 0; }
.pdp__arrow_next { right: 0; }
.pdp__arrow::before {
  content: "";
  width: 12px; height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}
.pdp__arrow_prev::before { transform: rotate(-135deg); margin-left: 4px; }
.pdp__arrow_next::before { transform: rotate(45deg); margin-right: 4px; }

.pdp__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.pdp__thumb {
  flex: 0 0 auto;
  width: 80px; height: 80px;
  border: 1px solid var(--color-border, #e6e2dc);
  background: var(--color-section-alt, #f5f5f5);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}
.pdp__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pdp__thumb_active { border-color: var(--color-accent, #8c1f3b); }

.pdp__info { min-width: 0; display: flex; flex-direction: column; }
.pdp__eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent, #8c1f3b);
  font-weight: 600;
}
.pdp__title {
  margin: 0 0 20px;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text-primary, #1a1a1a);
}
.pdp__divider {
  height: 1px;
  background: var(--color-border, #e6e2dc);
  margin: 4px 0 24px;
}

.pdp-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--color-border, #e6e2dc);
  border-radius: var(--radius-input, 6px);
  overflow: hidden;
  margin-bottom: 28px;
}
.pdp-toggle__btn {
  appearance: none;
  border: none;
  border-radius: 0; 
  background: var(--color-section-alt, #f5f5f5);
  padding: 13px 8px;
  font: inherit;
  font-size: 15px;
  /* Кнопка лежит на сером #F5F5F5, а не на белом: светло-серый текст давал
     здесь 4.17:1. Берём токен на ступень темнее — на этом фоне это 4.88:1. */
  color: var(--color-text-secondary, #6B6B6B);
  cursor: pointer;
  transition: color 0.18s, background 0.18s, box-shadow 0.18s;
}
.pdp-toggle__btn.is-active {
  background: #fff;
  color: var(--color-text-primary, #1a1a1a);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--color-accent, #8c1f3b);
}

.pdp-section { margin-bottom: 28px; }
.pdp-section__label {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--color-text-secondary, #4f4f4f);
}
.pdp-section__label b { font-weight: 600; color: var(--color-text-primary, #1a1a1a); }
.pdp-sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.pdp-section__hint { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--color-text-secondary, #4f4f4f); }
.pdp-size {
  appearance: none;
  border: 1px solid var(--color-border, #e6e2dc);
  background: #fff;
  border-radius: var(--radius-input, 6px);
  padding: 9px 16px;
  font: inherit;
  font-size: 14px;
  color: var(--color-text-primary, #1a1a1a);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}
.pdp-size:hover { border-color: var(--color-text-primary, #1a1a1a); }
.pdp-size.is-active {
  background: var(--color-accent, #8c1f3b);
  border-color: var(--color-accent, #8c1f3b);
  color: #fff;
}

.pdp-coating__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.pdp-coating__title { font-size: 14px; color: var(--color-text-secondary, #4f4f4f); }
.pdp-coating__title b { font-weight: 600; color: var(--color-text-primary, #1a1a1a); }
.pdp-coating__all {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: var(--color-accent, #8c1f3b);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
/* Число колонок считает auto-fill, а не фиксированные семь.
   Жёсткая раскладка требовала ровно 611px и при более узкой колонке карточки
   просто вылезала за её край: на ноутбуке уже, чем ~1350px, и в окне
   конфигуратора у менеджера ряд образцов обрезался. Первые два трека
   (активный образец и отступ) остаются заданными — рисунок первой строки
   не меняется, а при ширине от 611px раскладка ровно та же, что была. */
.pdp-coating__swatches {
  display: grid;
  grid-template-columns: 60px 67px repeat(auto-fill, 60px);
  grid-auto-rows: 60px;
  gap: 8px;
}

.pdp-swatch {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}
.pdp-swatch:hover { transform: translateY(-2px); }
.pdp-swatch.is-active {
  box-shadow: 0 0 0 2px var(--color-accent, #8c1f3b);
}
.pdp-swatch__check {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.pdp-swatch.is-active .pdp-swatch__check { display: flex; }
.pdp-swatch__check svg { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4)); }
.pdp-coating__active-slot { grid-column: 1; }
.pdp-coating__gap { grid-column: 2; }

.pdp-price { margin: 8px 0 28px; }
.pdp-price__value {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 32px);
  font-weight: 800;
  color: var(--color-text-primary, #1a1a1a);
}
.pdp-price__note {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--color-text-light, #8a8a8a);
  line-height: 1.3;
}

.pdp-actions { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.pdp-btn {
  appearance: none;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-input, 6px);
  padding: 18px 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  text-decoration: none;
}
.pdp-btn_outline {
  background: #fff;
  border: 1px solid var(--color-border, #d8d3cc);
  color: var(--color-text-primary, #1a1a1a);
  width: 100%;
}
.pdp-btn_outline:hover { border-color: var(--color-accent, #8c1f3b); color: var(--color-accent, #8c1f3b); }
.pdp-actions__row { display: flex; gap: 12px; }
.pdp-btn_primary {
  background: var(--color-accent, #8c1f3b);
  border: 1px solid var(--color-accent, #8c1f3b);
  color: #fff;
  flex: 1;
}
.pdp-btn_primary:hover { background: #75182f; }
.pdp-fav {
  flex: 0 0 56px;
  width: 56px; height: 56px;
  border: 1px solid var(--color-border, #d8d3cc);
  border-radius: var(--radius-input, 6px);
  background: #fff no-repeat center / 22px 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='1.6'%3E%3Cpath d='M12 21s-7.5-4.6-10-9.3C.6 8.4 2.2 5 5.5 5 7.6 5 9 6.3 12 9c3-2.7 4.4-4 6.5-4 3.3 0 4.9 3.4 3.5 6.7C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E");
  cursor: pointer;
  transition: border-color 0.18s;
}

.pdp-fav.product__btn_wishlist::before { display: none; }
.pdp-fav:hover { border-color: var(--color-accent, #8c1f3b); }
.pdp-fav.is-active {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%238C1F3B' stroke='%238C1F3B' stroke-width='1.6'%3E%3Cpath d='M12 21s-7.5-4.6-10-9.3C.6 8.4 2.2 5 5.5 5 7.6 5 9 6.3 12 9c3-2.7 4.4-4 6.5-4 3.3 0 4.9 3.4 3.5 6.7C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E");
  border-color: var(--color-accent, #8c1f3b);
}
.pdp-btn__cart-icon {
  width: 18px; height: 18px;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E");
}

.pdp-coating { position: relative; }
.pdp-coatings-menu {
  position: absolute;
  top: 30px;            
  right: 0;
  z-index: 60;
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid var(--color-border, #e6e2dc);
  border-radius: var(--radius-img, 8px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  padding: 12px 14px 14px;
}
.pdp-coatings-menu[hidden] { display: none; }
.pdp-coatings-menu__group + .pdp-coatings-menu__group { margin-top: 14px; }
.pdp-coatings-menu__group-title {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light, #8a8a8a);
}

.pdp-coatings-menu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 48px);
  gap: 8px;
  max-height: calc(48px * 3 + 8px * 2 + 6px);
  overflow-y: auto;
  scrollbar-width: thin;
  /* Отступ по кругу, чтобы 2px-обводку активного свотча (box-shadow) не срезал край
     скролл-контейнера (overflow клипает и по горизонтали). Справа больше — под скроллбар. */
  padding: 3px 8px 3px 3px;
}
.pdp-coatings-menu__grid::-webkit-scrollbar { width: 6px; }
.pdp-coatings-menu__grid::-webkit-scrollbar-thumb { background: var(--color-border, #d8d3cc); border-radius: 6px; }
.pdp-coatings-menu__swatch {
  width: 48px; height: 48px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  padding: 0;
}
.pdp-coatings-menu__swatch.is-active { box-shadow: 0 0 0 2px var(--color-accent, #8c1f3b); }

@media (max-width: 560px) {
  .pdp-coatings-menu { left: 0; right: 0; width: auto; }
}

.pdp-block { margin-top: clamp(40px, 5vw, 72px); }
.pdp-block__title {
  margin: 0 0 24px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  color: var(--color-text-primary, #1a1a1a);
}
.pdp-desc__text { max-width: 800px; color: var(--color-text-secondary, #4f4f4f); line-height: 1.6; font-size: 16px; }
.pdp-desc__text p { margin: 0 0 18px; }

.pdp-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 3vw, 48px); align-items: start; }
.pdp-specs__table { width: 100%; border-collapse: collapse; }
.pdp-specs__row td {
  padding: 18px 20px;
  vertical-align: middle;
}

.pdp-specs__table tr:nth-child(odd) { background: var(--color-section-alt, #f7f6f4); }
.pdp-specs__table tr:nth-child(even) { background: #fff; }
.pdp-specs__key { color: var(--color-text-secondary, #4f4f4f); }
.pdp-specs__val { color: var(--color-text-primary, #1a1a1a); font-weight: 500; text-align: right; }

.pdp-help {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--color-section-alt, #f5f0ee);
  overflow: hidden;
}
.pdp-help__body { padding: clamp(28px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.pdp-help__kicker { margin: 0 0 12px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent, #8c1f3b); }
.pdp-help__title { margin: 0 0 14px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; }
.pdp-help__text { margin: 0 0 24px; color: var(--color-text-secondary, #4f4f4f); line-height: 1.5; }
.pdp-help__btn { align-self: flex-start; }
.pdp-help__media { background: #d8cfc8 no-repeat center / cover; min-height: 320px; }

.pdp-related__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

@media (max-width: 1000px) {
  .pdp__main { grid-template-columns: 1fr; gap: 28px; }
  .pdp-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .pdp-specs { grid-template-columns: 1fr; }
  .pdp-help { grid-template-columns: 1fr; }
  .pdp-help__media { order: -1; min-height: 220px; }
  
  .pdp-coating__swatches { grid-template-columns: repeat(auto-fill, 56px); grid-auto-rows: 56px; }
  .pdp-coating__active-slot, .pdp-coating__gap { grid-column: auto; }
  .pdp-coating__gap { display: none; }
  .pdp-swatch { width: 56px; height: 56px; }
}
@media (max-width: 480px) {
  .pdp-related__grid { grid-template-columns: 1fr; }
  .pdp-toggle__btn { font-size: 14px; }
}

.pdp-coating-zoom {
  position: absolute;
  z-index: 2000;
  width: 140px;
  height: 140px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.92);
  transition: opacity 0.14s ease, transform 0.14s ease;
  pointer-events: none;
}
.pdp-coating-zoom.is-visible { opacity: 1; visibility: visible; transform: scale(1); }
@media (max-width: 600px) { .pdp-coating-zoom { display: none; } }

/* «Эта модель в интерьерах» — кейсы из инфоблока «Проекты», разметка карточек общая
   с разделом проектов (.project-card / .project-more__grid из main.css). */
.pdp-cases__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.pdp-cases__head .pdp-block__title { margin-bottom: 24px; }
.pdp-cases__all { font-size: 16px; font-weight: 500; color: var(--color-text-primary, #1a1a1a); text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.pdp-cases__all:hover { color: var(--color-accent, #8c1f3b); border-color: currentColor; }

/* «Цена под ваш проём» (18.10.2026): заявка без корзины под кнопками покупки — тихий блок
   на светлой подложке, акцентная только ссылка-кнопка. Тема заявки — «Расчёт комплекта». */
.pdp-quote {
  margin-top: 20px;
  padding: 18px 20px;
  background: #f5f3f0;
  border-radius: var(--radius-input, 6px);
}
.pdp-quote__title { margin: 0; font-size: 16px; font-weight: 600; color: var(--color-text-primary, #1a1a1a); }
.pdp-quote__text { margin: 6px 0 12px; font-size: 14px; line-height: 1.5; color: var(--color-text-secondary, #5c5c5c); }
/* Подчёркивание — text-decoration, не border-bottom: общий стиль кнопок сайта даёт
   скругление, и нижняя граница загибалась «улыбкой». */
.pdp-quote__btn {
  appearance: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; background: none; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--color-accent, #8c1f3b);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: opacity .2s;
}
.pdp-quote__btn span { text-decoration: none; }
.pdp-quote__btn:hover { opacity: .75; }
.pdp-quote__btn span { display: inline-block; transition: transform .25s; }
.pdp-quote__btn:hover span { transform: translateX(3px); }

/* Телефон: плашка «цена + Узнать цену комплекта» над нижней панелью сайта (60 px),
   пока кнопки покупки вне экрана. Выезжает из-под панели. */
.pdp-sticky { display: none; }
@media (max-width: 768px) {
  .pdp-sticky {
    position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom, 0px)); z-index: 390;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px; background: #fff; border-top: 1px solid var(--color-border, #d8d3cc);
    box-shadow: 0 -8px 24px rgba(26, 26, 26, .08);
    transform: translateY(calc(100% + 60px)); transition: transform .35s cubic-bezier(.16, 1, .3, 1);
  }
  .pdp-sticky.is-on { transform: none; }
  .pdp-sticky__price { font-size: 17px; font-weight: 700; white-space: nowrap; color: var(--color-text-primary, #1a1a1a); }
  .pdp-sticky__btn {
    appearance: none; border: 1px solid var(--color-accent, #8c1f3b); border-radius: var(--radius-input, 6px);
    background: var(--color-accent, #8c1f3b); color: #fff; font: inherit; font-size: 14px; font-weight: 600;
    min-height: 44px; padding: 0 16px; white-space: nowrap; cursor: pointer;
  }
  html.pdp-sticky-on .back-to-top { bottom: 140px; }
}
@media (prefers-reduced-motion: reduce) { .pdp-sticky { transition: none; } }

/* Характеристики двери (19.10.2026): одна сетка на две колонки, поровну строк;
   строки идут сверху вниз по колонкам, высота строки общая для обеих колонок. */
.pdp-specs_grid {
  margin: 0;
  grid-template-rows: repeat(var(--rows, 5), auto);
  grid-auto-flow: column;
  align-items: stretch;
}
.pdp-specs__item {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: center;
  padding: 18px 20px; background: #fff;
}
.pdp-specs__item.is-alt { background: var(--color-section-alt, #f7f6f4); }
.pdp-specs__item dt, .pdp-specs__item dd { margin: 0; }
@media (max-width: 720px) {
  .pdp-specs_grid { grid-template-rows: none; grid-auto-flow: row; }
  .pdp-specs__item, .pdp-specs__item.is-alt { background: #fff; }
  .pdp-specs__item:nth-child(odd) { background: var(--color-section-alt, #f7f6f4); }
  .pdp-specs__item { padding: 14px 16px; }
}

/* End */


/* Start:/local/templates/dveryaninov/css/bitrix.css?179242460857447*/


.catalog-page__crumbs {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--color-text-light);
}
.catalog-page__crumbs a {
  color: var(--color-text-light);
  text-decoration: none;
}
.catalog-page__crumbs a:hover {
  color: var(--color-accent);
}

.catalog-tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: clamp(28px, 3vw, 44px);
}
.catalog-tabs__tab {
  
  border-radius: 0;
  padding: 0 0 14px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text-light);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.catalog-tabs__tab.is-active {
  color: var(--color-text-strong);
  border-bottom-color: var(--color-accent);
}

.catalog-page__title {
  margin: 0 0 6px;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.catalog-page__sub {
  margin: 0 0 32px;
  font-size: 16px;
  color: var(--color-text-secondary);
  max-width: 60ch;
}

.catalog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 28px;
}

.catalog-filter__btn {
  padding: 8px 18px;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-family: inherit;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  white-space: nowrap;
}

.catalog-filter__btn:hover {
  border-color: var(--color-text-primary);
  color: var(--color-text-primary);
}

.catalog-filter__btn.is-active {
  background: var(--color-accent-tint);
  border-color: var(--color-accent);
  color: var(--color-accent);
  font-weight: 600;
}

.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  margin-top: 12px;
  color: var(--color-accent);
  font-size: 14px;
  line-height: 1.3;
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(20px, 2.4vw, 36px) clamp(16px, 1.8vw, 28px);
}

.catalog__grid .card {
  transition: box-shadow 0.22s, transform 0.22s;
}

.catalog__grid .card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.catalog__grid .card__image:not(.card__image_hover) {
  transition: transform 0.38s ease;
}

.catalog__grid .card:hover .card__image:not(.card__image_hover) {
  transform: scale(1.04);
}

/* Остеклённая картинка позиционируется через translate — не перетираем её scale'ом. */
.catalog__grid .card:hover .card__image_hover {
  transform: translate(-50%, -50%);
}

/* Карточки на главной («Популярные модели») и в коллекциях — тот же вид,
   что и в каталоге: зазор между карточками, подъём и зум фото по ховеру.
   Разметка карточки уже единая (.card, dver_render_product_card). */
.home-door-grid {
  gap: clamp(20px, 2.2vw, 32px);
}
.home-door-grid .card {
  transition: box-shadow 0.22s, transform 0.22s;
}
.home-door-grid .card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}
.home-door-grid .card__image:not(.card__image_hover) {
  transition: transform 0.38s ease;
}
.home-door-grid .card:hover .card__image:not(.card__image_hover) {
  transform: scale(1.04);
}
.home-door-grid .card:hover .card__image_hover {
  transform: translate(-50%, -50%);
}

/* Мобильная сетка «Популярных моделей» и коллекций — как в каталоге: 2 карточки
   в ряд с переносом на следующую строку. Перекрывает legacy-правило main.css
   (@640 делало .home-door-grid горизонтальным флекс-скроллом под старую .home-door-card). */
@media (max-width: 640px) {
  .home-door-grid,
  .collection-doors .home-door-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    gap: 14px;
  }
}

.catalog-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

.catalog__main {
  min-width: 0;
}

.catalog__sidebar-title {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

@media (max-width: 900px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog__sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .catalog__sidebar-title {
    width: 100%;
  }

  .catalog__collections-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
  }
}

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

.catalog__collection-link {
  display: block;
  padding: 11px 14px;
  color: var(--color-text-soft);
  text-decoration: none;
  font-size: 16px;
  border-left: 2px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.catalog__collection-link:hover {
  color: var(--color-text-primary);
}

.catalog__collection-link.is-active {
  color: var(--color-accent);
  font-weight: 600;
  border-left-color: var(--color-accent);
  background: var(--color-accent-tint);
}

.collections-page__title {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.collections-page__sub {
  margin: 18px 0 48px;
  font-size: 17px;
  color: var(--color-text-secondary);
  max-width: 50ch;
  line-height: 1.5;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(24px, 3vw, 44px);
}

.coll-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.coll-card__image {
  background: var(--color-surface);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coll-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.38s ease;
}

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

.coll-card__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.coll-card__name {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.coll-card__price {
  margin: 0;
  font-size: 15px;
  color: var(--color-text-secondary);
}

.coll-card__chevron {
  color: var(--color-accent);
  flex: none;
  margin-top: 4px;
}

.bx-blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bx-blog-card {
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s, transform 0.22s;
}

.bx-blog-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.bx-blog-card__img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.bx-blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.38s ease;
}

.bx-blog-card:hover .bx-blog-card__img {
  transform: scale(1.05);
}

.bx-blog-card__body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bx-blog-card__meta {
  font-size: 12px;
  color: #888;
  margin: 0 0 8px;
}

.bx-blog-card__title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 12px;
  line-height: 1.4;
  flex: 1;
}

.bx-blog-card__link {
  text-decoration: none;
  color: inherit;
}

.bx-blog-card__more {
  font-size: 13px;
  color: #8a7a6a;
  text-decoration: underline;
  margin-top: auto;
  align-self: flex-start;
}

.random-doors {
  padding: 48px 0;
}

.random-doors__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.random-doors__title {
  font-size: 28px;
  font-weight: 600;
  margin: 0;
}

.random-doors__link {
  font-size: 14px;
  color: #4a4a4a;
  text-decoration: none;
}

.random-doors__link:hover {
  color: #1a1a1a;
}

.random-doors__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .random-doors__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .random-doors__grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

.cat-landing__title {
  margin: 0 0 clamp(28px, 3vw, 44px);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cat-landing__empty {
  padding: 24px 0 60px;
  font-size: 16px;
  color: var(--color-text-secondary);
}
.cat-landing__empty a {
  color: var(--color-accent);
}

.cat-mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 40px;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.cat-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  grid-column: span 2;
}
.cat-tile_s2 { grid-column: span 2; }
.cat-tile_s3 { grid-column: span 3; }
.cat-tile_s4 { grid-column: span 4; }
.cat-tile_s6 { grid-column: span 6; }

.cat-tile__img {
  display: block;
  /* 380px на ПК; ниже — пропорционально по ширине вьюпорта, чтобы фото не обрезалось. */
  height: clamp(240px, 27vw, 380px);
  /* Фото коллекций скомпонованы с упором на правую сторону → прибиваем к правому краю. */
  background: var(--color-surface) right / cover no-repeat;
  border-radius: 8px;
  overflow: hidden;
  transition: filter 0.25s ease;
}
.cat-tile:hover .cat-tile__img {
  filter: brightness(1.04);
}
.cat-tile__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 19px;
}
.cat-tile__name {
  font-size: clamp(18px, 1.4vw, 22px);
  font-weight: 500;
  color: var(--color-text-primary);
  transition: color 0.15s ease;
}
.cat-tile:hover .cat-tile__name {
  color: var(--color-accent);
}
.cat-tile__arrow {
  color: var(--color-accent);
  flex: none;
}

.cat-news {
  margin-bottom: clamp(48px, 6vw, 90px);
}
.cat-news__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.cat-news__title {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.cat-news__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--color-text-strong);
  text-decoration: none;
  white-space: nowrap;
}
.cat-news__link:hover {
  color: var(--color-accent);
}
.cat-news__divider {
  height: 1px;
  background: var(--color-border);
  margin: 20px 0 clamp(24px, 3vw, 40px);
}
.cat-news__more {
  display: none;
}

@media (max-width: 1024px) {
  .cat-mosaic {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(16px, 3vw, 28px);
  }
  .cat-tile,
  .cat-tile_s2,
  .cat-tile_s3,
  .cat-tile_s4,
  .cat-tile_s6 {
    grid-column: span 1;
  }
}
@media (max-width: 600px) {
  .cat-mosaic {
    grid-template-columns: 1fr;
  }
  .cat-tile__label {
    justify-content: center;
  }
  .cat-news__link {
    display: none;
  }
  .cat-news__more {
    display: block;
    margin-top: 24px;
    text-align: center;
    color: var(--color-accent);
    text-decoration: none;
    font-size: 15px;
  }
}

.catalog-page__count {
  margin: 4px 0 28px;
  font-size: 15px;
  color: var(--color-text-light);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: clamp(28px, 3vw, 56px);
  align-items: start;
  margin: 0;
}

.cfilter {
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* Прокручиваемое тело фильтра. Кнопки «Применить/Сбросить» вынесены из него
   (.cfilter__actions) и закреплены, поэтому до них не нужно мотать. */
.cfilter__scroll {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-height: 0;
}
.cfilter__sheet-head {
  display: none; 
  align-items: center;
  justify-content: space-between;
}
.cfilter__sheet-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cfilter__reset {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 14px;
}
.cfilter__reset:hover { text-decoration: underline; }

.cfilter__group { display: flex; flex-direction: column; gap: 12px; }
.cfilter__legend {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.cfilter__list { display: flex; flex-direction: column; gap: 10px; }
.cfilter__list_scroll {
  max-height: 196px;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 10px;
}

.cfilter__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  color: var(--color-text-soft);
}
.cfilter__opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.cfilter__box {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--color-border);
  border-radius: 4px;
  background: #fff;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}
.cfilter__opt input:checked + .cfilter__box {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.cfilter__opt input:checked + .cfilter__box::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.cfilter__opt input:focus-visible + .cfilter__box {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.cfilter__opt-label { line-height: 1.3; }
.cfilter__opt[hidden] { display: none; }

.cfilter__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text-light);
}
.cfilter__search-input {
  border: 0;
  outline: 0;
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  background: transparent;
  color: var(--color-text-primary);
}

.cfilter__colors { display: flex; flex-wrap: wrap; gap: 10px; }
.cfilter__color { cursor: pointer; line-height: 0; }
.cfilter__color input { position: absolute; opacity: 0; width: 0; height: 0; }
.cfilter__swatch {
  display: block;
  width: 44px; height: 44px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.12);
  /* Обводка выделения — внутренняя (inset), чтобы не вылезала за контейнер и не обрезалась. */
  box-shadow: inset 0 0 0 0 transparent;
  transition: box-shadow 0.15s;
}
/* Визуальное выделение следует ТОЛЬКО за живым состоянием чекбокса (:checked),
   а не за серверным классом .is-active — иначе после «Применить» выбор нельзя
   снять визуально до повторной перезагрузки (задача №3). */
.cfilter__color input:checked + .cfilter__swatch {
  box-shadow: inset 0 0 0 2px var(--color-accent);
}

.cfilter__price-inputs { display: flex; align-items: center; gap: 8px; }
.cfilter__price-field {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--color-text-primary);
  -moz-appearance: textfield;
}
.cfilter__price-field::-webkit-outer-spin-button,
.cfilter__price-field::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cfilter__price-dash { color: var(--color-text-light); }

.cfilter__range { position: relative; height: 22px; margin-top: 8px; }
.cfilter__range::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 9px;
  height: 4px;
  background: var(--color-border);
  border-radius: 6px;
}
.cfilter__range-input {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 22px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
}
.cfilter__range-input::-webkit-slider-runnable-track { height: 22px; background: transparent; border: 0; }
.cfilter__range-input::-moz-range-track { height: 22px; background: transparent; border: 0; }
.cfilter__range-input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; margin-top: 3px;
  border-radius: 50%; background: var(--color-accent);
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  pointer-events: auto; cursor: pointer; position: relative; z-index: 3;
}
.cfilter__range-input::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%; background: var(--color-accent);
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  pointer-events: auto; cursor: pointer;
}

.cfilter__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 auto;
  padding-top: 14px;
  margin-top: 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
}
.cfilter__apply {
  padding: 13px 20px;
  border: 0;
  border-radius: var(--radius-btn, 6px);
  background: var(--color-accent);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s;
}
.cfilter__apply:hover { background: #73182F; }
/* Пока пересчитывается живой счётчик — слегка приглушаем число. */
.cfilter__apply.is-counting .cfilter__apply-count { opacity: 0.5; }
.cfilter__apply-count { transition: opacity 0.15s; }
.cfilter__reset_btn {
  padding: 12px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn, 6px);
  text-align: center;
  font-size: 14px;
  color: var(--color-text-secondary);
}
.cfilter__reset_btn:hover { border-color: var(--color-text-primary); color: var(--color-text-primary); text-decoration: none; }

.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}
.catalog-toolbar__filter-btn {
  display: none; 
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn, 6px);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: var(--color-text-primary);
  cursor: pointer;
}
.catalog-toolbar__sort { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.catalog-toolbar__sort-label { font-size: 14px; color: var(--color-text-light); }
.catalog-toolbar__sort-select {
  padding: 8px 30px 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn, 6px);
  background-color: #fff;
  font-family: inherit;
  font-size: 14px;
  color: var(--color-text-primary);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.catalog-toolbar__view { display: flex; gap: 4px; }
.catalog-toolbar__view-btn {
  display: inline-flex;
  padding: 7px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  color: var(--color-text-light);
  cursor: pointer;
}
.catalog-toolbar__view-btn.is-active { color: var(--color-accent); border-color: var(--color-accent); }

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.2vw, 32px);
}
.catalog__grid_list { grid-template-columns: 1fr; gap: 16px; }
.catalog__grid_list .card { flex-direction: row; }
.catalog__grid_list .card__link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  width: 100%;
}
.catalog__grid_list .card__image-wrap {
  width: clamp(140px, 18vw, 220px);
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
}
.catalog__grid_list .card__info {
  flex: 1;
  min-width: 0;
  padding: 0;
  align-self: center;
}
.catalog__grid_list .card__cta { margin-top: 8px; }

.card__link { position: relative; }
.card__badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  padding: 4px 10px;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
}

.catalog__pagination { margin-top: clamp(32px, 4vw, 56px); }
.catalog__pagination .modern-page-navigation,
.catalog__pagination .nav-pages,
.catalog__pagination > div {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.catalog__pagination a,
.catalog__pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 14px;
}
.catalog__pagination a:hover { border-color: var(--color-text-primary); color: var(--color-text-primary); }
.catalog__pagination .modern-page-current,
.catalog__pagination .nav-current-page {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  font-weight: 600;
}

.catalog__empty {
  padding: 48px 0;
  font-size: 16px;
  color: var(--color-text-secondary);
}
.catalog__empty a { color: var(--color-accent); }

.cfilter__overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0,0,0,0.45);
}

.catalog__loadmore-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 4vw, 48px);
}
.catalog__loadmore {
  appearance: none;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input, 6px);
  padding: 16px 48px;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.catalog__loadmore:hover { border-color: var(--color-accent); color: var(--color-accent); }
.catalog__loadmore.is-loading { opacity: 0.6; pointer-events: none; }

@media (min-width: 901px) {
  .cfilter {
    position: sticky;
    top: calc(var(--dv-header-h, 104px) + 16px);
    max-height: calc(100vh - var(--dv-header-h, 104px) - 32px);
    overflow: hidden; /* тело скроллит .cfilter__scroll; кнопки закреплены снизу */
  }
  /* Скроллится только тело фильтра — кнопки «Применить/Сбросить» видны всегда. */
  .cfilter__scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-width: thin;
  }
  .cfilter__scroll::-webkit-scrollbar { width: 8px; }
  .cfilter__scroll::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 8px; }
  .cfilter__scroll::-webkit-scrollbar-track { background: transparent; }
}

@media (max-width: 1100px) {
  .catalog-layout { grid-template-columns: 230px minmax(0, 1fr); }
  .catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-toolbar__filter-btn { display: inline-flex; }

  .cfilter {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1300;
    max-height: 86vh;
    /* overflow:hidden клипит содержимое по скруглению; иначе на трансформируемом
       fixed-элементе с border-radius + прокруткой в углах проступал тёмный фон
       (эффект «чёрных объектов» под шапкой шторки). Скролл — на .cfilter__scroll. */
    overflow: hidden;
    background: #fff;
    border-radius: 18px 18px 0 0;
    padding: 20px 18px;
    transform: translateY(100%);
    transition: transform 0.28s ease;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
  }
  .cfilter.is-open { transform: translateY(0); }
  .cfilter__sheet-head { display: flex; margin-bottom: 8px; flex: 0 0 auto; }

  .cfilter__scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cfilter__actions {
    margin-top: 8px;
  }
}

@media (max-width: 600px) {
  .catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .catalog-toolbar { gap: 8px; flex-wrap: nowrap; }
  .catalog-toolbar__sort-label { display: none; }
  .catalog-toolbar__sort { min-width: 0; flex: 1 1 auto; margin-right: 0; }
  .catalog-toolbar__sort-select { width: 100%; min-width: 0; max-width: 100%; padding: 8px 26px 8px 10px; }
  .catalog-toolbar__filter-btn,
  .catalog-toolbar__view { flex-shrink: 0; }
  .catalog__grid_list .card__link { flex-direction: column; gap: 0; }
  .catalog__grid_list .card__image-wrap { width: 100%; flex: none; }
}

.catalog__grid.wishlist-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .catalog__grid.wishlist-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .catalog__grid.wishlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.checkout-captcha__row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.checkout-captcha__img { border: 1px solid var(--color-border); border-radius: 6px; background: #f5f3f0; height: 40px; }
.checkout-captcha__reload {
  border: 1px solid var(--color-border); background: #fff; border-radius: 6px;
  width: 40px; height: 40px; cursor: pointer; font-size: 18px; line-height: 1; color: var(--color-text-light);
}
.checkout-captcha__reload:hover { color: var(--color-accent); border-color: var(--color-accent); }
.auth-form__optional { color: var(--color-text-light); font-weight: 400; font-size: 12px; }

.header__location { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; }
.header__location:hover .header__city { color: var(--color-accent); }
.header__city { border-bottom: 1px dashed currentColor; }

.geo-modal { position: fixed; inset: 0; z-index: 1400; display: none; }
.geo-modal[aria-hidden="false"] { display: block; }
.geo-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.geo-modal__panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(560px, 92vw); max-height: 80vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 14px; padding: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
/* Окно выбора города (редизайн 15.10.2026, js/modules/geo.js): заголовок с текущим
   городом, строка поиска, города по алфавиту с буквой-указателем; на компьютере
   три колонки, на телефоне — шторка снизу в две. Правила панели — только для этого
   окна: базовый .geo-modal__panel общий со всплывашкой «Вы в городе…?». */
.geo-modal:not(.geo-confirm) .geo-modal__backdrop {
  background: rgba(26, 16, 20, .46);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: geo-fade .2s ease-out;
}
.geo-modal:not(.geo-confirm) .geo-modal__panel {
  width: min(760px, calc(100vw - 32px));
  max-height: min(760px, calc(100dvh - 48px));
  padding: 28px 28px 22px;
  gap: 18px;
  border-radius: 12px;
  box-shadow: 0 30px 80px -30px rgba(28, 14, 20, .55);
  animation: geo-in .3s cubic-bezier(.16, 1, .3, 1);
}
.geo-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.geo-modal__heading { display: grid; gap: 4px; }
.geo-modal__title { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; color: var(--color-text-primary); }
.geo-modal__now { margin: 0; font-size: 14px; color: var(--color-text-light); }
.geo-modal__now b { font-weight: 600; color: var(--color-text-primary); }
.geo-modal__close {
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; margin: -6px -8px 0 0; padding: 0;
  border: 0; border-radius: 6px; background: none; color: var(--color-text-light); cursor: pointer;
  transition: background .15s, color .15s;
}
.geo-modal__close:hover { background: var(--color-bg-warm); color: var(--color-text-primary); }
.geo-modal__find {
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 14px;
  border: 1px solid var(--color-border); border-radius: 8px; background: #fff;
  color: var(--color-text-light);
  transition: border-color .15s, box-shadow .15s;
}
.geo-modal__find:focus-within { border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-light); }
.geo-modal__find svg { flex: none; }
.geo-modal .geo-modal__q {
  flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0;
  border: 0; background: transparent; box-shadow: none;
  font-family: inherit; font-size: 16px; color: var(--color-text-primary);
}
.geo-modal .geo-modal__q:focus,
.geo-modal .geo-modal__q:focus-visible { outline: none; box-shadow: none; }
.geo-modal__q::placeholder { color: #9A938C; }
/* Колонки читаются сверху вниз — как алфавитный указатель. Сетка с числом строк
   из JS (--rows), а не CSS columns: в блоке ограниченной высоты columns уводят
   не поместившееся в невидимые колонки справа (так пропадали «Краснодар», «Курск»). */
.geo-modal__list {
  flex: 1; min-height: 0;
  margin: 0; padding: 2px 4px 0 0; list-style: none;
  overflow-y: auto; overscroll-behavior: contain;
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(var(--rows, 14), auto);
  column-gap: 28px;
  align-content: start;
  scrollbar-width: thin; scrollbar-color: #D3CDC7 transparent;
}
.geo-modal__item { position: relative; min-width: 0; padding-left: 22px; }
.geo-modal__item.is-first::before {
  content: attr(data-letter);
  position: absolute; left: 0; top: 9px;
  font-size: 12px; font-weight: 700; line-height: 1.4; color: var(--color-accent);
}
.geo-modal__city {
  display: inline-flex; align-items: center; gap: 6px;
  width: 100%; padding: 8px 8px; margin: 0;
  border: 0; border-radius: 6px; background: none; text-align: left;
  font-family: inherit; font-size: 15px; line-height: 1.35; color: var(--color-text-primary); cursor: pointer;
  transition: background .15s, color .15s;
}
.geo-modal__city:hover { background: var(--color-bg-warm); color: var(--color-accent); }
.geo-modal__city.is-active { color: var(--color-accent); font-weight: 600; }
.geo-modal__check { flex: none; }
.geo-modal__empty { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--color-text-light); }
@keyframes geo-fade { from { opacity: 0; } }
@keyframes geo-in { from { opacity: 0; transform: translate(-50%, calc(-50% - 12px)) scale(.985); } }
@media (max-width: 600px) {
  .geo-modal:not(.geo-confirm) .geo-modal__panel {
    left: 0; right: 0; top: auto; bottom: 0; transform: none;
    width: 100%; max-height: 88dvh;
    padding: 22px 16px calc(16px + env(safe-area-inset-bottom));
    gap: 14px;
    border-radius: 16px 16px 0 0;
    animation: geo-up .3s cubic-bezier(.16, 1, .3, 1);
  }
  .geo-modal__title { font-size: 21px; }
  .geo-modal__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .geo-modal__city { padding: 10px 8px; }
}
@keyframes geo-up { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) {
  .geo-modal:not(.geo-confirm) .geo-modal__panel,
  .geo-modal:not(.geo-confirm) .geo-modal__backdrop { animation: none; }
}

.geo-confirm__panel { width: min(420px, 92vw); text-align: center; gap: 22px; }
.geo-confirm__question { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--color-text-primary); }
.geo-confirm__city { font-weight: 700; color: var(--color-accent); }
.geo-confirm__actions { display: flex; gap: 12px; justify-content: center; }
.geo-confirm__btn {
  flex: 1; padding: 12px 18px; border-radius: 8px; font-family: inherit; font-size: 15px;
  font-weight: 600; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.geo-confirm__btn_yes { border: 0; background: var(--color-accent); color: #fff; }
.geo-confirm__btn_yes:hover { background: #741832; }
.geo-confirm__btn_no { border: 1px solid var(--color-border); background: none; color: var(--color-text-primary); }
.geo-confirm__btn_no:hover { border-color: var(--color-accent); color: var(--color-accent); }
@media (max-width: 480px) { .geo-confirm__actions { flex-direction: column; } }

.legal-page {
  padding: clamp(16px, 2.5vw, 32px) 0 clamp(48px, 6vw, 80px);
}
.legal-page__title {
  margin: 8px 0 clamp(20px, 3vw, 32px);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.legal-page__body {
  max-width: 76ch;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.65;
}
.legal-page__body h2 {
  margin: 28px 0 8px;
  font-size: 19px;
  font-weight: 600;
  color: var(--color-text-primary);
}
.legal-page__body p { margin: 0 0 14px; }
.legal-page__body a { color: var(--color-accent); }
.legal-page__note {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 14px;
  color: var(--color-text-light);
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer__legal-links a {
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
}
.footer__legal-links a:hover {
  opacity: 1;
  text-decoration: underline;
}
/* «Не является публичной офертой» + ссылка на условия покупки (подвал, тёмный фон). */
.footer__legal-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s;
}
.footer__legal-note a:hover { color: rgba(255, 255, 255, 0.8); }

[data-bitrix] #cfgCoatingsContainer .cfg-coatings-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}
[data-bitrix] #cfgCoatingsContainer .cfg-coating-swatch {
  width: auto;
  padding: 0;
  border: 2px solid transparent;
  gap: 0;
}
[data-bitrix] #cfgCoatingsContainer .cfg-coating-swatch__color {
  width: 48px;
  height: 48px;
}
[data-bitrix] #cfgCoatingsContainer .cfg-coating-swatch__label {
  display: none; 
}

[data-bitrix] .account-orders {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
[data-bitrix] .order-block {
  border: 1px solid var(--color-border, #e6e6e6);
  border-radius: 4px;
  padding: 20px;
  background: var(--color-white, #fff);
}
[data-bitrix] .order-block__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px 16px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--color-border, #e6e6e6);
}
[data-bitrix] .order-block__head-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
[data-bitrix] .order-block__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary, #1a1a1a);
}
/* Этап заказа и услуги (доставка/установка) — одной строкой: этап ищется глазом слева,
   услуги идут следом. Дата переехала в заголовок «Заказ №… от …». */
[data-bitrix] .order-block__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--color-text-secondary, #777);
  flex-wrap: wrap;
}
/* Текущий этап заказа (из Битрикс) — бейдж-«кнопка» бледно-акцентного цвета. */
[data-bitrix] .order-block__status {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-btn, 6px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-accent, #8c1f3b);
  background: rgba(140, 31, 59, 0.10);
}
/* Прогресс заказа — сегментированная полоса-«кнопка» с подписью этапа ВНУТРИ
   каждого сегмента, закрашивается по мере продвижения. Название — из справочника. */
[data-bitrix] .order-progress {
  margin: 14px 0 2px;
}
/* Полоса: сегменты вплотную, скруглены по краям — читается как единая
   заполняющаяся кнопка. Каждый сегмент — этап воронки с подписью внутри. */
[data-bitrix] .order-progress__bar {
  display: flex;
  gap: 3px;
  /* Максимальное скругление — только по краям всей полосы (не между этапами):
     overflow:hidden обрезает внешние углы первого и последнего сегмента. */
  border-radius: 999px;
  overflow: hidden;
}
[data-bitrix] .order-progress__seg {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: rgba(140, 31, 59, 0.10); /* будущий этап — бледный акцент */
  color: var(--color-accent, #8c1f3b);
  transition: background-color 0.4s ease;
}
[data-bitrix] .order-progress__seg-label {
  font-size: 11.5px;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0.01em;
}
[data-bitrix] .order-progress__seg.is-done,
[data-bitrix] .order-progress__seg.is-current {
  background: var(--color-accent, #8c1f3b);
  color: #fff;
}
[data-bitrix] .order-progress__seg.is-current {
  position: relative;
  font-weight: 700;
}
[data-bitrix] .order-progress__seg.is-current .order-progress__seg-label {
  font-weight: 700;
}
/* Текущий сегмент «дышит» — мягкая пульсация, чтобы взгляд цеплялся за него. */
[data-bitrix] .order-progress__seg.is-current::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  animation: dvOrderPulse 1.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes dvOrderPulse {
  0%, 100% { opacity: 0; }
  50%      { opacity: 0.18; }
}
/* Мобильный: весь таймлайн не влезает — показываем только три сегмента:
   предыдущий (если есть), текущий и следующий (если есть). */
@media (max-width: 640px) {
  [data-bitrix] .order-progress__seg {
    display: none;
  }
  /* На мобильном видны только три этапа — растягиваем их на всю ширину. */
  [data-bitrix] .order-progress__seg.is-prev,
  [data-bitrix] .order-progress__seg.is-current,
  [data-bitrix] .order-progress__seg.is-next {
    display: flex;
    flex: 1 1 auto;
    padding: 10px 12px;
  }
  [data-bitrix] .order-progress__seg-label {
    font-size: 12.5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-bitrix] .order-progress__seg.is-current::after {
    animation: none;
  }
}
[data-bitrix] .order-block__total {
  margin: 0;
  font-size: 15px;
  white-space: nowrap;
  color: var(--color-text-primary, #1a1a1a);
}
[data-bitrix] .order-block__services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
}
[data-bitrix] .order-block__service-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid rgba(140, 31, 59, 0.25);
  border-radius: var(--radius-btn, 6px);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent, #8c1f3b);
}
[data-bitrix] .order-block__service-flag::before {
  content: "✓";
  font-size: 11px;
}
[data-bitrix] .order-doors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
[data-bitrix] .order-doors .order-door {
  height: 100%;
  margin: 0;
  min-width: 0;
}
[data-bitrix] .order-door__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary, #1a1a1a);
}
[data-bitrix] .order-door__qty {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-secondary, #777);
  margin-left: 6px;
}
[data-bitrix] .order-door__main {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
[data-bitrix] .order-door__media {
  flex: 0 0 120px;
}
[data-bitrix] .order-door__img {
  display: block;
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--color-section-alt, #f5f5f5);
}
[data-bitrix] .order-door__img_empty {
  border: 1px dashed var(--color-border, #e0e0e0);
}
[data-bitrix] .order-door__info {
  min-width: 0;
  flex: 1 1 auto;
}
[data-bitrix] .order-door__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-style: italic; 
  font-weight: 600;
  color: var(--color-text-primary, #1a1a1a);
}
[data-bitrix] .order-door__in {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-primary, #1a1a1a);
}
[data-bitrix] .order-door__specs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
[data-bitrix] .order-door__spec {
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-text-secondary, #555);
}
[data-bitrix] .order-door__spec-key {
  color: var(--color-text-secondary, #999);
}
[data-bitrix] .order-door__spec-val {
  color: var(--color-text-primary, #1a1a1a);
}
/* Карточка заказа в ЛК занимает половину строки — переиспользованная разметка
   корзины (.cart-item) в узкой ячейке вылезала за края. Делаем компактно и
   состав в один столбик, чтобы основная информация умещалась как в корзине. */
[data-bitrix] .order-door.cart-item {
  padding: 16px;
  overflow: hidden;
}
[data-bitrix] .order-door .cart-item__door-section {
  grid-template-columns: 96px 1fr;
  column-gap: 14px;
}
[data-bitrix] .order-door .cart-item__image-wrap {
  width: 96px;
  min-height: 120px;
}
[data-bitrix] .order-door .cart-item__header {
  flex-direction: column;
  gap: 6px;
}
[data-bitrix] .order-door .cart-item__action-links {
  gap: 12px;
}
[data-bitrix] .order-door .cart-item__props {
  grid-template-columns: 1fr;
  gap: 4px;
}
[data-bitrix] .order-door .cart-item__prop-row {
  flex-wrap: wrap;
}
[data-bitrix] .order-door .cart-item__prop-value {
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  [data-bitrix] .order-doors {
    grid-template-columns: 1fr;
  }
  [data-bitrix] .order-block__total {
    margin-left: 0;
  }
}

/* ============================================================================
   Подтверждение города — компактная всплывашка (контекстное меню), а не модалка
   на весь экран. Панель fixed → при скролле остаётся на месте. Затемнения нет,
   чтобы окно не съедало первый экран на телефоне (п.35/59/66 чек-листа).
   ========================================================================== */
/* Всплывашка — НЕ модалка: полноэкранный слой не должен перехватывать клики и
   ховеры (иначе сайт «мертвеет», пока она открыта). Сам оверлей делаем прозрачным
   для указателя, кликабельной оставляем только панель. Бэкдроп убираем совсем. */
.geo-confirm { pointer-events: none; }
.geo-confirm .geo-confirm__panel { pointer-events: auto; }
.geo-confirm .geo-modal__backdrop { display: none; }
.geo-confirm .geo-confirm__panel {
  position: fixed;
  left: 16px;
  top: 56px;
  width: min(300px, calc(100vw - 24px));
  padding: 14px 16px 16px;
  gap: 12px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--color-border, #E0DDDA);
  border-radius: var(--radius-card, 8px);
  box-shadow: 0 12px 32px rgba(26, 26, 26, .16);
  transform: none;
  margin: 0;
}
/* «хвостик» контекстного меню */
.geo-confirm .geo-confirm__panel::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid var(--color-border, #E0DDDA);
  border-top: 1px solid var(--color-border, #E0DDDA);
  transform: rotate(45deg);
}
.geo-confirm .geo-confirm__question { font-size: 15px; font-weight: 600; line-height: 1.4; }
.geo-confirm .geo-confirm__actions { gap: 8px; justify-content: flex-start; }
.geo-confirm .geo-confirm__btn { flex: 1; padding: 9px 12px; font-size: 14px; border-radius: var(--radius-btn, 6px); }
@media (max-width: 480px) {
  .geo-confirm .geo-confirm__actions { flex-direction: row; }
}
/* ==========================================================================
   Карточка товара — вид из редизайна (13.10.2026): светлая подложка под
   вырезкой двери без рамки и тени, круглая кнопка избранного, название и цена
   в одну строку, ниже тихая ссылка «Размер и покрытие ↗». Без «01 / Модель».
   Разметка прежняя (dver_render_product_card + js/modules/product-card.js),
   наведение по-прежнему показывает остеклённую модель (.card__image_hover).
   Селекторы в один класс: контекстные правила (.product-page .card__…,
   .catalog__grid_list …) остаются сильнее и работают как раньше.
   ========================================================================== */
.card {
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}
.catalog__grid .card:hover,
.home-door-grid .card:hover {
  box-shadow: none;
  transform: none;
}
.card__image-wrap {
  background: #f3f2f0;
  border-radius: 4px;
}
.card__image {
  height: 88%;
  transition: opacity .35s ease, transform .5s cubic-bezier(.16, 1, .3, 1);
}
.catalog__grid .card:hover .card__image:not(.card__image_hover),
.home-door-grid .card:hover .card__image:not(.card__image_hover),
.card:hover .card__image:not(.card__image--has-hover):not(.card__image_hover) {
  transform: scale(1.035);
}
.card__image_hover { height: 88%; }

.card__fav {
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, .85);
  background-size: 20px 20px;
  transition: background-color .2s, transform .2s;
}
.card__fav:hover { background-color: #fff; transform: none; }
.card__fav.is-active { background-color: #fff; background-size: 20px 20px; }

.card__info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0 12px;
  padding: 18px 0 0;
}
.card__eyebrow, .card__cta { grid-column: 1 / -1; }
.card__title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.card__price {
  display: block;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.card__price-prefix { font-size: inherit; font-weight: 400; color: inherit; }
.card__cta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--color-text-light);
  font-size: 13.5px;
  transition: color .2s;
}
.card:hover .card__cta { color: var(--color-text); }

/* main.css на телефоне делает кнопку position: relative (зона нажатия через ::after) —
   из-за этого сердечко уезжало под подпись. Абсолютная тоже держит ::after. */
@media (max-width: 768px) {
  .card__fav { position: absolute; }
}
@media (max-width: 640px) {
  .card__info { grid-template-columns: minmax(0, 1fr); padding-top: 12px; }
  .card__title { font-size: 14px; }
  .card__price { margin-top: 3px; font-size: 14px; }
  .card__cta { font-size: 12.5px; }
  .card__fav { top: 8px; right: 8px; width: 32px; height: 32px; background-size: 18px 18px; }
}
/* ==========================================================================
   Конструктор: левая колонка «Ваша комплектация» (13.10.2026)
   Сверху название двери (в потоке — длинное переносится, а не наезжает на
   фото), под ним дверь, внизу всё, что входит в комплект (js/modules/cfg-kit.js).
   Строки — подпись слева, значение справа, в одну линию; только выбранное,
   без групп: это памятка «что я поставил», а не вся схема конструктора. Компьютер — две колонки; планшет и телефон — фото ниже,
   список одной колонкой под кнопкой «Комплектация».
   ========================================================================== */
.cfg-modal__image {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 16px;
  padding: 28px clamp(24px, 3.2vw, 48px) 24px;
  background: #f1efec;
}
.cfg-kit-head { flex: 0 0 auto; min-width: 0; }
.cfg-stage {
  flex: 1 1 auto;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cfg-modal__image .cfg-stage img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(10px 14px 16px rgba(49, 28, 18, .12));
}
.cfg-kit {
  flex: 0 0 auto;
  max-height: 50%;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}
.cfg-kit::-webkit-scrollbar { display: none; }
/* Не влезло по высоте — список уходит под мягкое затухание, а не под полосу прокрутки. */
.cfg-kit.is-overflow:not(.is-end) {
  -webkit-mask-image: linear-gradient(#000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 40px), transparent);
}
.cfg-kit__eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-text-light);
}
.cfg-kit__name {
  margin: 6px 0 0;
  max-width: 22ch;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--color-text);
  text-transform: none;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.cfg-kit__toggle { display: none; }
.cfg-kit__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(20px, 2.4vw, 36px);
  margin: 0;
}
.cfg-kit__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  padding: 5px 0;
  border-top: 1px solid rgba(26, 26, 26, .1);
}
.cfg-kit__row dt {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1.35;
  color: var(--color-text-light);
  white-space: nowrap;
}
.cfg-kit__row dd {
  min-width: 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--color-text);
  text-align: right;
  text-wrap: pretty;
}
.cfg-kit__row.is-none dd { color: #5f5a54; }
.cfg-kit__row.is-empty dd { color: #9a948d; }

/* Планшет и телефон: колонка идёт над графами, фото ниже, список свёрнут. */
@media (max-width: 1024px) {
  .cfg-modal[aria-hidden="false"] .cfg-modal__image {
    height: auto;
    max-height: none;
    min-height: 0;
    gap: 12px;
    padding: 16px 16px 12px;
  }
  .cfg-kit-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .cfg-kit__eyebrow { display: none; }
  .cfg-kit__name { margin: 0; max-width: none; font-size: 24px; }
  .cfg-stage { flex: none; height: clamp(220px, 38vh, 420px); }
  .cfg-kit { max-height: none; overflow: visible; }
  .cfg-kit.is-overflow:not(.is-end) { -webkit-mask-image: none; mask-image: none; }
  .cfg-kit__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(26, 26, 26, .12);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text);
    font: 600 14px/1 var(--font-main, "Manrope", sans-serif);
    cursor: pointer;
  }
  .cfg-kit__toggle::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: 2px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s;
  }
  .cfg-kit.is-open .cfg-kit__toggle::after { transform: translateY(2px) rotate(-135deg); }
  .cfg-kit__count {
    margin-left: auto;
    font-weight: 500;
    color: var(--color-text-light);
    font-variant-numeric: tabular-nums;
  }
  .cfg-kit__list { display: none; grid-template-columns: minmax(0, 1fr); margin-top: 6px; }
  .cfg-kit.is-open .cfg-kit__list { display: grid; }
  .cfg-kit__row { gap: 16px; padding: 8px 0; }
  .cfg-kit__row dt { font-size: 13px; }
  .cfg-kit__row dd { font-size: 13.5px; }
}

/* ==========================================================================
   Шапка, первая строка (15.10.2026, макет заказчика): тонкая служебная полоса.
   Слева город и «Адрес шоурума», справа разделы и «Заказать звонок ↗» —
   текстом со стрелкой, без рамки кнопки. На ≤900px строка скрыта (responsive).
   ========================================================================== */
.header__level_1 {
  background: var(--color-bg-warm);
  border-bottom: 1px solid var(--color-border-light);
}
.header__level_1 .header__top-row { min-height: 40px; padding-top: 0; padding-bottom: 0; gap: 24px; }
.header__top-left,
.header__level_1 .header__right { display: flex; align-items: center; gap: 28px; }
.header__level_1 .header__link {
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text-soft);
  transition: color .2s ease;
}
.header__level_1 .header__link:hover { color: var(--color-accent); }
.header__level_1 .header__location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text-primary);
}
.header__geo-icon { flex: none; color: var(--color-accent); }
.header__level_1 .header__topbar-callback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--color-text-primary);
}
.header__level_1 .header__topbar-callback:hover { background: none; color: var(--color-accent); }
.header__level_1 .header__topbar-callback svg { flex: none; transition: transform .2s ease; }
.header__level_1 .header__topbar-callback:hover svg { transform: translate(1px, -1px); }
@media (max-width: 1100px) {
  .header__top-left,
  .header__level_1 .header__right { gap: 20px; }
  .header__level_1 .header__topbar-callback { margin-left: 4px; }
}

/* Шапка, вторая строка на компьютере (15.10.2026, просьба заказчика): ниже.
   Отступ сверху и снизу ровно 8px вместо «резиновых» 6–16px (main.css),
   логотип на 10% меньше прежнего на любой ширине: 132–176px вместо 147–196px. */
@media (min-width: 901px) {
  .header__level_2 { padding-top: 8px; padding-bottom: 8px; }
  .header__logo img { width: clamp(132px, 6.89vw + 44px, 176px); }
}

/* Подвал на телефоне (15.10.2026): ссылки в два столбца, а не одной лентой.
   «Каталог» и «Услуги» рядом, «Информация» — на всю ширину, её 7 ссылок тоже
   в два столбца. */
@media (max-width: 768px) {
  .footer__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }
  .footer__column { gap: 14px; min-width: 0; }
  .footer__column:last-child { grid-column: 1 / -1; }
  .footer__column:last-child .footer__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }
  /* Строки плотнее: зону нажатия ~38px даёт padding ссылки (responsive.css). */
  .footer__list { gap: 2px; }
  .footer__list li + li { margin-top: 0; }
}

/* End */


/* Start:/css/popups.css?179257418215987*/
/*
 * Попапы форм — новый вид (21.10.2026): «Заказать звонок» (и его темы: замер, расчёт, помощь,
 * восстановление доступа), «Личный кабинет», оформление заказа в корзине, обращение в кабинете.
 * Разметка: js/load-components.js (звонок), header.php (вход), cart/index.php, account/index.php.
 *
 * Общий класс .dv-pop висит рядом со старыми (call-modal, auth-modal…) — старые остаются
 * крючками для скриптов, вид задаётся только здесь. Подключается после main.css/bitrix.css.
 *
 * На ПК окно разделено: слева «камень» с темой и телефоном, справа форма (поля с линией снизу,
 * как в заявке на главной). На телефоне — шторка снизу в одну колонку.
 * Открытие: окно раскрывается из щели по центру, как дверь (тот же мотив, что в блоге и проектах).
 *
 * ГОЧИ main.css: input:not(…)×4 скругляет поля весом (0,4,1), [class*="__panel"] и [class*="field"]
 * скругляют по подстроке, input:focus-visible рисует бордовую рамку — поэтому селекторы полей здесь
 * тяжёлые и углы/обводка заданы явно.
 */
.dv-pop {
  --pop-ink: #1A1A1A;
  --pop-mute: #75706A;
  --pop-line: rgba(26, 26, 26, .14);
  --pop-stone: #EDE8E1;
  --pop-accent: #8C1F3B;
  --pop-accent-h: #6E1630;
  --pop-out: cubic-bezier(.16, 1, .3, 1);
  --pop-door: cubic-bezier(.76, 0, .24, 1);
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--pop-ink);
  text-align: left;
  opacity: 0;
  pointer-events: none;
  /* Плавное закрытие там, где браузер умеет анимировать display; в остальных — мгновенно, как раньше. */
  transition: opacity .28s ease, display .28s allow-discrete;
}
.dv-pop[aria-hidden="false"] { display: flex; opacity: 1; pointer-events: auto; }
.dv-pop [hidden] { display: none !important; }
.dv-pop *, .dv-pop *::before, .dv-pop *::after { box-sizing: border-box; }

.dv-pop .dv-pop__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 26, 22, .52);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.dv-pop .dv-pop__panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: calc(100dvh - 64px);
  margin: 0;
  padding: 0;
  overflow: hidden auto;
  overscroll-behavior: contain;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  text-align: left;
}

.dv-pop .dv-pop__split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: 480px;
}

/* ---------- левая колонка: тема ---------- */
.dv-pop .dv-pop__aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 56px 48px 48px;
  background: var(--pop-stone);
}
.dv-pop .dv-pop__title {
  margin: 0;
  padding: 0;
  border: 0;
  max-width: 13ch;
  font: 500 clamp(30px, 2.7vw, 40px)/1.08 Manrope, system-ui, sans-serif;
  letter-spacing: -.035em;
  color: var(--pop-ink);
  text-align: left;
  text-wrap: balance;
}
.dv-pop .dv-pop__lead {
  margin: 0;
  padding: 0;
  border: 0;
  max-width: 34ch;
  font-size: 16px;
  line-height: 1.6;
  color: #4a4640;
  text-align: left;
}
.dv-pop .dv-pop__tel,
.dv-pop .dv-pop__note { margin-top: auto; padding-top: 28px; }
.dv-pop .dv-pop__tel { display: grid; gap: 6px; }
.dv-pop .dv-pop__tel span { font-size: 13px; color: var(--pop-mute); }
.dv-pop .dv-pop__tel a {
  justify-self: start;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--pop-ink);
  text-decoration: none;
  transition: color .3s;
}
.dv-pop .dv-pop__tel a:hover { color: var(--pop-accent); }
.dv-pop .dv-pop__note { margin-bottom: 0; font-size: 14px; line-height: 1.6; color: #4a4640; text-align: left; }

/* ---------- правая колонка: форма ---------- */
.dv-pop .dv-pop__main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 72px 56px 48px;
  text-align: left;
}
.dv-pop .dv-pop__form {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  text-align: left;
}
.dv-pop .dv-pop__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.dv-pop .dv-pop__field {
  display: grid;
  gap: 4px;
  margin: 0;
  border-radius: 0;
}
.dv-pop .dv-pop__field label {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--pop-mute);
  text-align: left;
}
.dv-pop .dv-pop__field label span { color: inherit; font-weight: 400; }
.dv-pop .dv-pop__main .dv-pop__field input.dv-pop__input:not([type="checkbox"]),
.dv-pop .dv-pop__main .dv-pop__field textarea.dv-pop__input {
  width: 100%;
  height: auto;
  min-height: 46px;
  margin: 0;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(26, 26, 26, .28);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  font: 400 17px/1.4 Manrope, system-ui, sans-serif;
  color: var(--pop-ink);
  text-align: left;
  transition: border-color .3s;
}
.dv-pop .dv-pop__main .dv-pop__field textarea.dv-pop__input { min-height: 96px; resize: vertical; }
.dv-pop .dv-pop__main .dv-pop__field .dv-pop__input::placeholder { color: #ABA59E; opacity: 1; }
.dv-pop .dv-pop__main .dv-pop__field input.dv-pop__input:not([type="checkbox"]):focus,
.dv-pop .dv-pop__main .dv-pop__field input.dv-pop__input:not([type="checkbox"]):focus-visible,
.dv-pop .dv-pop__main .dv-pop__field textarea.dv-pop__input:focus,
.dv-pop .dv-pop__main .dv-pop__field textarea.dv-pop__input:focus-visible {
  border-bottom-color: var(--pop-accent);
  outline: none;
  box-shadow: none;
}

/* капча: картинка, обновить, поле — одной строкой */
.dv-pop .dv-pop__captcha { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: end; gap: 12px; margin: 0; }
.dv-pop .dv-pop__captcha .checkout-captcha__img { height: 44px; width: auto; border: 0; border-radius: 0; background: #F2EEE8; }
.dv-pop .dv-pop__captcha .checkout-captcha__reload {
  width: 44px; height: 44px; padding: 0; border: 1px solid var(--pop-line); border-radius: 0;
  background: #fff; color: var(--pop-ink); font-size: 18px; cursor: pointer; transition: color .3s, border-color .3s;
}
.dv-pop .dv-pop__captcha .checkout-captcha__reload:hover { color: var(--pop-accent); border-color: var(--pop-accent); }

/* согласие */
.dv-pop .dv-pop__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--pop-mute);
  text-align: left;
  cursor: pointer;
}
.dv-pop .dv-pop__consent input[type="checkbox"] { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--pop-accent); border-radius: 0; }
.dv-pop .dv-pop__consent a { color: inherit; text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
.dv-pop .dv-pop__consent a:hover { color: var(--pop-accent); }

.dv-pop .dv-pop__error { min-height: 0; margin: 0; font-size: 14px; line-height: 1.5; color: #b3261e; text-align: left; }
.dv-pop .dv-pop__error:empty { display: none; }
.dv-pop .dv-pop__ok { margin: 0; font-size: 15px; line-height: 1.5; color: #2f6b3a; }
.dv-pop .dv-pop__text { margin: 0; max-width: 42ch; font-size: 17px; line-height: 1.6; color: #4a4640; }
.dv-pop .dv-pop__text strong { color: var(--pop-ink); font-weight: 600; }

/* кнопка: как на новых страницах — бордовая, заливка поднимается снизу, стрелка уходит вверх */
.dv-pop .dv-pop__btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  justify-self: start;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: auto;
  min-height: 56px;
  margin: 6px 0 0;
  padding: 0 32px;
  border: 0;
  border-radius: 0;
  background: var(--pop-accent);
  color: #fff;
  font: 500 15px/1.2 Manrope, system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
}
.dv-pop .dv-pop__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--pop-accent-h);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform .45s var(--pop-out);
}
.dv-pop .dv-pop__btn:hover { background: var(--pop-accent); color: #fff; }
.dv-pop .dv-pop__btn:hover::before { transform: scaleY(1); }
.dv-pop .dv-pop__btn:active { transform: translateY(1px); }
.dv-pop .dv-pop__btn svg { width: 14px; height: 14px; flex: none; transition: transform .35s var(--pop-out); }
.dv-pop .dv-pop__btn:hover svg { transform: translate(2px, -2px); }
.dv-pop .dv-pop__btn:disabled { opacity: .6; cursor: default; }

/* текстовые ссылки-кнопки: «Забыли пароль?», переключение вход/регистрация, войти из корзины */
.dv-pop .dv-pop__link {
  display: inline;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--pop-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(26, 26, 26, .3);
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color .3s, text-decoration-color .3s;
}
.dv-pop .dv-pop__note .dv-pop__link { font-size: inherit; }
.dv-pop .dv-pop__link:hover { color: var(--pop-accent); text-decoration-color: currentColor; }
.dv-pop .dv-pop__form > .dv-pop__link { justify-self: start; margin-top: -8px; color: var(--pop-mute); }
.dv-pop .dv-pop__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.dv-pop .dv-pop__row .dv-pop__btn { margin: 0; }

/* вкладки вход / регистрация: линия снизу, выбранная — бордовая */
.dv-pop .dv-pop__tabs {
  display: flex;
  gap: 32px;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--pop-line);
  background: none;
}
.dv-pop .dv-pop__tabs .dv-pop__tab {
  flex: none;
  position: relative;
  width: auto;
  height: auto;
  margin: 0 0 -1px;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: var(--pop-mute);
  font: 500 17px/1.3 Manrope, system-ui, sans-serif;
  letter-spacing: -.01em;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
  transition: color .3s, border-color .3s;
}
.dv-pop .dv-pop__tabs .dv-pop__tab:hover { color: var(--pop-ink); }
.dv-pop .dv-pop__tabs .dv-pop__tab.modal__tab_active { color: var(--pop-ink); border-bottom-color: var(--pop-accent); }

/* готово: галочка и текст в правой колонке */
.dv-pop .dv-pop__done { display: grid; justify-items: start; align-content: center; gap: 16px; text-align: left; }
.dv-pop .dv-pop__done .dv-check { justify-content: flex-start; margin: 0; }
.dv-pop .dv-pop__done p { margin: 0; max-width: 34ch; font-size: 19px; line-height: 1.5; color: var(--pop-ink); text-align: left; }

/* крестик */
.dv-pop .dv-pop__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--pop-ink);
  font-size: 0;
  cursor: pointer;
  transition: color .3s, transform .45s var(--pop-out);
}
.dv-pop .dv-pop__close svg { width: 20px; height: 20px; }
.dv-pop .dv-pop__close:hover { color: var(--pop-accent); transform: rotate(90deg); }

.dv-pop .dv-pop__close:focus-visible,
.dv-pop .dv-pop__btn:focus-visible,
.dv-pop .dv-pop__link:focus-visible,
.dv-pop .dv-pop__tabs .dv-pop__tab:focus-visible { outline: 2px solid var(--pop-accent); outline-offset: 3px; }

/* ---------- открытие: щель по центру расходится к краям, содержимое поднимается ---------- */
@keyframes dv-pop-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dv-pop-door { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
@keyframes dv-pop-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes dv-pop-sheet { from { transform: translateY(100%); } to { transform: none; } }

.dv-pop[aria-hidden="false"] .dv-pop__backdrop { animation: dv-pop-fade .35s ease both; }
.dv-pop[aria-hidden="false"] .dv-pop__panel { animation: dv-pop-door .7s var(--pop-door) backwards; }
.dv-pop[aria-hidden="false"] .dv-pop__aside > *,
.dv-pop[aria-hidden="false"] .dv-pop__main,
.dv-pop[aria-hidden="false"] .dv-pop__close { animation: dv-pop-rise .7s var(--pop-out) backwards; }
.dv-pop[aria-hidden="false"] .dv-pop__aside > :nth-child(1) { animation-delay: .32s; }
.dv-pop[aria-hidden="false"] .dv-pop__aside > :nth-child(2) { animation-delay: .4s; }
.dv-pop[aria-hidden="false"] .dv-pop__aside > :nth-child(3) { animation-delay: .48s; }
.dv-pop[aria-hidden="false"] .dv-pop__main { animation-delay: .42s; }
.dv-pop[aria-hidden="false"] .dv-pop__close { animation-delay: .5s; }
/* Смена вкладки вход/регистрация — короткое проявление без задержки. */
.dv-pop[aria-hidden="false"] .dv-pop__main > [data-auth-panel] { animation: dv-pop-fade .35s ease backwards; }

/* ---------- планшет ---------- */
@media (max-width: 960px) {
  .dv-pop .dv-pop__aside { padding: 48px 32px 36px; }
  .dv-pop .dv-pop__main { padding: 64px 36px 40px; }
}

/* ---------- телефон: шторка снизу, одна колонка ---------- */
@media (max-width: 720px) {
  .dv-pop { align-items: flex-end; padding: 0; }
  .dv-pop .dv-pop__panel { width: 100%; max-height: 92dvh; }
  .dv-pop .dv-pop__split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .dv-pop .dv-pop__aside { gap: 10px; padding: 28px 64px 24px 20px; }
  .dv-pop .dv-pop__title { max-width: none; font-size: 28px; }
  .dv-pop .dv-pop__lead { font-size: 15px; line-height: 1.55; }
  .dv-pop .dv-pop__tel { display: none; }
  .dv-pop .dv-pop__note { margin-top: 4px; padding-top: 0; font-size: 14px; }
  .dv-pop .dv-pop__main { justify-content: flex-start; gap: 20px; padding: 24px 20px calc(28px + env(safe-area-inset-bottom)); }
  .dv-pop .dv-pop__form { gap: 18px; }
  .dv-pop .dv-pop__pair { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .dv-pop .dv-pop__btn { justify-self: stretch; align-self: stretch; width: 100%; }
  .dv-pop .dv-pop__row { display: grid; gap: 14px; }
  .dv-pop .dv-pop__row .dv-pop__link { justify-self: center; }
  .dv-pop .dv-pop__tabs { gap: 24px; }
  .dv-pop .dv-pop__close { top: 12px; right: 8px; }
  .dv-pop .dv-pop__done p { font-size: 17px; }
  .dv-pop .dv-pop__consent input[type="checkbox"] { width: 22px; height: 22px; }
  .dv-pop[aria-hidden="false"] .dv-pop__panel { animation: dv-pop-sheet .55s var(--pop-out) backwards; }
}

@media (prefers-reduced-motion: reduce) {
  .dv-pop { transition: none; }
  .dv-pop[aria-hidden="false"] .dv-pop__backdrop,
  .dv-pop[aria-hidden="false"] .dv-pop__panel,
  .dv-pop[aria-hidden="false"] .dv-pop__aside > *,
  .dv-pop[aria-hidden="false"] .dv-pop__main,
  .dv-pop[aria-hidden="false"] .dv-pop__main > [data-auth-panel],
  .dv-pop[aria-hidden="false"] .dv-pop__close { animation: none; }
}

/* End */
/* /css/main.css?1792424608311670 */
/* /css/search.css?179207159513684 */
/* /css/responsive.css?178876690614828 */
/* /css/transitions.css?17912318346263 */
/* /css/product-detail.css?179236092819809 */
/* /local/templates/dveryaninov/css/bitrix.css?179242460857447 */
/* /css/popups.css?179257418215987 */
