/* Дядя Женя в Молдове — the tour as a family photo album.
   Bottle-green album cloth, black-green pages, gold foil for titles and the one action colour, white-bordered prints
   held by gold photo corners, white gel-pen captions, orange date imprints like a 90s film camera's. */

@font-face {
  font-family: "DSEG7";
  src: url("/assets/fonts/DSEG7Classic-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --cloth: #16382b;        /* album cover cloth */
  --cloth-deep: #0e271d;
  --page: #10291f;         /* album page */
  --foil: #e0a21e;         /* the brief's gold: foil stamping and the action colour */
  --foil-hi: #f2c25a;
  --foil-ink: #1c1505;     /* text on foil */
  --chalk: #f2eee3;        /* white gel pen */
  --chalk-soft: #c3d2c7;   /* secondary text on the green, tinted from it */
  --print: #fbfaf5;        /* photo paper */
  --print-ink: #1f2420;
  --print-soft: #4a5550;
  --pen: #2b45a8;          /* ballpoint written on the prints */
  --imprint: #ff8a1e;      /* film-camera date imprint */
  --leaf: #23744a;         /* pen note for free meetings */
  --amber: #7a5500;        /* pen note for the rest: gold darkened to read on white */
  --error: #b3261e;

  --font-body: "Golos Text", system-ui, sans-serif;
  --font-display: "Unbounded", "Golos Text", sans-serif;
  --font-pen: "Bad Script", "Golos Text", cursive;
  --font-imprint: "DSEG7", "Golos Text", sans-serif;

  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --page-pad: clamp(22px, 4vw, 56px);
  --topbar-h: 64px;
  --shadow-print: 0 2px 3px rgba(0, 0, 0, .35), 0 16px 34px rgba(0, 0, 0, .38);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 16px); -webkit-text-size-adjust: 100%;
  accent-color: var(--foil); caret-color: var(--foil); scrollbar-color: var(--foil) var(--cloth-deep);
}
::selection { background: var(--foil); color: var(--foil-ink); }
body {
  margin: 0;
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  color: var(--chalk);
  /* album cloth: a fine weave over the green */
  background-color: var(--cloth);
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .1) 0 1px, transparent 1px 3px);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--foil); outline-offset: 3px; }
.print :focus-visible, .card-form :focus-visible, .sheet :focus-visible { outline-color: var(--pen); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; background: var(--foil); color: var(--foil-ink); font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- the album's voices ---------- */
.foil {
  font-family: var(--font-display); font-weight: 800; color: var(--foil);
  line-height: 1.08; letter-spacing: -0.02em;
}
h2.foil { font-weight: 600; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.75rem); }
.pen { font-family: var(--font-pen); font-weight: 400; line-height: 1.3; }
.imprint {
  position: absolute; right: 7%; bottom: 6%;
  font-family: var(--font-imprint); font-weight: 700; font-size: clamp(.85rem, .7rem + .5vw, 1.15rem); letter-spacing: .08em;
  color: var(--imprint); text-shadow: 0 0 6px rgba(255, 120, 20, .7), 0 0 1px rgba(255, 190, 110, .9);
}

/* ---------- buttons and tabs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.5em; border: 2px solid transparent; border-radius: 4px;
  font-size: 1rem; font-weight: 700; line-height: 1.1; text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-block { width: 100%; }
.btn-foil {
  background: var(--foil); color: var(--foil-ink);
  box-shadow: inset 0 1px 0 rgba(255, 240, 195, .55), 0 2px 5px rgba(0, 0, 0, .3);
}
.btn-foil:hover { background: var(--foil-hi); }
.btn-foil:disabled { opacity: .6; cursor: progress; }
.btn-line { border-color: var(--foil); color: var(--foil); background: transparent; }
.btn-line:hover { background: rgba(224, 162, 30, .14); }
/* album index tabs: paper tabs that stick out of the page */
.tab {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 7px 7px 0 0; background: var(--print); color: var(--print-ink);
  font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); transition: background-color .15s, color .15s;
}
.tab:hover { background: var(--foil-hi); }
.tab[aria-pressed="true"] { background: var(--foil); color: var(--foil-ink); box-shadow: none; }
.btn-more {
  min-height: 44px; padding: 0 2px; border: 0; background: none; color: inherit;
  font-weight: 600; text-decoration: underline; text-underline-offset: .25em; cursor: pointer;
}

