/* ==========================================================================
   Keitea — чай-бар, Молодёжная 26, Барнаул
   Design tokens → base → layout → components → responsive
   ========================================================================== */

/* --------------------------------------------------------------- tokens */
:root {
  /* brand */
  --matcha:   #9FC47C;
  --matcha-2: #C7E0A8;
  --matcha-3: #6F8F4E;
  /* Text/icon flavour of the brand green. Kept separate from --matcha because
     the decorative green is too light to clear WCAG AA as small text on the
     light theme's cream background. */
  --matcha-ink: #A8CE84;
  --mango:    #F0A05A;
  --mango-ink: #F0A05A;
  --berry:    #E4737D;
  --mint:     #86C7B4;

  /* dark (default) */
  --bg:      #100E0B;
  --bg-2:    #17140F;
  --bg-3:    #1E1A14;
  --surface: rgba(255, 252, 245, .045);
  --surface-2: rgba(255, 252, 245, .075);
  --line:    rgba(246, 238, 224, .11);
  --line-2:  rgba(246, 238, 224, .2);
  --text:    #F4EEE2;
  --muted:   #A79C8B;
  --faint:   #928878;   /* 5.3:1 on --bg-2, 4.8:1 on card surfaces */
  --shadow:  0 24px 60px -24px rgba(0, 0, 0, .72);
  --shadow-s: 0 8px 24px -12px rgba(0, 0, 0, .6);

  --r-xs: 10px;  --r-s: 14px;  --r-m: 20px;  --r-l: 28px;  --r-xl: 38px;
  --pad: clamp(1.1rem, 4vw, 2rem);
  --gap: clamp(1rem, 2.2vw, 1.75rem);
  --sec-y: clamp(4.5rem, 11vw, 9.5rem);
  --wrap: 1240px;
  --hdr-h: 68px;

  --ff-d: 'Playfair Display', 'Georgia', serif;
  --ff-b: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --ease: cubic-bezier(.22, .68, 0, 1);
  --ease-o: cubic-bezier(.16, 1, .3, 1);
}

html[data-theme="light"] {
  --bg:      #FAF6EE;
  --bg-2:    #F4EEE2;
  --bg-3:    #FFFFFF;
  --surface: rgba(27, 23, 18, .035);
  --surface-2: rgba(27, 23, 18, .06);
  --line:    rgba(27, 23, 18, .12);
  --line-2:  rgba(27, 23, 18, .22);
  --text:    #1B1712;
  --muted:   #6C6456;
  --faint:   #6E6558;   /* 5.0:1 on --bg-2, 4.6:1 on card surfaces */
  --shadow:  0 24px 60px -28px rgba(40, 30, 15, .3);
  --shadow-s: 0 8px 24px -14px rgba(40, 30, 15, .28);
  --matcha-ink: #4F7030;  /* 5.3:1 on --bg, 4.9:1 on --bg-2 */
  --mango-ink: #9C5512;   /* 5.2:1 on --bg, 4.9:1 on --bg-2 */
  --matcha-3: #557033;
}

/* --------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-h) + 14px);
  -webkit-text-size-adjust: 100%;
  /* `clip` (not `hidden`) so no element can ever produce a sideways scroll
     without turning <html> into a scroll container that would break
     position:sticky and smooth scrolling */
  overflow-x: clip;
}

