/* ==========================================================================
   INK ROOM — тату-студия. Шаблон лендинга.
   Тёмная тема, крупная антиква-гротеск, лаймовый акцент, брутальная сетка.
   ========================================================================== */

:root {
  --bg: #0b0b0c;
  --bg-2: #101012;
  --fg: #ededed;
  --dim: #8d8d8f;
  --line: rgba(237, 237, 237, 0.14);
  --line-soft: rgba(237, 237, 237, 0.07);
  --lime: #c8ff3d;
  --lime-dim: rgba(200, 255, 61, 0.14);

  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --sans: "Space Grotesk", -apple-system, "Segoe UI", sans-serif;

  --container: 1320px;
  --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.55;
  -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(--lime); color: var(--bg); }

/* ---------- фоновые слои ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.grid-lines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px),
    linear-gradient(var(--line-soft) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 78%);
}

/* ---------- типографика ---------- */

h1, h2, h3, .footer-brand {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.9;
  text-transform: uppercase;
  margin: 0;
}

h2 { font-size: clamp(42px, 6vw, 86px); }
h3 { font-size: 30px; line-height: 1; }

.tag {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--dim);
  text-transform: uppercase;
  white-space: nowrap;
}

.section-num {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--lime);
  margin-bottom: 18px;
}

/* ---------- кнопки ---------- */

.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:active { transform: scale(0.98); }
.btn-full { width: 100%; height: 56px; }

.btn-lime { background: var(--lime); color: #0b0b0c; }
.btn-lime:hover { background: #dcff7a; }

.btn-outline { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-outline:hover { border-color: var(--fg); background: rgba(237, 237, 237, 0.06); }

/* ---------- шапка ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  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(11, 11, 12, 0.86);
  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.02em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.logo span { color: var(--lime); }
.logo i { font-style: normal; font-family: var(--sans); font-size: 10px; color: var(--dim); }

.nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a { color: var(--dim); transition: color 0.25s ease; position: relative; }
.nav a:hover { color: var(--fg); }

.nav a::before {
  content: "";
  position: absolute;
  left: -12px; top: 50%;
  width: 4px; height: 4px;
  background: var(--lime);
  border-radius: 50%;
  transform: translateY(-50%) scale(0);
  transition: transform 0.25s ease;
}

.nav a:hover::before { transform: translateY(-50%) scale(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.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(34px, 10vw, 54px);
  text-transform: uppercase;
  line-height: 1.15;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}

.mobile-menu-footer { font-size: 13px; color: var(--dim); letter-spacing: 0.08em; }
.mobile-menu-footer a { color: var(--lime); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(110px, 15vh, 170px) var(--pad) 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.hero-title {
  font-size: clamp(58px, 13.5vw, 190px);
  display: flex;
  flex-direction: column;
  margin: 10px 0;
}

.hero-title .line { display: block; }

.line-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--fg);
  text-stroke: 2px var(--fg);
}

.line-small {
  font-family: var(--sans);
  font-size: clamp(15px, 2.2vw, 26px);
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--dim);
  margin-top: 14px;
  font-weight: 300;
}

.line-small em { color: var(--lime); font-style: normal; }

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
}

.hero-lead {
  max-width: 46ch;
  color: var(--dim);
  font-size: clamp(15px, 1.2vw, 18px);
  margin: 0;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* вращающийся значок */
.hero-badge {
  position: absolute;
  right: var(--pad);
  top: 42%;
  width: 150px; height: 150px;
  display: grid;
  place-items: center;
  color: var(--fg);
}

.hero-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-badge text {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  fill: var(--dim);
  text-transform: uppercase;
}

.spin { animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-badge-mark {
  font-size: 30px;
  color: var(--lime);
  animation: pulseMark 3s ease-in-out infinite;
}

@keyframes pulseMark {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.18); opacity: 1; }
}

/* ---------- бегущая строка ---------- */

.ticker {
  position: relative;
  z-index: 1;
  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 32s linear infinite;
  font-family: var(--display);
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ticker-track i { color: var(--lime); font-style: normal; font-size: 16px; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- секции ---------- */

.section {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(70px, 11vh, 130px) var(--pad);
}

.section-head {
  display: grid;
  grid-template-columns: auto 1.2fr 0.8fr;
  gap: clamp(20px, 4vw, 50px);
  align-items: start;
  margin-bottom: clamp(36px, 6vw, 64px);
  padding-bottom: clamp(20px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}

.section-head .section-num { margin: 14px 0 0; }

.section-note {
  color: var(--dim);
  font-size: 14px;
  max-width: 34ch;
  margin: 14px 0 0;
  justify-self: end;
}

/* ---------- стили ---------- */

.styles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.style-card {
  position: relative;
  padding: 32px 26px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 300px;
  overflow: hidden;
  transition: background 0.35s ease;
}

.style-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--lime-dim));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.style-card:hover::before { opacity: 1; }
.style-card:hover { background: rgba(237, 237, 237, 0.02); }

.style-card > * { position: relative; }

.style-idx {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--lime);
}

.style-card h3 { font-size: 34px; }

.style-card p { color: var(--dim); font-size: 14px; margin: 0; flex: 1; }

.style-price {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--fg);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  text-transform: uppercase;
}

/* ---------- работы ---------- */

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: start;
}

