/* Raffaello caffe bar
   Barvy: vápno, omítka, espresso (logo), modrý gauč, karamel */
:root {
  --lime: #FBFAF7;
  --plaster: #F1ECE4;
  --espresso: #3E2111;
  --espresso-2: #2E180C;
  --espresso-3: #4C2C1A;
  --ink: #2B1A10;
  --muted: #6B5646;
  --cream: #F7F0E6;
  --cream-2: rgba(247, 240, 230, .82);
  --muted-dark: rgba(247, 240, 230, .66);
  --line-light: #E3D9CC;
  --line-dark: rgba(247, 240, 230, .14);
  --sofa: #3F5A7A;
  --caramel: #C8893A;
  --caramel-text: #8F5A1C;
  --ok: #8FD19E;

  --f: "Gabarito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --wrap: 1200px;
  --header-h: 84px;
  --r: 12px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; font-family: var(--f); font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--lime); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1; }
:focus-visible { outline: 3px solid var(--caramel); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--caramel); color: var(--espresso-2); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- typografie sekcí ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section--light { background: var(--lime); }
.section--plaster { background: var(--plaster); }
.section--dark { background: var(--espresso); color: var(--cream); }
.section--darker { background: var(--espresso-2); color: var(--cream); }

.eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 16px;
  font-size: .85rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--caramel-text);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }
.section--dark .eyebrow, .section--darker .eyebrow { color: var(--caramel); }

h2 {
  font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 900; text-transform: uppercase;
  letter-spacing: -.01em; line-height: .95; color: var(--espresso);
}
.section--dark h2, .section--darker h2 { color: var(--cream); }

.head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); margin: 0; max-width: 46ch; }
.section--dark .lead, .section--darker .lead { color: var(--cream-2); }
.chalk { font-family: var(--hand); font-size: 1.6rem; line-height: 1.15; color: var(--caramel); margin: 14px 0 0; transform: rotate(-1.5deg); transform-origin: left; }

/* ---------- tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--f); letter-spacing: .02em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.97); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; }
.btn--caramel { background: var(--caramel); color: var(--espresso-2); }
.btn--caramel:hover { background: var(--cream); color: var(--espresso-2); }
.btn--ghost { border-color: rgba(247, 240, 230, .5); color: var(--cream); background: transparent; }
.btn--ghost:hover { border-color: var(--cream); background: rgba(247, 240, 230, .1); }
.btn--dark { background: var(--espresso); color: var(--cream); }
.btn--dark:hover { background: var(--sofa); }
.btn--line { border-color: var(--espresso); color: var(--espresso); }
.btn--line:hover { background: var(--espresso); color: var(--cream); }
.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid rgba(247, 240, 230, .4); background: transparent; color: var(--cream); cursor: pointer;
  transition: background-color .2s, border-color .2s, opacity .2s;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { border-color: var(--cream); background: rgba(247, 240, 230, .1); }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* ---------- status ---------- */
.status {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  font-size: .82rem; font-weight: 600; color: var(--cream);
  background: rgba(247, 240, 230, .1); border: 1px solid var(--line-dark);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted-dark); flex: none; }
