/* ============================================================
   Дуэт Двери — лендинг
   Стили организованы по методологии БЭМ (Block__Element--Modifier)
   ============================================================ */

/* ---------- Шрифты ---------- */
/* Manrope */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Prata */
@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/prata-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/prata-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/prata-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/prata-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены дизайна ---------- */
:root {
  --color-brand: #8a7767;
  --color-brand-dark: #776654;
  --color-ink: #3f3a33;
  --color-muted: #857c70;
  --color-muted-light: #a79d8f;
  --color-bg: #ffffff;
  --color-bg-light: #f4f1ec;
  --color-bg-sand: #ece6dc;
  --color-border: #e8e2d9;
  --color-accent: #d9d1c5;
  --container: 120rem;
  --radius-sm: 0.8rem;
  --radius: 2rem;
  --radius-lg: 2.4rem;
  --radius-pill: 99.9rem;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-head: 'Prata', serif;
}

/* ---------- База ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

/* ---------- Резиновая вёрстка ----------
   1rem = 10px на макете 1920px, поэтому в стилях все размеры в rem:
   100px → 10rem, 12px → 1.2rem.

   max() держит нижнюю границу в 10px: выше 1920px макет тянется вместе
   с окном, ниже — работает обычный адаптив (медиазапросы 900/720/480).
   Если убрать max() и оставить только calc(), сайт будет пропорционально
   уменьшаться и на ноутбуках: при 1280px кегль станет 6.7px (текст ~11px). */
html {
  height: 100%;
  scroll-behavior: smooth;                                   /* фолбэк для старых браузеров */
  font-size: calc(100vw / 1920 * 10);
}

/* Мобильная резина — своя база 375 (ширина типового телефона), не 1920.
   При 375px кегль = 10px, то есть мобильные медиазапросы отрисуются
   ровно в тех размерах, под которые их верстали. */
@media (max-width: 650px) {
  html { font-size: calc(100vw / 375 * 10); }
}

body {
  margin: 0;
  /* Обязательно при корне 10px: иначе текст без явного font-size
     унаследует 1rem = 10px вместо привычных 16px */
  font-size: 1.6rem;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: var(--color-ink); }
a:hover { color: var(--color-brand-dark); }

h1, h2, h3, p { margin: 0; }

/* ---------- Утилиты ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 8rem 0; }
.section--light { background: var(--color-bg-light); }
.section--sand { background: var(--color-bg-sand); }

.section__title {
  font-family: var(--font-head);
  font-size: 3.8rem;
  font-weight: 400;
  margin: 0 0 1.2rem;
}

.section__lead {
  color: var(--color-muted);
  font-size: 1.7rem;
  margin: 0 0 4rem;
  max-width: 64rem;
  line-height: 1.6;
}

.visually-hidden {
  position: absolute;
  width: 0.1rem; height: 0.1rem;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .25s, color .25s, transform .25s;
}
.btn--primary { background: var(--color-brand); color: #fff; padding: 1.1rem 2.2rem; }
.btn--primary:hover { background: var(--color-brand-dark); color: #fff; }
.btn--light { background: #fff; color: var(--color-ink); padding: 1.1rem 2rem; }
.btn--light:hover { background: #efeae3; color: var(--color-ink); }
.btn--dark { background: var(--color-ink); color: #fff; padding: 1.2rem 1.8rem; }
.btn--hero { padding: 1.6rem 3.4rem; font-size: 1.6rem; font-weight: 800; }
.btn--block { width: 100%; }

/* ============================================================
   TOPBAR — верхняя контактная строка
   ============================================================ */