/* ---------- top bar: the album's spine label ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--cloth-deep); border-bottom: 1px solid rgba(224, 162, 30, .35); }
.topbar-inner { display: flex; align-items: center; gap: 24px; width: min(100% - 2 * var(--gutter), var(--max)); height: var(--topbar-h); margin-inline: auto; }
.brand { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; text-decoration: none; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--foil); letter-spacing: -0.01em; }
.brand-sub { font-family: var(--font-pen); font-size: 1.1rem; color: var(--chalk-soft); }
.topnav { display: flex; gap: 22px; margin-left: auto; }
.topnav a { padding: 10px 0; font-weight: 600; text-decoration: none; }
.topnav a:hover { color: var(--foil); text-decoration: underline; }
.lang { display: inline-flex; border: 1.5px solid rgba(224, 162, 30, .6); border-radius: 5px; overflow: hidden; }
.lang a { display: inline-grid; place-items: center; min-width: 44px; min-height: 40px; padding: 0 10px; font-size: .875rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; }
.lang a[aria-current="true"] { background: var(--foil); color: var(--foil-ink); }
.lang a:not([aria-current="true"]):hover { background: rgba(224, 162, 30, .16); }

/* ---------- album pages and spreads ---------- */
main { padding-bottom: clamp(32px, 5vw, 64px); }
.spread, .album-page {
  position: relative; width: min(100% - 2 * var(--gutter), var(--max)); margin: clamp(20px, 3vw, 40px) auto 0;
  background: var(--page); border-radius: 6px;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, .45), 0 24px 50px rgba(0, 0, 0, .35);
}
.album-page { padding: var(--page-pad); }
.page { padding: var(--page-pad); }
@media (min-width: 960px) {
  .spread { display: grid; grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 2fr 3fr; }   /* the brief: photo 40%, words 60% */
  .spread.about::before { left: 40%; }
  .spread.fit::before { display: none; }             /* its heading runs across both pages */
  /* the binding down the middle of an open spread */
  .spread::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 36px; translate: -50% 0; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .55) 45%, rgba(255, 255, 255, .05) 52%, rgba(0, 0, 0, .35) 60%, transparent);
  }
}

/* a photo mounted with gold corners */
.mount { margin: 0; }
.mount-photo {
  position: relative; padding: 10px; background: var(--print); box-shadow: var(--shadow-print);
  transform: rotate(var(--tilt, -1.6deg));
}
.corners {
  position: absolute; inset: -5px; pointer-events: none;
  --c: 34px;
  background:
    linear-gradient(135deg, var(--foil) 50%, transparent 50.5%) left top / var(--c) var(--c) no-repeat,
    linear-gradient(225deg, var(--foil) 50%, transparent 50.5%) right top / var(--c) var(--c) no-repeat,
    linear-gradient(45deg, var(--foil) 50%, transparent 50.5%) left bottom / var(--c) var(--c) no-repeat,
    linear-gradient(315deg, var(--foil) 50%, transparent 50.5%) right bottom / var(--c) var(--c) no-repeat;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .45));
}
.mount figcaption { margin-top: 22px; color: var(--chalk); font-size: 1.4rem; text-align: center; text-wrap: balance; transform: rotate(-1deg); }

