:root {
  --bg: #f3ebe3;
  --surface: #fbf7f2;
  --card: #ece1d6;
  --ink: #2b2622;
  --muted: #7a6e66;
  --line: #ddd0c3;
  --accent: #e2b13c;
  --accent-hover: #d6a42e;
  --accent-text: #94700f;
  --accent-ink: #2b2622;
  --wood: #c9874f;
  --dark: #2e3a3b;
  --radius: 22px;
  --sec: clamp(72px, 8vw, 130px);
  --block: clamp(48px, 5.6vw, 72px);
  --wrap: 1240px;
  --font-head: "Orelega One", Georgia, serif;
  --font-num: "Unbounded", "Arial Black", sans-serif;
  --font-brand: "Noto Serif Display", Georgia, serif;
  --font-brand-text: "Noto Serif", Georgia, serif;
  --glass: linear-gradient(90deg, #ffa8f2, #c9b6ff 40%, #8fe6ee 70%, #3dffd0);
  --glass-deep: linear-gradient(90deg, #a92e86, #4e55c2 50%, #077f68);
  --copper: linear-gradient(180deg, #fff0dc 0%, #f2b38c 18%, #b5603f 40%, #c97a55 52%, #a9583a 64%, #7a3424 86%, #c9805a 100%);
  --font-body: "Rubik", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 700 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: 0; }
/* полированная медь: градиент на каждую строку, светлая фаска, тёмный объём и тень */
h1, h2, .room h3, .step h3 {
  background: var(--copper) 0 0 / 100% 1.12em repeat-y; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 240, 225, .85)) drop-shadow(0 2px 0 #5a2418) drop-shadow(0 8px 14px rgba(40, 15, 10, .3));
}
/* мелкие заголовки: простая медь без объёма, чтобы читались */
.room h3, .step h3 { background-image: linear-gradient(180deg, #e9a47c, #a3502f 60%, #7a3424); filter: drop-shadow(0 1px 0 rgba(60, 22, 14, .35)); }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding-block: var(--sec); }
/* сжатые промежутки между блоками главной: комнаты → «Делаем мебель» → шаги → форма */
/* после hero все блоки разделены одним и тем же расстоянием --block (по половине сверху и снизу у каждого) */
.flow > .section { padding-block: calc(var(--block) / 2); }
#rooms { padding-top: var(--block); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 16px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(30px, 4vw, 54px); max-width: 16ch; }
.sec-head p { max-width: 520px; margin: 0; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; }
/* абзацы выровнены по ширине: правый край строк ровный; переносы по слогам, чтобы не было больших пробелов */
.sec-head p, .about__text, .cf-lead, .page-top p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(214, 164, 46, .8); }
.btn:focus-visible, .chip:focus-visible, .icon-btn:focus-visible { outline: 3px solid var(--wood); outline-offset: 3px; }
.btn--light { background: var(--surface); color: var(--ink); }
.btn--light:hover { background: #fff; box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .5); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { background: var(--surface); box-shadow: none; }
.btn--block { width: 100%; }
/* «Каталог» и «Контакты» в шапке: та же надпись, что у логотипа */
.head-link { white-space: nowrap; }
/* «Каталог» и «Контакты» вместе справа, логотип слева */
.head-link--cat { margin-left: auto; }
.head-link:hover .logo__text { filter: brightness(1.25) saturate(1.2); }
.head-link .logo__text { font-size: 23px; }

/* ---------- header ---------- */
.header { position: absolute; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.header__in { display: flex; align-items: center; gap: 40px; height: 76px; }
.header.is-solid, .header--solid { background: rgba(243, 235, 227, .92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.header--solid { box-shadow: none; } /* каталог: без линии под шапкой */
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-num); font-weight: 600; font-size: 19px; }
.logo__mark { flex: none; width: 42px; height: 42px; display: grid; place-items: center; }
.logo__mark img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.nav { display: flex; gap: 28px; margin-left: auto; }
/* шапка и подвал: жирная антиква с переливом */
.logo__text, .nav a, .footer__in > span, .footer a {
  font-family: var(--font-brand); font-weight: 900;
  background: var(--glass-deep); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: filter .2s; text-rendering: geometricPrecision;
}
.logo__text { font-family: var(--font-brand-text); font-weight: 800; font-size: 29px; line-height: 1; }
.nav a, .footer__in > span, .footer a { font-family: var(--font-brand-text); font-weight: 800; }
.nav a { font-size: 19px; }
.nav a:hover, .footer a:hover { filter: brightness(1.25) saturate(1.2); }
.header--over:not(.is-solid) .logo__text, .header--over:not(.is-solid) .nav a { background-image: var(--glass); filter: drop-shadow(0 1px 1px rgba(15, 8, 25, .9)) drop-shadow(0 0 2px rgba(15, 8, 25, .6)); }
.icon-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.icon-btn:hover { background: #fff; }
.icon-btn svg { width: 20px; height: 20px; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.cart-count:empty, .cart-count[data-n="0"] { display: none; }

/* header over hero photo */
.header--over:not(.is-solid) { color: #fff; }
.header--over:not(.is-solid) .icon-btn { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% 40%; } /* пара на фото чуть правее центра кадра — сдвигаем, чтобы люди были посередине экрана */
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 22, 18, .62) 0%, rgba(30, 22, 18, .3) 42%, transparent 70%), linear-gradient(0deg, rgba(30, 22, 18, .5), transparent 45%); }
.hero__in { position: relative; z-index: 1; padding-block: 140px clamp(56px, 9vh, 110px); }
/* заголовок страницы не показываем, но оставляем для поисковиков и экранных дикторов */
.hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- collections ---------- */
/* один фон на все блоки подряд: пятна цвета мягко перетекают, на стыках секций линий нет */
.flow { background:
  radial-gradient(ellipse 620px 520px at 12% 5%, rgba(250, 226, 222, .9), transparent),
  radial-gradient(ellipse 640px 520px at 92% 24%, rgba(246, 218, 204, .9), transparent),
  radial-gradient(ellipse 620px 520px at 6% 50%, rgba(255, 232, 196, .75), transparent),
  radial-gradient(ellipse 640px 520px at 94% 74%, rgba(250, 220, 190, .7), transparent),
  radial-gradient(ellipse 600px 460px at 20% 84%, rgba(250, 226, 222, .7), transparent); }
.rooms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
/* стеклянная карточка: полупрозрачная заливка, светлая кромка, мягкая тень */
.room { position: relative; padding: 8px; border-radius: 30px; background: linear-gradient(150deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .3)); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 22px 44px -26px rgba(40, 36, 32, .35), inset 0 1px 0 #fff; backdrop-filter: blur(14px); display: flex; flex-direction: column; transition: transform .35s, box-shadow .35s; }
.room:hover { transform: translateY(-6px); box-shadow: 0 32px 54px -28px rgba(40, 36, 32, .45), inset 0 1px 0 #fff; }
.room__img { aspect-ratio: 4 / 3.4; overflow: hidden; border-radius: 24px; box-shadow: 0 10px 22px -12px rgba(40, 36, 32, .45); }
.room__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.room:hover .room__img img { transform: scale(1.05); }
.room__body { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 16px 24px 18px; flex: 1; }
.room h3 { font-size: 26px; margin-bottom: 6px; }
.room small { font-family: var(--font-brand-text); font-weight: 400; color: #4a4541; font-size: 15px; line-height: 1.5; }
/* заголовки карточек: плоский цвет от кирпичного к сливовому, антиква */
.room h3 { background: none; filter: none; color: var(--ink); -webkit-background-clip: border-box; background-clip: border-box; font-family: var(--font-brand-text); font-weight: 700; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.about__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { font-size: clamp(30px, 4vw, 54px); margin-bottom: 24px; }
.about__text { color: var(--muted); font-size: 17px; margin: 0; max-width: 560px; }

/* ---------- steps ---------- */

.steps-sec .eyebrow { color: var(--accent-text); }
.steps-sec .step h3 { background: none; filter: none; color: #a8433a; -webkit-background-clip: border-box; background-clip: border-box; font-family: var(--font-brand-text); font-weight: 700; font-size: 21px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
/* бронзовая карточка: тёплый коричневый градиент, светлая фаска, мягкая тень */
.step { position: relative; overflow: hidden; padding: 24px 22px 28px; border-radius: 30px; background: linear-gradient(150deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .3)); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 22px 44px -26px rgba(120, 66, 56, .4), inset 0 1px 0 #fff; backdrop-filter: blur(14px); }
.step__ico { display: block; width: 108px; height: 108px; object-fit: contain; margin: -8px auto 8px; filter: drop-shadow(0 6px 8px rgba(120, 66, 56, .3)); }
.step h3 { margin-bottom: 8px; }
/* названия шагов по центру; «Доставка и сборка» (последний) остаётся слева */
.step:not(:last-child) h3 { text-align: center; }
.step p { margin: 0; font-family: var(--font-brand-text); font-size: 15px; font-weight: 400; line-height: 1.5; color: #3b2d2b; }

/* ---------- contacts ---------- */
.contact { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 20px; }
/* форма заявки: стеклянная карточка со скруглением, иконки у полей, жёлтая кнопка */
.contact__form { width: min(760px, 100%); padding: clamp(20px, 3vw, 34px); border-radius: 36px; background: linear-gradient(150deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .4)); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 26px 50px -28px rgba(40, 36, 32, .4), inset 0 1px 0 #fff; backdrop-filter: blur(14px); }
.cf-head { display: flex; align-items: center; gap: 20px; }
.cf-ico { flex: none; width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; color: #8a5a12; }
.cf-ico img { width: 72px; height: 72px; object-fit: contain; }
/* заголовок формы — медный, тем же шрифтом, что заголовки других блоков (стиль h2 общий) */
.contact__form h2 { font-size: clamp(20px, 2.4vw, 31px); white-space: nowrap; }
/* кегль меньше, чем у заголовков блоков, — тонкая тень и тёмная медь, как у заголовков на телефоне, иначе буквы мылятся */
.contact__form h2 { background-image: linear-gradient(180deg, #d9875c 0%, #a3502f 50%, #7a3424 100%); filter: drop-shadow(0 1px 0 rgba(255, 240, 225, .9)) drop-shadow(0 1px 1px rgba(70, 25, 15, .45)); }
.cf-lead { margin: 14px 0 18px; font-size: 16px; font-weight: 500; color: #4a4541; }
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; font-size: 16px; font-weight: 600; color: var(--ink); }
.field__lbl { display: flex; align-items: center; gap: 10px; }
.field__ico { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.field__ico img { width: 32px; height: 32px; object-fit: contain; }
.field input, .field textarea, .field select { width: 100%; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .88); color: var(--ink); font-size: 16px; font-weight: 500; box-shadow: 0 8px 18px -12px rgba(40, 36, 32, .35), inset 0 1px 0 #fff; transition: box-shadow .2s; }
.field textarea { min-height: 76px; padding: 16px 24px; border-radius: 28px; resize: none; }
.field input::placeholder, .field textarea::placeholder { color: #9a928b; font-weight: 400; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; box-shadow: 0 0 0 2px #ffd31a, 0 8px 18px -12px rgba(40, 36, 32, .35); }
.btn--send { position: relative; min-height: 62px; padding: 0 28px; font-size: 20px; font-weight: 700; background: linear-gradient(180deg, #ffe27a 0%, #ffd31a 45%, #f0b800 100%); box-shadow: 0 16px 28px -14px rgba(200, 140, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .8); }
.btn--send:hover { background: linear-gradient(180deg, #ffdb57 0%, #f5c800 50%, #e6ad00 100%); box-shadow: 0 18px 30px -14px rgba(200, 140, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .8); }
.form__note { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 2px 0 0; font-size: 14px; font-weight: 500; color: #4a4541; }
.form__ok { display: none; padding: 18px 20px; border-radius: 20px; background: #e3efe0; color: #2f5a2c; font-weight: 600; }
.form__err { margin: 0; padding: 12px 16px; border-radius: 14px; background: #fbe4e0; color: #8a2a1c; font-size: 14px; font-weight: 600; }
.form__err[hidden] { display: none; }
/* поле-ловушка для ботов: людям не видно */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form.is-sent > :not(.form__ok) { display: none; }
.form.is-sent .form__ok { display: block; }

/* ---------- footer ---------- */
.footer { padding: calc(var(--block) / 2) 0 44px; font-size: 17px; }
.footer__contacts dl { margin: 0 0 28px; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 18px 32px; }
/* иконка слева, справа подпись и значение */
.footer__contacts dl > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.footer__contacts img { grid-row: 1 / 3; width: 48px; height: 48px; object-fit: contain; }
.footer__contacts dt { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; align-self: end; }
.footer__contacts dd { margin: 2px 0 0; font-size: 17px; font-weight: 500; align-self: start; }
/* контакты: жирный геометрический гротеск (Rubik Black) */
.footer__contacts dt, .footer__contacts dd { font-family: var(--font-body); font-weight: 900; }
.footer__contacts a { background: none; color: var(--ink); font: inherit; }
/* контакты в подвале одним цветом; копирайт — перелив как у логотипа */
.footer { color: var(--ink); }
.footer__in { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }

/* ---------- catalog page ---------- */
.page-top { padding: 140px 0 40px; }
.page-top h1 { font-size: clamp(38px, 6vw, 84px); }
.page-top p { color: var(--muted); max-width: 520px; margin: 16px 0 0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.chips { display: flex; gap: 12px; flex-wrap: wrap; padding-bottom: 8px; }
/* кремовые кнопки-«таблетки» с объёмным ободком; выбранная — золотая */
.chip { min-height: 46px; padding: 0 24px; border-radius: 999px; cursor: pointer; font-family: "Roboto Condensed", "Arial Narrow", sans-serif; font-size: 19px; font-weight: 700; letter-spacing: .01em; color: #5a4636;
  border: 0;
  background: linear-gradient(180deg, #fffdf8 0%, #f6eee3 55%, #eadfd0 100%);
  box-shadow: inset 0 2px 1px #fff, inset 0 -3px 4px rgba(150, 120, 90, .2), 0 3px 0 #c4b19c, 0 8px 12px -6px rgba(70, 50, 30, .4);
  transition: transform .15s, box-shadow .15s, background .15s; }
.chip:hover { background: linear-gradient(180deg, #fff 0%, #faf4eb 55%, #efe5d7 100%); }
.chip.is-active { transform: translateY(2px); color: #fff; text-shadow: 0 1px 2px rgba(120, 70, 0, .45); 
  background: linear-gradient(180deg, #ffe08a 0%, #f5b93a 50%, #e39a18 100%);
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .7), inset 0 -3px 5px rgba(150, 80, 0, .3), 0 1px 0 #c4861a, 0 6px 10px -6px rgba(120, 70, 0, .5); }
.sort { display: flex; align-items: center; gap: 12px; font-family: "Roboto Condensed", "Arial Narrow", sans-serif; font-size: 19px; font-weight: 700; color: #5a4636; }
.sort select { min-height: 46px; padding: 0 16px; border-radius: 14px; border: 0; font: inherit; font-size: 16px; color: #5a4636; cursor: pointer;
  background-color: #fbf6ef; background-image: linear-gradient(180deg, #fffdf8, #f2e9dc);
  box-shadow: inset 0 2px 1px #fff, 0 3px 0 #c4b19c, 0 8px 12px -6px rgba(70, 50, 30, .35); }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; padding-bottom: var(--sec); }
/* стеклянная карточка товара — как карточки комнат на главной */
.product { display: flex; flex-direction: column; padding: 8px; border-radius: 30px; background: linear-gradient(150deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .3)); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 22px 44px -26px rgba(40, 36, 32, .35), inset 0 1px 0 #fff; backdrop-filter: blur(14px); transition: transform .35s, box-shadow .35s; }
.product:hover { transform: translateY(-6px); box-shadow: 0 32px 54px -28px rgba(40, 36, 32, .45), inset 0 1px 0 #fff; }
.product__img { aspect-ratio: 4 / 3.4; background: var(--card); overflow: hidden; border-radius: 24px; box-shadow: 0 10px 22px -12px rgba(40, 36, 32, .45); }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.product:hover .product__img img { transform: scale(1.05); }
.product__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 16px 16px 18px; flex: 1; }
.product__cat { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.product h3 { font-family: var(--font-brand-text); font-weight: 700; font-size: 21px; line-height: 1.25; color: var(--ink); }
.product__meta { font-family: var(--font-brand-text); font-weight: 400; font-size: 15px; line-height: 1.5; color: #4a4541; }
.product__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; }
.price { font-family: var(--font-num); font-size: 20px; font-weight: 600; white-space: nowrap; }
.add-btn { min-height: 44px; padding: 0 18px; font-size: 14px; }
.add-btn { background: #ffd31a; }
.add-btn:hover { background: #f2c300; box-shadow: 0 12px 28px -12px rgba(242, 195, 0, .8); }
.add-btn.is-added { background: var(--dark); color: var(--bg); }

/* ---------- cart drawer ---------- */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(30, 22, 18, .45); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.overlay.is-open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(440px, 100%); background: var(--bg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.drawer.is-open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 22px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--muted); }
.drawer__total b { font-family: var(--font-num); font-size: 24px; font-weight: 600; color: var(--ink); }
.drawer__empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.drawer__empty p { margin: 0 0 20px; }
.drawer__back { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font-size: 14px; justify-self: start; }
.drawer__back:hover { color: var(--accent-text); }

.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; }
.line h4 { margin: 0 0 4px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.line__price { font-size: 14px; color: var(--muted); }
.line__side { display: grid; justify-items: end; gap: 8px; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 18px; line-height: 1; }
.qty span { min-width: 22px; text-align: center; font-size: 14px; font-weight: 600; }
.line__del { border: 0; background: none; padding: 0; font-size: 13px; color: var(--muted); cursor: pointer; }
.line__del:hover { color: var(--accent-text); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .rooms { grid-template-columns: repeat(2, 1fr); }
  .room__img { aspect-ratio: 4 / 3.2; }
  .about, .contact { grid-template-columns: 1fr; }
  .footer__contacts dl { grid-template-columns: repeat(2, auto); justify-content: start; gap: 18px 48px; }
  .about__img { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .header__in { display: flex; gap: 12px; }
  .head-link--cat { margin-left: auto; }
  .logo__text { font-size: 24px; }
  .head-link .logo__text { font-size: 19px; }
  .steps { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .btn--send { padding: 0 20px; font-size: 17px; gap: 8px; white-space: nowrap; }
  .contact__form { padding: 18px; }
  .cf-head { gap: 12px; }
  .cf-ico { width: 48px; height: 48px; border-radius: 16px; }
  .cf-ico img { width: 46px; height: 46px; }
  /* на телефоне длинный заголовок не влезает в строку читаемым кеглем — переносим на две */
  .contact__form h2 { font-size: 22px; white-space: normal; }
  .footer__contacts dl { grid-template-columns: 1fr; }
  .rooms { grid-template-columns: 1fr; }
  /* на телефоне фото целиком: блок по пропорциям картинки, вместо обрезки на весь экран */
  .hero { min-height: 0; aspect-ratio: 1927 / 816; }
  .hero__in { padding-block: 0; }
  .hero::after { background: linear-gradient(180deg, rgba(30, 22, 18, .45) 0%, transparent 45%); }
  .toolbar { align-items: stretch; flex-direction: column; flex-wrap: nowrap; }
  /* все категории видны сразу: переносим на несколько строк вместо горизонтальной прокрутки */
  .chips { gap: 8px; padding-bottom: 6px; }
  .chip { min-height: 38px; padding: 0 14px; font-size: 15px; }
}
/* телефон: компактные блоки, чтобы до подвала листать меньше */
@media (max-width: 640px) {
  /* медные заголовки: на мелком кегле тень и светлый верх градиента «мылят» буквы — тень тоньше, медь темнее */
  h1, h2 { background-image: linear-gradient(180deg, #d9875c 0%, #a3502f 50%, #7a3424 100%); filter: drop-shadow(0 1px 0 rgba(255, 240, 225, .9)) drop-shadow(0 1px 1px rgba(70, 25, 15, .45)); }
  :root { --block: 32px; }
  .sec-head { margin-bottom: 18px; gap: 10px; }
  .sec-head h2, .about h2 { font-size: 26px; }
  .sec-head p, .about__text { font-size: 15px; }
  /* комнаты — две колонки маленьких карточек */
  .rooms { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .room { padding: 5px; border-radius: 20px; }
  .room__img { aspect-ratio: 1 / 1; border-radius: 16px; }
  .room__body { padding: 10px 6px 10px 8px; }
  .room h3 { font-size: 17px; margin-bottom: 2px; }
  .room small { font-size: 12px; line-height: 1.35; }
  /* «Делаем мебель сами»: фото ниже */
  .about { gap: 16px; }
  .about__img { aspect-ratio: 16 / 9; }
  .about h2 { margin-bottom: 10px; }
  /* шаги: иконка слева, текст справа */
  .steps { gap: 10px; }
  .step { display: grid; grid-template-columns: 60px 1fr; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 20px; }
  .step__ico { grid-row: 1 / 3; width: 60px; height: 60px; margin: 0; }
  .steps-sec .step h3 { font-size: 17px; margin: 0 0 2px; text-align: left; align-self: end; }
  .step p { font-size: 13px; line-height: 1.4; align-self: start; }
  /* контакты в подвале — две колонки */
  .footer__contacts dl { grid-template-columns: 1fr 1fr; gap: 14px 10px; margin-bottom: 18px; }
  .footer__contacts dl > div { column-gap: 8px; }
  .footer__contacts img { width: 32px; height: 32px; }
  .footer__contacts dt { font-size: 11px; }
  .footer__contacts dd { font-size: 12px; overflow-wrap: break-word; }
  .footer { padding-bottom: 24px; }
}
/* каталог на телефоне: две колонки компактных карточек */
@media (max-width: 640px) {
  .page-top { padding: 96px 0 18px; }
  .page-top h1 { font-size: 34px; }
  .page-top p { font-size: 14px; margin-top: 8px; }
  .toolbar { gap: 10px; margin-bottom: 16px; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 10px; padding-bottom: 32px; }
  .product { padding: 5px; border-radius: 20px; }
  .product__img { aspect-ratio: 1 / 1; border-radius: 16px; }
  .product__body { gap: 3px; padding: 10px 6px 6px 8px; }
  .product__cat { font-size: 10px; letter-spacing: .06em; }
  .product h3 { font-size: 15px; }
  .product__meta { font-size: 12px; line-height: 1.35; }
  .product__foot { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 8px; }
  .price { font-size: 16px; }
  .add-btn { min-height: 38px; padding: 0 8px; font-size: 13px; }
}
/* три надписи в шапке на узком экране */
@media (max-width: 480px) {
  .header__in { gap: 12px; }
  .logo { gap: 8px; }
  .logo__text { font-size: 17px; }
  .head-link .logo__text { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 360px) {
  .cf-ico { display: none; }
  .header__in { gap: 8px; }
  .logo { gap: 6px; }
  .logo__text { font-size: 14px; }
  .head-link .logo__text { font-size: 12px; }
}
