/* =====================================================================
   Кав’ярня-книгарня «Не спи», Тернопіль
   style.css — mobile-first, без фреймворків і без зовнішніх зображень.
   Уся графіка: CSS-градієнти, SVG data-URI, inline SVG.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Токени
   --------------------------------------------------------------------- */
:root {
  /* колір */
  --ink: #241a12;
  --ink-2: #170f09;
  --ink-3: #120c07;
  --paper: #fdf8ee;
  --cream: #f7efe2;
  --cream-2: #fffdf7;

  --wood: #a8743f;
  --wood-l: #d3a169;
  --wood-d: #7d5228;
  --brown-text: #6b4a26;

  --honey: #e8b53a;
  /* темний мед: лише для зірок на світлому (контраст 4.87:1, а не 2.7:1) */
  --honey-d: #8f6a10;

  --mint: #8fd0b3;
  --mint-d: #3f8f6b;
  --mint-text: #2c6a4d;

  --text: #2c1f16;
  --text-soft: #6b5540;
  --line: rgba(36, 26, 18, 0.12);
  --line-dark: rgba(247, 239, 226, 0.14);

  /* шрифти */
  --f-display: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --f-hand: "Neucha", "Segoe Print", "Comic Sans MS", cursive;
  --f-ui: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mark: "Unbounded", "Manrope", system-ui, sans-serif;

  /* рух */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.2, 1.35, 0.35, 1);

  /* тіні */
  --sh-1: 0 1px 2px rgba(36, 26, 18, 0.05), 0 10px 26px -14px rgba(36, 26, 18, 0.22);
  --sh-2: 0 2px 4px rgba(36, 26, 18, 0.06), 0 24px 50px -22px rgba(36, 26, 18, 0.32);

  /* форма */
  --pad: clamp(20px, 5vw, 32px);
  --radius: 20px;
  --header-h: 62px;

  /* фокус */
  --focus: var(--ink);

  /* крейдяна текстура (шум) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='170' height='170' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------------
   2. База
   --------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.62;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img, svg, iframe { max-width: 100%; }
svg { display: block; }

section[id] { scroll-margin-top: calc(var(--header-h) + 14px); }

::selection { background: var(--honey); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 90;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 0 0 14px 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(58px, 12vw, 120px); }

/* ---------------------------------------------------------------------
   3. Типографіка-утиліти
   --------------------------------------------------------------------- */
.kicker {
  font-family: var(--f-mark);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint-text);
}
.kicker--onDark { color: var(--mint); }

.h2 {
  margin-top: 0.35em;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.15rem, 9vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.h2--onDark { color: var(--cream); }

.h2-rule {
  display: block;
  width: clamp(86px, 20vw, 150px);
  height: 3px;
  margin-top: 0.7em;
  background-image: repeating-linear-gradient(90deg, var(--wood) 0 11px, transparent 11px 19px);
  border-radius: 2px;
}
.h2-rule--onDark {
  background-image: repeating-linear-gradient(90deg, var(--honey) 0 11px, transparent 11px 19px);
}

.section-head { margin-bottom: clamp(26px, 5vw, 46px); }
.section-head--center { text-align: center; }
.section-head--center .h2-rule { margin-inline: auto; }

/* ---------------------------------------------------------------------
   4. Кнопки
   --------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.95em 1.45em;
  border: 0;
  border-radius: 999px;
  font-family: var(--f-ui);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--spring), background-color 0.3s var(--ease),
              color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.99); }

.btn .ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--spring);
}
.btn:hover .ico--arrow { transform: translateX(4px); }

/* блиск, що пробігає по кнопці */
.btn--honey::after,
.btn--mint::after {
  content: "";
  position: absolute;
  top: 0;
  left: -25%;
  width: 25%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-18deg) translateX(-40%);
  transition: transform 0.75s var(--ease-out);
}
.btn--honey:hover::after,
.btn--mint:hover::after { transform: skewX(-18deg) translateX(560%); }

