/* Токены и шрифты в духе mrdoors.ru (Cera Pro локально в ../fonts/, палитра #4C4A44 / #F5F5F5) */
@font-face {
  font-family: "Cera Pro";
  src: url("../fonts/CeraPro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cera Pro";
  src: url("../fonts/CeraPro-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cera Pro";
  src: url("../fonts/CeraPro-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Как на mrdoors.ru: «белый» фон страницы — тёплый #F5F5F5 */
  --main-color: #4c4a44;
  --white: #f5f5f5;
  --text-light: #f5f5f5;
  --text-dark: #111111;
  --text-muted: #868683;
  --border-light: #efefef;
  --accent-red: #d11b1d;
  /* Сетка как на mrdoors.ru: контент до 1920px по центру, поля 100 / 80 / 20 px */
  --page-max-width: 1920px;
  --inner-max-width: 1720px;
  --section-pad-x: 100px;
  --section-pad-x-md: 80px;
  --section-pad-x-sm: 20px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background-color: var(--white);
}

body {
  font-family: "Cera Pro", "Segoe UI", system-ui, sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.4;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

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

a:hover {
  text-decoration: none;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

/* Утилиты ссылок как на mrdoors.ru */
.text-decor-border {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
a.text-decor-border:hover,
.text-decor-border:hover {
  border-bottom-color: currentColor;
}

.bold-text-link {
  font-weight: 500;
  font-size: 20px;
  line-height: 100%;
}

.txt-dcr-txt-bck {
  font-family: "Cera Pro", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 100%;
  color: var(--text-dark);
  border-bottom: 1px solid currentColor;
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: 2px;
}
.txt-dcr-txt-bck:hover {
  opacity: 0.85;
}

/* Кнопки */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  border: 1px solid;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.button--trans {
  color: #ebebeb;
  border-color: #ebebeb;
  background-color: transparent;
}
.button--trans:hover {
  background-color: var(--white);
  color: var(--main-color);
  border-color: var(--main-color);
}

.button--cta {
  color: var(--text-dark);
  text-align: center;
  font-size: 20px;
  font-weight: 400;
  line-height: 100%;
  text-transform: uppercase;
  background: rgba(245, 245, 245, 0.78);
  max-width: 360px;
  padding: 20px 24px;
  border: none;
  white-space: nowrap;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.button--cta:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .button--cta:hover {
    transform: none;
  }
}

/* ——— Шапка (классы и поведение как на mrdoors.ru) ——— */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: transparent;
  color: #fff;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.header__container {
  height: 100%;
}

.header .container {
  max-width: var(--page-max-width);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
  padding-left: var(--section-pad-x);
  padding-right: var(--section-pad-x);
}

.header__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  color: #f5f5f5;
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.header__logo svg {
  display: block;
  height: 40px;
  width: auto;
}

.header:hover .header__logo {
  color: #4c4a44;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 40px;
  min-width: 0;
}

.header__nav {
  flex-grow: 1;
  margin-left: 40px;
}

.header__nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: flex-end;
}

.header__nav-item {
  display: flex;
  gap: 6px;
  align-items: center;
}

.header__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f5f5f5;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.header:hover .header__nav-link {
  color: #3d3c37;
}

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

.header__icons {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-shrink: 0;
}

.header__icons-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5f5f5;
  transition: color 0.3s ease, opacity 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.header:hover .header__icon {
  color: #3d3c37;
}

.header__icon:hover {
  opacity: 0.7;
}

.header__icon--salon {
  display: none;
}

.header,
.header__logo,
.header__icon,
.header__nav-link {
  transition: color 0.3s ease, background-color 0.3s ease;
}

.header:hover,
.header.scrolled,
.header.menu-open {
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(76, 74, 68, 0.06), 0 12px 40px rgba(0, 0, 0, 0.06);
}

.header.scrolled .header__logo,
.header.menu-open .header__logo,
.scrolled_alt .header__logo {
  color: #4c4a44;
}

.header.scrolled .header__icon,
.header.menu-open .header__icon,
.scrolled_alt .header__icon {
  color: #3d3c37;
}

.header.scrolled .header__nav-link,
.header.menu-open .header__nav-link,
.scrolled_alt .header__nav-link {
  color: #3d3c37;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 8px;
  margin: -8px;
  background: none;
  border: none;
}

.hamburger-line {
  width: 32px;
  height: 2px;
  background: #f5f5f5;
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.3s ease;
}

.header:hover .hamburger-line,
.header.scrolled .hamburger-line,
.header.menu-open .hamburger-line {
  background: #3d3c37;
}

.hamburger:hover .hamburger-line {
  opacity: 0.7;
}

.header.menu-open .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.header.menu-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.header.menu-open .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1380px) {
  .hamburger {
    display: flex;
  }

  .header__nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 70px;
    bottom: 0;
    margin-left: 0;
    flex-grow: 0;
    background-color: #f5f5f5;
    overflow-y: auto;
    z-index: 999;
    padding: 40px var(--section-pad-x) 60px;
    box-sizing: border-box;
  }

  .header__nav.is-open {
    display: flex;
    align-items: flex-start;
  }

  .header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 28px;
    width: 100%;
  }

  .header__nav-link {
    color: #3d3c37;
    font-size: 24px;
    font-weight: 500;
    line-height: 100%;
    opacity: 1;
  }

  .header__nav-link:hover {
    opacity: 0.65;
  }

  .header.menu-open .header__nav-link {
    color: #3d3c37;
  }
}

@media (max-width: 768px) {
  .header .container {
    padding-left: var(--section-pad-x);
    padding-right: var(--section-pad-x);
  }

  .header__icons {
    gap: 15px;
  }

  .header__icon--salon {
    display: flex;
  }
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .header .container {
    padding-left: var(--section-pad-x);
    padding-right: var(--section-pad-x);
  }
}

/* ——— Hero ——— */
.hero {
  background-color: var(--main-color);
}

.hero__wrapper {
  margin: 0 auto;
  width: 100%;
  min-height: 560px;
  height: min(100vh, 725px);
  display: flex;
  flex-direction: column;
  position: relative;
  /* url() задаём здесь: из styles.css путь ../img/ (не img/ — иначе ищется css/img/) */
  background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.57) 0%,
      rgba(0, 0, 0, 0.3) 50.96%,
      rgba(0, 0, 0, 0.8) 100%
    ),
    url("../img/lshayeyjjvvmeqbz2bk45cmqrcgutpb9.webp") center / cover no-repeat;
}

