
/* Оформление поверх действующего сайта. Логику site.js не меняет. */

@font-face {
  font-family: "CosmosBank";
  src: url("/fonts/Bank_Gothic.ttf") format("truetype");
  font-display: swap;
  font-weight: 500;
}

:root {
  color-scheme: dark;
  --cosmos-bg: #07080f;
  --cosmos-panel: #10121f;
  --cosmos-text: #f4f6ff;
  --cosmos-muted: #b4bbd0;
  --cosmos-cyan: #2bdfff;
  --cosmos-violet: #c534fe;
  --cosmos-yellow: #eef525;
  --cosmos-green: #64ff48;
  --cosmos-line: rgba(105, 159, 204, .24);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: var(--cosmos-text);
  background:
    radial-gradient(ellipse at 8% 8%, rgba(43, 223, 255, .07), transparent 35%),
    radial-gradient(ellipse at 95% 35%, rgba(197, 52, 254, .08), transparent 36%),
    var(--cosmos-bg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

body [hidden] {
  display: none !important;
}

a {
  color: var(--cosmos-cyan);
  text-underline-offset: 4px;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--cosmos-yellow);
  outline-offset: 5px;
}

h1,
h2,
h3 {
  color: var(--cosmos-text);
  line-height: 1.15;
  letter-spacing: -.025em;
}

h1,
h2 {
  font-family: "CosmosBank", Arial, sans-serif;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.7rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

h3 {
  font-size: 1.35rem;
}

h1 em,
h2 em {
  color: var(--cosmos-cyan);
  font-style: normal;
  text-shadow: 0 0 24px rgba(43, 223, 255, .3);
}

main,
body > footer {
  width: min(1240px, calc(100% - 48px));
  max-width: none;
  margin-inline: auto;
}

body > header.top {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 15px max(24px, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: white;
  background: rgba(7, 8, 15, .96);
  border-bottom: 1px solid rgba(43, 223, 255, .2);
  box-shadow: 0 5px 30px rgba(0, 0, 0, .25);
  backdrop-filter: blur(14px);
}

.top .brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: white;
  text-decoration: none;
}

.cosmos-logo {
  display: block;
  width: 220px;
  height: auto;
  max-height: 62px;
  object-fit: contain;
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.top nav a {
  color: #e9ecf7;
  text-decoration: none;
  font-size: .94rem;
}

.top nav a:hover {
  color: var(--cosmos-cyan);
  text-shadow: 0 0 14px rgba(43, 223, 255, .5);
}

.top .phone {
  color: var(--cosmos-cyan);
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  text-shadow: 0 0 14px rgba(43, 223, 255, .35);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 44px;
  padding: 65px 0 45px;
  min-height: auto;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 15px 0 24px;
}

.eyebrow {
  color: var(--cosmos-cyan);
  font-size: .74rem;
  letter-spacing: .16em;
  font-weight: 700;
}

.lead,
.hero .lead {
  color: var(--cosmos-muted);
  font-size: 1.08rem;
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.primary,
a.primary,
button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 52px;
  padding: 14px 23px;
  color: #fff;
  background: linear-gradient(135deg, #096275, #143047);
  border: 1px solid #9af0ff;
  border-radius: 12px;
  box-shadow:
    0 0 18px rgba(43, 223, 255, .22),
    inset 0 0 18px rgba(43, 223, 255, .13);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow .2s, border-color .2s, background .2s;
}

.primary:hover:not(:disabled) {
  color: white;
  border-color: white;
  background: linear-gradient(135deg, #087b91, #19415c);
  box-shadow:
    0 0 28px rgba(43, 223, 255, .35),
    inset 0 0 20px rgba(43, 223, 255, .2);
}

.primary:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}

.full {
  width: 100%;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--cosmos-line);
}

.proof > span {
  display: flex;
  flex-direction: column;
}

.proof b {
  color: white;
  font-size: 1.2rem;
}

.proof small {
  color: var(--cosmos-muted);
}

.hero-art.cosmos-banner {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  min-height: 0;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(43, 223, 255, .6);
  border-radius: 24px;
  background: #0d1322;
  box-shadow:
    0 0 28px rgba(43, 223, 255, .16),
    12px 12px 45px rgba(197, 52, 254, .13);
}

.cosmos-banner picture,
.cosmos-banner img {
  display: block;
  width: 100%;
  height: 100%;
}

.cosmos-banner img {
  object-fit: cover;
  object-position: center;
}

.cosmos-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(7, 8, 15, .85), transparent 60%);
}

.cosmos-banner-label {
  position: absolute;
  z-index: 1;
  bottom: 25px;
  left: 25px;
  right: 25px;
  color: white;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  text-shadow: 0 2px 12px #000;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 15px 0 45px;
}

.benefits > div {
  display: grid;
  gap: 8px;
  padding: 24px;
  background: rgba(16, 18, 31, .85);
  border: 1px solid var(--cosmos-line);
  border-radius: 16px;
}

.benefits strong {
  color: var(--cosmos-cyan);
  font-size: .8rem;
  letter-spacing: .1em;
}

.benefits b {
  font-size: 1.05rem;
}

.benefits span {
  color: var(--cosmos-muted);
  font-size: .94rem;
}

.section,
.cosmos-section {
  padding: 42px 0;
}

.section-head {
  display: block;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 12px 0 18px;
}

.section-head > p:last-child {
  color: var(--cosmos-muted);
  max-width: 700px;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* Карточки остаются созданными действующим site.js. */
.program-grid > * {
  min-width: 0;
  color: var(--cosmos-text);
  background: linear-gradient(145deg, #141625, #0b0d17);
  border: 1px solid rgba(197, 52, 254, .35);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 0 20px rgba(197, 52, 254, .06);
}

.program-grid > *:nth-child(3n + 2) {
  border-color: rgba(238, 245, 37, .4);
}

.program-grid > *:nth-child(3n) {
  border-color: rgba(43, 223, 255, .4);
}

.program-grid h3 {
  color: white;
}

.program-grid p,
.program-grid small {
  color: var(--cosmos-muted);
}

.program-grid .loading {
  grid-column: 1 / -1;
}

.cosmos-section-title {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 18px;
  padding: 14px 24px;
  color: white;
  border: 1px solid rgba(43, 223, 255, .65);
  border-radius: 14px;
  background:
    linear-gradient(#0b0d17, #0b0d17) padding-box,
    linear-gradient(110deg, #2bdfff, #c534fe, #eef525) border-box;
  border: 2px solid transparent;
  box-shadow: 0 0 24px rgba(43, 223, 255, .12);
  text-align: center;
  font-family: "CosmosBank", Arial, sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-transform: uppercase;
}

.cosmos-section-note {
  max-width: 780px;
  margin: 0 auto 28px;
  text-align: center;
  color: var(--cosmos-muted);
}

.cosmos-details {
  margin-bottom: 16px;
  background: linear-gradient(135deg, #111421, #0b0d17);
  border: 1px solid rgba(43, 223, 255, .25);
  border-radius: 16px;
  overflow: hidden;
}

.cosmos-details[open] {
  border-color: rgba(43, 223, 255, .55);
  box-shadow: 0 0 24px rgba(43, 223, 255, .07);
}

.cosmos-details summary {
  position: relative;
  padding: 20px 55px 20px 24px;
  color: white;
  cursor: pointer;
  list-style: none;
  font-size: 1.1rem;
  font-weight: 700;
}

.cosmos-details summary::-webkit-details-marker {
  display: none;
}

.cosmos-details summary::after {
  content: "+";
  position: absolute;
  right: 23px;
  top: 15px;
  color: var(--cosmos-cyan);
  font-size: 1.6rem;
}

.cosmos-details[open] summary::after {
  content: "−";
}

.cosmos-description-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  padding: 5px 24px 28px;
  align-items: start;
}

.cosmos-description-layout ul {
  margin: 0 0 22px;
  padding-left: 21px;
  color: #d3d8e9;
}

.cosmos-description-layout li {
  padding-left: 4px;
  margin-bottom: 10px;
}

.cosmos-description-layout li::marker {
  color: var(--cosmos-cyan);
}

.cosmos-description-layout p {
  color: #d3d8e9;
}

.cosmos-description-layout b {
  color: white;
}

.cosmos-program-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(43, 223, 255, .5);
  box-shadow: 0 0 18px rgba(43, 223, 255, .12);
}

.cosmos-program-label {
  display: inline-block;
  padding: 8px 16px;
  margin: 5px 0 18px;
  border: 1px solid var(--cosmos-yellow);
  border-radius: 10px;
  color: white;
  box-shadow: 0 0 15px rgba(238, 245, 37, .1);
  font-weight: 700;
}

.cosmos-program-label.violet {
  border-color: var(--cosmos-violet);
}

.cosmos-program-label.red {
  border-color: #ff5757;
}

.cosmos-program-footnote {
  color: var(--cosmos-muted);
  font-size: .9rem;
}

.cosmos-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cosmos-gallery a {
  display: block;
  border: 1px solid rgba(43, 223, 255, .3);
  border-radius: 14px;
  overflow: hidden;
  background: #111421;
}

.cosmos-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .25s;
}

.cosmos-gallery a:hover img {
  transform: scale(1.035);
}

.booking-section {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: start;
  gap: 45px;
  padding: 65px 0;
  border-top: 1px solid var(--cosmos-line);
}

.booking-intro {
  position: sticky;
  top: 115px;
}

.booking-intro h2 {
  margin: 15px 0 24px;
}

.booking-intro > p:not(.eyebrow) {
  color: var(--cosmos-muted);
}

.side-note {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 18px;
  margin-top: 28px;
  background: rgba(197, 52, 254, .06);
  border: 1px solid rgba(197, 52, 254, .25);
  border-radius: 14px;
}

.side-note > span {
  color: var(--cosmos-violet);
  font-size: 1.6rem;
}

.side-note p {
  margin: 0;
  font-size: .95rem;
}

.wizard {
  min-width: 0;
  padding: 30px;
  color: var(--cosmos-text);
  background: linear-gradient(145deg, #141726, #0c0e18);
  border: 1px solid rgba(43, 223, 255, .4);
  border-radius: 22px;
  box-shadow: 0 0 35px rgba(43, 223, 255, .07);
}

.steps {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--cosmos-line);
}

.steps > span {
  color: var(--cosmos-muted);
  font-size: .85rem;
}

.steps i {
  font-style: normal;
  margin-left: 5px;
}

.steps > .active {
  color: var(--cosmos-cyan);
  text-shadow: 0 0 15px rgba(43, 223, 255, .3);
}

.wizard h3 {
  margin-top: 0;
  margin-bottom: 20px;
}

.wizard h3.subhead {
  font-family: inherit;
  font-size: 1.2rem;
  text-align: left;
  margin-top: 28px;
}

.wizard .fields.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wizard label:not(.consent) {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  color: #dce1f1;
  font-size: .94rem;
}

.wizard input:not([type="checkbox"]),
.wizard select,
.wizard textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 12px 14px;
  color: #fff;
  background: #090c16;
  border: 1px solid #343e58;
  border-radius: 10px;
  outline: none;
  font-size: 16px;
}

.wizard input:focus,
.wizard select:focus,
.wizard textarea:focus {
  border-color: var(--cosmos-cyan);
  box-shadow: 0 0 0 3px rgba(43, 223, 255, .1);
}

.wizard input::placeholder {
  color: #8892aa;
}

.wizard input[type="date"] {
  color-scheme: dark;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice-grid button,
.pills button,
.slots button,
.extras button {
  min-width: 0;
  min-height: 46px;
  padding: 12px 14px;
  color: #e3e8f6;
  background: #0c1020;
  border: 1px solid #343e58;
  border-radius: 11px;
  white-space: normal;
  cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .2s;
}

.choice-grid button {
  text-align: left;
}

.choice-grid button > *,
.extras button > * {
  color: inherit;
}

.choice-grid button:hover,
.pills button:hover,
.slots button:hover,
.extras button:hover {
  border-color: var(--cosmos-cyan);
}

.choice-grid .selected,
.choice-grid .active,
.choice-grid [aria-pressed="true"],
.pills .selected,
.pills .active,
.pills [aria-pressed="true"],
.slots .selected,
.slots .active,
.slots [aria-pressed="true"],
.extras .selected,
.extras .active,
.extras [aria-pressed="true"] {
  color: white;
  background: rgba(43, 223, 255, .12);
  border-color: var(--cosmos-cyan);
  box-shadow: inset 0 0 18px rgba(43, 223, 255, .07);
}

.pills,
.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.slots button {
  min-width: 84px;
}

.slots button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.extras {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.extras label {
  padding: 14px;
  border: 1px solid #343e58;
  border-radius: 11px;
  background: #0c1020;
  cursor: pointer;
}

.extras label:has(input:checked) {
  border-color: var(--cosmos-cyan);
  background: rgba(43, 223, 255, .1);
}

.extras input[type="checkbox"],
.consent input[type="checkbox"] {
  accent-color: var(--cosmos-cyan);
}

.hydro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding: 17px;
  border: 1px solid rgba(197, 52, 254, .4);
  border-radius: 12px;
  background: rgba(197, 52, 254, .06);
}

.hydro b,
.hydro span {
  display: block;
}

.hydro span {
  color: var(--cosmos-muted);
  font-size: .85rem;
}

.hydro button {
  flex-shrink: 0;
  min-width: 76px;
  min-height: 44px;
  color: white;
  background: #21132d;
  border: 1px solid var(--cosmos-violet);
  border-radius: 9px;
  cursor: pointer;
}

.hydro button[aria-pressed="true"] {
  background: #6b1d8a;
  box-shadow: 0 0 15px rgba(197, 52, 254, .2);
}

.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0 0 18px;
  padding: 0;
  color: var(--cosmos-cyan);
  background: none;
  border: 0;
  cursor: pointer;
}

.muted,
.wizard .muted {
  color: var(--cosmos-muted);
}

.total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  margin: 24px 0;
  background: rgba(238, 245, 37, .04);
  border: 1px solid rgba(238, 245, 37, .55);
  border-radius: 12px;
}

.total strong {
  color: var(--cosmos-yellow);
  font-size: 1.8rem;
  text-shadow: 0 0 18px rgba(238, 245, 37, .15);
}

#toContacts {
  margin-top: 20px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 18px 0 25px;
  color: var(--cosmos-muted);
  font-size: .85rem;
}