.status.is-open::before { background: var(--ok); box-shadow: 0 0 0 3px rgba(143, 209, 158, .22); }
.status.is-closed::before { background: #E8866B; }
.status--lg { font-size: .95rem; padding: 8px 14px; margin-bottom: 18px; }

/* ---------- hlavička ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); color: var(--cream);
  transition: height .3s var(--ease-out), background-color .3s, box-shadow .3s;
}
/* pozadí a blur na pseudo-prvku – backdrop-filter na samotné hlavičce by uvěznil fixed menu */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: rgba(46, 24, 12, .94); box-shadow: 0 1px 0 var(--line-dark);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.header.is-scrolled, .header.is-menu { --header-h: 66px; }
.header.is-scrolled::before, .header.is-menu::before { opacity: 1; }
.header__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.header__logo { flex: none; display: block; border-radius: 50%; }
.header__logo img { width: 60px; height: 60px; transition: width .3s var(--ease-out), height .3s var(--ease-out); }
.header.is-scrolled .header__logo img { width: 48px; height: 48px; }
.nav { display: flex; align-items: center; }
.nav ul { display: flex; gap: 4px; }
.nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-weight: 700; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: var(--cream); position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px; background: var(--caramel);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav__phone { display: none; }
.header__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.burger { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: var(--cream); isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background: var(--espresso-2); }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(36, 18, 8, .92) 0%, rgba(36, 18, 8, .72) 42%, rgba(36, 18, 8, .25) 75%, rgba(36, 18, 8, .15) 100%),
    linear-gradient(0deg, rgba(36, 18, 8, .75) 0%, rgba(36, 18, 8, 0) 45%),
    linear-gradient(180deg, rgba(36, 18, 8, .55) 0%, rgba(36, 18, 8, 0) 22%);
}
.hero__in { padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(48px, 9vh, 96px); display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero__copy { max-width: 760px; }
.hero h1 { margin: 0 0 24px; }
.hero__kicker { display: block; margin-bottom: 18px; font-size: clamp(.9rem, 1.3vw, 1rem); font-weight: 600; letter-spacing: .04em; color: var(--caramel); line-height: 1.4; }
.hero__title { display: block; font-size: clamp(2.8rem, 7.2vw, 6.2rem); font-weight: 900; text-transform: uppercase; line-height: .92; letter-spacing: -.015em; color: var(--cream); max-width: 12ch; }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--cream-2); max-width: 50ch; margin-bottom: 32px; }
.hero__sub strong { color: var(--cream); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 32px; font-size: .95rem; color: var(--muted-dark); }
.hero__meta strong { color: var(--caramel); font-weight: 700; }
.hero__rating {
  flex: none; display: flex; align-items: center; gap: 16px; padding: 18px 22px; margin-bottom: 6px;
  border-radius: var(--r); border: 1px solid var(--line-dark); background: rgba(46, 24, 12, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); text-decoration: none; color: var(--cream);
  transition: border-color .2s, background-color .2s;
}
.hero__rating:hover { border-color: var(--caramel); background: rgba(46, 24, 12, .75); }
.hero__rating-num { font-size: 2.6rem; font-weight: 900; line-height: 1; color: var(--caramel); }
.hero__rating-txt { font-weight: 600; line-height: 1.3; }
.hero__rating-txt small { display: block; font-weight: 400; font-size: .85rem; color: var(--muted-dark); }

/* jediná vstupní animace – nadpis a text vyjedou zespodu */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise .9s var(--ease-out) both; }
  .hero__copy > :nth-child(2) { animation-delay: .12s; }
  .hero__copy > :nth-child(3) { animation-delay: .22s; }
  .hero__copy > :nth-child(4) { animation-delay: .3s; }
  .hero__rating { animation: rise .9s .4s var(--ease-out) both; }
  .hero__bg img { animation: settle 1.6s var(--ease-out) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  @keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- perks ---------- */
.perks { background: var(--espresso-2); color: var(--cream); border-bottom: 1px solid var(--line-dark); }
.perks ul { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; padding-block: 26px; }
.perks li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; font-size: .9rem; line-height: 1.3; color: var(--cream-2); }
.perks svg { width: 32px; height: 32px; color: var(--caramel); }
.perks__cash span { color: var(--cream); font-weight: 700; }

/* ---------- káva ---------- */
.coffee { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.coffee__card {
  display: grid; grid-template-columns: 42% 1fr; background: var(--plaster);
  border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-light);
}
.coffee__img { position: relative; min-height: 100%; }
.coffee__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.coffee__body { padding: clamp(24px, 3vw, 40px); }
.coffee__tag { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--caramel-text); margin-bottom: 10px; }
.coffee__body h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 800; text-transform: uppercase; color: var(--espresso); margin-bottom: 16px; line-height: 1; }
.coffee__body > p:not(.coffee__tag) { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li { padding: 5px 12px; border-radius: 999px; background: var(--lime); border: 1px solid var(--line-light); font-size: .88rem; font-weight: 600; color: var(--espresso); }

/* ---------- nabídka ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tabs [role="tab"] {
  min-height: 48px; padding: 10px 22px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--espresso); background: transparent; color: var(--espresso);
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .9rem;
  transition: background-color .2s, color .2s;
}
.tabs [role="tab"]:hover { background: rgba(62, 33, 17, .08); }
.tabs [role="tab"][aria-selected="true"] { background: var(--espresso); color: var(--cream); }
.board { background: var(--espresso); color: var(--cream); border-radius: var(--r); padding: clamp(24px, 4vw, 48px); }
.panel:focus-visible { outline-offset: 10px; }
.board__list { columns: 2; column-gap: 64px; }
.board__list li {
  display: flex; align-items: baseline; gap: 12px; padding: 14px 0; break-inside: avoid;
  border-bottom: 1px dashed var(--line-dark); font-size: 1.05rem;
}
.board__list span { flex: 1; }
.board__list b { color: var(--caramel); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.board__note { margin: 20px 0 0; color: var(--cream-2); font-size: .95rem; }
.board__foot { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line-dark); color: var(--muted-dark); font-size: .88rem; }
.cash {
  display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 18px 24px;
  border-radius: var(--r); background: var(--caramel); color: var(--espresso-2);
}
.cash svg { width: 36px; height: 36px; flex: none; }
.cash p { margin: 0; font-size: 1.05rem; }
.cash strong { font-size: 1.15rem; font-weight: 800; }

/* ---------- vitrína ---------- */
.rail { --edge: max(20px, calc((100% - var(--wrap)) / 2)); }
.rail__track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 0 var(--edge) 8px; scroll-padding-inline: var(--edge); scrollbar-width: none;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track li { flex: 0 0 clamp(240px, 26vw, 330px); scroll-snap-align: start; }
.rail figure { margin: 0; }
.rail img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--espresso-3); }
.rail figcaption { margin-top: 12px; font-weight: 700; font-size: 1.05rem; color: var(--cream); }
.rail__ctrl { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; }
.rail__btns { display: flex; gap: 10px; }
.rail__btns[hidden] { display: none; }

