/* Барбершоп 30: тёмный бетон + синяя неоновая подсветка */

:root {
  --bg: #101215;
  --panel: #16191e;
  --panel-2: #1b1f25;
  --steel: #232830;
  --line: rgba(79, 216, 255, 0.16);
  --neon: #4fd8ff;
  --neon-deep: #1e7fd6;
  --text: #e8ecf1;
  --muted: #93a0af;
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  /* мелкое зерно бетона */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.07'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* крупные разводы и пятна камня */
  --stains: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.009' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.10'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: var(--body);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 700px at 65% -12%, rgba(42, 168, 255, 0.16), transparent 62%),
    radial-gradient(700px 500px at 8% 30%, rgba(30, 127, 214, 0.07), transparent 60%),
    var(--stains),
    var(--noise),
    linear-gradient(180deg, #14171b 0%, #101215 55%, #0c0e11 100%);
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

a { color: var(--neon); }

::selection { background: rgba(79, 216, 255, 0.28); color: #fff; }

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

/* ---------- Шапка ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(13, 15, 18, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { height: 32px; width: auto; aspect-ratio: 100 / 150; }
.brand-name {
  font-family: var(--display); font-weight: 600; font-size: 18px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text);
}

.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px;
  letter-spacing: 0.04em; position: relative; padding: 4px 0;
  transition: color 0.2s ease;
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--neon); box-shadow: 0 0 8px rgba(79, 216, 255, 0.8);
  transition: right 0.25s ease;
}
.site-nav a:hover { color: var(--neon); }
.site-nav a:hover::after { right: 0; }

.blade-caption {
  font-family: var(--body); font-weight: 700; font-size: 6.5px;
  letter-spacing: 0.35em; fill: #0d1013;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  border: 1px solid transparent;
  border-radius: 10px; padding: 10px 18px; font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  color: #06121a;
  background: linear-gradient(120deg, #8feaff, var(--neon) 45%, var(--neon-deep));
  box-shadow: 0 0 18px rgba(79, 216, 255, 0.35), 0 2px 10px rgba(0, 0, 0, 0.4);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 26px rgba(79, 216, 255, 0.5), 0 4px 14px rgba(0, 0, 0, 0.4); }
.btn-ghost {
  color: var(--text); border-color: rgba(79, 216, 255, 0.28); background: rgba(79, 216, 255, 0.05);
}
.btn-ghost:hover { border-color: var(--neon); color: var(--neon); }
.btn-xl {
  font-family: var(--display); font-size: clamp(18px, 2.6vw, 24px);
  letter-spacing: 0.05em; padding: 16px 30px; border-radius: 14px;
}
.btn-header { white-space: nowrap; }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  padding: clamp(120px, 16vw, 190px) 20px 70px;
  text-align: center;
}

.hero-hex {
  position: absolute; inset: -60px 0 auto 0; height: 430px; width: 100%;
  transform: perspective(700px) rotateX(38deg) scale(1.35);
  transform-origin: 50% 0;
  pointer-events: none;
}

.hex-glow { animation: neon-pulse 5.5s ease-in-out infinite; opacity: 0.55; }

@keyframes neon-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.75; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hex-glow { animation: none; }
  .marquee-track { animation: none; }
  .btn, .btn:hover { transform: none; transition: none; }
  .step, .step:hover, .addr-card, .faq-item { transform: none; transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cta-band .btn-primary { animation: none; }
  .g-item img, .g-item:hover img { transform: none; transition: none; }
  .master-card, .master-photo img, .master-card:hover .master-photo img { transform: none; transition: none; }
}

.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }

/* Момент загрузки: вывеска включается, контент поднимается следом */
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero-word, .tagline, .hero-cta, .chips {
    animation: rise 0.8s cubic-bezier(0.22, 0.7, 0.3, 1) both;
  }
  .hero .eyebrow { animation-delay: 0.05s; }
  .hero-word { animation-delay: 0.55s; }
  .tagline { animation-delay: 0.7s; }
  .hero-cta { animation-delay: 0.85s; }
  .chips { animation-delay: 1s; }
  .hero-logo { animation: neon-flicker 1.6s both 0.15s; }
  /* после включения вывески бритва рассекает знак */
  .cut-top { animation: cut-top 0.16s cubic-bezier(0.8, 0, 0.2, 1) 2s both; }
  .cut-bot { animation: cut-bot 0.16s cubic-bezier(0.8, 0, 0.2, 1) 2s both; }
  .slash {
    stroke-dasharray: 250; stroke-dashoffset: 250;
    animation: slash-draw 0.22s ease-in 1.8s forwards;
  }
  /* луч света, изредка проходящий по сотам */
  .hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, transparent 34%, rgba(143, 234, 255, 0.05) 45%, rgba(143, 234, 255, 0.12) 50%, rgba(143, 234, 255, 0.05) 55%, transparent 66%);
    background-size: 250% 100%; background-repeat: no-repeat;
    mix-blend-mode: screen;
    animation: sweep 9s ease-in-out 1.8s infinite;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* включение неоновой вывески: рывки, вспышки, ровное свечение */
@keyframes neon-flicker {
  0% { opacity: 0; filter: none; }
  7% { opacity: 0.65; }
  11% { opacity: 0.08; }
  16% { opacity: 0.85; }
  20% { opacity: 0.2; }
  26% { opacity: 1; }
  32% { opacity: 0.5; }
  40%, 100% { opacity: 1; filter: drop-shadow(0 0 26px rgba(42, 168, 255, 0.35)); }
}

@keyframes sweep {
  0% { background-position: 220% 0; }
  46% { background-position: -120% 0; }
  100% { background-position: -120% 0; }
}

@keyframes cut-top {
  from { transform: translate(0, 0); }
  to { transform: translate(3px, -2.5px); }
}
@keyframes cut-bot {
  from { transform: translate(0, 0); }
  to { transform: translate(-3px, 2.5px); }
}
@keyframes slash-draw {
  to { stroke-dashoffset: 0; }
}

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--neon);
  text-shadow: 0 0 12px rgba(79, 216, 255, 0.55);
}

