﻿/* ==========================================================================
   ROAST LAB — кофейня. Тёмная тёплая тема, медный акцент, крупный гротеск.
   ========================================================================== */

:root {
  --bg: #14100d;
  --bg-2: #1b1512;
  --fg: #f2eae1;
  --dim: #a79c90;
  --line: rgba(242, 234, 225, 0.13);
  --copper: #c97b4a;
  --copper-soft: rgba(201, 123, 74, 0.16);

  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --sans: "Manrope", -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

::selection { background: var(--copper); color: #14100d; }

/* ---------- типографика ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0.01em;
  margin: 0;
}

h1 { font-size: clamp(64px, 11vw, 168px); }
h2 { font-size: clamp(44px, 6.4vw, 92px); }
h3 { font-size: 30px; line-height: 1; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 22px;
}

.lead { color: var(--dim); font-size: clamp(15px, 1.2vw, 18px); max-width: 42ch; }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn-copper { background: var(--copper); color: #1a120d; }
.btn-copper:hover { background: #e0915c; }

.btn-outline { border-color: var(--line); color: var(--fg); }
.btn-outline:hover { border-color: var(--fg); background: rgba(242, 234, 225, 0.05); }

.btn-full { width: 100%; height: 54px; }

/* ---------- шапка ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--pad);
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  padding: 12px var(--pad);
  background: rgba(20, 16, 13, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.logo {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.06em;
}
.logo span { color: var(--copper); }

.nav { display: flex; gap: 26px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.nav a { color: var(--dim); transition: color 0.25s ease; }
.nav a:hover { color: var(--fg); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.phone { font-size: 14px; font-weight: 600; white-space: nowrap; }

.burger {
  display: none;
  position: relative;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 14px;
  width: 17px; height: 1.5px;
  background: var(--fg);
  transition: transform 0.3s ease;
}
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 25px; }
.burger.is-open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ---------- мобильное меню ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--bg);
  padding: 110px var(--pad) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--display);
  font-size: clamp(32px, 9vw, 48px);
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu-footer { font-size: 13px; color: var(--dim); letter-spacing: 0.06em; }
.mobile-menu-footer a { color: var(--copper); }

/* ---------- hero ---------- */

.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(120px, 15vh, 180px) var(--pad) clamp(40px, 7vh, 90px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}

.hero > * { min-width: 0; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0 40px; }

.hero-stats {
  display: flex;
  gap: clamp(22px, 4vw, 52px);
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}
.hero-stats li { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { font-family: var(--display); font-size: 42px; line-height: 1; letter-spacing: 0.02em; }
.hero-stats span { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }

/* ---------- чашка: объёмная сцена ---------- */

.hero-art {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
}

.scene {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1 / 1.02;
}

.scene-glow {
  position: absolute;
  inset: -18% -10% 0;
  background: radial-gradient(50% 46% at 52% 44%, rgba(201, 123, 74, 0.55), transparent 72%);
  filter: blur(42px);
  animation: glowBreathe 9s ease-in-out infinite alternate;
}

@keyframes glowBreathe {
  from { opacity: 0.65; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1.06); }
}

.scene-rays {
  position: absolute;
  inset: -30% -20% 10%;
  background: conic-gradient(from 210deg at 50% 20%,
      transparent 0deg,
      rgba(255, 214, 170, 0.14) 18deg,
      transparent 40deg,
      transparent 120deg,
      rgba(255, 214, 170, 0.1) 142deg,
      transparent 168deg);
  filter: blur(6px);
  opacity: 0.8;
}

.scene-table {
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 4%;
  height: 26%;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(60, 38, 26, 0.9), rgba(20, 16, 13, 0) 72%);
  filter: blur(14px);
}

/* чашка */
.cup {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 17%;
  height: 46%;
  filter: drop-shadow(0 34px 34px rgba(0, 0, 0, 0.55));
}

.cup-body {
  position: absolute;
  inset: 6% 0 0;
  border-radius: 14% 14% 44% 44% / 10% 10% 56% 56%;
  background:
    radial-gradient(120% 70% at 26% 8%, rgba(255, 214, 176, 0.5), transparent 46%),
    linear-gradient(104deg, #8a5f41 0%, #5b3a26 34%, #332015 68%, #241610 100%);
  box-shadow:
    inset -22px -12px 46px rgba(0, 0, 0, 0.65),
    inset 16px 8px 30px rgba(255, 186, 132, 0.18),
    inset 0 -18px 30px rgba(0, 0, 0, 0.45);
}

.cup-body::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 62%, rgba(0, 0, 0, 0.45));
}