/* ---------- prostor ---------- */
.space { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.space__media { position: relative; padding: 0 12% 12% 0; }
.space__big { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--r); }
.space__small {
  position: absolute; right: 0; bottom: 0; width: 38%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--r); border: 8px solid var(--lime); box-shadow: 0 24px 48px -24px rgba(46, 24, 12, .5);
}
.space__copy h2 { margin-bottom: 32px; }
.space__copy h3 { font-size: 1.3rem; font-weight: 800; color: var(--caramel-text); margin: 0 0 10px; text-transform: uppercase; letter-spacing: .02em; }
.space__copy p { color: var(--muted); margin-bottom: 26px; max-width: 48ch; }
.space__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- recenze ---------- */
.reviews { display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; }
.score { background: var(--espresso); color: var(--cream); border-radius: var(--r); padding: clamp(28px, 4vw, 44px); }
.score__num { font-size: clamp(4rem, 8vw, 6rem); font-weight: 900; line-height: .9; color: var(--caramel); margin: 0 0 12px; }
.score__txt { font-size: 1.1rem; font-weight: 600; }
.score__txt small { display: block; font-weight: 400; color: var(--muted-dark); font-size: .92rem; }
.score__second { padding: 20px 0; margin: 8px 0 20px; border-block: 1px solid var(--line-dark); }
.score__second p { margin: 8px 0 0; color: var(--cream-2); }
.score__second b { color: var(--cream); font-size: 1.2rem; }
.score__stars { display: flex; gap: 3px; color: var(--caramel); }
.score__stars svg { width: 20px; height: 20px; }
.score__stars .dim { opacity: .35; }
.score__link { font-weight: 700; color: var(--cream); text-underline-offset: 4px; display: inline-flex; min-height: 44px; align-items: center; }
.score__link:hover { color: var(--caramel); }
.quote {
  margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  background: var(--plaster); border: 1px solid var(--line-light); border-radius: var(--r); padding: clamp(28px, 5vw, 56px);
}
.quote p { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.8rem); font-weight: 800; line-height: 1.08; text-transform: uppercase; color: var(--espresso); }
.quote footer { color: var(--muted); }
.quote footer b { color: var(--espresso); }