.hero-logo {
  width: clamp(210px, 36vw, 330px); height: auto; margin: 26px auto 6px;
  display: block;
  filter: drop-shadow(0 0 26px rgba(42, 168, 255, 0.35));
}

.logo-three {
  font-family: 'Tektur', var(--display); font-weight: 900; font-size: 194px;
  fill: url(#steelGrad);
  stroke: rgba(191, 238, 255, 0.5); stroke-width: 1; paint-order: stroke;
}

/* Тройка рассечена лезвием: половинки разведены, между ними светящийся срез */
.cut-top { transform: translate(3.5px, -3px); }
.cut-bot { transform: translate(-3.5px, 3px); }
.slash {
  stroke: #bfeeff; stroke-width: 1.4; stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(143, 234, 255, 0.9)) drop-shadow(0 0 12px rgba(42, 168, 255, 0.65));
}

.hero-word {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(26px, 4.6vw, 42px);
  letter-spacing: 0.42em; text-indent: 0.42em; text-transform: uppercase;
  text-shadow: 0 0 32px rgba(79, 216, 255, 0.3);
}

.tagline { color: var(--muted); max-width: 540px; margin: 18px auto 0; font-size: 16px; text-wrap: balance; }

.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-note { color: var(--muted); font-size: 13px; width: 100%; margin-top: 2px; }

.chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.chip {
  font-size: 13px; font-weight: 600; color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  background: rgba(79, 216, 255, 0.05);
}

/* ---------- Секции ---------- */

.section { max-width: 900px; margin: 0 auto; padding: 64px 20px 24px; }

.section-head { margin-bottom: 26px; }
/* «срез бритвы» перед подзаголовком секции */
.section-head .eyebrow { display: flex; align-items: center; gap: 10px; }
.section-head .eyebrow::before {
  content: ''; width: 22px; height: 2px; border-radius: 2px; flex-shrink: 0;
  background: linear-gradient(90deg, #8feaff, var(--neon-deep));
  box-shadow: 0 0 10px rgba(79, 216, 255, 0.7);
  transform: skewX(-24deg);
}
.section-head h2 {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: clamp(28px, 4vw, 40px); margin-top: 4px;
  text-wrap: balance;
}

/* Появление секций при скролле (класс вешает скрипт, без JS всё видно сразу) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Прайс */

.price-panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(22px, 4vw, 40px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 0 60px rgba(42, 168, 255, 0.04);
}

.price-list { list-style: none; }
.price-item {
  padding: 14px 12px; margin: 0 -12px; border-radius: 10px;
  transition: background-color 0.2s ease;
}
.price-item:hover { background: rgba(79, 216, 255, 0.045); }
.price-item + .price-item { border-top: 1px solid rgba(147, 160, 175, 0.1); }
.price-row {
  display: flex; align-items: baseline; gap: 12px;
}
.price-name { font-weight: 600; font-size: 16px; }
.price-desc { color: var(--muted); font-size: 13.5px; margin-top: 4px; max-width: 560px; }
.price-dots { flex: 1; border-bottom: 1px dotted rgba(147, 160, 175, 0.35); min-width: 30px; }
.price-value {
  font-family: var(--display); font-weight: 600; font-size: 22px;
  color: var(--neon); white-space: nowrap;
  text-shadow: 0 0 14px rgba(79, 216, 255, 0.35);
}
.price-note { margin-top: 18px; color: var(--muted); font-size: 13.5px; }

/* Прайс с двумя уровнями мастеров */
.price-head {
  display: flex; justify-content: flex-end; gap: 12px;
  padding: 0 12px 10px; margin: 0 -12px;
  border-bottom: 1px solid rgba(147, 160, 175, 0.18);
}
.price-tier {
  min-width: 104px; text-align: right;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.price-list.two-tier .price-value {
  min-width: 104px; text-align: right; font-size: 19px;
}
.price-value-alt { color: var(--text); text-shadow: none; }
@media (max-width: 560px) {
  .price-tier, .price-list.two-tier .price-value { min-width: 76px; }
  .price-list.two-tier .price-value { font-size: 16.5px; }
  .price-list.two-tier .price-name { font-size: 15px; }
  .price-list.two-tier .price-dots { min-width: 12px; }
}

/* Бегущая строка */

.marquee {
  overflow: hidden; margin-top: 40px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 14px 0;
  background: rgba(79, 216, 255, 0.03);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marq 28s linear infinite;
  font-family: var(--display); font-weight: 600; font-size: 18px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.marquee-seg { display: flex; align-items: center; gap: 42px; padding-right: 42px; }
.marquee-track i { font-style: normal; color: var(--neon); text-shadow: 0 0 10px rgba(79, 216, 255, 0.6); }
@keyframes marq { to { transform: translateX(-50%); } }

/* Шаги записи */

.steps {
  list-style: none; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px;
}
.step {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 16px; padding: 22px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.step:hover {
  border-color: rgba(79, 216, 255, 0.4); transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35), 0 0 22px rgba(79, 216, 255, 0.08);
}
.step-num {
  font-family: var(--display); font-weight: 700; font-size: 34px;
  color: transparent; -webkit-text-stroke: 1px rgba(79, 216, 255, 0.5);
  display: block;
}
.step h3 {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 17px; margin: 8px 0 6px;
}
.step p { color: var(--muted); font-size: 14px; }
.step a { font-weight: 700; }

/* Атмосфера и галерея */

.about-text {
  position: relative; color: var(--text); max-width: 680px;
  font-size: clamp(17px, 2vw, 20px); line-height: 1.7;
  padding-left: 24px; margin-bottom: 24px;
}
.about-text::before {
  content: ''; position: absolute; left: 0; top: 5px; bottom: 5px; width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #8feaff, var(--neon-deep));
  box-shadow: 0 0 12px rgba(79, 216, 255, 0.6);
}

/* Мастера */

.masters-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px;
}
.master-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.master-card:hover {
  border-color: rgba(79, 216, 255, 0.38);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3), 0 0 26px rgba(79, 216, 255, 0.07);
}
.master-photo {
  aspect-ratio: 3 / 4; overflow: hidden; background: var(--steel);
}
.master-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.master-card:hover .master-photo img { transform: scale(1.045); }
.master-meta { display: flex; align-items: center; gap: 14px; padding: 14px 18px 16px; }
.master-num {
  font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(79, 216, 255, 0.4);
}
.master-name {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 18px;
}
.master-role { color: var(--muted); font-size: 13px; margin-top: 2px; }
.masters-note { color: var(--muted); font-size: 14px; margin-top: 14px; }

.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px;
}
.g-item {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 4 / 3; background: var(--panel);
}
.g-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.g-item:hover img { transform: scale(1.045); }
.gallery-grid .g-item:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
.gallery-grid .g-item:last-child:nth-child(even) { grid-column: span 2; aspect-ratio: 16 / 9; }
@media (max-width: 560px) {
  .gallery-grid .g-item:first-child,
  .gallery-grid .g-item:last-child:nth-child(even) { grid-column: span 1; aspect-ratio: 4 / 3; }
}

/* FAQ */

.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 14px; padding: 0 20px;
  transition: border-color 0.25s ease;
}
.faq-item:hover, .faq-item[open] { border-color: rgba(79, 216, 255, 0.35); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 0;
  font-weight: 700; font-size: 15.5px; position: relative; padding-right: 34px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-size: 24px; color: var(--neon);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { color: var(--muted); font-size: 14.5px; padding-bottom: 18px; max-width: 640px; }

/* Адреса */

.addr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

.addr-card {
  position: relative;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 18px; padding: 26px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.addr-card:hover {
  border-color: rgba(79, 216, 255, 0.38);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3), 0 0 26px rgba(79, 216, 255, 0.07);
}
.addr-num {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--display); font-weight: 700; font-size: 40px;
  color: transparent; -webkit-text-stroke: 1px rgba(79, 216, 255, 0.4);
}
.addr-title {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 20px;
}
.addr-line { font-size: 17px; font-weight: 600; margin-top: 8px; }
.addr-hours { color: var(--muted); font-size: 14px; margin-top: 4px; }
.addr-map {
  width: 100%; height: 210px; border: 0; border-radius: 12px; margin-top: 16px;
  /* инверсия переводит светлую карту Яндекса в тёмную, hue-rotate возвращает цвета */
  filter: invert(0.9) hue-rotate(180deg) saturate(0.8) contrast(0.92);
  background: var(--steel);
}
.addr-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* CTA-полоса */

