/* ==========================================================================
   NAIL LAB — ногтевая студия. Шаблон лендинга.
   Светлый минимализм: много воздуха, тонкие линии, сиреневый акцент.
   ========================================================================== */

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --accent: #c9b6ff;
  --accent-soft: #efe9ff;
  --pink: #ffd1dc;

  --display: "Unbounded", "Arial Black", sans-serif;
  --sans: "Manrope", -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  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(--accent); color: var(--ink); }

/* ---------- типографика ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.045em;
}

h1 { font-size: clamp(44px, 7.2vw, 96px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 0.98; }
h3 { font-size: 22px; line-height: 1.15; letter-spacing: -0.03em; }

.accent {
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}

.lead { color: var(--muted); font-size: clamp(15px, 1.2vw, 17px); max-width: 44ch; }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2b2b2b; }

.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }

.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: 18px 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: 10px var(--pad);
  background: rgba(250, 250, 250, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.logo {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: -0.04em;
}

.logo span {
  display: inline-block;
  padding: 2px 6px;
  margin-left: 4px;
  background: var(--accent);
  border-radius: 6px;
}

.nav { display: flex; gap: 26px; font-size: 14px; }
.nav a { color: var(--muted); position: relative; padding: 2px 0; }
.nav a:hover { color: var(--ink); }

.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav a:hover::after { transform: scaleX(1); }

.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: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 13px;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease;
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 24px; }
.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(26px, 8vw, 38px);
  letter-spacing: -0.04em;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.mobile-menu-footer { color: var(--muted); font-size: 14px; }
.mobile-menu-footer a { font-weight: 600; color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(120px, 16vh, 180px) var(--pad) clamp(40px, 7vh, 80px);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.hero > * { min-width: 0; }

.hero-copy h1 { margin-bottom: 24px; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 26px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chips li {
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.hero-visual {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
}

.visual-main {
  width: min(100%, 420px);
  aspect-ratio: 0.92;
  border-radius: 30px;
  background:
    radial-gradient(90% 80% at 20% 10%, #ffffff 0%, transparent 55%),
    radial-gradient(100% 90% at 80% 20%, var(--pink) 0%, transparent 60%),
    radial-gradient(120% 100% at 30% 90%, var(--accent) 0%, transparent 65%),
    linear-gradient(150deg, #f3eeff, #d9caff 55%, #b7a1f5);
  display: grid;
  place-items: center;
  box-shadow: 0 40px 80px -50px rgba(120, 90, 200, 0.6);
  animation: floaty 8s ease-in-out infinite;
}

.visual-mark {
  font-family: var(--display);
  font-size: clamp(120px, 20vw, 200px);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1;
  letter-spacing: -0.06em;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-0.8deg); }
  50% { transform: translateY(-12px) rotate(0.8deg); }
}

.price-card,
.rating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 20px 40px -30px rgba(17, 17, 17, 0.5);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: var(--muted);
}

.price-card { left: -4%; bottom: 12%; }
.price-card strong { font-family: var(--display); font-size: 24px; color: var(--ink); letter-spacing: -0.03em; }
.price-card-label, .price-card-time { font-size: 11px; }
.price-card-time { color: #999; }

.rating-card { right: -3%; top: 8%; gap: 4px; }
.rating-stars { color: #f2b544; letter-spacing: 2px; font-size: 12px; }

/* ---------- секции ---------- */

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(60px, 9vh, 110px) var(--pad);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 54px);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.section-head p { color: var(--muted); font-size: 14.5px; margin: 0; max-width: 40ch; justify-self: end; }

/* ---------- прайс ---------- */

.price-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 50px);
}

.price-group h3 {
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}

.price-rows { display: grid; gap: 2px; }

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  font-size: 14.5px;
  border-bottom: 1px solid var(--line);
}

.price-row i {
  flex: 1;
  border-bottom: 1px dotted #c9c9c9;
  transform: translateY(-3px);
}