.hero__content {
  position: relative;
  z-index: 5;
  color: var(--white);
  box-sizing: border-box;
  width: 100%;
  max-width: var(--page-max-width);
  margin-left: auto;
  margin-right: auto;
  height: 100%;
  min-height: inherit;
  display: flex;
  padding: 90px var(--section-pad-x) 40px;
  flex-direction: column;
  gap: clamp(40px, 8vh, 100px);
  justify-content: flex-end;
}

.hero__content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero__content-title {
  max-width: 670px;
  color: var(--white);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 400;
  line-height: 110%;
  letter-spacing: -2.7px;
  text-transform: uppercase;
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero__content-sub {
  max-width: 560px;
  font-size: 19px;
  font-weight: 400;
  line-height: 138%;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}

.hero__content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* Полоска преимуществ как на mrdoors.ru */
.hero__content-list-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.hero__content-list {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
}

.hero__content-list li {
  position: relative;
  white-space: nowrap;
  color: #bababa;
  font-family: "Cera Pro", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
}

.hero__content-list li:not(:last-child) {
  padding-right: 30px;
}

.hero__content-list li:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.3);
  font-family: "Cera Pro", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
  pointer-events: none;
}

.hero__content-list li b {
  font-weight: 700;
}

@media (max-width: 1050px) {
  .hero__content-list {
    grid-template-columns: repeat(2, auto);
  }

  .hero__content-list li:nth-child(2)::after {
    content: none;
  }
}

@media (max-width: 480px) {
  .hero__content-list li:not(:last-child)::after {
    content: none;
  }

  .hero__content-list li:not(:last-child) {
    padding-right: 0;
  }

  .hero__content-list {
    grid-template-columns: repeat(2, auto);
  }
}

/* ——— О компании ——— */
.section-about {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 80px var(--section-pad-x);
}

.section-about__title {
  font-size: 36px;
  font-weight: 500;
  line-height: 100%;
  text-transform: uppercase;
  color: var(--main-color);
  margin-bottom: 40px;
}

.section-about__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(40px, 5.5vw, 96px);
  align-items: center;
}

.section-about__text {
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  color: var(--main-color);
  max-width: 640px;
  min-width: 0;
}

.section-about__figure {
  margin: 0;
  position: relative;
  width: min(288px, 26vw);
  min-width: 220px;
  justify-self: end;
}