.consent input {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  margin-top: 4px;
}

.error {
  padding: 14px 16px;
  margin-bottom: 20px;
  color: #ffd5d5;
  background: rgba(255, 70, 70, .1);
  border: 1px solid rgba(255, 90, 90, .4);
  border-radius: 10px;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
  color: var(--cosmos-green);
  border: 1px solid var(--cosmos-green);
  border-radius: 50%;
  font-size: 2rem;
  box-shadow: 0 0 22px rgba(100, 255, 72, .12);
}

.payment {
  margin: 25px 0;
  padding: 20px;
  color: #e6eadb;
  background: rgba(238, 245, 37, .04);
  border: 1px solid rgba(238, 245, 37, .35);
  border-radius: 12px;
}

.payment strong {
  color: var(--cosmos-yellow);
}

.payment small {
  color: var(--cosmos-muted);
}

.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 50px 0;
  border-top: 1px solid var(--cosmos-line);
}

.contacts h2 {
  margin: 12px 0 24px;
}

.contacts p {
  color: var(--cosmos-muted);
}

.contact-links {
  display: grid;
  align-content: center;
  gap: 14px;
}

.contact-links a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px;
  background: #10131f;
  border: 1px solid var(--cosmos-line);
  border-radius: 12px;
  text-decoration: none;
}

