:root {
  /* ОСНОВНЫЕ ПЕРЕМЕННЫЕ: цвета и шрифтовая пара */
  --gold: #d6bd7a;
  --dark: #111;
  --dark2: #181818;
  --blue: #0e345e;
  --text: #333;
  --gray: #bdbdbd;
  --font-body: 'Manrope', Arial, sans-serif;
  --font-accent: 'Oswald', Arial, sans-serif;
  --oswa: var(--font-accent);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: #111;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  padding-top: 82px;
}

/* ОБЩИЙ КОНТЕЙНЕР: ограничивает ширину контента по центру */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ШАПКА САЙТА: фиксированное верхнее меню */
#header-black {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  background: #17130f;
  border-bottom: 1px solid rgba(214, 189, 122, 0.28);
  padding: 20px 46px;
}

#header-black .grid {
  max-width: 1660px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto auto auto;
  grid-template-areas: "logo nav ph na wa inst max";
  align-items: center;
  gap: 24px;
}

/* ЛОГОТИП В ШАПКЕ */
#header-black .logo {
  grid-area: logo;
  display: block;
  width: 195px;
  height: 42px;
  background: url('image/header-logo.svg') center / contain no-repeat;
}

/* НАВИГАЦИЯ В ШАПКЕ */
.header-nav {
  grid-area: nav;
  display: flex;
  justify-content: center;
  gap: 28px;
  min-width: 0;
}

.header-nav a {
  font-family: var(--oswa);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  color: #d7d7d7;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.35s;
}

.header-nav a:hover {
  color: var(--gold);
}

/* ТЕЛЕФОН В ШАПКЕ */
#header-black .ph {
  grid-area: ph;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--oswa);
  font-size: 27px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  position: relative;
  transition: 0.4s;
}

#header-black .ph::before,
#header-black .ph::after {
  content: "";
  width: 19px;
  height: 19px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: 0.4s;
  flex-shrink: 0;
}

#header-black .ph::before {
  background-image: url('image/ic-phone.svg');
}

#header-black .ph::after {
  background-image: url('image/ic-phone-gold.svg');
  opacity: 0;
  position: absolute;
  left: 0;
}

#header-black .ph:hover {
  color: var(--gold);
}

#header-black .ph:hover::before {
  opacity: 0;
}

#header-black .ph:hover::after {
  opacity: 1;
}

#header-black .ph.phone-gold {
  color: var(--gold);
  text-shadow:
    0 0 8px rgba(214, 189, 122, 0.58),
    0 0 22px rgba(214, 189, 122, 0.24);
}

#header-black .ph.phone-gold::before {
  opacity: 0;
}

#header-black .ph.phone-gold::after {
  opacity: 1;
}

/* ССЫЛКА "НАПИСАТЬ В WHATSAPP" В ШАПКЕ */
#header-black .na {
  grid-area: na;
  font-family: var(--oswa);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  text-decoration: underline;
  white-space: nowrap;
  transition: 0.4s;
}

#header-black .na:hover {
  color: var(--gold);
  text-decoration: none;
}

#header-black .wa {
  grid-area: wa;
}

#header-black .inst {
  grid-area: inst;
}

#header-black .max {
  grid-area: max;
}

/* ИКОНКИ СОЦСЕТЕЙ В ШАПКЕ И ПОДВАЛЕ */
#header-black .soc,
#futer .soc {
  display: block;
  width: 22px;
  height: 22px;
  position: relative;
  text-decoration: none;
  transition: 0.4s;
}

#header-black .soc {
  width: 26px;
  height: 26px;
}

#header-black .soc::before,
#header-black .soc::after,
#futer .soc::before,
#futer .soc::after {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: 0.4s;
}

#header-black .soc::after,
#futer .soc::after {
  opacity: 0;
}

#header-black .soc:hover::before,
#futer .soc:hover::before {
  opacity: 0;
}

#header-black .soc:hover::after,
#futer .soc:hover::after {
  opacity: 1;
}

#header-black .soc:hover,
#futer .soc:hover {
  filter: drop-shadow(0 0 6px rgba(214, 189, 122, 0.6));
}

#header-black .max,
#futer .max {
  border-radius: 5px;
}

#header-black .max::before,
#futer .max::before {
  background-image: url('https://max.ru/s/img/big-logo.png');
}

#header-black .max::after,
#futer .max::after {
  display: none;
}

#header-black .max:hover,
#futer .max:hover {
  transform: translateY(-2px) scale(1.08);
  filter: drop-shadow(0 0 7px rgba(214, 189, 122, 0.72));
}

#header-black .max:hover::before,
#futer .max:hover::before {
  opacity: 1;
}

#header-black .wa::before,
#futer .wa::before {
  background-image: url('image/ic-whatsapp.svg');
}

#header-black .wa::after,
#futer .wa::after {
  background-image: url('image/ic-whatsapp-gold.svg');
}

#header-black .inst::before,
#futer .inst::before {
  background-image: url('image/ic-instagram.svg');
}

#header-black .inst::after,
#futer .inst::after {
  background-image: url('image/ic-instagram-gold.svg');
}

/* ГЛАВНЫЙ ЭКРАН: первый экран с фоном, заголовком и кнопками */
.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  display: flex;
  align-items: center;
  padding: 88px 0 76px;
  overflow: hidden;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 189, 122, 0.7), transparent);
  z-index: 2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  z-index: 1;
}

/* ТЕКСТОВАЯ ЧАСТЬ ГЛАВНОГО ЭКРАНА */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  text-align: left;
}