.topbar {
  background: var(--color-brand);
  color: #fff;
  font-size: 1.3rem;
}
.topbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.4rem;
  align-items: center;
  justify-content: space-between;
}
.topbar__address { opacity: .85; }
.topbar__contacts {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}
.topbar__phone { color: #fff; text-decoration: none; font-weight: 700; }
.topbar__mail { color: #fff; text-decoration: none; opacity: .7; }

/* ============================================================
   HEADER — шапка
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(0.8rem);
  border-bottom: 1px solid var(--color-border);
}
.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  gap: 2.8rem;
  flex-wrap: wrap;
}
.logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo__name {
  font-family: var(--font-head);
  font-size: 2.6rem;
  letter-spacing: 0.05rem;
  color: var(--color-ink);
}
.logo__tagline {
  font-size: 1.1rem;
  letter-spacing: 0.35rem;
  color: var(--color-muted-light);
  margin-top: 0.4rem;
  text-transform: uppercase;
}
.nav {
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
  margin-left: auto;
  font-size: 1.4rem;
  font-weight: 600;
}
.nav__link { text-decoration: none; color: var(--color-ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 62rem;
  overflow: hidden;
  background: var(--color-brand);
}
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(63, 58, 51, .9) 0%, rgba(63, 58, 51, .6) 48%, rgba(63, 58, 51, .15) 100%);
}
.hero__content {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}
.hero__title {
  font-family: var(--font-head);
  font-size: 5.6rem;
  line-height: 1.12;
  color: #fff;
  max-width: 68rem;
  font-weight: 400;
}
.hero__subtitle {
  color: rgba(255, 255, 255, .85);
  font-size: 1.9rem;
  line-height: 1.6;
  max-width: 54rem;
}
.hero__actions { margin-top: 1rem; }

/* ============================================================
   CATALOG — «Что вы ищете»
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(32rem, 1fr));
  gap: 2.8rem;
}
.promo-card {
  text-decoration: none;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  height: 42rem;
  background: var(--color-brand);
  transition: transform .3s;
}
.promo-card:hover { transform: translateY(-4px); }
.promo-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.promo-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(63, 58, 51, 0) 35%, rgba(63, 58, 51, .92) 100%);
}
.promo-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3rem;
  color: #fff;
}
.promo-card__title {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 400;
  margin: 0 0 0.8rem;
}
.promo-card__text {
  margin: 0 0 1.6rem;
  color: rgba(255, 255, 255, .8);
  font-size: 1.5rem;
  line-height: 1.5;
}

/* ============================================================
   BRANDS — производители
   ============================================================ */
.brands {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr));
  gap: 2rem;
}
.brand-card {
  text-decoration: none;
  background: #fff;
  border-radius: var(--radius);
  padding: 2.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  border: 1px solid var(--color-border);
  transition: transform .25s, box-shadow .25s;
}
.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1.2rem 3.2rem rgba(63, 58, 51, .1);
}
.brand-card__logo {
  height: 5.4rem;
  display: flex;
  align-items: center;
  align-self: flex-start;
  border-radius: 1.2rem;
}
.brand-card__logo--dark { background: #4a4238; padding: 0.8rem 1.6rem; }
.brand-card__logo-img {
  height: 4rem;
  max-height: 4rem;
  max-width: 17rem;
  width: auto;
  object-fit: contain;
}
.brand-card__logo-text {
  font-family: var(--font-head);
  font-size: 2.6rem;
  color: var(--color-ink);
}
.brand-card__desc {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.4rem;
  line-height: 1.5;
  flex: 1;
}
.brand-card__link {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-ink);
}

/* ============================================================
   HITS — «То, что выбирают люди» (карусель)
   ============================================================ */
.hits__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 4.4rem;
}
.hits__lead {
  color: var(--color-muted);
  font-size: 1.7rem;
  margin: 0;
  max-width: 56rem;
  line-height: 1.6;
}
.hits__all {
  text-decoration: none;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-ink);
  border-bottom: 2px solid var(--color-ink);
  padding-bottom: 0.2rem;
  white-space: nowrap;
}
.hits__viewport { position: relative; }
.hits__window { overflow: hidden; }
.hits__track {
  display: flex;
  gap: 2.4rem;
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}
.hits__note {
  color: var(--color-muted-light);
  font-size: 1.3rem;
  margin: 2.8rem 0 0;
}