.price-row b { font-weight: 600; white-space: nowrap; }

/* ---------- работы ---------- */

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 12px;
}

.cell {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cell:hover { transform: scale(0.98); }

.cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.4));
}

.cell figcaption {
  position: absolute;
  left: 16px; bottom: 14px;
  z-index: 2;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.c1 { grid-column: span 2; grid-row: span 2; }
.c2 { background: radial-gradient(120% 120% at 30% 20%, #f7e9f0, #e2b8cc 60%, #b98ba6); }
.c3 { background: radial-gradient(120% 120% at 70% 30%, #efe7ff, #c9b6ff 60%, #9d84e0); }
.c4 { background: radial-gradient(120% 120% at 40% 70%, #f4efe6, #d9c7a8 60%, #b3a082); }
.c5 { background: radial-gradient(120% 120% at 60% 20%, #eef2f7, #b8c6d9 60%, #8fa3ba); }
.c1 { background: radial-gradient(120% 120% at 30% 20%, #fdf1f5, #f0c9da 55%, #c98fae); }

.more-link {
  display: inline-block;
  margin-top: 26px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* ---------- как проходит ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.step {
  background: var(--surface);
  padding: 28px 26px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-num {
  font-family: var(--display);
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.step h3 { font-size: 20px; margin-top: 8px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- отзывы ---------- */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.review {
  margin: 0;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review p { margin: 0; font-size: 17px; line-height: 1.5; flex: 1; }
.review footer { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- запись ---------- */

.booking {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(160deg, #ffffff, #f6f2ff 65%, #efe9ff);
}

.booking-copy p { color: var(--muted); max-width: 32ch; }

.booking-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 26px;
  font-size: 15px;
  font-weight: 600;
}

.booking-contacts a { width: fit-content; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.booking-contacts a:hover { border-color: var(--ink); }

.booking-form { display: grid; gap: 12px; align-content: start; }
.booking-form label { display: grid; gap: 6px; }

.booking-form label span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.booking-form input,
.booking-form select {
  height: 50px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.booking-form select { appearance: none; cursor: pointer; }

.booking-form input:focus,
.booking-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.form-note { font-size: 11px; color: #999; margin: 0; text-align: center; }

.form-success {
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  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: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list dt { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 0; font-size: 15px; }
.contact-list a { border-bottom: 1px solid var(--line); }
.contact-list a:hover { border-color: var(--ink); }

.map-placeholder {
  position: relative;
  min-height: 340px;
  border-radius: 24px;
  overflow: hidden;
  background-color: #eeeaf7;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.85), transparent 60%),
    linear-gradient(90deg, rgba(17, 17, 17, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(17, 17, 17, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  border: 1px solid var(--line);
}

.map-pin {
  position: absolute;
  left: 50%; top: 48%;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #7c5cff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 8px rgba(124, 92, 255, 0.18), 0 0 0 18px rgba(124, 92, 255, 0.08);
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(124, 92, 255, 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: #fff;
  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(--muted); }
.footer-inner nav a:hover { color: var(--ink); }
.copyright { font-size: 12px; color: var(--muted); }

/* ---------- анимации ---------- */

.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) {
  .price-table { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .c1 { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 860px) {
  .nav, .phone { display: none; }
  .burger { display: block; }
  .hero { grid-template-columns: 1fr; padding-top: 116px; }
  .hero-visual { min-height: 380px; order: -1; }
  .visual-main { width: min(100%, 320px); }
  .price-card { left: 0; bottom: 4%; }
  .rating-card { right: 0; top: 2%; }
  .section-head { grid-template-columns: 1fr; }
  .section-head p { justify-self: start; }
  .steps { grid-template-columns: 1fr; }
  .reviews-grid, .booking, .contacts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .header-actions .btn { display: none; }
  .price-table { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr; }
  .c1 { grid-column: span 1; }
  .hero-cta .btn { flex: 1; }
  .accordion-none { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@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;
  }
}