.cta-band {
  width: min(900px, calc(100% - 40px)); margin: 56px auto 0; padding: clamp(26px, 4vw, 40px);
  display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); flex-wrap: wrap;
  border: 1px solid rgba(79, 216, 255, 0.28); border-radius: 22px;
  background:
    radial-gradient(500px 220px at 16% 50%, rgba(42, 168, 255, 0.16), transparent 70%),
    radial-gradient(420px 240px at 90% 50%, rgba(42, 168, 255, 0.09), transparent 70%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 44px rgba(42, 168, 255, 0.09);
}
.cta-band .btn-primary { animation: cta-pulse 3.2s ease-in-out infinite; }

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 18px rgba(79, 216, 255, 0.35), 0 2px 10px rgba(0, 0, 0, 0.4); }
  50% { box-shadow: 0 0 36px rgba(79, 216, 255, 0.62), 0 2px 10px rgba(0, 0, 0, 0.4); }
}
.band-blade { height: 74px; width: auto; flex-shrink: 0; filter: drop-shadow(0 0 16px rgba(42, 168, 255, 0.4)); }
.cta-band h2 {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; font-size: clamp(22px, 3.4vw, 32px);
}
.cta-band p { color: var(--muted); font-size: 14.5px; }
.cta-band .btn { margin-left: auto; }