/* ---------- kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact__list { display: grid; gap: 20px; margin-bottom: 32px; }
.contact__list li { display: grid; grid-template-columns: 26px 1fr; gap: 16px; align-items: start; }
.contact__list svg { width: 24px; height: 24px; color: var(--caramel); margin-top: 4px; }
.contact__list .lbl { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dark); }
.contact__list a, .contact__list .val { display: inline-block; font-size: 1.2rem; font-weight: 700; text-decoration: none; color: var(--cream); overflow-wrap: anywhere; }
.contact__list a { min-height: 44px; display: inline-flex; align-items: center; }
.contact__list a:hover { color: var(--caramel); }
.contact__list .hint { display: block; font-size: .92rem; color: var(--muted-dark); }
.hours { width: 100%; max-width: 480px; border-collapse: collapse; }
.hours caption { text-align: left; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dark); padding-bottom: 8px; }
.hours th, .hours td { padding: 10px 12px; border-bottom: 1px solid var(--line-dark); font-weight: 500; text-align: left; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; color: var(--cream-2); }
.hours tr.is-today { background: rgba(200, 137, 58, .16); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--cream); font-weight: 700; }
.hours tr.is-today th::after { content: " · dnes"; color: var(--caramel); font-weight: 600; }
.note { margin: 16px 0 0; font-size: .92rem; color: var(--muted-dark); max-width: 480px; }

.map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--espresso-3); }
.map > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.map__over {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 24px;
  background: linear-gradient(0deg, rgba(36, 18, 8, .85), rgba(36, 18, 8, .55));
}
.map__over p { color: var(--cream-2); font-size: .95rem; margin: 0 0 14px; }
.map__over .map__title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; text-transform: uppercase; color: var(--cream); margin: 0; line-height: 1.1; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contact__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- patička ---------- */
.footer { background: var(--espresso-2); color: var(--cream-2); padding: 64px 0 24px; border-top: 1px solid var(--line-dark); }
.footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px 48px; }
.footer__brand img { width: 88px; height: 88px; margin-bottom: 16px; }
.footer__brand p { max-width: 34ch; font-size: .95rem; color: var(--muted-dark); }
.footer__title { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--caramel); margin-bottom: 12px; }
.footer li { padding: 0; font-size: .95rem; min-height: 32px; display: flex; align-items: center; }
.footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.footer a { text-decoration: none; color: var(--cream-2); }
.footer a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.footer__social a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.footer__social svg { width: 20px; height: 20px; color: var(--caramel); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: .88rem; color: var(--muted-dark); }
.footer__bottom p { margin: 0; }
.footer__bottom a { min-height: 44px; display: inline-flex; align-items: center; }

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

/* ---------- responzivita ---------- */
@media (max-width: 1180px) {
  .header__in { gap: 16px; }
  .nav a:not(.btn) { padding: 0 9px; font-size: .84rem; letter-spacing: .08em; }
  .nav a:not(.btn)::after { left: 9px; right: 9px; }
  .header .status { display: none; }
  .perks ul { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 24px; }
}

@media (max-width: 980px) {
  :root { --header-h: 72px; }
  .burger {
    display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; border-radius: 50%;
  }
  .burger__bars, .burger__bars::before, .burger__bars::after {
    display: block; width: 24px; height: 2px; background: var(--cream); border-radius: 2px; position: relative; transition: transform .25s, background-color .25s;
  }
  .burger__bars::before, .burger__bars::after { content: ""; position: absolute; left: 0; }
  .burger__bars::before { top: -7px; }
  .burger__bars::after { top: 7px; }
  .burger[aria-expanded="true"] .burger__bars { background: transparent; }
  .burger[aria-expanded="true"] .burger__bars::before { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] .burger__bars::after { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 99;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px;
    padding: 16px 20px 32px; background: var(--espresso-2); overflow-y: auto;
    visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s;
  }
  .nav.is-open { visibility: visible; opacity: 1; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a:not(.btn) { display: flex; min-height: 60px; padding: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: .04em; border-bottom: 1px solid var(--line-dark); }
  .nav a:not(.btn)::after { display: none; }
  .nav__phone { display: inline-flex; align-self: flex-start; }
  .header__phone { display: none; }

  .head { grid-template-columns: 1fr; align-items: start; }
  .hero__in { flex-direction: column; align-items: flex-start; }
  .hero__bg::after {
    background:
      linear-gradient(0deg, rgba(36, 18, 8, .95) 0%, rgba(36, 18, 8, .78) 45%, rgba(36, 18, 8, .35) 100%),
      linear-gradient(180deg, rgba(36, 18, 8, .5) 0%, rgba(36, 18, 8, 0) 25%);
  }
  .coffee { grid-template-columns: 1fr; }
  .space { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .perks ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perks li { flex-direction: row; text-align: left; gap: 12px; }
  .perks svg { width: 28px; height: 28px; flex: none; }
  .perks__cash { grid-column: 1 / -1; }
  .board__list { columns: 1; }
  .coffee__card { grid-template-columns: 1fr; }
  .coffee__img { aspect-ratio: 16 / 10; min-height: 0; }
  .coffee__img img { object-position: 50% 60%; }
  .rail__ctrl { flex-wrap: wrap; }
  .cash { align-items: flex-start; }
}

@media (max-width: 480px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .rail { --edge: 16px; }
  .rail__track li { flex-basis: 74vw; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__meta { flex-direction: column; gap: 4px; }
  .footer__in { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 0; }
  .contact__cta .btn { flex: 1 1 auto; }
  .tabs [role="tab"] { padding: 10px 16px; }
}
