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

:root {
  --header-bg: rgba(26,26,26,.95);
  --header-ink: #f0ece4;
  --footer-bg: #1a1a1a;
  --footer-ink: #f0ece4;
  --bg: #1a1a1a;
  --page-ink: #f0ece4;
  --text-secondary: #a8a4a0;
  --text-muted: #6b6763;
}

body { padding-bottom: var(--footer-h, 80px); }
html, body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: #1a1a1a;
  color: #f0ece4;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.scroll-space { position: relative; }

/* === НАВИГАЦИЯ === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 20;
  background: var(--header-bg);
  color: var(--header-ink);
}
.nav__logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 18px;
  letter-spacing: 4px;
  color: inherit;
  text-transform: uppercase;
  text-decoration: none;
}
.nav__logo[hidden] { display: none; }
.nav__logo small {
  color: var(--text-muted);
  font-weight: normal;
  letter-spacing: 2px;
  text-transform: none;
  font-size: 12px;
}
.nav__menu {
  display: flex;
  gap: 30px;
  list-style: none;
}
.nav__menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav__menu a:hover { color: var(--header-ink); }

/* === СЦЕНА С КАДРАМИ === */
.scene {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 10;
  background: #1a1a1a;
}

.frame {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  background: linear-gradient(155deg, #2d2d2d, #1a1a1a);
  transition: opacity 0.6s ease;
  will-change: opacity;
}
.frame picture { display: block; width: 100%; height: 100%; }
.frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.frame.active img { transform: scale(1.0); }

.overlay-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(26,26,26,0.9) 0%, transparent 100%);
  z-index: 5;
  pointer-events: none;
}
.overlay-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(0deg, rgba(26,26,26,0.95) 0%, transparent 100%);
  z-index: 5;
  pointer-events: none;
}
.overlay-sides {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(26,26,26,0.5) 100%);
  z-index: 4;
  pointer-events: none;
}

/* === ТОЧКИ-ИНДИКАТОРЫ КАДРОВ === */
.frame-dots {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 20;
}
.frame-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3a3a3a;
  border: 1px solid var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
}
.frame-dot.active {
  background: #f0ece4;
  border-color: #f0ece4;
  transform: scale(1.3);
}
.frame-dot:hover { background: var(--text-secondary); }

/* === ТЕКСТЫ НА КАДРАХ === */
.frame-text {
  position: absolute;
  z-index: 15;
  bottom: calc(var(--footer-h, 80px) + 8%); left: 8%;
  max-width: 500px;
  padding: 24px 28px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 6px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
}
.frame-text.visible {
  opacity: 1;
  transform: translateY(0);
}
.frame-text.pos-0 { bottom: calc(var(--footer-h, 80px) + 8%); left: 8%; }
.frame-text.pos-1 { top: 15%; bottom: auto; right: 8%; left: auto; text-align: right; }
.frame-text.pos-2 { bottom: calc(var(--footer-h, 80px) + 8%); right: 8%; left: auto; text-align: right; }
.frame-text.pos-3 { top: 15%; bottom: auto; left: 8%; }
.frame-text.pos-4 { top: 42%; bottom: auto; right: 8%; left: auto; text-align: right; }
.frame-text.pos-5 { top: 42%; bottom: auto; left: 8%; }
.frame-text__label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.frame-text__title {
  font-size: 44px;
  font-weight: normal;
  line-height: 1.2;
  color: #f0ece4;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.frame-text__desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  white-space: pre-line;
}
.frame-text__desc:empty { display: none; }

/* === ПОДСКАЗКА СКРОЛЛА === */
.scroll-hint {
  position: fixed;
  bottom: calc(var(--footer-h, 80px) + 20px); left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  z-index: 20;
  opacity: 0.7;
  animation: pulse 2s infinite;
  transition: opacity 0.5s;
}
.scroll-hint::after {
  content: '↓';
  display: block;
  font-size: 18px;
  margin-top: 6px;
  animation: bounce 1.5s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.8; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* === СЧЁТЧИК КАДРОВ === */
.frame-counter {
  position: fixed;
  bottom: 30px; right: 30px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-muted);
  z-index: 20;
  font-family: 'Courier New', monospace;
}
.frame-counter__current {
  color: #f0ece4;
  font-size: 24px;
}

/* === ФИНАЛЬНЫЙ КОНТЕНТ === */
.content {
  position: relative;
  z-index: 5;
  background: var(--bg);
  color: var(--page-ink);
  padding: 120px 40px 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
body.no-frames .content { padding-top: 190px; }
.content__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.content__title {
  font-size: 52px;
  font-weight: normal;
  margin-bottom: 30px;
  letter-spacing: 3px;
}
.content__text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 50px;
  white-space: pre-line;
}
.content__cta {
  display: inline-block;
  padding: 18px 50px;
  border: 1px solid currentColor;
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all 0.3s;
}
.content__cta:hover { background: currentColor; color: var(--bg); }
.content__cta[hidden] { display: none; }