.btn--honey { background: var(--honey); color: #241a0f; box-shadow: 0 12px 26px -14px rgba(232, 181, 58, 0.95); }
.btn--honey:hover { background: #f0c255; }

.btn--mint { background: var(--mint); color: #1b120a; box-shadow: 0 12px 26px -14px rgba(143, 208, 179, 0.95); }
.btn--mint:hover { background: #a2dcc4; }

.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: #33261a; }

.btn--ghost {
  background: rgba(247, 239, 226, 0.07);
  color: var(--cream);
  box-shadow: inset 0 0 0 1.5px rgba(247, 239, 226, 0.34);
}
.btn--ghost:hover {
  background: rgba(247, 239, 226, 0.14);
  box-shadow: inset 0 0 0 1.5px rgba(247, 239, 226, 0.7);
}

/* ---------------------------------------------------------------------
   5. Чип «відчинено / зачинено»
   --------------------------------------------------------------------- */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.5em 1em 0.5em 0.75em;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  background: rgba(247, 239, 226, 0.07);
  box-shadow: inset 0 0 0 1px rgba(247, 239, 226, 0.22);
  color: var(--cream);
}
.status-dot {
  position: relative;
  flex: none;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: #a99a8c;
}
.status-chip.is-open { color: var(--mint); }
.status-chip.is-open .status-dot { background: var(--mint); animation: ping 2.6s var(--ease-out) infinite; }
.status-chip.is-closed { color: #efb7a0; }
.status-chip.is-closed .status-dot { background: #d98b6d; }

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(143, 208, 179, 0.65); }
  70% { box-shadow: 0 0 0 9px rgba(143, 208, 179, 0); }
  100% { box-shadow: 0 0 0 0 rgba(143, 208, 179, 0); }
}

/* світлий варіант — на паперовій табличці */
.status-chip--light {
  background: rgba(36, 26, 18, 0.04);
  box-shadow: inset 0 0 0 1px rgba(36, 26, 18, 0.14);
  color: var(--ink);
}
.status-chip--light.is-open { color: var(--mint-text); }
.status-chip--light.is-open .status-dot { background: var(--mint-d); }
.status-chip--light.is-closed { color: #8a4a2f; }
.status-chip--light.is-closed .status-dot { background: #b8674a; }

/* ---------------------------------------------------------------------
   6. Шапка
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 238, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out),
              border-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.site-header.is-stuck {
  background: rgba(20, 13, 8, 0.82);
  color: var(--cream);
  border-bottom-color: rgba(247, 239, 226, 0.09);
  box-shadow: 0 18px 34px -26px rgba(0, 0, 0, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: var(--header-h);
}

.header-progress {
  position: absolute;
  inset: auto 0 -1px 0;
  height: 2px;
  background: rgba(36, 26, 18, 0.07);
  overflow: hidden;
}
.header-progress i {
  display: block;
  height: 100%;
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--honey), var(--mint));
}

/* логотип-табличка */
.logo { display: inline-flex; text-decoration: none; }
.logo-plate {
  position: relative;
  display: grid;
  place-content: center;
  gap: 2px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  text-align: center;
  color: var(--cream);
  background: radial-gradient(120% 120% at 30% 24%, #3b2b1c, var(--ink) 68%);
  box-shadow: inset 0 0 0 1px rgba(247, 239, 226, 0.14), 0 12px 24px -14px rgba(36, 26, 18, 0.9);
  transition: transform 0.6s var(--spring), box-shadow 0.5s var(--ease);
}
.logo-plate::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px dashed rgba(232, 181, 58, 0.6);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.4s var(--ease), transform 0.6s var(--spring);
}
.logo:hover .logo-plate {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: inset 0 0 0 1px rgba(232, 181, 58, 0.45), 0 16px 28px -14px rgba(0, 0, 0, 0.8);
}
.logo:hover .logo-plate::after { opacity: 1; transform: none; }

.logo-mark {
  font-family: var(--f-mark);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}
.logo-tag {
  font-family: var(--f-hand);
  font-size: 0.6rem;
  line-height: 1;
  color: var(--honey);
  max-width: 50px;
  margin-inline: auto;
}

/* бургер */
.burger {
  display: grid;
  place-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(36, 26, 18, 0.14);
  border-radius: 15px;
  background: rgba(36, 26, 18, 0.04);
  color: inherit;
  cursor: pointer;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.site-header.is-stuck .burger {
  background: rgba(247, 239, 226, 0.08);
  border-color: rgba(247, 239, 226, 0.18);
}
.burger span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.45s var(--ease-out), opacity 0.25s var(--ease), width 0.3s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { width: 8px; opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* навігація */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  color: var(--cream);
  background: linear-gradient(180deg, #261b12, #1a110a);
  border-bottom: 1px solid rgba(247, 239, 226, 0.1);
  box-shadow: 0 34px 54px -32px rgba(0, 0, 0, 0.9);
  transition: max-height 0.55s var(--ease-out), opacity 0.35s var(--ease),
              visibility 0.35s var(--ease);
}
.site-nav.is-open { max-height: min(82svh, 540px); opacity: 1; visibility: visible; }

.nav-list {
  display: grid;
  gap: 2px;
  padding: 16px var(--pad) 24px;
}
.nav-link {
  position: relative;
  display: block;
  padding: 14px 2px;
  font-size: 1.12rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(247, 239, 226, 0.14);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease), transform 0.55s var(--ease-out), color 0.3s var(--ease);
}
.site-nav.is-open .nav-link { opacity: 1; transform: none; }
.site-nav.is-open .nav-item:nth-child(1) .nav-link { transition-delay: 0.08s; }
.site-nav.is-open .nav-item:nth-child(2) .nav-link { transition-delay: 0.14s; }
.site-nav.is-open .nav-item:nth-child(3) .nav-link { transition-delay: 0.2s; }
.site-nav.is-open .nav-item:nth-child(4) .nav-link { transition-delay: 0.26s; }
.nav-link:hover { color: var(--honey); }

.nav-item--cta { padding-top: 12px; }
.nav-item--cta .btn { width: 100%; }
.nav-item--status { padding-top: 12px; }

/* ---------------------------------------------------------------------
   7. Hero
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  color: var(--cream);
  background:
    radial-gradient(88% 68% at 10% 0%, rgba(168, 116, 63, 0.38), transparent 58%),
    radial-gradient(66% 58% at 90% 16%, rgba(63, 143, 107, 0.24), transparent 62%),
    radial-gradient(84% 54% at 50% 110%, rgba(232, 181, 58, 0.15), transparent 62%),
    linear-gradient(168deg, #32251a 0%, #241a12 46%, #150e08 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--grain);
  opacity: 0.22;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.glow {
  position: absolute;
  border-radius: 50%;
}
.glow--1 {
  top: -14%;
  left: -18%;
  width: 62vw;
  height: 62vw;
  max-width: 520px;
  max-height: 520px;
  background: radial-gradient(circle, rgba(168, 116, 63, 0.5), rgba(168, 116, 63, 0) 68%);
}
.glow--2 {
  right: -20%;
  bottom: -10%;
  width: 58vw;
  height: 58vw;
  max-width: 460px;
  max-height: 460px;
  background: radial-gradient(circle, rgba(143, 208, 179, 0.26), rgba(143, 208, 179, 0) 70%);
}

.bean {
  position: absolute;
  color: #1d1309;
  opacity: 0.85;
}
.bean--1 { top: 12%; right: 12%; width: 22px; animation: drift 9s var(--ease) infinite; }
.bean--2 { bottom: 26%; left: 7%; width: 26px; animation: drift 12s var(--ease) infinite reverse; }
.bean--3 { top: 46%; left: 46%; width: 16px; opacity: 0.55; animation: drift 15s var(--ease) infinite; }

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-14deg); }
  50% { transform: translate3d(4px, -16px, 0) rotate(18deg); }
}

.doodle { position: absolute; color: rgba(247, 239, 226, 0.16); }
.doodle--star { top: 22%; left: 4%; width: 34px; }
.doodle--ring { bottom: 18%; right: 6%; width: 54px; }

/* контент */
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(30px, 7vw, 52px);
  padding-block: clamp(30px, 8vw, 60px) clamp(120px, 26vw, 190px);
}

.hero-kicker { color: var(--mint); }

.hero-title {
  margin-top: 0.5em;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(3.1rem, 15vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
}
.hero-title .line { display: block; }
.line--chalk {
  position: relative;
  display: inline-block;
  font-family: var(--f-hand);
  font-weight: 400;
  font-size: 0.94em;
  line-height: 1.1;
  color: var(--honey);
}
.swash {
  position: absolute;
  left: -1%;
  bottom: -0.16em;
  width: 102%;
  height: 0.3em;
  overflow: visible;
}
.swash path {
  fill: none;
  stroke: var(--mint);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: draw 1.1s 0.95s var(--ease-out) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-sub {
  margin-top: 1.1em;
  max-width: 30ch;
  font-size: clamp(1rem, 3.6vw, 1.16rem);
  color: rgba(247, 239, 226, 0.82);
}

.hero-status { margin-top: 1.3em; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.4em;
}
.hero-cta .btn { flex: 1 1 148px; }

.hero-slogan {
  margin-top: 1.6em;
  font-family: var(--f-hand);
  font-size: clamp(1.1rem, 4vw, 1.3rem);
  color: rgba(247, 239, 226, 0.72);
}

/* вхід hero-рядків */
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 26px, 0); }
  to { opacity: 1; transform: none; }
}
.hero-copy > [data-hero-line] {
  animation: rise 0.95s var(--ease-out) both;
  animation-delay: calc(100ms + var(--i, 0) * 90ms);
}

/* «крейдяна табличка» */
.hero-still {
  position: relative;
  width: min(100%, 360px);
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  animation: still-in 1.2s 0.3s var(--ease-out) both;
}
@keyframes still-in {
  from { opacity: 0; transform: scale(0.94) translateY(18px); }
  to { opacity: 1; transform: none; }
}

.still-ring {
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  border: 1px solid rgba(247, 239, 226, 0.09);
}

.chalk-note {
  position: absolute;
  inset: 9% 6% 14% 6%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.5em;
  padding: 8% 10%;
  border-radius: 50%;
  border: 2px dashed rgba(247, 239, 226, 0.32);
  transform: rotate(-3.5deg);
  background: radial-gradient(72% 72% at 50% 40%, rgba(247, 239, 226, 0.07), transparent 72%);
  animation: float 9s var(--ease) infinite;
}
@keyframes float {
  0%, 100% { transform: rotate(-3.5deg) translateY(0); }
  50% { transform: rotate(-3.5deg) translateY(-8px); }
}

.chalk-note-cap {
  font-family: var(--f-hand);
  font-size: clamp(0.82rem, 2.6vw, 1rem);
  color: rgba(247, 239, 226, 0.62);
}
.chalk-hours {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.15em 0.9em;
  font-family: var(--f-hand);
  font-size: clamp(0.95rem, 3.4vw, 1.28rem);
  color: rgba(247, 239, 226, 0.9);
  text-align: left;
}
.chalk-hours b { color: var(--mint); font-weight: 400; }
.chalk-underline {
  display: block;
  width: 74%;
  height: 3px;
  background-image: repeating-linear-gradient(90deg, rgba(232, 181, 58, 0.7) 0 11px, transparent 11px 19px);
  transform: scaleX(0);
  transform-origin: left center;
  animation: chalk-draw 0.9s 1.5s var(--ease-out) forwards;
}
@keyframes chalk-draw { to { transform: scaleX(1); } }

.still-cup {
  position: absolute;
  left: -2%;
  bottom: 2%;
  width: 42%;
  overflow: visible;
}
.still-book {
  position: absolute;
  right: -4%;
  bottom: -2%;
  width: 40%;
}
.still-cup .stroke,
.still-book .stroke {
  fill: none;
  stroke: rgba(247, 239, 226, 0.82);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stroke--thin { stroke-width: 2; opacity: 0.5; }

.steam path {
  fill: none;
  stroke: var(--mint);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
  opacity: 0;
  animation: steam 4s var(--ease) infinite;
}
.steam path:nth-child(2) { animation-delay: 0.7s; }
.steam path:nth-child(3) { animation-delay: 1.4s; }
@keyframes steam {
  0% { stroke-dashoffset: 34; opacity: 0; transform: translateY(6px); }
  22% { opacity: 0.95; }
  62% { stroke-dashoffset: 0; opacity: 0.5; transform: translateY(-4px); }
  100% { stroke-dashoffset: -34; opacity: 0; transform: translateY(-14px); }
}

/* поличка з корінцями книжок */
.shelf {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: clamp(86px, 17vw, 136px);
  padding-inline: clamp(10px, 4vw, 44px);
}
.spine {
  width: clamp(11px, 2.1vw, 21px);
  height: var(--h, 60%);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--c1), var(--c2));
  box-shadow: inset -2px 0 0 rgba(0, 0, 0, 0.28), inset 2px 0 0 rgba(255, 255, 255, 0.1);
  transform: rotate(var(--rot, 0deg));
  transform-origin: bottom center;
  animation: spine-in 0.9s var(--ease-out) both;
  animation-delay: calc(420ms + var(--i, 0) * 55ms);
}
.spine--lean { --rot: -11deg; margin-right: 7px; }

@keyframes spine-in {
  from { opacity: 0; transform: translateY(26px) rotate(var(--rot, 0deg)); }
  to { opacity: 1; transform: rotate(var(--rot, 0deg)); }
}

.shelf::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9px;
  background: linear-gradient(180deg, var(--wood-l), var(--wood-d));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 14px 30px -10px rgba(0, 0, 0, 0.85);
}

/* ---------------------------------------------------------------------
   8. Бегучий рядок
   --------------------------------------------------------------------- */
.ticker {
  position: relative;
  z-index: 3;
  overflow: hidden;
  background: linear-gradient(180deg, #1c1209, #140d07);
  border-block: 1px solid rgba(232, 181, 58, 0.2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 52s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translate3d(-50%, 0, 0); } }

.ticker-group {
  --tg: clamp(18px, 4vw, 38px);
  display: flex;
  align-items: center;
  gap: var(--tg);
  padding-block: 13px;
  padding-right: var(--tg);
}
.ticker-item {
  font-family: var(--f-hand);
  font-size: clamp(0.98rem, 2.7vw, 1.18rem);
  white-space: nowrap;
  color: rgba(247, 239, 226, 0.86);
}
.ticker-item--mark { color: var(--honey); }
.ticker-sep { width: 15px; height: 19px; flex: none; color: var(--wood); }

/* ---------------------------------------------------------------------
   9. Про нас
   --------------------------------------------------------------------- */
.about {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--paper), #f7efe0);
}
.about::before {
  content: "";
  position: absolute;
  top: 6%;
  right: -70px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 14px solid rgba(168, 116, 63, 0.07);
  box-shadow: inset 0 0 0 2px rgba(168, 116, 63, 0.06);
  pointer-events: none;
}
.about-grid { display: grid; gap: clamp(30px, 6vw, 56px); }

.lead {
  margin-top: clamp(18px, 3.4vw, 28px);
  max-width: 54ch;
  font-size: clamp(1.04rem, 3.5vw, 1.26rem);
  line-height: 1.66;
  color: #463323;
}
.lead::first-letter {
  float: left;
  margin: 0.06em 0.1em 0 0;
  font-family: var(--f-display);
  font-size: 3.5em;
  font-weight: 600;
  line-height: 0.76;
  color: var(--wood-d);
}

.features { border-top: 1px solid var(--line); }
.feature {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 15px;
  padding: 17px 8px;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0 -12px;
  z-index: -1;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(143, 208, 179, 0.18), rgba(143, 208, 179, 0) 72%);
  opacity: 0;
  transform: scaleX(0.94);
  transform-origin: left center;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease-out);
}
.feature:hover::before { opacity: 1; transform: none; }