/* «Второй лист» под углом — как набросок на столе */
.section-about__figure::before {
  content: "";
  position: absolute;
  right: -4%;
  bottom: -10%;
  width: 92%;
  height: 72%;
  background: rgba(76, 74, 68, 0.05);
  border: 1px solid rgba(76, 74, 68, 0.12);
  border-radius: 3px;
  transform: rotate(8deg);
  z-index: 0;
  pointer-events: none;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.section-about__figure-frame {
  position: relative;
  z-index: 1;
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 1px 0 rgba(76, 74, 68, 0.06),
    0 20px 40px -18px rgba(76, 74, 68, 0.22);
  border: 1px solid rgba(76, 74, 68, 0.1);
  transform: rotate(-1.25deg);
  transform-origin: 50% 50%;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease;
}

.section-about__figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.section-about__figure img {
  display: block;
  width: 100%;
  height: auto;
}

@media (hover: hover) and (pointer: fine) {
  .section-about__figure:hover .section-about__figure-frame {
    transform: rotate(0deg) translateY(-6px);
    box-shadow:
      0 1px 0 rgba(76, 74, 68, 0.06),
      0 28px 56px -20px rgba(76, 74, 68, 0.28);
  }

  .section-about__figure:hover::before {
    transform: rotate(5deg) translate(2px, 2px);
    opacity: 0.92;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-about__figure-frame {
    transition: none;
    transform: none;
  }

  .section-about__figure::before {
    transition: none;
    transform: rotate(4deg);
  }

  .section-about__figure:hover .section-about__figure-frame,
  .section-about__figure:hover::before {
    transform: rotate(4deg);
    opacity: 1;
  }
}

@media (max-width: 960px) {
  .section-about__layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .section-about__text {
    max-width: none;
  }

  .section-about__figure {
    width: auto;
    min-width: 0;
    max-width: min(100%, 440px);
    margin-left: auto;
    margin-right: auto;
    justify-self: center;
  }

  .section-about__figure::before {
    display: none;
  }

  .section-about__figure-frame {
    transform: none;
  }
}

.section-about__text p + p {
  margin-top: 1.25em;
}

.section-about__list {
  margin-top: 24px;
  padding-left: 1.2em;
  list-style: disc;
  color: var(--main-color);
  font-size: 16px;
  line-height: 160%;
}

.section-about__list li + li {
  margin-top: 8px;
}

/* ——— Портфолио (вёрстка и размеры как на mrdoors.ru — full_width_swiper) ——— */
.swiper_block_wid {
  --portfolio-slide-gap: 20px;
  --portfolio-width-duration: 0.55s;
  --portfolio-width-ease: cubic-bezier(0.22, 1, 0.36, 1);
  margin: 80px auto 0;
  overflow: hidden;
}

.swiper_block_wid.black,
.black {
  background-color: var(--main-color);
  padding-top: 80px;
  padding-bottom: 80px;
}

.page_left_p {
  padding-left: var(--section-pad-x);
}

.page_left_cont {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
}

.page_section_title {
  margin-bottom: 40px;
  font-family: "Cera Pro", sans-serif;
  font-weight: 500;
  font-size: 36px;
  line-height: 100%;
  text-transform: uppercase;
  color: var(--main-color);
}

.page_section_descr {
  font-family: "Cera Pro", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 100%;
  color: var(--main-color);
  width: min(100%, 423px);
  margin-bottom: 40px;
}

.black .page_section_title,
.black .page_section_descr {
  color: var(--text-light);
}

.more_cont {
  box-sizing: border-box;
  width: min(100%, var(--inner-max-width));
  margin: 0 auto;
  overflow: hidden;
}

/* На всю ширину inner (как на mrdoors): без «окна» 700px по центру — иначе огромный зазор слева */
.swiper_block_wid .swiper-initialized {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  scroll-padding-inline: 0;
}

.swiper_block_wid .swiper-initialized:active {
  cursor: grabbing;
}

.swiper_block_wid .swiper-initialized::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Не задавать тут overflow: visible на .swiper — он совпадает с .swiper-initialized и сбрасывает overflow-x: auto */

.swiper_block_wid .swiper-wrapper {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: var(--portfolio-slide-gap);
  width: max-content;
}

.swiper_block_wid .swiper-slide {
  flex: 0 0 auto;
  width: 400px;
  height: 600px;
  transition: width var(--portfolio-width-duration) var(--portfolio-width-ease);
}

.swiper_block_wid div.current_active {
  width: 700px;
}

.swiper_block_wid a {
  display: block;
  height: 100%;
  position: relative;
}

.swiper_block_wid .slider_img {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.swiper_block_wid .slider_img::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  pointer-events: none;
}

.swiper_block_wid .slider_img img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  object-position: left;
  transition: transform 0.65s var(--portfolio-width-ease);
}

.swiper_block_wid .slider_img:hover img {
  transform: scale(1.1);
}

.swiper_block_wid .slider_text {
  position: absolute;
  left: 40px;
  bottom: 40px;
  z-index: 2;
}

.swiper_block_wid .slider_text_title {
  font-family: "Cera Pro", sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 100%;
  color: #f5f5f5;
  margin-bottom: 20px;
}

.swiper_block_wid .slider_text_descr {
  font-family: "Cera Pro", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 100%;
  color: #f5f5f5;
  width: min(100%, 320px);
}

.swiper_block_wid .sale-slide-card,
.swiper_block_wid .portfolio-slide-card {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: inherit;
  color: inherit;
  box-sizing: border-box;
}

.swiper_block_wid .sale-slide-card:focus-visible,
.swiper_block_wid .portfolio-slide-card:focus-visible {
  outline: 2px solid var(--text-light);
  outline-offset: 3px;
}

.swiper_block_wid .slider_text_price {
  font-family: "Cera Pro", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 120%;
  color: #f5f5f5;
  width: min(100%, 320px);
}

.swiper_block_wid .swiper_portfolio a:focus-visible {
  outline: 2px solid var(--text-light);
  outline-offset: 3px;
}

/* Как на mrdoors.ru: template .button + .button--trans, collection/portfolio full_width_swiper */
.swiper_block_wid .button_div .button--trans {
  box-sizing: border-box;
  width: 100%;
  max-width: 400px;
  justify-content: center;
  font-family: "Cera Pro", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 100%;
  padding: 20px 15px;
  border-color: #ebebeb;
  color: #ebebeb;
}

.swiper_block_wid .button_div .button--trans:hover {
  color: var(--main-color);
  border-color: var(--main-color);
  background-color: var(--white);
}

.bottom_nav_block {
  box-sizing: border-box;
  max-width: var(--page-max-width);
  padding: 0 var(--section-pad-x);
  margin: 40px auto 0;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom_position_nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.swiper_block_wid.black .nav_block.white_filter {
  border-color: #ebebeb;
}

.nav_block {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--main-color);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.nav_block.white_filter img {
  filter: brightness(0) invert(1);
}

.nav_block:hover:not(:disabled) {
  opacity: 0.85;
}

.nav_block:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.custom_position_nav .swiper-button-disabled {
  opacity: 0.3;
}

@media (prefers-reduced-motion: reduce) {
  .swiper_block_wid .swiper-slide {
    transition: none;
  }

  .swiper_block_wid .slider_img img {
    transition: none;
  }
}

/* ——— Акции (карусель карточек как на mrdoors.ru: фото сверху, текст снизу) ——— */
.sec_type {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--page-max-width);
  margin: 80px auto 0;
  padding: 0 var(--section-pad-x);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.sec_type .more_cont {
  margin-top: 0;
}

.sec_type__title {
  color: var(--main-color);
  font-size: 36px;
  font-weight: 500;
  line-height: 100%;
  text-transform: uppercase;
}

.sec_typeSwiper.promo {
  overflow: visible;
}

.sec_typeSwiper.promo .sec_type__list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 0 4px;
  margin: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sec_typeSwiper.promo .sec_type__list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.sec_typeSwiper.promo .sec_type__item {
  flex: 0 0 min(400px, 100%);
  scroll-snap-align: start;
  min-width: 0;
}

.promo-card {
  height: 100%;
}

.promo-card__link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  height: 100%;
}

.promo-card__media {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

.promo-card__media a {
  display: block;
  height: 100%;
  overflow: hidden;
}

.promo-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.promo-card__media a:hover img {
  transform: scale(1.05);
}

.promo-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 0 0;
  min-height: 0;
}

.promo-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.promo-card__title {
  font-family: "Cera Pro", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 120%;
  color: var(--main-color);
  margin: 0;
}

.promo-card__title:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.promo-card__desc {
  font-family: "Cera Pro", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 140%;
  color: var(--main-color);
  margin: 0;
}

.sec_type__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.sec_type__all {
  color: var(--main-color);
  font-size: 20px;
  font-weight: 500;
  line-height: 100%;
  padding: 4px 0;
}

.sec_type__arrows {
  display: flex;
  gap: 20px;
}

.sec_type__arrows button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--main-color);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.sec_type__arrows button:hover:not(:disabled) {
  opacity: 0.75;
}

