/* ==========================================================================
   LUMIÈRE — салон красоты. Шаблон лендинга.
   Палитра: кремовый, чернильный, розово-винный акцент.
   ========================================================================== */

:root {
  --cream: #f6f1ea;
  --cream-2: #efe7dc;
  --ink: #191714;
  --ink-soft: #2a2621;
  --muted: #6f6a63;
  --line: rgba(25, 23, 20, 0.12);
  --rose: #c0836f;
  --wine: #5c2a33;
  --gold: #b99462;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --container: 1240px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--wine); color: var(--cream); }

/* зерно поверх всего */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' 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.35'/%3E%3C/svg%3E");
}

/* ---------- типографика ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 { font-size: clamp(46px, 7.4vw, 104px); }
h2 { font-size: clamp(34px, 4.6vw, 62px); }
h3 { font-size: 26px; line-height: 1.1; }

h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--wine);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(192, 131, 111, 0.18);
}

.lead {
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--muted);
  max-width: 46ch;
}

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--wine); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(25, 23, 20, 0.25);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(25, 23, 20, 0.04); }

.btn-full { width: 100%; height: 56px; }

/* ---------- шапка ---------- */

.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: 18px var(--pad);
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  padding: 10px var(--pad);
  background: rgba(246, 241, 234, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
}

.logo-text {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.14em;
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.42em;
  color: var(--muted);
  margin-top: 5px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
}

.nav a {
  position: relative;
  padding: 4px 0;
  color: var(--ink-soft);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  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: 18px;
}

.phone {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  position: relative;
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 13px;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 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(--cream);
  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;
  gap: 6px;
}

.mobile-menu nav a {
  font-family: var(--serif);
  font-size: clamp(32px, 9vw, 48px);
  line-height: 1.25;
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}

.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, 190px) var(--pad) clamp(40px, 8vh, 90px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}

.hero > * { min-width: 0; }

.hero-copy h1 { margin-bottom: 26px; }

.hero-cta {
  display: flex;
  gap: 14px;
  margin: 34px 0 46px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: clamp(24px, 4vw, 54px);
  list-style: none;
  margin: 0; padding: 26px 0 0;
  border-top: 1px solid var(--line);
}

.hero-stats li { display: flex; flex-direction: column; gap: 2px; }

.hero-stats strong {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
}

.hero-stats span {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

/* арт-объект справа */
.hero-art {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.arch {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 0.78;
  border-radius: 999px 999px 30px 30px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 30% 8%, rgba(255, 255, 255, 0.85), transparent 55%),
    radial-gradient(100% 80% at 75% 30%, rgba(192, 131, 111, 0.75), transparent 60%),
    radial-gradient(120% 100% at 20% 90%, rgba(92, 42, 51, 0.9), transparent 65%),
    linear-gradient(160deg, #e9d9c9, #c69a86 45%, #5c2a33);
  box-shadow: 0 40px 80px -40px rgba(92, 42, 51, 0.55);
  animation: archFloat 9s ease-in-out infinite;
}

.arch-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.55), transparent 45%);
  mix-blend-mode: screen;
}

.arch-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: clamp(140px, 22vw, 240px);
  color: rgba(255, 255, 255, 0.22);
  line-height: 1;
  user-select: none;
}

@keyframes archFloat {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50% { transform: translateY(-14px) rotate(0.6deg); }
}

.float-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -24px rgba(25, 23, 20, 0.4);
  font-size: 12px;
  color: var(--muted);
}

.float-card strong {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}

.float-rating { right: -6%; bottom: 16%; }
.float-since { left: -6%; top: 12%; flex-direction: row; align-items: baseline; gap: 6px; }

.stars { color: var(--gold); letter-spacing: 2px; font-size: 11px; }

/* ---------- бегущая строка ---------- */

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  background: rgba(239, 231, 220, 0.5);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: ticker 38s linear infinite;
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ticker-track i { color: var(--rose); font-style: normal; font-size: 14px; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- секции ---------- */

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(70px, 10vh, 130px) var(--pad);
}