.cup-handle {
  position: absolute;
  right: -17%;
  top: 16%;
  width: 30%;
  height: 38%;
  border: 13px solid #4b2f1f;
  border-left-color: #3a2417;
  border-radius: 50%;
  box-shadow:
    inset -6px 4px 10px rgba(0, 0, 0, 0.55),
    0 10px 18px rgba(0, 0, 0, 0.35);
}

.cup-coffee {
  position: absolute;
  top: 6%;
  left: 7%;
  right: 7%;
  height: 17%;
  border-radius: 50%;
  background:
    radial-gradient(60% 60% at 36% 38%, #c08a52 0%, #8a562b 38%, #4a2a15 72%, #2a170c 100%);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.7);
}

.cup-crema {
  position: absolute;
  top: 9%;
  left: 22%;
  right: 30%;
  height: 9%;
  border-radius: 50%;
  background: radial-gradient(60% 80% at 40% 40%, rgba(226, 178, 122, 0.95), rgba(178, 122, 70, 0.35) 70%, transparent 100%);
  filter: blur(2px);
  opacity: 0.85;
}

.cup-rim {
  position: absolute;
  top: 2.5%;
  left: 1%;
  right: 1%;
  height: 21%;
  border-radius: 50%;
  border: 3px solid rgba(255, 216, 178, 0.35);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.14);
}

.cup-shine {
  position: absolute;
  left: 11%;
  top: 17%;
  width: 13%;
  height: 44%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 240, 220, 0.55), rgba(255, 240, 220, 0));
  filter: blur(5px);
  transform: rotate(7deg);
}

.cup-mark {
  position: absolute;
  inset: auto 0 26%;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(64px, 9vw, 104px);
  color: rgba(255, 236, 214, 0.14);
  letter-spacing: 0.04em;
}

/* блюдце */
.saucer {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 8%;
  height: 15%;
  border-radius: 50%;
  background:
    radial-gradient(60% 70% at 50% 30%, #5a3a26 0%, #3a2417 55%, #221510 100%);
  box-shadow:
    0 26px 36px -18px rgba(0, 0, 0, 0.85),
    inset 0 4px 8px rgba(255, 200, 150, 0.16),
    inset 0 -10px 18px rgba(0, 0, 0, 0.6);
}

.saucer span {
  position: absolute;
  inset: 22% 16% 30%;
  border-radius: 50%;
  background: radial-gradient(60% 70% at 50% 30%, rgba(0, 0, 0, 0.55), transparent 70%);
}

/* пар */
.steam {
  position: absolute;
  left: 50%;
  bottom: 56%;
  width: 34%;
  height: 34%;
  transform: translateX(-50%);
}

.steam span {
  position: absolute;
  bottom: 0;
  width: 3px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 232, 210, 0) 0%, rgba(255, 232, 210, 0.26) 45%, rgba(255, 232, 210, 0) 100%);
  filter: blur(3px);
  opacity: 0;
  animation: steamRise 5.5s ease-in-out infinite;
}

.steam span:nth-child(1) { left: 18%; animation-delay: 0s; height: 88%; }
.steam span:nth-child(2) { left: 40%; animation-delay: 1.1s; height: 100%; }
.steam span:nth-child(3) { left: 62%; animation-delay: 2.2s; height: 92%; }
.steam span:nth-child(4) { left: 80%; animation-delay: 3.1s; height: 76%; }

@keyframes steamRise {
  0% { transform: translateY(12%) scaleY(0.6) skewX(-4deg); opacity: 0; }
  30% { opacity: 0.75; }
  70% { opacity: 0.4; }
  100% { transform: translateY(-46%) scaleY(1.2) skewX(6deg); opacity: 0; }
}

/* падающие зёрна */
.beans {
  position: absolute;
  inset: -6% -4% 0;
  overflow: hidden;
  pointer-events: none;
}