.sec_type__arrows button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ——— Виртуальный тур (галерея салона) ——— */
.virtual-tour {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--page-max-width);
  margin: 80px auto 0;
  padding: 0 var(--section-pad-x);
}

.virtual-tour__title {
  color: var(--main-color);
  font-size: 36px;
  font-weight: 500;
  line-height: 100%;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.virtual-tour__lead {
  font-family: "Cera Pro", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 140%;
  color: var(--main-color);
  max-width: 42rem;
  margin: 0 0 24px;
  opacity: 0.92;
}

/* Мобайл / планшет до 900px: горизонтальный слайдер */
.virtual-tour__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 calc(-1 * var(--section-pad-x));
  padding: 0 var(--section-pad-x) 6px;
  box-sizing: border-box;
}

.virtual-tour__viewport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.virtual-tour__grid {
  --virtual-tour-slide-gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: var(--virtual-tour-slide-gap);
  width: max-content;
  min-height: 0;
}

.virtual-tour__item {
  margin: 0;
  flex: 0 0 min(calc(100vw - var(--section-pad-x) * 2 - 24px), 340px);
  width: min(calc(100vw - var(--section-pad-x) * 2 - 24px), 340px);
  max-width: min(calc(100vw - var(--section-pad-x) * 2 - 24px), 340px);
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.virtual-tour__nav {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.virtual-tour__arrows {
  display: flex;
  gap: 20px;
  align-items: center;
}

.virtual-tour__arrow {
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  border-radius: 50%;
  border: 1px solid var(--main-color);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.virtual-tour__arrow:hover {
  opacity: 0.75;
}

.virtual-tour__thumb {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: none;
  border-radius: 2px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--border-light);
  box-shadow: 0 1px 0 rgba(76, 74, 68, 0.06);
  transition:
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

.virtual-tour__thumb:focus-visible {
  outline: 2px solid var(--main-color);
  outline-offset: 3px;
}

.virtual-tour__thumb:hover {
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.12);
  transform: translateY(-2px);
}

.virtual-tour__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  vertical-align: middle;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.virtual-tour__thumb:hover img {
  transform: scale(1.03);
}

.virtual-tour-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.virtual-tour-lightbox[hidden] {
  display: none;
}

.virtual-tour-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.88);
  cursor: zoom-out;
}

