/* ==========================================================================
   Кухни «Мишель» — основная таблица стилей темы
   Порядок: токены · база · утилиты · шапка · секции · компоненты · адаптив
   ========================================================================== */

:root {
  --ink: #1C1917;
  --ink-soft: #6E655E;
  --muted: #726960;
  --line: #EAE3DA;
  --line-strong: #E4DED6;
  --bg: #FFFDFB;
  --sand: #F4F1EC;
  --dark: #1C1917;
  --dark-text: #B0A69E;
  --accent: #FF5538;
  --accent-dark: #D9411F;
  --accent-soft: #FFC4B0;
  --peach: #FFDCD1;
  --danger: #C22B10;

  --font-head: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Commissioner', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1440px;
  --gutter: 40px;
  --section-y: 96px;
  --radius: 0;
}

/* --------------------------------------------------------------- база --- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* height: auto обязателен. Атрибуты width/height в разметке нужны, чтобы
   браузер резервировал место и страница не прыгала при загрузке, но без
   height: auto они задают жёсткую высоту в пикселях — тогда aspect-ratio
   игнорируется и кадр растягивается по вертикали. */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-dark); }

button, input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--peach); color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; letter-spacing: -.025em; margin: 0; }

p { margin: 0; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ------------------------------------------------------------ утилиты --- */

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: var(--section-y) 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--dark); color: #fff; }
.section--tight { padding-top: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--accent); flex: none; }
.eyebrow--light { color: #D8CCC4; }

.h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.06; text-wrap: pretty; }
.h2 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.1; }
.h3 { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.2; }