.bean-fall {
  position: absolute;
  top: -6%;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: linear-gradient(140deg, #9a6a42 0%, #5a3822 55%, #2f1c11 100%);
  box-shadow: inset -2px -2px 3px rgba(0, 0, 0, 0.55), inset 2px 2px 3px rgba(255, 210, 170, 0.25);
  animation: beanFall linear infinite;
  opacity: 0.85;
}

.bean-fall::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10%;
  width: 1.4px;
  height: 80%;
  border-radius: 2px;
  background: rgba(20, 10, 5, 0.6);
  transform: translateX(-50%);
}

@keyframes beanFall {
  0% { transform: translateY(-30px) rotate(0deg); }
  100% { transform: translateY(560px) rotate(340deg); }
}

.float-card {
  position: absolute;
  background: rgba(27, 21, 18, 0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: var(--dim);
  box-shadow: 0 20px 40px -30px #000;
}

.float-card strong {
  font-family: var(--display);
  font-size: 26px;
  color: var(--fg);
  line-height: 1;
}

.float-rating {
  right: 0;
  bottom: 14%;
}

.float-beans {
  left: 0;
  top: 6%;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.stars {
  color: var(--copper);
  letter-spacing: 2px;
  font-size: 11px;
}

/* ---------- бегущая строка ---------- */

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  background: var(--bg-2);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  animation: ticker 34s linear infinite;
  font-family: var(--display);
  font-size: 30px;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-track i { color: var(--copper); font-style: normal; font-size: 15px; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- секции ---------- */

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(64px, 10vh, 120px) var(--pad);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 56px);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.section-head p { color: var(--dim); font-size: 14.5px; margin: 0; max-width: 40ch; justify-self: end; }

/* ---------- меню ---------- */

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 4vw, 56px);
}

.menu-col h3 {
  font-size: 22px;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--copper);
  color: var(--copper);
}

.menu-rows { display: grid; }

.menu-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  font-size: 14.5px;
  border-bottom: 1px solid rgba(242, 234, 225, 0.07);
}
.menu-row i { flex: 1; border-bottom: 1px dotted rgba(242, 234, 225, 0.25); transform: translateY(-3px); }
.menu-row b { font-weight: 600; white-space: nowrap; }

/* ---------- зёрна ---------- */