.section-head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: end;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.section-head .eyebrow { grid-column: 1 / -1; margin-bottom: 6px; }

.section-note {
  color: var(--muted);
  font-size: 15px;
  max-width: 38ch;
  justify-self: end;
  margin: 0;
}

/* ---------- услуги ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service {
  background: var(--cream);
  padding: 34px 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 260px;
  transition: background 0.35s ease, transform 0.35s ease;
}

.service:hover { background: var(--cream-2); }

.service-num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--rose);
}

.service h3 { font-size: 27px; }

.service p { color: var(--muted); font-size: 14.5px; margin: 0; flex: 1; }

.service-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.price { font-family: var(--serif); font-size: 22px; }
.time { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- работы ---------- */

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tile {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tile:nth-child(2),
.tile:nth-child(5) { aspect-ratio: 4 / 5.2; }

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(25, 23, 20, 0.55));
  opacity: 0.9;
}

.tile:hover { transform: scale(0.985); }

.tile-label {
  position: absolute;
  left: 20px; bottom: 18px;
  z-index: 2;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tile-a { background: radial-gradient(120% 100% at 20% 10%, #f3e2d3, #c58e77 55%, #6b3038); }
.tile-b { background: radial-gradient(100% 90% at 80% 10%, #f7efe6, #d9b8a6 50%, #a0756a); }
.tile-c { background: radial-gradient(120% 100% at 30% 20%, #e8d6c6, #8f5f52 60%, #3d2320); }
.tile-d { background: radial-gradient(120% 100% at 70% 20%, #f6e9df, #cf9a86 55%, #7a3f47); }
.tile-e { background: radial-gradient(120% 100% at 40% 10%, #f1e3d6, #b9a084 60%, #5d4a3a); }
.tile-f { background: radial-gradient(120% 100% at 60% 30%, #efe4d8, #c0a48d 55%, #6d5647); }

/* ---------- мастера ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 34px);
}

.master { text-align: center; }

.master-photo {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 20px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 68px);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.master:hover .master-photo { transform: scale(0.97) rotate(-1deg); }

.mono-a { background: radial-gradient(120% 120% at 30% 20%, #e6c9b7, #a8655a 60%, #54262e); }
.mono-b { background: radial-gradient(120% 120% at 70% 20%, #eddccb, #b98a6f 60%, #6a4132); }
.mono-c { background: radial-gradient(120% 120% at 40% 30%, #e8d3c0, #9c6d5c 60%, #4b2a2a); }

.master h3 { font-size: 24px; margin-bottom: 6px; }
.master p { color: var(--muted); font-size: 13px; letter-spacing: 0.04em; margin: 0; }

/* ---------- отзывы ---------- */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.review {
  margin: 0;
  padding: 30px;
  border-radius: 20px;
  background: var(--cream-2);
  border: 1px solid rgba(25, 23, 20, 0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review p {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.35;
  margin: 0;
  flex: 1;
}

.review footer { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- запись ---------- */

.booking-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  background: var(--ink);
  color: var(--cream);
  border-radius: 28px;
  padding: clamp(30px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}

.booking-card::before {
  content: "";
  position: absolute;
  right: -10%; top: -30%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 131, 111, 0.35), transparent 65%);
  pointer-events: none;
}

.booking-copy .eyebrow { color: rgba(246, 241, 234, 0.6); }
.booking-copy h2 em { color: var(--rose); }

.booking-copy p { color: rgba(246, 241, 234, 0.65); max-width: 34ch; }

.bullets {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: rgba(246, 241, 234, 0.8);
}

.bullets li { display: flex; align-items: center; gap: 10px; }

.bullets li::before {
  content: "—";
  color: var(--rose);
}

.booking-form {
  position: relative;
  display: grid;
  gap: 14px;
}

.booking-form label { display: grid; gap: 7px; }

.booking-form label span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 241, 234, 0.55);
}

.booking-form input,
.booking-form select {
  height: 52px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(246, 241, 234, 0.16);
  background: rgba(246, 241, 234, 0.06);
  color: var(--cream);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.booking-form select { appearance: none; cursor: pointer; }
.booking-form option { background: var(--ink); color: var(--cream); }

.booking-form input::placeholder { color: rgba(246, 241, 234, 0.35); }
.booking-form input:focus,
.booking-form select:focus {
  outline: none;
  border-color: var(--rose);
  background: rgba(246, 241, 234, 0.1);
}

.booking-form .btn-dark { background: var(--cream); color: var(--ink); }
.booking-form .btn-dark:hover { background: var(--rose); color: var(--ink); }

.form-note { font-size: 11px; color: rgba(246, 241, 234, 0.4); margin: 0; text-align: center; }

.form-success {
  margin: 0;
  padding: 14px;
  border-radius: 12px;
  background: rgba(192, 131, 111, 0.18);
  border: 1px solid rgba(192, 131, 111, 0.4);
  color: var(--cream);
  font-size: 14px;
  text-align: center;
}

/* ---------- контакты ---------- */

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.contact-list { margin: 26px 0 30px; display: grid; gap: 16px; }

.contact-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.contact-list dt { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 0; font-size: 15px; }

.contact-list a { border-bottom: 1px solid rgba(25, 23, 20, 0.3); }
.contact-list a:hover { border-color: var(--ink); }

.map-placeholder {
  position: relative;
  min-height: 380px;
  border-radius: 24px;
  overflow: hidden;
  background-color: #e5dcd0;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.7), transparent 60%),
    linear-gradient(90deg, rgba(25, 23, 20, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(25, 23, 20, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 44px 44px, 44px 44px;
  border: 1px solid var(--line);
}

.map-pin {
  position: absolute;
  left: 50%; top: 46%;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 0 0 8px rgba(92, 42, 51, 0.15), 0 0 0 18px rgba(92, 42, 51, 0.07);
  transform: translate(-50%, -50%);
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(92, 42, 51, 0.35);
  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: 46%;
  transform: translate(-50%, 26px);
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 10px 24px -16px rgba(25, 23, 20, 0.6);
}

/* ---------- футер ---------- */

.site-footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px var(--pad) 34px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.footer-top nav { display: flex; gap: 24px; font-size: 14px; }
.footer-top nav a { color: var(--muted); }
.footer-top nav a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 20px;
  letter-spacing: 0.04em;
}

/* ---------- анимация появления ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */

@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav, .phone { display: none; }
  .burger { display: block; }
  .hero { grid-template-columns: 1fr; padding-top: 120px; }
  .hero-art { min-height: 420px; order: -1; }
  .hero-art .arch { width: min(100%, 320px); }
  .float-rating { right: 0; bottom: 6%; }
  .float-since { left: 0; top: 4%; }
  .float-card { max-width: 48%; }
  .section-head { grid-template-columns: 1fr; }
  .section-note { justify-self: start; }
  .booking-card, .contacts-grid { grid-template-columns: 1fr; }
  .booking-card::before { display: none; }
}

@media (max-width: 640px) {
  .header-actions .btn { display: none; }
  h1 { font-size: clamp(40px, 11vw, 58px); }
  .hero-cta .btn { flex: 1; }
  .hero-stats { gap: 20px; }
  .hero-stats strong { font-size: 30px; }
  .services-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .tile:nth-child(1), .tile:nth-child(4) { grid-column: span 1; }
  .team-grid, .reviews-grid { grid-template-columns: 1fr; }
  .contact-list div { grid-template-columns: 1fr; gap: 4px; }
  .map-placeholder { min-height: 280px; }
  .ticker-track { font-size: 20px; }
}

@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;
  }
}