.virtual-tour-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(245, 245, 245, 0.35);
  background: rgba(17, 17, 17, 0.5);
  color: var(--text-light);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.virtual-tour-lightbox__close:hover {
  background: rgba(17, 17, 17, 0.85);
  border-color: rgba(245, 245, 245, 0.55);
}

.virtual-tour-lightbox__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(92vw, 720px);
  max-height: min(88vh, 960px);
}

.virtual-tour-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: min(88vh, 960px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

body.virtual-tour-lightbox-open {
  overflow: hidden;
}

/* ——— Лайтбокс галереи распродажи ——— */
.slide-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 24px;
  box-sizing: border-box;
}

.slide-gallery-lightbox[hidden] {
  display: none;
}

.slide-gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.9);
  cursor: zoom-out;
}

.slide-gallery-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(245, 245, 245, 0.35);
  background: rgba(17, 17, 17, 0.5);
  color: var(--text-light);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.slide-gallery-lightbox__close:hover {
  background: rgba(17, 17, 17, 0.85);
  border-color: rgba(245, 245, 245, 0.55);
}

.slide-gallery-lightbox__caption {
  position: relative;
  z-index: 2;
  margin: 0 0 12px;
  padding: 0 56px;
  font-size: 14px;
  color: rgba(245, 245, 245, 0.85);
  text-align: center;
  max-width: min(92vw, 640px);
}

.slide-gallery-lightbox__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: min(96vw, 960px);
}

.slide-gallery-lightbox__figure {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: min(82vh, 900px);
}

.slide-gallery-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: min(82vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.slide-gallery-lightbox__arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(245, 245, 245, 0.35);
  background: rgba(17, 17, 17, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.slide-gallery-lightbox__arrow:hover {
  background: rgba(17, 17, 17, 0.75);
}

.slide-gallery-lightbox__arrow[hidden] {
  visibility: hidden;
  pointer-events: none;
}

body.slide-gallery-lightbox-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .slide-gallery-lightbox__inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .slide-gallery-lightbox__arrow--prev {
    order: 2;
  }

  .slide-gallery-lightbox__figure {
    order: 1;
    flex: 1 1 100%;
  }

  .slide-gallery-lightbox__arrow--next {
    order: 3;
  }
}

/* ——— Модальная форма «Рассчитать стоимость» (стиль как на mrdoors.ru) ——— */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  box-sizing: border-box;
}

.lead-modal[hidden] {
  display: none;
}

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 18, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.lead-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  max-height: min(92vh, 880px);
  overflow-y: auto;
  background-color: #4a4843;
  color: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.lead-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.lead-modal__close:hover {
  opacity: 0.75;
}

.lead-modal__header {
  padding: 36px 48px 28px 40px;
  padding-right: 56px;
  box-sizing: border-box;
}

.lead-modal__title {
  margin: 0 0 16px;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
}

.lead-modal__intro {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
}

.lead-modal__body {
  background-color: #55534d;
  padding: 32px 40px 40px;
  box-sizing: border-box;
}

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

.lead-modal__field {
  margin: 0;
}

.lead-modal__input-line {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.95);
  padding-bottom: 6px;
}

.lead-modal__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  padding: 4px 0;
  outline: none;
}

.lead-modal__input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.lead-modal__input:focus::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.lead-modal__star {
  flex-shrink: 0;
  color: #c62828;
  font-size: 16px;
  line-height: 1;
  padding-bottom: 4px;
}

.lead-modal__check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.lead-modal__checkbox {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.lead-modal__checkbox:checked {
  background-color: #f4f4f4;
  border-color: #f4f4f4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23333' stroke-width='2' d='M1 5l3.5 3.5L11 1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px auto;
}

.lead-modal__checkbox:focus-visible {
  outline: 2px solid #f4f4f4;
  outline-offset: 2px;
}

.lead-modal__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lead-modal__link:hover {
  opacity: 0.85;
}

.lead-modal__submit {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 16px 24px;
  border: none;
  background-color: #f4f4f4;
  color: #333;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lead-modal__submit:hover {
  background-color: #e8e8e8;
}

.lead-modal__thanks {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  padding: 16px 8px;
}

body.lead-modal-open {
  overflow: hidden;
}

@media (max-width: 540px) {
  .lead-modal__header {
    padding: 32px 44px 20px 24px;
  }

  .lead-modal__body {
    padding: 24px 20px 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .virtual-tour__viewport {
    scroll-behavior: auto;
  }

  .virtual-tour__thumb,
  .virtual-tour__thumb img {
    transition: none;
  }

  .virtual-tour__thumb:hover {
    transform: none;
  }

  .virtual-tour__thumb:hover img {
    transform: none;
  }
}

@media (min-width: 480px) {
  .virtual-tour__grid {
    --virtual-tour-slide-gap: 16px;
  }
}

@media (min-width: 768px) {
  .virtual-tour__item {
    flex: 0 0 min(calc(100vw - var(--section-pad-x) * 2 - 32px), 360px);
    width: min(calc(100vw - var(--section-pad-x) * 2 - 32px), 360px);
    max-width: min(calc(100vw - var(--section-pad-x) * 2 - 32px), 360px);
  }
}

/* От 900px — сетка вместо слайдера */
@media (min-width: 900px) {
  .virtual-tour__nav {
    display: none;
  }

  .virtual-tour__viewport {
    overflow: visible;
    margin: 0;
    padding: 0;
    scroll-snap-type: none;
  }

  .virtual-tour__grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, 22vw);
    gap: 16px;
  }

  .virtual-tour__item {
    flex: unset;
    width: auto;
    max-width: none;
    scroll-snap-align: unset;
  }

  .virtual-tour__thumb {
    aspect-ratio: auto;
    height: 100%;
    min-height: 0;
  }
}