.hero-subtitle {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid rgba(214, 189, 122, 0.72);
  background: rgba(17, 17, 17, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(4px);
  color: var(--gold);
  font-family: var(--oswa);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

/* ЗАГОЛОВКИ ГЛАВНОГО ЭКРАНА */
.hero h1 {
  margin: 0;
  font-family: var(--oswa);
  font-size: 76px;
  line-height: 1.05;
  text-transform: uppercase;
}

.hero h1 span {
  color: var(--gold);
}

.hero h2 {
  margin: 10px 0 22px;
  font-family: var(--oswa);
  font-size: 34px;
  text-transform: uppercase;
}

.hero p {
  max-width: 680px;
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.72;
  color: #e7e1d4;
}

/* ТЕГИ И КНОПКИ ГЛАВНОГО ЭКРАНА */
.hero-tags {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 26px 0 0;
}

.hero-tags span {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 14px 16px 14px 48px;
  overflow: hidden;
  border: 1px solid rgba(214, 189, 122, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(17, 17, 17, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 14px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(5px);
  color: #fff;
  font-family: var(--oswa);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-transform: uppercase;
  transition: 0.3s;
}

.hero-tags span::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f2d991, var(--gold));
  transform: translateY(-50%);
  box-shadow: 0 0 18px rgba(214, 189, 122, 0.32);
}

.hero-tags span::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 50%;
  width: 5px;
  height: 9px;
  border-right: 2px solid #17110a;
  border-bottom: 2px solid #17110a;
  transform: translateY(-62%) rotate(45deg);
}

.hero-tags span:hover {
  border-color: rgba(214, 189, 122, 0.72);
  background:
    linear-gradient(135deg, rgba(214, 189, 122, 0.22), rgba(255, 255, 255, 0.05)),
    rgba(17, 17, 17, 0.48);
  transform: translateY(-3px);
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ОБЩИЕ СТИЛИ КНОПОК */
.btn-border,
.btn-fill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  font-family: var(--oswa);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: 0.35s;
}

.btn-border {
  border: 2px solid #fff;
  color: #fff;
}

.btn-border:hover {
  background: #fff;
  color: #111;
}

.btn-fill {
  background: var(--gold);
  color: #111;
}

.btn-fill:hover {
  background: #fff;
  color: #111;
}

/* ЗАГОЛОВКИ СЕКЦИЙ */
.section-title {
  text-align: center;
  margin: 0 0 40px;
  font-family: var(--oswa);
  font-size: 36px;
  text-transform: uppercase;
  color: #111;
}

/* ВВОДНЫЙ ТЕКСТ СЕКЦИЙ: короткое пояснение под заголовком */
.section-lead {
  max-width: 720px;
  margin: -18px auto 42px;
  color: #666;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
  text-align: center;
}

/* ПРЕИМУЩЕСТВА: список плюсов и карточки со статистикой */
.features {
  padding: 95px 0;
  background: #fff;
}

.flex-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

/* СПИСОК ПРЕИМУЩЕСТВ */
.feature-item {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
}

.feature-icon {
  font-size: 34px;
}

.feature-text h3 {
  margin: 0 0 8px;
  font-family: var(--oswa);
  font-size: 22px;
  text-transform: uppercase;
  color: #111;
}

.feature-text p {
  margin: 0;
  line-height: 1.6;
  color: #555;
}

/* СТАТИСТИКА РЯДОМ С ПРЕИМУЩЕСТВАМИ */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.stat-card {
  min-height: 220px;
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url('image/Подложка блока строим бани с вниманием .jpg') center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.stat-content {
  text-align: center;
  font-family: var(--oswa);
  text-transform: uppercase;
}

.stat-num {
  font-size: 50px;
  color: var(--gold);
}

/* СОСТАВ РАБОТ: что входит в строительство под ключ */
.services {
  padding: 90px 0;
  background: #f5f5f5;
}

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

.service-card {
  min-height: 250px;
  padding: 28px;
  background: #fff;
  border-top: 4px solid var(--gold);
  box-shadow: 0 16px 35px rgba(17, 17, 17, 0.08);
}

.service-card span {
  display: block;
  margin-bottom: 24px;
  font-family: var(--oswa);
  font-size: 38px;
  color: rgba(214, 189, 122, 0.45);
}

.service-card h3 {
  margin: 0 0 12px;
  font-family: var(--oswa);
  font-size: 22px;
  line-height: 1.2;
  color: #111;
  text-transform: uppercase;
}

.service-card p {
  margin: 0;
  color: #555;
  line-height: 1.6;
}

/* О КОМПАНИИ: общий фоновый блок для секций "О компании" и "Миссия" */
.about-mission-bg {
  background:
    linear-gradient(rgba(0,0,0,0.64), rgba(0,0,0,0.64)),
    url('image/Подложка блока строим бани с вниманием .jpg') center / cover no-repeat;
}

/* О КОМПАНИИ: текст и ключевые цифры */
.about-block {
  padding: 100px 0;
  background: transparent;
  color: #fff;
}

.about-flex {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}

/* ТЕКСТ О КОМПАНИИ */
.about-text span {
  display: block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 16px;
  font-family: var(--oswa);
}

.about-text h2 {
  margin: 0 0 24px;
  font-family: var(--oswa);
  font-size: 42px;
  line-height: 1.2;
  text-transform: uppercase;
}

.about-text p {
  font-size: 18px;
  line-height: 1.7;
  color: #cfcfcf;
}

/* КАРТОЧКИ С ЦИФРАМИ В БЛОКЕ О КОМПАНИИ */
.about-numbers {
  display: grid;
  gap: 18px;
}

.about-numbers div {
  padding: 28px;
  background: #181818;
  border: 1px solid rgba(214, 189, 122, 0.25);
}

.about-numbers b {
  display: block;
  font-size: 44px;
  color: var(--gold);
  font-family: var(--oswa);
}

.about-numbers span {
  color: #cfcfcf;
}

/* МИССИЯ: акцентный текстовый блок */
.mission {
  background: transparent;
}

.mission-overlay {
  background: transparent;
  padding: 20px 0 90px;
}

.mission-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

/* КАРТОЧКИ МИССИИ */
.mission-text-block,
.mission-title-block {
  background: rgba(17,17,17,0.86);
  border: 1px solid rgba(214,189,122,0.25);
  padding: 42px;
  color: #fff;
}

.mission-text-block p {
  font-size: 18px;
  line-height: 1.7;
}

.mission-title-block h2 {
  margin: 0;
  font-family: var(--oswa);
  font-size: 36px;
  line-height: 1.25;
  text-transform: uppercase;
}

/* КАТАЛОГИ: типы бань и каталог товаров */
.catalog-sections,
.shop-catalog {
  padding: 95px 0;
  background: #fff;
}

.shop-catalog {
  background: #f3f3f3;
}

.bath-types .container {
  max-width: 1320px;
}

.finish-options {
  padding-top: 95px;
}

/* СЕТКИ КАРТОЧЕК КАТАЛОГА */
.grid-3,
.grid-4 {
  display: grid;
  gap: 22px;
}

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

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

.bath-types .grid-3 {
  gap: 30px;
}

/* КАРТОЧКИ КАТАЛОГА */
.card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  isolation: isolate;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.55s;
}

.card:hover img {
  transform: scale(1.08);
}

/* КАРТОЧКИ ТИПОВ БАНЬ: крупные визуальные карточки с описанием */
.bath-card {
  aspect-ratio: 1 / 1.14;
  min-height: 470px;
  box-shadow: 0 18px 45px rgba(17, 17, 17, 0.16);
}

.bath-card img {
  display: block;
  object-fit: cover;
  object-position: center center;
}

.bath-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.34) 42%, rgba(0,0,0,0.86) 100%);
  transition: 0.45s;
}