.contact-links a:hover {
  border-color: var(--cosmos-cyan);
}

.contact-links small {
  color: var(--cosmos-muted);
}

.contact-links b {
  color: var(--cosmos-cyan);
}

body > footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
  padding: 25px 0 35px;
  color: #929cb4;
  border-top: 1px solid var(--cosmos-line);
  font-size: .8rem;
}

@media (max-width: 1050px) {
  body > header.top {
    gap: 16px;
  }

  .top nav {
    gap: 15px;
  }

  .cosmos-logo {
    width: 180px;
  }

  .top .phone {
    font-size: .85rem;
  }

  .hero {
    gap: 28px;
  }

  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-section {
    grid-template-columns: .75fr 1.25fr;
    gap: 25px;
  }

  .wizard {
    padding: 24px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 140px;
  }

  main,
  body > footer {
    width: calc(100% - 32px);
  }

  body > header.top {
    position: sticky;
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 12px;
  }

  .cosmos-logo {
    width: 155px;
  }

  .top nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    padding-top: 9px;
    border-top: 1px solid var(--cosmos-line);
  }

  .top nav a {
    font-size: .85rem;
  }

  .top .phone {
    margin-left: auto;
    font-size: .8rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 35px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 9vw, 3.3rem);
  }

  .hero-art.cosmos-banner {
    aspect-ratio: 16 / 10;
    border-radius: 17px;
  }

  .hero .primary {
    width: 100%;
  }

  .proof {
    justify-content: space-between;
    gap: 12px;
  }

  .proof b {
    font-size: 1rem;
  }

  .proof small {
    font-size: .75rem;
  }

  .benefits {
    grid-template-columns: 1fr;
    padding-bottom: 20px;
  }

  .benefits > div {
    padding: 18px 20px;
  }

  .program-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .cosmos-section {
    padding: 30px 0;
  }

  .cosmos-description-layout {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 0 18px 22px;
  }

  .cosmos-details summary {
    padding-left: 18px;
    font-size: 1rem;
  }

  .cosmos-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .booking-section {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 40px 0;
  }

  .booking-intro {
    position: static;
  }

  .wizard {
    padding: 20px 16px;
    border-radius: 17px;
  }

  .steps {
    gap: 8px;
  }

  .steps > span {
    font-size: .77rem;
  }

  .steps i {
    margin-left: 2px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .hydro {
    padding: 14px;
    gap: 10px;
  }

  .total {
    padding: 16px;
  }

  .total strong {
    font-size: 1.6rem;
  }

  .contacts {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 35px 0;
  }
}