/* ---------- 01 hero ---------- */
.hero .page-left { display: grid; place-items: center; }
.mount-hero { width: min(100%, 440px); }
.mount-hero .mount-photo { animation: settle 1.1s cubic-bezier(.16, 1, .3, 1) both; }
.mount-hero .imprint { animation: burn 1.6s steps(6, end) .5s both; }
@keyframes settle { from { transform: rotate(-5.5deg) translate(-6px, -14px); } }
@keyframes burn { from { opacity: .15; } }
.hero .page-right { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
/* the countdown is a handwritten note beside the dates */
.countdown { align-self: flex-start; margin-top: -6px; color: var(--foil-hi); font-size: 1.4rem; transform: rotate(-1.5deg); }
/* half a spread: the title keeps to three lines and the dates to one, so the gold button stays on the first screen */
.hero h1 { font-size: clamp(1.9rem, 1.1rem + 2.4vw, 3rem); }
.hero-dates { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.imprint-big {
  white-space: nowrap;
  font-family: var(--font-imprint); font-weight: 700; font-size: clamp(1.9rem, 1.1rem + 2.3vw, 3rem); letter-spacing: .04em;
  color: var(--imprint); text-shadow: 0 0 10px rgba(255, 120, 20, .55), 0 0 2px rgba(255, 190, 110, .8);
}
.hero-year { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--chalk-soft); }
.hero-sub { max-width: 40ch; color: var(--chalk-soft); font-size: 1.125rem; }
.city-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-free-note { color: var(--chalk-soft); font-size: 1.15rem; }

/* ---------- 02 facts ---------- */
.facts { width: min(100% - 2 * var(--gutter), var(--max)); margin: clamp(28px, 4vw, 48px) auto 0; }
.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
/* four paper plaques, in the brief's own words */
.fact { align-content: center; font-weight: 500; line-height: 1.35; }
.fact strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.facts-row .label:nth-child(4) { transform: rotate(.4deg); }
.facts-row li { display: grid; gap: 4px; justify-items: center; }

/* ---------- 03 who ---------- */
.about .page-left { display: grid; align-content: center; }
.mount-about { width: min(100%, 420px); margin-inline: auto; }
.mount-about .mount-photo { --tilt: 1.4deg; }
.about .page-right { display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.about-text { display: grid; gap: 14px; max-width: 62ch; }
.labels { display: grid; gap: 12px; margin: 10px 0 0; }
.label {
  display: grid; gap: 2px; padding: 12px 16px; background: var(--print); color: var(--print-ink);
  border-radius: 2px; box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 18px rgba(0, 0, 0, .25);
}
.label:nth-child(1) { transform: rotate(-.6deg); }
.label:nth-child(2) { transform: rotate(.5deg); }
.label:nth-child(3) { transform: rotate(-.3deg); }
.label dt { color: var(--print-soft); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.label dd { margin: 0; font-weight: 600; }

/* ---------- 04 meetings ---------- */
.events-head { display: grid; gap: 18px; }
.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filters::-webkit-scrollbar { display: none; }
.filters .tab { flex: none; }
.closed-note { max-width: 70ch; color: var(--chalk-soft); font-size: 1.15rem; }
.prints { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(30px, 4vw, 52px); margin-top: clamp(26px, 3.5vw, 44px); align-items: start; }
/* wide screens: one column of landscape prints, photo and words side by side, alternating, in date order */
@media (min-width: 900px) {
  .print { display: grid; grid-template-columns: 5fr 6fr; align-items: start; width: min(100%, 1040px); }
  .print:nth-child(even) { justify-self: end; grid-template-columns: 6fr 5fr; }
  .print:nth-child(even) .print-photo { order: 2; }
  .print-body { padding: 6px 22px 0; }
}
.print {
  scroll-margin-top: calc(var(--topbar-h) + 20px);
  padding: 12px 12px 24px; background: var(--print); color: var(--print-ink); border-radius: 3px; box-shadow: var(--shadow-print);
  transform: rotate(var(--tilt, 0deg)); transition: opacity .35s ease-out, filter .35s ease-out;
}
.print:nth-child(odd) { --tilt: -.6deg; }
.print:nth-child(even) { --tilt: .7deg; }
.print.is-dimmed { opacity: .3; filter: grayscale(1); }
.print:target { box-shadow: 0 0 0 4px var(--foil), var(--shadow-print); }
.print-photo { position: relative; }
.print-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.print-body { padding: 16px 8px 0; }
.print-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.print-date { font-family: var(--font-pen); font-size: 1.6rem; line-height: 1.1; color: var(--pen); }
/* written on the print in pen: free in green, the rest in the darkened gold */
.note-tag { font-size: 1.25rem; line-height: 1.1; }
.note-free { color: var(--leaf); }
.note-paid { color: var(--amber); }
.print h3 { margin-top: 10px; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); font-weight: 700; line-height: 1.25; }
.print-kind { font-weight: 500; color: var(--print-soft); }
.print-desc { margin-top: 10px; }
.days { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.days li { display: grid; gap: 2px; }
.day-k { color: var(--pen); font-weight: 700; font-size: .92rem; }
.logistics { display: grid; gap: 6px; margin: 18px 0 0; padding-top: 16px; border-top: 1px dashed rgba(31, 36, 32, .3); }
.logistics > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
.logistics dt { color: var(--print-soft); font-size: .9rem; }
.logistics dd { margin: 0; font-size: .97rem; font-weight: 500; }
.print-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 20px; }
.sales-soon { font-family: var(--font-pen); font-size: 1.35rem; color: var(--pen); }
.more { margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(31, 36, 32, .3); font-size: .97rem; }
.more > * + * { margin-top: 10px; }
.more h4 { margin-top: 16px; font-size: 1rem; }
.more ul { margin: 6px 0 0; padding-left: 1.2em; }
.more li + li { margin-top: 4px; }
.more li::marker { color: var(--pen); }
.print.is-past .print-actions .btn { display: none; }

/* ---------- registration card ---------- */
.signup { display: grid; place-items: center; }
.card-form {
  width: min(100%, 680px); padding: clamp(24px, 4vw, 44px); color: var(--print-ink); border-radius: 3px; box-shadow: var(--shadow-print);
  /* a ruled card */
  background: repeating-linear-gradient(180deg, transparent 0 35px, rgba(43, 69, 168, .1) 35px 36px), var(--print);
}
.card-form h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 1.05rem + 1.2vw, 1.9rem); line-height: 1.2; }
.form-lead { margin-top: 10px; color: var(--print-soft); }
.reg-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 24px; }
@media (min-width: 640px) {
  .reg-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reg-form .field:first-child, .reg-form .consent, .reg-form .form-status, .reg-form button { grid-column: 1 / -1; }
}
.field { display: grid; gap: 4px; font-size: .9rem; font-weight: 600; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 10px 2px; border: 0; border-bottom: 2px solid var(--print-soft); border-radius: 0;
  background: transparent; color: var(--print-ink); font: inherit; font-size: 1.0625rem; font-weight: 400;
}
.field select { appearance: none; padding-right: 28px; background: linear-gradient(45deg, transparent 50%, var(--print-ink) 50%) right 10px center / 7px 7px no-repeat, linear-gradient(135deg, var(--print-ink) 50%, transparent 50%) right 4px center / 7px 7px no-repeat; }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid rgba(43, 69, 168, .28); outline-offset: 2px; border-bottom-color: var(--pen); }
.field [aria-invalid="true"] { border-bottom-color: var(--error); }
.field-error { color: var(--error); font-size: .82rem; font-weight: 500; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--print-soft); font-size: .92rem; }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--pen); }
.consent.is-invalid span { color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; font-size: .95rem; font-weight: 600; }
.form-status.is-error { color: var(--error); }
.form-done { display: grid; justify-items: center; gap: 10px; padding-block: 24px; text-align: center; }
.icon-done { width: 52px; height: 52px; color: var(--leaf); stroke-width: 2.6; }
.form-done h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; }