.bath-card:hover::after {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.26) 36%, rgba(0,0,0,0.9) 100%);
}

.card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px;
  color: #fff;
}

.bath-card .card-content {
  padding: 34px;
}

.card-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(214, 189, 122, 0.55);
  color: var(--gold);
  font-family: var(--oswa);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.card-content h3,
.product-info h3 {
  margin: 0;
  font-family: var(--oswa);
  text-transform: uppercase;
}

.card-content h3 {
  margin-bottom: 10px;
  font-size: 27px;
}

.bath-card .card-content h3 {
  font-size: 31px;
  line-height: 1.08;
}

.card-content p {
  margin: 0;
  color: #dedede;
  line-height: 1.55;
}

/* КАРТОЧКИ КАТАЛОГА ТОВАРОВ: компактные категории оборудования */
.product-card {
  min-height: 310px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(17, 17, 17, 0.1);
}

.product-card img {
  display: block;
  height: 220px;
}

.product-info {
  min-height: 90px;
  padding: 18px 20px 20px;
  background: #fff;
  border-bottom: 4px solid transparent;
  transition: 0.35s;
}

.product-info h3 {
  margin-bottom: 6px;
  font-size: 21px;
  color: #111;
}

.product-info p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.45;
}

.product-card:hover .product-info {
  border-bottom-color: var(--gold);
  background: #17130f;
}

.product-card:hover .product-info h3 {
  color: var(--gold);
}

.product-card:hover .product-info p {
  color: #d4d4d4;
}

/* ПОРТФОЛИО: фотографии выполненных работ */
.portfolio {
  padding: 105px 0;
  background:
    linear-gradient(rgba(17,17,17,0.92), rgba(17,17,17,0.96)),
    url('image/Подложка блока строим бани с вниманием .jpg') center / cover no-repeat;
}

.portfolio .section-title {
  margin-bottom: 18px;
  color: #fff;
  text-align: left;
}

/* ШАПКА ПОРТФОЛИО: заголовок, описание и кнопки прокрутки */
.portfolio-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 42px;
}

.portfolio-lead {
  max-width: 720px;
  margin: 0;
  color: #cfcfcf;
  font-size: 18px;
  line-height: 1.65;
}

/* КНОПКИ КАРУСЕЛИ ПОРТФОЛИО */
.portfolio-controls {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.portfolio-arrow {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(214, 189, 122, 0.45);
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: 0.3s;
}

.portfolio-arrow:hover {
  background: var(--gold);
  color: #111;
}

/* КАРУСЕЛЬ ПОРТФОЛИО: горизонтальная прокрутка работ */
.portfolio-carousel {
  overflow: hidden;
}

.portfolio-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 18px;
  scrollbar-color: var(--gold) rgba(255, 255, 255, 0.14);
  scrollbar-width: thin;
}

.portfolio-track::-webkit-scrollbar {
  height: 6px;
}

.portfolio-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.14);
}

.portfolio-track::-webkit-scrollbar-thumb {
  background: var(--gold);
}

/* КАРТОЧКИ ПОРТФОЛИО */
.portfolio-item {
  position: relative;
  flex: 0 0 390px;
  height: 430px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  isolation: isolate;
  scroll-snap-align: start;
  cursor: zoom-in;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.45s;
}

.portfolio-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.portfolio-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.22) 38%, rgba(0,0,0,0.86) 100%);
  transition: 0.4s;
}

.portfolio-item:hover img {
  transform: scale(1.07);
}

