/* Layout: sticky header with category mega-menu; home = hero, seasonal band, section tiles, grid; category = crumbs, chips, grid. Single warm light look by design. */
:root {
  --bg: #f8f3ec;
  --bg-alt: #f0e7db;
  --card: #fffdf9;
  --ink: #2f2622;
  --muted: #6e6057; /* другорядні підписи: контраст не менше 4,8 до 1 на всіх тлах сайту */
  --line: #e4d7c7; /* декоративні лінії й рамки кнопок-пігулок */
  --field: #948069; /* рамка полів форми й пошуку: не менше 3 до 1 до тла — поле видно як поле */
  --accent: #7d2e3d;
  --accent-dark: #65232f;
  --accent-ink: #fff;
  --accent-soft: #f3e2e1;
  --gold: #b08a4f; /* світле золото — лише для оздоб (ліній, великих знаків), не для тексту */
  --gold-ink: #80602d; /* золото для тексту й тла під білим текстом: не менше 4,7 до 1 */
  --season: #2f5a45;
  --season-soft: #e3ece4;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(70, 40, 30, 0.08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.muted { color: var(--muted); }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* підказка всередині поля: той самий колір у всіх браузерах (Firefox інакше робить її напівпрозорою) */
::placeholder { color: var(--muted); opacity: 1; }

/* «Перейти до вмісту» — перше посилання сторінки для тих, хто ходить клавіатурою: видно лише у фокусі */
.skip-link {
  position: absolute; left: 8px; top: 8px; z-index: 40;
  padding: 12px 18px; border-radius: 10px;
  background: var(--ink); color: #fff;
  font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold-ink);
  margin: 0 0 0.8em;
}

