/* Шрифты Cormorant Garamond и Jost (SIL Open Font License), размещены локально. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-cyrillic.160db4ca1c04.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-latin.b0fa095eb2a6.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;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-normal-cyrillic.4707efc4a517.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-normal-latin.ec4225ec161b.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;
}

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/jost-normal-cyrillic.dcb081b72429.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/jost-normal-latin.41a72a3a0ae3.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 {
  /* Цвета */
  --paper: #f6f2ec;
  --sand: #ece5da;
  --ink: #1c1a17;
  --muted: #6d675e;
  --line: rgba(28, 26, 23, .16);
  --bronze: #8b7050;
  --bronze-light: #d2b88f;
  --espresso: #25211c;
  --deep: #1a1713;
  --on-dark: #f3eee6;
  --danger: #a8261d;
  --success: #1f6b3d;

  /* Шрифты */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Размеры */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 76px;
  --section-y: clamp(72px, 10vw, 140px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; margin: 0 0 .4em; }
h2 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); }
h3 { font-size: 1.7rem; }
em { font-style: italic; color: var(--bronze); }

.muted { color: var(--muted); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 920px; }
.icon { width: 20px; height: 20px; flex: none; }

.label {
  display: flex; align-items: center; gap: 14px; margin: 0 0 18px;
  font-size: .75rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--bronze);
}
.label::before { content: ''; width: 36px; border-top: 1px solid currentColor; }
.label--light { color: var(--bronze-light); }

/* Кнопки ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 34px; border: 1px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--paper); font: inherit; font-size: .8rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; text-align: center; text-decoration: none; cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.btn:hover { background: var(--bronze); border-color: var(--bronze); color: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: 11px 20px; font-size: .72rem; }
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.btn--ghost-light { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--ghost-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn--line { background: transparent; border-color: currentColor; color: inherit; }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .55; cursor: wait; }

/* Шапка: прозрачная поверх первого экрана, после прокрутки светлая ------------ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: var(--header-h);
  background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line);
  transition: background .35s, color .35s, box-shadow .35s;
}
/* Прозрачной шапка становится только при работающем скрипте, иначе остаётся читаемой */
.js .header:not(.is-scrolled) { background: transparent; color: #fff; box-shadow: none; }
/* Шапка в цвет логотипа: заливка всегда, текст белый */
.header.header--brand, .js .header.header--brand:not(.is-scrolled) { background: var(--brand); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .12); }
/* После прокрутки шапка в цвет логотипа становится почти прозрачной, как матовое стекло, а её нижний край
   растворяется в странице, как облако. Стекло рисует подложка ::before: она выходит за низ шапки и плавно
   гаснет маской. Без поддержки color-mix и mask остаётся сплошная заливка выше. */
