/* Кадр 35 — общие стили сайта */

:root {
  --indigo: #3D3D9E;
  --indigo-dark: #2E2E7A;
  --white: #F8F6F2;
  --graphite: #1E1E24;
  --accent: #F2C14E;
  --muted: #5B5B66;
  --line: #E4E0D8;
  --card: #FFFFFF;
  --error: #B3261E;
  --ok: #1E7A46;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(30, 30, 36, .08);
  --container: 1200px;
  --font-head: "Unbounded", "Segoe UI", Arial, sans-serif;
  --font-text: "Inter", "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--graphite);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--indigo); }
a:hover { color: var(--indigo-dark); }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 600;
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(28px, 6vw, 56px); }
h2 { font-size: clamp(24px, 4vw, 36px); }
h3 { font-size: clamp(18px, 2.4vw, 22px); }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.section { padding: 56px 0; }
.section--alt { background: #EFECE5; }
.section__head { max-width: 720px; margin-bottom: 32px; }
.section__lead { color: var(--muted); font-size: 18px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--graphite);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  min-width: 44px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 600 16px/1.2 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--indigo); color: #fff; }
.btn--primary:hover { background: var(--indigo-dark); color: #fff; }
.btn--accent { background: var(--accent); color: var(--graphite); }
.btn--accent:hover { background: #E5B23C; color: var(--graphite); }
.btn--ghost { border-color: currentColor; color: var(--indigo); background: transparent; }
.btn--ghost:hover { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.btn--light { border-color: #fff; color: #fff; background: transparent; }
.btn--light:hover { background: #fff; color: var(--graphite); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Шапка */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--graphite);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  min-height: 44px;
}
.logo__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--indigo);
  color: var(--accent);
  font-size: 15px;
}
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--graphite);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.nav a:hover { background: #EAE6DE; }
.nav a[aria-current="page"] { background: var(--indigo); color: #fff; }
.header__phone {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--graphite);
  text-decoration: none;
  white-space: nowrap;
}
.burger {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: #EAE6DE;
  cursor: pointer;
  position: relative;
}
.burger span,
.burger span::before,
.burger span::after {
  position: absolute;
  left: 13px;
  width: 22px;
  height: 2px;
  background: var(--graphite);
  content: "";
  transition: transform .2s, opacity .2s;
}
.burger span { top: 23px; }
.burger span::before { left: 0; top: -7px; }
.burger span::after { left: 0; top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .header__phone { display: none; }
}

@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    margin: 0;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav a { font-size: 17px; padding: 0 16px; }
}

/* Первый экран */
.hero {
  position: relative;
  color: #fff;
  background: var(--graphite);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
}
.hero__inner {
  position: relative;
  padding: 72px 16px 80px;
  max-width: var(--container);
  margin: 0 auto;
}
.hero__badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--graphite);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
}
.hero h1 { max-width: 820px; }
.hero__text { max-width: 620px; font-size: 18px; color: #EDEBF7; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.hero__facts strong { display: block; font-family: var(--font-head); font-size: 24px; color: var(--accent); }
.hero__facts span { font-size: 14px; color: #D9D7EA; }

.page-hero { padding: 48px 0 32px; }
.page-hero p { max-width: 720px; color: var(--muted); font-size: 18px; }

/* Сетки и карточки */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}
a.card:hover { box-shadow: 0 10px 32px rgba(30, 30, 36, .14); color: inherit; }
.card__img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; background: #DDD8CE; }
.card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body p { margin: 0; color: var(--muted); }
.card__price { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 18px; color: var(--indigo); }
.tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: #ECEBFA;
  color: var(--indigo);
  font-size: 13px;
  font-weight: 600;
}
.tag--accent { background: #FCF0D2; color: #7A5A00; }

/* Залы — подробно */
.hall {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: start;
  padding: 32px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  scroll-margin-top: 90px;
}
.hall__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hall__photos img { border-radius: 12px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; background: #DDD8CE; }
.hall__photos img:first-child { grid-column: 1 / -1; }
.specs { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.specs li { display: flex; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.specs b { min-width: 110px; }
.hall__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hall__note { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .hall { grid-template-columns: 1fr; padding: 20px; }
}

/* Фотографы */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; scroll-margin-top: 90px; }
.filter__btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 2px solid var(--indigo);
  background: transparent;
  color: var(--indigo);
  font: 600 15px var(--font-text);
  cursor: pointer;
}
.filter__btn[aria-pressed="true"] { background: var(--indigo); color: #fff; }
.photographer .card__img { aspect-ratio: 4 / 5; }
.photographer[hidden] { display: none; }
.photographer__more { color: var(--muted); font-size: 15px; }
.photographer__toggle {
  align-self: flex-start;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--indigo);
  font: 600 15px var(--font-text);
  cursor: pointer;
  text-decoration: underline;
}

/* Галерея и просмотр кадра */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery__item {
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  background: #DDD8CE;
  aspect-ratio: 1;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery__item:hover img { transform: scale(1.04); }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(20, 20, 26, .92);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 86vh; width: auto; border-radius: 8px; }
.lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__caption { position: absolute; bottom: 16px; left: 16px; right: 16px; color: #fff; text-align: center; }

/* Оборудование */
.price-list { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-list th, .price-list td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-list th { background: #ECEBFA; font-weight: 600; }
.price-list td:last-child { white-space: nowrap; font-weight: 600; }
.calc {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.calc__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.calc__row label { font-weight: 500; }
.calc__total { font-family: var(--font-head); font-size: 26px; color: var(--indigo); margin: 20px 0; }

.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--indigo);
  background: transparent;
  color: var(--indigo);
  font-size: 22px;
  cursor: pointer;
}
.stepper output { min-width: 32px; text-align: center; font-weight: 700; font-size: 18px; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--indigo); }

/* Идеи */
.ideas { display: grid; gap: 12px; counter-reset: idea; }
.idea {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.idea summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
}
.idea summary::-webkit-details-marker { display: none; }
.idea summary::before {
  counter-increment: idea;
  content: counter(idea, decimal-leading-zero);
  font-family: var(--font-head);
  color: var(--indigo);
  min-width: 32px;
}
.idea summary::after { content: "+"; margin-left: auto; font-size: 24px; color: var(--indigo); }
.idea[open] summary::after { content: "−"; }
.idea__body { padding: 0 20px 20px 68px; color: var(--muted); }
@media (max-width: 640px) { .idea__body { padding-left: 20px; } }

.promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--indigo);
  color: #fff;
}
.promo__code {
  font-family: var(--font-head);
  font-size: clamp(26px, 5vw, 40px);
  letter-spacing: .06em;
  color: var(--accent);
  border: 2px dashed var(--accent);
  border-radius: 12px;
  padding: 8px 20px;
}
.promo p { margin: 0; color: #E3E2F5; max-width: 460px; }
.promo__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Бронирование */
.booking { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .booking { grid-template-columns: 1fr; } }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.panel + .panel { margin-top: 24px; }
.step-title { font-family: var(--font-head); font-size: 17px; margin: 0 0 12px; }
.step { margin-bottom: 24px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px;
  min-width: 44px;
  padding: 6px 14px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--graphite);
  font: 500 15px/1.2 var(--font-text);
  cursor: pointer;
  text-align: center;
}
.chip small { display: block; font-size: 12px; color: var(--muted); }
.chip:hover:not([disabled]) { border-color: var(--indigo); }
.chip[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.chip[aria-pressed="true"] small { color: #D9D7EA; }
.chip[disabled] {
  background: #F0EEE9;
  color: #A3A1A8;
  text-decoration: line-through;
  cursor: not-allowed;
}
.chip--discount:not([disabled])::after { content: " −20%"; color: var(--ok); font-size: 12px; font-weight: 700; }
.chip[aria-pressed="true"].chip--discount::after { color: var(--accent); }

.summary { list-style: none; padding: 0; margin: 0 0 16px; }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.summary li span:first-child { color: var(--muted); }
.summary__total { font-family: var(--font-head); font-size: 26px; color: var(--indigo); }
.hint { font-size: 14px; color: var(--muted); }

/* Форма */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: 16px var(--font-text);
  color: var(--graphite);
}
.field input[readonly] { background: #F4F2EE; }
.field input:focus,
.field select:focus { border-color: var(--indigo); outline: none; }
.field.is-invalid input,
.field.is-invalid select { border-color: var(--error); background: #FDF3F2; }
.field__error { color: var(--error); font-size: 14px; min-height: 0; }
.field__error:empty { display: none; }
.form__consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.form__consent input { width: 22px; height: 22px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--indigo); }
.form__consent.is-invalid { color: var(--error); }
.form__status { padding: 12px 16px; border-radius: 12px; background: #FDF3F2; color: var(--error); }
.form__status:empty { display: none; }

.contacts-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contacts-list a { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.messengers { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* Спасибо и 404 */
.center-block { max-width: 720px; margin: 0 auto; text-align: center; padding: 64px 16px; }
.receipt { text-align: left; margin: 24px 0; }
.steps-list { text-align: left; padding-left: 20px; }
.steps-list li { margin-bottom: 8px; }

/* Политика */
.prose { max-width: 820px; }
.prose h2 { font-size: 22px; margin-top: 32px; }
.prose ul { padding-left: 20px; }

/* Подвал */
.footer { background: var(--graphite); color: #CFCFD6; padding: 48px 0 24px; margin-top: 0; }
.footer a { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }
.footer .logo { color: #fff; }
.footer h2 { font-size: 16px; color: #fff; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer ul a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.social {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2E2E38;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}
.social:hover { background: var(--indigo); color: #fff; }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.footer__bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid #34343E; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--graphite);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.toast.is-visible { opacity: 1; }