.beans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.bean {
  padding: 28px 24px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.35s ease;
}
.bean:hover { background: var(--copper-soft); }
.bean-idx { font-size: 11px; letter-spacing: 0.2em; color: var(--copper); }
.bean h3 { font-size: 32px; }
.bean p { color: var(--dim); font-size: 14px; margin: 0; flex: 1; }
.bean-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* ---------- галерея ---------- */

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tile {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.7));
}
.tile-label {
  position: absolute;
  left: 18px; bottom: 16px;
  z-index: 2;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tile-a { background: radial-gradient(120% 100% at 30% 20%, #6b4a33, #241812 65%); }
.tile-b { background: radial-gradient(120% 100% at 70% 20%, #7a5637, #1d1410 65%); }
.tile-c { background: radial-gradient(120% 100% at 40% 70%, #5c3d2a, #191009 65%); }
.tile-d { background: radial-gradient(120% 100% at 60% 30%, #8a6140, #221610 65%); }
.tile-e { background: radial-gradient(120% 100% at 30% 20%, #4f3826, #15100b 65%); }
.tile-f { background: radial-gradient(120% 100% at 70% 60%, #6d4a2f, #1b1310 65%); }

/* ---------- бариста ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.master { text-align: center; }
.master-photo {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 64px);
  color: rgba(242, 234, 225, 0.85);
}
.mono-a { background: radial-gradient(120% 120% at 30% 20%, #8a6140, #3a261b 65%); }
.mono-b { background: radial-gradient(120% 120% at 70% 20%, #6d4a33, #2b1d15 65%); }
.master h3 { font-size: 26px; margin-bottom: 6px; }
.master p { color: var(--dim); font-size: 13px; margin: 0; }

/* ---------- заказ ---------- */

.order-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(201, 123, 74, 0.12), transparent 55%),
    var(--bg-2);
}

.order-copy p { color: var(--dim); max-width: 32ch; }
.order-contacts { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; font-size: 15px; font-weight: 600; }
.order-contacts a { width: fit-content; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.order-contacts a:hover { border-color: var(--copper); color: var(--copper); }

.order-form { display: grid; gap: 12px; align-content: start; }
.order-form label { display: grid; gap: 6px; }
.order-form label span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.order-form input {
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: rgba(242, 234, 225, 0.03);
  color: var(--fg);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.25s ease;
}
.order-form input:focus { outline: none; border-color: var(--copper); }
.form-note { font-size: 11px; color: #8a7f74; margin: 0; text-align: center; }
.form-success {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(201, 123, 74, 0.5);
  background: rgba(201, 123, 74, 0.12);
  font-size: 14px;
  text-align: center;
}

/* ---------- контакты ---------- */

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}

.contact-list { margin: 24px 0 0; display: grid; gap: 0; }
.contact-list div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list dt { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.contact-list dd { margin: 0; font-size: 15px; }
.contact-list a { border-bottom: 1px solid var(--line); }
.contact-list a:hover { border-color: var(--copper); color: var(--copper); }

.map-placeholder {
  position: relative;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background-color: #1a1411;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(201, 123, 74, 0.16), transparent 60%),
    linear-gradient(90deg, rgba(242, 234, 225, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(242, 234, 225, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
}

.map-pin {
  position: absolute;
  left: 50%; top: 48%;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--copper);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 8px rgba(201, 123, 74, 0.18), 0 0 0 18px rgba(201, 123, 74, 0.08);
}
.map-pin::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(201, 123, 74, 0.4);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}
.map-label {
  position: absolute;
  left: 50%; top: 48%;
  transform: translate(-50%, 26px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

/* ---------- футер ---------- */

.site-footer { border-top: 1px solid var(--line); margin-top: 20px; }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-inner nav { display: flex; gap: 22px; font-size: 14px; color: var(--dim); }
.footer-inner nav a:hover { color: var(--fg); }
.copyright { font-size: 12px; color: var(--dim); }

/* ---------- анимации появления ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */

@media (max-width: 1000px) {
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .beans-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-art { min-height: 340px; overflow: hidden; }
  .scene { width: min(100%, 300px); }
  .hero { overflow: clip; }
  .nav, .phone { display: none; }
  .burger { display: block; }
  .hero { grid-template-columns: 1fr; padding-top: 116px; }
  .hero-art { order: -1; min-height: 380px; }
  .section-head { grid-template-columns: 1fr; }
  .section-head p { justify-self: start; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .order-card, .contacts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .menu-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; }
  .header-actions .btn { display: none; }
  .contact-list div { grid-template-columns: 1fr; gap: 4px; }
  .ticker-track { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- общий слой анимаций ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 1000;
  transition: width 0.12s linear;
  pointer-events: none;
}

body.intro-lock {
  overflow: hidden;
}

.intro-veil {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: grid;
  place-items: center;
  transition: opacity 0.7s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.7s;
}

.intro-veil.is-done {
  opacity: 0;
  visibility: hidden;
}

.intro-veil-mark {
  font-family: "Cormorant Garamond", "Anton", "Unbounded", Georgia, serif;
  font-size: clamp(22px, 4vw, 40px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  animation: veilPulse 1.6s ease-in-out infinite alternate;
}

@keyframes veilPulse {
  from { opacity: 0.35; letter-spacing: 0.24em; }
  to { opacity: 1; letter-spacing: 0.3em; }
}

/* заголовки: маска по словам */
.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.12em 0;
  margin: -0.12em 0;
}

.split .wi {
  display: inline-block;
  transform: translateY(108%);
  will-change: transform;
  transition: transform 1.05s cubic-bezier(0.19, 1, 0.22, 1);
}

.split.split-in .wi {
  transform: translateY(0);
}

/* параллакс */
.hero-art,
.visual-main,
.hero-badge {
  will-change: transform;
}

/* печать текста */
.typing::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -0.16em;
  background: currentColor;
  animation: caretBlink 0.75s steps(1) infinite;
}

.typing-done::after {
  display: none;
}

@keyframes caretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* режим «уменьшить движение»: включается классом .reduce на <html> */
.reduce .split .wi {
  transform: none !important;
}

.reduce .intro-veil {
  display: none !important;
}

.reduce .scroll-progress {
  display: none;
}

﻿/* ---------- премиум-слой: курсор, частицы, clip-reveal ---------- */

.fx-dot,
.fx-ring {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: difference;
  will-change: transform;
}

.fx-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: #fff;
}

.fx-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  transition: width 0.32s ease, height 0.32s ease, margin 0.32s ease,
    border-color 0.32s ease;
}

.fx-ring.is-active {
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-color: #fff;
}

.fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* clip-появление карточек галереи */
.fx-clip {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.05s cubic-bezier(0.19, 1, 0.22, 1),
    transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--fx-i, 0) * 70ms);
}

.fx-clip.fx-in {
  clip-path: inset(0 0 0 0);
}

@media (hover: none), (pointer: coarse) {
  .fx-dot,
  .fx-ring {
    display: none;
  }
}

.reduce .fx-canvas {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .fx-clip {
    clip-path: none;
  }
}

/* ---------- живой фон hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -25% -12%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 22% 24%, var(--glow1, rgba(192, 131, 111, 0.28)), transparent 70%),
    radial-gradient(34% 38% at 78% 32%, var(--glow2, rgba(92, 42, 51, 0.2)), transparent 70%),
    radial-gradient(30% 34% at 50% 82%, var(--glow3, rgba(185, 148, 98, 0.18)), transparent 70%);
  filter: blur(28px);
  animation: glowDrift 20s ease-in-out infinite alternate;
}

@keyframes glowDrift {
  0% { transform: translate3d(-3%, -1%, 0) scale(1); }
  100% { transform: translate3d(4%, 3%, 0) scale(1.12); }
}

/* крупнее заголовки */
.hero h1 {
  font-size: clamp(54px, 9.4vw, 148px);
}

/* ---------- горизонтальная галерея ---------- */
.hwrap {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.htrack {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 16px;
  will-change: transform;
}

.htrack > * {
  flex: 0 0 auto;
  width: min(44vw, 520px);
  aspect-ratio: 4 / 5;
  margin: 0 !important;
}

@media (max-width: 999px) {
  .hwrap {
    position: static;
    height: auto;
    display: block;
    overflow: visible;
  }
  .htrack {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    transform: none !important;
  }
  .htrack > * {
    width: auto;
  }
}

/* наклон карточек */
.fx-tilt {
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  transform-style: preserve-3d;
}

/* ---------- мобильная полировка ---------- */

@media (max-width: 640px) {
  /* никакого горизонтального выезда */
  .hero {
    overflow: clip;
  }

  /* кнопки в столбик на всю ширину — палец не промахивается */
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-cta .btn {
    width: 100%;
    flex: none;
  }

  /* крупный заголовок, но влезает в экран */
  .hero h1,
  .hero-title {
    font-size: clamp(36px, 12vw, 62px) !important;
    line-height: 0.94;
    overflow-wrap: break-word;
  }

  /* шапка компактнее */
  .site-header {
    padding: 14px var(--pad);
  }

  .logo {
    font-size: 20px;
  }

  /* цифры в hero переносим аккуратно */
  .hero-stats {
    flex-wrap: wrap;
    gap: 16px 26px;
  }

  .hero-stats strong {
    font-size: 32px;
  }

  /* карточки-плашки не лезут за край */
  .float-card {
    max-width: 52%;
    padding: 10px 14px;
  }

  .float-card strong {
    font-size: 20px;
  }

  /* секции дышат, но не разваливаются */
  .section-head {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .section-head p {
    justify-self: start !important;
    max-width: 100%;
  }

  /* прайсы в одну колонку */
  .menu-grid,
  .price-table,
  .beans-grid,
  .team-grid,
  .reviews-grid {
    grid-template-columns: 1fr !important;
  }

  /* формы удобнее */
  .booking-form input,
  .booking-form select,
  .order-form input,
  .order-form select,
  .booking-form textarea {
    height: 52px;
    font-size: 16px; /* без зума в iOS */
  }
}

@media (max-width: 420px) {
  .hero h1,
  .hero-title {
    font-size: clamp(32px, 11.5vw, 54px) !important;
  }

  .hero-stats strong {
    font-size: 28px;
  }
}