.hit-card {
  text-decoration: none;
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s;
  flex: 0 0 calc((100% - 7.2rem) / 4);
  min-width: 0;
}
.hit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 2.2rem 4.8rem rgba(63, 58, 51, .16);
}
.hit-card__media {
  position: relative;
  display: block;
  height: 34rem;
}
.hit-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hit-card__badge {
  position: absolute;
  top: 1.6rem;
  left: 1.6rem;
  background: #fff;
  color: var(--color-ink);
  font-size: 1.2rem;
  font-weight: 800;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
}
.hit-card__body {
  padding: 2.2rem 2.4rem 2.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}
.hit-card__name {
  color: var(--color-ink);
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 2.2rem;
  text-decoration: none;
  align-self: flex-start;
}
.hit-card__note {
  color: var(--color-muted);
  font-size: 1.4rem;
}
.hit-card__cta {
  margin-top: 1.6rem;
  padding: 1.2rem 1.8rem;
}

.hits__arrow {
  position: absolute;
  top: 15rem;
  z-index: 5;
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-ink);
  cursor: pointer;
  box-shadow: 0 1rem 2.8rem rgba(63, 58, 51, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s, opacity .25s;
}
.hits__arrow:hover { background: var(--color-bg-light); }
.hits__arrow--prev { left: -1.8rem; }
.hits__arrow--next { right: -1.8rem; }
.hits__arrow:disabled { opacity: .4; cursor: default; }

/* ============================================================
   WORKS — «Двери в интерьере» (галерея + лайтбокс)
   ============================================================ */
.gallery {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.gallery__column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.gallery__column--wide { flex: 1.35; }
.gallery__item {
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-accent);
  display: block;
  box-shadow: 0 0.2rem 1.2rem rgba(63, 58, 51, .1);
  transition: box-shadow .3s;
}
.gallery__item:hover { box-shadow: 0 1.2rem 3rem rgba(63, 58, 51, .2); }
.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}
.gallery__item:hover .gallery__image { transform: scale(1.05); }

/* размеры плиток */
.gallery__item--h300 { height: 30rem; }
.gallery__item--h240 { height: 24rem; }
.gallery__item--h360 { height: 36rem; }
.gallery__item--h520 { height: 52rem; }
.gallery__item--h340 { height: 34rem; }

/* Лайтбокс */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(37, 33, 29, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox__stage {
  max-width: 100rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  align-items: center;
}
.lightbox__image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 1.6rem;
}
.lightbox__counter {
  color: rgba(255, 255, 255, .85);
  font-size: 1.5rem;
  font-weight: 600;
}
.lightbox__btn {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .18); }
.lightbox__btn--close { top: 2.2rem; right: 2.6rem; width: 4.8rem; height: 4.8rem; }
.lightbox__btn--prev { left: 2.6rem; top: 50%; transform: translateY(-50%); width: 5.4rem; height: 5.4rem; }
.lightbox__btn--next { right: 2.6rem; top: 50%; transform: translateY(-50%); width: 5.4rem; height: 5.4rem; }

/* ============================================================
   REASONS — «Почему именно мы»
   ============================================================ */