body {
  font-family: var(--ff-b);
  font-size: clamp(.98rem, .35vw + .9rem, 1.06rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern', 'liga';
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; background: var(--bg-3); }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
:focus-visible { outline: 2px solid var(--matcha); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; top: 10px; left: 50%; z-index: 200;
  transform: translate(-50%, -160%);
  padding: .7rem 1.2rem; border-radius: 999px;
  background: var(--matcha); color: #10240A; font-weight: 700;
  transition: transform .25s var(--ease);
}
.skip:focus-visible { transform: translate(-50%, 0); }

/* --------------------------------------------------------------- type */
.h2 {
  font-family: var(--ff-d);
  font-weight: 600;
  font-size: clamp(2rem, 5.4vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.h2 em, .hero__h1 em {
  font-style: italic;
  color: var(--matcha-ink);
}

.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--matcha-ink);
  margin-bottom: .9rem;
}
.kicker::before {
  content: ''; width: 22px; height: 1px;
  background: currentColor; opacity: .6;
}

.lead { font-size: clamp(1.02rem, .4vw + .95rem, 1.16rem); color: var(--muted); }
.nowrap { white-space: nowrap; }

/* --------------------------------------------------------------- layout */
.wrap { width: min(100% - (var(--pad) * 2), var(--wrap)); margin-inline: auto; }
.sec { padding-block: var(--sec-y); position: relative; }
.sec--alt { background: var(--bg-2); }

.sec__head {
  display: flex; flex-wrap: wrap; gap: 1.2rem 2.5rem;
  align-items: flex-end; justify-content: space-between;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}
.sec__head--c { justify-content: center; text-align: center; }
.sec__note { max-width: 34ch; color: var(--muted); font-size: .94rem; }
.sec__note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.sec__note a:hover { text-decoration-color: var(--matcha); }

/* --------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .92em 1.5em;
  border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--line-2);
  font-weight: 700; font-size: .95rem; letter-spacing: -.01em;
  white-space: nowrap; cursor: pointer;
  transition: transform .3s var(--ease), background-color .3s var(--ease),
              border-color .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
}
.btn .i { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }
.btn:hover { transform: translateY(-2px); border-color: var(--matcha); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-fg: #10240A;
  background: linear-gradient(135deg, var(--matcha-2), var(--matcha));
  border-color: transparent;
  box-shadow: 0 10px 30px -14px var(--matcha);
}
html[data-theme="light"] .btn--primary { --btn-fg: #14240C; }
.btn--primary:hover { box-shadow: 0 16px 40px -14px var(--matcha); }
.btn--ghost { background: var(--surface); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--quiet { border-color: transparent; background: none; padding-inline: .4em; color: var(--muted); }
.btn--quiet:hover { color: var(--text); border-color: transparent; transform: translateX(3px); }
.btn--sm { padding: .7em 1.15em; font-size: .88rem; }
.btn--block { width: 100%; }

.icon-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text);
  transition: background-color .25s, border-color .25s, transform .25s var(--ease);
}
.icon-btn:hover { border-color: var(--matcha); transform: scale(1.06); }
.icon-btn .i { width: 19px; height: 19px; fill: currentColor; }
.icon-btn .i--dark { display: none; }
html[data-theme="light"] .icon-btn .i { display: none; }
html[data-theme="light"] .icon-btn .i--dark { display: block; }

/* --------------------------------------------------------------- header */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 90;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease), transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr.is-stuck {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -26px rgba(0, 0, 0, .9);
}
.hdr.is-hidden { transform: translateY(-100%); }

.hdr__in {
  width: min(100% - (var(--pad) * 2), var(--wrap));
  margin-inline: auto;
  height: var(--hdr-h);
  display: flex; align-items: center; gap: 1rem;
}

.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); }
.logo__mark { width: 30px; height: 30px; color: var(--matcha-ink); flex: none; }
.logo__txt {
  font-family: var(--ff-d); font-weight: 700;
  font-size: 1.32rem; letter-spacing: -.02em;
}

.nav { display: flex; gap: .35rem; margin-inline: auto; }
.nav a {
  position: relative; padding: .5rem .85rem; border-radius: 999px;
  font-size: .92rem; font-weight: 600; color: var(--muted);
  transition: color .25s;
}
.nav a::after {
  content: ''; position: absolute; left: 50%; bottom: 4px;
  width: 0; height: 1.5px; background: var(--matcha);
  transform: translateX(-50%); transition: width .3s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { width: 18px; }

.hdr__act { display: flex; align-items: center; gap: .5rem; }

.hdr__prog {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--matcha), var(--mango));
  opacity: 0; transition: opacity .3s;
}
.hdr.is-stuck .hdr__prog { opacity: 1; }

.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); }
.burger .i { width: 20px; height: 20px; margin: auto; color: var(--text); }
.burger__close { display: none; }
body.nav-open .burger__open { display: none; }
body.nav-open .burger__close { display: block; }

/* --------------------------------------------------------------- drawer */
/* `hidden` must win over the class's display value, otherwise the panel and
   the lightbox stay in the layout (and on screen) before first use. */
.drawer[hidden], .lbox[hidden] { display: none; }

.drawer { position: fixed; inset: 0; z-index: 95; }
.drawer::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.drawer.is-open::before { opacity: 1; }
.drawer__panel {
  position: absolute; inset: 0 0 0 auto;
  width: min(420px, 88vw);
  background: var(--bg-2); border-left: 1px solid var(--line);
  padding: calc(var(--hdr-h) + 1.6rem) var(--pad) var(--pad);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  transform: translateX(100%); transition: transform .45s var(--ease-o);
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: .95rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--ff-d); font-size: 1.65rem; font-weight: 600;
  transition: color .25s, padding-left .3s var(--ease);
}
.drawer__nav a span {
  font-family: var(--ff-b); font-size: .72rem; font-weight: 700;
  color: var(--matcha-ink); letter-spacing: .1em;
}
.drawer__nav a:hover { color: var(--matcha-ink); padding-left: .4rem; }
.drawer__foot { display: grid; gap: .7rem; }
.drawer__meta { display: grid; gap: .2rem; margin-top: .6rem; color: var(--faint); font-size: .88rem; }
body.nav-open { overflow: hidden; }

