:root {
  --bg: #07080f;
  --panel: #10131d;
  --panel-2: #171b29;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f7ff;
  --muted: #a7b0c6;
  --cyan: #1ce7ff;
  --violet: #8b5cf6;
  --orange: #ff9b36;
  --green: #41f6a3;
  --danger: #ff5577;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(28, 231, 255, 0.16), transparent 34rem),
    linear-gradient(160deg, #05060a 0%, #0e1020 48%, #15100e 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.phone-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 112px;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), var(--shadow);
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.14) contrast(1.08);
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 5, 11, 0.26) 0%, rgba(3, 5, 11, 0.68) 47%, #07080f 96%),
    linear-gradient(120deg, rgba(28, 231, 255, 0.36), transparent 43%, rgba(255, 155, 54, 0.18));
}

.hero__content {
  position: relative;
  z-index: 2;
  min-height: 560px;
  padding: 18px 18px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.topbar {
  position: absolute;
  top: 16px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(28, 231, 255, 0.55);
  border-radius: 8px;
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: 1px;
  background: rgba(3, 8, 18, 0.5);
  box-shadow: 0 0 24px rgba(28, 231, 255, 0.18);
}

.status-pill,
.eyebrow,
.section-heading p,
.feature-strip span,
.visual-card__body p,
.modal__badge {
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-pill {
  padding: 8px 10px;
  border: 1px solid rgba(65, 246, 163, 0.42);
  border-radius: 999px;
  color: #dfffee;
  background: rgba(18, 105, 72, 0.24);
  font-size: 12px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
p {
  margin-top: 0;
}

.hero h1 {
  margin-bottom: 12px;
  font-size: clamp(40px, 12vw, 56px);
  line-height: 0.96;
  text-shadow: 0 0 28px rgba(28, 231, 255, 0.32);
}

.hero__copy {
  max-width: 330px;
  margin-bottom: 20px;
  color: #d7e4ff;
  font-size: 15px;
  line-height: 1.72;
}

.hero__actions {
  display: flex;
  gap: 10px;
}

.primary-btn,
.ghost-btn,
.submit-btn,
.sticky-bar button {
  min-height: 46px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-btn,
.submit-btn,
.sticky-bar button {
  color: #051018;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 12px 34px rgba(28, 231, 255, 0.22);
}

.primary-btn {
  padding: 0 22px;
}

.ghost-btn {
  padding: 0 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: -26px 14px 8px;
  position: relative;
  z-index: 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.quick-stats div {
  min-height: 78px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  background: rgba(16, 19, 29, 0.92);
}

.quick-stats strong {
  color: var(--cyan);
  font-size: 22px;
}

.quick-stats span {
  color: var(--muted);
  font-size: 12px;
}

.section {
  padding: 24px 16px 8px;
}

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

.section-heading p {
  margin: 0;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  font-size: 22px;
}

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

.service-card,
.coach-card,
.date-card,
.time-card {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.service-card {
  min-height: 132px;
  padding: 14px;
  text-align: left;
}

.service-card.is-active,
.coach-card.is-active,
.date-card.is-active,
.time-card.is-active {
  border-color: rgba(28, 231, 255, 0.78);
  background: linear-gradient(180deg, rgba(28, 231, 255, 0.18), rgba(139, 92, 246, 0.12));
  box-shadow: inset 0 0 0 1px rgba(28, 231, 255, 0.24), 0 12px 28px rgba(28, 231, 255, 0.12);
}

.service-card:active,
.coach-card:active,
.date-card:active,
.time-card:active {
  transform: scale(0.98);
}

.service-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(28, 231, 255, 0.12);
  font-weight: 900;
}

.service-card h3,
.coach-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.service-card p,
.coach-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.feature-strip,
.visual-card {
  margin: 24px 16px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.feature-strip img,
.visual-card img {
  width: 100%;
  height: 166px;
  display: block;
  object-fit: cover;
}

.feature-strip div,
.visual-card__body {
  padding: 16px;
}

.feature-strip span,
.visual-card__body p {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
}

.feature-strip h2,
.visual-card__body h2 {
  margin-bottom: 8px;
  font-size: 21px;
}

.feature-strip p,
.visual-card__body span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.booking-form {
  display: grid;
  gap: 16px;
}

.form-block {
  display: grid;
  gap: 9px;
}

.form-block label {
  color: #dfe7fb;
  font-size: 14px;
  font-weight: 800;
}

.coach-list,
.date-list,
.time-list {
  display: grid;
  gap: 10px;
}

.coach-list {
  grid-template-columns: 1fr;
}

.coach-card {
  padding: 13px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.coach-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(28, 231, 255, 0.22), rgba(255, 155, 54, 0.18));
  color: var(--text);
  font-weight: 900;
}

.coach-tag {
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
}

.date-list {
  grid-template-columns: repeat(4, 1fr);
}

.date-card {
  min-height: 66px;
  padding: 9px 4px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
}

.date-card strong,
.time-card strong {
  font-size: 14px;
}

.date-card span,
.time-card span {
  color: var(--muted);
  font-size: 11px;
}

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

.time-card {
  min-height: 58px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input {
  height: 48px;
  padding: 0 13px;
}

textarea {
  resize: none;
  padding: 13px;
  line-height: 1.6;
}

input::placeholder,
textarea::placeholder {
  color: rgba(167, 176, 198, 0.7);
}

input:focus,
textarea:focus {
  border-color: rgba(28, 231, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(28, 231, 255, 0.12);
}

.field-error {
  border-color: rgba(255, 85, 119, 0.82);
}

.submit-btn {
  width: 100%;
  margin-top: 2px;
}

.visual-card {
  margin-bottom: 22px;
}

.sticky-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  width: min(100%, 430px);
  transform: translateX(-50%);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: rgba(8, 10, 17, 0.88);
  backdrop-filter: blur(18px);
}

.sticky-bar div {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 3px;
}

.sticky-bar span {
  color: var(--muted);
  font-size: 11px;
}

.sticky-bar strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticky-bar button {
  min-height: 44px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  z-index: 40;
  width: min(calc(100% - 34px), 396px);
  min-height: 42px;
  padding: 11px 14px;
  transform: translate(-50%, 18px);
  border: 1px solid rgba(255, 85, 119, 0.38);
  border-radius: 8px;
  color: #ffe9ef;
  background: rgba(55, 14, 28, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__panel {
  position: relative;
  width: min(100%, 396px);
  padding: 22px 16px 16px;
  border: 1px solid rgba(28, 231, 255, 0.32);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(28, 231, 255, 0.18), transparent 15rem),
    var(--panel);
  box-shadow: var(--shadow);
  transform: translateY(16px);
  transition: transform 0.2s ease;
}

.modal.is-open .modal__panel {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-size: 24px;
  line-height: 1;
}

.modal__badge {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(65, 246, 163, 0.1);
  font-size: 11px;
  font-weight: 900;
}

.modal h2 {
  width: calc(100% - 42px);
  margin-bottom: 14px;
  font-size: 22px;
  line-height: 1.28;
}

.summary-card {
  display: grid;
  gap: 9px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.summary-row strong {
  color: var(--text);
  text-align: right;
}

.modal__reset {
  width: 100%;
}

@media (max-width: 360px) {
  .hero__content {
    padding-inline: 14px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .service-grid,
  .time-list {
    grid-template-columns: 1fr;
  }

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