.portfolio-item:hover::after {
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.16) 32%, rgba(0,0,0,0.9) 100%);
}

.portfolio-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 26px;
  color: #fff;
}

.portfolio-info span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  font-family: var(--oswa);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.portfolio-info h3 {
  max-width: 440px;
  margin: 0;
  font-family: var(--oswa);
  font-size: 24px;
  line-height: 1.2;
  text-transform: uppercase;
}

.portfolio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.35s;
}

.portfolio-lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.portfolio-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(214, 189, 122, 0.2), transparent 34%),
    rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(7px);
}

.portfolio-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(100%, 1120px);
  max-height: calc(100vh - 56px);
  padding: 16px;
  background: rgba(17, 13, 9, 0.94);
  border: 1px solid rgba(214, 189, 122, 0.38);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.62);
  transform: translateY(18px) scale(0.96);
  transition: 0.35s;
}

.portfolio-lightbox.active .portfolio-lightbox-dialog {
  transform: translateY(0) scale(1);
}

.portfolio-lightbox-image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  background: #090909;
}

.portfolio-lightbox-counter {
  position: absolute;
  top: -16px;
  left: 16px;
  z-index: 2;
  min-width: 58px;
  padding: 7px 12px;
  border: 1px solid rgba(214, 189, 122, 0.55);
  background: #17130f;
  color: var(--gold);
  font-family: var(--oswa);
  font-size: 15px;
  line-height: 1;
  text-align: center;
}

.portfolio-lightbox-caption {
  padding: 0 6px 2px;
  color: #f4f0e6;
  font-family: var(--oswa);
  font-size: 20px;
  line-height: 1.25;
  text-transform: uppercase;
}

.portfolio-lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(214, 189, 122, 0.55);
  background: #17130f;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: 0.3s;
}

.portfolio-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 56px;
  border: 1px solid rgba(214, 189, 122, 0.5);
  background: rgba(17, 13, 9, 0.82);
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: 0.3s;
}

.portfolio-lightbox-nav.prev {
  left: 18px;
}

.portfolio-lightbox-nav.next {
  right: 18px;
}

.portfolio-lightbox-nav:hover,
.portfolio-lightbox-nav:focus-visible {
  background: var(--gold);
  color: #111;
}

.portfolio-lightbox-close:hover,
.portfolio-lightbox-close:focus-visible {
  background: var(--gold);
  color: #111;
}

/* ЭТАПЫ РАБОТЫ: последовательность сотрудничества */
.work-steps {
  padding: 90px 0;
  background: #f4f4f4;
}

.steps-list {
  display: grid;
  gap: 18px;
}

/* КАРТОЧКИ ЭТАПОВ */
.step-card {
  background: #fff;
  padding: 28px 90px 28px 28px;
  position: relative;
  border-left: 4px solid var(--gold);
}

.step-info h3 {
  margin: 0 0 8px;
  font-family: var(--oswa);
  font-size: 24px;
  text-transform: uppercase;
}

.step-info p {
  margin: 0;
  color: #555;
  line-height: 1.6;
}

.step-number {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--oswa);
  font-size: 62px;
  color: #eee;
}

/* ПРИЗЫВ К ДЕЙСТВИЮ: блок заявки на расчет стоимости */
.cta-block {
  position: relative;
  padding: 95px 20px;
  text-align: center;
  background:
    linear-gradient(rgba(17,13,10,0.76), rgba(17,13,10,0.86)),
    url('image/Подложка блока строим бани с вниманием .jpg') center / cover no-repeat;
  border-top: 1px solid rgba(214, 189, 122, 0.28);
  border-bottom: 1px solid rgba(214, 189, 122, 0.28);
}

.cta-block h2 {
  max-width: 720px;
  margin: 0 auto 20px;
  font-family: var(--oswa);
  font-size: 40px;
  line-height: 1.2;
  color: #fff;
  text-transform: uppercase;
}

.cta-block p {
  max-width: 660px;
  margin: 0 auto 30px;
  color: #dedede;
  font-size: 18px;
  line-height: 1.6;
}

.cta-block .btn-fill {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}

.cta-block .btn-fill:hover {
  background: var(--gold);
  color: #111;
}

/* СТРАНИЦА ПОЛИТИКИ КОНФИДЕНЦИАЛЬНОСТИ */
.policy-page {
  background: #f4f4f4;
  color: #333;
  color-scheme: light;
}

.policy-hero {
  padding: 92px 0 70px;
  background:
    linear-gradient(rgba(17, 13, 10, 0.82), rgba(17, 13, 10, 0.88)),
    url('image/Подложка блока строим бани с вниманием .jpg') center / cover no-repeat;
  color: #fff;
}

.policy-hero span {
  display: inline-block;
  margin-bottom: 16px;
  font-family: var(--oswa);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

.policy-hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-family: var(--oswa);
  font-size: 54px;
  line-height: 1.08;
  text-transform: uppercase;
}

.policy-hero p {
  max-width: 680px;
  margin: 0;
  color: #e2e2e2;
  font-size: 18px;
  line-height: 1.7;
}

.policy-content {
  padding: 70px 0 90px;
}

.policy-document {
  max-width: 920px;
  margin: 0 auto;
  padding: 46px;
  background-color: #fff;
  color: #333;
  color-scheme: light;
}

.policy-updated {
  margin: 0 0 28px;
  color: #777;
  font-size: 14px;
}

.policy-document h2 {
  margin: 34px 0 12px;
  font-family: var(--oswa);
  font-size: 25px;
  line-height: 1.25;
  text-transform: uppercase;
  color: #17130f;
}