/* --------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-block: calc(var(--hdr-h) + 3rem) 5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, transparent 30%, var(--bg) 88%);
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px);
  opacity: .5; will-change: transform;
}
.orb--1 { width: 46vw; height: 46vw; left: -10vw; top: -8vw;  background: radial-gradient(circle, #4E7A34, transparent 68%); animation: drift1 22s var(--ease) infinite alternate; }
.orb--2 { width: 40vw; height: 40vw; right: -8vw; top: 6vw;   background: radial-gradient(circle, #B05C2A, transparent 68%); animation: drift2 26s var(--ease) infinite alternate; }
.orb--3 { width: 34vw; height: 34vw; left: 38%; bottom: -16vw; background: radial-gradient(circle, #7A3F52, transparent 70%); animation: drift1 30s var(--ease) infinite alternate-reverse; }
html[data-theme="light"] .orb { opacity: .55; filter: blur(80px) saturate(1.25); }

@keyframes drift1 { to { transform: translate3d(6vw, 5vh, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-7vw, 6vh, 0) scale(1.1); } }

.grain {
  position: absolute; inset: 0; opacity: .3; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

.hero__in {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  /* no width here: .wrap already caps this at --wrap, and an explicit
     width would silently drop the side gutters */
}

.eyebrow {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: .55rem;
  padding: .5rem .95rem .5rem .7rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  font-size: .84rem; font-weight: 600; color: var(--muted);
  margin-bottom: 1.4rem;
  backdrop-filter: blur(8px);
}
.eyebrow .sep { color: var(--faint); }
.dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--matcha); box-shadow: 0 0 0 0 color-mix(in srgb, var(--matcha) 60%, transparent);
  animation: pulse 2.4s var(--ease) infinite;
}
.dot.is-closed { background: var(--berry); animation: none; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--matcha) 55%, transparent); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero__h1 {
  font-family: var(--ff-d); font-weight: 600;
  font-size: clamp(2.25rem, 5.2vw, 4.4rem);
  line-height: 1.02; letter-spacing: -.035em;
  margin-bottom: 1.3rem;
}
/* the headline is hand-broken with <br>, so balance would fight the author */
.hero__h1 em { white-space: nowrap; }
.hero__lead { max-width: 46ch; color: var(--muted); margin-bottom: 2rem; }

.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.stats__i {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line); border-radius: var(--r-m);
  background: var(--surface);
  backdrop-filter: blur(8px);
  transition: border-color .3s, transform .35s var(--ease), background-color .3s;
}
.stats__i:hover { border-color: var(--line-2); transform: translateY(-3px); }
.stats__i dt { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: .4rem; }
.stats__i dd {
  display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 800; letter-spacing: -.02em;
}
.stats__i dd b { font-weight: 800; }
.stars { color: var(--mango-ink); font-size: .8rem; letter-spacing: .06em; }
.stars--lg { font-size: 1.05rem; }
.stats__i small { display: block; margin-top: .35rem; font-size: .78rem; color: var(--faint); line-height: 1.4; }

.hero__art { position: relative; display: grid; place-items: center; }
.cupwrap { position: relative; width: min(100%, 380px); aspect-ratio: 1 / 1.05; display: grid; place-items: center; }
.cupwrap__glow {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--matcha) 34%, transparent), transparent 66%);
  filter: blur(34px);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.14); opacity: .75; } }
.cupwrap__cup { position: relative; z-index: 2; width: 72%; animation: float 6.5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }

.steam {
  position: absolute; top: 14%; left: 50%;
  translate: -50% 0; z-index: 1;
  filter: blur(4px); opacity: .75;
}
.steam i {
  position: absolute; bottom: 0;
  width: 6px; height: 72px; border-radius: 999px;
  background: linear-gradient(to top, color-mix(in srgb, var(--matcha) 34%, transparent), transparent 85%);
  animation: steam 5s ease-in-out infinite;
}
.steam i:nth-child(1) { left: -22px; height: 54px; animation-delay: 0s; }
.steam i:nth-child(2) { left: 1px; height: 82px; animation-delay: 1.4s; }
.steam i:nth-child(3) { left: 24px; height: 46px; animation-delay: 2.6s; }
@keyframes steam {
  0%   { transform: translateY(10px) scaleY(.4); opacity: 0; }
  40%  { opacity: .85; }
  100% { transform: translateY(-46px) scaleY(1.2); opacity: 0; }
}