.feature-ico {
  display: grid;
  place-content: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: var(--ink);
  background: var(--cream);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.5s var(--spring), background-color 0.4s var(--ease);
}
.feature:hover .feature-ico { transform: rotate(-7deg); background: #fff8ea; }
.feature-ico svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-t { display: block; font-weight: 700; font-size: 1.03rem; line-height: 1.3; }
.feature-s { display: block; margin-top: 2px; font-size: 0.9rem; color: var(--text-soft); }

/* ---------------------------------------------------------------------
   10. Меню — мелова дошка
   --------------------------------------------------------------------- */
.menu {
  position: relative;
  background:
    radial-gradient(70% 50% at 100% 0%, rgba(143, 208, 179, 0.12), transparent 60%),
    linear-gradient(180deg, #f7efe0, #f1e5d1);
}

.board {
  position: relative;
  padding: clamp(9px, 1.8vw, 15px);
  border-radius: 26px;
  background: linear-gradient(152deg, var(--wood-l) 0%, var(--wood) 32%, var(--wood-d) 72%, #5b3a1b 100%);
  box-shadow: 0 46px 80px -46px rgba(36, 26, 18, 0.6),
              inset 0 2px 0 rgba(255, 255, 255, 0.3),
              inset 0 -2px 0 rgba(0, 0, 0, 0.28);
}
/* крейдова поличка-лоток під дошкою */
.board::after {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: -7px;
  height: 13px;
  border-radius: 7px;
  background: linear-gradient(180deg, var(--wood-d), #4a2e14);
  box-shadow: 0 14px 24px -12px rgba(0, 0, 0, 0.7);
}

.board-inner {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 4.4vw, 36px);
  border-radius: 16px;
  /* світлий текст-«крейда»: інакше вміст меню успадковує темно-коричневий
     колір тексту з body і зникає на темній дошці */
  color: var(--cream);
  background: radial-gradient(122% 112% at 16% 0%, #34261a, #241a12 52%, #160f08);
  box-shadow: inset 0 0 0 1px rgba(247, 239, 226, 0.07),
              inset 0 34px 60px -44px rgba(0, 0, 0, 0.95);
}
/* світло, що ходить за курсором */
.board-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(247, 239, 226, 0.08), transparent 68%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.board:hover .board-inner::before { opacity: 1; }
/* крейдяний шум */
.board-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.board-doodle { position: absolute; color: rgba(247, 239, 226, 0.14); pointer-events: none; }
.board-doodle--tl { top: 14px; left: 16px; width: 30px; }
.board-doodle--br { right: 16px; bottom: 12px; width: 54px; }

/* вкладки */
.tabs {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-bottom: clamp(16px, 3.4vw, 26px);
  padding: 2px 2px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 0 0 auto;
  padding: 0.42em 1.05em 0.5em;
  font-family: var(--f-hand);
  font-size: clamp(1.05rem, 3.3vw, 1.32rem);
  color: rgba(247, 239, 226, 0.72);
  background: transparent;
  border: 2px dashed transparent;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  cursor: pointer;
  transition: color 0.35s var(--ease), background-color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.5s var(--spring);
}
.tab:hover { color: var(--cream); transform: rotate(-1deg); }
.tab[aria-selected="true"] {
  color: var(--honey);
  border-color: rgba(232, 181, 58, 0.6);
  background: rgba(232, 181, 58, 0.07);
  transform: rotate(-1.2deg);
}

/* панель */
.panel { position: relative; z-index: 1; }
.panel[hidden] { display: none; }

.panel-title {
  margin-bottom: 0.55em;
  font-family: var(--f-hand);
  font-size: clamp(1.5rem, 5.4vw, 2.1rem);
  font-weight: 400;
  color: var(--honey);
}
.panel-title::after {
  content: "";
  display: block;
  width: min(100%, 210px);
  height: 2px;
  margin-top: 0.32em;
  background-image: repeating-linear-gradient(90deg, rgba(232, 181, 58, 0.5) 0 10px, transparent 10px 17px);
}
@keyframes flicker {
  from { opacity: 0.3; filter: blur(1.5px); }
  to { opacity: 1; filter: none; }
}
.panel.is-swap .panel-title { animation: flicker 0.55s var(--ease-out); }

.menu-list { display: grid; }
.menu-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(247, 239, 226, 0.13);
}
.menu-item:last-child { border-bottom: 0; }

@keyframes row-in {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: none; }
}
.panel:not([hidden]) .menu-item {
  animation: row-in 0.6s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 32ms + 60ms);
}

.menu-name { font-weight: 600; letter-spacing: 0.004em; }
.menu-note {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(247, 239, 226, 0.6);
}
.menu-dots {
  flex: 1 1 auto;
  min-width: 20px;
  height: 5px;
  background-image: radial-gradient(circle, rgba(247, 239, 226, 0.3) 1px, transparent 1.4px);
  background-size: 6px 5px;
  background-repeat: repeat-x;
  background-position: 0 bottom;
}
.menu-price {
  flex: none;
  font-family: var(--f-mark);
  font-size: 0.88rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--cream);
}
.menu-price .s { font-size: 0.86em; font-weight: 400; color: var(--mint); }