.policy-document h2:first-of-type {
  margin-top: 0;
}

.policy-document p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.75;
}

.policy-document ul {
  margin: -4px 0 18px;
  padding-left: 22px;
}

.policy-document li {
  margin-bottom: 7px;
  font-size: 16px;
  line-height: 1.6;
}

.policy-document a {
  color: #8b6a22;
}

.policy-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 26px;
  padding: 0 24px;
  border: 2px solid var(--gold);
  font-family: var(--oswa);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  color: #17130f;
  transition: 0.3s;
}

.policy-back:hover {
  background: var(--gold);
  color: #17130f;
}

/* МОДАЛЬНОЕ ОКНО КОНСУЛЬТАЦИИ: затемнение и центрирование окна */
body.modal-open {
  overflow: hidden;
}

.consultation-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.35s;
}

.consultation-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.consultation-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
}

/* ОКНО КОНСУЛЬТАЦИИ: заголовок, описание и кнопка закрытия */
.consultation-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: 38px;
  background: #17130f;
  border: 1px solid rgba(214, 189, 122, 0.32);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  color: #fff;
  transform: translateY(18px) scale(0.96);
  transition: 0.35s;
}

.consultation-modal.active .consultation-dialog {
  transform: translateY(0) scale(1);
}

.consultation-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(214, 189, 122, 0.35);
  background: transparent;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: 0.3s;
}

.consultation-close:hover {
  background: var(--gold);
  color: #111;
}

.consultation-kicker {
  display: block;
  margin-bottom: 12px;
  font-family: var(--oswa);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

.consultation-dialog h2 {
  margin: 0 42px 14px 0;
  font-family: var(--oswa);
  font-size: 34px;
  line-height: 1.15;
  text-transform: uppercase;
}

.consultation-dialog p {
  margin: 0 0 26px;
  color: #d0d0d0;
  font-size: 16px;
  line-height: 1.6;
}

/* ВАРИАНТЫ СВЯЗИ В МОДАЛЬНОМ ОКНЕ */
.consultation-links {
  display: grid;
  gap: 12px;
}

.consultation-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(214, 189, 122, 0.22);
  color: #d8d8d8;
  text-decoration: none;
  transition: 0.3s;
}

.consultation-link:hover {
  background: rgba(214, 189, 122, 0.14);
  border-color: rgba(214, 189, 122, 0.55);
  color: #fff;
  transform: translateY(-2px);
}

.consultation-link b {
  display: block;
  margin-bottom: 3px;
  font-family: var(--oswa);
  font-size: 17px;
  text-transform: uppercase;
  color: #fff;
}

.consultation-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.consultation-link.phone .consultation-icon {
  background-color: transparent;
  background-image: url('image/ic-phone-gold.svg');
  -webkit-mask: none;
  mask: none;
}

.consultation-link.whatsapp .consultation-icon {
  background-image: url('image/ic-whatsapp.svg');
}

.consultation-link.max .consultation-icon {
  background-image: url('https://max.ru/s/img/big-logo.png');
}

/* ПОДВАЛ САЙТА: гарантия, контакты, соцсети и копирайт */
#futer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0, rgba(214, 189, 122, 0.14), transparent 34%),
    linear-gradient(135deg, #100d0a 0%, #17130f 48%, #0d0d0d 100%);
  padding: 82px 30px 46px;
  color: #c8c8c8;
  font-family: var(--oswa);
  border-top: 1px solid rgba(214, 189, 122, 0.28);
}

#futer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(214, 189, 122, 0.08), transparent);
  opacity: 0.55;
  pointer-events: none;
}

#futer .grid {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 1180px;
  margin: 0 auto;
  grid-template-columns: 1fr 310px 1fr;
  grid-template-areas:
    "gara logo kont"
    "copy logo razr";
  gap: 34px 46px;
  align-items: start;
}

/* КОЛОНКИ ПОДВАЛА */
#futer b {
  display: block;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(214, 189, 122, 0.26);
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}

#futer .f-gara { grid-area: gara; }
#futer .f-logo {
  grid-area: logo;
  text-align: center;
  padding: 0 26px 30px;
  border-left: 1px solid rgba(214, 189, 122, 0.2);
  border-right: 1px solid rgba(214, 189, 122, 0.2);
}
#futer .f-kont { grid-area: kont; }
#futer .f-copy { grid-area: copy; }
#futer .f-razr { grid-area: razr; }

/* ТЕКСТ И ССЫЛКИ В ПОДВАЛЕ */
#futer .f-gara div,
#futer .f-kont div,
#futer .f-copy,
#futer .f-razr,
#futer .em,
#futer .pk {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
}

#futer a {
  color: #c8c8c8;
  text-decoration: underline;
  transition: 0.4s;
}

#futer a:hover {
  color: var(--gold);
  text-decoration: none;
}

#futer .logo {
  display: block;
  width: 150px;
  height: 150px;
  margin: 0 auto 18px;
  background: url('image/futer-logo.svg') center / contain no-repeat;
}

#futer .f-logo p {
  max-width: 250px;
  margin: 0 auto 22px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: #d6d6d6;
}

/* СОЦСЕТИ И КОНТАКТЫ В ПОДВАЛЕ */
#futer .socials {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 0;
}

#futer .em {
  display: block;
  margin: 10px 0 12px;
}

#futer .ph {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  position: relative;
}

#futer .ph::before,
#futer .ph::after {
  content: "";
  width: 18px;
  height: 18px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: 0.4s;
  flex-shrink: 0;
}

#futer .ph::before {
  background-image: url('image/ic-phone.svg');
}