.chip {
  position: absolute; z-index: 3;
  padding: .45rem .85rem; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  animation: float 6.5s ease-in-out infinite;
}
.chip--tl { top: 14%; left: -4%; animation-delay: -2s; }
.chip--br { bottom: 24%; left: -6%; animation-delay: -4s; }

.hero__shot {
  position: absolute; z-index: 2; right: -2%; bottom: 4%;
  width: 32%; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: var(--r-l); border: 1px solid var(--line-2);
  box-shadow: var(--shadow); transform: rotate(3deg);
  transition: transform .5s var(--ease);
}
.hero__shot:hover { transform: rotate(0deg) scale(1.04); }
.hero__shot img { width: 100%; height: 100%; object-fit: cover; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.6rem; translate: -50% 0;
  width: 24px; height: 40px; border: 1.5px solid var(--line-2); border-radius: 999px;
  display: grid; justify-items: center; padding-top: 8px;
  transition: border-color .3s;
}
.hero__scroll:hover { border-color: var(--matcha); }
.hero__scroll span { width: 3px; height: 7px; border-radius: 2px; background: var(--matcha); animation: sc 1.9s var(--ease) infinite; }
@keyframes sc { 50% { transform: translateY(14px); opacity: .2; } }

/* --------------------------------------------------------------- marquee */
.marquee {
  display: grid; gap: .4rem;
  padding-block: 1.1rem;
  background: var(--bg-2);
  border-block: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__row { display: flex; gap: 2.5rem; width: max-content; animation: slide 42s linear infinite; }
.marquee__row--rev { animation-direction: reverse; animation-duration: 52s; }
.marquee:hover .marquee__row { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee__row span {
  display: inline-flex; align-items: center; gap: 2.5rem;
  font-family: var(--ff-d); font-size: clamp(1.1rem, 2.4vw, 1.75rem);
  color: var(--faint); white-space: nowrap;
}
.marquee__row span::after { content: '◦'; color: var(--matcha); font-size: .7em; }

/* --------------------------------------------------------------- about */
.about { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about__media { position: relative; }
.ph { position: relative; overflow: hidden; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--bg-3); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-o), filter .5s; }
.ph:hover img { transform: scale(1.05); }
.ph--tall { aspect-ratio: 4 / 3; }
.ph--sm { aspect-ratio: 1; }
.ph--float {
  position: absolute; right: -6%; bottom: -9%; width: 42%;
  border-radius: var(--r-m); box-shadow: var(--shadow);
  border-width: 5px; border-color: var(--bg);
}

.badge-round {
  position: absolute; top: -3%; right: -5%;
  width: clamp(84px, 12vw, 118px); aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--bg-3); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-s);
}
.badge-round svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.badge-round text { font-family: var(--ff-b); font-size: 8px; font-weight: 700; letter-spacing: .1em; fill: var(--muted); text-transform: uppercase; }
.badge-round__in { font-size: clamp(1.6rem, 3.4vw, 2.1rem); color: var(--matcha-ink); line-height: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.ticks { display: grid; gap: .85rem; margin-block: 1.8rem 2.2rem; }
.ticks li { position: relative; padding-left: 2rem; color: var(--muted); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .32em;
  width: 20px; height: 20px; border-radius: 50%;
  background: color-mix(in srgb, var(--matcha) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--matcha) 45%, transparent);
}
.ticks li::after {
  content: ''; position: absolute; left: 6px; top: calc(.32em + 7px);
  width: 8px; height: 4.5px;
  border-left: 1.6px solid var(--matcha); border-bottom: 1.6px solid var(--matcha);
  transform: rotate(-45deg);
}
.about__cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* --------------------------------------------------------------- tabs */
.tabs {
  position: relative; display: flex; flex-wrap: wrap; gap: .35rem;
  padding: .35rem; margin-bottom: 2rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); width: fit-content; max-width: 100%;
}
.tab {
  position: relative; z-index: 2;
  padding: .68rem 1.15rem; border-radius: 999px;
  font-size: .9rem; font-weight: 700; color: var(--muted);
  white-space: nowrap; transition: color .28s var(--ease);
}
.tab:hover { color: var(--text); }
.tab.is-on { color: #10240A; }
html[data-theme="light"] .tab.is-on { color: #14240C; }
.tabs__ink {
  position: absolute; z-index: 1; top: .35rem; left: 0; height: calc(100% - .7rem);
  border-radius: 999px; background: linear-gradient(135deg, var(--matcha-2), var(--matcha));
  box-shadow: 0 6px 18px -10px var(--matcha);
  transition: transform .45s var(--ease-o), width .45s var(--ease-o), opacity .3s;
  opacity: 0;
}

/* --------------------------------------------------------------- cards */
.cards {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.card {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; gap: .9rem;
  padding: 1.1rem 1.1rem 1.25rem;
  border: 1px solid var(--line); border-radius: var(--r-l);
  background: var(--surface);
  transition: transform .45s var(--ease-o), border-color .35s, background-color .35s, box-shadow .45s;
}
.card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(90% 70% at 50% 0%, color-mix(in srgb, var(--card-a, var(--matcha)) 22%, transparent), transparent 70%);
  opacity: 0; transition: opacity .45s;
}
.card:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--card-a, var(--matcha)) 48%, var(--line));
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.card:hover::before { opacity: 1; }

