/* Agave Spirits — noční cantina v Oaxace: tmavé dřevo, teplý reflektor, zlatá z etiket.
   Layout: celoobrazovkový 3D bar (scéna) → redakční sekce příběhu → katalog e-shopu. */
:root {
  --ink: #0c0a08;        /* noc / pozadí */
  --char: #16120e;       /* pálené dřevo — plochy */
  --char-2: #1f1913;
  --line: rgba(198, 164, 110, 0.2);
  --bone: #efe7da;       /* text */
  --smoke: #a09584;      /* sekundární text */
  --gold: #c6a46e;       /* akcent z etiket */
  --gold-hi: #e3c995;
  --agave: #8fae9b;      /* zeleň agáve — jen detaily */

  --f-display: "Bodoni Moda", "Noto Serif JP", Didot, "Bodoni 72", Georgia, serif;
  --f-serif: "Bodoni Moda", "Noto Serif JP", Didot, Georgia, serif;
  --f-body: Manrope, "Noto Sans JP", "Helvetica Neue", system-ui, sans-serif;
  --f-mono: Manrope, "Noto Sans JP", "Helvetica Neue", system-ui, sans-serif; /* údaje: Manrope s tabulkovými číslicemi */

  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font: 400 16.5px/1.65 var(--f-body); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 1px solid var(--gold-hi); outline-offset: 3px; }
a { color: inherit; }
.sel { user-select: all; }

.eyebrow {
  font: 600 12px/1.4 var(--f-body); letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 14px;
}
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.display {
  font: 400 clamp(40px, 6vw, 86px)/1.04 var(--f-display); letter-spacing: -.01em;
  margin: 0; text-wrap: balance;
}
.display em { font-style: italic; color: var(--gold-hi); }
.display--sm { font-size: clamp(34px, 4.4vw, 60px); }

/* tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; border-radius: 999px; padding: 14px 26px;
  font: 600 13px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.btn--gold { background: var(--gold); color: #17120c; }
.btn--gold:hover { background: var(--gold-hi); }
.btn--ghost { border-color: var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); }
.btn--sm { padding: 11px 18px; }
.btn--block { width: 100%; }
.chip, .pill {
  border: 1px solid var(--line); background: rgba(22, 18, 14, .6); border-radius: 999px;
  padding: 8px 14px; font: 500 13px/1 var(--f-body); color: var(--smoke);
  transition: color .25s, border-color .25s, background .25s;
}
.chip:hover, .pill:hover { color: var(--bone); border-color: var(--gold); }

/* hlavička */
.top {
  position: fixed; inset: 0 0 auto; z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--gut-r) 18px var(--gut);
  background: linear-gradient(var(--ink), rgba(12, 10, 8, 0));
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.top__meta { display: grid; font: 600 11px/1.6 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--smoke); }
.top__meta span:first-child { color: var(--gold); }
.logo {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  font: 500 21px/1 var(--f-body); letter-spacing: .3em; text-transform: uppercase;
}
.logo svg { width: 40px; height: 40px; color: var(--bone); transition: transform 1.2s var(--ease); }
.logo:hover svg { transform: rotate(45deg); }
.top__nav { justify-self: end; display: flex; align-items: center; gap: 24px; font: 500 14px/1 var(--f-body); }
.top__nav a { text-decoration: none; color: var(--smoke); transition: color .2s; }
.top__nav a:hover { color: var(--bone); }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: rgba(22, 18, 14, .7);
  border-radius: 999px; padding: 8px 10px 8px 14px; backdrop-filter: blur(8px);
}
.cart-btn svg { width: 16px; height: 16px; }
.cart-btn b { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--char-2); font: 600 12px/1 var(--f-body); transition: background .3s, color .3s; }
.cart-btn.bump b { background: var(--gold); color: #17120c; }

/* scéna */
.stage { position: relative; height: 100svh; min-height: 620px; max-height: 1100px; overflow: hidden; background: var(--ink); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.stage::after { /* vinětace a zrno */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 45%, transparent 55%, rgba(0, 0, 0, .55));
}
.loader {
  position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--ink); color: var(--smoke); font: 500 13px var(--f-body); letter-spacing: .1em; text-transform: uppercase;
  transition: opacity 1s var(--ease), visibility 1s;
}
.loader svg { width: 54px; color: var(--gold); animation: spin 6s linear infinite; }
.loader.is-done { opacity: 0; visibility: hidden; }
@keyframes spin { to { transform: rotate(360deg); } }

