/* ============================================================
   Woven Hut — стилі
   Кольори та шрифти — у змінних на початку файлу.
   ============================================================ */

:root {
  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-sans: "Onest", "Helvetica Neue", Arial, sans-serif;
  --font-logo: "Poppins", "Helvetica Neue", Arial, sans-serif;

  /* світла тема */
  --bg: #f8f5ee;
  --surface: #ffffff;
  --ink: #2b241c;
  --muted: #6e6457;
  --line: #ddd4c5;
  --announce-bg: #46513a;
  --announce-ink: #f4efe4;
  --strip-bg: #e6dbc4;
  --band-bg: #7b6d5a;
  --band-ink: #fbf7ef;
  --honey: #dcbd86;
  --honey-ink: #2b241c;
  --badge-bg: #e6dbc4;
  --ph-bg: #d9c7a4;
  --ph-ink: #4d3f2b;
  --error: #a1341f;
  --info-bg: #efe5cf;
  --logo: #46513a;
  --tile-bg: #ece2cc;
  --pick-bg: #f6eedf;
  --fab-bg: #46513a;
  --fab-ink: #f4efe4;
  --shadow: 0 1px 0 rgba(43, 36, 28, .08);

  --gutter: clamp(16px, 2.6vw, 36px);
  --header-h: 60px;

  /* плетіння для плейсхолдерів (поки немає фото) */
  --weave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg fill='none' stroke='%23000' stroke-opacity='.17' stroke-width='1.4'%3E%3Cpath d='M0 6h24M0 12h24M0 18h24M24 30h24M24 36h24M24 42h24M30 0v24M36 0v24M42 0v24M6 24v24M12 24v24M18 24v24'/%3E%3C/g%3E%3C/svg%3E");
}

:root[data-theme="dark"] {
  --bg: #1b1713;
  --surface: #241f19;
  --ink: #efe7d9;
  --muted: #a99d8b;
  --line: #3b3229;
  --announce-bg: #2c3425;
  --announce-ink: #e9e2d2;
  --strip-bg: #30281e;
  --band-bg: #3a3128;
  --band-ink: #efe7d9;
  --honey: #d6b47a;
  --honey-ink: #1b1713;
  --badge-bg: #3b3229;
  --ph-bg: #4a3d2b;
  --ph-ink: #e4d6b9;
  --error: #f0907a;
  --info-bg: #2f281f;
  --logo: #e9dfc8;
  --tile-bg: #29231c;
  --pick-bg: #2b241c;
  --fab-bg: #d6b47a;
  --fab-ink: #1b1713;
  --shadow: 0 1px 0 rgba(0, 0, 0, .4);
}

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

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.12; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.4vw, 44px); }

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

.container { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow { font-family: var(--font-serif); font-style: italic; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.2; }

.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 22px;
  border: 1px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink);
  font-size: 12px; font-weight: 600; line-height: 1.3;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--honey { background: var(--honey); border-color: var(--honey); color: var(--honey-ink); }
.btn--honey:hover { background: #fff; border-color: #fff; color: #2b241c; }

.link-caps {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.link-caps:hover { text-decoration-thickness: 2px; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 40px; height: 40px; padding: 0; border: 0; background: none; color: var(--ink);
}

/* ---------- смуга-анонс і хедер ---------- */

.announce {
  background: var(--announce-bg); color: var(--announce-ink);
  padding: 9px var(--gutter); text-align: center; font-size: 13px; line-height: 1.4;
}

.header { position: sticky; top: 0; z-index: 30; background: var(--surface); box-shadow: var(--shadow); }
.header__inner {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  min-height: var(--header-h); padding-inline: var(--gutter);
}

.wordmark {
  font-family: var(--font-logo); font-weight: 500; font-size: 21px; line-height: 1;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
}

/* лого: символ хатини (прозора маска, колір — з теми) + назва */
.wordmark { display: inline-flex; align-items: center; gap: .5em; }
.logo-mark {
  flex: none; width: 1.42em; height: 1.3em; background-color: var(--logo);
  -webkit-mask: url("../images/logo-mark.png") center / contain no-repeat;
          mask: url("../images/logo-mark.png") center / contain no-repeat;
}
.footer .wordmark .logo-mark { width: 1.6em; height: 1.47em; }

.nav { display: flex; gap: clamp(16px, 2.4vw, 34px); margin-right: auto; }
.nav a { font-family: var(--font-serif); font-size: 19px; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: currentColor; }

.tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.lang { display: flex; align-items: center; margin-right: 6px; }
.lang__btn {
  min-width: 34px; height: 40px; padding: 0 4px; border: 0; background: none;
  font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--muted);
}
.lang__btn[aria-pressed="true"] { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 6px; }
.lang__sep { width: 1px; height: 14px; background: var(--line); }

:root[data-theme="dark"] .icon--moon, :root:not([data-theme="dark"]) .icon--sun { display: none; }

.count {
  position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--ink); color: var(--bg);
  font-size: 10.5px; font-weight: 600; line-height: 17px; text-align: center;
}