.card__cup {
  position: relative; aspect-ratio: 3 / 2.35; border-radius: var(--r-m);
  display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(78% 100% at 50% 124%, color-mix(in srgb, var(--card-a, var(--matcha)) 17%, transparent), transparent 68%);
}
.card__cup svg { width: 62%; height: 100%; transition: transform .55s var(--ease-o); }
.card:hover .card__cup svg { transform: translateY(-4px) scale(1.06); }

.card__body { flex: 1; }
.card__name { font-size: 1.06rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.card__name em { display: block; font-style: normal; font-size: .78rem; font-weight: 600; color: var(--faint); letter-spacing: .04em; text-transform: uppercase; margin-top: .25rem; }
.card__vol { margin-top: .3rem; font-size: .82rem; color: var(--faint); }
.card__price {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em;
  color: var(--card-a, var(--text));
  display: flex; align-items: baseline; gap: .1rem;
}
.card__price span { font-size: .72em; font-weight: 700; opacity: .8; }
/* The drink palette is tuned for the dark theme, where every swatch is light on
   near-black. On cream those same pastels drop to ~1.05:1, so tint the price
   towards a deep green instead: still drink-coloured, but legible (>=5:1). */
html[data-theme="light"] .card__price {
  color: color-mix(in srgb, var(--card-a, #4F7030) 34%, #16210C);
}

.card.is-out { display: none; }

.menu__foot {
  display: flex; align-items: center; gap: .6rem;
  margin-top: 2rem; color: var(--faint); font-size: .88rem;
}
.menu__foot .i { width: 17px; height: 17px; flex: none; fill: currentColor; }

/* --------------------------------------------------------------- features */
.feats { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }
.feat {
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line); border-radius: var(--r-l);
  background: var(--surface);
  transition: transform .4s var(--ease-o), border-color .3s, background-color .3s;
}
.feat:hover { transform: translateY(-5px); border-color: var(--line-2); background: var(--surface-2); }
.feat__ic {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 14px; margin-bottom: 1rem;
  background: color-mix(in srgb, var(--matcha) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--matcha) 28%, transparent);
  color: var(--matcha-ink);
}
.feat__ic .i { width: 22px; height: 22px; fill: currentColor; }
.feat h3 { font-size: 1.04rem; margin-bottom: .45rem; }
.feat p { font-size: .92rem; color: var(--muted); }

/* --------------------------------------------------------------- gallery */
.gal { display: grid; gap: 14px; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 170px; }
.gal__i {
  position: relative; overflow: hidden; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-m);
  background: var(--bg-3); cursor: zoom-in;
  transition: transform .5s var(--ease-o), border-color .3s;
}
.gal__i img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-o), filter .4s; }
.gal__i::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 8, 6, .5), transparent 46%);
  opacity: 0; transition: opacity .4s;
}
.gal__i:hover { border-color: var(--line-2); }
.gal__i:hover img { transform: scale(1.07); }
.gal__i:hover::after { opacity: 1; }
.gal__i--big { grid-column: span 4; grid-row: span 3; }
.gal__i--p   { grid-column: span 2; grid-row: span 2; }
.gal__i--w   { grid-column: span 2; grid-row: span 2; }

