/* Шаблон service-landing. Цвета палитры сборщик подставляет в :root вместо метки палитры. */
:root {
  --bg: #ffffff;
  --surface: #f5f7f8;
  --text: #14181c;
  --muted: #4f5a63;
  --line: #dde3e7;
  --radius: 16px;
  --radius-sm: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(20, 24, 28, .05), 0 10px 28px rgba(20, 24, 28, .06);
  --gutter: 20px;
  --section: 56px;
  --primary: #4338ca;
  --on-primary: #ffffff;
  --accent: #4338ca;
  --tint: #f0effb;
  --primary-soft: #e3e1f7;
  --primary-deep: #2f278d;
}

@media (min-width: 640px) {
  :root { --gutter: 32px; --section: 64px; }
}

@media (min-width: 960px) {
  :root { --section: 80px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  padding-bottom: 84px;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 { text-wrap: balance; }

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
}
.skip:focus { top: 12px; }

/* Шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-right: auto;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
}
.brand__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 1.0625rem;
  font-weight: 700;
}
.brand__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav { display: none; }
.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover { background: var(--surface); }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--on-primary);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(20, 24, 28, .18);
  text-decoration: none;
}
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .9375rem; }
.btn--ghost { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn--inverse { background: var(--on-primary); border-color: var(--on-primary); color: var(--primary); }
.btn--outline-inverse { background: transparent; border-color: var(--on-primary); color: var(--on-primary); }

/* Первый экран */
.hero {
  padding-block: calc(var(--section) - 8px) var(--section);
  background: linear-gradient(180deg, var(--tint), var(--bg));
  overflow: hidden;
}
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 6.4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.lead {
  margin: 0 0 28px;
  max-width: 34em;
  color: var(--muted);
  font-size: 1.1875rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: .9375rem;
}
.hero__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero__art { display: none; }

/* Секции */
.section { padding-block: var(--section); }
.section--alt { background: var(--surface); }
.section__head { max-width: 42rem; margin-bottom: 36px; }
h2 {
  margin: 0 0 12px;
  font-size: clamp(1.625rem, 3.6vw, 2.375rem);
  line-height: 1.2;
  letter-spacing: -.015em;
}
.prose p { max-width: 65ch; margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.about { display: grid; gap: 20px; }

.grid { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }

/* Услуги */
.cards { grid-template-columns: 1fr; counter-reset: card; }
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}
.card::before {
  counter-increment: card;
  content: counter(card, decimal-leading-zero);
  color: var(--accent);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.card h3 { margin: 0; font-size: 1.25rem; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); }
.card .card__price {
  margin-top: auto;
  padding-top: 14px;
  color: var(--accent);
  font-size: 1.125rem;
  font-weight: 700;
}
.card .card__note {
  margin-top: auto;
  font-size: .875rem;
  line-height: 1.45;
}
.card .card__price + .card__note { margin-top: -4px; }

/* Преимущества */
.points { grid-template-columns: 1fr; gap: 28px; }
.point { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.point__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
}
.point h3 { margin: 0 0 6px; font-size: 1.1875rem; line-height: 1.3; }
.point p { margin: 0; color: var(--muted); max-width: 48ch; }

/* Отзывы */
.reviews { grid-template-columns: 1fr; }
.review {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.review blockquote { margin: 0; }
.review blockquote p { margin: 0; font-size: 1.0625rem; }
.review__by { margin: 0; margin-top: auto; color: var(--muted); font-size: .9375rem; }
.review__by strong { color: var(--text); }

/* Вопросы */
.faq { display: grid; gap: 12px; max-width: 52rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.section--alt .faq details { background: var(--bg); }
.faq summary {
  position: relative;
  padding: 18px 56px 18px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { max-width: 65ch; margin: 0; padding: 0 20px 20px; color: var(--muted); }

/* Контакты */
.contacts { display: grid; gap: 32px; }
.contact-list { display: grid; gap: 22px; margin: 0; }
.contact-list div { display: grid; gap: 2px; }
.contact-list dt {
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-list dd { margin: 0; font-size: 1.125rem; }
.contact-list a { color: var(--text); font-weight: 600; }
.contact-list ul { margin: 0; padding: 0; list-style: none; }
.contact-list .hours__closed { color: var(--muted); }
.cta-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 36px 28px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--on-primary);
}
.cta-card h3 { margin: 0; font-size: 1.5rem; line-height: 1.25; }
.cta-card p { margin: 0; }
.cta-card .btn { width: 100%; }
.cta-card :focus-visible { outline-color: var(--on-primary); }

/* Подвал */
.site-footer {
  padding-block: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9375rem;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* Закреплённая кнопка связи на телефоне */
.dock {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 30;
  display: flex;
  gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -6px 20px rgba(20, 24, 28, .08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.dock .btn { flex: 1; min-height: 50px; padding-inline: 12px; }

/* Юридические страницы и 404 */
.doc { padding-block: var(--section); }
.doc h1 { margin: 0 0 8px; font-size: clamp(1.75rem, 4.6vw, 2.5rem); line-height: 1.15; letter-spacing: -.015em; }
.doc h2 { margin: 40px 0 10px; font-size: 1.375rem; letter-spacing: 0; }
.doc p, .doc ul { max-width: 65ch; margin: 0 0 1em; }
.doc ul { padding-left: 1.2em; }
.doc .meta { color: var(--muted); }
.notfound {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  min-height: 60vh;
  padding-block: var(--section);
  text-align: center;
}
.notfound h1 { margin: 0; font-size: clamp(1.75rem, 5vw, 2.75rem); line-height: 1.15; }
.notfound p { max-width: 36ch; margin: 0; color: var(--muted); }

@media (min-width: 640px) {
  .cards, .reviews { grid-template-columns: repeat(2, 1fr); }
  .points { grid-template-columns: repeat(2, 1fr); gap: 36px 40px; }
  .cta-card { padding: 44px 40px; }
  .cta-card .btn { width: auto; align-self: flex-start; }
}

@media (max-width: 767px) {
  /* внизу закреплённая панель с теми же кнопками */
  .hero__actions { display: none; }
  .lead { margin-bottom: 0; }
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .hero__art {
    display: block;
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    margin-inline: auto;
  }
  .hero__art::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  }
  .hero__art::after {
    content: "";
    position: absolute;
    right: -4%;
    bottom: 6%;
    width: 44%;
    height: 44%;
    border-radius: 50%;
    background: var(--primary-soft);
    box-shadow: var(--shadow);
  }
  .hero__art span {
    position: absolute;
    left: -6%;
    top: 12%;
    width: 22%;
    height: 22%;
    border-radius: 50%;
    background: var(--tint);
    border: 6px solid var(--bg);
    box-shadow: var(--shadow);
    z-index: 1;
  }
  .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
  .contacts { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: stretch; }
}

@media (min-width: 960px) {
  .nav { display: flex; gap: 4px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* Юридические страницы продажи билетов: подключается к style.css только если в анкете включена афиша (events) */
.doc--legal h3 { margin: 28px 0 8px; font-size: 1.125rem; }
.doc--legal ol { max-width: 65ch; margin: 0 0 1em; padding-left: 1.4em; }
.doc--legal li { margin-bottom: .35em; }
.doc--legal hr { margin: 48px 0 32px; border: 0; border-top: 1px solid var(--line); }
.legal-table { max-width: 100%; margin: 0 0 1.5em; overflow-x: auto; }
.legal-table table { border-collapse: collapse; min-width: 36rem; font-size: .9375rem; }
.legal-table th, .legal-table td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { background: var(--surface); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; }