@media (max-width: 370px) {
  .cosmos-logo {
    width: 132px;
  }

  .top .phone {
    font-size: .72rem;
  }

  .wizard .fields.two {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .steps i {
    display: block;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.cosmos-banner img {
  object-position: right center;
}


/* ==========================================
   Размер текста и адаптация сайта
   ========================================== */

/* Размеры в rem: 18 px на компьютере, 16 px на телефоне. */
html {
  font-size: 112.5%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-size: 1rem;
  line-height: 1.65;
}

/* Не даём содержимому растягивать колонки. */
.hero > *,
.benefits > *,
.booking-section > *,
.contacts > *,
.cosmos-description-layout > *,
.wizard label {
  min-width: 0;
}

/* В site.css у шапки задана фиксированная высота. */
body > header.top {
  height: auto;
  min-height: 80px;
}

.top nav a,
.top .phone {
  font-size: .94rem;
}

.top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Переопределяем более специфичные заголовки из site.css. */
.hero h1 {
  font-family: "CosmosBank", Arial, sans-serif;
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.section h2,
.booking-intro h2,
.contacts h2 {
  font-family: "CosmosBank", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.16;
  letter-spacing: -.025em;
}

.hero h1 em,
.section h2 em,
.booking-intro h2 em,
.contacts h2 em {
  color: var(--cosmos-cyan);
}

.eyebrow {
  font-size: .78rem;
  line-height: 1.6;
}

.lead,
.hero .lead {
  font-size: 1.08rem;
  line-height: 1.75;
}

.benefits span,
.cosmos-section-note,
.cosmos-description-layout,
.booking-intro > p:not(.eyebrow),
.contacts p {
  font-size: 1rem;
}

.proof small,
.side-note p {
  font-size: .9rem;
}

/* Убираем оставшуюся двухколоночную раскладку внутри преимуществ. */
.benefits > div {
  grid-template-columns: minmax(0, 1fr);
}

.benefits strong {
  grid-row: auto;
}

/* Карточки, которые создаёт site.js. */
.program-grid .program h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  line-height: 1.3;
}

.program-grid .program p {
  font-size: .94rem;
  line-height: 1.65;
}

.program-grid .program .num {
  font-size: .8rem;
}

.program-grid .program .price {
  padding-top: 18px;
  font-size: .94rem;
}

.program-grid small,
.cosmos-program-footnote {
  font-size: .88rem;
}

/* Форма бронирования. */
.wizard h3,
.wizard .step h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  line-height: 1.3;
}

.wizard h3.subhead {
  font-size: 1.15rem !important;
}

.wizard label:not(.consent) {
  font-size: .94rem;
}

.wizard input:not([type="checkbox"]),
.wizard select,
.wizard textarea {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

.steps > span,
.steps i {
  font-family: inherit;
  font-size: .88rem;
  line-height: 1.4;
}

.choice-grid button,
.pills button,
.slots button,
.extras button,
.hydro button,
.back {
  font-family: inherit;
  font-size: .94rem;
  line-height: 1.45;
}

.choice-grid button small,
.extras button span,
.hydro span {
  font-size: .85rem;
  line-height: 1.55;
}

.extras button b,
.extras button strong {
  font-size: .94rem;
}

.wizard .muted,
.wizard .error,
.wizard .consent,
.wizard .payment,
.wizard .success p {
  font-size: .9rem;
  line-height: 1.65;
}

.wizard .payment strong {
  font-size: 1.05rem;
}

.wizard .payment small {
  font-size: .85rem;
}

/* Не оставляем старые светлые цвета у дополнительных услуг. */
.wizard .extras button.selected {
  color: var(--cosmos-text);
  background: rgba(43, 223, 255, .12);
  border-color: var(--cosmos-cyan);
}

.wizard .extras button > * {
  color: inherit;
}

/* site.js переключает класс .on, а не aria-pressed. */
.wizard .hydro button.on {
  color: #fff;
  background: #6b1d8a;
  border-color: var(--cosmos-violet);
  box-shadow: 0 0 15px rgba(197, 52, 254, .2);
}

/* В исходном site.css у контактов остались две колонки. */
.contacts .contact-links {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  background: transparent;
}

.contact-links a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-links small,
body > footer {
  font-size: .85rem;
}

.contact-links b {
  font-size: 1rem;
}

.primary,
a.primary,
button.primary {
  white-space: normal;
  text-align: center;
  line-height: 1.45;
}

.primary > b {
  flex-shrink: 0;
}

/* Планшеты и небольшие ноутбуки. */
@media (min-width: 761px) and (max-width: 1050px) {
  body > header.top {
    flex-wrap: wrap;
    gap: 8px 20px;
  }

  .top .phone {
    margin-left: auto;
  }

  .top nav {
    display: flex;
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  html {
    scroll-padding-top: 160px;
  }

  .hero,
  .booking-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-art.cosmos-banner {
    aspect-ratio: 16 / 9;
  }

  .booking-intro {
    position: static;
  }

  .booking-intro p:not(.eyebrow) {
    max-width: 700px;
  }

  .benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ==========================================
   Телефоны
   ========================================== */

@media (max-width: 760px) {
  html {
    font-size: 100%;
    scroll-padding-top: 155px;
  }

  main,
  body > footer {
    width: calc(100% - 32px);
  }

  /* Логотип и телефон сверху, навигация отдельной строкой. */
  body > header.top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 10px;

    height: auto;
    min-height: 0;
    padding: 10px 16px;
  }

  .top .brand {
    min-width: 0;
  }

  .cosmos-logo {
    width: clamp(120px, 30vw, 155px);
    max-width: 100%;
  }

  .top .phone {
    justify-self: end;
    margin-left: 0;
    font-size: clamp(.78rem, 3.1vw, .94rem);
    letter-spacing: 0;
  }

  .top nav {
    display: flex;
    grid-column: 1 / -1;
    order: initial;

    width: 100%;
    margin: 0;
    padding-top: 4px;

    gap: 4px;
    justify-content: space-between;
    border-top: 1px solid var(--cosmos-line);
  }

  .top nav a {
    justify-content: center;
    min-height: 44px;
    padding: 4px 2px;
    font-size: .85rem;
  }

  .hero,
  .section,
  .booking-section,
  .contacts {
    padding-left: 0;
    padding-right: 0;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 30px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8.6vw, 3.3rem);
    line-height: 1.15;
    margin: 14px 0 20px;
  }

  .section h2,
  .booking-intro h2,
  .contacts h2 {
    font-size: clamp(1.8rem, 7.3vw, 2.6rem);
    line-height: 1.2;
  }

  .eyebrow {
    font-size: .73rem;
    letter-spacing: .1em;
  }

  .lead,
  .hero .lead {
    font-size: 1rem;
    line-height: 1.75;
  }

  .hero-art.cosmos-banner {
    aspect-ratio: 16 / 10;
    border-radius: 16px;
  }

  .cosmos-banner-label {
    left: 16px;
    right: 16px;
    bottom: 16px;
    font-size: 1rem;
    line-height: 1.4;
  }

  .primary,
  a.primary,
  button.primary {
    min-height: 52px;
    max-width: 100%;
    gap: 12px;
    padding: 13px 16px;
    font-size: 1rem;
  }

  .hero .primary,
  .cosmos-description-layout .primary {
    width: 100%;
  }

  .proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
  }

  .proof b {
    font-size: 1.08rem;
  }

  .proof small {
    font-size: .8rem;
  }

  .benefits,
  .program-grid,
  .booking-section,
  .contacts,
  .cosmos-description-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .benefits > div,
  .program-grid > * {
    padding: 20px;
  }

  .program-grid .program h3 {
    margin-top: 18px;
    font-size: 1.25rem;
  }

  .section,
  .cosmos-section {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .cosmos-section-title {
    padding: 12px 16px;
    font-size: clamp(1.2rem, 5vw, 1.7rem);
    line-height: 1.35;
  }

  .cosmos-details summary {
    padding: 18px 46px 18px 16px;
    font-size: 1rem;
    line-height: 1.5;
  }

  .cosmos-details summary::after {
    right: 16px;
    top: 13px;
  }

  .cosmos-description-layout {
    padding: 0 16px 20px;
    gap: 20px;
    font-size: 1rem;
  }

  .cosmos-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .booking-section {
    padding-top: 32px;
    padding-bottom: 32px;
    gap: 24px;
  }

  .booking-intro {
    position: static;
  }

  .booking-intro p:not(.eyebrow) {
    max-width: none;
  }

  .wizard {
    min-height: 0;
    padding: 20px 16px;
  }

  .steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .steps > span {
    font-size: .85rem;
  }

  .steps i {
    display: block;
    margin: 4px 0 0;
    font-size: .8rem;
  }

  .wizard .fields.two,
  .wizard .choice-grid,
  .wizard .extras {
    grid-template-columns: minmax(0, 1fr);
  }

  .wizard .fields.two {
    gap: 0;
  }

  .wizard input:not([type="checkbox"]),
  .wizard select,
  .wizard textarea {
    /* Не меньше 16 px: без автозума при вводе на iPhone. */
    font-size: 1rem;
    min-height: 50px;
    max-width: 100%;
  }

  .wizard input[type="date"] {
    min-width: 0;
    width: 100%;
  }

  .wizard .choice-grid button,
  .wizard .extras button,
  .wizard .pills button,
  .wizard .slots button {
    min-height: 48px;
    overflow-wrap: anywhere;
  }

  .wizard .slots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .wizard .slots button {
    min-width: 0;
    padding: 12px 6px;
  }

  .hydro {
    flex-wrap: wrap;
    padding: 14px;
  }

  .hydro > div {
    flex: 1 1 160px;
    min-width: 0;
  }

  .hydro button {
    min-height: 44px;
  }

  .wizard .consent input {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin: 2px 0 0;
  }

  .wizard .payment {
    padding: 16px;
    overflow-wrap: anywhere;
  }

  .contacts .contact-links {
    margin-top: 0;
  }

  .contact-links a {
    padding: 18px;
  }

  body > footer {
    flex-direction: column;
    gap: 8px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    font-size: .8rem;
  }
}

/* Узкие экраны. */
@media (max-width: 360px) {
  main,
  body > footer {
    width: calc(100% - 24px);
  }

  body > header.top {
    padding-inline: 12px;
  }

  .wizard {
    padding-inline: 12px;
  }

  .cosmos-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .wizard .slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ==========================================
   Акценты программ
   ========================================== */

#programGrid > .program-accent {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding-top: 66px;
  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}

/* Метка в правом верхнем углу карточки */
#programGrid > .program-accent::before {
  position: absolute;
  top: 18px;
  right: 18px;

  display: inline-block;
  max-width: calc(100% - 90px);
  padding: 5px 10px;

  border: 1px solid;
  border-radius: 8px;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;

  pointer-events: none;
}

/* Дни рождения — общая группа */
#programGrid > .program-birthday {
  --birthday-accent: #d77cff;

  background:
    radial-gradient(
      ellipse at 100% 0%,
      rgba(197, 52, 254, .17),
      transparent 68%
    ),
    linear-gradient(145deg, #181326, #0c0e19);

  border: 1px solid var(--birthday-accent);

  box-shadow:
    inset 0 3px 0 var(--birthday-accent),
    0 0 22px rgba(197, 52, 254, .09);
}

#programGrid > .program-birthday::before {
  content: "День рождения";

  color: #f4d5ff;
  background: rgba(197, 52, 254, .13);
  border-color: rgba(215, 124, 255, .45);
}

#programGrid > .program-birthday h3 {
  color: var(--birthday-accent);
  text-shadow: 0 0 20px rgba(197, 52, 254, .2);
}