/* --------------------------------------------------------------- loyalty */
.loyal {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding: clamp(1.8rem, 4vw, 3.4rem);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background:
    radial-gradient(120% 130% at 0% 0%, color-mix(in srgb, var(--matcha) 13%, transparent), transparent 55%),
    var(--surface);
  position: relative; overflow: hidden;
}
.loyal__ic {
  display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 16px; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, var(--matcha-2), var(--matcha));
  color: #10240A;
}
.loyal__ic .i { width: 26px; height: 26px; fill: currentColor; }
.loyal__txt .h2 { margin-bottom: 1rem; }
.loyal__hint { display: flex; gap: .55rem; align-items: flex-start; margin-top: 1.2rem; font-size: .86rem; color: var(--faint); }
.loyal__hint .i { width: 17px; height: 17px; flex: none; margin-top: .2em; fill: currentColor; }

.loyal__steps { display: grid; gap: .8rem; }
.loyal__steps li {
  display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--line); border-radius: var(--r-m);
  background: var(--bg-3);
  transition: transform .35s var(--ease), border-color .3s;
}
.loyal__steps li:hover { transform: translateX(5px); border-color: var(--matcha); }
.loyal__steps span {
  grid-row: span 2; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: color-mix(in srgb, var(--matcha) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--matcha) 35%, transparent);
  color: var(--matcha-ink); font-weight: 800; font-size: .9rem;
}
.loyal__steps b { font-weight: 700; font-size: 1rem; }
.loyal__steps small { color: var(--muted); font-size: .88rem; }

/* --------------------------------------------------------------- reviews */
.rate { display: flex; align-items: center; gap: .9rem; }
.rate > b { font-family: var(--ff-d); font-size: 2.6rem; font-weight: 700; line-height: 1; }
.rate small { display: block; color: var(--faint); font-size: .82rem; margin-top: .15rem; }

/* 2x2 keeps the four reviews balanced; auto-fit would leave an orphan on row 2 */
.revs { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rev {
  display: flex; flex-direction: column; gap: .9rem;
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--line); border-radius: var(--r-l);
  background: var(--surface);
  transition: transform .4s var(--ease-o), border-color .3s, background-color .3s;
}
.rev:hover { transform: translateY(-5px); border-color: var(--line-2); background: var(--surface-2); }
.rev p { color: var(--text); font-size: .97rem; line-height: 1.7; flex: 1; }
.rev footer { display: grid; gap: .1rem; padding-top: .4rem; border-top: 1px solid var(--line); }
.rev footer b { font-weight: 700; }
.rev footer span { font-size: .82rem; color: var(--faint); }
.revs__cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 2rem; }

/* --------------------------------------------------------------- contacts */
.contact { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.info { display: grid; gap: .7rem; }
.info > li {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line); border-radius: var(--r-m);
  background: var(--surface);
  transition: border-color .3s, background-color .3s;
}
.info > li:hover { border-color: var(--line-2); background: var(--surface-2); }
.info__ic {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 13px; color: var(--matcha-ink);
  background: color-mix(in srgb, var(--matcha) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--matcha) 26%, transparent);
}
.info__ic .i { width: 20px; height: 20px; fill: currentColor; }
.info b { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); margin-bottom: .3rem; }
.info p { font-size: 1.02rem; font-weight: 600; line-height: 1.45; }
.info p a { border-bottom: 1px solid var(--line-2); transition: border-color .3s, color .3s; }
.info p a:hover { color: var(--matcha-ink); border-color: var(--matcha); }

/* Links that sit inline inside a paragraph inherit the paragraph's line box,
   which leaves them at ~21-23px tall — below a comfortable tap target.
   inline-block + vertical padding fixes the height without changing the
   horizontal text flow or the underline. */
.info p a, .sec__note a, .menu__foot a {
  display: inline-block;
  padding-block: .22rem;
}
.info small { display: block; margin-top: .25rem; font-size: .84rem; color: var(--faint); }

.copy {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem;
  padding: .35rem .7rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: .78rem; font-weight: 600; color: var(--muted);
  transition: color .25s, border-color .25s;
}
.copy:hover { color: var(--matcha-ink); border-color: var(--matcha); }
.copy .i { width: 14px; height: 14px; fill: currentColor; }
.copy.is-done { color: var(--matcha-ink); border-color: var(--matcha); }

.status { color: var(--matcha-ink) !important; font-weight: 600; }
.status.is-closed { color: var(--berry) !important; }