.header--brand::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; bottom: -30px; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity .35s;
  background: color-mix(in srgb, var(--brand) 38%, transparent);
  -webkit-backdrop-filter: blur(14px) brightness(.82) saturate(1.15); backdrop-filter: blur(14px) brightness(.82) saturate(1.15);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 64px), rgba(0, 0, 0, .55) calc(100% - 32px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 64px), rgba(0, 0, 0, .55) calc(100% - 32px), transparent 100%);
}
.header.header--brand.is-scrolled { background: transparent; box-shadow: none; }
.header--brand.is-scrolled::before { opacity: 1; }
/* Лёгкая тень, чтобы белый текст читался и на светлых местах страницы под стеклом */
.header--brand.is-scrolled .nav a, .header--brand.is-scrolled .header__phone, .header--brand.is-scrolled .logo { text-shadow: 0 1px 8px rgba(10, 18, 24, .45); }
.header--brand.is-scrolled .logo img { filter: drop-shadow(0 1px 6px rgba(10, 18, 24, .5)); }
.header--brand .btn--line { border-color: rgba(255, 255, 255, .7); color: #fff; }
.header--brand .btn--line:hover, .js .header--brand:not(.is-scrolled) .btn--line:hover { background: #fff; color: var(--ink); border-color: #fff; }
.header__row {
  height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 clamp(16px, 3vw, 40px);
}
.logo {
  grid-column: 2; justify-self: center; text-align: center; white-space: nowrap; text-decoration: none;
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; letter-spacing: .06em;
}
/* Логотип-картинка вместо текстового названия */
.logo--image { display: inline-flex; align-items: center; gap: 12px; }
.logo--image img { display: block; height: 50px; width: auto; max-width: 62vw; }
.logo--image span { font-size: 1.5rem; }
.nav { grid-column: 1; grid-row: 1; justify-self: start; display: none; gap: 28px; }
.nav a {
  position: relative; padding: 6px 0; text-decoration: none;
  font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.header__contacts { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 20px; }
.header__phone { display: none; text-decoration: none; font-weight: 500; letter-spacing: .04em; white-space: nowrap; }
.header__call {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border: 1px solid currentColor; border-radius: 50%;
}
.header__contacts .btn { display: none; }
.js .header:not(.is-scrolled) .btn--line:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Первый экран ---------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: flex-end; overflow: hidden; color: #fff; background: var(--espresso);
}
.hero__bg { position: absolute; inset: -6% 0; will-change: transform; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: hero-in 2.4s var(--ease) both; }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 17, 14, .55) 0%, rgba(20, 17, 14, .15) 60%, rgba(20, 17, 14, 0) 100%),
    linear-gradient(180deg, rgba(20, 17, 14, .6) 0%, rgba(20, 17, 14, .22) 38%, rgba(20, 17, 14, .84) 100%);
}
.hero__inner { position: relative; padding-top: calc(var(--header-h) + 40px); }
.hero .eyebrow {
  display: flex; align-items: center; gap: 16px; margin: 0 0 22px;
  font-size: .78rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: rgba(255, 255, 255, .92);
}
.hero .eyebrow::before { content: ''; width: 44px; border-top: 1px solid currentColor; }
.hero h1 { font-size: clamp(2.9rem, 7.6vw, 7rem); line-height: .98; max-width: 11.5em; color: #fff; margin-bottom: .35em; }
.hero__lead { max-width: 34em; font-size: 1.15rem; color: rgba(255, 255, 255, .85); margin-bottom: 2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__facts {
  position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px;
  margin-top: clamp(40px, 6vw, 72px); padding-top: 22px; padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, .28);
}
.hero__facts li { padding: 6px 0 10px; font-size: .92rem; color: rgba(255, 255, 255, .9); }
.hero__facts span { display: block; margin-bottom: 2px; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--bronze-light); }

/* Текст первого экрана появляется чистым CSS, без зависимости от скрипта (иначе страдает скорость
   первой отрисовки). Заголовок только смещается, а не проявляется: он главный элемент страницы. */
.hero__rise { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
.hero__rise--shift { animation-name: rise-shift; }

/* Бегущая строка --------------------------------------------------------------- */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--paper); }
.marquee__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee__group { display: flex; flex: none; }
.marquee span {
  padding: 22px 0; font-family: var(--font-display); font-style: italic; font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  white-space: nowrap; color: var(--ink);
}
.marquee span::after { content: '—'; margin: 0 .9em; color: var(--bronze); font-style: normal; }

/* Секции ------------------------------------------------------------------------ */
.section { padding: var(--section-y) 0; }
.section--sand { background: var(--sand); }
.section__head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 780px; }
.section__sub { color: var(--muted); font-size: 1.05rem; max-width: 38em; margin: 0; }

/* Подход: тёмная полоса с иконками, чтобы блок не казался пустым */
.perks-band { background: var(--espresso); color: var(--on-dark); padding: clamp(36px, 5vw, 64px) 0; }
.perks { display: grid; grid-template-columns: 1fr; }
.perks li { position: relative; overflow: hidden; padding: 34px 28px 38px; border-top: 1px solid rgba(243, 238, 230, .14); transition: background .5s var(--ease); }
.perks li:first-child { border-top: 0; }
.perks__no {
  position: absolute; right: 18px; top: 4px; font-family: var(--font-display); font-style: italic;
  font-size: 5.5rem; line-height: 1; color: rgba(243, 238, 230, .07); pointer-events: none;
}
.perks__icon {
  display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 26px; border-radius: 50%;
  border: 1px solid rgba(210, 184, 143, .55); color: var(--bronze-light);
  transition: background .5s var(--ease), color .5s var(--ease), transform .5s var(--ease);
}
.perks__icon .icon { width: 26px; height: 26px; }
.perks__title { margin: 0 0 .35em; font-family: var(--font-display); font-size: 1.75rem; line-height: 1.1; color: #fff; }
.perks p { color: rgba(243, 238, 230, .72); margin: 0; }
@media (hover: hover) {
  .perks li:hover { background: rgba(255, 255, 255, .045); }
  .perks li:hover .perks__icon { background: var(--bronze-light); color: var(--deep); transform: translateY(-4px); }
}

/* Виды штор */
.types { display: grid; gap: 44px 28px; grid-template-columns: 1fr; }
.type a { display: block; text-decoration: none; }
.type__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.type__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.type a:hover .type__img img { transform: scale(1.05); }
.type__meta { display: grid; gap: 4px; padding-top: 18px; }
.type__no { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--bronze); }
.type__title { font-family: var(--font-display); font-size: 2rem; line-height: 1.1; }
.type__text { color: var(--muted); font-size: .95rem; }
.type__foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .85rem; letter-spacing: .06em; }
.type__more { font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze); transition: letter-spacing .4s var(--ease); }
.type a:hover .type__more { letter-spacing: .26em; }