.icon-btn--menu { display: none; }

/* телефон у хедері (на телефоні він у меню) */
.hdr-phone { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.hdr-phone svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.hdr-phone:hover span { text-decoration: underline; text-underline-offset: 4px; }
.nav__contacts { display: none; }

@media (max-width: 980px) {
  .icon-btn--menu { display: inline-grid; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    display: none; flex-direction: column; gap: 0;
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 6px var(--gutter) 14px;
  }
  .nav.is-open { display: flex; }
  .hdr-phone { display: none; }
  .nav__contacts { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; }
  .nav .nav__contacts .cbtn { padding: 8px 14px 8px 10px; border: 1px solid var(--line); font-family: var(--font-sans); font-size: 14px; }
  .nav a { font-size: 22px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .wordmark { font-size: 18px; }
  .header__inner { gap: 8px; }
}

@media (max-width: 440px) {
  .header .wordmark { font-size: 16px; letter-spacing: .06em; }
  .header .icon-btn { width: 36px; }
  .lang { margin-right: 2px; }
  .lang__btn { min-width: 30px; }
}

@media (max-width: 350px) {
  .header .wordmark { font-size: 14px; }
  .header .icon-btn { width: 32px; }
}

/* ---------- hero ---------- */
/* Фото — та сама картинка, що на обкладинці Facebook: вивіска вгорі, тож текст стоїть унизу */

.hero {
  position: relative; display: grid; place-items: end center;
  min-height: clamp(520px, 86vh, 820px); padding: 72px var(--gutter) 40px;
  color: #fff; text-align: center; overflow: hidden; isolation: isolate;
  background-color: #2b241c;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(28, 20, 12, .05) 0%, rgba(28, 20, 12, .1) 38%, rgba(28, 20, 12, .62) 66%, rgba(28, 20, 12, .86) 100%);
}
.hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero__content { position: relative; z-index: 1; max-width: 1100px; }
.hero__snow { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .eyebrow { max-width: 22em; margin-inline: auto; font-size: clamp(26px, 3vw, 44px); line-height: 1.15; text-shadow: 0 2px 16px rgba(0, 0, 0, .45); }
.hero__title {
  margin-top: 10px; font-size: clamp(40px, 6.4vw, 92px); font-weight: 500; line-height: 1;
  letter-spacing: .01em; text-transform: uppercase; text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.hero__sub { max-width: 34em; margin: 18px auto 0; font-size: clamp(15px, 1.25vw, 18px); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; }
.hero__note { margin-top: 22px; font-size: 13px; line-height: 1.4; opacity: .85; }

/* телефон: фото цілком (щоб вивіску було видно), текст — під ним */
@media (max-width: 720px) {
  .hero { display: block; min-height: 0; padding: 0; }
  .hero::after { display: none; }
  .hero__img { position: static; display: block; height: auto; aspect-ratio: 2021 / 778; }
  .hero__content { padding: 26px var(--gutter) 30px; }
  .hero__title { font-size: clamp(34px, 10vw, 46px); }
  .hero__sub { font-size: 15px; }
}

/* ---------- смуга під hero та смуга-розділювач ---------- */

.strip, .band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 30px; padding: 20px var(--gutter); text-align: center;
}
.strip { background: var(--strip-bg); }
.strip__title { font-family: var(--font-serif); font-size: clamp(23px, 2.2vw, 30px); line-height: 1.15; }
.strip__text { font-size: 15px; }
.strip__rule, .band__rule { width: 1px; height: 42px; background: currentColor; opacity: .45; }

.band { background: var(--band-bg); color: var(--band-ink); }
.band__eyebrow { font-family: var(--font-serif); font-style: italic; font-size: clamp(21px, 2vw, 26px); line-height: 1.15; }
.band__title { font-family: var(--font-serif); font-size: clamp(23px, 2.2vw, 30px); line-height: 1.15; }

@media (max-width: 720px) {
  .strip__rule, .band__rule { display: none; }
  .strip, .band { flex-direction: column; gap: 8px; padding-block: 24px; }
}

/* ---------- секції ---------- */

.section { padding-block: clamp(52px, 7vw, 96px); }

.section-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-bottom: 26px; }
.section-head__rule { width: 1px; height: 26px; background: var(--line); }
.section-head p { color: var(--muted); font-size: 15.5px; max-width: 46em; }

@media (max-width: 720px) { .section-head__rule { display: none; } }

/* ---------- усі категорії ---------- */

.cats { padding-bottom: 0; }
.cats__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .cats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cat {
  display: flex; flex-direction: column; align-items: center; padding: 14px 14px 18px;
  border-radius: 14px; background: var(--tile-bg); text-align: center; text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cat:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(43, 36, 28, .12); }
.cat__media { display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; background: var(--ph-bg); }
.cat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat:hover .cat__media img { transform: scale(1.05); }
.cat__name { margin-top: 14px; font-family: var(--font-serif); font-size: 22px; font-weight: 500; line-height: 1.15; }
.cat__note { margin-top: 4px; font-size: 13px; color: var(--muted); }

@media (max-width: 900px) { .cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* чотири категорії — один ряд (на вужчих екранах 2 × 2) */
@media (min-width: 901px) {
  .cats__grid:has(> :nth-child(4)):not(:has(> :nth-child(5))) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* три категорії й менше — один ряд на всю ширину, фото нижчі */
.cats__grid:not(:has(> :nth-child(4))) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cats__grid:not(:has(> :nth-child(4))) .cat__media { aspect-ratio: 4 / 3; }
@media (max-width: 520px) {
  .cats__grid:not(:has(> :nth-child(4))) { grid-template-columns: minmax(0, 1fr); }
  .cats__grid:not(:has(> :nth-child(4))) .cat__media { aspect-ratio: 16 / 9; }
}
@media (max-width: 520px) {
  .cats__grid { gap: 8px; }
  .cat { padding: 8px 8px 12px; border-radius: 12px; }
  .cat__name { margin-top: 10px; font-size: 19px; }
  .cat__note { font-size: 12px; }
}

/* ---------- фільтри й сортування ---------- */

.catalog-bar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.catalog-bar .filters { margin-bottom: 0; }
.catalog-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }

.search { position: relative; flex: 1 1 260px; max-width: 440px; }
.search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; pointer-events: none; }
.search input, .price input {
  width: 100%; min-height: 40px; padding: 7px 12px 7px 38px; border: 1px solid var(--line); border-radius: 0;
  background: var(--surface); color: var(--ink); font-size: 14.5px; -webkit-appearance: none; appearance: none;
}
.search input:hover, .price input:hover { border-color: var(--muted); }
.search input:focus, .price input:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.search input::placeholder, .price input::placeholder { color: var(--muted); opacity: .85; }

.price { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.price input { width: 92px; padding-left: 12px; -moz-appearance: textfield; }
.price input::-webkit-outer-spin-button, .price input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.sort { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.sort select {
  min-height: 40px; padding: 6px 34px 6px 12px; border: 1px solid var(--line); border-radius: 0;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23887c6c' stroke-width='1.6'/%3E%3C/svg%3E") right 12px center no-repeat;
  color: var(--ink); font: inherit; font-size: 13.5px; appearance: none; -webkit-appearance: none; cursor: pointer;
}
.sort select:hover { border-color: var(--ink); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip {
  min-height: 36px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 0;
  background: transparent; font-size: 13.5px; color: var(--ink);
  transition: background-color .2s, color .2s, border-color .2s;
}
a.chip { display: inline-flex; align-items: center; text-decoration: none; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--band-bg); border-color: var(--band-bg); color: var(--band-ink); }

.catalog-status { margin: -12px 0 20px; font-size: 14px; color: var(--muted); }
.catalog-status__reset { margin-left: 12px; padding: 0; border: 0; background: none; color: var(--ink); text-decoration: underline; }
.catalog-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 30px 0 50px; color: var(--muted); }

@media (max-width: 720px) {
  .catalog-tools { gap: 10px 12px; }
  .search { flex-basis: 100%; max-width: none; }
  .price input { width: 80px; }
  .sort { margin-left: 0; }
  .sort > span { display: none; }
}

/* ---------- каталог ---------- */

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 12px; }
@media (max-width: 1180px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px)  { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px)  { .grid { grid-template-columns: minmax(0, 1fr); } }

.card { display: flex; flex-direction: column; }
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ph-bg); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.03); }