/* ---------- Модалка онлайн-записи (YClients) ---------- */

body.booking-open { overflow: hidden; }

.booking-modal { position: fixed; inset: 0; z-index: 60; }
.booking-modal[hidden] { display: none; }

.booking-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 10, 13, 0.78);
  backdrop-filter: blur(6px);
}

.booking-dialog {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(460px, calc(100vw - 24px));
  height: min(820px, calc(100dvh - 40px));
  display: flex; flex-direction: column;
  border: 1px solid rgba(79, 216, 255, 0.35);
  border-radius: 22px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(42, 168, 255, 0.18);
}

/* Своя шапка модалки: заголовок и крестик не перекрывают элементы формы YClients */
.booking-bar {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 16px;
  background: rgba(13, 15, 18, 0.96);
  border-bottom: 1px solid var(--line);
}
.booking-bar-blade { height: 22px; width: auto; }
.booking-bar-title {
  font-family: var(--display); font-weight: 600; font-size: 15px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.booking-body { position: relative; flex: 1; min-height: 0; }

@media (prefers-reduced-motion: no-preference) {
  .booking-dialog { animation: booking-in 0.25s cubic-bezier(0.22, 0.7, 0.3, 1); }
  @keyframes booking-in {
    from { opacity: 0; transform: translate(-50%, calc(-50% + 14px)); }
    to { opacity: 1; transform: translate(-50%, -50%); }
  }
}

.booking-close {
  margin-left: auto;
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 12px;
  border: 1px solid rgba(79, 216, 255, 0.3);
  background: rgba(13, 15, 18, 0.85);
  color: var(--neon); cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.booking-close:hover {
  border-color: var(--neon);
  box-shadow: 0 0 14px rgba(79, 216, 255, 0.45);
}

/* Неоновое кольцо, пока грузится форма; форма светлая, поэтому подложка тёмная только до загрузки */
.booking-loader {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--panel);
}
.booking-spinner {
  width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid rgba(79, 216, 255, 0.18);
  border-top-color: var(--neon);
  box-shadow: 0 0 18px rgba(79, 216, 255, 0.25);
  animation: booking-spin 0.9s linear infinite;
}
@keyframes booking-spin { to { transform: rotate(360deg); } }
.booking-modal.is-loaded .booking-loader { display: none; }

.booking-frame {
  position: relative; z-index: 1;
  width: 100%; height: 100%; border: 0; display: block;
  opacity: 0; transition: opacity 0.3s ease;
}
.booking-modal.is-loaded .booking-frame { opacity: 1; }

/* На телефоне форма разворачивается почти на весь экран */
@media (max-width: 560px) {
  .booking-dialog {
    width: 100vw; height: 100dvh;
    left: 0; top: 0; transform: none;
    border-radius: 0; border: 0;
    animation: none;
  }
}
@media (max-width: 560px) and (prefers-reduced-motion: no-preference) {
  .booking-dialog { animation: booking-in-mobile 0.25s ease; }
  @keyframes booking-in-mobile {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
}

/* Кнопки в CTA-полосе: онлайн-запись + телефон рядом */
.band-actions {
  margin-left: auto; display: flex; align-items: center;
  gap: 12px; flex-wrap: wrap; justify-content: center;
}
.cta-band .band-actions .btn { margin-left: 0; }

/* ---------- Футер ---------- */

.site-footer {
  max-width: 900px; margin: 0 auto; padding: 40px 20px 50px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.footer-brand .logo-mark { height: 26px; }
.footer-phone {
  margin-left: auto; text-decoration: none; font-family: var(--display);
  font-weight: 600; font-size: 18px; letter-spacing: 0.04em;
}
.footer-social { display: flex; gap: 16px; }
.social-link { text-decoration: none; font-weight: 600; font-size: 14px; color: var(--muted); }
.social-link:hover { color: var(--neon); }
.footer-copy { width: 100%; color: var(--muted); font-size: 13px; }

/* ---------- Печать / PDF ---------- */

@media print {
  body {
    background-attachment: scroll;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .site-header { position: static; background: #0d0f12; }
  .hex-glow { animation: none; }
  .marquee-track { animation: none; }
  .addr-map { display: none; }
  .faq-item { break-inside: avoid; }
}

/* ---------- Мобильный ---------- */

@media (max-width: 1024px), (hover: none) {
  /* fixed-фон дёргается на мобильных Safari/Chrome */
  body { background-attachment: scroll; }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .site-header { gap: 12px; justify-content: space-between; }
  .cta-band { text-align: center; justify-content: center; }
  .cta-band .btn { margin-left: 0; }
  .band-blade { display: none; }
  .footer-phone { margin-left: 0; }
}