/* ---------- 05 for whom ---------- */
.fit { padding-top: var(--page-pad); }
.fit-title { grid-column: 1 / -1; padding-inline: var(--page-pad); }
.fit .page { padding-top: 22px; }
.fit-head { color: var(--foil-hi); font-size: 1.65rem; }
.fit-list { display: grid; gap: 16px; margin: 18px 0 0; padding: 0; list-style: none; }
.fit-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.fit-list .icon { width: 24px; height: 24px; margin-top: 2px; }
.fit-yes .icon { color: var(--foil); }
.fit-no .icon { color: var(--chalk-soft); }

/* ---------- 06 what parents write ---------- */
.reviews-note { margin-top: 8px; color: var(--chalk-soft); font-size: 1.2rem; }
.pasted { columns: 3 260px; column-gap: clamp(24px, 3vw, 40px); margin-top: clamp(24px, 3.5vw, 40px); }
.pasted { text-align: center; }
.paste {
  display: inline-block; width: 100%; text-align: left;
  position: relative; break-inside: avoid; margin: 0 0 clamp(28px, 3vw, 40px); padding: 8px; background: var(--print);
  box-shadow: var(--shadow-print); transform: rotate(var(--tilt, 0deg));
}
.paste:nth-child(3n + 1) { --tilt: -1.1deg; }
.paste:nth-child(3n + 2) { --tilt: .9deg; }
.paste:nth-child(3n) { --tilt: -.4deg; }
.paste .corners { --c: 24px; }
.paste-story { width: min(100%, 250px); margin-inline: auto; }