.mock-banner {
  background: var(--ink);
  color: #f8f3ec;
  text-align: center;
  font-size: 0.82rem;
  padding: 6px 16px;
}
/* каталог не завантажився (js/loader.js): смужка з кнопкою «Спробувати ще» над сторінкою, яку віддав сервер */
.load-fail {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px;
  padding: 10px 16px;
  background: var(--accent-soft); color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem; text-align: center;
}
.load-fail .btn { padding: 0.45em 1.2em; font-size: 0.88rem; min-height: 44px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8em 1.5em;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  font: 600 0.95rem var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-wide { width: 100%; }

/* header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(248, 243, 236, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.logo {
  font: italic 600 1.7rem var(--serif);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--accent); }
.site-header .logo { padding: 8px 0; } /* зона натиску 44 точки заввишки; сама шапка від цього не росте */
.nav { display: flex; gap: 4px; margin-left: auto; align-items: stretch; height: 100%; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-top {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav-top:hover, .nav-top.active { color: var(--accent); background: var(--accent-soft); }
.nav-season { color: var(--season); }
.nav-season:hover, .nav-season.active { color: var(--season); background: var(--season-soft); }
/* Значки й кнопки шапки на вигляд ті самі, а зона натиску — не менше 44 × 44 точок:
   у значка Instagram — поля, які «з'їдає» від'ємний відступ (місця в шапці він займає стільки ж),
   у решти — невидима підкладка ::after, що виступає за край кнопки. */
.ig-link { color: var(--ink); display: flex; padding: 11px; margin: -11px -11px -11px -7px; }
.ig-link:hover { color: var(--accent); }
.burger, .search-toggle, .lang-switch, .modal-close, .review-zoom-close, .chip, .crumbs a, .dot, .link-btn, a.order-terms { position: relative; }
.burger::after, .search-toggle::after, .lang-switch::after, .modal-close::after, .car-btn::after, .review-zoom-close::after,
.chip::after, .crumbs a::after, .dot::after, .link-btn::after, a.order-terms::before { content: ""; position: absolute; }
.burger::after, .modal-close::after, .car-btn::after, .review-zoom-close::after { inset: -2px; }
.search-toggle::after { inset: -3px; }
.lang-switch::after { inset: -6px -3px; }
/* перемикач мови: «EN» на українських сторінках, «UA» — на англійських (/en/…) */
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  height: 32px; min-width: 38px; padding: 0 8px;
  border: 1.5px solid var(--line); border-radius: 999px;
  color: var(--ink); text-decoration: none;
  font: 600 0.8rem/1 var(--sans); letter-spacing: 0.06em;
}
.lang-switch:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.lang-switch[hidden], .drawer .drawer-head .lang-switch[hidden] { display: none; }
/* англійська сторінка до запуску скриптів: напис ще «EN» — ховаємо, доки app.js не поставить «UA» (місце лишається) */
html[lang="en"] .lang-switch:not([hreflang="uk"]) { visibility: hidden; }

/* search */
/* На комп'ютері — помітна «пігулка» з підписом; на телефоні — кругла лупа */
.search-toggle {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; margin-left: 8px;
  padding: 0 14px 0 12px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink);
  font: 500 0.9rem var(--sans); cursor: pointer; white-space: nowrap;
}
.search-toggle:hover, .search-toggle[aria-expanded="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* велике поле пошуку на головній */
.hero-search {
  display: flex; align-items: center; gap: 10px;
  margin-top: 26px; max-width: 520px;
  background: var(--card); border: 1.5px solid var(--field); border-radius: 999px;
  padding: 6px 8px 6px 18px; color: var(--muted);
  box-shadow: var(--shadow);
}
/* фокус показує все поле-пігулка (у самого input рамку фокуса прибрано нижче) */
.hero-search:focus-within { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }
.hero-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font: 500 1.05rem var(--sans); color: var(--ink); padding: 10px 4px;
}
.hero-search input::placeholder { color: var(--muted); }
.search-bar {
  position: sticky; top: calc(66px + env(safe-area-inset-top, 0px)); z-index: 15;
  background: var(--bg); border-bottom: 1px solid var(--line); padding-block: 10px;
}
.search-form { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.search-form input {
  flex: 1; min-width: 0; min-height: 44px;
  font: 500 1rem var(--sans); color: var(--ink);
  background: var(--card); border: 1px solid var(--field); border-radius: 999px;
  padding: 10px 16px;
}
.search-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
/* хрестик той самий, зона натиску 44 × 44 (від'ємні відступи — щоб поле пошуку не вужчало) */
.search-close {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: 0 -10px 0 -8px; border-radius: 50%;
  border: 0; background: none; font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0;
}
.search-close:hover { color: var(--accent); }
.not-found .nf-text { max-width: 40em; margin-top: 8px; color: var(--ink); }
.not-found .nf-search { margin: 4px 0 26px; }
.not-found .nf-label { margin: 0 0 10px; }
.not-found .nf-actions { margin: 22px 0 16px; }
.search-empty p { margin: 0 0 12px; }
.search-empty .filters { margin: 4px 0 16px; }
.search-fixed { margin: -6px 0 14px; font-size: 0.92rem; font-style: italic; }
#searchTitle { overflow-wrap: anywhere; }

.dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 260px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(70, 40, 30, 0.16);
  padding: 16px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.dropdown.dd-wide { min-width: 520px; }
.nav-item.has-dd:hover .dropdown,
.nav-item.has-dd:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dd-all {
  display: block; font-weight: 600; font-size: 0.88rem;
  padding: 6px 10px; margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.dd-cols { display: flex; flex-direction: column; gap: 2px; }
.dd-wide .dd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.dd-wide .dd-group { grid-row: span 4; }
.dropdown a:not(.dd-all) {
  display: block; padding: 6px 10px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: 0.92rem;
}
.dropdown a:not(.dd-all):hover { background: var(--accent-soft); color: var(--accent); }
.dd-group { display: flex; flex-direction: column; }
.dd-group a.dd-head { font-weight: 600; }
.dd-group a:not(.dd-head) { padding-left: 22px; font-size: 0.88rem; color: var(--muted); }

/* burger + drawer (mobile) */
.burger {
  display: none;
  width: 40px; height: 40px;
  border: 0; background: transparent; padding: 9px 8px; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.drawer {
  position: fixed; inset: 0; z-index: 30;
  background: rgba(40, 25, 20, 0.45);
}
.drawer-inner {
  background: var(--card);
  width: min(360px, 88%);
  height: 100%;
  overflow-y: auto;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 18px calc(28px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column;
}
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: -8px 0 10px; padding: 0 0 10px 10px; border-bottom: 1px solid var(--line);
}
.drawer .drawer-head .logo { padding: 8px 0; font-size: 1.5rem; }
.drawer .drawer-head .lang-switch { display: inline-flex; margin-left: auto; height: 36px; padding: 0 10px; border-radius: 999px; color: var(--ink); font-weight: 600; }
.drawer-close {
  flex: 0 0 auto;
  width: 44px; height: 44px; margin-right: -6px; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink);
  font-size: 2rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.drawer-close:hover { background: var(--bg-alt); color: var(--accent); }
.drawer-nav { display: flex; flex-direction: column; gap: 2px; flex: 1 0 auto; }
.drawer a, .drawer summary {
  display: block; padding: 11px 10px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 500; cursor: pointer;
}
.drawer summary { list-style: none; position: relative; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: "+"; position: absolute; right: 12px; color: var(--muted); font-size: 1.2rem; line-height: 1.2; }
.drawer details[open] > summary::after { content: "–"; }
.drawer details[open] > summary { color: var(--accent); }
.dr-sub { padding-left: 14px; border-left: 1px solid var(--line); margin-left: 10px; }
.dr-sub a { font-weight: 400; padding: 11px 10px; } /* рядок не нижчий за 44 точки */
.dr-all { color: var(--accent) !important; font-size: 0.9rem; }
.dr-season { color: var(--season) !important; background: var(--season-soft); margin-bottom: 8px; }
/* «Як замовити», «Доставка й оплата», «Відгуки», «Про нас» — під розділами каталогу, відокремлені лінією */
.dr-info { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.dr-info a { font-weight: 400; }
.dr-ig { margin-top: auto; color: var(--muted) !important; font-size: 0.9rem; }

/* hero */
.hero { padding: 48px 0 64px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-text { min-width: 0; }
.lead { font-size: 1.1rem; color: var(--ink); max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-photos { position: relative; aspect-ratio: 1 / 0.9; max-width: 100%; }
.hp {
  position: absolute; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 6px solid var(--card);
}
.hp-1 { width: 62%; height: 80%; left: 0; top: 0; }
.hp-2 { width: 46%; height: 50%; right: 0; top: 6%; }
.hp-3 { width: 50%; height: 50%; right: 6%; bottom: 0; }

/* sections */
.section { padding: 64px 0; }
.section-tight { padding-top: 8px; }
.section-alt { background: var(--bg-alt); }
.section-cat { padding-top: 28px; min-height: 60vh; }
.section-head { margin-bottom: 24px; }
.section-head p { margin: 0; }

/* seasonal band */
.season { background: var(--season-soft); padding: 48px 0; }
.season .eyebrow { color: var(--season); }
.season h2 { margin-bottom: 4px; }
.season-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.season-head p { margin: 0; }
.season .btn-ghost { border-color: var(--season); color: var(--season); }
.season .btn-ghost:hover { background: rgba(47, 90, 69, 0.08); }

/* section tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tiles .tile-img { aspect-ratio: 16 / 10; }
.cat-intro { margin-top: 10px !important; max-width: 46em; color: var(--ink); }
.tile {
  display: flex; flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink);
  transition: transform 0.25s, box-shadow 0.25s;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(70, 40, 30, 0.14); }
.tile-img { aspect-ratio: 4 / 3; background: var(--bg-alt); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.tile-body h3 { font-size: 1.5rem; margin-bottom: 4px; }
.tile-body p { margin: 0 0 12px; color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
.tile-count { margin-top: auto; font-size: 0.875rem; font-weight: 600; color: var(--accent); }

/* category page */
.crumbs { display: flex; flex-wrap: wrap; gap: 10px 6px; font-size: 0.875rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a::after { inset: -11px -3px; } /* зона натиску 44 точки заввишки, рядок лишається тонким */
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs .sep { opacity: 0.6; }
.crumbs [aria-current] { color: var(--ink); }
.cat-head { margin-bottom: 20px; }
.cat-head h1 { margin-bottom: 4px; }
.cat-head p { margin: 0; }

/* filters */
.filters { display: flex; gap: 12px 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip::after { inset: -6px 0; } /* чип на вигляд той самий, зона натиску — 44 точки заввишки */
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  padding: 0.45em 1.05em;
  border-radius: 999px;
  font: 500 0.9rem var(--sans);
  text-decoration: none;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
/* рядок чипів на телефоні гортається вбік: поки справа є ще чипи, правий край тане (клас ставить app.js — tuneChips) */
.filters.more-right {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
}

/* рядок над сіткою: фільтри / «Знайдено…» ліворуч, сортування праворуч */
.list-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 28px; }
.list-bar .filters { flex: 1 1 320px; min-width: 0; margin-bottom: 0; }
.list-bar > p { margin: 0; }
/* праворуч: діапазон цін і сортування; на вузькому екрані переносяться під фільтри */
.list-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-left: auto; }
.list-tools .sort { margin-left: 0; }
.sort { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.sort-label { font-size: 0.875rem; color: var(--muted); }
.sort-select {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--field);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%236e6057' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.85em center;
  color: var(--ink);
  padding: 0.45em 2.2em 0.45em 1.05em;
  border-radius: 999px;
  font: 500 0.9rem var(--sans);
  cursor: pointer;
}
.sort-select:hover { border-color: var(--accent); }
.sort-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* grid + cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.grid-row { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(70, 40, 30, 0.14); }
.card-img { position: relative; aspect-ratio: 1; background: var(--bg-alt); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 16px 18px; }
.card-body h3 {
  font-size: 1.22rem; margin-bottom: 4px;
  /* довгі назви — до 3 рядків з «…», повна назва — у картці товару */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
  text-wrap: pretty;
}
.card-meta { margin: 0; color: var(--muted); font-size: 0.875rem; }
.card-price { margin: 8px 0 0; font-weight: 600; color: var(--accent); }
/* англійська версія: приблизна сума в євро поруч із ціною в гривнях — «≈ €58» */
.price-eur { font-size: 0.875em; font-weight: 500; color: var(--muted); white-space: nowrap; }
.price .price-eur { font-size: 0.72em; }
.card.is-sold .card-img img, .card.is-sold .ph { filter: grayscale(0.6); opacity: 0.7; }
.card.is-sold .card-price { color: var(--muted); }
.empty { padding: 24px 0; }
.more-wrap { display: flex; justify-content: center; margin-top: 28px; }

/* photo placeholders (mockup) */
.ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-align: center; padding: 12px;
  color: var(--muted);
  background-color: var(--bg-alt);
  background-image: radial-gradient(circle at 50% 50%, transparent 5px, rgba(125, 46, 61, 0.07) 6px, rgba(125, 46, 61, 0.07) 7px, transparent 8px);
  background-size: 22px 22px;
}
.ph span { font: italic 600 1.15rem var(--serif); color: var(--ink); opacity: 0.6; }
.ph small { font-size: 0.78rem; }
.ph-big span { font-size: 1.6rem; }
.ph-tkanyny { background-color: #ece3d3; }
.ph-shtory { background-color: #e9e6df; }
.ph-aksesuary { background-color: #efe0dc; }

.photo-count {
  position: absolute; bottom: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(47, 38, 34, 0.7); color: #fff;
  font-size: 0.75rem; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
}
.credits { padding-block: 0 24px; font-size: 0.82rem; color: var(--muted); }
.credits summary { cursor: pointer; }
.credits ul { margin: 8px 0 0; padding-left: 18px; columns: 2 320px; }
.credits li { break-inside: avoid; margin-bottom: 4px; overflow-wrap: anywhere; }
.credits a { color: var(--muted); }
.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badges-inline { display: flex; gap: 6px; margin-bottom: 10px; }
.badges-inline:empty { display: none; }
.badges-inline .badges { position: static; }
.badge {
  padding: 0.22em 0.75em;
  border-radius: 999px;
  font-size: 0.76rem; font-weight: 600;
}
.badge-sold { background: var(--ink); color: #fff; }
.badge-res { background: var(--gold-ink); color: #fff; }
.badge-set { background: var(--card); color: var(--accent); border: 1px solid var(--accent); }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: var(--card); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.steps h3 { font-size: 1.4rem; margin: 12px 0 6px; }
.steps p { margin: 0; color: var(--ink); }
.step-num {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font: 600 1.2rem var(--serif);
}

/* about */
.about { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.about > * { min-width: 0; }
/* ліворуч: портрет і під ним друге фото; праворуч текст на всю висоту. На телефоні друге фото йде після тексту */
.about-photo { margin: 0; grid-column: 1; grid-row: 1; }
.about-text { grid-column: 2; grid-row: 1 / span 2; }
.about-img2 { grid-column: 1; grid-row: 2; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: -28px; }
.about-img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 25%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-photo figcaption {
  display: flex; align-items: center; gap: 14px;
  margin: -44px 20px 0; position: relative;
  background: var(--card); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow);
  font-size: 0.92rem; line-height: 1.35; color: var(--ink);
}
.years { font: 600 3rem/1 var(--serif); color: var(--accent); }
.about-text h2 { margin-bottom: 16px; }
.about-text p { color: var(--ink); max-width: 38em; }
.about-text .eyebrow { color: var(--gold-ink); } /* правило вище перебивало б колір підпису над заголовком */
.about-list-title { color: var(--ink) !important; font-weight: 600; margin-bottom: 6px; }
.about-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.about-list li { position: relative; padding-left: 26px; color: var(--ink); }
.about-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.55em; width: 10px; height: 10px;
  border: 1.5px solid var(--accent); border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0 2px, transparent 2.5px);
}
.about-sign { font: italic 600 1.5rem var(--serif); color: var(--ink) !important; margin: 4px 0 18px; }

/* відгуки: стрічка скриншотів, що гортається вбік; лівий край — на одній лінії із заголовком */
.reviews {
  display: flex; align-items: center; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 6px max(16px, (100% - 1200px) / 2) 18px;
  scroll-padding-inline: max(16px, (100% - 1200px) / 2);
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
/* картка = скриншот і (лише в англійській версії) переклад під ним; ширину задає скриншот */
.review-card { flex: none; margin: 0; width: min-content; scroll-snap-align: start; }
.review {
  display: block; margin-inline: auto; padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; overflow: hidden; cursor: zoom-in;
  box-shadow: var(--shadow);
}
.reviews:focus-visible { outline-offset: -2px; } /* стрічка на всю ширину екрана: рамку фокуса малюємо всередині, щоб її було видно цілою */
.review-card figcaption { min-width: 200px; margin-top: 10px; font-size: 0.9rem; line-height: 1.45; color: var(--ink); font-style: italic; }
/* кожен скриншот вписується в рамку 260 × 462 (пропорції сторіс), обрізані короткі — нижчі.
   Точний розмір на екрані рахує app.js (reviewsSection) і ставить в атрибути width / height: місце
   зарезервоване ще до завантаження, сторінка не стрибає. Тому тут немає width / height: auto — вони
   скасували б атрибути, і до завантаження картинка мала б нульовий розмір. */
.review img { display: block; max-width: 260px; max-height: 462px; background: var(--bg-alt); }
.review-zoom { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; overflow: visible; }
.review-zoom::backdrop { background: rgba(40, 25, 20, 0.8); }
.review-zoom img { display: block; width: auto; height: auto; max-width: min(640px, 100vw - 24px); max-height: calc(100dvh - 24px); border-radius: var(--radius); cursor: zoom-out; }
/* фото товару великим — на весь екран (скриншоти відгуків вузькі, їм досить 640 точок) */
.review-zoom.photo-zoom img { max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 8px; }
.review-zoom-close {
  position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255, 253, 249, 0.92); color: var(--ink); font-size: 1.7rem; line-height: 1; cursor: pointer;
}

/* faq */
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 56px 18px 22px;
  font: 600 1.3rem/1.25 var(--serif); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font: 500 1.2rem var(--sans);
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--accent); }
.faq-a { padding: 0 22px 18px; }
.faq-a p { margin: 0 0 10px; color: var(--ink); max-width: 44em; }
.faq-a p:last-child { margin-bottom: 0; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
/* посилання на розділи головної («Як замовити», «Доставка й оплата», «Відгуки», «Про нас») — з будь-якої сторінки */
/* посилання підвалу — рядки не нижчі за 44 точки (поля замість проміжку між рядками: відстані ті самі) */
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 24px; margin-bottom: 16px; }
.footer-nav a { padding: 10px 0; color: var(--ink); font-weight: 500; text-decoration: none; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.footer-inner { display: flex; align-items: center; gap: 0 20px; flex-wrap: wrap; }
.footer-inner .logo { font-size: 1.4rem; padding: 9px 0; }
.footer-ig { text-decoration: none; padding: 10px 0; }
.footer-privacy { margin-left: auto; padding: 11px 0; color: var(--muted); font-size: 0.875rem; }

/* modal */
.modal {
  border: 0; padding: 0;
  width: min(980px, 100% - 32px);
  max-width: none;
  max-height: calc(100dvh - 32px);
  border-radius: 18px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(40, 20, 15, 0.3);
  overflow-y: auto; /* прокручується сама картка — до її низу «прилипає» панель замовлення */
  overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(40, 25, 20, 0.55); }
/* Хрестик «липкий»: картка прокручується, а він лишається в правому верхньому куті (на телефоні картка
   на весь екран — без нього вийти можна було б лише кнопкою «Назад»). У потоці місця не займає:
   від'ємний нижній відступ дорівнює його висоті разом з верхнім відступом (40 + 10). */
.modal-close {
  position: sticky; top: 10px; z-index: 3;
  display: block; margin: 10px 12px -50px auto;
  width: 40px; height: 40px; border-radius: 50%; padding: 0;
  border: 0; background: rgba(255, 253, 249, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  font-size: 1.7rem; line-height: 1; color: var(--ink);
  cursor: pointer;
}
.modal-body { display: grid; grid-template-columns: 1.1fr 1fr; }
.gallery { background: var(--bg-alt); padding: 16px; min-width: 0; }
.carousel { position: relative; border-radius: 10px; overflow: hidden; background: var(--line); }
.track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  aspect-ratio: 1;
  max-width: 100%;
}
.track::-webkit-scrollbar { display: none; }
/* стрічка фото лежить у рамці з overflow: hidden — звичайну рамку фокуса зовні було б обрізано, малюємо її всередині */
.track:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
/* кнопки поверх фото: рамка фокуса двоколірна (біла + бордова) — її видно і на світлому, і на темному фото */
.dot:focus-visible, .play:focus-visible { box-shadow: 0 0 0 2px #fff; }
.car-btn:focus-visible, .modal-close:focus-visible, .review-zoom-close:focus-visible { box-shadow: 0 0 0 2px #fff, 0 2px 10px rgba(0, 0, 0, 0.15); }
/* Фото показуємо цілим (contain), а не обрізаним до квадрата: для мережива й країв скатертини важливо
   бачити все. Поля довкола заповнює те саме фото, зменшене й розмите (::before), а під великим фото,
   поки воно вантажиться, видно зменшене на тому ж місці (::after). Адресу зменшеного фото (--bg) ставить
   app.js (setSlide). Натиск на фото відкриває його великим. */
.slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1; position: relative; z-index: 0; overflow: hidden; } /* z-index: 0 — шари слайда не вилазять поверх стрілок і лічильника */
.slide::before, .slide::after { content: ""; position: absolute; background: var(--bg, none) center no-repeat; pointer-events: none; }
.slide::before { inset: -24px; background-size: cover; filter: blur(18px); opacity: 0.8; }
.slide::after { inset: 0; background-size: contain; }
.slide img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255, 253, 249, 0.92); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.car-prev { left: 10px; }
.car-next { right: 10px; }
.car-btn:disabled { opacity: 0; pointer-events: none; }
/* лічильник — угорі ліворуч: праворуч угорі хрестик закриття картки, по центру знизу — крапки */
.car-counter {
  position: absolute; top: 10px; left: 10px;
  background: rgba(47, 38, 34, 0.7); color: #fff;
  font-size: 0.78rem; font-weight: 600;
  padding: 2px 9px; border-radius: 999px;
}
.dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, 0.6); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15); cursor: pointer; }
.dot.active { background: #fff; transform: scale(1.25); }
.dot::after { inset: -12px -3px; } /* крапка 8 точок — зона натиску 14 × 32 (ширше не можна: сусідні крапки поруч); фото гортають ще й стрілки, мініатюри та свайп */
.carousel.single .car-btn, .carousel.single .dots { display: none; }
.slide-video { background: #000; }
.slide-video img { cursor: default; }
.slide-video iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; display: block; background: #fff; }
/* відео грає — обкладинку й кнопку ▶ ховаємо (не видаляємо: app.js повертає їх, коли плеєр прибрано) */
.slide-video.playing > img, .slide-video.playing > .play { display: none; }
.play {
  position: absolute; inset: 0; margin: auto; z-index: 2;
  width: 68px; height: 68px; border-radius: 50%;
  border: 0; background: rgba(47, 38, 34, 0.72); color: #fff;
  display: grid; place-items: center; cursor: pointer;
}
.play:hover { background: var(--accent); }
.thumb-video { position: relative; }
.thumb-video::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0;
  border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.6));
}
/* поля 4 точки (і такі самі від'ємні відступи — на вигляд нічого не зсувається): стрічка гортається й обрізає все,
   що виступає за її край, а так рамка фокуса мініатюри вміщається цілою */
.thumbs { display: flex; gap: 8px; margin: 6px -4px -4px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs:empty { display: none; }
.thumb { flex: 0 0 auto; padding: 0; background: none; cursor: pointer; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; opacity: 0.6; border: 2px solid transparent; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active, .thumb:hover { opacity: 1; border-color: var(--accent); }
/* порожні клітинки на місці мініатюр, поки вантажиться повна картка: щоб опис під ними потім не зсувався */
.thumb-ph, .thumb-ph:hover { background: var(--line); opacity: 0.5; border-color: transparent; cursor: default; pointer-events: none; }
/* колонка з описом: панель замовлення — внизу колонки (margin-top: auto) і прилипає до низу картки */
.details { --pad-x: 32px; padding: 36px var(--pad-x) 0; min-width: 0; display: flex; flex-direction: column; }
.details h2 { font-size: clamp(1.5rem, 4vw, 2rem); overflow-wrap: anywhere; }
.price { font-size: 1.4rem; font-weight: 600; color: var(--accent); margin: 0 0 12px; }
.status { background: var(--accent-soft); color: var(--accent); padding: 10px 14px; border-radius: 10px; font-size: 0.92rem; margin: 0 0 14px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0 0 12px; font-size: 0.95rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.desc { white-space: pre-line; color: var(--ink); margin: 0 0 24px; }
/* повний опис ще вантажиться — тихий напис, що пульсує */
.desc[data-loading]::after {
  content: attr(data-loading);
  display: block; margin-top: 6px;
  font-size: 0.88rem; font-style: italic;
  animation: desc-pulse 1.1s ease-in-out infinite alternate;
}
.desc[data-loading]:empty::after { margin-top: 0; }
@keyframes desc-pulse { from { opacity: 0.35; } to { opacity: 0.9; } }
/* повний опис не завантажився: пояснення й кнопка «Спробувати ще» одразу під початком опису */
.desc-fail { margin: -12px 0 24px; padding: 10px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); font-size: 0.92rem; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn::after { inset: -11px -6px; }
.hint { font-size: 0.875rem; color: var(--muted); text-align: center; margin: 10px 0 0; }
/* Липка панель: лише ціна й головна кнопка (разом з умовами й другою кнопкою вона забирала п'яту частину
   екрана телефона). Решта — .order-more одразу під нею, звичайним текстом. */
.order-bar {
  position: sticky; bottom: 0; z-index: 1;
  margin: auto calc(-1 * var(--pad-x)) 0;
  padding: 14px var(--pad-x) calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--card);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 18px -14px rgba(70, 40, 30, 0.35);
}
.order-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.order-row .price { margin: 0; flex: 0 1 auto; line-height: 1.2; }
.order-row .price.price-ask { font-size: 1.05rem; } /* «Ціна за запитом» довша за число: меншим шрифтом, щоб кнопка лишалась у тому ж рядку */
.order-row .btn { flex: 1 1 190px; width: auto; }
html[lang="en"] .order-row .btn { flex-basis: 150px; } /* «2,400 UAH ≈ €49» довше за «2 400 грн» — щоб кнопка лишалась у тому ж рядку на телефоні */
/* під панеллю: підказка до кнопки Direct (одразу під нею), умови-посилання, окремо — заявка без Instagram,
   унизу — «Поділитись» і мова. Гортається разом з описом. */
.order-more { padding: 0 0 calc(22px + env(safe-area-inset-bottom, 0px)); }
/* підказка, умови й текст згоди — не дрібніші за 14 точок: це найважливіше, що людина читає перед замовленням */
.order-more .hint, .order-note { font-size: 0.875rem; line-height: 1.45; color: var(--muted); text-align: left; margin: 0 0 6px; }
.order-terms { display: inline-block; margin: 0; padding: 4px 0; font-size: 0.9rem; line-height: 1.45; color: var(--ink); text-underline-offset: 3px; }
a.order-terms::after { content: " ›"; }
a.order-terms::before { inset: -8px; } /* зона натиску посилання — 44 точки заввишки */
a.order-terms:hover { color: var(--accent); }
/* «Немає Instagram?» + кнопка форми — окремий блок: щоб її не плутали з головною кнопкою Direct */
.order-alt-box { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.order-alt-lead { margin: 0 0 8px; font-size: 0.9rem; color: var(--muted); }
.order-alt { padding: 0.65em 1em; font-size: 0.92rem; min-height: 44px; }
.order-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0;
  border: 0; background: none; color: var(--ink); font: 500 0.92rem var(--sans); cursor: pointer;
}
.share-btn:hover { color: var(--accent); }
.order-tools .lang-switch { height: 36px; min-width: 46px; } /* у картці — трохи більший, ніж у шапці: зручніше влучити пальцем */

/* заявка без Instagram: форма відкривається на місці панелі замовлення (і всього, що під нею) */
.order-bar[hidden], .order-more[hidden], .order-alt-box[hidden], .order-form-box[hidden], .order-form[hidden], .order-done[hidden] { display: none; }
.order-form-box {
  margin: auto calc(-1 * var(--pad-x)) 0;
  padding: 18px var(--pad-x) calc(18px + env(safe-area-inset-bottom, 0px));
  background: var(--card); border-top: 1px solid var(--line);
}
.order-form { display: grid; gap: 12px; }
.order-form h3, .order-done h3 { font-size: 1.35rem; margin: 0; }
.of-item { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.of-note { margin: 0; font-size: 0.9rem; color: var(--ink); }
.of-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; }
.of-row > * { min-width: 0; }
.of-field { display: grid; gap: 4px; font-size: 0.875rem; color: var(--ink); }
.of-field input, .of-field select, .of-field textarea {
  width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px;
  font: 400 1rem var(--sans); color: var(--ink); /* 16px: інакше телефон наближає сторінку при введенні */
  background: #fff; border: 1px solid var(--field); border-radius: 10px;
}
.of-field textarea { resize: vertical; min-height: 60px; }
/* поле з помилкою: рамка кольору помилки — видно, що саме треба виправити (текст помилки стоїть поруч) */
.of-field [aria-invalid="true"] { border-color: var(--accent); border-width: 2px; }
.of-consent input[aria-invalid="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.of-field input:focus, .of-field select:focus, .of-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.of-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* пастка для програм-спамерів: людина цього поля не бачить */
.of-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; line-height: 1.45; color: var(--ink); }
.of-consent input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.of-consent a { color: var(--accent); }
.of-error { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 0.9rem; }
.of-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.of-actions .btn-primary { flex: 1 1 200px; }
.order-done { display: grid; gap: 10px; justify-items: start; }
.order-done p { margin: 0; color: var(--ink); }
@media (max-width: 480px) { .of-row { grid-template-columns: 1fr; } }

/* toast */
/* у картці товару — вгорі, щоб не перекривати кнопку «Замовити»; нижче за хрестик закриття (він у куті, 10–50 точок),
   і натиски крізь себе пропускає: навіть довге повідомлення не заважає закрити картку */
.modal .toast { bottom: auto; top: calc(64px + env(safe-area-inset-top, 0px)); pointer-events: none; }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  z-index: 100;
  background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: calc(100% - 32px);
  font-size: 0.95rem;
}

/* людина вимкнула анімації в налаштуваннях: без плавних переходів, без пульсації й без плавної прокрутки */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .desc[data-loading]::after { animation: none; opacity: 0.7; }
  .card:hover, .tile:hover { transform: none; }
}
/* телефон або дотиковий екран: випадні списки не нижчі за 44 точки (зону натиску списку інакше не збільшити) */
@media (max-width: 600px), (pointer: coarse) {
  .sort-select { min-height: 44px; }
}

/* responsive */
@media (max-width: 1150px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header-inner { gap: 12px; }
  .search-toggle { margin-left: auto; width: 38px; padding: 0; justify-content: center; border-color: transparent; background: transparent; }
  .search-label { display: none; }
  .grid-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero { padding: 28px 0 44px; }
  .hero-inner, .about, .modal-body { grid-template-columns: 1fr; }
  .hero-photos { max-width: 480px; width: 100%; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; }
  .about { gap: 28px; }
  .about-photo, .about-text, .about-img2 { grid-column: 1; grid-row: auto; }
  .about-photo { max-width: 460px; }
  .about-img2 { max-width: 460px; margin-top: 0; order: 1; }
  .about-img { aspect-ratio: 4 / 3.4; }
  .faq summary { font-size: 1.15rem; padding: 16px 52px 16px 18px; }
  .faq-a { padding: 0 18px 16px; }
  .details { --pad-x: 20px; padding: 24px var(--pad-x) 0; }
  .order-bar { padding-top: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .section { padding: 48px 0; }
  .section-cat { padding-top: 20px; }
}
@media (max-width: 600px) {
  .grid, .grid-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tiles .tile-img { aspect-ratio: 4 / 3; }
  .tile-body { padding: 12px; }
  .tile-body h3 { font-size: 1.2rem; }
  .tile-body p { display: none; }
  .card-body { padding: 10px 12px 14px; }
  .card-body h3 { font-size: 1.05rem; }
  /* рядок чипів гортається вбік і обрізає все, що виступає за його край. Поля 7 точок згори й знизу (і такі самі
     від'ємні відступи — на вигляд нічого не зсувається) лишають місце для зони натиску чипа й рамки фокуса */
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: -7px -16px 21px; padding: 7px 16px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; }
  .list-bar { margin-bottom: 20px; }
  .list-bar .filters { flex: 0 0 calc(100% + 32px); margin-bottom: -7px; } /* на всю ширину екрана, як і без рядка (поля -16px) */
  .search-empty .filters { margin-block: -3px 9px; }
  .modal { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  /* липка панель замовлення на телефоні — якомога нижча (ціна й кнопка в один рядок ≈ 65 точок) */
  .order-bar { padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .order-row { gap: 6px 12px; }
  .order-row .price { font-size: 1.25rem; }
  /* «Ціна за запитом» — у два короткі рядки ліворуч від кнопки («Запитати ціну в Direct» довга): так панель лишається в один ряд */
  .order-row .price.price-ask { flex: 0 0 4.7em; font-size: 1rem; }
  .order-row .btn { padding: 0.7em 1.1em; }
}
/* дуже вузькі телефони: щоб у шапці вмістилися меню, логотип, пошук, мова й Instagram */
@media (max-width: 350px) {
  .header-inner { gap: 8px; }
  .site-header .logo { font-size: 1.5rem; }
}

/* ===== Написати нам (загальна форма) ===== */
/* Вікно загальної форми (contactUi в app.js): той самий .modal і хрестик .modal-close, що в картці товару,
   лише вузьке; усередині — класи форми замовлення (.order-form, .of-*, .order-done). */
.contact-modal { width: min(520px, 100% - 32px); }
.contact-box { padding: 28px 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
/* заголовки вікна — h2 (у картці товару форма має h3); справа лишаємо місце під хрестик */
.contact-box h2 { margin: 0; padding-right: 40px; font-size: 1.6rem; }
@media (max-width: 600px) {
  .contact-modal { width: 100%; } /* на телефоні — на весь екран, як картка товару */
  .contact-box { padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px)); }
}