.caption {
  position: absolute; z-index: 3; left: 50%; bottom: 104px; transform: translateX(-50%);
  width: min(560px, calc(100% - 32px)); text-align: center; pointer-events: none;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.caption > * { pointer-events: auto; }
.caption__brand { margin: 0; font: italic 400 24px/1.1 var(--f-serif); color: var(--gold-hi); }
.caption__name {
  margin: 4px 0 10px; font: 500 clamp(40px, 4.8vw, 66px)/1.02 var(--f-display); letter-spacing: -.005em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .6);
}
.caption__spec { margin: 0 0 16px; font: 500 14px/1.5 var(--f-body); letter-spacing: .02em; color: #c4b9a8; }
.caption__row { display: flex; justify-content: center; align-items: center; gap: 18px; }
.caption__price { font: 600 17px/1 var(--f-body); }
.caption.swap .caption__name, .caption.swap .caption__brand, .caption.swap .caption__spec { animation: rise .7s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }

.arrow {
  position: absolute; z-index: 3; top: 46%; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(22, 18, 14, .55); backdrop-filter: blur(6px); display: grid; place-items: center;
  transition: border-color .2s, opacity .4s;
}
.arrow:hover { border-color: var(--gold); }
.arrow svg { width: 18px; }
.arrow--l { left: calc(var(--gut) + 8px); }
.arrow--r { right: calc(var(--gut-r) + 8px); }

.stage__foot {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 var(--gut-r) calc(26px + env(safe-area-inset-bottom, 0px)) var(--gut);
  transition: opacity .5s;
}
.counter, .hint { font: 500 12.5px/1.3 var(--f-body); letter-spacing: .06em; color: var(--smoke); }
.hint { justify-self: end; }
.pills {
  display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(22, 18, 14, .75);
  border: 1px solid var(--line); backdrop-filter: blur(10px); max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.pills::-webkit-scrollbar { display: none; }
.pill { border: 0; background: transparent; white-space: nowrap; padding: 10px 16px; font-size: 14px; }
.pill[aria-selected="true"] { background: var(--bone); color: var(--ink); }

/* detail */
.detail {
  position: absolute; z-index: 4; top: 96px; right: var(--gut-r); bottom: 24px; width: min(440px, 40vw);
  overflow-y: auto; padding: 30px 30px 26px; border: 1px solid var(--line); border-radius: 22px;
  background: rgba(17, 14, 11, .82); backdrop-filter: blur(18px) saturate(1.1);
  animation: panel .7s var(--ease);
}
@keyframes panel { from { opacity: 0; transform: translateX(30px); } }
.detail__close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; font-size: 20px; line-height: 1; color: var(--smoke);
}
.detail__close:hover { color: var(--bone); border-color: var(--gold); }
.detail__name { margin: 0 0 12px; font: 500 46px/1.05 var(--f-display); text-wrap: balance; }
.detail__limited { display: inline-block; margin: 0 0 14px; padding: 6px 10px; border: 1px solid var(--gold); border-radius: 999px; font: 600 12px/1 var(--f-body); color: var(--gold-hi); letter-spacing: .08em; text-transform: uppercase; }
.detail__notes { margin: 0 0 22px; font: italic 400 20px/1.45 var(--f-serif); color: var(--bone); }
.specs { margin: 0 0 18px; display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--line); }
.specs div { display: contents; }
.specs dt, .specs dd { padding: 11px 0; border-bottom: 1px solid var(--line); font: 500 14px/1.4 var(--f-body); }
.specs dt { color: var(--smoke); padding-right: 20px; }
.specs dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.detail__plant { margin: 0 0 22px; font-size: 15px; line-height: 1.6; color: #c4b9a8; }
.detail__plant:empty { display: none; }
.detail__buy { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.price strong { display: block; font: 500 32px/1 var(--f-display); }
.price span { font: 500 13px/1.8 var(--f-body); color: var(--smoke); }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 38px; height: 38px; background: none; border: 0; font-size: 18px; color: var(--smoke); }
.qty button:hover { color: var(--bone); }
.qty output { min-width: 22px; text-align: center; font: 600 15px var(--f-body); }
.detail__photo { margin: 22px 0 0; display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: center; }
.detail__photo img { width: 74px; height: auto; border-radius: 8px; }
.detail__photo figcaption { font: 500 13px/1.5 var(--f-body); color: var(--smoke); }
.detail__tools {
  position: absolute; z-index: 4; left: var(--gut); bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 14px; font: 500 12.5px var(--f-body); color: var(--smoke);
}
.stage.is-detail .caption, .stage.is-detail .stage__foot, .stage.is-detail .arrow { opacity: 0; pointer-events: none; }
.stage.is-detail .caption { transform: translate(-50%, 30px); }

/* příběh */
.story { padding-block: clamp(90px, 12vw, 160px) clamp(60px, 8vw, 100px); background: linear-gradient(var(--ink), var(--char)); }
.story__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: end; }
.story__text p { margin: 0 0 34px; font-size: 19px; line-height: 1.75; color: #ddd4c6; max-width: 34em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; border-top: 1px solid var(--line); padding-top: 22px; }
.stats dt { font: 600 12px/1.4 var(--f-body); color: var(--smoke); letter-spacing: .04em; margin-bottom: 10px; }
.stats dd { margin: 0; font: 400 54px/1 var(--f-display); color: var(--gold-hi); }
.stats small { font: italic 400 20px var(--f-serif); color: var(--smoke); }

.process { padding-block: clamp(60px, 8vw, 110px); background: var(--char); }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps li { padding: 26px 22px 0 0; border-right: 1px solid var(--line); margin-right: 22px; }
.steps li:last-child { border-right: 0; margin-right: 0; }
.steps__n { font: 600 13px var(--f-body); color: var(--gold); letter-spacing: .1em; }
.steps h3 { margin: 16px 0 10px; font: italic 400 30px/1.1 var(--f-serif); color: var(--bone); }
.steps p { margin: 0; font-size: 15.5px; line-height: 1.6; color: #c4b9a8; }

.brands { padding-block: clamp(70px, 9vw, 130px); background: linear-gradient(var(--char), var(--ink)); }
.brands__list { margin-top: 50px; display: grid; gap: 22px; }
.brand {
  display: grid; grid-template-columns: 220px 1fr auto; gap: clamp(20px, 4vw, 54px); align-items: center;
  padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: rgba(31, 25, 19, .5);
  transition: border-color .3s, background .3s;
}
.brand:hover { border-color: rgba(198, 164, 110, .5); background: rgba(31, 25, 19, .85); }
.brand__img { aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: #fff; max-width: 100%; }
.brand__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 1.2s var(--ease); }
.brand:hover .brand__img img { transform: scale(1.06); }
.brand h3 { margin: 0 0 6px; font: 500 clamp(32px, 3.6vw, 48px)/1.05 var(--f-display); }
.brand__tag { margin: 0 0 8px; font: italic 400 21px/1.35 var(--f-serif); color: var(--gold-hi); }
.brand__origin { margin: 0 0 16px; font: 600 12px var(--f-body); color: var(--smoke); letter-spacing: .1em; text-transform: uppercase; }
.brand p.brand__story { margin: 0; color: #d6cdbf; max-width: 46em; font-size: 16.5px; line-height: 1.7; }
.brand__cta { align-self: end; }

.catalog { padding-block: clamp(70px, 9vw, 130px); }
.catalog__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.catalog__note { margin: 0; max-width: 30em; color: var(--smoke); font-size: 15px; }
.grid { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card {
  display: grid; grid-template-rows: auto 1fr auto; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: var(--char); transition: border-color .3s, transform .5s var(--ease);
}
.card:hover { border-color: rgba(198, 164, 110, .5); transform: translateY(-4px); }
.card__img { background: #fff; aspect-ratio: 4 / 5; overflow: hidden; cursor: pointer; border: 0; padding: 0; max-width: 100%; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 16px 16px 6px; min-width: 0; }
.card__brand { margin: 0; font: italic 400 16px/1.3 var(--f-serif); color: var(--gold-hi); }
.card__name { margin: 4px 0 8px; font: 500 23px/1.15 var(--f-display); }
.card__spec { margin: 0; font: 500 13px/1.5 var(--f-body); color: var(--smoke); }
.card__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px 16px; }
.card__price { font: 700 17px/1 var(--f-body); }
.card__price small { display: block; margin-top: 5px; white-space: nowrap; font: 500 12px/1.4 var(--f-body); color: var(--smoke); }
.add {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 20px; line-height: 1; color: var(--gold-hi);
  transition: background .25s, color .25s;
}
.add:hover { background: var(--gold); color: #17120c; }

.foot { border-top: 1px solid var(--line); padding-block: 60px 30px; background: var(--ink); }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.foot p { margin: 0; color: var(--smoke); font-size: 15px; line-height: 1.8; }
.logo--foot { font-size: 22px; margin-bottom: 14px; }
.logo--foot svg { width: 32px; height: 32px; }
.foot__claim { max-width: 22em; }
.foot__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 50px; font: 500 12.5px var(--f-body); color: #7b7164; }

/* košík */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.cart {
  position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  display: flex; flex-direction: column; background: var(--char); border-left: 1px solid var(--line);
  padding: calc(env(safe-area-inset-top, 0px) + 24px) var(--gut-r) calc(env(safe-area-inset-bottom, 0px) + 24px) 26px;
  animation: drawer .5s var(--ease);
}
@keyframes drawer { from { transform: translateX(100%); } }
.cart__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.cart__head h2 { margin: 0; font: 500 32px var(--f-display); }
.cart__head .detail__close { position: static; }
.cart__body { flex: 1; overflow-y: auto; min-height: 0; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img { width: 56px; height: 70px; object-fit: cover; border-radius: 8px; background: #fff; }
.line__name { margin: 0; font: 500 17px/1.25 var(--f-display); }
.line__meta { margin: 3px 0 8px; font: 500 12.5px var(--f-body); color: var(--smoke); }
.line .qty button { width: 30px; height: 30px; font-size: 15px; }
.line__price { text-align: right; font: 700 15px var(--f-body); }
.line__rm { display: block; margin-top: 6px; margin-left: auto; background: none; border: 0; padding: 0; font: 500 12.5px var(--f-body); color: var(--smoke); text-decoration: underline; }
.empty { padding: 50px 0; text-align: center; color: var(--smoke); }
.empty strong { display: block; font: italic 400 26px var(--f-serif); color: var(--bone); margin-bottom: 8px; }
.totals { margin: 18px 0; display: grid; gap: 8px; }
.totals div { display: flex; justify-content: space-between; font: 500 14.5px var(--f-body); color: var(--smoke); }
.totals dd { margin: 0; color: var(--bone); }
.totals__sum { padding-top: 10px; border-top: 1px solid var(--line); }
.totals__sum dt, .totals__sum dd { font: 500 24px var(--f-display); color: var(--bone); }
.checkout { display: grid; gap: 14px; overflow-y: auto; }
.checkout label { display: grid; gap: 6px; font: 600 13px var(--f-body); color: var(--smoke); }
.checkout input, .checkout textarea {
  font: 500 16px var(--f-body); color: var(--bone); background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; resize: vertical;
}
.checkout input:focus, .checkout textarea:focus { outline: none; border-color: var(--gold); }
.checkout .check { display: flex; gap: 10px; align-items: center; text-transform: none; letter-spacing: 0; font: 400 14px var(--f-body); color: var(--bone); }
.checkout .check input { width: 18px; height: 18px; accent-color: var(--gold); }
.checkout__err { margin: 0; color: #e58a73; font-size: 14px; }
.checkout__demo { margin: 0; font: 500 12.5px/1.5 var(--f-body); color: var(--smoke); }
.link { justify-self: start; background: none; border: 0; padding: 0; color: var(--gold); font: 400 13px var(--f-body); }
.done { display: grid; justify-items: center; text-align: center; gap: 10px; padding-top: 60px; }
.done svg { width: 60px; color: var(--gold); }
.done h3 { margin: 10px 0 0; font: italic 400 40px var(--f-serif); }
.done p { color: var(--smoke); max-width: 26em; }

.toast {
  position: fixed; z-index: 50; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  padding: 12px 20px; border-radius: 999px; background: var(--bone); color: var(--ink); font: 500 13px var(--f-body);
  animation: toast .5s var(--ease); white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis;
}
@keyframes toast { from { opacity: 0; transform: translate(-50%, 12px); } }

/* věková brána */
.gate { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px var(--gut-r) 24px var(--gut); background: radial-gradient(70% 60% at 50% 40%, #2a1d14, var(--ink)); }
.gate__box { max-width: 460px; text-align: center; display: grid; justify-items: center; }
#gate-lang { max-width: 640px; width: 100%; }
.gate__title { margin: 0 0 28px; font: italic 400 clamp(28px, 5vw, 40px)/1.15 var(--f-serif); }
.langs { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lang {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px;
  border: 1px solid var(--line); background: rgba(22, 18, 14, .6); text-align: left;
  font: 600 15px/1.2 var(--f-body); transition: border-color .25s, background .25s, transform .4s var(--ease);
}
.lang:hover { border-color: var(--gold); background: rgba(40, 31, 22, .9); transform: translateY(-2px); }
.lang.is-active { border-color: var(--gold); }
.lang__flag { font-size: 26px; line-height: 1; }
.gate__back { margin-top: 26px; justify-self: center; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: rgba(22, 18, 14, .7);
  border-radius: 999px; padding: 8px 12px; font: 600 12px/1 var(--f-body); letter-spacing: .06em;
}
.lang-btn:hover { border-color: var(--gold); }
.lang-btn span:first-child { font-size: 16px; }
.gate__mark { width: 64px; color: var(--gold); margin-bottom: 26px; }
.gate__q { margin: 0 0 14px; font: 400 clamp(38px, 7vw, 56px)/1.1 var(--f-display); text-wrap: balance; }
.gate__note { margin: 0 0 28px; color: var(--smoke); }
.gate__actions { display: flex; gap: 12px; }
.gate__denied { margin-top: 20px; color: #e58a73; }

/* responzivita */
@media (max-width: 980px) {
  .top__nav a { display: none; }
  .top__nav { gap: 10px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .steps li { border-right: 0; margin-right: 0; }
  .brand { grid-template-columns: 160px 1fr; }
  .brand__cta { grid-column: 1 / -1; justify-self: start; }
  .story__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .langs { grid-template-columns: repeat(2, 1fr); }
  .lang-btn #lang-code { display: none; }
  .top { grid-template-columns: auto 1fr; }
  .top__meta { display: none; }
  .logo { font-size: 16px; gap: 8px; letter-spacing: .2em; }
  .logo svg { width: 30px; height: 30px; }
  .cart-btn span { display: none; }
  .caption { bottom: 112px; }
  .caption__brand { font-size: 18px; }
  .stage__foot { grid-template-columns: 1fr; justify-items: center; gap: 10px; }
  .counter, .hint { display: none; }
  .arrow { top: 40%; width: 42px; height: 42px; }
  .detail { top: auto; left: var(--gut); right: var(--gut-r); width: auto; height: 56%; bottom: 12px; padding: 22px 20px; animation-name: panelUp; }
  @keyframes panelUp { from { opacity: 0; transform: translateY(30px); } }
  .detail__name { font-size: 36px; }
  .detail__tools { top: 84px; bottom: auto; }
  .detail__tools span { display: none; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stats dd { font-size: 38px; }
  .steps { grid-template-columns: 1fr; }
  .brand { grid-template-columns: 1fr; padding: 18px; }
  .brand__img { aspect-ratio: 16 / 10; }
  .foot__grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .card__name { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* japonština: bez kurzívy, patkové písmo pro nadpisy */
:lang(ja) em, :lang(ja) .caption__brand, :lang(ja) .detail__notes, :lang(ja) .brand__tag, :lang(ja) .card__brand, :lang(ja) .steps h3, :lang(ja) .gate__title, :lang(ja) .empty strong, :lang(ja) .done h3, :lang(ja) .stats small { font-style: normal; }
:lang(ja) .eyebrow, :lang(ja) .brand__origin { letter-spacing: .06em; }
