:root {
  --red: #d62828;
  --red-dark: #ad1717;
  --red-soft: #fff1f1;
  --red-pale: #fff8f8;
  --text: #202124;
  --muted: #6d7078;
  --line: #ececef;
  --white: #ffffff;
  --surface: #f7f7f8;
  --shadow: 0 24px 70px rgba(76, 20, 20, 0.1);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 52px;
}

.section-heading h2 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 18px;
}

.heading-center {
  margin-inline: auto;
  text-align: center;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 2px solid var(--red);
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(214, 40, 40, 0.2);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--red-dark);
  background: var(--red-dark);
}

.button-small {
  min-height: 42px;
  padding-inline: 20px;
  font-size: 14px;
}

.button-ghost,
.button-outline {
  border-color: var(--line);
  background: var(--white);
  color: var(--text);
  box-shadow: none;
}

.button-ghost:hover,
.button-outline:hover {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red);
}

.button-full {
  width: 100%;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(236, 236, 239, 0.9);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
}

.logo-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #4d5057;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--red);
}

.hero {
  overflow: hidden;
  padding-top: 82px;
  background:
    radial-gradient(circle at 15% 20%, rgba(214, 40, 40, 0.09), transparent 32%),
    linear-gradient(180deg, #fff 0%, #fffafa 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 72px;
}

.hero h1 {
  margin: 0 0 26px;
  font-size: clamp(54px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero h1 span {
  color: var(--red);
}

.hero-text {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 54px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-facts div {
  display: flex;
  flex-direction: column;
}

.hero-facts strong {
  font-size: 25px;
  letter-spacing: -0.04em;
}

.hero-facts span {
  color: var(--muted);
  font-size: 13px;
}

.hero-media {
  position: relative;
}

.hero-media > img {
  width: 100%;
  border-radius: 50% 50% 38% 38% / 42% 42% 28% 28%;
  box-shadow: var(--shadow);
}

.floating-card {
  position: absolute;
  right: -24px;
  bottom: 40px;
  display: flex;
  width: min(330px, 78%);
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.floating-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  font-size: 22px;
}

.floating-card strong,
.floating-card small {
  display: block;
}

.floating-card small {
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: start;
  gap: 72px;
}

.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.about-gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.about-gallery img:first-child {
  grid-column: 1 / -1;
  height: 360px;
}

.about-copy p {
  margin: 0 0 20px;
  color: #4d5057;
}

.about-copy .lead {
  color: var(--text);
  font-size: 21px;
  font-weight: 700;
}

.about-copy blockquote {
  margin: 34px 0;
  padding: 24px 28px;
  border-left: 5px solid var(--red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--red-soft);
  font-size: 19px;
  font-weight: 700;
}

.about-copy .about-finish {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.about-finish span {
  color: var(--red);
}

.workouts {
  background: var(--surface);
}

.workout-card {
  margin-bottom: 38px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 15px 50px rgba(32, 33, 36, 0.05);
}

.workout-card-alt {
  background: #fffafa;
}

.workout-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.workout-top h3 {
  margin: 0;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.workout-number {
  display: block;
  margin-bottom: 14px;
  color: #d2d2d7;
  font-size: 15px;
  font-weight: 800;
}

.duration {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
}

.workout-intro {
  max-width: 940px;
  margin: 0;
  color: #4d5057;
  font-size: 18px;
}

.workout-accent {
  max-width: 820px;
  margin: 24px 0 34px;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.detail-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.detail-card h4 {
  margin: 0 0 18px;
  font-size: 20px;
}

.check-list,
.info-list,
.price-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list {
  display: grid;
  gap: 14px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: #565961;
  font-size: 14px;
}

.check-list li::before {
  position: absolute;
  top: 4px;
  left: 0;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  content: "✓";
  font-size: 11px;
  font-weight: 900;
}

.info-list {
  display: grid;
  gap: 15px;
}

.info-list li {
  display: grid;
  gap: 2px;
  color: #565961;
  font-size: 14px;
}

.info-list span {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.photo-strip img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
}

.photo-strip-seven {
  grid-template-columns: repeat(7, 1fr);
}

.workout-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.workout-action p {
  margin: 0;
  color: var(--muted);
}

.workout-action strong {
  color: var(--text);
  font-size: 19px;
}

.benefits {
  background: var(--red);
  color: var(--white);
}

.benefits .eyebrow {
  color: #ffd1d1;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.benefit-grid article {
  min-height: 270px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
}

.benefit-grid span {
  color: #ffc7c7;
  font-weight: 800;
}

.benefit-grid h3 {
  margin: 68px 0 12px;
  font-size: 22px;
  line-height: 1.25;
}

.benefit-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.schedule {
  background: var(--red-pale);
}

.schedule-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 72px;
}

.schedule h2 {
  margin: 0 0 22px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.schedule-text {
  color: var(--muted);
  font-size: 18px;
}

.notice {
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid #ffd3d3;
  border-radius: 14px;
  background: var(--white);
  color: var(--red-dark);
  font-size: 13px;
}

.schedule-list {
  display: grid;
  gap: 14px;
}

.schedule-list article {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.date-box {
  display: grid;
  width: 70px;
  height: 74px;
  place-items: center;
  align-content: center;
  border-radius: 18px;
  background: var(--red);
  color: var(--white);
}

.date-box strong {
  font-size: 27px;
  line-height: 1;
}

.date-box span {
  font-size: 11px;
  text-transform: uppercase;
}

.tag {
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-list h3 {
  margin: 3px 0;
  font-size: 19px;
}

.schedule-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.schedule-list article > a {
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 22px;
}

.price-card {
  position: relative;
  display: flex;
  min-height: 475px;
  flex-direction: column;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.price-card.featured {
  border-color: var(--red);
  background: var(--red-pale);
  box-shadow: var(--shadow);
}

.popular {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.price-label {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-card h3 {
  margin: 0;
  font-size: 27px;
}

.price {
  margin: 28px 0;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.price span {
  font-size: 23px;
}

.price-card ul {
  display: grid;
  gap: 12px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 14px;
}

.price-card ul li::before {
  margin-right: 10px;
  color: var(--red);
  content: "✓";
  font-weight: 900;
}

.price-card .button {
  margin-top: auto;
}

.reviews {
  background: var(--surface);
}

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

.review-grid article {
  padding: 32px;
  border-radius: var(--radius-md);
  background: var(--white);
}

.stars {
  margin-bottom: 20px;
  color: var(--red);
  letter-spacing: 0.15em;
}

.review-grid p {
  min-height: 140px;
  margin: 0 0 24px;
  font-size: 17px;
}

.review-grid strong,
.review-grid span {
  display: block;
}

.review-grid span {
  color: var(--muted);
  font-size: 13px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 72px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.faq-list summary {
  position: relative;
  padding: 22px 58px 22px 24px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}

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

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 22px;
  color: var(--red);
  content: "+";
  font-size: 25px;
  transform: translateY(-50%);
}

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

.faq-list p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
}

.booking {
  background: var(--red);
  color: var(--white);
}

.booking-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: 72px;
}

.booking .eyebrow {
  color: #ffd1d1;
}

.booking h2 {
  margin: 0 0 22px;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.booking-copy > p:not(.eyebrow) {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 38px;
  font-weight: 800;
}

.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(77, 0, 0, 0.2);
}

.booking-form label {
  display: grid;
  gap: 8px;
  color: #4d5057;
  font-size: 13px;
  font-weight: 800;
}

.booking-form label:nth-of-type(5),
.booking-form .checkbox,
.booking-form .button,
.form-note {
  grid-column: 1 / -1;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  border: 1px solid #dedee3;
  border-radius: 13px;
  outline: none;
  background: var(--white);
  color: var(--text);
}

.booking-form input,
.booking-form select {
  height: 50px;
  padding: 0 15px;
}

.booking-form textarea {
  min-height: 112px;
  resize: vertical;
  padding: 14px 15px;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}

.checkbox {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px !important;
}

.checkbox input {
  width: 18px;
  height: 18px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.site-footer {
  padding: 42px 0;
  background: #1c1d20;
  color: rgba(255, 255, 255, 0.75);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.logo-light {
  color: var(--white);
}

.footer-inner > p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
}

@media (max-width: 1050px) {
  .main-nav {
    display: none;
  }

  .hero-grid,
  .about-grid,
  .schedule-grid,
  .faq-grid,
  .booking-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    max-width: 700px;
  }

  .details-grid,
  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-strip,
  .photo-strip-seven {
    grid-template-columns: repeat(4, 1fr);
  }

  .price-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .price-card {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 76px 0;
  }

  .site-header .button-small {
    display: none;
  }

  .header-inner {
    min-height: 66px;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-grid {
    gap: 48px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 68px);
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .floating-card {
    right: 10px;
    bottom: 18px;
  }

  .about-gallery img,
  .about-gallery img:first-child {
    height: 230px;
  }

  .about-grid {
    gap: 44px;
  }

  .workout-card {
    border-radius: 24px;
  }

  .workout-top,
  .workout-action {
    flex-direction: column;
    align-items: flex-start;
  }

  .details-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .photo-strip,
  .photo-strip-seven {
    grid-template-columns: repeat(2, 1fr);
  }

  .schedule-list article {
    grid-template-columns: 72px 1fr;
  }

  .schedule-list article > a {
    grid-column: 2;
  }

  .booking-form {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .booking-form label,
  .booking-form label:nth-of-type(5),
  .booking-form .checkbox,
  .booking-form .button,
  .form-note {
    grid-column: 1;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .copyright {
    grid-column: 1;
  }
}


/* Flask: динамическое расписание и уведомления */
.flash-stack { position: fixed; z-index: 150; top: 92px; left: 50%; display: grid; gap: 10px; transform: translateX(-50%); pointer-events: none; }
.flash { padding: 15px 18px; border-radius: 14px; background: #fff; box-shadow: 0 16px 45px rgba(32,33,36,.18); font-weight: 700; pointer-events: auto; }
.flash-success { border-left: 5px solid #218739; }
.flash-error { border-left: 5px solid var(--red); }
.flash-info { border-left: 5px solid #3c6fd1; }
.places-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.places-badge, .slot-price { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #eaf8ee; color: #24753a; font-size: 11px; font-weight: 800; }
.places-low { background: var(--red-soft); color: var(--red); }
.slot-price { background: #f2f2f4; color: var(--text); }
.schedule-book-button { border: 0; background: transparent; color: var(--red); cursor: pointer; font: inherit; font-size: 14px; font-weight: 800; }
.schedule-book-button:hover { color: var(--red-dark); }
.slot-full { opacity: .68; }
.sold-out { color: var(--muted); font-size: 13px; font-weight: 800; }
.empty-schedule { padding: 32px; border: 1px dashed #d7d7dd; border-radius: var(--radius-md); background: #fff; text-align: center; }
.empty-schedule p { margin: 4px 0 0; color: var(--muted); }
.form-wide { grid-column: 1 / -1 !important; }
.rental-checkbox { align-self: end; min-height: 50px; }
@media (max-width: 720px) { .flash-stack { top: 76px; } .form-wide { grid-column: 1 !important; } }
