/* Nolari rozcestník (nolari.com) — tokens of the brand guide (the same as nolari-brand/public/base.css) and the
   styles of the hub, the instructions page and the 404 page. No framework, no build. */

@font-face { font-family: "Season Sans"; font-weight: 400; font-display: swap; src: url(/fonts/SeasonSans_Regular.woff) format("woff"); }
@font-face { font-family: "Season Sans"; font-weight: 500; font-display: swap; src: url(/fonts/SeasonSans_Medium.woff) format("woff"); }
@font-face { font-family: "Season Serif"; font-weight: 400; font-display: swap; src: url(/fonts/SeasonSerif_Regular.woff) format("woff"); }

:root {
  --snow: #ffffff;       /* Pure Snow */
  --paper: #f6f3ee;      /* Paper Mist */
  --dune: #e0d7c5;       /* Dune Beige */
  --lime: #d9ff6a;       /* Neon Lime */
  --woodland: #214724;   /* Woodland Green */
  --evergreen: #173219;  /* Evergreen */
  --cedar: #3c1c0c;      /* Cedar Bark */
  --tree: #231109;       /* Black Tree */

  --ink: var(--tree);
  --ink-soft: #6e5f55;
  --line: #e4ddd2;
  --line-strong: #cbbfae;
  --on-dark: #cdd8c8;    /* body text on evergreen */
  --on-dark-soft: #93a68f;

  --serif: "Season Serif", Georgia, "Times New Roman", serif;
  --sans: "Season Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 8px;
  --card-radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--evergreen);
  color: var(--ink);
  font: 400 1.05rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; }