.menu-extras {
  margin-top: clamp(16px, 3vw, 24px);
  padding: clamp(13px, 2.8vw, 20px) clamp(15px, 3.2vw, 24px);
  border: 2px dashed rgba(232, 181, 58, 0.42);
  border-radius: 24px 9px 22px 10px / 10px 22px 9px 24px;
}
.menu-extras-title {
  margin-bottom: 0.3em;
  font-family: var(--f-hand);
  font-size: 1.22rem;
  font-weight: 400;
  color: var(--honey);
}

/* ---------------------------------------------------------------------
   11. Відгуки
   --------------------------------------------------------------------- */
.reviews {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f1e5d1, var(--paper) 55%);
}
.reviews::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.06;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.rating {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3.4vw, 26px);
  max-width: 620px;
  margin-bottom: clamp(26px, 5vw, 42px);
  padding: clamp(16px, 3.4vw, 24px) clamp(18px, 3.6vw, 28px);
  border-radius: 22px;
  background: var(--cream-2);
  box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
}
.rating-num {
  font-family: var(--f-display);
  font-size: clamp(2.7rem, 10vw, 3.7rem);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.rating-col { display: grid; gap: 5px; }
.rating-stars { display: flex; gap: 3px; color: var(--honey-d); }
.rating-stars svg { width: 17px; height: 17px; }
.rating-meta { font-size: 0.92rem; color: var(--text-soft); }
.rating-meta b { color: var(--ink); }

.review-list { display: grid; gap: clamp(16px, 3vw, 22px); }

.review-note {
  position: relative;
  padding: clamp(20px, 3.4vw, 26px);
  border-radius: 7px 20px 8px 20px;
  background-color: var(--cream-2);
  background-image: repeating-linear-gradient(180deg, transparent 0 27px, rgba(36, 26, 18, 0.05) 27px 28px);
  box-shadow: var(--sh-1);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.55s var(--spring), box-shadow 0.45s var(--ease);
}
.review-note:nth-child(odd) { --rot: -0.7deg; }
.review-note:nth-child(even) { --rot: 0.6deg; }
.review-note:hover { transform: rotate(0deg) translateY(-5px); box-shadow: var(--sh-2); }
/* скотч */
.review-note::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 72px;
  height: 17px;
  border-radius: 2px;
  transform: translateX(-50%) rotate(-2deg);
  background: linear-gradient(180deg, rgba(232, 181, 58, 0.5), rgba(232, 181, 58, 0.3));
  box-shadow: 0 3px 8px -4px rgba(36, 26, 18, 0.4);
}

