/* ===== Палитра и базовые настройки ===== */
:root {
  --bg: #F4EDE3;          /* кремовый фон */
  --paper: #FBF7F1;       /* светлые карточки */
  --sand: #E8DCCB;        /* песочные блоки */
  --latte: #D8C3A5;
  --caramel: #C49A6C;
  --line: #DCCAB2;        /* линии */
  --border: #CDB59A;      /* обводки */
  --dark: #2E211A;        /* шоколад */
  --dark-2: #45332A;
  --text: #231A14;
  --muted: #6B5A4C;
  --accent: #7A4A2B;      /* коньячный акцент */
  --green: #55613A;       /* «в наличии» */
  --radius-lg: 32px;
  --radius-md: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Onest, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 600; }
h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -0.03em; }
h3 { font-size: 19px; letter-spacing: -0.01em; }
p { margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button, input, textarea { font-family: inherit; }

.container { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 112px; }
.section--last { padding-bottom: 112px; }
.muted { font-size: 14px; color: var(--muted); }
.lead { font-size: 17px; line-height: 1.6; color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.eyebrow--light { color: var(--latte); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; flex: none; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  font-size: 16px; font-weight: 600; border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { stroke-width: 1.8; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--dark { background: var(--dark); color: var(--bg); }
.btn--dark:hover { color: var(--bg); background: var(--dark-2); }
.btn--outline { border: 1.5px solid var(--dark); }
.btn--light { background: var(--sand); color: var(--text); }
.btn--line { border: 1.5px solid var(--border); }
.btn--line:hover { border-color: var(--dark); color: var(--text); }
.btn--block { width: 100%; min-height: 56px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.round-arrow { width: 44px; height: 44px; border-radius: 50%; background: var(--dark); color: var(--bg); display: flex; align-items: center; justify-content: center; flex: none; transition: transform .15s ease; }
.round-arrow:hover { color: var(--bg); transform: translateX(3px); }
.round-arrow svg { stroke-width: 1.8; }

/* ===== Верхняя полоса и шапка ===== */
.topbar { background: var(--dark); color: var(--sand); font-size: 13px; }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; padding-top: 10px; padding-bottom: 10px; }
.topbar a { color: var(--sand); font-weight: 600; }
.topbar__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--caramel); }

.header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 20px; padding-bottom: 20px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark { width: 40px; height: 40px; border-radius: 12px 12px 12px 4px; background: var(--dark); color: var(--sand); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; }
.logo__text { font-size: 18px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.header__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.header__phone { font-size: 15px; font-weight: 600; }

/* ===== Первый экран ===== */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: stretch; padding-top: 16px; }
.hero__text { display: flex; flex-direction: column; justify-content: center; gap: 26px; padding: 24px 0; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--accent); }
.hero h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.0; letter-spacing: -0.045em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 18px; max-width: 520px; }
.hero__facts { list-style: none; margin: 8px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hero__facts li { display: flex; flex-direction: column; gap: 4px; }
.hero__facts strong { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.hero__facts span { font-size: 13px; color: var(--muted); line-height: 1.4; }

.hero__visual { position: relative; min-height: 640px; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand) center / cover no-repeat; }
.shape { position: absolute; display: block; }
.arch { border-radius: 999px 999px 0 0; }
.arch--wide { left: 12%; right: 12%; top: 9%; bottom: 0; background: var(--latte); }
.arch--inner { left: 26%; right: 26%; top: 24%; bottom: 0; background: #CBB291; }
.sun { width: 26%; aspect-ratio: 1; top: 30%; right: 31%; border-radius: 50%; background: #EADFCF; }
.floor { left: 0; right: 0; bottom: 0; height: 17%; background: #C9AE8C; }
.plinth { left: 30%; right: 30%; bottom: 17%; height: 9%; border-radius: 18px 18px 0 0; background: #B9997A; }

.float { position: absolute; display: flex; align-items: center; gap: 14px; background: var(--paper); border-radius: 20px; padding: 14px 18px; }
.float strong { display: block; font-size: 15px; font-weight: 600; }
.float--top { top: 24px; left: 24px; }
.float__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--sand); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.float--bottom { left: 24px; right: 24px; bottom: 24px; padding: 12px 12px 12px 12px; }
.float__thumb { width: 72px; height: 72px; border-radius: 14px; background: var(--latte); position: relative; overflow: hidden; flex: none; }
.mini-arch { position: absolute; left: 18%; right: 18%; top: 20%; bottom: 0; border-radius: 999px 999px 0 0; background: #B9997A; }
.float__body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.float__price { font-size: 18px; font-weight: 700; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--green); }

/* ===== Лента категорий ===== */
.ticker { margin-top: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker__track { display: flex; align-items: center; gap: 36px; width: max-content; padding: 22px 0; animation: ticker 40s linear infinite; }
.ticker__track span { font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.ticker__track i { width: 12px; height: 12px; border-radius: 999px 999px 0 0; background: var(--caramel); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ===== Преимущества ===== */
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding-top: 56px; }
.perk { padding: 28px; border-radius: var(--radius-md); background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.perk__icon { width: 52px; height: 52px; border-radius: 16px; background: var(--sand); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.perk strong { font-size: 18px; font-weight: 600; }
.perk > span:last-child { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ===== Заголовки секций ===== */
.section__head { margin-bottom: 40px; }
.section__head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section__title { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }

/* ===== Каталог ===== */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--border); background: transparent; color: var(--text);
}
.chip:hover { border-color: var(--dark); }
.chip.is-active { background: var(--dark); border-color: var(--dark); color: var(--bg); }

.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; }
.product { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 10px; transition: transform .2s ease, border-color .2s ease; }
.product:hover { transform: translateY(-3px); border-color: var(--border); }
.product[hidden] { display: none; }
.product__media { position: relative; aspect-ratio: 5 / 4; border-radius: 20px; overflow: hidden; }
.product__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t1 { background: #E3D2BA; --arch: #D2BB9B; --sun: #EFE5D6; }
.t2 { background: #DCC6A7; --arch: #C8AD89; --sun: #EADFCF; }
.t3 { background: #E8DCCB; --arch: #D8C3A5; --sun: #F3ECE1; }
.media-art { position: absolute; inset: 0; }
.m-arch { position: absolute; left: 22%; right: 22%; top: 18%; bottom: 0; border-radius: 999px 999px 0 0; background: var(--arch); }
.m-sun { position: absolute; width: 22%; aspect-ratio: 1; top: 30%; left: 50%; transform: translateX(-50%); border-radius: 50%; background: var(--sun); }
.m-label { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(251, 247, 241, 0.85); font-size: 12px; font-weight: 500; color: #4F3B2D; white-space: nowrap; }
.badge { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 7px 14px; border-radius: 999px; background: var(--paper); font-size: 12px; font-weight: 600; color: var(--text); }
.product__body { display: flex; flex-direction: column; gap: 14px; padding: 18px 14px 12px; }
.product__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.price { font-size: 20px; font-weight: 700; white-space: nowrap; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; }
.specs span { padding: 5px 10px; border-radius: 8px; background: var(--bg); font-size: 13px; color: var(--muted); }
.product__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }

/* ===== Материалы ===== */
.materials { background: var(--sand); }
.materials__inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.materials__intro { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.swatch { background: var(--paper); border-radius: 22px; padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.swatch__chip { display: block; aspect-ratio: 4 / 3; border-radius: 14px; margin-bottom: 8px; position: relative; overflow: hidden; }
.swatch__chip::after { content: ""; position: absolute; left: 22%; right: 22%; top: 28%; bottom: 0; border-radius: 999px 999px 0 0; background: rgba(255, 255, 255, 0.14); }
.swatch strong { font-size: 16px; font-weight: 600; }
.swatch .muted { font-size: 13px; }

/* ===== Шаги ===== */
.steps { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--dark); color: var(--bg); padding: clamp(32px, 5vw, 72px); }
.steps__arch { position: absolute; width: 420px; height: 520px; right: -120px; top: -180px; border-radius: 999px 999px 0 0; background: #3A2B22; transform: rotate(180deg); }
.steps .section__head, .steps__list { position: relative; }
.steps .section__head { margin-bottom: 56px; }
.steps__list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.steps__list li { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 24px; background: #382A21; }
.step__icon { width: 48px; height: 48px; border-radius: 14px; background: #4A382C; color: var(--latte); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.steps__list h3 { font-size: 21px; }
.steps__list p { font-size: 15px; line-height: 1.6; color: #CBB9A6; }
.step__num { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--latte); }

/* ===== Призыв ===== */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--latte); padding: clamp(32px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta__text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.cta__text .lead { color: #4F3B2D; }
.cta .btn-row { position: relative; z-index: 1; }
.cta .btn--outline { background: transparent; }
.cta__sun { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: #CDB592; left: 46%; top: -200px; }

/* ===== Вопросы ===== */
.faq { display: flex; flex-wrap: wrap; gap: 48px; }
.faq__intro { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.faq__phone { margin-top: 8px; font-size: 22px; font-weight: 600; }
.faq__list { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.faq__item { border-radius: 20px; background: var(--paper); border: 1px solid var(--line); padding: 0 24px; }
.faq__item.is-open { border-color: var(--border); }
.faq__q {
  width: 100%; min-height: 72px; padding: 18px 0; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left; font-size: 18px; font-weight: 600; color: var(--text);
}
.faq__icon { width: 38px; height: 38px; border-radius: 50%; background: var(--sand); display: flex; align-items: center; justify-content: center; flex: none; transition: transform .2s ease, background .2s ease, color .2s ease; }
.faq__icon svg { stroke-width: 1.8; }
.faq__item.is-open .faq__icon { transform: rotate(45deg); background: var(--dark); color: var(--bg); }
.faq__a p { padding: 0 48px 22px 0; font-size: 16px; line-height: 1.65; color: var(--muted); }

/* ===== Заявка ===== */
.contact { border-radius: var(--radius-lg); background: var(--sand); padding: clamp(28px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 48px; }
.contact__info { flex: 1 1 360px; display: flex; flex-direction: column; gap: 20px; }
.contact__list { display: flex; flex-direction: column; gap: 14px; padding-top: 12px; }
.contact__phone { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; }
.contact__row { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--muted); }
.form { flex: 1 1 420px; min-width: 0; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-md); background: var(--paper); }
.form__fields { display: flex; flex-direction: column; gap: 16px; }
.form__title { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }
.form input[type="text"], .form input[type="tel"], .form textarea {
  border-radius: 14px; border: 1px solid #D8C3A5; background: #FFFFFF; color: var(--text); font-size: 16px;
}
.form input[type="text"], .form input[type="tel"] { min-height: 54px; padding: 0 18px; }
.form textarea { padding: 14px 18px; resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form input::placeholder, .form textarea::placeholder { color: #8C7A6B; }
.form input.is-invalid { border-color: #A3392B; }
.form__error { font-size: 13px; font-weight: 500; color: #A3392B; }
.form__rooms { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__rooms legend { font-size: 14px; font-weight: 500; margin-bottom: 8px; padding: 0; }
.tag { position: relative; }
.tag input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tag span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--border); font-size: 15px; font-weight: 600; cursor: pointer; }
.tag input:checked + span { background: var(--dark); border-color: var(--dark); color: var(--bg); }
.tag input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form__note { font-size: 13px; line-height: 1.5; color: var(--muted); }
.form__done { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px 0; }
.form__done-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--dark); color: var(--bg); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.form__done-icon svg { stroke-width: 2; }
.form__done strong { font-size: 24px; font-weight: 600; }
.form__done[hidden], .form__fields[hidden], .form__error[hidden] { display: none; }

/* ===== Подвал ===== */
.footer { background: var(--dark); color: #CBB9A6; }
.footer a { color: var(--sand); }
.footer a:hover { color: #FFFFFF; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 72px; padding-bottom: 48px; }
.footer__brand { display: flex; flex-direction: column; gap: 18px; max-width: 340px; }
.footer__brand p { font-size: 15px; line-height: 1.6; }
.logo--light .logo__mark { background: var(--sand); color: var(--dark); }
.logo--light .logo__text { color: var(--bg); }
.footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer__col strong { color: var(--bg); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid #45352B; font-size: 14px; }

/* ===== Планшеты ===== */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero__visual { min-height: 520px; }
  .materials__inner { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== Телефоны ===== */
@media (max-width: 640px) {
  .section { padding-top: 80px; }
  .section--last { padding-bottom: 80px; }
  .topbar__inner { font-size: 12px; }
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .hero__facts li:last-child { grid-column: span 2; }
  .hero__visual { min-height: 460px; }
  .float--top { left: 16px; right: 16px; top: 16px; }
  .float--bottom { left: 16px; right: 16px; bottom: 16px; }
  .float__thumb { width: 56px; height: 56px; }
  .grid-products { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta .btn { width: 100%; }
  .faq__item { padding: 0 18px; }
  .faq__a p { padding-right: 0; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ===== Кнопка «Кабинет продавца» ===== */
.seller-link { gap: 8px; }
.seller-link svg { stroke-width: 1.7; }
.product__media img { position: absolute; inset: 0; }

/* ===== Кликабельные карточки каталога ===== */
a.product__media { display: block; color: inherit; }
.product__link { color: inherit; }
.product__link:hover { color: var(--accent); }
.photo-count { position: absolute; right: 14px; bottom: 14px; z-index: 1; padding: 5px 10px; border-radius: 999px; background: rgba(35, 26, 20, 0.72); color: #fff; font-size: 12px; font-weight: 600; }

/* ===== Страница объявления ===== */
.item-page { padding-top: 8px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin: 8px 0 20px; }
.crumbs a { color: var(--muted); }
.crumbs span:last-child { color: var(--text); }
.item-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }

.gallery__main { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand); outline: none; }
.gallery__main:focus-visible { box-shadow: 0 0 0 3px var(--accent); }
.gallery__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s ease; }
.gallery__img.is-active { opacity: 1; }
.gallery__empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(251, 247, 241, 0.92); color: var(--text); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.gallery__nav:hover { background: #fff; }
.gallery__nav svg { stroke-width: 2; }
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
.gallery__count { position: absolute; right: 14px; bottom: 14px; z-index: 2; padding: 5px 12px; border-radius: 999px; background: rgba(35, 26, 20, 0.72); color: #fff; font-size: 13px; font-weight: 600; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery__thumb { flex: none; width: 96px; height: 72px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--sand); cursor: pointer; opacity: .7; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__thumb.is-active { border-color: var(--dark); opacity: 1; }

.item-info { display: flex; flex-direction: column; gap: 18px; }
.item-info h1 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
.item-price { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.item-perks { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; color: var(--muted); }
.item-perks li { display: flex; align-items: center; gap: 12px; }
.item-perks svg { color: var(--accent); }
.item-desc { padding-top: 18px; border-top: 1px solid var(--line); }
.item-desc h2 { font-size: 20px; margin-bottom: 10px; }
.item-desc p { white-space: pre-line; line-height: 1.65; color: var(--text); }
.item-ask { margin-top: 64px; }

@media (max-width: 900px) {
  .item-grid { grid-template-columns: 1fr; gap: 24px; }
  .gallery__main { border-radius: 22px; }
  .gallery__nav { width: 40px; height: 40px; }
}
.gallery, .item-info { min-width: 0; }   /* не даём ленте миниатюр растягивать колонку */

/* ===== Мобильная шапка: бургер-меню ===== */
.burger { display: none; width: 44px; height: 44px; flex: none; padding: 0; border: 1.5px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; place-content: center; gap: 4px; }
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s ease, opacity .2s ease; }
.header.is-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header.is-open .burger span:nth-child(2) { opacity: 0; }
.header.is-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav__phone, .sl-short { display: none; }

@media (max-width: 900px) {
  .header { position: relative; flex-wrap: nowrap; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
  .header .logo { margin-right: auto; min-width: 0; }
  .header__phone { display: none; }
  .burger { display: grid; }
  .header .nav { display: none; position: absolute; z-index: 30; top: calc(100% - 4px); left: 16px; right: 16px; flex-direction: column; gap: 0; padding: 6px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 40px rgba(46, 33, 26, .14); font-size: 17px; }
  .header.is-open .nav { display: flex; }
  .header .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .header .nav a:last-child { border-bottom: 0; }
  .nav__phone { display: block; font-weight: 700; }
}

@media (max-width: 640px) {
  .topbar__dot, .topbar__inner > span:nth-of-type(3), .topbar__ph { display: none; }
  .logo__text { font-size: 15px; letter-spacing: .08em; }
  .sl-full { display: none; }
  .sl-short { display: inline; }
  .seller-link { min-height: 44px; padding: 0 16px; }
  /* фильтр каталога — одна строка с прокруткой */
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -24px; padding: 0 24px 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .section { padding-top: 64px; }
  .section--last { padding-bottom: 64px; }
  .hero__visual { min-height: 400px; }
  .item-ask { margin-top: 40px; }
  .item-price { font-size: 30px; }
  .gallery__thumb { width: 80px; height: 60px; }
}

.gallery__ai { position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 5px 12px; border-radius: 999px; background: rgba(251, 247, 241, .92); color: var(--text); font-size: 12px; font-weight: 600; }
.gallery__ai[hidden] { display: none; }

.item-desc p { white-space: pre-line; }
.item-sid { margin-top: 14px; font-size: 14px; color: var(--muted, #6B5A4C); }

/* характеристики на странице объявления */
.item-chars { display: grid; gap: 0; margin: 16px 0 0; padding: 0; font-size: 15px; }
.item-chars div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed rgba(46, 33, 26, .15); }
.item-chars dt { color: #7a6656; }
.item-chars dd { margin: 0; font-weight: 500; text-align: right; }


/* ===== Первый экран: гостиная-иллюстрация во всю ширину ===== */
.hero2 { position: relative; isolation: isolate; min-height: clamp(560px, 78vh, 720px); margin-top: 16px; border-radius: var(--radius-lg); overflow: hidden; background: #EFE6DA; display: flex; align-items: center; }
.hero2__scene, .hero2__photo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; object-fit: cover; object-position: right bottom; stroke: none; }
.hero2__veil { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(243, 236, 226, .97) 0%, rgba(243, 236, 226, .9) 34%, rgba(243, 236, 226, .35) 52%, rgba(243, 236, 226, 0) 64%); }
.hero2__text { display: flex; flex-direction: column; gap: 24px; width: min(560px, 52%); padding: 56px 0 56px 56px; }
.hero2 h1 { font-size: clamp(44px, 5.4vw, 78px); line-height: .98; letter-spacing: -0.045em; }
.hero2 h1 em { font-style: normal; color: var(--accent); }
.hero2 .lead { font-size: 18px; max-width: 470px; }
.hero2__facts { list-style: none; margin: 6px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(122, 74, 43, .18); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hero2__facts li { display: flex; flex-direction: column; gap: 4px; }
.hero2__facts strong { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.hero2__facts span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.btn--glass { background: rgba(251, 247, 241, .7); border: 1.5px solid var(--dark); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--glass:hover { background: var(--paper); }

.hero2__chip, .hero2__card { position: absolute; display: flex; align-items: center; gap: 14px; border-radius: 20px;
  background: rgba(251, 247, 241, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -18px rgba(70, 45, 28, .35); }
.hero2__chip { top: 28px; right: 28px; padding: 12px 18px 12px 12px; animation: hero-float 7s ease-in-out infinite; }
.hero2__chip strong { display: block; font-size: 15px; font-weight: 600; }
.hero2__card { right: 28px; bottom: 28px; width: 300px; padding: 14px 14px 14px 20px; color: var(--text); animation: hero-float 7s ease-in-out -3.5s infinite; }
.hero2__card:hover { color: var(--text); background: var(--paper); }
.hero2__card-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.hero2__card strong { font-size: 16px; font-weight: 600; }
.hero2__price { font-size: 18px; font-weight: 700; }
.hs-glow { animation: hero-glow 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hs-plant { animation: hero-sway 9s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes hero-glow { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
@keyframes hero-sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(1.4deg); } }
@media (prefers-reduced-motion: reduce) { .hero2__chip, .hero2__card, .hs-glow, .hs-plant { animation: none; } }

@media (max-width: 1100px) {
  .hero2__text { width: min(520px, 58%); padding-left: 40px; }
  .hero2__veil { background: linear-gradient(90deg, rgba(243, 236, 226, .97) 0%, rgba(243, 236, 226, .9) 42%, rgba(243, 236, 226, .3) 62%, rgba(243, 236, 226, 0) 74%); }
}
/* телефоны и планшеты: комната во всю ширину сверху, растворяется в фон, текст начинается на переходе */
@media (max-width: 860px) {
  /* --vis — высота видимой комнаты. Кадр: по вертикали от лампы до ковра (y 140…780 из 800),
     по горизонтали диван (x ≈ 985 из 1440) по центру экрана */
  .hero2 { --vis: 440px; display: block; min-height: 0; background: var(--bg); border-radius: 28px; }
  .hero2__scene { inset: auto; top: calc(var(--vis) * -0.21875); left: max(calc(50% - var(--vis) * 1.539), calc(100% - var(--vis) * 2.25));   /* не оставлять пустоту справа */
    height: calc(var(--vis) * 1.25); width: calc(var(--vis) * 2.25); }
  .hero2__photo { inset: 0 0 auto 0; width: 100%; height: var(--vis); }
  .hero2__veil { display: block; inset: calc(var(--vis) - 64px) 0 0 0;
    background: linear-gradient(180deg, rgba(244, 237, 227, 0) 0, var(--bg) 64px, var(--bg) 100%); }
  .hero2__text { position: relative; width: auto; padding: calc(var(--vis) + 14px) 28px 30px; gap: 18px; }
  .hero2 h1 { text-wrap: balance; }
  .hero2__chip, .hero2__card { display: none; }
  .hero2 .pill { background: rgba(251, 247, 241, .85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .hero2 h1 { font-size: clamp(38px, 9.4vw, 56px); line-height: 1.02; letter-spacing: -0.04em; }
  .hero2 .lead { font-size: 16px; line-height: 1.55; }
  .hero2__facts { margin-top: 2px; padding-top: 18px; gap: 10px; }
  .hero2__facts strong { font-size: 17px; }
  .hero2__facts span { font-size: 12px; }
}
@media (max-width: 640px) {
  .hero2 { --vis: 300px; margin-top: 4px; border-radius: 24px; }
  .hero2__text { padding: calc(var(--vis) + 10px) 20px 26px; }
  .hero2 .btn-row { flex-direction: column; align-items: stretch; gap: 4px; }
  .hero2 .btn-row .btn--dark { min-height: 54px; }
  /* вторая кнопка — спокойная ссылка под главной */
  .hero2 .btn--glass { min-height: 44px; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
    color: var(--accent); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
  .hero2__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero2__facts li:last-child { grid-column: auto; }
  .hero2__facts strong { white-space: normal; }
}