/* === ПОДВАЛ === */
.footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 25;
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 16px 40px;
}
.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: 1px;
}
.footer__inner strong {
  display: block;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer__inner small { color: var(--text-muted); }
.footer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__contacts a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer__contacts a:hover { border-bottom-color: currentColor; }

/* Адаптив */
@media (max-width: 768px) {
  .frame-text__title { font-size: 26px; }
  .frame-text__desc { font-size: 14px; }
  .nav { padding: 0 20px; }
  .nav__menu { display: none; }
  .frame-dots { right: 15px; }
  .frame-text { left: 5%; right: 5%; }
  .frame-text[class*="pos-"] {
    top: 0; bottom: var(--footer-h, 80px);
    left: 5%; right: 5%;
    margin: auto 0;
    height: fit-content;
    max-width: none;
    text-align: center;
  }
  .content__title { font-size: 30px; }
  .footer { padding: 10px 20px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 11px; }
  .footer__contacts { gap: 10px; }
}

/* === ПОСЛЕДНИЙ СЛАЙД: ОНЛАЙН-ЗАПИСЬ === */
.booking-slide {
  --b-muted: var(--text-secondary);
  --b-faint: var(--text-muted);
  --b-line: rgba(240, 236, 228, .16);
  --b-soft: rgba(240, 236, 228, .1);
  position: absolute;
  inset: 0;
  z-index: 16;
  display: flex;
  padding: 110px 80px calc(var(--footer-h, 80px) + 30px) 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  color: var(--page-ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .booking-slide {
    --b-muted: color-mix(in srgb, var(--page-ink) 68%, transparent);
    --b-faint: color-mix(in srgb, var(--page-ink) 42%, transparent);
    --b-line: color-mix(in srgb, var(--page-ink) 16%, transparent);
    --b-soft: color-mix(in srgb, var(--page-ink) 10%, transparent);
  }
}
.booking-slide.active { pointer-events: auto; }
.booking-slide [hidden] { display: none !important; }
.booking-slide--static {
  position: relative;
  inset: auto;
  z-index: 5;
  min-height: 100vh;
  overflow: visible;
  opacity: 1;
  pointer-events: auto;
  padding: 100px 40px calc(var(--footer-h, 80px) + 60px);
}
.booking-slide__inner {
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
}
.booking-col {
  min-width: 0;
  padding: 0 34px;
  border-left: 1px solid var(--b-line);
}
.booking-col:first-child { padding-left: 0; border-left: none; }
.booking-col:last-child { padding-right: 0; }

.booking-slide__label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--b-faint);
  margin-bottom: 18px;
}
.booking-slide__label span { color: var(--page-ink); }
.booking-slide__title {
  font-size: 40px;
  font-weight: normal;
  line-height: 1.15;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.booking-slide__text {
  font-size: 15px;
  line-height: 1.7;
  font-style: italic;
  color: var(--b-muted);
  margin-bottom: 34px;
}

.booking-step {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--b-muted);
}
.booking-step span {
  min-width: 22px;
  font-size: 15px;
  font-style: italic;
  letter-spacing: 1px;
  text-transform: none;
  color: var(--page-ink);
}
.calendar + .booking-step,
.booking-fields + .booking-step { margin-top: 30px; }

.booking-empty {
  grid-column: 1 / -1;
  padding: 10px 0;
  font-size: 13px;
  font-style: italic;
  color: var(--b-muted);
}

/* Услуги */
.service-list {
  max-height: 38vh;
  overflow-y: auto;
  border-top: 1px solid var(--b-line);
  scrollbar-width: thin;
  scrollbar-color: var(--b-line) transparent;
}
.service-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  width: 100%;
  padding: 15px 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--b-line);
  color: var(--b-muted);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s;
}
.service-option::before {
  content: '';
  width: 0;
  height: 1px;
  align-self: center;
  background: currentColor;
  transition: width 0.3s, margin 0.3s;
}
.service-option strong {
  font-size: 17px;
  font-weight: normal;
  line-height: 1.35;
  padding-right: 14px;
}
.service-option__meta {
  font-size: 12px;
  font-style: italic;
  white-space: nowrap;
  color: var(--b-faint);
}
.service-option:hover,
.service-option.selected { color: var(--page-ink); }
.service-option.selected::before { width: 18px; margin-right: 12px; }
.service-option.selected .service-option__meta { color: var(--b-muted); }

/* Календарь */
.calendar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.calendar__month {
  font-size: 18px;
  font-weight: normal;
  letter-spacing: 2px;
  text-transform: capitalize;
}
.calendar__nav {
  width: 38px;
  height: 38px;
  border: 1px solid var(--b-line);
  border-radius: 50%;
  background: none;
  color: inherit;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.3s;
}
.calendar__nav:hover { border-color: var(--page-ink); }
.calendar__weekdays,
.calendar__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}
.calendar__weekdays span {
  padding-bottom: 8px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--b-faint);
}
.day {
  position: relative;
  aspect-ratio: 1;
  max-height: 46px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid transparent;
  border-radius: 50%;
  background: none;
  color: inherit;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.25s, background 0.25s;
}
.day.available { cursor: pointer; }
.day.available::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 14%;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}
.day.available:hover { border-color: var(--b-line); }
.day.today { font-style: italic; }
.day.selected {
  border-color: var(--page-ink);
  background: var(--b-soft);
}
.day.selected::after { display: none; }
.day.disabled { color: var(--b-faint); opacity: 0.5; }