h1 em, h2 em, h3 em { font-family: var(--sans); font-style: normal; letter-spacing: -0.035em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.on-light :focus-visible, .countries :focus-visible, .app :focus-visible { outline-color: var(--woodland); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.label { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; padding: .7rem 1rem; border-radius: var(--radius); background: var(--lime); color: var(--evergreen); font-weight: 500; text-decoration: none; }
.skip:focus { top: 1rem; }

/* Buttons: lime is the one main action on dark, woodland on light */
.btn {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3.1rem; padding: .8rem 1.35rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 500 1rem/1.2 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--lime { background: var(--lime); color: var(--evergreen); }
.btn--lime:hover { background: #e6ff99; }
.btn--wood { background: var(--woodland); color: var(--paper); }
.btn--wood:hover { background: var(--evergreen); }
.btn--line { border-color: rgba(246, 243, 238, .4); color: var(--paper); }
.btn--line:hover { border-color: var(--paper); background: rgba(246, 243, 238, .08); }
.btn--line-dark { border-color: rgba(33, 71, 36, .35); color: var(--woodland); }
.btn--line-dark:hover { border-color: var(--woodland); background: rgba(33, 71, 36, .06); }

.logo { display: inline-flex; color: inherit; }
.logo svg { width: 116px; height: auto; }

/* The strip of the branch pattern (img/pruh.svg, from the brand kit), drifting slowly sideways */
.pruh {
  height: clamp(40px, 5vw, 64px);
  background: var(--lime) url(/img/pruh.svg) repeat-x 0 0 / auto 100%;
  animation: drift 60s linear infinite;
}
@keyframes drift { to { background-position-x: calc(-1 * clamp(40px, 5vw, 64px) * 250 / 21.3 * 4); } }

/* ------------------------------------------------------------------------------------------------ hero ---- */
.hero {
  --mx: 72%; --my: 32%;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  color: var(--paper); background: var(--evergreen);
}
.hero__media { position: absolute; inset: -8% 0; z-index: -3; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; animation: breathe 32s ease-in-out infinite alternate; transform-origin: 62% 38%; }
@keyframes breathe { from { transform: scale(1.04); } to { transform: scale(1.16) translate(-1.5%, 1%); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(23, 50, 25, .92) 0%, rgba(23, 50, 25, .62) 45%, rgba(23, 50, 25, .2) 100%),
    linear-gradient(180deg, rgba(23, 50, 25, .55) 0%, rgba(23, 50, 25, 0) 30%, rgba(23, 50, 25, 0) 62%, rgba(23, 50, 25, .96) 100%);
}
/* light in the branches: follows the pointer, drifts on its own on touch screens */
.hero__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(42vmax circle at var(--mx) var(--my), rgba(217, 255, 106, .2), rgba(217, 255, 106, .05) 45%, transparent 70%);
  mix-blend-mode: screen;
}

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: clamp(1.1rem, .8rem + 1vw, 1.8rem); }
.topbar__nav { display: flex; align-items: center; gap: clamp(.4rem, 1.4vw, 1.6rem); }
.topbar__nav > a { font-size: .95rem; color: var(--on-dark); text-decoration: none; padding: .5rem .2rem; transition: color .2s ease; }
.topbar__nav > a:hover { color: var(--lime); }
/* language picker of the hub: a pill with the code, the native select lies invisibly on top of it (needs site.js) */
.langpick {
  position: relative; display: inline-flex; align-items: center; gap: .45rem;
  min-height: 2.6rem; padding: .3rem .85rem .3rem .75rem;
  border: 1px solid rgba(246, 243, 238, .28); border-radius: 999px;
  color: var(--paper); font: 500 .8rem/1 var(--mono); letter-spacing: .06em; cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
html:not(.js) .langpick { display: none; }
.langpick:hover { border-color: var(--lime); background: rgba(246, 243, 238, .06); }
.langpick:focus-within { outline: 2px solid var(--lime); outline-offset: 3px; }
.langpick svg { width: 15px; height: 15px; flex: none; }
.langpick .langpick__chev { width: 10px; height: 10px; opacity: .7; }
.langpick select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; color: var(--ink); background: var(--snow); }

/* language links of the instructions page */
.lang { display: inline-flex; padding: 3px; border: 1px solid rgba(246, 243, 238, .28); border-radius: 999px; }
.lang a {
  min-width: 2.6rem; min-height: 2.1rem; padding: .25rem .6rem; border: 0; border-radius: 999px;
  background: transparent; color: var(--on-dark); font: 500 .8rem/1 var(--mono); letter-spacing: .06em; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.lang [aria-current="page"] { background: var(--lime); color: var(--evergreen); }

.hero__body { align-self: center; padding-block: clamp(2rem, 1rem + 5vh, 5rem) clamp(2.5rem, 1rem + 6vh, 6rem); }
.hero__body .label { color: var(--lime); display: flex; align-items: center; gap: .8rem; }
.hero__body .label::before { content: ""; width: 2.2rem; height: 1px; background: currentColor; }
.hero h1 { margin-top: clamp(1.2rem, .8rem + 1.5vw, 2rem); font-size: clamp(2.9rem, 1.2rem + 7vw, 8rem); line-height: .94; letter-spacing: -0.04em; max-width: 12ch; }
/* a long claim (Hungarian: "Mintha az erdőből jött volna, csak szebb.") gets smaller and wider so it keeps three lines */
.hero h1.is-long { font-size: clamp(2.3rem, .9rem + 5.2vw, 6rem); max-width: 15ch; }
.hero h1 .h1-serif { display: block; }
/* "Přirozeně." in the languages of the six shops, one after another */
.cycle { display: flex; align-items: baseline; gap: .5rem; margin-top: .08em; height: 1.08em; overflow: hidden; color: var(--lime); }
.cycle__word { display: inline-block; font-family: var(--sans); letter-spacing: -0.045em; white-space: nowrap; transition: transform .6s var(--ease), opacity .6s var(--ease); }
.cycle__code { font: 500 clamp(.7rem, .6rem + .3vw, .9rem)/1 var(--mono); letter-spacing: .08em; padding: .35em .5em; border: 1px solid rgba(217, 255, 106, .5); border-radius: 999px; align-self: center; transition: opacity .6s var(--ease); }
.cycle.is-out .cycle__word { transform: translateY(-105%); opacity: 0; }
.cycle.is-in .cycle__word { transform: translateY(105%); opacity: 0; transition: none; }
.cycle.is-out .cycle__code, .cycle.is-in .cycle__code { opacity: 0; }
.hero .lead { max-width: 36rem; margin-top: clamp(1.4rem, 1rem + 1vw, 2.2rem); font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); line-height: 1.5; color: var(--on-dark); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: clamp(1.8rem, 1.2rem + 1.5vw, 2.6rem); }

.hero__foot { display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding-bottom: clamp(1.2rem, 1rem + 1vw, 2rem); color: var(--on-dark-soft); }
.hero__foot .label { color: inherit; }
.scroll-cue { display: inline-flex; align-items: center; gap: .8rem; color: var(--on-dark); text-decoration: none; }
.scroll-cue__line { position: relative; width: 1px; height: 44px; overflow: hidden; background: rgba(246, 243, 238, .2); }
.scroll-cue__line::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--lime); animation: fall 2.2s var(--ease) infinite; }
@keyframes fall { to { top: 100%; } }
.hero__shops { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .2rem .9rem; }
.hero__shops a { color: var(--on-dark-soft); text-decoration: none; font-size: .9rem; transition: color .2s ease; }
.hero__shops a:hover { color: var(--lime); }