/* Различаем три пакета внутри одной группы */
#programGrid > .program-birthday-mini {
  --birthday-accent: #d69bff;
}

#programGrid > .program-birthday-standard {
  --birthday-accent: #ff99da;

  background:
    radial-gradient(
      ellipse at 100% 0%,
      rgba(255, 93, 186, .17),
      transparent 68%
    ),
    linear-gradient(145deg, #1b1325, #0c0e19);
}

#programGrid > .program-birthday-maxi {
  --birthday-accent: #ffd18b;

  background:
    radial-gradient(
      ellipse at 100% 0%,
      rgba(255, 182, 83, .14),
      transparent 65%
    ),
    radial-gradient(
      ellipse at 0% 100%,
      rgba(197, 52, 254, .13),
      transparent 65%
    ),
    #10101c;
}

/* Новый год — золото, хвоя и снежные точки */
#programGrid > .program-newyear {
  background:
    radial-gradient(
      circle at 88% 28%,
      rgba(255, 255, 255, .8) 0 1px,
      transparent 2px
    ),
    radial-gradient(
      circle at 76% 49%,
      rgba(255, 255, 255, .55) 0 1px,
      transparent 2px
    ),
    radial-gradient(
      circle at 93% 69%,
      rgba(255, 223, 160, .7) 0 1.5px,
      transparent 2.5px
    ),
    radial-gradient(
      ellipse at 100% 0%,
      rgba(39, 168, 113, .23),
      transparent 70%
    ),
    linear-gradient(145deg, #10261f, #0a1317);

  border: 1px solid #dfbd72;

  box-shadow:
    inset 0 3px 0 #dfbd72,
    0 0 25px rgba(223, 189, 114, .1);
}

#programGrid > .program-newyear::before {
  content: "❄ Новогодняя программа";

  color: #ffe7af;
  background: rgba(223, 189, 114, .1);
  border-color: rgba(223, 189, 114, .5);
}

#programGrid > .program-newyear h3 {
  color: #ffe3a2;
  text-shadow: 0 0 20px rgba(223, 189, 114, .18);
}

#programGrid > .program-newyear a:not(.primary) {
  color: #ffe3a2;
}