.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 2rem;
}
.reason {
  background: var(--color-bg-light);
  border-radius: var(--radius);
  padding: 2.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.reason__num {
  font-family: var(--font-head);
  font-size: 3.4rem;
  color: var(--color-accent);
  line-height: 1;
}
.reason__title { font-weight: 800; font-size: 1.7rem; }
.reason__text {
  color: var(--color-muted);
  font-size: 1.45rem;
  line-height: 1.55;
}

/* ============================================================
   STEPS — «6 шагов»
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 2rem;
}
.step {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.6rem;
  display: flex;
  gap: 1.8rem;
  border: 1px solid var(--color-border);
}
.step__num {
  flex: none;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.7rem;
}
.step__body { display: flex; flex-direction: column; gap: 0.6rem; }
.step__title { font-weight: 800; font-size: 1.7rem; }
.step__text {
  color: var(--color-muted);
  font-size: 1.45rem;
  line-height: 1.55;
}

.payments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.pay-card {
  border-radius: var(--radius);
  padding: 2.8rem;
}
.pay-card--brand { background: var(--color-brand); color: #fff; }
.pay-card--light { background: #fff; border: 1px solid var(--color-border); }
.pay-card__title {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 400;
  margin: 0 0 1.6rem;
}
.pay-card__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.45rem;
  line-height: 1.5;
}
.pay-card--brand .pay-card__list { color: rgba(255, 255, 255, .85); }
.pay-card--brand .pay-card__list strong { color: #fff; }
.pay-card--light .pay-card__list { color: var(--color-muted); }
.pay-card--light .pay-card__list strong { color: var(--color-ink); }
.pay-card__accent { color: var(--color-ink); font-weight: 700; }

/* ============================================================
   CTA FORM — заявка на замер
   ============================================================ */
.cta {
  max-width: var(--container);
  margin: 0 auto;
  background: var(--color-brand);
  border-radius: 2.8rem;
  padding: 5rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3.6rem;
  align-items: center;
}
.cta__title {
  font-family: var(--font-head);
  font-size: 3.4rem;
  font-weight: 400;
  margin: 0 0 1.4rem;
  color: #fff;
}
.cta__text {
  font-size: 1.6rem;
  line-height: 1.6;
  margin: 0;
  color: rgba(255, 255, 255, .75);
}
.cta__text strong { color: #fff; }

.form { display: flex; flex-direction: column; gap: 1.4rem; }
.form__input {
  padding: 1.5rem 2rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(63, 58, 51, .4);
  color: #fff;
  font-size: 1.5rem;
  font-family: var(--font-body);
  outline: none;
}
.form__input::placeholder { color: rgba(255, 255, 255, .7); }
.form__consent {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  color: rgba(255, 255, 255, .7);
  font-size: 1.25rem;
  line-height: 1.5;
  cursor: pointer;
}
.form__consent-check { margin-top: 0.2rem; accent-color: #fff; }
.form__consent a { color: #fff; }
.form__submit {
  padding: 1.6rem 2.4rem;
  border-radius: var(--radius-pill);
  border: none;
  background: #fff;
  color: var(--color-ink);
  font-weight: 800;
  font-size: 1.6rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background .25s, opacity .25s;
}
.form__submit:hover { background: #efeae3; }
.form__submit--disabled { opacity: .55; }
.form__error { color: #ffb4b4; font-size: 1.3rem; }

.form-success {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius);
  padding: 3.2rem;
  color: #fff;
  text-align: center;
}
.form-success[hidden] { display: none; }
.form-success__icon { font-size: 3.4rem; margin-bottom: 1rem; }
.form-success__title { font-weight: 800; font-size: 1.9rem; margin-bottom: 0.6rem; }
.form-success__text { color: rgba(255, 255, 255, .75); font-size: 1.45rem; }

/* ============================================================
   FAQ — вопрос-ответ
   ============================================================ */
.faq { max-width: 90rem; }
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.faq-item {
  background: #fff;
  border-radius: 1.6rem;
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.faq-item__head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.6rem;
  padding: 2rem 2.4rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--color-ink);
  text-align: left;
}
.faq-item__icon {
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: transform .3s;
}
.faq-item--open .faq-item__icon { transform: rotate(45deg); }
.faq-item__body {
  padding: 0 2.4rem 2.2rem;
  color: var(--color-muted);
  font-size: 1.5rem;
  line-height: 1.65;
}
.faq-item__body[hidden] { display: none; }

/* ============================================================
   CONTACTS — контакты + карта
   ============================================================ */
.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(32rem, 1fr));
  gap: 2.8rem;
  align-items: stretch;
}
.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}
.contacts__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contacts__group--phones { gap: 0.8rem; }
.contacts__label {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: var(--color-muted-light);
}
.contacts__address {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.5;
}
.contacts__phone {
  text-decoration: none;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-ink);
}
.contacts__phone--minor {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-muted);
}
.contacts__mail {
  text-decoration: none;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-ink);
}
.contacts__route { align-self: flex-start; padding: 1.3rem 2.6rem; }
.contacts__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 38rem;
  border: 1px solid var(--color-border);
}
.contacts__map-frame {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 38rem;
  display: block;
}