/* Время */
.selected-date {
  margin-bottom: 12px;
  font-size: 13px;
  font-style: italic;
  color: var(--b-muted);
}
.time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
  gap: 6px;
}
.time {
  height: 40px;
  border: 1px solid var(--b-line);
  border-radius: 3px;
  background: none;
  color: inherit;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}
.time:hover { border-color: var(--b-muted); }
.time.selected {
  border-color: var(--page-ink);
  background: var(--b-soft);
}
.time.unavailable {
  border-style: dashed;
  color: var(--b-faint);
  text-decoration: line-through;
}
.time.unavailable.selected {
  border-style: solid;
  color: var(--page-ink);
  text-decoration: none;
}

/* Контакты */
.booking-fields {
  display: grid;
  gap: 20px;
}
.booking-fields > label {
  display: grid;
  gap: 4px;
}
.booking-fields > label > span {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--b-faint);
}
.booking-fields input[type="text"],
.booking-fields input[type="tel"] {
  width: 100%;
  padding: 8px 0 10px;
  border: none;
  border-bottom: 1px solid var(--b-line);
  border-radius: 0;
  background: none;
  color: inherit;
  font-family: inherit;
  font-size: 17px;
  outline: none;
  transition: border-color 0.3s;
}
.booking-fields input[type="text"]:focus,
.booking-fields input[type="tel"]:focus { border-bottom-color: var(--page-ink); }
.booking-fields input::placeholder {
  color: var(--b-faint);
  font-style: italic;
}
.booking-consent {
  display: grid;
  gap: 10px;
}
.booking-consent-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--b-muted);
  cursor: pointer;
}
.booking-consent-item input {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--page-ink);
}
.booking-consent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.booking-error {
  font-size: 13px;
  color: #e08a78;
}

.booking-summary {
  display: grid;
  gap: 2px;
  margin-top: 26px;
  padding: 16px 0;
  border-top: 1px solid var(--b-line);
  border-bottom: 1px solid var(--b-line);
}
.booking-summary strong {
  font-size: 17px;
  font-weight: normal;
}
.booking-summary span {
  font-size: 13px;
  font-style: italic;
  color: var(--b-muted);
}
.booking-summary .booking-summary__price {
  margin-top: 4px;
  font-size: 20px;
  font-style: normal;
  color: var(--page-ink);
}
.booking-summary__price:empty { display: none; }

.booking-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
  padding: 17px 24px;
  border: 1px solid currentColor;
  background: none;
  color: inherit;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, opacity 0.3s;
}
.booking-submit:hover { background: var(--b-soft); }
.booking-submit:disabled { opacity: 0.35; cursor: not-allowed; }
.booking-submit.ready {
  background: var(--page-ink);
  color: var(--bg);
}
.booking-note {
  margin-top: 12px;
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
  color: var(--b-faint);
}

/* Успех */
.success-msg {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.success-msg h3 {
  font-size: 40px;
  font-weight: normal;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.success-msg p {
  margin-bottom: 26px;
  font-size: 16px;
  font-style: italic;
  line-height: 1.7;
  color: var(--b-muted);
}
.success-msg .booking-submit {
  max-width: 380px;
  margin: 10px auto 0;
}
.success-msg .ec-channels { justify-content: center; }
.booking-again {
  margin-top: 24px;
  background: none;
  border: none;
  color: var(--b-muted);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
}
.booking-again:hover { color: var(--page-ink); }

/* Точка последнего слайда — ромб */
.frame-dot--booking { border-radius: 1px; transform: rotate(45deg); }
.frame-dot--booking.active { transform: rotate(45deg) scale(1.3); }

@media (max-width: 1100px) {
  .booking-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
  .booking-col:first-child { grid-column: 1 / -1; padding-right: 0; }
  .booking-col:nth-child(2) { padding-left: 0; border-left: none; }
  .service-list { max-height: none; }
}

@media (max-width: 768px) {
  .booking-slide {
    padding: 90px 36px calc(var(--footer-h, 80px) + 24px) 20px;
  }
  .booking-slide--static { padding: 90px 20px calc(var(--footer-h, 80px) + 40px); }
  .booking-grid {
    grid-template-columns: 1fr;
    row-gap: 0;
  }
  .booking-col,
  .booking-col:nth-child(2) {
    padding: 0;
    border-left: none;
  }
  .booking-col + .booking-col {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--b-line);
  }
  .booking-slide__title,
  .success-msg h3 { font-size: 30px; }
  .booking-slide__text { margin-bottom: 26px; }
  .service-option { padding: 14px 0; }
  .service-option strong { font-size: 16px; }
  .calendar__nav { width: 44px; height: 44px; }
  .day { max-height: none; }
  .time { height: 44px; font-size: 14px; }
  .booking-submit { padding: 18px 20px; }
}