/* Корпоратив — космическое оформление */
#programGrid > .program-orbit {
  background:
    radial-gradient(
      circle at 86% 32%,
      rgba(220, 235, 255, .85) 0 1px,
      transparent 2px
    ),
    radial-gradient(
      circle at 95% 57%,
      rgba(220, 235, 255, .6) 0 1px,
      transparent 2px
    ),
    radial-gradient(
      ellipse at 100% 0%,
      rgba(99, 82, 245, .25),
      transparent 65%
    ),
    radial-gradient(
      ellipse at 0% 100%,
      rgba(43, 223, 255, .1),
      transparent 65%
    ),
    linear-gradient(145deg, #111a30, #0d0e1b);

  border: 1px solid #8ba7ff;

  box-shadow:
    inset 0 3px 0 #8ba7ff,
    0 0 25px rgba(116, 132, 255, .12);
}

#programGrid > .program-orbit::before {
  content: "✦ Для вашей команды";

  color: #d5e2ff;
  background: rgba(116, 132, 255, .13);
  border-color: rgba(139, 167, 255, .5);
}

#programGrid > .program-orbit h3 {
  color: #c3d5ff;
  text-shadow: 0 0 20px rgba(116, 132, 255, .2);
}

#programGrid > .program-orbit a:not(.primary) {
  color: #b8dcff;
}

/* Подсветка при наведении и переходе с клавиатуры */
@media (hover: hover) {
  #programGrid > .program-accent:hover {
    border-color: #fff;
    box-shadow:
      inset 0 3px 0 rgba(255, 255, 255, .75),
      0 0 30px rgba(160, 150, 255, .18);
  }
}

#programGrid > .program-accent:focus-within {
  border-color: #fff;
}

/* Телефон: метки не перекрывают текст */
@media (max-width: 760px) {
  #programGrid > .program-accent {
    padding: 64px 20px 22px;
  }

  #programGrid > .program-accent::before {
    top: 16px;
    right: 16px;
    max-width: calc(100% - 80px);
    font-size: 10px;
    padding: 5px 8px;
  }

  #programGrid > .program-accent h3 {
    font-size: 1.25rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  #programGrid > .program-accent {
    transition: none;
  }
}


/* Не даём браузеру цепляться за нижние элементы
   при изменении высоты шагов бронирования. */
.booking-section,
.wizard,
.wizard .step {
  overflow-anchor: none;
}

#step1,
#step2,
#step3 {
  scroll-margin-top: 110px;
}

/* Электронные пригласительные */
.invite-section {
  max-width: 1200px;
  margin: 32px auto;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;

  color: #f4f5ff;
  background:
    radial-gradient(
      ellipse at right top,
      rgba(113, 76, 255, .16),
      transparent 65%
    ),
    #10121e;

  border: 1px solid rgba(153, 124, 255, .45);
  border-radius: 20px;
  box-shadow: 0 0 28px rgba(117, 76, 255, .08);
}

.invite-section h2 {
  margin: 8px 0 12px;
}

.invite-section p:not(.eyebrow) {
  max-width: 640px;
  color: #bbc0d4;
  line-height: 1.6;
}

.invite-open {
  flex-shrink: 0;
  padding: 16px 22px;
  color: #ffe397;
  background: #191729;
  border: 1px solid #dac16d;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(255, 211, 99, .1);
}

.invite-open:hover {
  background: #242039;
  box-shadow: 0 0 24px rgba(255, 211, 99, .2);
}

/* Нативное модальное окно поверх всей страницы */
.invite-dialog {
  box-sizing: border-box;
  width: min(540px, calc(100% - 28px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow-y: auto;

  color: #f4f5ff;
  background: #10121e;
  border: 1px solid #a284ff;
  border-radius: 22px;

  box-shadow:
    0 0 35px rgba(139, 92, 246, .22),
    0 24px 90px rgba(0, 0, 0, .65);

  color-scheme: dark;
}

.invite-dialog::backdrop {
  background: rgba(3, 5, 14, .84);
  backdrop-filter: blur(6px);
}

.invite-content {
  position: relative;
  padding: 34px;
  background:
    radial-gradient(
      ellipse at right top,
      rgba(120, 70, 255, .16),
      transparent 60%
    );
}

.invite-content h2 {
  margin: 10px 32px 12px 0;
  line-height: 1.2;
}

.invite-description {
  margin-bottom: 24px;
  color: #bbc0d4;
  line-height: 1.6;
}

.invite-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  padding: 0;

  color: #f4f5ff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;

  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

#invite-form > label {
  display: block;
  margin: 18px 0 8px;
  color: #d8dbee;
  font-size: 14px;
  line-height: 1.5;
}

#invite-form .gradient-border-cost-calc {
  box-sizing: border-box;
  width: 100%;
  padding: 1px;
  border-radius: 12px;
  background: linear-gradient(115deg, #8b5cf6, #3ccfe8);
}

#invite-form input,
#invite-form select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;

  color: #fff;
  background: #10131f;
  border: 1px solid transparent;
  border-radius: 11px;
  font: inherit;
  font-size: 16px;
}

#invite-form input:focus-visible,
#invite-form select:focus-visible {
  outline: 2px solid #ffe397;
  outline-offset: 2px;
}

#invite-form .invite-time {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

#invite-form .invite-time select {
  border-color: rgba(153, 124, 255, .6);
}

.invite-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 26px;
  padding: 14px 18px;

  color: #17120a;
  background: linear-gradient(110deg, #ffe49c, #f5bb49);
  border: 1px solid #ffe49c;
  border-radius: 12px;

  font: inherit;
  font-weight: 800;
  cursor: pointer;

  box-shadow: 0 0 20px rgba(255, 205, 91, .18);
}

.invite-error {
  margin: 16px 0 0;
  color: #ffb4b4;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .invite-section {
    flex-direction: column;
    align-items: stretch;
    margin: 24px 16px;
    padding: 22px;
  }

  .invite-open {
    width: 100%;
    text-align: center;
  }

  .invite-content {
    padding: 28px 20px;
  }
}

/* ==========================================
   Драйв, Быстрый бой и Просто игра
   ========================================== */

/* Общая геометрия новых карточек */
#programGrid > .program-school,
#programGrid > .program-simple {
  position: relative;
  min-width: 0;
  padding: 64px 24px 24px;
}

/* Метки: используем тот же подход ::before,
   что и у остальных program-accent */
#programGrid > .program-school::before,
#programGrid > .program-simple::before {
  position: absolute;
  top: 18px;
  right: 18px;

  display: inline-block;
  max-width: calc(100% - 90px);
  padding: 5px 10px;

  border: 1px solid;
  border-radius: 8px;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;

  pointer-events: none;
}