.contact__btns { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.social { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.social__l {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .95rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: .88rem; font-weight: 600; color: var(--muted);
  transition: color .25s, border-color .25s, transform .3s var(--ease);
}
.social__l:hover { color: var(--text); border-color: var(--matcha); transform: translateY(-2px); }
.social__l .i { width: 18px; height: 18px; fill: currentColor; }

.contact__map {
  position: relative; min-height: 420px;
  border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden;
  background: var(--bg-3);
}
.contact__map iframe {
  width: 100%; height: 100%; min-height: 420px; border: 0;
  filter: saturate(.92) contrast(1.02);
}
/* the Yandex widget only ships a light style; invert it for the dark theme so
   the map does not glare against the page */
html[data-theme="dark"] .contact__map iframe {
  filter: invert(.92) hue-rotate(185deg) saturate(.62) contrast(.92) brightness(1.04);
}
.mapcard {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: grid; gap: .15rem; padding: .8rem 1rem;
  border-radius: var(--r-s); border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  font-size: .84rem; color: var(--muted);
  box-shadow: var(--shadow-s);
  pointer-events: none;
}
.mapcard b { font-size: 1rem; color: var(--text); }

/* --------------------------------------------------------------- footer */
.ftr { background: var(--bg-2); border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 5rem); }
.ftr__in { display: grid; gap: clamp(1.8rem, 4vw, 3rem); grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); padding-bottom: 2.5rem; }
.ftr__brand p { margin-top: .9rem; color: var(--muted); font-size: .92rem; max-width: 34ch; }
.ftr__nav, .ftr__info, .ftr__cta { display: flex; flex-direction: column; gap: .55rem; align-items: flex-start; }
.ftr__nav b, .ftr__info b, .ftr__cta b {
  font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint); margin-bottom: .3rem;
}
.ftr__nav a, .ftr__info a, .ftr__info span {
  font-size: .93rem; color: var(--muted);
  padding-block: .34rem;                 /* keeps footer links at a tappable size */
  transition: color .25s, transform .25s var(--ease);
}
.ftr__nav a:hover, .ftr__info a:hover { color: var(--matcha-ink); transform: translateX(3px); }
.ftr__cta { gap: .8rem; }
.ftr__cta .social { margin-top: 0; }

.ftr__bot {
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between;
  padding-block: 1.4rem; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--faint);
}
.ftr__legal { max-width: 62ch; }