/* Планшет: последний кадр — панорама на всю ширину */
@media (min-width: 900px) and (max-width: 1099px) {
  .virtual-tour__item:nth-child(9) {
    grid-column: 1 / -1;
  }

  .virtual-tour__item:nth-child(9) .virtual-tour__thumb {
    height: auto;
    min-height: clamp(180px, 20vw, 260px);
    aspect-ratio: 21 / 9;
    max-height: 320px;
  }

  .virtual-tour__thumb {
    min-height: 0;
  }
}

/* Десктоп: 4 колонки + бенто — акцент 2×2, сетка 2×2, ряд из 4 */
@media (min-width: 1100px) {
  .virtual-tour__grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, 14vw);
    gap: clamp(16px, 1.4vw, 24px);
  }

  .virtual-tour__item:nth-child(1) {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
  }

  .virtual-tour__item:nth-child(2) {
    grid-column: 3;
    grid-row: 1;
  }

  .virtual-tour__item:nth-child(3) {
    grid-column: 4;
    grid-row: 1;
  }

  .virtual-tour__item:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
  }

  .virtual-tour__item:nth-child(5) {
    grid-column: 4;
    grid-row: 2;
  }

  .virtual-tour__item:nth-child(6) {
    grid-column: 1;
    grid-row: 3;
  }

  .virtual-tour__item:nth-child(7) {
    grid-column: 2;
    grid-row: 3;
  }

  .virtual-tour__item:nth-child(8) {
    grid-column: 3;
    grid-row: 3;
  }

  .virtual-tour__item:nth-child(9) {
    grid-column: 4;
    grid-row: 3;
  }

  .virtual-tour__thumb {
    min-height: 0;
  }

  .virtual-tour__lead {
    margin-bottom: 40px;
  }
}

/* ——— Каталог ——— */
section.catalog {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--page-max-width);
  margin: 80px auto 0;
  padding-left: var(--section-pad-x);
  padding-right: var(--section-pad-x);
}

.catalog-container {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 500px;
}

.catalog-header {
  flex: 0 0 260px;
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.catalog-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.catalog-content-title {
  color: var(--main-color);
  font-size: 36px;
  font-weight: 500;
  line-height: 100%;
  text-transform: uppercase;
}

.catalog-description {
  color: var(--main-color);
  font-size: 16px;
  font-weight: 400;
  line-height: 140%;
  max-width: 280px;
}

.catalog-button-wrapper {
  display: flex;
  gap: 20px;
}

.catalog-button-next,
.catalog-button-prev {
  width: 50px;
  height: 50px;
  border: 1px solid var(--main-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  transition: opacity 0.2s ease;
}

.catalog-button-next:hover:not(:disabled),
.catalog-button-prev:hover:not(:disabled) {
  opacity: 0.75;
}

.catalog-button-next:disabled,
.catalog-button-prev:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.catalogSwiper {
  flex: 1;
  height: 100%;
  overflow: hidden;
  min-width: 0;
}

.catalogSwiper__track {
  display: flex;
  flex-direction: row;
  gap: 12px;
  height: 100%;
  width: max-content;
  transition: transform 0.45s ease;
  will-change: transform;
}

.catalog-slide {
  flex: 0 0 300px;
  width: 300px;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s ease;
}

.catalog-slide:hover {
  transform: scale(1.02);
}

.catalog-slide .slide-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  z-index: 2;
}

.slide-overlay {
  border-radius: 600px;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(17, 17, 17, 0.7) 9.13%,
    rgba(17, 17, 17, 0) 100%
  );
  position: absolute;
  left: -300px;
  bottom: -300px;
  width: 600px;
  height: 600px;
  pointer-events: none;
}

.catalog-slide-title {
  color: var(--text-light);
  font-size: 20px;
  font-weight: 500;
  line-height: 100%;
  position: relative;
  z-index: 2;
}

.pc_link {
  margin-top: 40px;
  margin-left: auto;
  width: fit-content;
  padding-right: 0;
}