/* Драйв и Быстрый бой — для класса */
#programGrid > .program-school {
  background:
    radial-gradient(
      ellipse at top right,
      rgba(143, 227, 95, .13),
      transparent 70%
    ),
    linear-gradient(145deg, #121c19, #0c1118);

  border: 1px solid rgba(143, 227, 95, .55);

  box-shadow:
    inset 0 3px 0 #8fe35f,
    0 0 22px rgba(143, 227, 95, .06);
}

#programGrid > .program-school::before {
  content: "Для класса";
  color: #b6f397;
  background: rgba(143, 227, 95, .1);
  border-color: rgba(143, 227, 95, .4);
}

#programGrid > .program-school h3 {
  color: #c5f5ad;
  text-shadow: 0 0 18px rgba(143, 227, 95, .12);
}

#programGrid > .program-school .price {
  color: #b6f397;
}

/* Просто игра — спокойный графитовый стиль */
#programGrid > .program-simple {
  background: linear-gradient(145deg, #141923, #0d1119);
  border: 1px solid #465268;
  box-shadow: none;
}

#programGrid > .program-simple::before {
  content: "Лазертаг и Гидробол";
  color: #d3dce9;
  background: rgba(182, 198, 220, .07);
  border-color: rgba(182, 198, 220, .3);
}

#programGrid > .program-simple h3 {
  color: #f2f5fa;
  text-shadow: none;
}

#programGrid > .program-simple .num {
  color: #9aacc5;
}

#programGrid > .program-simple .price {
  color: #cad9ec;
  text-shadow: none;
}

/* Читаемое описание и отступ перед ссылкой */
#programGrid > .program-school p,
#programGrid > .program-simple p {
  color: #b6c1d2;
}

#programGrid > .program-school .price,
#programGrid > .program-simple .price {
  padding-top: 20px;
}

/* Наведение и клавиатурная навигация */
@media (hover: hover) {
  #programGrid > .program-school:hover {
    border-color: #b6f397;

    box-shadow:
      inset 0 3px 0 #b6f397,
      0 0 28px rgba(143, 227, 95, .13);
  }

  #programGrid > .program-simple:hover {
    border-color: #8294ad;
    box-shadow: none;
  }
}

#programGrid > .program-school:focus-visible,
#programGrid > .program-simple:focus-visible {
  outline: 3px solid #dce8ff;
  outline-offset: 4px;
}

/* Чуть крупнее текст карточек на компьютере */
@media (min-width: 1024px) {
  #programGrid > .program-accent h3 {
    font-size: 23px;
    line-height: 1.3;
  }

  #programGrid > .program-accent p {
    font-size: 16px;
    line-height: 1.7;
  }
}

/* Телефон */
@media (max-width: 760px) {
  #programGrid > .program-school,
  #programGrid > .program-simple {
    padding: 62px 20px 22px;
    border-radius: 16px;
  }

  #programGrid > .program-school::before,
  #programGrid > .program-simple::before {
    top: 16px;
    right: 16px;
    max-width: calc(100% - 80px);
    padding: 5px 8px;
    font-size: 10px;
  }

  #programGrid > .program-school h3,
  #programGrid > .program-simple h3 {
    font-size: 22px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  #programGrid > .program-school p,
  #programGrid > .program-simple p {
    font-size: 16px;
    line-height: 1.65;
  }
}

/* Номер и плашка — на одном уровне */
#programGrid > .program-accent {
  position: relative;
}

#programGrid > .program-accent .num {
  position: absolute;
  top: 18px;
  left: 24px;

  display: flex;
  align-items: center;

  min-height: 28px;
  margin: 0;
  padding: 0;

  font-size: 14px;
  line-height: 1;
}

/* Единое положение плашек */
#programGrid > .program-accent::before {
  top: 18px;
  right: 18px;
  box-sizing: border-box;
  min-height: 28px;
}

/* Телефон */
@media (max-width: 760px) {
  #programGrid > .program-accent .num {
    top: 16px;
    left: 20px;
  }

  #programGrid > .program-accent::before {
    top: 16px;
    right: 16px;
  }
}


/* ==========================================
   Бронирование: цветные программы и услуги
   ========================================== */

/* Общий вид кнопок программ */
#booking #packageChoices > .choice {
  --booking-accent: 166, 185, 209;

  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;

  min-width: 0;
  min-height: 170px;
  height: 100%;
  padding: 16px;

  color: #f4f6ff;
  background:
    radial-gradient(
      ellipse at right top,
      rgba(var(--booking-accent), .12),
      transparent 75%
    ),
    #0d111e;

  border: 1px solid rgba(var(--booking-accent), .48);
  border-radius: 14px;

  box-shadow:
    inset 0 3px 0 rgba(var(--booking-accent), .65);

  text-align: left;
  white-space: normal;

  transition:
    background .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

/* Плашка находится в потоке: не перекрывает название */
#booking #packageChoices > .choice::before {
  content: attr(data-caption);

  display: block;
  align-self: flex-start;

  max-width: calc(100% - 24px);
  margin-bottom: 4px;
  padding: 4px 8px;

  color: rgb(var(--booking-accent));
  background: rgba(var(--booking-accent), .09);

  border: 1px solid rgba(var(--booking-accent), .35);
  border-radius: 7px;

  font-size: .65rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .035em;
  text-transform: uppercase;

  overflow-wrap: anywhere;
}

/* Название */
#booking #packageChoices .booking-package-title {
  display: block;
  margin: 0;

  color: rgb(var(--booking-accent));

  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;

  overflow-wrap: anywhere;
}

/* Описание */
#booking #packageChoices > .choice > small {
  display: block;
  margin: 0;

  color: #bbc5d8;

  font-size: .84rem;
  font-weight: 400;
  line-height: 1.6;
}

/* Цена внизу карточки */
#booking #packageChoices > .choice > .price {
  margin-top: auto;
  padding-top: 8px;

  color: rgb(var(--booking-accent));

  font-size: .9rem;
  font-weight: 800;
}

/* Мини — сиреневый */
#booking #packageChoices > [data-booking-tone="mini"] {
  --booking-accent: 214, 155, 255;
}

/* Стандарт — розовый */
#booking #packageChoices > [data-booking-tone="standard"] {
  --booking-accent: 255, 153, 218;
}

/* Макси — золотой */
#booking #packageChoices > [data-booking-tone="maxi"] {
  --booking-accent: 255, 209, 139;
}