/* ---------- 07 questions ---------- */
.faq-list { max-width: 820px; margin-top: 20px; }
.faq-list details { border-bottom: 1px solid rgba(242, 238, 227, .18); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 12px 0;
  font-weight: 600; font-size: 1.0625rem; cursor: pointer; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--foil); }
.faq-list summary .icon { color: var(--foil); transition: rotate .2s; }
.faq-list details[open] summary .icon { rotate: 180deg; }
.faq-list details p { max-width: 70ch; padding-bottom: 18px; color: var(--chalk-soft); }
.faq-list details a { color: var(--foil); }

/* ---------- back cover ---------- */
.cover-back { display: grid; justify-items: center; gap: 12px; width: min(100% - 2 * var(--gutter), var(--max)); margin: clamp(48px, 6vw, 80px) auto 0; text-align: center; }
.cover-line { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem); }
.cover-sign { color: var(--chalk); font-size: 1.7rem; margin-bottom: 10px; transform: rotate(-2deg); }

/* ---------- footer ---------- */
.site-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  width: min(100% - 2 * var(--gutter), var(--max)); margin: 0 auto; padding: 28px 0 36px;
  border-top: 1px solid rgba(224, 162, 30, .3); color: var(--chalk-soft); font-size: .95rem;
}
.site-foot a { color: var(--chalk); }

/* ---------- phones ---------- */
.thumb-bar { display: none; }
.sheet { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--print); color: var(--print-ink); }
.sheet::backdrop { background: rgba(0, 0, 0, .6); }
.sheet-inner { position: relative; padding: 64px 22px 40px; }
.sheet-inner h3 { font-size: 1.3rem; line-height: 1.25; }
.sheet-body { margin-top: 14px; }
.sheet-close { position: fixed; top: 10px; right: 10px; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--cloth); color: var(--chalk); cursor: pointer; }

@media (max-width: 959px) {
  .hero .page-left { padding-top: 18px; padding-bottom: 4px; }
  .mount-hero { width: min(54%, 240px); }
  .mount figcaption { font-size: 1.15rem; margin-top: 12px; }
  .hero .page-right { padding-top: 14px; gap: 14px; }
}
@media (max-width: 760px) {
  :root { --topbar-h: 58px; }
  .topnav { display: none; }
  .lang { margin-left: auto; }
  .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .thumb-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 6px;
    padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    background: rgba(14, 39, 29, .97); border-top: 1px solid rgba(224, 162, 30, .4);
    transition: transform .25s cubic-bezier(.16, 1, .3, 1), visibility 0s;
  }
  .thumb-bar .btn { min-height: 46px; padding: 0 .7em; }
  .thumb-bar .chip {
    display: grid; place-items: center; min-width: 0; min-height: 46px; padding: 0 4px; font-size: .875rem;
    border: 1.5px solid rgba(224, 162, 30, .55); border-radius: 6px; font-weight: 600; text-decoration: none;
  }
  .thumb-bar.is-away { visibility: hidden; transform: translateY(100%); transition: transform .25s cubic-bezier(.16, 1, .3, 1), visibility 0s .25s; }
  .print { --tilt: 0deg !important; }
  /* the filter tabs scroll sideways: the fading edge says so */
  .filters { mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .logistics > div { grid-template-columns: 84px minmax(0, 1fr); }
}
@media (max-width: 420px) { .brand-sub { display: none; } }
@media (max-width: 370px) {
  /* the narrowest phones: a smaller first button and tighter chips so «Кишинёв» fits */
  .thumb-bar { gap: 4px; }
  .thumb-bar .btn { padding: 0 .55em; font-size: .9rem; }
  .thumb-bar .chip { padding: 0 2px; font-size: .8125rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