#futer .ph::after {
  background-image: url('image/ic-phone-gold.svg');
  opacity: 0;
  position: absolute;
  left: 0;
}

#futer .ph:hover {
  color: var(--gold);
}

#futer .ph:hover::before {
  opacity: 0;
}

#futer .ph:hover::after {
  opacity: 1;
}

/* КАРТА В ПОДВАЛЕ: компактный фрагмент проезда */
.footer-map {
  height: 170px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(214, 189, 122, 0.34);
  background: #111;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.footer-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.25) contrast(0.95);
}

#futer .f-copy,
#futer .f-razr {
  align-self: end;
  padding-top: 22px;
  border-top: 1px solid rgba(214, 189, 122, 0.16);
  color: #8f8f8f;
}

/* АДАПТИВ: шапка для ноутбуков и узких десктопов */
@media (max-width: 1180px) {
  body {
    padding-top: 74px;
  }

  #header-black {
    padding: 18px 28px;
  }

  #header-black .grid {
    gap: 16px;
  }

  #header-black .logo {
    width: 165px;
    height: 36px;
  }

  .header-nav {
    gap: 16px;
  }

  .header-nav a {
    font-size: 13px;
  }

  #header-black .ph {
    font-size: 23px;
    gap: 8px;
  }

  #header-black .na {
    font-size: 14px;
  }

  #header-black .soc {
    width: 22px;
    height: 22px;
  }

  .hero {
    min-height: calc(100vh - 74px);
  }
}

/* АДАПТИВ: стили для планшетов и небольших экранов */
@media (max-width: 900px) {
  body {
    padding-top: 56px;
  }

  #header-black {
    padding: 12px 20px;
  }

  #header-black .grid {
    grid-template-columns: auto 1fr auto auto auto auto;
    grid-template-areas: "logo space ph wa inst max";
    gap: 12px;
  }

  .header-nav,
  #header-black .na {
    display: none;
  }

  #header-black .logo {
    width: 130px;
    height: 28px;
  }

  #header-black .ph {
    font-size: 20px;
    gap: 8px;
    width: auto;
    height: auto;
    white-space: nowrap;
  }

  #header-black .ph::before,
  #header-black .ph::after {
    width: 16px;
    height: 16px;
  }

  .hero {
    min-height: 620px;
    padding: 68px 0 56px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-subtitle {
    justify-content: center;
    max-width: 100%;
    font-size: 13px;
    letter-spacing: 2px;
    text-align: center;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero h2 {
    font-size: 24px;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-tags {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-tags span {
    text-align: left;
  }

  .flex-features,
  .about-flex,
  .mission-flex,
  .services-grid,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .portfolio-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .portfolio .section-title {
    text-align: left;
  }

  .portfolio-item {
    flex-basis: min(82vw, 360px);
    height: 390px;
  }

  .finish-options {
    padding-top: 72px;
  }

  .portfolio-lightbox-dialog {
    width: min(100%, 760px);
  }

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

  .about-text h2,
  .cta-block h2 {
    font-size: 30px;
  }

  .bath-card {
    min-height: 330px;
  }

  .bath-card .card-content h3 {
    font-size: 27px;
  }

  .product-card img {
    height: 250px;
  }

  #futer {
    padding: 48px 26px 42px;
    text-align: center;
  }

  #futer .grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "kont"
      "gara"
      "razr"
      "copy";
    max-width: 450px;
    gap: 30px;
  }

  #futer b {
    display: block;
    margin-bottom: 14px;
  }

  #futer .logo {
    width: 130px;
    height: 130px;
  }

  #futer .f-logo {
    padding: 0 0 28px;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(214, 189, 122, 0.18);
  }

  #futer .f-kont {
    margin-top: 0;
  }

  .footer-map {
    height: 210px;
    margin-top: 22px;
  }

  #futer .f-gara {
    margin-top: 0;
    margin-bottom: 0;
  }
}

/* АДАПТИВ: стили для телефонов */
@media (max-width: 480px) {
  #header-black .logo {
    width: 105px;
    height: 24px;
  }

  #header-black {
    padding: 12px 14px;
  }

  #header-black .grid {
    grid-template-columns: auto 1fr auto auto auto;
    grid-template-areas: "logo space ph wa max";
    gap: 8px;
  }

  #header-black .ph {
    font-size: 18px;
    gap: 6px;
  }

  #header-black .ph::before,
  #header-black .ph::after {
    width: 14px;
    height: 14px;
  }

  #header-black .soc {
    width: 18px;
    height: 18px;
  }

  #header-black .inst {
    display: none;
  }

  #header-black .max {
    display: block;
  }

  .hero-subtitle {
    padding: 8px 12px;
    font-size: 12px;
    letter-spacing: 1px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 16px;
    line-height: 1.65;
  }

  .hero-tags span {
    min-height: 58px;
    padding: 12px 14px 12px 44px;
    font-size: 13px;
  }

  .hero-tags span::before {
    left: 14px;
    width: 20px;
    height: 20px;
  }

  .hero-tags span::after {
    left: 21px;
  }

  .section-title {
    font-size: 28px;
  }

  .finish-options {
    padding-top: 58px;
  }

  .consultation-dialog {
    padding: 30px 22px 24px;
  }

  .consultation-dialog h2 {
    font-size: 28px;
  }

  .portfolio-lightbox {
    padding: 14px;
  }

  .portfolio-lightbox-dialog {
    gap: 12px;
    max-height: calc(100vh - 28px);
    padding: 10px;
  }

  .portfolio-lightbox-image {
    max-height: calc(100vh - 120px);
  }

  .portfolio-lightbox-caption {
    font-size: 16px;
  }

  .portfolio-lightbox-counter {
    top: 8px;
    left: 8px;
    min-width: 52px;
    padding: 7px 10px;
    background: rgba(17, 13, 9, 0.86);
    font-size: 14px;
  }

  .portfolio-lightbox-nav {
    top: auto;
    bottom: 58px;
    width: 42px;
    height: 42px;
    font-size: 34px;
    transform: none;
  }

  .portfolio-lightbox-nav.prev {
    left: 10px;
  }

  .portfolio-lightbox-nav.next {
    right: 10px;
  }

  .portfolio-lightbox-close {
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
    background: rgba(17, 13, 9, 0.86);
  }

  .consultation-link {
    align-items: flex-start;
    padding: 14px;
  }

  #futer {
    padding: 42px 20px 38px;
  }

  #futer .logo {
    width: 118px;
    height: 118px;
  }
}