/* --------------------------------------------------------------------------------------------- sections ---- */
.section { padding-block: clamp(4.5rem, 3rem + 6vw, 9rem); }
.section-head { display: grid; gap: 1.1rem; max-width: 52rem; margin-bottom: clamp(2.2rem, 1.6rem + 2.5vw, 4rem); }
.section-head h2 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.6rem); line-height: .98; letter-spacing: -0.035em; }
.section-head .lead { max-width: 40rem; font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); }
.label-num { display: inline-flex; align-items: center; gap: .7rem; }
.label-num b { font-weight: 500; }

/* countries */
.countries { background: var(--paper); color: var(--ink); }
.countries .label { color: var(--ink-soft); }
.countries .section-head h2 em { color: var(--woodland); }
.countries .lead { color: var(--ink-soft); }
.country-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.country {
  --x: 50%; --y: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto auto; align-items: start;
  min-height: clamp(210px, 15vw + 90px, 290px); padding: clamp(1.2rem, 1rem + .8vw, 1.8rem);
  border: 1px solid var(--line); border-radius: var(--card-radius);
  background: var(--snow); color: var(--ink); text-decoration: none;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease);
}
.country::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--woodland);
  clip-path: circle(0% at var(--x) var(--y)); transition: clip-path .7s var(--ease);
}
.country::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: 22px;
  background: var(--lime) url(/img/pruh.svg) repeat-x 0 0 / auto 100%;
  transform: translateY(101%); transition: transform .5s var(--ease) .1s;
}
.country:hover, .country:focus-visible { color: var(--paper); border-color: var(--woodland); transform: translateY(-3px); box-shadow: 0 24px 50px -28px rgba(23, 50, 25, .55); }
.country:hover::before, .country:focus-visible::before { clip-path: circle(150% at var(--x) var(--y)); }
.country:hover::after, .country:focus-visible::after { transform: none; }
.country__code { font: 500 .78rem/1 var(--mono); letter-spacing: .1em; padding: .45em .65em; border: 1px solid currentColor; border-radius: 999px; justify-self: start; opacity: .7; }
.country__badge { grid-column: 2; grid-row: 1; justify-self: end; white-space: nowrap; font: 500 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: .5em .75em; border-radius: 999px; background: var(--lime); color: var(--evergreen); }
.country__name { grid-column: 1 / -1; align-self: end; margin-top: 1.4rem; font-family: var(--serif); font-size: clamp(2.1rem, 1.5rem + 1.6vw, 3.1rem); line-height: 1; letter-spacing: -0.03em; }
.country__meta { grid-column: 1; margin-top: .55rem; font-size: .95rem; color: var(--ink-soft); transition: color .45s var(--ease); }
/* "Polsko · nolari.pl · zł"; the name is hidden where it is the same as the native one (Česko in Czech) */
.country__meta > :not([hidden]) ~ span::before { content: "·"; margin: 0 .45em; }
.country__word { grid-column: 1; margin-top: .9rem; font-weight: 500; color: var(--woodland); transition: color .45s var(--ease); }
.country__go {
  grid-column: 2; grid-row: 3 / 5; align-self: end;
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  border: 1px solid var(--line-strong); transition: background-color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
}
.country__go svg { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.country:hover .country__meta, .country:focus-visible .country__meta { color: var(--on-dark); }
.country:hover .country__word, .country:focus-visible .country__word { color: var(--lime); }
.country:hover .country__go, .country:focus-visible .country__go { background: var(--lime); border-color: var(--lime); color: var(--evergreen); transform: rotate(-45deg); }
.country.is-suggested { border-color: var(--woodland); box-shadow: inset 0 0 0 1px var(--woodland); }

.soon { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.4rem; align-items: baseline; margin-top: clamp(1.8rem, 1.4rem + 1vw, 2.6rem); padding-top: 1.4rem; border-top: 1px solid var(--line); }
.soon ul { display: flex; flex-wrap: wrap; gap: .3rem .1rem; color: var(--ink-soft); font-size: .95rem; }
.soon li:not(:last-child)::after { content: "·"; margin: 0 .45rem; color: var(--line-strong); }

/* business */
.business { position: relative; isolation: isolate; background: var(--evergreen); color: var(--paper); }
.business .label { color: var(--on-dark-soft); }
.business .section-head h2 em { color: var(--lime); }
.business .lead { color: var(--on-dark); }
.biz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.5vw, 20px); }
.biz {
  --pad: clamp(1.4rem, 1rem + 1.6vw, 2.6rem);
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(520px, 40vw + 200px, 720px); padding: var(--pad);
  border-radius: var(--card-radius); background: var(--woodland);
}
.biz__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.4s var(--ease); }
.biz::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23, 50, 25, .12) 0%, rgba(23, 50, 25, .4) 28%, rgba(23, 50, 25, .88) 50%, rgba(23, 50, 25, .97) 72%); }
.biz:hover .biz__img { transform: scale(1.07); }
.business .biz__kicker { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--lime); }
.biz__kicker span:last-child { color: var(--on-dark); }
.biz h3 { margin-top: 1rem; font-size: clamp(2rem, 1.3rem + 2.2vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; max-width: 14ch; }
.biz h3 em { color: var(--lime); }
.biz h3 a { text-decoration: none; }
/* the whole card opens the site; the buttons stay above */
.biz h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.biz p { max-width: 34rem; margin-top: 1rem; color: var(--on-dark); }
.biz__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.6rem; }
.biz__note { margin-top: 1rem; font-size: .88rem; color: var(--on-dark-soft); }