.badges { position: absolute; top: 0; left: 50%; z-index: 2; display: flex; gap: 3px; transform: translateX(-50%); }
.badge {
  padding: 5px 14px; background: var(--badge-bg); color: var(--ink);
  font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}

.badge--new { background: var(--honey); color: var(--honey-ink); }

.card__body { display: flex; flex-direction: column; flex: 1; padding-top: 16px; }
.card__code { margin-bottom: 4px; font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card__name { font-size: 23px; }
.card__media { display: block; }
.card__name a { text-decoration: none; }
.card__name a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.card__size { margin-top: 6px; font-size: 13.5px; letter-spacing: .02em; color: var(--muted); }
.card__desc { margin-top: 8px; font-size: 15px; color: var(--muted); }
.card__price { margin-top: auto; padding-top: 12px; font-family: var(--font-serif); font-size: 24px; font-weight: 500; line-height: 1.2; }
.card__action { margin-top: 14px; }
.card__action .btn { width: 100%; }

.in-order { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; }
.in-order__link { border: 0; background: none; padding: 0; text-decoration: underline; }

/* плейсхолдер, поки немає фото */
.ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 20px; text-align: center; color: var(--ph-ink);
  background-color: var(--ph-bg); background-image: var(--weave);
}
.ph__name { font-family: var(--font-serif); font-style: italic; font-size: 22px; line-height: 1.2; }
.ph__file { font-size: 11.5px; letter-spacing: .04em; opacity: .8; word-break: break-all; }
/* підпис видно лише тоді, коли файлу фото справді немає */
.ph span { visibility: hidden; }
.is-missing > .ph span { visibility: visible; }
.ph--large { background-size: 72px 72px; }
.ph--large .ph__name { font-size: 28px; }