.catalog-link-footer-mobile {
  color: var(--main-color);
  font-size: 16px;
  font-weight: 400;
  line-height: 100%;
  padding: 4px 0;
}

.catalog-info-buttons {
  display: none;
}

/* ——— Контакты ——— */
.section-contacts {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--page-max-width);
  margin: 80px auto 0;
  padding: 0 var(--section-pad-x) 80px;
}

.section-contacts__title {
  font-size: 36px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--main-color);
  margin-bottom: 40px;
}

.section-contacts__grid {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: 40px;
  align-items: stretch;
}

.section-contacts__block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 16px;
  line-height: 140%;
  color: var(--main-color);
}

.section-contacts__block a[href^="tel:"],
.section-contacts__block a[href^="mailto:"] {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-contacts__social-intro {
  margin: 4px 0 0;
}

.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.social-links li {
  margin: 0;
  padding: 0;
}

.social-link {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 9px;
  color: var(--main-color);
  border-radius: 50%;
  border: 1px solid rgba(76, 74, 68, 0.35);
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.social-link:hover {
  opacity: 0.88;
  border-color: var(--main-color);
  transform: translateY(-1px);
}

.social-link:focus-visible {
  outline: 2px solid var(--main-color);
  outline-offset: 2px;
}

.social-link__icon {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  flex-shrink: 1;
  display: block;
}

/* Монохром: тёмный силуэт на светлом фоне (контакты) */
.social-link:not(.social-link--on-dark) .social-link__icon {
  filter: brightness(0) opacity(0.78);
}

/* Монохром: белый силуэт в футере */
.social-link--on-dark .social-link__icon {
  filter: brightness(0) invert(1) opacity(0.92);
}

.site-footer__social {
  justify-content: center;
  margin-bottom: 20px;
}

.social-link--on-dark {
  color: var(--text-light);
  border-color: rgba(245, 245, 245, 0.45);
}

.social-link--on-dark:hover {
  border-color: rgba(245, 245, 245, 0.85);
  background-color: rgba(255, 255, 255, 0.06);
}

.site-footer .social-link {
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .social-link:hover {
    transform: none;
  }
}

.section-contacts__map-wrap {
  box-sizing: border-box;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  background: var(--border-light);
}

/* Виджет конструктора Яндекс.Карт подгружает iframe после async-скрипта */
.section-contacts__map-wrap iframe {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  flex: 1 1 auto;
  min-height: 300px;
  height: 440px;
  border: 0;
  display: block;
}

/* Десктоп: высота карты = высота левой колонки (адрес + соцсети) */
@media (min-width: 769px) {
  .section-contacts__map-wrap {
    min-height: 0;
    height: 100%;
    align-self: stretch;
  }

  .section-contacts__map-wrap iframe {
    min-height: 0;
    height: 100% !important;
  }
}

.site-footer {
  box-sizing: border-box;
  width: 100%;
  padding: 32px var(--section-pad-x);
  background: var(--main-color);
  color: var(--text-light);
  font-size: 14px;
  text-align: center;
}

.site-footer p {
  box-sizing: border-box;
  max-width: var(--page-max-width);
  margin-left: auto;
  margin-right: auto;
}

.site-footer a {
  color: var(--text-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ——— Адаптив ——— */
@media (max-width: 1024px) {
  .catalog-container {
    height: 350px;
  }
  .catalog-header {
    height: 350px;
  }
  .catalog-slide {
    flex: 0 0 250px;
    width: 250px;
  }
  .catalog-content-title {
    font-size: 24px;
  }
  .catalog-description {
    font-size: 14px;
    max-width: 210px;
  }
  .catalog-button-next,
  .catalog-button-prev {
    width: 40px;
    height: 40px;
  }
  .catalog-button-next img,
  .catalog-button-prev img {
    width: 14px;
    height: 14px;
  }
}

/* Планшет и мобильный: колонка + явная высота слайдера (иначе height:100% у трека даёт схлопывание) */
@media (max-width: 960px) {
  .catalog-container {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    gap: 24px;
  }

  .catalog-header {
    flex: none;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
  }

  .catalogSwiper {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 300px;
    height: clamp(300px, 58vw, 400px);
    overflow: hidden;
  }

  .catalogSwiper__track {
    height: 100%;
    align-items: stretch;
  }

  .catalog-slide {
    align-self: stretch;
    min-height: 260px;
    height: 100%;
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad-x: 80px;
  }

  .hero__content {
    padding-top: 88px;
    padding-left: var(--section-pad-x);
    padding-right: var(--section-pad-x);
    gap: 40px;
  }

  .hero__content-list {
    gap: 16px;
  }

  .hero__content-list li:not(:last-child) {
    padding-right: 20px;
  }

  .hero__content-list li {
    font-size: 12px;
  }

  .hero__content-list li:not(:last-child)::after {
    font-size: 12px;
  }

  .section-about__title,
  .page_section_title,
  .sec_type__title,
  .virtual-tour__title,
  .section-contacts__title {
    font-size: 24px;
  }

  .page_section_descr {
    font-size: 14px;
  }

  section.swiper_block_wid.black {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .swiper_block_wid .swiper-slide {
    width: 168px;
    height: 420px;
  }

  .swiper_block_wid div.current_active {
    width: min(100%, 550px);
  }

  .swiper_block_wid .swiper-initialized {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .swiper_block_wid {
    --portfolio-slide-gap: 16px;
  }

  .bottom_nav_block {
    padding: 0 var(--section-pad-x);
  }

  /* Портфолио — как mrdoors: @768 .button 12px/12px, .nav_block 30×30; @600 иконки 14px */
  .swiper_block_wid .bottom_nav_block {
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    margin-top: 40px;
  }

  .swiper_block_wid .bottom_nav_block .button_div {
    flex: 0 1 auto;
    max-width: 280px;
    width: auto;
    min-width: 0;
  }

  .swiper_block_wid .bottom_nav_block .button_div .button--trans {
    width: 100%;
    padding: 12px;
    font-size: 12px;
    font-weight: 400;
    line-height: 100%;
  }

  .swiper_block_wid .bottom_nav_block .custom_position_nav {
    flex-shrink: 0;
    gap: 20px;
    align-items: center;
  }

  .swiper_block_wid .bottom_nav_block .nav_block {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
  }

  /* Акции и каталог: стрелки как в портфолио на мобайле (mrdoors ~768px) */
  .sec_type__arrows button {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
  }

  .virtual-tour__arrow {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
  }

  .sec_type__footer {
    flex-wrap: nowrap;
    gap: 16px;
    align-items: center;
  }

  .sec_type__all {
    font-weight: 500;
    font-size: 20px;
    line-height: 100%;
    text-align: left;
    flex: 1 1 auto;
    min-width: 0;
  }

  .sec_type__arrows {
    flex-shrink: 0;
  }

  .catalog-button-next,
  .catalog-button-prev {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
  }

  section.catalog {
    padding-left: var(--section-pad-x);
    padding-right: var(--section-pad-x);
  }

  .section-contacts__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 690px) {
  /* Одна линия с краями контента: padding только у section.catalog, без второго слоя */
  .catalog-info-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .catalog-info-buttons .catalog-link-footer-mobile {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
  }

  .catalog-info-buttons .catalog-button-wrapper {
    flex-shrink: 0;
  }

  .pc_link {
    display: none;
  }

  .catalog-description {
    max-width: 370px;
  }

  .catalog-header .catalog-button-wrapper {
    display: none;
  }

  .catalogSwiper {
    min-height: 280px;
    height: clamp(280px, 52vw, 380px);
  }
}

@media (max-width: 650px) {
  .swiper_block_wid .slider_text {
    left: 10px;
    width: calc(100% - 20px);
  }

  .swiper_block_wid .slider_text_title {
    font-size: 18px;
  }

  .swiper_block_wid .slider_text_descr {
    font-size: 12px;
  }

  .swiper_block_wid .slider_text_price {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .hero__content-title {
    letter-spacing: -1.5px;
  }

  .swiper_block_wid .bottom_nav_block .nav_block img {
    width: 14px;
    height: 14px;
  }

  .sec_type__arrows button img {
    width: 14px;
    height: 14px;
  }

  .catalog-button-next img,
  .catalog-button-prev img {
    width: 14px;
    height: 14px;
  }

  .virtual-tour__arrow img {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 440px) {
  .sec_type__all {
    font-size: 16px;
  }
}

@media (max-width: 550px) {
  .swiper_block_wid .swiper-initialized {
    padding: 0 20px;
  }

  .swiper_block_wid {
    --portfolio-slide-gap: 12px;
    --portfolio-width-duration: 0s;
  }

  .swiper_block_wid div.current_active,
  .swiper_block_wid .swiper-slide {
    width: 280px;
  }

  .page_left_p {
    padding-left: var(--section-pad-x-sm);
  }

  .bottom_nav_block {
    padding: 0 var(--section-pad-x-sm);
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad-x: 20px;
  }

  .swiper_block_wid.black {
    margin-top: 60px;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  section.catalog {
    margin-top: 60px;
    padding-left: var(--section-pad-x);
    padding-right: var(--section-pad-x);
  }

  .sec_type {
    padding: 0 var(--section-pad-x-sm);
    margin-top: 60px;
  }

  .virtual-tour {
    padding: 0 var(--section-pad-x-sm);
    margin-top: 60px;
  }

  .page_left_p {
    padding-left: var(--section-pad-x-sm);
  }

  .section-about {
    padding-left: var(--section-pad-x-sm);
    padding-right: var(--section-pad-x-sm);
  }

  .section-contacts {
    padding-left: var(--section-pad-x-sm);
    padding-right: var(--section-pad-x-sm);
  }

  .catalog-slide {
    flex: 0 0 200px;
    width: 200px;
  }

  .swiper_block_wid .swiper-initialized {
    padding: 0 20px;
  }
}