/* app */
.app { position: relative; isolation: isolate; overflow: hidden; background: var(--lime); color: var(--evergreen); }
.app .label { color: var(--woodland); }
.app-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(2.5rem, 2rem + 4vw, 7rem); }
.app .section-head { margin-bottom: 0; }
.app .section-head h2 em { color: var(--woodland); }
.app .lead { color: var(--evergreen); }
.stores { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.2rem; }
.store { display: inline-flex; align-items: center; gap: .8rem; min-height: 3.6rem; padding: .55rem 1.3rem .55rem 1rem; border-radius: 14px; text-decoration: none; }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: grid; line-height: 1.15; }
.store small { font-size: .74rem; opacity: .8; }
.store b { font-weight: 500; font-size: 1.05rem; }
a.store { background: var(--evergreen); color: var(--paper); transition: background-color .2s ease, transform .2s var(--ease); }
a.store:hover { background: var(--tree); transform: translateY(-2px); }
.store--soon { border: 1.5px dashed rgba(23, 50, 25, .4); color: var(--woodland); }
/* the branch pattern of the brand guide, big, fading in behind the phone */
.app__pattern { position: absolute; inset: 0; z-index: -1; opacity: .13; pointer-events: none;
  background: url(/img/vzor.svg) repeat 0 0 / 1000px 180px;
  -webkit-mask-image: linear-gradient(100deg, transparent 38%, #000 80%); mask-image: linear-gradient(100deg, transparent 38%, #000 80%); }

.phone-stage { display: grid; place-items: center; perspective: 1400px; }
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 19; padding: 10px;
  border-radius: 46px; background: var(--tree);
  box-shadow: 0 50px 80px -30px rgba(23, 50, 25, .55), 0 0 0 1px rgba(0, 0, 0, .25), inset 0 0 0 2px #3a2a20;
  transform: rotateY(-14deg) rotateX(6deg) rotateZ(2deg); transition: transform .8s var(--ease);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { translate: 0 -12px; } }
.phone__screen { position: relative; height: 100%; overflow: hidden; border-radius: 37px; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; }
.phone__notch { position: absolute; top: 9px; left: 50%; width: 32%; height: 24px; translate: -50% 0; border-radius: 99px; background: var(--tree); z-index: 2; }
.phone__bar { display: flex; align-items: center; justify-content: center; padding: 44px 16px 10px; color: var(--woodland); }
.phone__bar svg { width: 70px; }
.phone__photo { position: relative; margin: 0 12px; flex: 1; min-height: 0; border-radius: 18px; overflow: hidden; }
.phone__photo img { width: 100%; height: 100%; object-fit: cover; }
.phone__card { margin: 10px 12px 14px; padding: 13px 14px; border-radius: 16px; background: var(--snow); box-shadow: 0 8px 24px -16px rgba(35, 17, 9, .5); }
.phone__card p { font-family: var(--serif); font-size: 1.02rem; line-height: 1.15; letter-spacing: -0.01em; }
.phone__card p em { font-family: var(--sans); font-style: normal; color: var(--woodland); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 11px; }
.steps li { display: grid; gap: 5px; font-size: .66rem; color: var(--ink-soft); }
.steps li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); }
.steps .done::before { background: var(--woodland); }
.steps .now::before { background: linear-gradient(90deg, var(--woodland) 55%, var(--line) 55%); }
.steps .now { color: var(--woodland); font-weight: 500; }