/* ============================================================
   FOOTER — подвал
   ============================================================ */
.footer {
  background: var(--color-brand);
  color: #fff;
  padding: 5.6rem 2rem 11rem;
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
  gap: 3.6rem;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.footer__brand {
  font-family: var(--font-head);
  font-size: 2.4rem;
}
.footer__about {
  color: rgba(255, 255, 255, .82);
  font-size: 1.35rem;
  line-height: 1.6;
  font-weight: 500;
}
.footer__heading {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}
.footer__link {
  color: rgba(255, 255, 255, .92);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.4rem;
}
.footer__requisites {
  color: rgba(255, 255, 255, .72);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.6;
}
.footer__copy {
  color: rgba(255, 255, 255, .45);
  font-size: 1.25rem;
  margin-top: 0.8rem;
}

/* ============================================================
   FAB — плавающая кнопка связи
   ============================================================ */
.fab {
  position: fixed;
  right: 2.2rem;
  bottom: 2.2rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.2rem;
}
.fab__menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
}
.fab__menu[hidden] { display: none; }
.fab__link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  color: var(--color-ink);
  padding: 1.2rem 1.8rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1.4rem;
  box-shadow: 0 0.8rem 2.4rem rgba(63, 58, 51, .2);
  transition: background .25s;
}
.fab__link:hover { background: var(--color-bg-light); color: var(--color-ink); }
.fab__dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
}
.fab__dot--max { background: linear-gradient(135deg, #7b5bff, #12b6ff); }
.fab__dot--phone { background: var(--color-brand); }
.fab__toggle {
  width: 6.4rem;
  height: 6.4rem;
  border-radius: 50%;
  border: none;
  background: var(--color-brand);
  color: #fff;
  cursor: pointer;
  animation: fab-pulse 2.5s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .25s;
}
.fab__toggle:hover { background: var(--color-brand-dark); }
.fab__icon--close { display: none; }
.fab--open .fab__icon--close { display: block; }
.fab--open .fab__icon--open { display: none; }

@keyframes fab-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(63, 58, 51, .35); }
  70%  { box-shadow: 0 0 0 1.6rem rgba(63, 58, 51, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 58, 51, 0); }
}

/* ============================================================
   PAGE HERO — заголовочный блок внутренних страниц
   ============================================================ */
.page-hero { background: var(--color-brand); padding: 6rem 0; }
.page-hero__title {
  font-family: var(--font-head);
  font-size: 4.4rem;
  font-weight: 400;
  margin: 0 0 1.2rem;
  color: #fff;
}
.page-hero__lead {
  color: rgba(255, 255, 255, .75);
  font-size: 1.7rem;
  margin: 0;
  max-width: 68rem;
  line-height: 1.6;
}