.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar {
  display: grid;
  place-content: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-weight: 800;
  color: var(--cream);
  background: linear-gradient(140deg, var(--wood), var(--wood-d));
}
.review-note:nth-child(2n) .review-avatar { background: linear-gradient(140deg, var(--mint-d), var(--mint)); color: var(--ink); }
.review-note:nth-child(3n) .review-avatar { background: linear-gradient(140deg, var(--honey), #f0d187); color: var(--ink); }
.review-who { display: grid; min-width: 0; flex: 1; }
.review-name { font-weight: 700; line-height: 1.25; }
.review-meta { font-size: 0.82rem; color: var(--text-soft); }
.review-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
  color: var(--mint-text);
  background: rgba(63, 143, 107, 0.13);
}
.review-stars { flex: none; color: var(--honey-d); letter-spacing: 1px; font-size: 0.95rem; }
.review-text { color: #3a2a1e; }
.review-soft { font-size: 0.95rem; font-style: italic; color: var(--text-soft); }

.scores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  font-size: 0.85rem;
  color: var(--text-soft);
}
.scores b { color: var(--ink); }
.scores-wide { flex-basis: 100%; }

.reviews-more { margin-top: clamp(24px, 4vw, 34px); }

.link-draw {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  color: var(--mint-text);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: 0 100%;
  padding-bottom: 3px;
  transition: background-size 0.45s var(--ease-out);
}
.link-draw:hover { background-size: 0 2px; }
.link-draw .ico {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.45s var(--spring);
}
.link-draw:hover .ico { transform: translateX(5px); }

/* ---------------------------------------------------------------------
   12. Контакти
   --------------------------------------------------------------------- */
.contacts {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(76% 58% at 88% 6%, rgba(168, 116, 63, 0.34), transparent 60%),
    radial-gradient(66% 58% at 4% 98%, rgba(63, 143, 107, 0.22), transparent 64%),
    linear-gradient(180deg, #241a12, #150e08);
  --focus: var(--honey);
}
.contacts::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.2;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.contacts-grid { display: grid; gap: clamp(26px, 5vw, 46px); }

/* паперова табличка на темній стіні */
.sign {
  position: relative;
  padding: clamp(20px, 4.4vw, 32px);
  border-radius: 20px;
  color: var(--text);
  background: linear-gradient(180deg, var(--paper), #f6ecdc);
  box-shadow: var(--sh-2);
  transform: rotate(-0.5deg);
}
.sign::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 14px;
  border: 1px dashed rgba(107, 74, 38, 0.22);
  pointer-events: none;
}

.sign-list { margin-top: clamp(18px, 3.4vw, 24px); }
.sign-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(107, 74, 38, 0.2);
}
.sign-item:last-child { border-bottom: 0; }
.sign-ico {
  display: grid;
  place-content: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  color: var(--wood-d);
  background: rgba(168, 116, 63, 0.12);
}
.sign-ico svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sign-body { display: grid; gap: 3px; }
.sign-label {
  font-family: var(--f-mark);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-text);
}
.sign-value {
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  color: var(--text);
  transition: color 0.3s var(--ease);
}
.sign-value:hover { color: var(--mint-text); }
.sign-phone {
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 6.4vw, 2.1rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.sign-label--hours { margin-top: clamp(16px, 3vw, 22px); }
.hours {
  width: 100%;
  margin-top: 0.5em;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.hours th,
.hours td {
  padding: 0.6em 0.2em;
  text-align: left;
  border-bottom: 1px dashed rgba(107, 74, 38, 0.22);
}
.hours tr:last-child th,
.hours tr:last-child td { border-bottom: 0; }
.hours th { font-weight: 700; }
.hours td { text-align: right; font-weight: 600; }
.hours tr { transition: background-color 0.6s var(--ease); }
.hours tr.is-today {
  background: linear-gradient(90deg, rgba(143, 208, 179, 0.28), rgba(143, 208, 179, 0));
}
.hours tr.is-today th::after {
  content: "сьогодні";
  display: inline-block;
  margin-left: 0.5em;
  padding: 0.05em 0.55em;
  border-radius: 999px;
  font-family: var(--f-hand);
  font-size: 0.9em;
  font-weight: 400;
  color: var(--mint-text);
  background: rgba(143, 208, 179, 0.34);
  animation: tag-in 0.6s var(--ease-out) both;
}
@keyframes tag-in {
  from { opacity: 0; transform: scale(0.8) rotate(-6deg); }
  to { opacity: 1; transform: none; }
}

.contacts-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(20px, 4vw, 28px);
}
.contacts-cta .btn { flex: 1 1 170px; }

/* карта у дерев’яній рамі */
.map-cap {
  margin-bottom: 0.7em;
  font-family: var(--f-hand);
  font-size: clamp(1rem, 3.4vw, 1.2rem);
  color: var(--mint);
}
.map-frame {
  position: relative;
  padding: clamp(8px, 1.6vw, 13px);
  border-radius: 20px;
  background: linear-gradient(150deg, var(--wood-l), var(--wood) 38%, var(--wood-d) 76%, #54341a);
  box-shadow: 0 40px 70px -38px rgba(0, 0, 0, 0.85),
              inset 0 2px 0 rgba(255, 255, 255, 0.28);
}
.map-mat {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #1b120b;
}
.map-mat::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  pointer-events: none;
}
.map-mat iframe {
  display: block;
  width: 100%;
  height: clamp(300px, 54vw, 470px);
  border: 0;
}

/* ---------------------------------------------------------------------
   13. Футер
   --------------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-block: clamp(28px, 5vw, 42px);
  color: rgba(247, 239, 226, 0.72);
  background: var(--ink-3);
  border-top: 1px solid rgba(247, 239, 226, 0.08);
  --focus: var(--honey);
}
.footer-inner { display: grid; gap: 10px; }
.footer-brand { font-family: var(--f-mark); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.05em; color: var(--cream); }
.footer-line { font-size: 0.92rem; }
.footer-line a {
  text-decoration: none;
  border-bottom: 1px dashed rgba(247, 239, 226, 0.3);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.footer-line a:hover { color: var(--honey); border-color: var(--honey); }
.footer-dot { opacity: 0.5; }

/* ---------------------------------------------------------------------
   14. Мобільна панель дій
   --------------------------------------------------------------------- */
.mobile-bar {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(11px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(20, 13, 8, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 44px -20px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(247, 239, 226, 0.12);
  opacity: 0;
  transform: translateY(150%);
  transition: transform 0.6s var(--ease-out), opacity 0.45s var(--ease);
}
.mobile-bar.is-shown { opacity: 1; transform: none; }
.mobile-bar .btn { flex: 1; padding: 0.88em 1em; font-size: 0.92rem; }
.mobile-bar .btn--honey { flex: 1.15; }

/* ---------------------------------------------------------------------
   15. Поява при скролі
   Використовуємо окремі властивості translate/scale, а не transform,
   щоб не перебивати власні transform (нахил «записок», масштаб дошки).
   --------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  translate: 0 26px;
  transition: opacity 0.85s var(--ease-out), translate 0.95s var(--ease-out),
              scale 0.95s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal="left"] { translate: -28px 0; }
.js [data-reveal="fade"] { translate: none; }
.js [data-reveal="scale"] { translate: 0 18px; scale: 0.96; }

.js [data-reveal="rule"] {
  opacity: 1;
  translate: none;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1s var(--ease-out) var(--d, 0ms);
}
.section-head--center [data-reveal="rule"] { transform-origin: center; }

.js [data-reveal].is-in { opacity: 1; translate: none; scale: none; }
.js [data-reveal="rule"].is-in { transform: scaleX(1); }

/* ---------------------------------------------------------------------
   16. Планшет
   --------------------------------------------------------------------- */
@media (min-width: 640px) {
  .hero-cta .btn { flex: 0 0 auto; }
  .review-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-note:nth-child(3) { --rot: -0.5deg; }
  .mobile-bar { left: 50%; right: auto; width: min(520px, calc(100% - 24px)); transform: translate(-50%, 150%); }
  .mobile-bar.is-shown { transform: translate(-50%, 0); }
}

/* ---------------------------------------------------------------------
   17. Десктоп
   --------------------------------------------------------------------- */
@media (min-width: 900px) {
  :root { --header-h: 74px; --pad: 36px; }

  .logo-plate { width: 62px; height: 62px; }
  .logo-mark { font-size: 0.68rem; }
  .logo-tag { font-size: 0.65rem; max-width: 56px; }

  .burger { display: none; }

  .site-nav {
    position: static;
    max-height: none;
    opacity: 1;
    visibility: visible;
    overflow: visible;
    background: none;
    border: 0;
    box-shadow: none;
    color: inherit;
  }
  .nav-list {
    grid-auto-flow: column;
    align-items: center;
    gap: 26px;
    padding: 0;
  }
  .nav-item--cta { padding-top: 0; }
  .nav-item--cta .btn { width: auto; }
  .nav-item--status { display: none; }
  .nav-link {
    padding: 6px 2px;
    font-size: 0.96rem;
    border-bottom: 0;
    opacity: 1;
    transform: none;
  }
  .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background-image: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 10px);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.5s var(--ease-out);
  }
  .nav-link:hover::after,
  .nav-link:focus-visible::after { transform: scaleX(1); }

  .site-header.is-stuck .btn-call { background: var(--honey); color: #241a0f; }
  .site-header.is-stuck .btn-call:hover { background: #f0c255; }

  .hero-inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: center;
    gap: clamp(30px, 5vw, 60px);
    padding-block: clamp(46px, 7vw, 84px) clamp(150px, 15vw, 200px);
  }
  .hero-still { width: min(100%, 420px); margin-inline: 0 0; }
  .bean--1 { width: 26px; }
  .bean--2 { width: 30px; }
  .shelf { height: clamp(110px, 12vw, 150px); }

  .about-grid { grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); align-items: start; gap: clamp(36px, 6vw, 72px); }
  .about::before { right: -40px; }
  .lead { margin-top: clamp(22px, 3vw, 32px); }

  .board { padding: 15px; }
  .board-inner { padding: clamp(26px, 2.6vw, 38px); }

  .review-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .contacts-grid { grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr); align-items: start; }
  .map-cap { margin-top: -0.2em; }

  .mobile-bar { display: none; }
  body { padding-bottom: 0; }

  .footer-inner {
    grid-auto-flow: column;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
  }
  .footer-line:last-child { text-align: right; }
}

@media (min-width: 1200px) {
  .hero-title { font-size: 6.8rem; }
  .shelf { gap: 4px; }
}

/* ---------------------------------------------------------------------
   18. Повага до налаштувань руху
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }

  .js [data-reveal],
  .js [data-reveal="rule"] {
    opacity: 1;
    translate: none;
    scale: none;
    transform: none;
  }

  .hero-copy > [data-hero-line],
  .hero-still { opacity: 1; transform: none; }

  .swash path { stroke-dashoffset: 0; }
  .chalk-underline { transform: scaleX(1); }
  .ticker-track { animation: none; }
  .bean,
  .chalk-note,
  .steam path { animation: none; }
  .steam path { opacity: 0.5; stroke-dashoffset: 0; }
  .panel:not([hidden]) .menu-item { opacity: 1; transform: none; }
}
