:root {
  --bg: #f2f4f7;
  --surface: #ffffff;
  --surface-strong: #14171c;
  --text: #15171b;
  --muted: #6b7280;
  --line: #dfe3e8;
  --accent: #d71920;
  --accent-dark: #a90f16;
  --accent-soft: #fff0f1;
  --steel: #eef1f4;
  --header-height: 74px;
  --shadow: 0 20px 55px rgba(18, 23, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(215, 25, 32, 0.08), transparent 32%),
    linear-gradient(180deg, #fbfcfd 0%, var(--bg) 42%, #eceff3 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: 0;
}

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

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

.site-header {
  position: relative;
  top: auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  min-height: var(--header-height);
  margin: 12px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(223, 227, 232, 0.8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 45px rgba(18, 23, 31, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--surface-strong), #2c333f);
  color: white;
  font-size: 13px;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #363d48;
  font-size: 14px;
  font-weight: 600;
}

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

.main-nav a,
.header-cta,
.button {
  white-space: nowrap;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.header-cta,
.button.primary {
  padding: 0 18px;
  background: linear-gradient(135deg, #f02c33, var(--accent));
  color: #fff;
  box-shadow: 0 12px 24px rgba(215, 25, 32, 0.22);
}

.button.secondary {
  padding: 0 18px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  box-shadow: 0 10px 22px rgba(18, 23, 31, 0.06);
}

.header-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.section-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-screen {
  min-height: 100vh;
  display: grid;
  align-content: center;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  gap: 42px;
  align-items: start;
  min-height: auto;
  padding: 30px 0 34px;
}

.hero-copy h1 {
  max-width: 660px;
  margin: 0;
  padding: 4px 0 6px;
  font-size: clamp(34px, 4.1vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 560px;
  margin: 18px 0 0;
  color: #4e5662;
  font-size: 18px;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(21, 23, 27, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.76);
  color: #596270;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(18, 23, 31, 0.06);
}

.hero-proof strong {
  color: var(--text);
  font-size: 16px;
}

.hero-media {
  position: relative;
  margin-top: 28px;
  min-height: 500px;
  overflow: hidden;
  border-radius: 8px;
  background: #22262d;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  filter: saturate(1.08) contrast(1.03);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(9, 11, 14, 0.48));
  z-index: 1;
}

.hero-panel {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 5px;
  min-width: 240px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.hero-panel-main {
  right: 22px;
  bottom: 22px;
}

.hero-panel-side {
  left: 22px;
  top: 22px;
  min-width: 190px;
  background: rgba(20, 23, 28, 0.82);
  color: #fff;
  backdrop-filter: blur(14px);
}

.hero-panel-side span,
.hero-panel-side small {
  color: #c7ced8;
}

.hero-panel span,
.hero-panel small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-panel strong {
  font-size: 22px;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 82px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
}

.service-strip span {
  padding: 18px 20px;
  background: var(--surface-strong);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  align-items: end;
  margin-bottom: 26px;
}

.section-heading h2,
.booking-copy h2,
.split-section h2,
.contacts h2 {
  margin: 0;
  padding: 2px 0 4px;
  font-size: clamp(28px, 3.3vw, 42px);
  line-height: 1.12;
  text-wrap: balance;
}

.section-heading p,
.booking-copy p,
.split-section p,
.contacts p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

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

.service-card,
.reviews-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.service-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  box-shadow: 0 14px 34px rgba(18, 23, 31, 0.05);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 25, 32, 0.28);
  box-shadow: 0 24px 48px rgba(18, 23, 31, 0.1);
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.2;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.service-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
}

.service-card strong {
  font-size: 20px;
}

.service-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.booking-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1fr);
  gap: 34px;
  align-items: center;
  margin-top: 0;
  padding: 72px 38px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.14), transparent 38%),
    var(--surface-strong);
  color: white;
}

.booking-copy p {
  margin-top: 18px;
  color: #b8c0cc;
}