.hero__title { font-size: clamp(34px, 5.6vw, 66px); line-height: 1.05; color: #fff; }

.u-underline { box-shadow: inset 0 -.12em 0 var(--accent-soft); }
.u-underline--dark { box-shadow: inset 0 -.12em 0 rgba(255, 85, 56, .7); }

.lead { font-size: 18px; color: var(--ink-soft); font-weight: 300; }
.lead--light { color: #DCD1CA; }
.note { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}

.grid { display: grid; gap: 20px; }
.grid--auto-260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--auto-280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--auto-300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--split { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(28px, 4vw, 56px); }

/* ------------------------------------------------------------- кнопки --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; text-align: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { flex: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--ink); color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--sm { min-height: 46px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 4px;
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }

/* -------------------------------------------------------------- шапка --- */

.topbar { background: var(--dark); color: var(--dark-text); font-size: 13px; }
.topbar__inner {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding-top: 9px; padding-bottom: 9px;
}
.topbar__phone {
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__social { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.topbar__social a { color: var(--dark-text); display: inline-flex; font-weight: 600; font-size: 12px; }
.topbar__social a:hover { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 253, 251, .93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 24px;
  padding-top: 12px; padding-bottom: 12px;
}
.site-logo img { width: 132px; height: auto; }

.nav { display: flex; align-items: center; gap: 20px; flex: 1; min-width: 0; flex-wrap: wrap; }
.nav a { color: var(--ink); font-size: 15px; }
.nav a:hover, .nav .current-menu-item > a { color: var(--accent); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }

.header__actions { display: flex; align-items: center; gap: 14px; flex: none; }
.header__phone { color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: 16px; white-space: nowrap; }
.header__phone:hover { color: var(--accent); }

.icon-btn {
  width: 46px; height: 46px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

.burger { display: none; }
.header__mobile { display: none; margin-left: auto; gap: 10px; align-items: center; }

/* мобильное меню */
.mobile-menu {
  position: fixed; inset: 0; z-index: 120; background: var(--bg);
  display: none; flex-direction: column;
}
.mobile-menu.is-open { display: flex; animation: mishel-in .2s ease both; }
.mobile-menu__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; border-bottom: 1px solid var(--line);
}
.mobile-menu__nav { flex: 1; overflow-y: auto; padding: 8px 20px; }
.mobile-menu__nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu__nav a {
  display: block; color: var(--ink); font-family: var(--font-head);
  font-size: 22px; font-weight: 600; padding: 18px 0; border-bottom: 1px solid #F0EAE2;
}
.mobile-menu__foot { padding: 16px 20px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

@keyframes mishel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- hero --- */

.hero {
  position: relative; min-height: 88vh; display: flex; align-items: flex-end;
  background: var(--dark); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 17, 15, .78) 0%, rgba(20, 17, 15, .42) 45%, rgba(20, 17, 15, .15) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-top: 120px; padding-bottom: 48px; }
.hero__copy { max-width: 900px; }
.hero__lead { font-size: 19px; color: #EADFD8; font-weight: 300; margin-top: 22px; max-width: 560px; }
.hero__actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero__facts {
  margin-top: 64px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .22);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px;
}
.hero__fact { display: flex; gap: 14px; align-items: flex-start; color: #fff; font-size: 16px; }
.hero__fact svg { flex: none; margin-top: 3px; }
.hero__fact small { display: block; color: #C8BBB2; font-size: 14px; }

/* ---------------------------------------------------------- цифры/факты --- */

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); align-self: start; }
.facts__item { background: var(--bg); padding: 26px 22px; }
.facts__value { font-family: var(--font-head); font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.facts__label { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* -------------------------------------------------------------- плитки --- */

.tile { position: relative; display: block; overflow: hidden; color: #fff; }
.tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .4s ease; }
.tile:hover img { transform: scale(1.04); }
.tile__scrim { position: absolute; inset: auto 0 0 0; height: 62%; background: linear-gradient(to top, rgba(20, 17, 15, .9), rgba(20, 17, 15, 0)); }
.tile__body { position: absolute; left: 22px; right: 22px; bottom: 20px; }
.tile__title { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 22px; font-weight: 600; color: #fff; }
.tile__meta { display: block; font-size: 14px; color: #D8CCC4; margin-top: 6px; }

.tile--empty {
  display: flex; flex-direction: column; justify-content: space-between;
  aspect-ratio: 4 / 5; background: var(--sand); padding: 22px;
  color: var(--ink); border: 1px solid var(--line);
}
.tile--empty:hover { border-color: var(--accent); color: var(--ink); }
.tile--empty .tile__title { color: var(--ink); }

/* ---------------------------------------------------------- карточки ----- */

.card { background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card:hover { border-color: var(--accent); }
.card__media { position: relative; display: block; overflow: hidden; }
.card__media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title { font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--ink); }
.card__title:hover { color: var(--accent); }
.card__meta { font-size: 14px; color: var(--muted); }
.card__cta { margin-top: auto; }
.card__cta.btn--outline:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.badge {
  position: absolute; left: 14px; top: 14px;
  background: var(--accent); color: #fff;
  font-family: var(--font-head); font-size: 12px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; padding: 6px 10px;
}

.style-card { display: block; background: var(--bg); border: 1px solid var(--line); color: var(--ink); }
.style-card:hover { border-color: var(--accent); color: var(--ink); }
.style-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.style-card__body { padding: 22px 24px 26px; }
.style-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.style-card__name { font-family: var(--font-head); font-size: 22px; font-weight: 600; }
.style-card__count { font-size: 14px; color: var(--muted); white-space: nowrap; flex: none; }
.style-card__text { font-size: 15px; color: var(--ink-soft); margin-top: 8px; font-weight: 300; }
.style-card__price { margin-top: 14px; font-family: var(--font-head); font-weight: 600; color: var(--accent); }

/* ---------------------------------------------------------------- квиз --- */

.quiz { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); align-items: stretch; }
.quiz__intro { padding: 88px 56px 88px 0; display: flex; flex-direction: column; justify-content: center; }
.quiz__list { margin-top: 36px; display: flex; flex-direction: column; gap: 16px; }
.quiz__list li { display: flex; gap: 12px; align-items: center; font-size: 16px; list-style: none; }
.quiz__list { padding: 0; }
.quiz__panel { background: var(--bg); color: var(--ink); padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.quiz__progress { display: flex; gap: 6px; }
.quiz__seg { flex: 1; height: 3px; background: var(--line); }
.quiz__seg.is-done { background: var(--accent); }
.quiz__meta { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.quiz__step { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.quiz__back { background: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; padding: 8px 0; }
.quiz__question { font-family: var(--font-head); font-size: 28px; font-weight: 600; margin-top: 12px; letter-spacing: -.02em; }
.quiz__options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 24px; }
.quiz__option {
  position: relative; text-align: left; background: var(--sand); border: 1px solid var(--line);
  padding: 18px 16px; font-size: 16px; cursor: pointer; min-height: 64px;
}
.quiz__option:hover { border-color: var(--accent); background: #FFF3EF; }
.quiz__option.is-selected { border: 2px solid var(--accent); }
.quiz__summary { background: var(--sand); padding: 16px 18px; margin-top: 24px; font-size: 15px; color: var(--ink-soft); }
.quiz__summary b { color: var(--ink); font-weight: 500; }

/* --------------------------------------------------------------- формы --- */

.form { display: flex; flex-direction: column; gap: 12px; }
.form__title { font-family: var(--font-head); font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.form__field {
  height: 54px; width: 100%; padding: 0 16px; font-size: 16px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); outline: none;
}
textarea.form__field { height: auto; min-height: 96px; padding: 14px 16px; resize: vertical; }
.form__field:focus { border-color: var(--accent); }
.form__error { color: var(--danger); font-size: 14px; margin-top: -4px; }
.form__check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.form__check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.form__hint { font-size: 14px; color: var(--muted); text-align: center; }
.form__success { text-align: center; padding: 40px 6px; }
.form__success svg { margin: 0 auto; }
.form__success-title { font-family: var(--font-head); font-size: 24px; font-weight: 600; margin-top: 18px; }
.form-panel { background: var(--bg); color: var(--ink); padding: clamp(24px, 3.4vw, 40px); }

.cta { position: relative; background: var(--dark); color: #fff; overflow: hidden; }
.cta__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.cta__inner {
  position: relative; z-index: 2; padding: var(--section-y) var(--gutter);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 4vw, 56px); align-items: center;
  max-width: var(--container); margin: 0 auto;
}

/* -------------------------------------------------------------- работы --- */

.works { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.work { margin: 0; position: relative; overflow: hidden; cursor: zoom-in; }
.work img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s ease; }
.work:hover img { transform: scale(1.03); }
.work__tags { position: absolute; left: 14px; top: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.work__tag { background: rgba(20, 17, 15, .72); color: #fff; font-size: 12px; padding: 6px 10px; }

.fullbleed { width: 100%; height: min(56vh, 520px); object-fit: cover; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(16, 13, 11, .92);
  display: none; align-items: center; justify-content: center; padding: 40px; cursor: zoom-out;
}
.lightbox.is-open { display: flex; animation: mishel-in .2s ease both; }
.lightbox img { max-width: min(1000px, 92vw); max-height: 88vh; }

/* -------------------------------------------------------------- этапы --- */

.steps { margin-top: 44px; border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: clamp(34px, 5vw, 64px) 34px minmax(160px, 1fr) minmax(240px, 1.2fr);
  gap: clamp(12px, 2vw, 24px); align-items: start;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.step__num { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.step__title { font-family: var(--font-head); font-size: 22px; font-weight: 600; }
.step__text { font-size: 16px; color: var(--ink-soft); font-weight: 300; }

.terms { margin-top: 40px; background: var(--sand); padding: 36px 40px; }
.terms__head { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.terms__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; margin-top: 24px; }
.terms__label { font-size: 15px; color: var(--ink-soft); }
.terms__value { font-family: var(--font-head); font-size: 28px; font-weight: 600; margin-top: 4px; }

/* -------------------------------------------------------- преимущества --- */

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); margin-top: 44px; }
.feature { background: var(--bg); padding: clamp(24px, 3vw, 34px); }
.feature__icon { width: 46px; height: 46px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.feature__title { font-family: var(--font-head); font-size: 21px; font-weight: 600; margin-top: 22px; }
.feature__text { font-size: 16px; color: var(--ink-soft); margin-top: 10px; line-height: 1.55; font-weight: 300; }

/* ------------------------------------------------------------ материалы --- */

.facade { border: 1px solid var(--line); }
.facade__sample {
  aspect-ratio: 4 / 3; display: flex; align-items: flex-end; padding: 16px;
  background: repeating-linear-gradient(135deg, var(--sand) 0 12px, #EDE7DF 12px 24px);
}
.facade__body { padding: 22px 24px 26px; }
.facade__title { font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.facade__text { font-size: 15px; color: var(--ink-soft); margin-top: 8px; font-weight: 300; }
.facade__term { margin-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--accent); }

.brands { background: var(--sand); padding: clamp(24px, 3vw, 34px) clamp(24px, 3vw, 36px); }
.brands__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.brands__item { background: var(--bg); border: 1px solid var(--line-strong); padding: 9px 14px; font-size: 15px; }

.video-stub {
  background: var(--dark); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; min-height: 280px; padding: 34px; text-align: center;
}
.video-stub__play { width: 64px; height: 64px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* --------------------------------------------------------------- отзывы --- */

.reviews { margin-top: 44px; background: var(--bg); border: 1px solid var(--line-strong); }
.reviews__viewport { overflow: hidden; }
.reviews__track { display: flex; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.review { flex: 0 0 100%; min-width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.review__photo { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.review__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.review__text { font-size: clamp(17px, 2vw, 21px); margin-top: 20px; line-height: 1.55; max-width: 46ch; font-weight: 300; }
.review__author { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.review__name { font-family: var(--font-head); font-size: 18px; font-weight: 600; }
.review__meta { font-size: 14px; color: var(--muted); margin-top: 2px; }
.reviews__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px clamp(20px, 3vw, 28px); border-top: 1px solid var(--line); flex-wrap: wrap;
}
.reviews__dots { display: flex; align-items: center; gap: 10px; }
.reviews__dot { width: 32px; height: 3px; border: none; padding: 0; background: var(--line-strong); cursor: pointer; }
.reviews__dot.is-active { background: var(--accent); }
.reviews__counter { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-left: 8px; }
.reviews__nav { display: flex; gap: 10px; }

.rating { display: flex; align-items: center; gap: 16px; background: var(--bg); border: 1px solid var(--line-strong); padding: 18px 24px; }
.rating__value { font-family: var(--font-head); font-size: 34px; font-weight: 600; }

/* ------------------------------------------------------------------ FAQ --- */

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  background: none; border: none; padding: 24px 0; cursor: pointer; text-align: left;
  font-family: var(--font-head); font-size: 19px; font-weight: 600; color: var(--ink);
}
.faq__icon {
  flex: none; width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: transform .25s ease, border-color .2s ease;
}
.faq__item.is-open .faq__icon { transform: rotate(90deg); border-color: var(--accent); color: var(--accent); }
.faq__a { display: none; font-size: 16px; color: var(--ink-soft); padding-bottom: 24px; max-width: 62ch; font-weight: 300; }
.faq__item.is-open .faq__a { display: block; }

/* ------------------------------------------------------------- контакты --- */

.map-stub {
  border: 1px solid var(--line); min-height: 400px; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, var(--sand) 0 14px, #EDE7DF 14px 28px);
}
.map-stub span { background: var(--bg); padding: 10px 16px; }
.salon { border: 1px solid var(--line); padding: 28px; flex: 1; }
.salon__head { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 21px; font-weight: 600; }
.salon__addr { font-size: 16px; color: var(--ink-soft); margin-top: 12px; font-weight: 300; }

/* ---------------------------------------------------------- каталог/фильтр --- */

.crumbs { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.crumbs a { color: var(--muted); padding: 11px 0; display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-current] { color: var(--ink); }

.filters { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 36px); align-items: flex-start; }
.filters__group { min-width: 150px; }
.filters__title { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.filters__options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink);
  font-size: 14px; padding: 11px 14px; min-height: 44px; cursor: pointer;
}
.chip:hover { border-color: var(--accent); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.filters__meta { margin-left: auto; display: flex; align-items: center; gap: 16px; align-self: center; }
.filters__found { font-size: 14px; color: var(--muted); white-space: nowrap; }
.filters__reset { border: none; background: none; color: var(--accent); font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.filters-toggle { display: none; width: 100%; min-height: 56px; align-items: center; justify-content: space-between; padding: 0 18px; margin-bottom: 14px; background: var(--bg); border: 1px solid var(--line-strong); font-family: var(--font-head); font-weight: 600; font-size: 16px; cursor: pointer; }

.empty-state { margin-top: 40px; border: 1px dashed #D8D0C6; padding: clamp(32px, 5vw, 64px); text-align: center; }
.empty-state__title { font-family: var(--font-head); font-size: 22px; font-weight: 600; margin-top: 18px; }
.empty-state__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

.inline-cta { margin-top: 20px; background: var(--sand); padding: clamp(24px, 3vw, 36px); display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: center; }
.inline-cta__form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-cta__form .form__field { flex: 1; min-width: 200px; }

/* ------------------------------------------------------- карточка модели --- */

.product { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(28px, 3.5vw, 48px); align-items: start; }
.gallery { display: flex; gap: 14px; flex-direction: column; }
.gallery__main { position: relative; background: var(--sand); flex: 1 1 auto; min-width: 0; }
.gallery__image { width: 100%; aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.gallery__counter { position: absolute; right: 16px; bottom: 16px; background: rgba(20, 17, 15, .72); color: #fff; font-size: 13px; padding: 8px 12px; display: inline-flex; align-items: center; gap: 8px; }
.gallery__thumbs { display: flex; gap: 10px; flex-wrap: nowrap; overflow-x: auto; flex: none; padding-bottom: 2px; }
.gallery__thumb { width: 84px; height: 84px; flex: none; padding: 0; border: 1px solid var(--line-strong); background-size: cover; background-position: center; cursor: pointer; }
.gallery__thumb.is-active, .gallery__thumb:hover { border-color: var(--accent); }

.product__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.product__tag { border: 1px solid var(--line-strong); padding: 9px 14px; font-size: 14px; }
.buybox { margin-top: 28px; border: 1px solid var(--line); padding: clamp(20px, 2.6vw, 28px); }
.buybox__note { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.buybox__note svg { flex: none; margin-top: 3px; }
.buybox__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

.specs { margin-top: 24px; border-top: 1px solid var(--line-strong); }
.specs__row { display: grid; grid-template-columns: minmax(120px, .8fr) 1.2fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line-strong); align-items: baseline; }
.specs__key { font-size: 15px; color: var(--ink-soft); }

.panel { background: var(--bg); border: 1px solid var(--line-strong); padding: clamp(24px, 3vw, 32px); }
.panel--dark { background: var(--dark); color: #fff; border: none; }
.checklist { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; font-weight: 300; }
.checklist svg { flex: none; margin-top: 4px; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 20px; }
.pricing__item { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #DCD1CA; font-weight: 300; }
.pricing__num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin-top: 4px; }
.pricing__item b { color: #fff; font-weight: 500; }

/* --------------------------------------------------------------- футер --- */

.site-footer { background: var(--dark); color: var(--dark-text); padding: clamp(48px, 7vw, 72px) 0 28px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 40px; }
.site-footer__logo { width: 150px; filter: brightness(0) invert(1); }
.site-footer__about { font-size: 15px; line-height: 1.6; margin-top: 20px; max-width: 280px; font-weight: 300; }
.site-footer__title { color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 15px; margin-bottom: 16px; }
.site-footer__list { display: flex; flex-direction: column; gap: 10px; font-size: 15px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--dark-text); }
.site-footer a:hover { color: #fff; }
.site-footer__phone { color: #fff; font-family: var(--font-head); font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a { width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.socials a:hover { border-color: #fff; }
.site-footer__bottom {
  margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px;
}

/* --------------------------------------------- плавающие элементы/моб. --- */

.messenger { position: fixed; right: 28px; bottom: 28px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.messenger__list { display: none; flex-direction: column; gap: 8px; }
.messenger.is-open .messenger__list { display: flex; animation: mishel-in .18s ease both; }
.messenger__list a { background: var(--bg); border: 1px solid var(--line-strong); padding: 12px 18px; font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--ink); }
.messenger__toggle { width: 58px; height: 58px; border-radius: 50%; border: none; background: var(--accent); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 34px rgba(255, 85, 56, .36); }

.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--bg); border-top: 1px solid var(--line);
  gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
}
.mobile-bar a {
  flex: 1; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; border: 1px solid var(--line-strong); color: var(--ink);
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
}
.mobile-bar a.is-primary { flex: 1.2; background: var(--accent); color: #fff; border-color: var(--accent); font-size: 15px; justify-content: center; }

/* ------------------------------------------------------------- адаптив --- */

@media (max-width: 1259px) {
  .nav, .header__actions { display: none; }
  .header__mobile { display: flex; }
  .mobile-bar { display: flex; }
  .messenger { display: none; }
  body { padding-bottom: 72px; }
  .gallery { flex-direction: column; }
}

@media (min-width: 1260px) {
  .gallery { flex-direction: row-reverse; }
  .gallery__thumbs { flex-direction: column; overflow-x: visible; }
}

@media (max-width: 1024px) {
  :root { --section-y: 72px; }
  .quiz__intro { padding: 56px 32px 56px 0; }
  .hero__inner { padding-top: 104px; padding-bottom: 40px; }
  .hero__facts { margin-top: 44px; }
}

@media (max-width: 899px) {
  .filters-toggle { display: flex; }
  .filters { display: none; }
  .filters.is-open { display: flex; }
  .filters__meta { margin-left: 0; }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; --section-y: 56px; }
  body { font-size: 16px; }
  .topbar__item { display: none; }
  .hero { min-height: auto; }
  .hero__inner { padding-top: 92px; padding-bottom: 40px; }
  .hero__lead { font-size: 17px; }
  .hero__facts { margin-top: 36px; gap: 16px; }
  .quiz__intro { padding: 56px 0 40px; }
  .quiz__question { font-size: 24px; }
  .step { grid-template-columns: 26px 28px 1fr; gap: 10px; }
  .step__text { grid-column: 1 / -1; }
  .step__title { font-size: 19px; }
  .terms { padding: 24px 22px; }
  .review__photo { min-height: 240px; }
  .cta__inner { padding-left: var(--gutter); padding-right: var(--gutter); }
  .salon { padding: 22px; }
  .site-footer__bottom { flex-direction: column; gap: 10px; }
  .lightbox { padding: 16px; }
  .specs__row { grid-template-columns: 1fr; gap: 4px; }
  .faq__q { font-size: 17px; gap: 14px; }
}

@media (max-width: 479px) {
  .hero__actions .btn { width: 100%; }
  .empty-state__actions .btn { width: 100%; }
  .inline-cta__form .form__field { min-width: 100%; }
  .inline-cta__form .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .topbar, .mobile-bar, .messenger, .mobile-menu { display: none !important; }
}

/* Ловушка для ботов — поле не должно быть видно людям,
   но должно оставаться в DOM и доступным для автозаполнения ботов. */
.form__trap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