/* footer */
.footer { position: relative; isolation: isolate; overflow: hidden; background: var(--evergreen); color: var(--on-dark); }
.footer__pattern { position: absolute; inset: 0; z-index: -1; opacity: .55; background: url(/img/vzor.svg) repeat 0 0 / 1000px 180px;
  -webkit-mask-image: linear-gradient(180deg, transparent 10%, #000 100%); mask-image: linear-gradient(180deg, transparent 10%, #000 100%); }
.footer__inner { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem) 2rem; }
.footer__top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 3rem; }
.footer__brand .logo { color: var(--paper); }
.footer__brand .logo svg { width: 150px; }
.footer__claim { margin-top: 1.6rem; font-family: var(--serif); font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem); line-height: 1; letter-spacing: -0.03em; color: var(--paper); }
.footer__claim em { font-family: var(--sans); font-style: normal; color: var(--lime); letter-spacing: -0.04em; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer__cols h2 { font: 500 .74rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-soft); margin-bottom: 1.1rem; }
.footer__cols li + li { margin-top: .55rem; }
.footer__cols a { text-decoration: none; transition: color .2s ease; }
.footer__cols a:hover { color: var(--lime); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; margin-top: clamp(3rem, 2rem + 3vw, 5rem); padding-top: 1.4rem; border-top: 1px solid rgba(246, 243, 238, .12); font-size: .9rem; color: var(--on-dark-soft); }