/* МОБИЛЬНАЯ ВЕРСИЯ: отдельная компактная компоновка для телефонов */
@media (max-width: 640px) {
  html,
  body {
    width: 100vw;
    min-width: 100vw;
  }

  #header-black,
  .hero,
  .features,
  .services,
  .about-mission-bg,
  .catalog-sections,
  .shop-catalog,
  .portfolio,
  .work-steps,
  .cta-block,
  #futer {
    width: 100vw;
    max-width: 100vw;
  }

  body {
    padding-top: 0;
    background: #fff;
  }

  .container {
    padding: 0 16px;
  }

  #header-black {
    position: sticky;
    top: 0;
    max-width: 100%;
    padding: 14px clamp(10px, 3vw, 20px);
    min-height: 70px;
  }

  #header-black .grid {
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    grid-template-areas: "logo space ph wa max";
    gap: clamp(6px, 2vw, 11px);
    min-width: 0;
  }

  #header-black .logo {
    width: clamp(116px, 34vw, 154px);
    height: clamp(30px, 8.8vw, 40px);
  }

  #header-black .soc {
    width: clamp(28px, 8vw, 34px);
    height: clamp(28px, 8vw, 34px);
    border: 0;
    background: transparent;
    border-radius: 0;
  }

  #header-black .ph {
    width: auto;
    height: auto;
    justify-content: flex-end;
    gap: 0;
    font-size: clamp(15px, 4.5vw, 19px);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
  }

  #header-black .ph::before,
  #header-black .ph::after {
    display: none;
  }

  #header-black .ph::after {
    left: 50%;
    transform: translateX(-50%);
  }

  #header-black .soc::before,
  #header-black .soc::after {
    inset: 2px;
  }

  #header-black .inst {
    display: none;
  }

  #header-black .max {
    display: block;
  }

  #header-black,
  .feature-item,
  .stat-card,
  .service-card,
  .bath-card,
  .product-card,
  .portfolio-item,
  .footer-map,
  .consultation-dialog,
  .portfolio-lightbox-dialog {
    box-shadow: none;
  }

  #header-black .soc:hover,
  .footer-map iframe,
  .consultation-backdrop,
  .portfolio-lightbox-backdrop,
  .hero-tags span,
  .stat-card {
    filter: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .card img,
  .portfolio-item img,
  .bath-card img,
  .product-info,
  .bath-card::after,
  .portfolio-item::after,
  #header-black .soc,
  #header-black .soc::before,
  #header-black .soc::after {
    transition: none;
  }

  .bath-card img {
    will-change: auto;
  }

  .hero {
    min-height: auto;
    align-items: flex-end;
    padding: 104px 0 34px;
  }

  .hero-slide {
    background-position: 58% center;
  }

  .hero-content {
    width: min(100%, 360px);
    max-width: none;
    text-align: left;
  }

  .hero-subtitle {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    min-height: 0;
    margin-bottom: 12px;
    padding: 6px 9px;
    font-size: 11px;
    letter-spacing: 1px;
    line-height: 1.25;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1;
  }

  .hero h2 {
    margin: 7px 0 12px;
    font-size: 20px;
    line-height: 1.18;
  }

  .hero p {
    max-width: 100%;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
  }

  .hero-tags {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    max-width: 330px;
    margin-top: 16px;
    justify-items: start;
  }

  .hero-tags span {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px 10px 38px;
    font-size: 12px;
    line-height: 1.25;
    overflow: hidden;
  }

  .hero-tags span::before {
    left: 12px;
    width: 17px;
    height: 17px;
  }

  .hero-tags span::after {
    left: 18px;
    width: 4px;
    height: 7px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: min(100%, 330px);
    margin-top: 18px;
  }

  .btn-border,
  .btn-fill {
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    font-size: 14px;
  }

  .features,
  .services,
  .catalog-sections,
  .shop-catalog,
  .portfolio,
  .work-steps,
  .about-block,
  .mission,
  .cta-block {
    padding: 52px 0;
  }

  .section-title {
    margin-bottom: 18px;
    text-align: left;
    font-size: 28px;
    line-height: 1.12;
  }

  .section-lead,
  .portfolio-lead {
    margin: 0 0 26px;
    max-width: none;
    text-align: left;
    font-size: 15px;
    line-height: 1.55;
  }

  .flex-features,
  .about-flex,
  .mission-flex,
  .services-grid,
  .grid-3,
  .grid-4,
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature-item {
    gap: 14px;
    margin-bottom: 16px;
    padding: 16px;
    background: #f6f6f6;
    border-left: 3px solid var(--gold);
  }

  .feature-icon {
    width: 34px;
    font-size: 25px;
    line-height: 1;
  }

  .feature-text h3,
  .service-card h3,
  .step-info h3 {
    font-size: 20px;
  }

  .feature-text p,
  .service-card p,
  .step-info p,
  .card-content p,
  .product-info p {
    font-size: 14px;
    line-height: 1.5;
  }

  .stat-card {
    min-height: 130px;
  }

  .stat-num {
    font-size: 38px;
  }

  .service-card {
    min-height: 0;
    padding: 20px;
  }

  .service-card span {
    margin-bottom: 14px;
    font-size: 30px;
  }

  .about-text h2,
  .mission-title-block h2,
  .cta-block h2 {
    font-size: 28px;
    line-height: 1.14;
  }

  .policy-hero {
    padding: 64px 0 46px;
  }

  .policy-hero h1 {
    font-size: 34px;
  }

  .policy-hero p {
    font-size: 15px;
    line-height: 1.6;
  }

  .policy-content {
    padding: 36px 0 52px;
  }

  .policy-document {
    padding: 24px 18px;
  }

  .policy-document h2 {
    font-size: 21px;
  }

  .policy-document p {
    font-size: 14px;
    line-height: 1.65;
  }

  .policy-document li {
    font-size: 14px;
    line-height: 1.55;
  }

  .about-text p,
  .mission-text-block p,
  .cta-block p {
    font-size: 15px;
    line-height: 1.6;
  }

  .about-numbers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .about-numbers div {
    padding: 16px;
  }

  .bath-card,
  .product-card {
    min-height: 0;
    background: #17130f;
    box-shadow: 0 12px 28px rgba(17, 17, 17, 0.14);
  }

  .bath-card {
    min-height: clamp(340px, 106vw, 390px);
    aspect-ratio: 1 / 1.05;
  }

  .bath-card::after {
    display: block;
    background:
      linear-gradient(180deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.22) 36%, rgba(0,0,0,0.88) 100%);
  }

  .bath-card img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    transform: scale(1);
    transition: transform 0.65s ease;
    will-change: transform;
  }

  .bath-card.is-touching img,
  .bath-card:active img {
    transform: scale(1.07);
  }

  .product-card img {
    display: block;
    height: 190px;
  }

  .card-content {
    position: static;
    padding: 18px;
    background: #17130f;
  }

  .bath-card .card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 26px 26px;
    background: transparent;
  }

  .card-kicker {
    margin-bottom: 10px;
    padding: 6px 9px;
    font-size: 11px;
  }

  .card-content h3,
  .product-info h3 {
    font-size: 22px;
  }

  .bath-card .card-content h3 {
    margin-bottom: 10px;
    font-size: 27px;
    line-height: 1.08;
  }

  .bath-card .card-content p {
    font-size: 15px;
    line-height: 1.5;
    color: #f1f1f1;
  }

  .product-info {
    min-height: 0;
    padding: 16px 18px 18px;
    border-bottom-color: var(--gold);
  }

  .portfolio-head {
    gap: 18px;
    margin-bottom: 24px;
  }

  .portfolio-controls {
    display: none;
  }

  .portfolio-arrow {
    width: 44px;
    height: 44px;
  }

  .portfolio-track {
    gap: 14px;
    margin-right: -16px;
    padding-right: 16px;
  }

  .portfolio-item {
    flex-basis: min(78vw, 300px);
    height: 320px;
  }

  .portfolio-info {
    padding: 18px;
  }

  .portfolio-info h3 {
    font-size: 20px;
  }

  .portfolio-lightbox-counter {
    top: 8px;
    left: 8px;
    min-width: 52px;
    padding: 7px 10px;
    background: rgba(17, 13, 9, 0.86);
    font-size: 14px;
  }

  .portfolio-lightbox-nav {
    top: auto;
    bottom: 58px;
    width: 42px;
    height: 42px;
    font-size: 34px;
    transform: none;
  }

  .portfolio-lightbox-nav.prev {
    left: 10px;
  }

  .portfolio-lightbox-nav.next {
    right: 10px;
  }

  .step-card {
    padding: 20px 68px 20px 18px;
  }

  .step-number {
    right: 18px;
    font-size: 44px;
  }

  .cta-block {
    padding-left: 16px;
    padding-right: 16px;
  }

  .consultation-modal {
    align-items: flex-end;
    padding: 10px;
  }

  .consultation-dialog {
    width: 100%;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    padding: 28px 18px 18px;
  }

  .consultation-dialog h2 {
    margin-right: 36px;
    font-size: 25px;
  }

  .consultation-dialog p {
    font-size: 14px;
  }

  .consultation-link {
    gap: 12px;
    padding: 13px;
  }

  #futer {
    padding: 44px 16px 34px;
  }

  #futer .grid {
    gap: 24px;
  }

  #futer .logo {
    width: 108px;
    height: 108px;
  }

  #futer .f-logo p {
    max-width: none;
  }

  #futer .ph {
    font-size: 21px;
  }

  .footer-map {
    height: 190px;
  }
}

@media (max-width: 380px) {
  #header-black {
    padding: 12px 10px;
    min-height: 64px;
  }

  #header-black .logo {
    width: 112px;
  }

  #header-black .soc {
    width: 26px;
    height: 26px;
  }

  #header-black .grid {
    gap: 6px;
  }

  #header-black .ph {
    font-size: 15px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero h2 {
    font-size: 18px;
  }

  .hero-content {
    width: min(100%, 330px);
  }

  .hero-actions {
    grid-template-columns: 1fr;
    width: min(100%, 330px);
  }

  .section-title {
    font-size: 25px;
  }
}