.work {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  background: #161618;
}



.work::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.72));
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

.work:hover::after { opacity: 0.95; }

.work figcaption {
  position: absolute;
  left: 18px; bottom: 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.work figcaption b {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.work figcaption span { font-size: 12px; color: rgba(237, 237, 237, 0.6); }

.work-a { background: radial-gradient(120% 100% at 20% 10%, #3a3a3d, #161618 65%); }
.work-b { background: radial-gradient(120% 100% at 70% 20%, #4a4a4e, #101012 65%); }
.work-c { background: radial-gradient(120% 100% at 30% 70%, #33333a, #0d0d0f 65%); }
.work-d { background: radial-gradient(120% 100% at 60% 30%, #42424a, #141416 65%); }
.work-e { background: radial-gradient(120% 100% at 40% 20%, #3d3d44, #0f0f11 65%); }
.work-f { background: radial-gradient(120% 100% at 80% 60%, #35353c, #111113 65%); }

/* ---------- мастера ---------- */

.artists-list { border-top: 1px solid var(--line); }

.artist {
  display: grid;
  grid-template-columns: 60px 78px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}

.artist:hover { background: rgba(237, 237, 237, 0.025); }

.artist-num { font-size: 12px; color: var(--dim); letter-spacing: 0.1em; }

.artist-avatar {
  width: 78px; height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 30px;
  color: var(--bg);
}

.a1 { background: var(--lime); }
.a2 { background: #e8e8e8; }
.a3 { background: #b7b7bb; }

.artist-info h3 { font-size: 26px; margin-bottom: 4px; }
.artist-info p { color: var(--dim); font-size: 14px; margin: 0; }

.artist-link { font-size: 13px; color: var(--dim); letter-spacing: 0.04em; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.artist-link:hover { color: var(--lime); border-color: var(--lime); }

/* ---------- процесс ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.step {
  background: var(--bg);
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.3s ease;
}

.step:hover { background: var(--bg-2); }

.step-num {
  font-family: var(--display);
  font-size: 46px;
  color: var(--lime);
  line-height: 1;
}

.step h3 { font-size: 24px; margin: 6px 0 2px; }
.step p { color: var(--dim); font-size: 13.5px; margin: 0; }

/* ---------- FAQ ---------- */

.faq-list { border-top: 1px solid var(--line); }

.faq {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 500;
  transition: color 0.25s ease;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 26px;
  color: var(--lime);
  line-height: 1;
  transition: transform 0.3s ease;
}

.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--lime); }

.faq p {
  color: var(--dim);
  font-size: 15px;
  max-width: 70ch;
  margin: 0 0 20px;
}

/* ---------- запись ---------- */

.booking-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 80px);
  padding: clamp(30px, 5vw, 60px);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(200, 255, 61, 0.08), transparent 55%),
    var(--bg-2);
}

.booking-copy p { color: var(--dim); max-width: 34ch; margin: 18px 0 0; }

.bullets {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--dim);
}

.bullets li::before { content: "✳"; color: var(--lime); margin-right: 10px; }

.booking-form { display: grid; gap: 14px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.booking-form label { display: grid; gap: 7px; }

.booking-form label span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(237, 237, 237, 0.03);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--fg);
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.booking-form select { appearance: none; cursor: pointer; }
.booking-form option { background: var(--bg); }

.booking-form input::placeholder,
.booking-form textarea::placeholder { color: rgba(237, 237, 237, 0.3); }

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: var(--lime);
  background: rgba(200, 255, 61, 0.04);
}

.form-note { font-size: 11px; color: rgba(141, 141, 143, 0.75); margin: 0; }

.form-success {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(200, 255, 61, 0.45);
  background: rgba(200, 255, 61, 0.08);
  font-size: 14px;
}

/* ---------- футер ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 50px var(--pad) 30px;
  max-width: var(--container);
  margin: 0 auto;
  overflow: hidden;
}

.footer-brand {
  font-size: clamp(48px, 12vw, 150px);
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  line-height: 0.8;
  margin-bottom: 40px;
  white-space: nowrap;
  user-select: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.footer-grid h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 10px;
  font-weight: 500;
}

.footer-grid p { margin: 0; font-size: 14px; line-height: 1.6; }
.footer-grid a { border-bottom: 1px solid var(--line); }
.footer-grid a:hover { color: var(--lime); border-color: var(--lime); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.04em;
}

/* ---------- анимации ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */

@media (max-width: 1100px) {
  .styles-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-badge { display: none; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: block; }
  .hero { min-height: auto; padding-top: 120px; }
  .hero-title { font-size: clamp(52px, 15vw, 110px); }
  .section-head { grid-template-columns: 1fr; gap: 10px; }
  .section-note { justify-self: start; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .artist { grid-template-columns: 40px 60px 1fr; gap: 16px; }
  .artist-link { display: none; }
  .artist-avatar { width: 60px; height: 60px; font-size: 24px; }
  .booking-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .header-actions .btn { display: none; }
  .styles-grid { grid-template-columns: 1fr; }
  .style-card { min-height: auto; }
  .process-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-top .tag:nth-child(2) { display: none; }
  .ticker-track { font-size: 22px; }
  .hero-cta .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .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;
  }
}