/* степер кількості */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--ink); }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 19px; line-height: 1; }
.qty button:hover { background: var(--ink); color: var(--bg); }
.qty output { min-width: 34px; text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; }
.qty--sm button { width: 36px; height: 36px; font-size: 17px; }

/* ---------- кнопки зв'язку: телефон, Viber, WhatsApp ---------- */

.contacts { display: flex; flex-wrap: wrap; gap: 8px; }
.cbtn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px 8px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: border-color .2s;
}
.cbtn:hover { border-color: var(--ink); }
.cbtn svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.cbtn--viber svg { stroke: #7360f2; }
.cbtn--wa svg { stroke: #1fae57; }
.contacts--sm .cbtn { min-height: 36px; padding: 6px 12px 6px 10px; font-size: 13px; }
.contacts--sm .cbtn svg { width: 16px; height: 16px; }

.how-contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.how-contacts p { color: var(--muted); }
.drawer__contacts { grid-column: 1 / -1; display: grid; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }
.contacts-lead { margin-top: 6px; }
.pd__contact { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; }
.pd__contact p { margin-bottom: 10px; font-size: 14.5px; font-weight: 600; }
.footer li a[data-contact] { display: inline-flex; align-items: center; gap: 8px; }
.footer li a[data-contact] svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

/* ---------- хлібні крихти ---------- */

.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- сторінка товару (product.html) ---------- */

.ppage { padding: 26px 0 80px; }
.ppage .crumbs { margin-bottom: 26px; }

.pd { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }

.pd__gallery { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; position: sticky; top: calc(var(--header-h) + 16px); }
.pd__gallery--single { grid-template-columns: minmax(0, 1fr); }
.pd__thumbs { display: flex; flex-direction: column; gap: 10px; }
.pd__thumb { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--ph-bg); aspect-ratio: 1 / 1; opacity: .7; transition: opacity .2s, border-color .2s; }
.pd__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd__thumb:hover { opacity: 1; }
.pd__thumb[aria-current="true"] { opacity: 1; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.pd__main { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 20px; background: var(--ph-bg); }
.pd__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .16s ease; }
.pd__main img.is-fading { opacity: 0; }
.pd__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
  width: 42px; height: 42px; padding: 0 0 3px; border: 0; border-radius: 50%;
  background: rgba(20, 16, 12, .78); color: #fff; font-size: 26px; line-height: 1;
}
.pd__arrow--prev { left: 14px; }
.pd__arrow--next { right: 14px; }
.pd__counter { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: rgba(20, 16, 12, .7); color: #fff; font-size: 12px; }

/* «печатка» майстерні на фото */
.pd__sticker { position: absolute; top: 16px; right: 16px; width: clamp(96px, 22%, 128px); height: auto; }
.pd__sticker-bg { fill: var(--honey); }
.pd__sticker-ring { transform-origin: 50px 50px; animation: pd-spin 28s linear infinite; }
.pd__sticker text { font-family: var(--font-sans); font-size: 8.4px; font-weight: 600; letter-spacing: .5px; fill: #2b241c; }
.pd__sticker-dot { fill: none; stroke: #2b241c; stroke-width: 2; }
.pd__sticker-check { fill: none; stroke: #2b241c; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pd-spin { to { transform: rotate(360deg); } }

.pd__info { padding-top: 6px; }
.pd__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pd__badge--new { background: var(--honey) !important; color: var(--honey-ink); }
.pd__code { margin-top: 4px; font-size: 14px; color: var(--muted); }
.pd__code strong { color: var(--ink); font-weight: 600; letter-spacing: .04em; }

/* колір подушки: прев'ю тканини (фото, перефарбоване в обраний колір) і кружечки */
.cushion { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 22px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.cushion__preview { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--c); transition: background-color .3s; }
.cushion__preview img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(4.2) contrast(1.1); mix-blend-mode: multiply; transition: opacity .3s; }
.cushion__preview.is-none img { opacity: .25; }
.cushion__label { font-size: 14px; color: var(--muted); }
.cushion__label strong { color: var(--ink); font-weight: 600; }
.cushion__note { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.swatch {
  position: relative; width: 32px; height: 32px; padding: 0; border: 2px solid var(--surface); border-radius: 50%;
  background: var(--c); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .15s, transform .15s;
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--ink); }
.swatch--none { background: var(--surface); }
.swatch--none::after { content: ""; position: absolute; left: 50%; top: 3px; bottom: 3px; width: 2px; background: var(--muted); transform: translateX(-50%) rotate(45deg); }
@media (max-width: 400px) { .cushion { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px; } }

.line__cushion { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.line__cushion select { min-height: 30px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
.pd__badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--badge-bg); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.pd__info h1 { font-size: clamp(34px, 3.6vw, 50px); }
.pd__size { margin-top: 8px; color: var(--muted); }
.pd__buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin: 26px 0 22px; }
.pd__price strong { display: block; font-family: var(--font-serif); font-size: 40px; font-weight: 500; line-height: 1.05; }
.pd__price span { font-size: 12.5px; color: var(--muted); }
.pd__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pd__add { min-width: 230px; min-height: 52px; border-radius: 10px; }
.pd__qty { border-radius: 10px; overflow: hidden; }

.pd__perks { display: grid; gap: 10px; }
.pd__perk {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px;
  background: var(--info-bg); text-decoration: none; transition: filter .2s;
}
.pd__perk:hover { filter: brightness(.97); }
.pd__perk svg { flex: none; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pd__perk > span:not(.pd__perk-arrow) { display: flex; flex: 1; flex-direction: column; }
.pd__perk strong { font-size: 14.5px; font-weight: 600; }
.pd__perk span span { font-size: 13px; color: var(--muted); }
.pd__perk-arrow { font-size: 22px; line-height: 1; color: var(--muted); }

.pd__details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); margin-top: clamp(48px, 7vw, 96px); padding-top: 36px; border-top: 1px solid var(--line); }
.pd__details h2 { margin-bottom: 18px; font-size: clamp(28px, 2.6vw, 36px); }
.pd__about p { max-width: 36em; color: var(--muted); }
.pd__about p + p { margin-top: 12px; }
.pd__about .pd__note { font-size: 13.5px; font-style: italic; }

.specs { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.specs th, .specs td { padding: 13px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs th { width: 50%; padding-right: 20px; font-weight: 400; color: var(--muted); }
.specs .specs__group th { padding-top: 26px; color: var(--ink); font-weight: 600; font-size: 15.5px; }
.specs tbody:first-child .specs__group th { padding-top: 4px; }

.pd__similar { margin-top: clamp(48px, 7vw, 96px); }
.pd__similar h2 { margin-bottom: 22px; }
.pd__missing { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 60px 0; }

@media (max-width: 900px) {
  .pd, .pd__details { grid-template-columns: minmax(0, 1fr); }
  .pd__gallery { position: static; grid-template-columns: minmax(0, 1fr); }
  .pd__thumbs { order: 2; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .pd__thumbs::-webkit-scrollbar { display: none; }
  .pd__thumb { flex: none; width: 70px; }
  .pd__main { border-radius: 16px; }
  .pd__add { min-width: 0; flex: 1; }
  .pd__actions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .pd__sticker-ring { animation: none; } }

/* ---------- про нас ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); }
.split__media { position: relative; min-height: 460px; overflow: hidden; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__text {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 7vw, 110px) clamp(20px, 7vw, 120px);
}
.split__text h2 { margin: 12px 0 24px; }
.split__text > p:not(.eyebrow) { max-width: 34em; color: var(--muted); }
.split__text > p + p:not(.eyebrow) { margin-top: 14px; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.facts dt { font-family: var(--font-serif); font-size: 21px; line-height: 1.2; }
.facts dd { margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__media { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- як замовити ---------- */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.steps li { padding-top: 16px; border-top: 1px solid var(--ink); }
.steps__n { display: block; font-family: var(--font-serif); font-style: italic; font-size: 46px; line-height: 1; color: var(--muted); }
.steps h3 { margin-top: 12px; font-size: 24px; }
.steps p { margin-top: 8px; font-size: 15px; color: var(--muted); }

@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

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

.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 24px); }
.faq__head h2 { margin-top: 10px; }

.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-family: var(--font-serif); font-size: clamp(21px, 1.8vw, 25px); font-weight: 500; line-height: 1.25;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; flex: none; width: 13px; height: 13px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
  transition: transform .25s;
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { padding: 0 34px 22px 0; color: var(--muted); max-width: 44em; }

@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; }
  .faq__head { position: static; }
}

/* ---------- сторінка категорії (c/<slug>.html) ---------- */

.cpage__head { margin-bottom: 26px; }
.cpage__head h1 { font-size: clamp(36px, 4.2vw, 56px); }
.cpage__lead { margin-top: 12px; max-width: 46em; font-size: 16.5px; color: var(--muted); }
.cpage__seo { max-width: 52em; margin-top: 70px; padding-top: 34px; border-top: 1px solid var(--line); color: var(--muted); }
.cpage__seo p + p { margin-top: 12px; }
.cpage__others { margin-top: 40px; }
.cpage__others h2 { margin-bottom: 16px; font-size: clamp(24px, 2.4vw, 30px); }
.cpage__others .filters { margin-bottom: 0; }

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

.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer__inner { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.4fr; gap: 36px; padding-block: 52px 40px; }
@media (max-width: 1000px) { .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.footer__brand p:last-of-type { margin-top: 12px; max-width: 24em; color: var(--muted); }
.social-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 7px 14px 7px 10px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; font-weight: 500; text-decoration: none;
}
.social-link:hover { border-color: var(--ink); }
.social-link svg { width: 18px; height: 18px; fill: #1877f2; }
.footer h3 { margin-bottom: 12px; font-style: italic; font-size: 21px; }
.footer li { padding: 3px 0; font-family: var(--font-serif); font-size: 18px; color: var(--muted); }
.footer li a { text-decoration: none; overflow-wrap: anywhere; }
.footer li a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  padding-block: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted);
}
.footer__legal .wordmark, .footer__legal [data-brand] { font: inherit; }
.footer__links { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__links a, .footer__cookies { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: none; }
.footer__links a:hover, .footer__cookies:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 720px) { .footer__inner { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- панель замовлення ---------- */

.overlay {
  position: fixed; inset: 0; z-index: 40; background: rgba(27, 20, 12, .5);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
}
.overlay.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; flex-direction: column; width: min(480px, 100%);
  background: var(--bg); color: var(--ink);
  transform: translateX(100%); visibility: hidden;
  transition: transform .35s ease, visibility 0s .35s;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .35s ease; }
.drawer:focus { outline: none; }

.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px 14px 24px; border-bottom: 1px solid var(--line);
}
.drawer__head h2 { font-size: 28px; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px 24px; }
.drawer__empty { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 32px; color: var(--muted); }
.drawer__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 24px 20px; border-top: 1px solid var(--line); background: var(--surface); }
.drawer__foot .btn { padding-inline: 10px; }
.drawer__hint { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.drawer__hint a { color: var(--ink); text-underline-offset: 3px; white-space: nowrap; }
.drawer__wait { grid-column: 1 / -1; font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.drawer__error { grid-column: 1 / -1; font-size: 13.5px; line-height: 1.45; color: var(--error); }
.drawer__done { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 36px; }
.drawer__done h3 { font-size: 30px; }
.drawer__done p { color: var(--muted); }
.drawer__done .drawer__done-number { font-family: var(--font-serif); font-size: 22px; color: var(--ink); }
.drawer__done .btn { margin-top: 10px; }
.btn[disabled] { opacity: .6; cursor: default; pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.line { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line__thumb { position: relative; width: 64px; height: 80px; overflow: hidden; background-color: var(--ph-bg); background-image: var(--weave); background-size: 32px 32px; }
.line__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.line__name { font-family: var(--font-serif); font-size: 20px; font-weight: 500; line-height: 1.2; }
.line__size { margin-top: 2px; font-size: 13px; color: var(--muted); }
.line__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.line__sum { font-family: var(--font-serif); font-size: 20px; font-weight: 500; white-space: nowrap; }
.line__remove { border: 0; background: none; padding: 6px 0; font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.line__remove:hover { color: var(--ink); }

.total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 18px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.total strong { font-family: var(--font-serif); font-size: 30px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.total__note { font-size: 12.5px; color: var(--muted); text-align: right; }

.form { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.form h3 { margin-bottom: 14px; font-size: 23px; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 5px; font-size: 13.5px; font-weight: 500; }
.field__opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  display: block; width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 0;
  background: var(--surface); font-size: 16px; line-height: 1.4;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .7; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.field.is-invalid input { border-color: var(--error); }
.field__error { display: none; margin-top: 4px; font-size: 12.5px; color: var(--error); }
.field.is-invalid .field__error { display: block; }

/* служба доставки: перемикач */
fieldset.field { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
fieldset.field legend { margin-bottom: 5px; padding: 0; font-size: 13.5px; font-weight: 500; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: var(--surface); }
.seg__opt { position: relative; }
.seg__opt + .seg__opt { border-left: 1px solid var(--line); }
.seg__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg__opt span { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 14px; font-weight: 500; transition: background-color .2s, color .2s; }
.seg__opt input:checked + span { background: var(--ink); color: var(--bg); }
.seg__opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* підказки населених пунктів і відділень */
.ac { position: relative; }
.ac__list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 6; max-height: 264px; overflow-y: auto; margin: 0;
  border: 1px solid var(--ink); border-top: 0; background: var(--surface); box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
}
.ac__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 9px 12px; cursor: pointer; }
.ac__item + .ac__item { border-top: 1px solid var(--line); }
.ac__item:hover, .ac__item.is-active { background: var(--info-bg); }
.ac__main { font-size: 14px; font-weight: 500; line-height: 1.35; }
.ac__sub { grid-column: 1 / -1; font-size: 12px; line-height: 1.35; color: var(--muted); }
.ac__tag { align-self: start; padding: 1px 8px; border-radius: 999px; background: var(--badge-bg); font-size: 11px; font-weight: 600; white-space: nowrap; }
.ac__tag.is-muted { background: transparent; color: var(--muted); font-weight: 400; }
.ac__msg { padding: 10px 12px; font-size: 13px; color: var(--muted); }

.form__pay { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; padding: 12px 14px; background: var(--info-bg); font-size: 13.5px; line-height: 1.45; }
.form__pay svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 400px) { .drawer__foot { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .drawer__hint > span { display: none; } }

/* ---------- плаваюча кнопка «Написати нам» ---------- */

.fab {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 35;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.fab__btn {
  display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%;
  background: var(--fab-bg); color: var(--fab-ink); box-shadow: 0 8px 24px rgba(27, 20, 12, .3);
  transition: transform .2s;
}
.fab__btn:hover { transform: scale(1.06); }
.fab__btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fab__menu { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.fab__item {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink);
  box-shadow: 0 6px 18px rgba(27, 20, 12, .18); font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.fab__item:hover { border-color: var(--ink); }
.fab__item svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.fab__item--viber svg { stroke: #7360f2; }
.fab__item--wa svg { stroke: #1fae57; }
.fab.is-open .fab__menu { animation: fab-in .18s ease-out; }
@keyframes fab-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 520px) { .fab__btn { width: 52px; height: 52px; } }

/* ---------- плашка про кукі ---------- */

.consent {
  position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 38;
  width: min(440px, calc(100% - 32px)); padding: 18px 20px 20px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink);
  box-shadow: 0 12px 36px rgba(27, 20, 12, .22); animation: consent-in .3s ease-out;
}
.consent__title { font-family: var(--font-serif); font-size: 22px; font-weight: 500; line-height: 1.2; }
.consent__text { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.consent__text a { color: var(--ink); text-underline-offset: 3px; }
.consent__actions { display: flex; gap: 10px; margin-top: 14px; }
.consent__actions .btn { flex: 1; min-height: 42px; padding: 8px 14px; }
@keyframes consent-in { from { opacity: 0; transform: translateY(12px); } }
/* поки плашка відкрита, кнопка «Написати нам» не перекриває її на телефоні */
@media (max-width: 520px) { body.consent-open .fab { display: none; } }

/* ---------- політика конфіденційності ---------- */

.legal { max-width: 46em; }
.legal h1 { font-size: clamp(34px, 4vw, 52px); }
.legal__updated { margin-top: 8px; font-size: 14px; color: var(--muted); }
.legal section { margin-top: 30px; }
.legal h2 { font-size: clamp(24px, 2.4vw, 30px); }
.legal p { margin-top: 10px; color: var(--muted); }

.drawer__privacy { margin-bottom: 10px; font-size: 12.5px; color: var(--muted); }
.drawer__privacy a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: calc(100% - 32px);
  padding: 12px 20px; background: var(--ink); color: var(--bg); font-size: 14px; text-align: center;
  transform: translate(-50%, 20px); opacity: 0; visibility: hidden;
  transition: opacity .25s, transform .25s, visibility 0s .25s;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: opacity .25s, transform .25s; }

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