/* Секция на тёмном (брендовом) фоне */
.section--brand { background: var(--color-brand); }
.section--brand .section__title { color: #fff; }
.section--brand .section__lead { color: rgba(255, 255, 255, .7); }

/* ============================================================
   CONTACTS — мессенджеры (кнопки-пилюли)
   ============================================================ */
.contacts__messengers { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.msgr {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  border: 1.5px solid var(--color-border);
  color: var(--color-ink);
  padding: 1.1rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1.4rem;
  transition: border-color .25s;
}
.msgr:hover { border-color: var(--color-brand); color: var(--color-ink); }
.msgr__dot { width: 0.9rem; height: 0.9rem; border-radius: 50%; }
.msgr__dot--whatsapp { background: #3fbd6a; }
.msgr__dot--telegram { background: #39a6e0; }

/* ============================================================
   CALLOUT — светлая плашка-призыв (страница «О нас»)
   ============================================================ */
.callout {
  background: var(--color-bg-light);
  border-radius: 2.8rem;
  padding: 4.4rem 4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  align-items: center;
  justify-content: space-between;
}
.callout__title {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 400;
  margin: 0 0 0.8rem;
}
.callout__text { color: var(--color-muted); font-size: 1.6rem; margin: 0; }
.callout__actions { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.btn--outline {
  border: 1.5px solid var(--color-brand);
  color: var(--color-ink);
  background: transparent;
  padding: 1.5rem 3rem;
  font-size: 1.5rem;
}
.btn--outline:hover { background: var(--color-brand); color: #fff; }
.btn--lg { padding: 1.5rem 3rem; font-size: 1.5rem; font-weight: 800; }

/* ============================================================
   WORKSHOTS — фото с установок (страница «О нас»)
   ============================================================ */
.workshots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr));
  gap: 2rem;
}
.workshot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 26rem;
}
.workshot__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.workshot__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 1.8rem;
  background: linear-gradient(180deg, rgba(63, 58, 51, 0), rgba(63, 58, 51, .85));
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
}

/* ============================================================
   PRODUCT — карточка товара
   ============================================================ */
.breadcrumb { font-size: 1.3rem; margin-bottom: 2.4rem; color: var(--color-muted-light); }
.breadcrumb a { color: var(--color-muted-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-ink); }
.breadcrumb__current { color: var(--color-ink); font-weight: 700; }

.product { display: flex; flex-wrap: wrap; gap: 3.6rem; align-items: flex-start; }
.product__media {
  flex: 1 1 38rem;
  min-width: 30rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
}
.product__image { width: 100%; height: 52rem; object-fit: cover; display: block; }
.product__info {
  flex: 1 1 38rem;
  min-width: 30rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.product__tags { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.tag { font-size: 1.2rem; font-weight: 700; padding: 0.6rem 1.4rem; border-radius: var(--radius-pill); }
.tag--brand { background: var(--color-brand); color: #fff; font-weight: 800; }
.tag--ghost { border: 1.5px solid var(--color-border); color: var(--color-muted); background: #fff; }
.product__title { font-family: var(--font-head); font-size: 4.2rem; font-weight: 400; margin: 0; }
.product__desc { color: var(--color-muted); font-size: 1.6rem; line-height: 1.65; margin: 0; }
.product__buy {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.product__price-row { display: flex; align-items: baseline; gap: 1.2rem; flex-wrap: wrap; }
.product__price { font-family: var(--font-head); font-size: 3.4rem; }
.product__price-note { color: var(--color-muted-light); font-size: 1.35rem; }
.product__cta { text-align: center; padding: 1.4rem 2.6rem; }
.product__note { color: var(--color-muted-light); font-size: 1.3rem; margin: 0; }
.product__note a { color: var(--color-ink); font-weight: 700; text-decoration: none; }
.prodfeatures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.2rem;
}
.prodfeature {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 1.6rem;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.prodfeature__title { font-weight: 800; font-size: 1.4rem; }
.prodfeature__text { color: var(--color-muted); font-size: 1.25rem; line-height: 1.5; }

.notfound {
  max-width: 60rem;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 4.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
}
.notfound__title { font-family: var(--font-head); font-size: 2.8rem; }
.notfound__text { color: var(--color-muted); font-size: 1.5rem; }

/* ============================================================
   CATALOG — каталог / категория / бренд
   ============================================================ */
.page-hero__crumbs { font-size: 1.3rem; margin-bottom: 1.2rem; }
.page-hero__crumbs a { color: rgba(255, 255, 255, .6); text-decoration: none; }
.page-hero__crumbs a:hover { color: #fff; }
.page-hero__crumbs span { color: rgba(255, 255, 255, .85); }
.page-hero__brandsite {
  display: inline-block;
  margin-top: 1.6rem;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, .5);
  color: #fff;
  padding: 1.1rem 2.2rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1.4rem;
  transition: border-color .25s;
}
.page-hero__brandsite:hover { border-color: #fff; color: #fff; }

.catalog-toolbar { display: flex; flex-direction: column; gap: 1.6rem; margin-bottom: 2.8rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.filter-row__label {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: var(--color-muted-light);
  margin-right: 0.4rem;
}
.chip {
  text-decoration: none;
  border: 1.5px solid var(--color-border);
  background: #fff;
  color: var(--color-ink);
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 1.35rem;
  font-weight: 700;
  transition: border-color .2s, background .2s, color .2s;
}
.chip:hover { border-color: var(--color-brand); color: var(--color-ink); }
.chip--active { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }
.chip--active:hover { color: #fff; }

.catalog-count { color: var(--color-muted); font-size: 1.45rem; margin: 0 0 2.4rem; }
.catalog-count strong { color: var(--color-ink); }

.prodgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr));
  gap: 2rem;
}
.prodcard {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.prodcard:hover { transform: translateY(-3px); box-shadow: 0 1.2rem 3.2rem rgba(63, 58, 51, .12); }
.prodcard__media {
  position: relative;
  display: block;
  height: 21rem;
  background: var(--color-bg-light);
}
.prodcard__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prodcard__badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: rgba(63, 58, 51, .85);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
}
.prodcard__body {
  padding: 1.6rem 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.prodcard__name { text-decoration: none; color: var(--color-ink); font-weight: 800; font-size: 1.65rem; }
.prodcard__note { color: var(--color-muted); font-size: 1.3rem; }
.prodcard__price { font-family: var(--font-head); font-size: 2rem; margin-top: 0.2rem; }
.prodcard__cta { margin-top: 1.4rem; padding: 1rem 1.6rem; font-size: 1.35rem; }

/* ============================================================
   ORDER MODAL — форма обратной связи (всплывающая)
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(63, 58, 51, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.modal[hidden] { display: none; }
.modal__card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 3.2rem 3rem;
  width: 100%;
  max-width: 44rem;
  box-shadow: 0 3rem 8rem rgba(63, 58, 51, .3);
}
.modal__close {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 50%;
  border: none;
  background: var(--color-bg-light);
  color: var(--color-ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.modal__close:hover { background: var(--color-bg-sand); }
.modal__title { font-family: var(--font-head); font-size: 2.6rem; font-weight: 400; margin: 0 0 0.8rem; }
.modal__text { color: var(--color-muted); font-size: 1.45rem; line-height: 1.55; margin: 0 0 2rem; }

/* Успех внутри светлого модала (перекрываем тёмную версию .form-success) */
.modal .form-success { background: var(--color-bg-light); border-color: var(--color-border); color: var(--color-ink); }
.modal .form-success__icon { color: var(--color-brand); }
.modal .form-success__text { color: var(--color-muted); }

.oform { display: flex; flex-direction: column; gap: 1.2rem; }
.oform__input {
  padding: 1.4rem 1.8rem;
  border-radius: 1.4rem;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-ink);
  font-size: 1.5rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color .2s;
}
.oform__input:focus { border-color: var(--color-brand); }
.oform__input::placeholder { color: var(--color-muted-light); }
.oform__consent {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  color: var(--color-muted);
  font-size: 1.25rem;
  line-height: 1.5;
  cursor: pointer;
}
.oform__consent input { margin-top: 0.2rem; accent-color: var(--color-brand); }
.oform__consent a { color: var(--color-ink); }
.oform__submit { margin-top: 0.4rem; padding: 1.5rem 2.4rem; font-size: 1.5rem; font-weight: 800; }
.oform__error { color: #c0392b; font-size: 1.3rem; }

/* ============================================================
   Адаптив
   ============================================================ */

/* ---------- Планшет (≤ 90rem) ---------- */
@media (max-width: 900px) {
  .hero { height: 52rem; }
  .hero__title { font-size: 4.4rem; }

  /* Карусель хитов → нативный свайп со snap, стрелки не нужны */
  .hits__window {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hits__window::-webkit-scrollbar { display: none; }
  .hits__track {
    transform: none !important;   /* глушим инлайн-трансформ из JS */
  }
  .hit-card {
    flex-basis: calc((100% - 2.4rem) / 2);
    scroll-snap-align: start;
  }
  .hits__arrow { display: none; }
}

/* ---------- Крупный телефон / низ планшета (≤ 72rem) ---------- */
@media (max-width: 720px) {
  .container { padding: 0 1.6rem; }
  .section { padding: 6rem 0; }
  .section__title { font-size: 3.2rem; }

  /* Шапка: логотип + кнопка в строке, меню — отдельной строкой */
  .header__inner { gap: 1.2rem 1.6rem; padding: 1.2rem 1.6rem; }
  .header .btn--primary { margin-left: auto; }
  .nav {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
    justify-content: center;
    gap: 1.8rem;
  }

  /* Верхняя строка контактов — по центру */
  .topbar__inner { justify-content: center; text-align: center; padding: 0.8rem 1.6rem; }

  .promo-card { height: 34rem; }
  .cards-grid { gap: 2rem; }

  .hits__head { margin-bottom: 2.8rem; }
  .hit-card { flex-basis: 78%; }        /* один товар + «подглядывание» следующего */

  .gallery { flex-direction: column; }
  .gallery__column { flex: none; }
  /* На узком экране высоту плиток задаём авто-пропорцией */
  .gallery__item[class*="gallery__item--h"] { height: auto; aspect-ratio: 4 / 3; }

  .contacts__map, .contacts__map-frame { min-height: 30rem; }

  .cta { padding: 3.4rem 2.2rem; gap: 2.6rem; }
  .cta__title { font-size: 2.8rem; }

  .footer { padding: 4.4rem 1.6rem 9.2rem; }
  .footer__inner { gap: 2.8rem; }
}

/* ---------- Телефон (≤ 48rem) ---------- */
@media (max-width: 480px) {
  .section { padding: 4.8rem 0; }
  .section__title { font-size: 2.6rem; }
  .section__lead { font-size: 1.55rem; margin-bottom: 2.8rem; }

  .topbar { font-size: 1.2rem; }

  .logo__name { font-size: 2.1rem; }
  .logo__tagline { font-size: 1rem; letter-spacing: 0.25rem; }
  .nav { gap: 1.4rem; font-size: 1.3rem; }

  .hero { height: 44rem; }
  .hero__title { font-size: 3rem; line-height: 1.15; }
  .hero__subtitle { font-size: 1.6rem; }
  .hero__content { gap: 1.6rem; }
  .btn--hero { padding: 1.4rem 2.4rem; font-size: 1.5rem; }

  .promo-card { height: 30rem; }
  .promo-card__body { padding: 2.2rem; }
  .promo-card__title { font-size: 2.6rem; }

  .hit-card { flex-basis: 84%; }
  .hit-card__media { height: 30rem; }

  .steps, .payments, .cards-grid, .reasons, .brands { gap: 1.6rem; }
  .pay-card { padding: 2.2rem; }

  .cta { padding: 2.8rem 1.8rem; border-radius: 2.2rem; }
  .cta__title { font-size: 2.5rem; }

  .contacts__phone { font-size: 1.8rem; }

  /* Плавающая кнопка — компактнее и ближе к краю */
  .fab { right: 1.6rem; bottom: 1.6rem; }
  .fab__toggle { width: 5.6rem; height: 5.6rem; }
}

/* ---------- Внутренние страницы: планшет/телефон ---------- */
@media (max-width: 720px) {
  .page-hero { padding: 4.4rem 0; }
  .page-hero__title { font-size: 3.2rem; }
  .callout { padding: 3.2rem 2.2rem; }
  .callout__actions { width: 100%; }
  .product__image { height: 42rem; }
  .product__title { font-size: 3.2rem; }
  .workshot { height: 24rem; }
}

@media (max-width: 480px) {
  .page-hero__title { font-size: 2.6rem; }
  .page-hero__lead { font-size: 1.55rem; }
  .product { gap: 2.4rem; }
  .product__image { height: 34rem; }
  .product__title { font-size: 2.7rem; }
  .product__price { font-size: 2.8rem; }
  .product__buy { padding: 2rem; }
  .workshot { height: 21rem; }
  .msgr { flex: 1; justify-content: center; }
  .prodcard__media { height: 20rem; }
  .filter-row__label { flex-basis: 100%; margin-bottom: 0.2rem; }
  .modal__card { padding: 2.6rem 2rem; }
  .modal__title { font-size: 2.2rem; }
}

/* ---------- Уважение к настройке «меньше движения» ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
