/* WOODOMICA — общие стили сайта */
:root {
  --cream: #f5efe6;
  --paper: #fbf8f3;
  --sand: #e6d8c3;
  --line: #dccdb7;
  --ink: #2a1a13;
  --ink-soft: #5d4a3f;
  --brown: #5a2a1e;
  --terra: #8a3f28;
  --gold: #a9794c;
  --draft: #fff1b8;
  --radius: 14px;
  --wrap: 1200px;
  --display: "Forum", "Times New Roman", serif;
  --text: "Golos Text", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: 0.01em; }
h2 { font-size: clamp(27px, 3.4vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: var(--cream); }
.eyebrow { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 720px; }
.section--dark .lead { color: #d9c9b6; }

/* Пометка «уточнить» — видна только в черновике */
.todo { background: var(--draft); border-radius: 4px; padding: 0 5px; font-size: 14px; color: #6b5200; }
.draft-bar { background: var(--draft); color: #5c4700; font-size: 14px; text-align: center; padding: 8px 16px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1 var(--text); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn--main { background: var(--brown); color: #fff; }
.btn--main:hover { background: var(--terra); }
.btn--ghost { border-color: var(--brown); color: var(--brown); background: transparent; }
.btn--ghost:hover { background: var(--brown); color: #fff; }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 50; background: rgba(245, 239, 230, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brown); }
.logo svg { width: 38px; height: 34px; }
.logo__name { font-family: var(--display); font-size: 23px; letter-spacing: 0.2em; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .nav__drop > button {
  font: 400 15px/1 var(--text); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
  padding: 10px 11px; border-radius: 8px; white-space: nowrap;
}
.nav > a:hover, .nav__drop > button:hover, .nav > a[aria-current="page"] { background: var(--sand); }
.nav__drop { position: relative; }
.nav__drop > button::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-3px) rotate(45deg); }
.nav__menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 14px 34px rgba(42, 26, 19, .12); display: none; }
.nav__drop.is-open .nav__menu, .nav__drop:focus-within .nav__menu { display: block; }
.nav__menu a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-size: 15px; }
.nav__menu a:hover { background: var(--cream); }
.header__phone { font-weight: 500; text-decoration: none; white-space: nowrap; font-size: 15px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: none; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { content: ""; display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 0 auto; position: relative; }
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }

/* Хлебные крошки */
.crumbs { font-size: 14px; color: var(--ink-soft); padding-top: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Первый экран каталога */
.hero { padding: 26px 0 44px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero__text .lead { margin-top: 18px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 26px 0 28px; padding: 0; list-style: none; }
.hero__facts li { font-size: 15px; color: var(--ink-soft); }
.hero__facts b { display: block; font: 400 26px/1.1 var(--display); color: var(--brown); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }

/* Фильтры */
.filters { display: flex; flex-wrap: wrap; gap: 18px 34px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.filters__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters__label { font-size: 14px; color: var(--ink-soft); margin-right: 4px; }
.chip { min-height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font: 400 14px/1 var(--text); color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--brown); border-color: var(--brown); color: #fff; }
.filters__count { margin-left: auto; align-self: center; font-size: 14px; color: var(--ink-soft); }

/* Карточки */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card__img { aspect-ratio: 4 / 3; background: var(--sand); position: relative; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__noimg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; font-size: 14px; color: var(--ink-soft); background: repeating-linear-gradient(135deg, #eadcc7 0 14px, #e4d4bc 14px 28px); }
.card__tag { position: absolute; left: 12px; top: 12px; background: var(--ink); color: var(--cream); font-size: 13px; padding: 5px 10px; border-radius: 999px; }
.card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font: 400 21px/1.2 var(--display); }
.card__specs { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-soft); display: grid; gap: 3px; }
.card__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card__price { font: 400 25px/1 var(--display); color: var(--brown); white-space: nowrap; }
.card__art { font-size: 13px; color: #8a7a6e; }
.empty { display: none; padding: 30px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft); }
.empty.is-on { display: block; }

/* Таблица размеров */
.table-wrap { overflow-x: auto; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.sizes { width: 100%; border-collapse: collapse; min-width: 620px; }
.sizes th, .sizes td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.sizes th { font-weight: 500; font-size: 14px; color: var(--ink-soft); background: var(--paper); }
.sizes tr:last-child td { border-bottom: 0; }
.sizes td:first-child { font: 400 20px/1 var(--display); white-space: nowrap; }
.sizes td.num { white-space: nowrap; font-weight: 500; }

/* Из чего сделан */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 18px; }
.points li { padding-left: 22px; position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.points b { display: block; font-weight: 500; }
.points span { color: var(--ink-soft); font-size: 15px; }
.section--dark .points span { color: #cdbba7; }

/* Призыв */
.cta { display: grid; grid-template-columns: 1.2fr auto; gap: 30px; align-items: center; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Условия покупки */
.terms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.terms__item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; display: grid; gap: 10px; align-content: start; }
.terms__item p { color: var(--ink-soft); font-size: 15px; }
.terms__item .todo { white-space: normal; display: inline-block; padding: 3px 6px; }

/* Вопросы */
.faq { margin-top: 26px; display: grid; gap: 10px; max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 28px 18px 0; font-weight: 500; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font: 400 24px/1 var(--display); color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 0 18px; color: var(--ink-soft); }

/* Текст о столах */
.prose { max-width: 820px; display: grid; gap: 16px; color: var(--ink-soft); }
.prose h2 { color: var(--ink); margin-bottom: 6px; }
.prose h3 { color: var(--ink); margin-top: 10px; }

/* Подвал */
.footer { background: var(--ink); color: #d9c9b6; padding: 54px 0 26px; font-size: 15px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 34px; }
.footer .logo { color: var(--cream); margin-bottom: 14px; }
.footer h4 { margin: 0 0 14px; font: 500 14px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #a9988a; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Кнопка WhatsApp на телефоне */
.float-wa { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; height: 58px; min-width: 58px; border-radius: 999px; background: #25d366; color: #fff; text-decoration: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); overflow: hidden; transition: background .2s, box-shadow .2s; }
.float-wa svg { width: 32px; height: 32px; flex: none; margin: 0 13px; }
.float-wa span { max-width: 0; white-space: nowrap; font: 500 15px/1 var(--text); transition: max-width .3s, padding .3s; }
.float-wa:hover, .float-wa:focus-visible { background: #1fb457; box-shadow: 0 10px 28px rgba(0, 0, 0, .3); }
.float-wa:hover span, .float-wa:focus-visible span { max-width: 220px; padding-right: 20px; }

@media (max-width: 1240px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 20px 18px; gap: 2px; }
  .nav.is-open { display: flex; }
  .nav__menu { position: static; display: block; border: 0; box-shadow: none; background: none; padding: 0 0 0 14px; }
  .nav__drop > button { width: 100%; text-align: left; }
  .burger { display: block; }
  .header__phone { display: none; }
}
@media (max-width: 900px) {
  .hero__grid, .split, .cta { grid-template-columns: 1fr; gap: 28px; }
  .hero__img { order: -1; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .terms { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 48px 0; }
  .filters__count { margin-left: 0; width: 100%; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .grid { grid-template-columns: 1fr; }
  .terms { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .logo__name { font-size: 19px; letter-spacing: .16em; }
  .float-wa { right: 14px; bottom: 14px; }
  .card__foot { flex-wrap: wrap; }
}

/* ---------- Остальные страницы ---------- */
.btn--line { border-color: rgba(255,255,255,.45); color: var(--cream); background: transparent; }
.btn--line:hover { background: rgba(255,255,255,.12); }
.hero--home { padding: 40px 0 56px; }
.hero--home .hero__img { aspect-ratio: 16 / 11; }
.hero--plain { padding: 26px 0 40px; }
.hero--plain h1 { max-width: 900px; }
.note { margin-top: 26px; font-size: 15px; color: var(--ink-soft); }
.section--dark .note { color: #cdbba7; }

.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 28px; }
.tile { grid-column: span 2; position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; text-decoration: none; color: #fff; background: var(--ink); }
.tile--big { grid-column: span 3; aspect-ratio: 16 / 10; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile:hover img { transform: scale(1.04); }
.tile__body { position: absolute; inset: auto 0 0 0; padding: 60px 20px 18px; background: linear-gradient(to top, rgba(26, 14, 9, .88), rgba(26, 14, 9, 0)); }
.tile__body h3 { font-size: 26px; }
.tile__body p { font-size: 15px; color: #eadfce; margin-top: 4px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 30px; }
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stats b { display: block; font: 400 clamp(26px, 3vw, 38px)/1.1 var(--display); color: #e7c9a0; }
.stats span { font-size: 15px; color: #cdbba7; }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.feature { display: grid; gap: 10px; align-content: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; text-decoration: none; color: inherit; }
a.feature:hover { border-color: var(--gold); }
.feature p { color: var(--ink-soft); font-size: 15px; }
.feature__more { color: var(--terra); font-size: 15px; font-weight: 500; }

.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.swatches figure, .gallery figure { margin: 0; }
.swatches img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.swatches figcaption { margin-top: 10px; font: 400 22px/1 var(--display); }

.badge-fire { margin-top: 28px; border: 1px solid var(--gold); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 6px; background: var(--paper); }
.badge-fire b { font: 400 22px/1.1 var(--display); color: var(--brown); }
.badge-fire span { font-size: 15px; color: var(--ink-soft); }

.split__img--tall { aspect-ratio: 3 / 4; max-height: 640px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.gallery--tall img { aspect-ratio: 9 / 16; }
.points--wide { grid-template-columns: repeat(3, 1fr); gap: 26px; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: s; border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 6px; }
.steps li::before { content: counter(s); font: 400 34px/1 var(--display); color: var(--gold); }
.steps b { font-weight: 500; }
.steps span { color: var(--ink-soft); font-size: 15px; }

.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
.contact__info { display: grid; gap: 10px; align-content: start; }
.contact__info h3 { margin-top: 12px; }
.contact__phone { display: block; font: 400 26px/1.3 var(--display); text-decoration: none; color: var(--brown); }
.contact__map { border-radius: var(--radius); overflow: hidden; min-height: 420px; border: 1px solid var(--line); }
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.points a { color: inherit; }

@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile--big { grid-column: span 1; aspect-ratio: 4 / 3; }
  .stats, .stats--3 { grid-template-columns: repeat(2, 1fr); }
  .cards3, .steps, .points--wide, .contact { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .split__img--tall { max-height: 520px; }
}
@media (max-width: 600px) {
  .tiles { grid-template-columns: 1fr; }
  .swatches { gap: 10px; }
  .swatches figcaption { font-size: 18px; }
}

/* ---------- Этно-стиль ---------- */
.nav > a.nav__accent { color: var(--terra); font-weight: 500; border: 1px solid var(--gold); }
.nav > a.nav__accent:hover, .nav > a.nav__accent[aria-current="page"] { background: var(--brown); border-color: var(--brown); color: #fff; }
.etno-band { background: #1d120d; color: var(--cream); padding: 72px 0; position: relative; }
.etno-band::before, .etno-band::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: repeating-linear-gradient(90deg, #a9794c 0 10px, transparent 10px 20px); opacity: .55; }
.etno-band::before { top: 0; }
.etno-band::after { bottom: 0; }
.etno-band .eyebrow { color: #d9a86c; }
.etno-band .lead { color: #d9c9b6; }
.etno-band__head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.etno-band__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.etno-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.etno-strip a { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 5; }
.etno-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.etno-strip a:hover img { transform: scale(1.05); }
.etno-hero { background: #1d120d; color: var(--cream); padding: 30px 0 64px; }
.etno-hero .crumbs { color: #b9a694; padding-left: 0; padding-right: 0; }
.etno-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 22px; }
.etno-hero .eyebrow { color: #d9a86c; }
.etno-hero .lead { color: #d9c9b6; margin-top: 18px; }
.etno-hero__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-height: 640px; }
.etno-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.etno-gallery { columns: 3; column-gap: 18px; margin-top: 30px; }
.etno-gallery figure { margin: 0 0 18px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.etno-gallery img { width: 100%; height: auto; }
.etno-gallery figcaption { padding: 12px 14px; font-size: 15px; color: var(--ink-soft); background: var(--paper); }
.callout { border: 1px solid var(--gold); border-radius: var(--radius); padding: 28px 26px; background: var(--paper); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.callout h2 { font-size: clamp(24px, 2.6vw, 32px); }
.callout p { color: var(--ink-soft); margin-top: 8px; }
@media (max-width: 900px) {
  .etno-band__head, .etno-hero__grid, .callout { grid-template-columns: 1fr; gap: 24px; }
  .etno-band__cta { justify-content: flex-start; }
  .etno-strip { grid-template-columns: repeat(2, 1fr); }
  .etno-gallery { columns: 2; }
}
@media (max-width: 600px) {
  .etno-gallery { columns: 1; }
  .etno-band { padding: 54px 0; }
}

/* Шапка с девятью пунктами меню: плотнее */
.header__row { gap: 14px; }
.nav { gap: 2px; }
.nav > a, .nav__drop > button { padding: 9px 8px; font-size: 14.5px; }
.logo__name { font-size: 21px; letter-spacing: .16em; }
@media (max-width: 1480px) { .header__phone { display: none; } }

/* Два номера на странице контактов */
.phones2 { display: flex; flex-wrap: wrap; gap: 18px 56px; }
.phones2 span { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 2px; }
.footer li a b { font-weight: 500; }

/* Этно-блок на главной: компактный, одно фото */
.etno-band { padding: 56px 0; }
.etno-band__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.etno-band__grid .etno-band__cta { justify-content: flex-start; margin-top: 26px; }
.etno-band__img { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; max-height: 360px; justify-self: end; width: 100%; max-width: 480px; }
.etno-band__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.etno-band__img:hover img { transform: scale(1.04); }
@media (max-width: 900px) {
  .etno-band__grid { grid-template-columns: 1fr; gap: 26px; }
  .etno-band__img { justify-self: start; max-width: 100%; }
}