.workflow {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.workflow div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.workflow strong {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  background: var(--accent);
}

.booking-form {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

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

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
}

input,
select {
  height: 46px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(215, 25, 32, 0.16);
  border-color: var(--accent);
}

.submit-button {
  width: 100%;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: center;
  margin-top: 0;
  padding: 72px 0;
}

.split-section p {
  margin-top: 18px;
}

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

.price-row,
.booking-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.7fr 0.65fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.price-row {
  grid-template-columns: 1fr auto auto;
  width: 100%;
  min-height: 68px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: 0 14px 34px rgba(18, 23, 31, 0.04);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.price-row:hover,
.price-row.is-selected {
  transform: translateY(-3px);
  border-color: rgba(215, 25, 32, 0.38);
  background: linear-gradient(135deg, #fff, var(--accent-soft));
  box-shadow: 0 24px 48px rgba(18, 23, 31, 0.1);
}

.price-row:active {
  transform: translateY(-1px) scale(0.995);
}

.price-row.is-selected {
  animation: pricePulse 520ms ease;
}

.price-row span,
.booking-row span {
  color: var(--muted);
  font-size: 14px;
}

.price-row strong {
  font-size: 18px;
}

.admin-preview {
  margin-top: 0;
  padding: 72px 0;
}

.admin-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(18, 23, 31, 0.08);
}

.schedule-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: 18px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 45px rgba(18, 23, 31, 0.06);
}

.schedule-copy h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.schedule-copy p,
.schedule-summary {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

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

.schedule-controls label {
  display: grid;
  gap: 8px;
  color: #343a43;
  font-size: 13px;
  font-weight: 800;
}

.slot-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.slot-button {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.slot-button strong {
  font-size: 15px;
}

.slot-button span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.slot-button.free:hover {
  transform: translateY(-2px);
  border-color: rgba(215, 25, 32, 0.32);
  box-shadow: 0 14px 28px rgba(18, 23, 31, 0.08);
}

.slot-button.blocked {
  background: #20242b;
  border-color: #20242b;
  color: #fff;
}

.slot-button.blocked span {
  color: #c8ced8;
}

.slot-button.booked {
  background: var(--accent-soft);
  border-color: rgba(215, 25, 32, 0.28);
  color: var(--accent-dark);
  cursor: not-allowed;
}

.slot-button.booked span {
  color: var(--accent-dark);
}

.schedule-summary {
  grid-column: 1 / -1;
  margin-top: 0;
}

.admin-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px;
  background: #111318;
  color: #fff;
}

.admin-sidebar strong {
  margin-bottom: 12px;
  font-size: 18px;
}

.admin-sidebar span {
  padding: 12px;
  border-radius: 6px;
  color: #c2c8d2;
  font-size: 14px;
  font-weight: 700;
}

.admin-sidebar span:first-of-type {
  background: var(--accent);
  color: #fff;
}

.admin-table {
  padding: 16px;
  overflow-x: auto;
}

.admin-table-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.7fr 0.65fr;
  gap: 12px;
  padding: 0 16px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

#bookingRows {
  display: grid;
  gap: 8px;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 6px;
  background: #fff1f1;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.reviews-section {
  margin-top: 0;
  padding: 72px 0;
}

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

.reviews-grid article {
  position: relative;
  min-height: 260px;
  padding: 24px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(18, 23, 31, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.reviews-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.reviews-grid article:hover {
  transform: translateY(-5px);
  border-color: rgba(215, 25, 32, 0.26);
  box-shadow: 0 28px 54px rgba(18, 23, 31, 0.12);
}

.review-rating {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 20px;
  padding: 0 12px;
  border-radius: 7px;
  background: var(--surface-strong);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.reviews-grid p {
  margin: 0 0 22px;
  color: #424955;
  font-size: 17px;
  line-height: 1.6;
}

.reviews-grid strong {
  font-size: 15px;
}

.contacts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 0;
  margin-bottom: 42px;
  padding: 34px;
  border-radius: 8px;
  background: #fff;
}

.contacts p {
  margin-top: 14px;
}

.contact-lines {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  max-width: 360px;
  padding: 15px 16px;
  border-radius: 8px;
  background: var(--surface-strong);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible,
.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: #991b1b;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 28;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: linear-gradient(135deg, #f02c33, var(--accent));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(215, 25, 32, 0.28);
  opacity: 0;
  transform: translateY(14px) scale(0.92);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.back-to-top span {
  display: block;
  transform: translateY(-1px);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  box-shadow: 0 22px 52px rgba(215, 25, 32, 0.36);
  transform: translateY(-2px) scale(1.02);
}

@keyframes pricePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(215, 25, 32, 0.24), 0 24px 48px rgba(18, 23, 31, 0.1);
  }

  100% {
    box-shadow: 0 0 0 16px rgba(215, 25, 32, 0), 0 24px 48px rgba(18, 23, 31, 0.1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
  }

  .hero,
  .booking-section,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero-media {
    margin-top: 0;
  }

  .hero-media,
  .hero-media img {
    min-height: 420px;
  }

  .services-grid,
  .reviews-grid,
  .service-strip,
  .schedule-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .section-heading {
    display: grid;
  }
}

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

  section[id] {
    scroll-margin-top: 0;
  }

  .site-header {
    margin-top: 8px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 12px;
  }

  .hero-copy h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-stats,
  .services-grid,
  .reviews-grid,
  .service-strip,
  .form-row,
  .admin-layout,
  .schedule-panel,
  .schedule-controls {
    grid-template-columns: 1fr;
  }

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

  .booking-section {
    padding: 20px;
  }

  .nav-screen {
    min-height: auto;
    padding: 56px 0;
  }

  .admin-table-head,
  .booking-row {
    min-width: 640px;
  }

  .contacts {
    display: grid;
    padding: 24px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }

  .hero-panel {
    left: 14px;
    right: 14px;
    min-width: 0;
  }
}