/* Новый год — хвойный фон и золотые детали */
#booking #packageChoices > [data-booking-tone="newyear"] {
  --booking-accent: 255, 222, 157;

  background:
    radial-gradient(
      circle at 91% 42%,
      rgba(255, 255, 255, .65) 0 1px,
      transparent 2px
    ),
    radial-gradient(
      circle at 83% 72%,
      rgba(255, 255, 255, .4) 0 1px,
      transparent 2px
    ),
    radial-gradient(
      ellipse at right top,
      rgba(41, 151, 103, .22),
      transparent 75%
    ),
    #0c1c18;
}

/* Корпоратив — космический синий */
#booking #packageChoices > [data-booking-tone="orbit"] {
  --booking-accent: 163, 186, 255;

  background:
    radial-gradient(
      ellipse at right top,
      rgba(104, 83, 224, .24),
      transparent 75%
    ),
    #101426;
}

/* Драйв и Быстрый бой — зелёный */
#booking #packageChoices > [data-booking-tone="school"] {
  --booking-accent: 182, 243, 151;
}

/* Просто игра — сдержанный графитовый */
#booking #packageChoices > [data-booking-tone="simple"] {
  --booking-accent: 182, 198, 220;

  background: linear-gradient(145deg, #161c28, #0d1119);
  box-shadow: none;
}

/* Выбранная программа: усиленная рамка и галочка */
#booking #packageChoices > .choice.selected {
  border-color: rgb(var(--booking-accent));

  box-shadow:
    inset 0 0 0 1px rgb(var(--booking-accent)),
    inset 0 0 36px rgba(var(--booking-accent), .1),
    0 0 18px rgba(var(--booking-accent), .12);
}

#booking #packageChoices > .choice.selected::after {
  content: "✓";

  position: absolute;
  top: 16px;
  right: 12px;

  color: rgb(var(--booking-accent));

  font-size: 1rem;
  font-weight: 900;
  line-height: 1.4;
}

/* ==========================================
   Дополнительные услуги
   ========================================== */

#booking #extras > .extra {
  --booking-accent: 111, 220, 240;

  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;

  min-width: 0;
  min-height: 130px;

  /* Справа оставлено место под галочку */
  padding: 16px 36px 16px 16px;

  color: #f4f6ff;
  background:
    linear-gradient(
      125deg,
      rgba(var(--booking-accent), .08),
      transparent 75%
    ),
    #0c111d;

  border: 1px solid rgba(var(--booking-accent), .32);
  border-left: 3px solid rgb(var(--booking-accent));
  border-radius: 12px;

  text-align: left;
  white-space: normal;

  transition:
    background .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

/* Шоу — фиолетовый и розовый */
#booking #extras > [data-extra="neon"] {
  --booking-accent: 222, 149, 255;
}

#booking #extras > [data-extra="oxygen"] {
  --booking-accent: 255, 154, 206;
}

/* Фотографии и сувениры — золото */
#booking #extras > [data-extra="photo"],
#booking #extras > [data-extra="souvenirs"] {
  --booking-accent: 255, 211, 141;
}

/* Посуда и сервировка — мятный */
#booking #extras > [data-extra="dishes"],
#booking #extras > [data-extra="table"] {
  --booking-accent: 137, 230, 192;
}

/* Комната и дополнительные гости — голубой */
#booking #extras > [data-extra="extension"],
#booking #extras > [data-extra="guests"] {
  --booking-accent: 133, 207, 255;
}

/* Статистика и инструктор — лавандовый */
#booking #extras > [data-extra="stats"],
#booking #extras > [data-extra="instructor"] {
  --booking-accent: 183, 180, 255;
}

/* Название услуги */
#booking #extras > .extra > b {
  color: #f4f6ff;

  font-size: .96rem;
  font-weight: 800;
  line-height: 1.4;

  overflow-wrap: anywhere;
}

/* Описание услуги */
#booking #extras > .extra > span {
  margin: 0;

  color: #bbc5d8;

  font-size: .84rem;
  line-height: 1.6;
}

/* Стоимость услуги */
#booking #extras > .extra > strong {
  margin-top: auto;
  padding-top: 4px;

  color: rgb(var(--booking-accent));

  font-size: .92rem;
  font-weight: 800;
  line-height: 1.4;
}

/* Выбранная услуга */
#booking #extras > .extra.selected {
  color: #fff;

  background:
    linear-gradient(
      125deg,
      rgba(var(--booking-accent), .18),
      rgba(var(--booking-accent), .04)
    ),
    #101524;

  border-color: rgb(var(--booking-accent));

  box-shadow:
    inset 0 0 0 1px rgba(var(--booking-accent), .35),
    0 0 18px rgba(var(--booking-accent), .1);
}

#booking #extras > .extra.selected::after {
  content: "✓";

  position: absolute;
  top: 14px;
  right: 12px;

  color: rgb(var(--booking-accent));

  font-size: 1rem;
  font-weight: 900;
}

/* Наведение только на устройствах с мышью */
@media (hover: hover) {
  #booking #packageChoices > .choice:hover,
  #booking #extras > .extra:hover {
    border-color: rgb(var(--booking-accent));
    box-shadow: 0 0 20px rgba(var(--booking-accent), .14);
  }

  #booking #packageChoices > .choice.selected:hover {
    box-shadow:
      inset 0 0 0 1px rgb(var(--booking-accent)),
      0 0 22px rgba(var(--booking-accent), .18);
  }
}

/* Клавиатурная навигация */
#booking #packageChoices > .choice:focus-visible,
#booking #extras > .extra:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* Телефон: одна колонка, без мелкого текста */
@media (max-width: 760px) {
  #booking #packageChoices,
  #booking #extras {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  #booking #packageChoices > .choice {
    min-height: 0;
    padding: 16px;
  }

  #booking #packageChoices .booking-package-title {
    font-size: 1.08rem;
  }

  #booking #packageChoices > .choice > small,
  #booking #extras > .extra > span {
    font-size: .9rem;
  }

  #booking #packageChoices > .choice > .price {
    margin-top: 4px;
    font-size: .96rem;
  }

  #booking #extras > .extra {
    min-height: 0;
  }

  #booking #extras > .extra > strong {
    margin-top: 4px;
    font-size: .96rem;
  }
}

#invite {
  scroll-margin-top: 110px;
}

#booking > #formError:not([hidden]) {
    grid-column: 1 / -1;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 0 0 16px;
    padding: 16px 20px;

    color: #ffe3e3;
    background: #361c2b;
    border: 1px solid #ff718b;
    border-radius: 12px;

    font-size: 16px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

#booking,
#booking .wizard,
#booking .step {
    overflow-anchor: none;
}