/* --------------------------------------------------------------- mobile bar */
.mobar {
  position: fixed; inset: auto 0 0; z-index: 80;
  display: none; gap: .35rem;
  padding: .5rem clamp(.6rem, 3vw, 1rem) calc(.5rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-top: 1px solid var(--line);
}
.mobar__b {
  flex: 1; display: grid; justify-items: center; gap: .18rem;
  padding: .55rem .3rem; border-radius: 14px;
  font-size: .72rem; font-weight: 700; color: var(--muted);
  transition: color .25s, background-color .25s;
}
.mobar__b .i { width: 21px; height: 21px; fill: currentColor; }
.mobar__b--pri { background: linear-gradient(135deg, var(--matcha-2), var(--matcha)); color: #10240A; }

/* --------------------------------------------------------------- to top */
.totop {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 70; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  color: var(--text); box-shadow: var(--shadow-s);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
  transition: opacity .35s, transform .35s var(--ease), visibility .35s, border-color .3s, color .3s;
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
.totop:hover { border-color: var(--matcha); color: var(--matcha-ink); }
.totop .i { width: 20px; height: 20px; fill: currentColor; transform: rotate(180deg); }

/* --------------------------------------------------------------- lightbox */
.lbox { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; padding: clamp(1rem, 4vw, 2.5rem); }
.lbox::before { content: ''; position: absolute; inset: 0; background: rgba(6, 5, 4, .93); backdrop-filter: blur(8px); opacity: 0; transition: opacity .35s; }
.lbox.is-open::before { opacity: 1; }
.lbox__fig { position: relative; grid-column: 2; display: grid; justify-items: center; gap: 1rem; opacity: 0; transform: scale(.96); transition: opacity .4s, transform .45s var(--ease-o); }
.lbox.is-open .lbox__fig { opacity: 1; transform: none; }
.lbox__fig img { max-width: 100%; max-height: 78svh; border-radius: var(--r-m); border: 1px solid rgba(255, 255, 255, .12); }
.lbox__fig figcaption { color: #CFC6B8; font-size: .9rem; text-align: center; }
.lbox__x, .lbox__nav {
  position: relative; z-index: 2;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .07);
  color: #F4EEE2; transition: background-color .25s, transform .25s var(--ease);
}
.lbox__x { position: absolute; top: clamp(1rem, 4vw, 2rem); right: clamp(1rem, 4vw, 2rem); }
.lbox__x:hover, .lbox__nav:hover { background: rgba(255, 255, 255, .16); transform: scale(1.07); }
.lbox__x .i, .lbox__nav .i { width: 22px; height: 22px; fill: currentColor; }
.lbox__nav--prev { grid-column: 1; }
.lbox__nav--next { grid-column: 3; }
.lbox__nav--prev .i { transform: rotate(90deg); }
.lbox__nav--next .i { transform: rotate(-90deg); }

/* --------------------------------------------------------------- toast */
.toast {
  position: fixed; left: 50%; bottom: 2rem; z-index: 130;
  translate: -50% 0;
  display: flex; align-items: center; gap: .5rem;
  padding: .7rem 1.15rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--bg-3);
  box-shadow: var(--shadow); font-size: .88rem; font-weight: 600;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .3s, transform .35s var(--ease);
}
.toast.is-on { opacity: 1; transform: none; }
.toast .i { width: 17px; height: 17px; fill: var(--matcha-ink); }

/* --------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease-o), transform .9s var(--ease-o);
  transition-delay: calc(var(--d, 0) * 90ms);
}

/* LQIP blur-up: images start blurred and low-contrast until decoded */
[data-lqip] { position: relative; }
[data-lqip] img { transition: filter .7s var(--ease), transform .8s var(--ease-o); }
[data-lqip].is-blur img { filter: blur(14px) saturate(.7); transform: scale(1.06); }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .ftr__in { grid-template-columns: 1fr 1fr; }
  .ftr__brand { grid-column: span 2; }
}

@media (max-width: 940px) {
  :root { --hdr-h: 60px; }
  .nav { display: none; }
  .burger { display: grid; place-items: center; }
  .hdr__tel span { display: none; }
  .hdr__tel { padding: .7em; aspect-ratio: 1; border-radius: 50%; }
  .hero__in { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero__art { order: -1; width: min(100%, 268px); margin-inline: auto; }
  .cupwrap { width: 100%; }
  .hero__shot { width: 25%; right: -6%; bottom: 3%; }
  .chip--tl { top: 5%; left: -10%; }
  .chip--br { bottom: 10%; left: -8%; }
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; }
  .loyal { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .contact__map { min-height: 360px; order: -1; }
  .contact__map iframe { min-height: 360px; }
  .gal { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; }
  .gal__i--big { grid-column: span 4; grid-row: span 2; }
}

@media (max-width: 720px) {
  .sec__head { flex-direction: column; align-items: flex-start; }
  .sec__note { max-width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats__i:last-child { grid-column: span 2; }
  .hero { min-height: auto; padding-bottom: 4.5rem; }
  .hero__scroll { display: none; }
  .tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; border-radius: var(--r-m); }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs__ink { display: none; }
  .tab.is-on { background: linear-gradient(135deg, var(--matcha-2), var(--matcha)); }
  .cards { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: .75rem; }
  .revs { grid-template-columns: 1fr; }
  .card { padding: .85rem .85rem 1rem; border-radius: var(--r-m); gap: .7rem; }
  .card__cup { aspect-ratio: 1 / .95; }
  .card__price { font-size: 1.3rem; }
  .gal { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; gap: 10px; }
  .gal__i--big { grid-column: span 2; grid-row: span 2; }
  .lbox { grid-template-columns: 1fr; }
  .lbox__fig { grid-column: 1; }
  .lbox__nav--prev, .lbox__nav--next { display: none; }
  .mobar { display: flex; }
  .totop { display: none; }
  body { padding-bottom: 0; }
  .ftr { padding-bottom: 78px; }
  .toast { bottom: 88px; }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .stats__i:last-child { grid-column: auto; }
  .about__cta .btn { flex: 1 1 100%; }
  .ftr__in { grid-template-columns: 1fr; }
  .ftr__brand { grid-column: auto; }
  .hero__art { width: min(100%, 214px); }
  .chip { font-size: .66rem; padding: .3rem .6rem; }
  .chip--tl { left: -8%; top: 3%; }
  .chip--br { left: -6%; bottom: 6%; }
  .ph--float { width: 38%; right: -3%; bottom: -7%; }
  .badge-round { right: -2%; }
}

/* --------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .hdr, .mobar, .totop, .marquee, .hero__scroll, .lbox, .drawer, .grain, .orb { display: none !important; }
  body { background: #fff; color: #000; }
  .sec { padding-block: 1.5rem; }
}