/* =========================================================
   Наумсол — стили
   Шрифты свои (без Google Fonts), иконки — SVG-спрайт,
   анимации только transform/opacity, без inline-стилей (CSP).
   ========================================================= */

/* ---------- Шрифты (variable, самохостинг) ---------- */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/unbounded-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+20AC;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/onest-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+20AC;
}

/* ---------- Токены ---------- */
:root {
  color-scheme: dark;

  --bg: #060c18;
  --surface: #0d1527;
  --surface-2: #141e38;
  --line: rgb(150 175 255 / 0.18);
  --text: #eaf0ff;
  --muted: #a6b2cf;

  /* Акцент у каждой услуги свой: он связывает карточку на главной,
     страницу услуги и цену. */
  --brand: #38e0f4;
  --laser: #ff5c8a;
  --bump: #b8f34d;
  --accent: var(--brand);
  --on-accent: #04101a;

  --ff-display: "Unbounded", system-ui, sans-serif;
  --ff-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 4rem;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

.t-laser { --accent: var(--laser); }
.t-bump  { --accent: var(--bump); }

/* ---------- База ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

h1, h2, h3, p, ul, figure, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
img, picture { display: block; max-width: 100%; }
a { color: inherit; }

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

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

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--brand);
  color: var(--on-accent);
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 1rem/1.2 var(--ff-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.6rem 1.6rem -0.4rem color-mix(in srgb, var(--accent) 55%, transparent);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--accent);
  box-shadow: none;
}

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(6 12 24 / 0.9);
  border-bottom: 1px solid var(--line);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  font: 800 1.15rem/1 var(--ff-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 1.75rem);
}

.site-nav a:not(.btn) {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  padding-block: 0.5rem;
  background: linear-gradient(var(--brand), var(--brand)) 0 100% / 0 2px no-repeat;
  transition: color 0.2s, background-size 0.3s var(--ease);
}
.site-nav a:not(.btn):hover { color: var(--text); background-size: 100% 2px; }

.site-nav .btn { min-height: 2.5rem; padding: 0.45rem 0.9rem; --accent: var(--brand); }
.site-nav .btn__label { display: none; }
.site-nav .nav-secondary { display: none; }   /* на телефонах: логотип, «Контакты», звонок */

@media (min-width: 36rem) {
  .site-nav .nav-secondary { display: inline-flex; }
}
@media (min-width: 40rem) {
  .site-nav .btn__label { display: inline; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  align-items: center;
  min-height: min(44rem, calc(100svh - var(--header-h)));
  padding-block: clamp(3rem, 8vw, 6rem);
}

.hero__map {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(62rem, 82%);
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 62% 66% at 56% 50%, #000 38%, transparent 100%);
          mask-image: radial-gradient(ellipse 62% 66% at 56% 50%, #000 38%, transparent 100%);
}
.hero__map picture,
.hero__map img { width: 100%; height: 100%; }
.hero__map img { object-fit: cover; object-position: 60% 50%; }

.hero__copy { max-width: 38rem; }

.hero h1 {
  font: 700 clamp(2rem, 4.6vw, 3.6rem) / 1.08 var(--ff-display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero__lead {
  margin-top: 1.5rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (max-width: 47.99rem) {
  /* Телефон: карта идёт блоком над заголовком и чуть заходит под него */
  .hero { display: block; min-height: 0; padding-block: 0.5rem 3rem; }
  .hero__map {
    position: relative;
    inset: auto;
    width: 100%;
    margin-bottom: -2.5rem;
    -webkit-mask-image: radial-gradient(ellipse 56% 62% at 56% 50%, #000 40%, transparent 100%);
            mask-image: radial-gradient(ellipse 56% 62% at 56% 50%, #000 40%, transparent 100%);
  }
  .hero__map img { height: auto; }
}

/* ---------- Услуги (главная) ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }

.section__title {
  font: 600 clamp(1.5rem, 3vw, 2.25rem) / 1.15 var(--ff-display);
  letter-spacing: -0.01em;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.panels {
  display: grid;
  gap: 1rem;
}

.panel {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 22rem;
  border-radius: 1.5rem;
  background: var(--surface);
  text-decoration: none;
  isolation: isolate;
}

.panel picture,
.panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.panel img {
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.panel:hover img,
.panel:focus-visible img { transform: scale(1.05); }

.panel::before {            /* затемнение под текстом */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgb(4 8 18 / 0.92) 0%, rgb(4 8 18 / 0.55) 38%, transparent 70%);
}

.panel::after {             /* цветная полоска услуги */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  height: 0.3rem;
  background: var(--accent);
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.panel:hover::after,
.panel:focus-visible::after { transform: scaleX(1); }

.panel__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: grid;
  gap: 0.5rem;
  padding: 1.5rem 1.5rem 1.75rem;
}

.panel h3 {
  font: 700 clamp(1.25rem, 2vw, 1.55rem) / 1.15 var(--ff-display);
  letter-spacing: -0.01em;
}
.panel p { color: #d3dbf1; font-size: 0.98rem; max-width: 30ch; }

.panel__price {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  color: var(--accent);
  font-weight: 700;
}

@media (min-width: 56rem) {
  .panels {
    display: flex;
    height: 34rem;
  }
  .panel {
    flex: 1 1 0;
    min-height: 0;
    transition: flex-grow 0.6s var(--ease);
  }
  .panels:has(.panel:is(:hover, :focus-visible)) .panel { flex-grow: 0.8; }
  .panels:has(.panel:is(:hover, :focus-visible)) .panel:is(:hover, :focus-visible) { flex-grow: 1.7; }
}

/* ---------- Контакты ---------- */
.contacts {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 7vw, 5rem);
}

.contacts__grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 48rem) {
  .contacts__grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; }
}

.contacts__intro .section__title { margin-bottom: 0; }
.contacts__intro p { margin-top: 1rem; color: var(--muted); max-width: 34ch; }

.contact-card {
  display: grid;
  gap: 1.1rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface-2);
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}
.contact-row .icon { margin-top: 0.3rem; color: var(--brand); }

.contact-row a { text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.25em; }
.contact-row a:hover { text-decoration-color: currentColor; }

.contact-row--phone a {
  font: 700 clamp(1.25rem, 2.4vw, 1.6rem) / 1.2 var(--ff-display);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.contact-card__route {
  margin-top: 0.25rem;
  justify-self: start;
}

/* подсветка блока после перехода по #contacts — без JS */
#contacts:target .contact-card { animation: ping 1.8s var(--ease); }
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 65%, transparent); }
  100% { box-shadow: 0 0 0 1.25rem transparent; }
}

/* ---------- Подвал ---------- */
.site-footer {
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  background: var(--bg);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }

/* ---------- Страница услуги ---------- */
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.crumb:hover { color: var(--text); }

.page-head { padding-block: 1rem 2rem; }

.page-head h1 {
  margin-top: 1.25rem;
  padding-left: 1rem;
  border-left: 0.35rem solid var(--accent);
  font: 700 clamp(2rem, 5vw, 3.4rem) / 1.08 var(--ff-display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.gallery figure { overflow: hidden; border-radius: 1rem; background: var(--surface); }
.gallery picture, .gallery img { width: 100%; height: 100%; }
.gallery img { object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.gallery figure:not(:first-child) { aspect-ratio: 1; }

@media (min-width: 40rem) {
  .gallery {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: clamp(20rem, 44vw, 31rem);
  }
  .gallery figure:first-child { grid-column: 1; grid-row: 1 / 3; aspect-ratio: auto; }
  .gallery figure:not(:first-child) { aspect-ratio: auto; }
}

.details {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(2.5rem, 6vw, 4.5rem);
}
@media (min-width: 56rem) {
  .details { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .price-card { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

.lead { font-size: clamp(1.1rem, 1.7vw, 1.25rem); max-width: 40rem; }

.details h2 {
  font: 600 1.25rem / 1.2 var(--ff-display);
  letter-spacing: -0.01em;
}

.features { margin-top: 2.25rem; }
.features ul { display: grid; gap: 0.9rem; margin-top: 1.25rem; }
.features li { display: flex; align-items: center; gap: 0.9rem; }
.features .icon { color: var(--accent); width: 1.5rem; height: 1.5rem; }

.price-card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
}

.price-table { width: 100%; margin-top: 1rem; border-collapse: collapse; }
.price-table th,
.price-table td { padding: 0.8rem 0.5rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.price-table thead th { color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.price-table tbody th { font-weight: 600; }
.price-table td:last-child,
.price-table th:last-child { text-align: right; white-space: nowrap; }
.price-table td:last-child { color: var(--accent); font: 700 1.1rem var(--ff-display); }
.price-table tbody tr:last-child > * { border-bottom: 0; }

.price-card .btn { width: 100%; margin-top: 1.25rem; }
.price-card__alt { margin-top: 0.9rem; text-align: center; color: var(--muted); font-size: 0.95rem; }

.more { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.more h2 { font: 600 1.25rem/1.2 var(--ff-display); margin-bottom: 1rem; }
.more ul { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.more a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 0.3rem solid var(--accent);
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.2s var(--ease);
}
.more a:hover { background: var(--surface-2); transform: translateY(-2px); }

/* ---------- Диалог «Записаться» ---------- */
.dialog {
  width: min(28rem, calc(100% - 2rem));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
  color: var(--text);
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.25s, transform 0.25s var(--ease), overlay 0.25s allow-discrete, display 0.25s allow-discrete;
}
.dialog[open] { opacity: 1; transform: none; }
.dialog::backdrop {
  background: rgb(3 6 14 / 0);
  transition: background-color 0.25s, overlay 0.25s allow-discrete, display 0.25s allow-discrete;
}
.dialog[open]::backdrop { background: rgb(3 6 14 / 0.78); }

@starting-style {
  .dialog[open] { opacity: 0; transform: translateY(0.75rem); }
  .dialog[open]::backdrop { background: rgb(3 6 14 / 0); }
}

.dialog__inner { position: relative; display: grid; gap: 1.1rem; padding: 2rem 1.75rem 1.75rem; }
.dialog h2 { font: 600 1.35rem/1.2 var(--ff-display); padding-right: 2.5rem; }
.dialog p { color: var(--muted); }
.dialog__close {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: 0.75rem;
  background: transparent; color: var(--muted);
  cursor: pointer;
}
.dialog__close:hover { color: var(--text); background: var(--surface-2); }

/* ---------- Анимации ---------- */
@media (prefers-reduced-motion: no-preference) {

  /* Единственный «режиссированный» момент: появление героя.
     У h1 и карты нет opacity-анимации — LCP не откладывается. */
  .hero h1 { animation: rise-t 0.7s var(--ease) both; }
  .hero__lead { animation: rise 0.7s var(--ease) 0.15s both; }
  .hero__actions { animation: rise 0.7s var(--ease) 0.3s both; }
  .hero__map img { animation: settle 2.2s var(--ease) both; }

  @keyframes rise-t { from { transform: translateY(1rem); } }
  @keyframes rise { from { opacity: 0; transform: translateY(1rem); } }
  @keyframes settle { from { transform: scale(1.07); } }

  /* Скролл-эффекты на CSS: без JS и без нагрузки на главный поток */
  @supports (animation-timeline: scroll()) {
    .site-header {
      animation: header-in linear both;
      animation-timeline: scroll(root);
      animation-range: 0 5rem;
    }
    @keyframes header-in {
      from { background-color: rgb(6 12 24 / 0); border-bottom-color: transparent; }
    }

    .hero__map {
      animation: drift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 90vh;
    }
    @keyframes drift { to { transform: translateY(4.5rem); } }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .btn, .more a, .contact-card, .price-card { border: 1px solid CanvasText; }
}

/* ---------- Видео из Instagram на странице лазертага ---------- */
.reel-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
}
.reel-trigger::after {               /* затемнение под значком */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(4 8 18 / 0.7), transparent 55%);
  transition: opacity 0.3s;
}
.reel-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem 0.5rem 0.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.25s, transform 0.3s var(--ease);
}
.reel-badge .icon { width: 1.4rem; height: 1.4rem; fill: currentColor; }

/* На устройствах с мышью значок появляется при наведении; на телефонах виден всегда */
@media (hover: hover) {
  .reel-trigger::after { opacity: 0; }
  .reel-badge { opacity: 0; transform: translateY(0.5rem); }
  .reel-trigger:hover::after, .reel-trigger:focus-visible::after { opacity: 1; }
  .reel-trigger:hover .reel-badge,
  .reel-trigger:focus-visible .reel-badge { opacity: 1; transform: none; }
}
@media (max-width: 39.99rem) {
  .gallery figure:not(:first-child) .reel-badge__text { display: none; }
  .gallery figure:not(:first-child) .reel-badge { padding: 0.5rem; }
}

.dialog--reel { width: min(26rem, calc(100% - 1rem)); }
.reel-stage {
  position: relative;
  height: min(68svh, 42rem);
  border-radius: 0.75rem;
  background: var(--bg);
  overflow: hidden;
}
.reel-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.reel-tabs ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.reel-tabs a {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
}
.reel-tabs a[aria-current="true"] { background: var(--accent); color: var(--on-accent); border-color: transparent; font-weight: 600; }

.reel-nav { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.reel-tabs ul { justify-content: center; }
.reel-arrow {
  display: grid; place-items: center;
  flex: none;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.reel-arrow:hover { border-color: var(--accent); background: var(--surface-2); }
.reel-arrow--next .icon { transform: rotate(180deg); }

/* ---------- Лазертаг: переключатель «Арендный / Спортивный» ----------
   Работает на радиокнопках: без JS, с клавиатуры (стрелки) и на телефоне.
   У каждого вида свой цвет: арендный — розовый, спортивный — янтарный. */
:root { --sport: #ffb347; }

.kinds { --accent: var(--laser); padding-top: 0.5rem; }
.kinds:has(#t-sport:checked) { --accent: var(--sport); }

.seg {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 26rem);
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.seg label {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 2.9rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s;
}
.seg label:hover { color: var(--text); }
.seg__thumb {
  position: absolute;
  z-index: 0;
  top: 0.3rem;
  bottom: 0.3rem;
  left: 0.3rem;
  width: calc(50% - 0.3rem);
  border-radius: 999px;
  background: var(--accent);
  transition: transform 0.45s var(--ease), background-color 0.3s;
}
#t-sport:checked ~ .seg .seg__thumb { transform: translateX(100%); }
#t-rental:checked ~ .seg label[for="t-rental"],
#t-sport:checked ~ .seg label[for="t-sport"] { color: var(--on-accent); }
#t-rental:focus-visible ~ .seg label[for="t-rental"],
#t-sport:focus-visible ~ .seg label[for="t-sport"] { outline: 3px solid var(--text); outline-offset: 2px; }

.kind-panels { overflow-x: clip; }
.kind-panels .kind { display: none; padding-top: clamp(1.75rem, 4vw, 2.75rem); }
#t-rental:checked ~ .kind-panels #rental,
#t-sport:checked ~ .kind-panels #sport { display: block; }
#sport { --accent: var(--sport); }
#rental { --accent: var(--laser); }

.kind-title {
  margin-bottom: 1.25rem;
  padding-left: 0.9rem;
  border-left: 0.3rem solid var(--accent);
  font: 700 clamp(1.4rem, 3.2vw, 2.2rem) / 1.15 var(--ff-display);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

@media (prefers-reduced-motion: no-preference) {
  /* Анимация появления — только после первого переключения, чтобы не задерживать загрузку страницы */
  .kinds.is-interacted #t-rental:checked ~ .kind-panels #rental { animation: kind-in-l 0.5s var(--ease); }
  .kinds.is-interacted #t-sport:checked ~ .kind-panels #sport { animation: kind-in-r 0.5s var(--ease); }
  @keyframes kind-in-l { from { opacity: 0; transform: translateX(-1.5rem); } }
  @keyframes kind-in-r { from { opacity: 0; transform: translateX(1.5rem); } }
}

/* ---------- Таблица цен: пояснения, выезд, адрес ---------- */
.price-table th small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
}
.price-table .is-trip { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.trip-tag { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--accent); font-weight: 700; }
.trip-tag .icon { width: 1.15em; height: 1.15em; }

.price-card__address {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.price-card__address .icon { margin-top: 0.2rem; color: var(--accent); }

/* ---------- Плашка «Выезд» на карточках главной ---------- */
.panel__trip {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgb(4 8 18 / 0.78);
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
}
.panel__trip .icon { color: var(--accent); width: 1.1em; height: 1.1em; }
.panel p { max-width: 34ch; }

/* ---------- Адаптация под телефоны ---------- */
a, button, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* вырез экрана (iPhone) и скруглённые углы */
.wrap {
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.site-header { padding-top: env(safe-area-inset-top); }
.site-footer { padding-bottom: calc(1.25rem + env(safe-area-inset-bottom)); }

/* кликабельные элементы не меньше 44 px */
.site-nav a:not(.btn):not(.nav-secondary) { display: inline-flex; }
.site-nav a:not(.btn) { align-items: center; min-height: 2.75rem; padding-block: 0; }
.site-nav .btn { min-height: 2.75rem; }
.crumb { min-height: 2.75rem; }
.logo { display: inline-flex; align-items: center; min-height: 2.75rem; }
.contact-row a:not(.btn) { display: inline-flex; align-items: center; min-height: 2.75rem; margin-block: -0.4rem; }

.dialog { max-height: calc(100svh - 1rem); overflow-y: auto; overscroll-behavior: contain; }
.reel-stage { height: min(62svh, 42rem); }

@media (max-width: 39.99rem) {
  body { font-size: 1rem; }
  .hero__actions .btn { flex: 1 1 auto; }
  .contact-card { padding: 1.25rem; }
  .price-card { padding: 1.1rem; }
  .price-table th, .price-table td { padding-inline: 0.25rem; }
  .price-table td:last-child { font-size: 1rem; }
  .panel { min-height: 20rem; }
  .panel__body { padding: 1.25rem; }
  .seg { width: 100%; }
}

@media (max-width: 22.5rem) {          /* совсем узкие экраны (320 px) */
  .logo { font-size: 1rem; }
  .hero h1 { font-size: 1.75rem; }
  .site-nav { gap: 0.5rem; }
  .price-table td:last-child { font-size: 0.95rem; }
}

@media (max-height: 30rem) and (orientation: landscape) {   /* телефон лежа */
  .hero { min-height: 0; padding-block: 2rem; }
  .reel-stage { height: 70svh; }
}

/* длинные почта и адрес не должны раздвигать вёрстку на узких экранах */
.contacts__grid > *, .contact-row > * { min-width: 0; }
.contact-row a, .contact-row span, .price-card__address span { overflow-wrap: anywhere; }

/* кнопки-ссылки на истории Instagram (открываются в новой вкладке) и пояснение в окне */
.reel-ext { gap: 0.35rem; }
.reel-ext .icon { width: 1em; height: 1em; }
.dialog__note { color: var(--muted); }