/* Образцы тканей: высокие фото, разделённые косыми линиями. Края соседних фото параллельны и идут с небольшим зазором */
.fabrics-wrap { padding: 0 var(--gutter); max-width: 1480px; margin: 0 auto; }
.fabrics { display: grid; gap: 6px; grid-template-columns: repeat(3, 1fr); }
.fabric-tile { display: block; position: relative; overflow: hidden; aspect-ratio: 1 / 1.7; transition: transform .6s var(--ease); }
.fabric-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
/* Подпись поверх фото на тёмной подложке, чтобы читалась на любом образце */
.fabric-tile::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; pointer-events: none;
  background: linear-gradient(to top, rgba(20, 17, 14, .72), transparent);
}
.fabrics__name {
  position: absolute; left: 0; right: 0; bottom: 22px; z-index: 1; text-align: center; color: #fff;
  font-size: .75rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
}
/* При наведении фото «выезжает» к посетителю: приподнимается, увеличивается и отбрасывает тень */
@media (hover: hover) {
  .fabrics li { position: relative; transition: filter .6s var(--ease); }
  .fabrics li:hover { z-index: 2; filter: drop-shadow(0 28px 26px rgba(28, 26, 23, .45)); }
  .fabrics li:hover .fabric-tile { transform: translateY(-12px) scale(1.06); }
  .fabrics li:hover .fabric-tile img { transform: scale(1.07); }
}
.swatch--linen { background: repeating-linear-gradient(0deg, rgba(255,255,255,.28) 0 2px, transparent 2px 5px), repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 2px, transparent 2px 6px), #cdbb98; }
.swatch--velvet { background: linear-gradient(160deg, #8d6e7a, #4c3640 75%); }
.swatch--voile { background: repeating-linear-gradient(45deg, rgba(255,255,255,.7) 0 2px, transparent 2px 6px), repeating-linear-gradient(-45deg, rgba(255,255,255,.7) 0 2px, transparent 2px 6px), #dfe7e2; }
.swatch--jacquard { background: radial-gradient(circle at 50% 50%, #c9ad7a 0 12%, transparent 13%), radial-gradient(circle at 0 0, #c9ad7a 0 12%, transparent 13%), radial-gradient(circle at 100% 100%, #c9ad7a 0 12%, transparent 13%), #6b5a45; background-size: 28px 28px; }
.swatch--blackout { background: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 3px, transparent 3px 8px), #35373c; }
.swatch--silk { background: linear-gradient(135deg, #f0e3d0, #c9ae91 45%, #f5ecdf 60%, #b89a7c); }

/* Квиз: картинка слева, форма справа ----------------------------------------------- */
.quiz { display: grid; grid-template-columns: 1fr; background: var(--espresso); }
.quiz__media { position: relative; display: flex; align-items: flex-end; min-height: 440px; color: var(--on-dark); overflow: hidden; }
.quiz__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quiz__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,17,14,.15), rgba(20,17,14,.82)); }
.quiz__intro { position: relative; z-index: 1; max-width: 620px; padding: clamp(28px, 6vw, 88px) var(--gutter); }
.quiz__intro h2 { color: #fff; }
.quiz__intro h2 em { color: var(--bronze-light); }
.quiz__intro p { color: rgba(255, 255, 255, .82); }
.ticks { display: grid; gap: 8px; margin-top: 20px; }
.ticks li { position: relative; padding-left: 28px; color: rgba(255, 255, 255, .9); }
.ticks li::before { content: ''; position: absolute; left: 0; top: .85em; width: 16px; border-top: 1px solid var(--bronze-light); }
.quiz__panel { display: flex; align-items: center; padding: clamp(36px, 6vw, 88px) var(--gutter); background: var(--paper); }
.quiz__panel .lead-form { width: 100%; max-width: 520px; margin: 0 auto; }

/* Формы ------------------------------------------------------------------------------ */
.lead-form { display: grid; gap: 22px; }
.field { display: grid; gap: 2px; font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.field input, .field select {
  width: 100%; padding: 11px 0; font: inherit; font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid rgba(28, 26, 23, .35); border-radius: 0; outline: 0;
  transition: border-color .25s, box-shadow .25s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none' stroke='%231c1a17' stroke-width='1.3'%3E%3Cpath d='m1 1 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 4px center;
}
.field input:focus, .field select:focus { border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field input::placeholder { color: rgba(28, 26, 23, .38); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.consent input { margin-top: 3px; width: 17px; height: 17px; flex: none; accent-color: var(--ink); }
.consent a { color: var(--ink); text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { margin: 0; color: var(--danger); font-size: .9rem; }
.form-ok { margin: 0; padding: 12px 0; font-family: var(--font-display); font-size: 1.6rem; line-height: 1.2; color: var(--success); }

/* Пошаговый квиз */
[hidden] { display: none !important; }
.quiz-progress { display: none; align-items: center; gap: 16px; font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.quiz-progress__bar { position: relative; flex: 1; height: 2px; background: var(--line); }
.quiz-progress__bar > span { position: absolute; left: 0; top: 0; bottom: 0; width: 20%; background: var(--ink); transition: width .4s var(--ease); }
.quiz-step { display: grid; gap: 18px; min-width: 0; margin: 0; padding: 0; border: 0; }
.quiz-step legend { margin: 0 0 14px; padding: 0; font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 2.1rem); line-height: 1.15; }
.quiz-hint { margin: 0; font-size: .9rem; color: var(--muted); }
.js .quiz-step:not(.is-active) { display: none; }
.js .quiz-step.is-active { animation: step-in .35s var(--ease); }
.options { display: grid; gap: 10px; }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option span {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid rgba(28, 26, 23, .25);
  transition: border-color .2s, background .2s, color .2s;
}
.option span::before { content: ''; flex: none; width: 16px; height: 16px; border: 1px solid currentColor; border-radius: 50%; transition: border-width .2s; }
.option:hover span { border-color: var(--ink); }
.option input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.option input:checked + span::before { border-width: 5px; }
.option input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 3px; }
.quiz-nav { display: none; gap: 12px; }
.js .quiz-nav { display: flex; }
.js .quiz-progress { display: flex; }
.quiz-nav .btn { flex: 1; }
.quiz-result { display: grid; gap: 10px; }
.quiz-result__label { margin: 0; font-size: .75rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--bronze); }
.quiz-result__price { margin: 0; font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.05; }
.quiz-result__note { margin: 0; color: var(--muted); font-size: .95rem; }
@keyframes step-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@media (min-width: 520px) { .options--grid { grid-template-columns: 1fr 1fr; } }

/* Работы до/после */
.works { display: grid; gap: 40px 28px; grid-template-columns: 1fr; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.ba--single { grid-template-columns: 1fr; }
.ba figure { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.ba img { width: 100%; height: 100%; object-fit: cover; }
.ba figcaption { position: absolute; left: 12px; top: 12px; padding: 4px 12px; background: rgba(20, 17, 14, .75); color: #fff; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; }
.works__title { margin: 16px 0 2px; font-family: var(--font-display); font-size: 1.6rem; }
.works__text { color: var(--muted); margin: 0; }
/* Галерея из одиночных фото (без «до/после»): компактнее, по два в ряд на телефоне */
.works:has(.ba--single) { gap: 28px 12px; grid-template-columns: repeat(2, 1fr); }
.works:has(.ba--single) .works__title { font-size: 1.15rem; margin-top: 10px; }

/* Этапы: фото слева и вертикальная линия-путь с пронумерованными узлами справа */
.steps-layout { display: grid; gap: 40px; }
.steps-layout--plain { max-width: 820px; }
.steps-media { aspect-ratio: 16 / 11; overflow: hidden; }
.steps-media img { width: 100%; height: 100%; object-fit: cover; }
.steps { position: relative; display: grid; gap: 18px; counter-reset: step; }
.steps::before {
  content: ''; position: absolute; left: 28px; top: 30px; bottom: 30px; width: 1px;
  background: linear-gradient(to bottom, var(--bronze), rgba(139, 112, 80, .25));
}
.steps li { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 22px; align-items: start; }
.steps__no {
  position: relative; z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--sand); border: 1px solid var(--bronze); color: var(--bronze);
  font-family: var(--font-display); font-style: italic; font-size: 1.5rem;
  transition: background .5s var(--ease), color .5s var(--ease), transform .5s var(--ease);
}
.steps__card {
  padding: 22px 26px 24px; background: rgba(255, 255, 255, .5); border-left: 2px solid var(--bronze);
  transition: transform .5s var(--ease), background .5s var(--ease), box-shadow .5s var(--ease);
}
.steps h3 { margin: 0 0 .25em; font-size: 1.8rem; }
.steps p { color: var(--muted); margin: 0; }
.steps__cta { margin: 34px 0 0; padding-left: 80px; }
@media (hover: hover) {
  .steps li:hover .steps__no { background: var(--bronze); color: #fff; transform: scale(1.08); }
  .steps li:hover .steps__card { transform: translateX(8px); background: rgba(255, 255, 255, .8); box-shadow: 0 18px 36px -24px rgba(28, 26, 23, .5); }
}

/* Цены: тёмный блок с кнопками и перечнем того, от чего зависит стоимость */
.prices-band { background: var(--espresso); color: var(--on-dark); padding: var(--section-y) 0; }
.prices-layout { display: grid; gap: 48px; align-items: center; }
.prices-intro h2 { color: #fff; }
.prices-intro h2 em { color: var(--bronze-light); }
.prices-intro__sub { max-width: 30em; color: rgba(243, 238, 230, .8); font-size: 1.05rem; margin: 0 0 30px; }
.prices-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.prices-intro__region { margin: 26px 0 0; color: rgba(243, 238, 230, .55); font-size: .92rem; }
.factors { display: grid; gap: 14px; grid-template-columns: 1fr; }
.factors li {
  position: relative; padding: 26px 26px 28px; border: 1px solid rgba(243, 238, 230, .16); background: rgba(255, 255, 255, .03);
  transition: background .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
}
.factors__icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 50%;
  border: 1px solid rgba(210, 184, 143, .55); color: var(--bronze-light);
  transition: background .5s var(--ease), color .5s var(--ease);
}
.factors__icon .icon { width: 24px; height: 24px; }
.factors h3 { margin: 0 0 .3em; font-size: 1.55rem; color: #fff; }
.factors p { margin: 0; color: rgba(243, 238, 230, .7); font-size: .95rem; }
@media (hover: hover) {
  .factors li:hover { background: rgba(255, 255, 255, .07); border-color: rgba(210, 184, 143, .5); transform: translateY(-6px); }
  .factors li:hover .factors__icon { background: var(--bronze-light); color: var(--deep); }
}
.prices-list { margin-top: clamp(40px, 6vw, 72px); }
.prices-band .prices li { border-bottom-color: rgba(243, 238, 230, .18); }
.prices-band .prices small { color: rgba(243, 238, 230, .6); }
.prices-band .prices__dots { border-bottom-color: rgba(243, 238, 230, .3); }
.prices-band .prices__value { color: var(--bronze-light); }

/* Цены: название, точки-выноска, цена */
/* О нас */
.about { display: grid; gap: 36px; align-items: center; }
.about--text { max-width: 820px; }
.about__media { aspect-ratio: 4 / 5; overflow: hidden; }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__body h2 { margin-bottom: .5em; }
.about__body p + p { margin-top: 1em; }
.about__facts { display: grid; gap: 22px; margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.about__facts b { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 500; line-height: 1; margin-bottom: 6px; }
.about__facts span { color: var(--muted); font-size: .9rem; }
.prices { margin-bottom: 28px; }
.prices li { display: flex; align-items: baseline; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.prices__name { flex: none; max-width: 60%; font-size: 1.05rem; }
.prices small { display: block; font-size: .82rem; color: var(--muted); }
.prices__dots { flex: 1; min-width: 16px; border-bottom: 1px dotted rgba(28, 26, 23, .4); transform: translateY(-5px); }
.prices__value { flex: none; text-align: right; font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; white-space: nowrap; }
.prices__value small { display: inline; font-family: var(--font-body); font-size: .8rem; }

/* Отзывы */
.reviews { display: grid; gap: 20px; grid-template-columns: 1fr; }
.reviews li { padding: 34px; background: var(--paper); border: 1px solid var(--line); }
.reviews p { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.35; }
.stars { display: block; margin-bottom: 14px; color: var(--bronze); letter-spacing: 3px; }
.reviews__author { font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* Вопросы */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; padding: 26px 48px 26px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.2;
  transition: color .25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--bronze); }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--font-body); font-size: 1.8rem; font-weight: 300; color: var(--bronze); }
.faq details[open] summary::after { content: '–'; }
.faq p { max-width: 42em; padding-bottom: 28px; margin: 0; color: var(--muted); }
.faq details[open] p { animation: fade-down .35s ease; }

/* Тёмный блок вызова дизайнера */
.band { position: relative; overflow: hidden; padding: clamp(80px, 12vw, 160px) 0; color: var(--on-dark); background: var(--espresso); }
.band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ''; position: absolute; inset: 0; background: rgba(20, 17, 14, .5); }
.band__grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
.band h2 { color: #fff; }
.band h2 em { color: var(--bronze-light); }
.band__text p { max-width: 30em; color: rgba(255, 255, 255, .85); }
.lead-form--card { padding: clamp(26px, 4vw, 48px); background: var(--paper); color: var(--ink); }

/* Подвал */
.footer { padding: clamp(56px, 8vw, 96px) 0 112px; color: rgba(243, 238, 230, .78); background: var(--deep); }
.footer p { margin: 0 0 6px; }
.footer a { text-underline-offset: 4px; }
.footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
.footer__logo { font-family: var(--font-display); font-size: 2.4rem; color: #fff; letter-spacing: .04em; margin-bottom: 14px !important; }
.footer__logo--image { display: flex; align-items: center; gap: 14px; }
.footer__logo--image img { display: block; height: 64px; width: auto; max-width: 100%; border-radius: 4px; }
.footer__logo--image span { font-size: 2rem; }
.footer__phone { display: block; margin-bottom: 10px; font-family: var(--font-display); font-size: 2.4rem; color: #fff; text-decoration: none; }

/* Нижняя панель связи (мобильные) */
.messengers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(243, 238, 230, .14); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid rgba(243, 238, 230, .35); color: #fff; text-decoration: none; font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; transition: background .3s, color .3s; }
.chip:hover { background: #fff; color: var(--ink); }
button.chip { background: transparent; font-family: inherit; cursor: pointer; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; background: var(--ink); padding-bottom: env(safe-area-inset-bottom); }
.dock a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px; color: var(--on-dark); text-decoration: none; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.dock .icon { color: var(--bronze-light); }

/* Окно обратного звонка */
.dialog { width: min(440px, calc(100vw - 32px)); padding: 36px; border: 0; border-radius: 0; background: var(--paper); color: var(--ink); box-shadow: 0 24px 80px rgba(0, 0, 0, .4); }
.dialog::backdrop { background: rgba(20, 17, 14, .6); }
.dialog h2 { font-size: 2.2rem; margin-bottom: 6px; }
.dialog-done { display: grid; gap: 22px; }
.dialog-done .form-ok { margin: 0; font-size: 1.1rem; }
.dialog[open] { animation: pop .3s ease-out; }

/* Страница политики */
.legal { max-width: 760px; margin: 0 auto; padding: 64px var(--gutter); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .2em; }
.legal h2 { margin: 1.8em 0 .5em; font-size: clamp(1.5rem, 3vw, 1.9rem); }
.legal ul { margin: 0 0 1em; padding-left: 1.3em; list-style: disc; }
.legal li { margin: .3em 0; }
.legal a { color: var(--ink); text-underline-offset: 3px; }
.legal__back { margin: 0 0 1.5em; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.legal__back:last-child { margin: 2.5em 0 0; }

/* Страницы ошибок 404 и 500 */
.error-page { position: relative; display: grid; place-items: center; min-height: 100vh; min-height: 100svh; padding: 48px var(--gutter); overflow: hidden; color: #fff; text-align: center; background: var(--espresso); }
.error-page__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.error-page::after { content: ''; position: absolute; inset: 0; background: rgba(20, 17, 14, .55); }
.error-page__box { position: relative; z-index: 1; max-width: 560px; }
.error-page__code { margin: 0 0 8px; font-family: var(--font-display); font-size: clamp(5rem, 18vw, 9rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--bronze-light); }
.error-page h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); color: #fff; }
.error-page h1 em { color: var(--bronze-light); }
.error-page p { color: rgba(255, 255, 255, .85); }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }

/* Появление при прокрутке: только прозрачность и небольшой сдвиг */
.js [data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .9s ease, transform .9s var(--ease);
  transition-delay: calc(min(var(--i, 0), 6) * 80ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .type[data-reveal] .type__img img { transform: scale(1.12); }
.js .type.is-visible .type__img img { transform: scale(1); transition: transform 1.6s var(--ease); }
.js .type.is-visible a:hover .type__img img { transform: scale(1.05); transition-duration: 1.2s; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise-shift { from { transform: translateY(18px); } to { transform: none; } }
@keyframes hero-in { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .type[data-reveal] .type__img img { transform: none; }
}

/* Телефон: цена под названием, без точек-выносок */
@media (max-width: 639px) {
  .prices li { flex-wrap: wrap; gap: 2px 12px; }
  .prices__name { flex: 1 1 100%; max-width: none; }
  .prices__dots { display: none; }
  .prices__value { text-align: left; font-size: 1.5rem; }
}

/* Планшет ----------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .hero__facts { grid-template-columns: repeat(4, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .factors { grid-template-columns: repeat(2, 1fr); }
  .perks li { border-top: 0; border-left: 1px solid rgba(243, 238, 230, .14); }
  .perks li:nth-child(odd) { border-left: 0; }
  .perks li:nth-child(n + 3) { border-top: 1px solid rgba(243, 238, 230, .14); }
  .types, .works, .reviews { grid-template-columns: repeat(2, 1fr); }
  .works:has(.ba--single) { grid-template-columns: repeat(3, 1fr); gap: 36px 20px; }
  .fabrics { display: flex; --slant: clamp(26px, 4vw, 64px); --gap: 8px; }
  .fabrics li { flex: 1 1 0; min-width: 0; }
  .fabrics li + li { margin-left: calc(var(--gap) - var(--slant)); }
  .fabric-tile {
    aspect-ratio: auto; height: clamp(360px, 32vw, 600px);
    clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
  }
  .fabrics__name { right: var(--slant); }
}

/* Десктоп ----------------------------------------------------------------------------- */
@media (min-width: 960px) {
  :root { --header-h: 88px; }
  .logo--image img { height: 62px; }
  .nav { display: flex; }
  .header__phone { display: inline; }
  .header__call { display: none; }
  .header__contacts .btn { display: inline-flex; }
  .perks { grid-template-columns: repeat(4, 1fr); }
  .perks li, .perks li:nth-child(odd), .perks li:nth-child(n + 3) { border-top: 0; border-left: 1px solid rgba(243, 238, 230, .14); }
  .perks li:first-child { border-left: 0; }
  .about:not(.about--text) { grid-template-columns: 5fr 6fr; gap: 80px; }
  .about__facts { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .types { grid-template-columns: repeat(3, 1fr); gap: 56px 32px; }
  .type:nth-child(3n + 2) { margin-top: 64px; }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .works:has(.ba--single) { grid-template-columns: repeat(4, 1fr); }
  .prices-layout { grid-template-columns: 5fr 6fr; gap: 72px; }
  .steps-layout:not(.steps-layout--plain) { grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; }
  .steps-media { aspect-ratio: 4 / 5; position: sticky; top: calc(var(--header-h) + 24px); }
  .quiz { grid-template-columns: 1fr 1fr; min-height: 780px; }
  .quiz__media { min-height: 0; }
  .band__grid { grid-template-columns: 1.1fr 1fr; gap: 80px; }
  .footer { padding-bottom: 72px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .dock { display: none; }
}