/* reveal on scroll (only with JS: html.js) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------------------------- simple pages ---- */
.page { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; background: var(--paper); color: var(--ink); }
.page .topbar { color: var(--woodland); flex-wrap: wrap; }
.page .lang { border-color: var(--line-strong); }
.page .lang a { color: var(--ink-soft); }
.page .lang [aria-current="page"] { background: var(--woodland); color: var(--paper); }
.page :focus-visible { outline-color: var(--woodland); }
.page main { padding-block: clamp(2.5rem, 2rem + 4vw, 6rem) clamp(3rem, 2rem + 4vw, 6rem); }
.page .label { color: var(--ink-soft); }
.page h1 { margin-top: 1rem; max-width: 18ch; font-size: clamp(2.5rem, 1.5rem + 4vw, 5rem); line-height: .98; letter-spacing: -0.035em; color: var(--woodland); }
.page h1 em { color: var(--evergreen); }
.page .lead { max-width: 42rem; margin-top: 1.4rem; font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); color: var(--ink-soft); }
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: clamp(2.2rem, 1.6rem + 2vw, 3.5rem); }
.doc {
  position: relative; display: flex; flex-direction: column; gap: .8rem; min-height: 260px; padding: 1.5rem;
  border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--snow); text-decoration: none;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.doc:hover { border-color: var(--woodland); transform: translateY(-3px); box-shadow: 0 24px 50px -30px rgba(23, 50, 25, .5); }
.doc__type { align-self: flex-start; font: 500 .74rem/1 var(--mono); letter-spacing: .1em; padding: .5em .7em; border-radius: 999px; background: var(--lime); color: var(--evergreen); }
.doc h2 { font-size: 1.6rem; line-height: 1.08; letter-spacing: -0.02em; color: var(--woodland); }
.doc p { color: var(--ink-soft); font-size: .98rem; }
.doc__go { margin-top: auto; display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; color: var(--woodland); }
.page-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.4rem; font-size: .92rem; color: var(--ink-soft); }
.page-foot a { color: var(--woodland); }

.notfound { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; background: var(--evergreen); color: var(--paper); }
.notfound main { align-self: center; padding-block: 3rem; }
.notfound h1 { font-size: clamp(2.8rem, 1.6rem + 5vw, 6rem); line-height: .96; letter-spacing: -0.035em; max-width: 12ch; }
.notfound h1 em { color: var(--lime); }
.notfound p { max-width: 34rem; margin: 1.4rem 0 2.2rem; color: var(--on-dark); }

/* ----------------------------------------------------------------------------------------- responsive ---- */
@media (max-width: 1080px) {
  .country-grid { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .biz-grid { grid-template-columns: 1fr; }
  /* the text is too tall to sit on the photo: the photo goes on top of the card */
  .biz { min-height: 0; justify-content: flex-start; }
  .biz::before { display: none; }
  .biz__img { position: relative; z-index: 0; width: calc(100% + 2 * var(--pad)); max-width: none; height: auto; aspect-ratio: 4 / 3; margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 1.4rem; }
  .docs { grid-template-columns: 1fr; }
  .doc { min-height: 0; }
  .topbar__nav > a { display: none; }
  .hero__shops { display: none; }
}
@media (max-width: 560px) {
  .country-grid { grid-template-columns: 1fr; }
  .country { min-height: 0; grid-template-rows: auto auto auto auto; }
  .country__name { margin-top: 1rem; }
  .soon { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols nav:last-child { grid-column: 1 / -1; }
  .hero__cta .btn { flex: 1 1 auto; }
  .phone { width: min(260px, 72vw); }
  .page .lang a { min-width: 2.2rem; padding-inline: .35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
