

:root {
  --b-red:    #df2b2e;
  --b-dark:   #1a1a1a;
  --b-mid:    #4a4a4a;
  --b-grey:   #9e9e9e;
  --b-light:  #e8e8e8;
  --b-off:    #f7f7f7;
  --b-white:  #ffffff;
  --b-green:  #16a34a;
  --b-shadow: 0 2px 12px rgba(0,0,0,.09);
}

.book-header {
  background: #fff;
  border-bottom: 1px solid var(--b-light);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--b-shadow);
}
.book-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.book-header__back {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--b-mid);
  text-decoration: none;
  transition: color .15s;
  white-space: nowrap;
}
.book-header__back:hover { color: var(--b-red); }
.book-header__logo img {
  height: 52px;
  width: auto;
  display: block;
}
.book-header__trust {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: var(--b-grey);
  white-space: nowrap;
}
.book-header__trust-stars {
  display: inline-flex;
  gap: 2px;
}
.book-header__trust-stars svg { width: 16px; height: 16px; }

.book-steps {
  background: var(--b-off);
  border-bottom: 1px solid var(--b-light);
  padding: .75rem 1.5rem;
}
.book-steps__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.book-step {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--b-grey);
  padding: .4rem .75rem;
  border-radius: 20px;
  text-decoration: none;
  transition: color .15s;
}
.book-step--active {
  background: var(--b-red);
  color: #fff;
}
.book-step--done { color: var(--b-green); }
.book-step--done:hover { color: var(--b-green); }
.book-step__num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 900;
  flex-shrink: 0;
}
.book-step--active .book-step__num { background: rgba(255,255,255,.25); }
.book-step--done  .book-step__num  { background: var(--b-green); color: #fff; }
.book-step-arrow {
  width: 32px;
  height: 1px;
  background: var(--b-light);
  flex-shrink: 0;
  margin: 0 .25rem;
}

.book-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.75rem;
  align-items: start;
}

.book-panel {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--b-light);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}
.book-panel__title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--b-dark);
  margin: 0 0 .35rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.book-panel__sub {
  font-size: .83rem;
  color: var(--b-grey);
  margin: 0 0 1.4rem;
  line-height: 1.55;
}
.book-panel__sub a { color: var(--b-red); text-decoration: none; font-weight: 700; }
.book-panel__sub a:hover { text-decoration: underline; }

.book-package-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.book-package-option {
  position: relative;
  border: 2px solid var(--b-light);
  border-radius: 8px;
  padding: 1.1rem 1rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  user-select: none;
}
.book-package-option:hover { border-color: var(--b-red); background: #fef2f2; }
.book-package-option--selected { border-color: var(--b-red); background: #fef2f2; }
.book-package-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.book-package-option__label {
  font-size: .88rem;
  font-weight: 700;
  color: var(--b-dark);
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.book-package-option__badge {
  background: var(--b-red);
  color: #fff;
  font-size: .65rem;
  font-weight: 900;
  padding: .15rem .5rem;
  border-radius: 4px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.book-package-option__desc {
  font-size: .78rem;
  color: var(--b-grey);
  margin: .35rem 0 0;
  line-height: 1.5;
}
.book-package-option__price {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--b-red);
  margin-top: .5rem;
}
.book-package-option__price span { font-size: .75rem; font-weight: 400; color: var(--b-grey); }
.book-package-option__check {
  position: absolute;
  top: .7rem; right: .7rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--b-light);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s;
}
.book-package-option--selected .book-package-option__check {
  border-color: var(--b-red);
  background: var(--b-red);
}
.book-package-option--selected .book-package-option__check::after {
  content: '';
  width: 5px; height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translateY(-1px);
  display: block;
}

.book-info-box {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: var(--b-off);
  border: 1px solid var(--b-light);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  font-size: .83rem;
  color: var(--b-mid);
  line-height: 1.6;
}
.book-info-box svg { flex-shrink: 0; color: var(--b-red); margin-top: 1px; }
.book-info-box ul { margin: .35rem 0 0 1rem; padding: 0; }
.book-info-box li { margin-bottom: .2rem; }

.book-basket {
  background: #fff;
  border: 1px solid var(--b-light);
  border-radius: 10px;
  padding: 1.5rem;
  position: sticky;
  top: 140px;
}
.book-basket__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--b-dark);
  margin: 0 0 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--b-red);
}
.book-basket__title svg { color: var(--b-mid); }
.book-basket__total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: .6rem;
  font-size: .88rem;
  color: var(--b-mid);
}
.book-basket__total-row strong { color: var(--b-dark); font-size: .95rem; }
.book-basket__empty {
  text-align: center;
  padding: 1rem 0;
  font-size: .85rem;
  color: var(--b-grey);
}
.book-basket__note {
  font-size: .72rem;
  color: var(--b-grey);
  margin: .5rem 0 0;
  line-height: 1.55;
  text-align: center;
}

.book-basket__trust {
  border-top: 1px solid var(--b-light);
  padding-top: 1rem;
  margin-top: 1rem;
}
.book-basket__trust-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
}
.book-tp-logo {
  font-size: .82rem;
  font-weight: 700;
  color: var(--b-dark);
}
.book-tp-stars {
  display: flex;
  gap: 2px;
}
.book-tp-stars svg { width: 18px; height: 18px; }
.book-tp-score {
  font-size: .75rem;
  color: var(--b-grey);
}

.book-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--b-red);
  color: #fff;
  font-size: .9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: .9rem 1.25rem;
  text-decoration: none;
  transition: background .15s;
  font-family: inherit;
  margin-top: 1rem;
}
.book-cta:hover { background: var(--b-red-dark, #b92226); }
.book-cta--disabled {
  background: var(--b-light);
  color: var(--b-grey);
  cursor: not-allowed;
  pointer-events: none;
}
.book-cta svg { flex-shrink: 0; }

.book-field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .85rem; }
.book-label {
  font-size: .76rem;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.book-input,
.book-select {
  width: 100%;
  padding: .7rem .9rem;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  font-size: .9rem;
  font-family: inherit;
  color: var(--b-dark);
  background: #fff;
  transition: border-color .15s;
  appearance: none;
  -webkit-appearance: none;
}
.book-input:focus,
.book-select:focus { outline: none; border-color: var(--b-red); box-shadow: 0 0 0 3px rgba(223,43,46,.1); }
.book-select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239e9e9e' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-right: 2.5rem;
}
.book-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.book-hint { font-size: .72rem; color: var(--b-grey); margin-top: .2rem; }

.book-instructor {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--b-off);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: .75rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.book-instructor:hover,
.book-instructor.is-selected { border-color: var(--b-red); background: #fef2f2; }
.book-instructor input[type="radio"] { display: none; }
.book-instructor__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--b-light);
  flex-shrink: 0;
  overflow: hidden;
}
.book-instructor__avatar img { width: 100%; height: 100%; object-fit: cover; }
.book-instructor__name { font-size: .9rem; font-weight: 700; color: var(--b-dark); margin: 0 0 .2rem; }
.book-instructor__meta { font-size: .78rem; color: var(--b-grey); margin: 0; }

.book-dates-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .4rem;
  margin-bottom: 1rem;
}
.book-date-btn {
  background: #fff;
  border: 1.5px solid var(--b-light);
  border-radius: 6px;
  padding: .5rem .3rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  font-family: inherit;
}
.book-date-btn:hover { border-color: var(--b-red); background: #fef2f2; }
.book-date-btn.is-selected { border-color: var(--b-red); background: var(--b-red); color: #fff; }
.book-date-btn__dow { font-size: .65rem; font-weight: 700; text-transform: uppercase; color: inherit; }
.book-date-btn__day { font-size: 1rem; font-weight: 900; display: block; line-height: 1.2; }
.book-date-btn__mon { font-size: .65rem; color: inherit; opacity: .8; }
.book-date-btn.is-selected .book-date-btn__dow,
.book-date-btn.is-selected .book-date-btn__mon { color: rgba(255,255,255,.8); }

.book-times-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
}
.book-time-btn {
  padding: .55rem;
  border: 1.5px solid var(--b-light);
  border-radius: 6px;
  background: #fff;
  font-size: .82rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, background .15s, color .15s;
}
.book-time-btn:hover { border-color: var(--b-red); background: #fef2f2; color: var(--b-red); }
.book-time-btn.is-selected { background: var(--b-red); border-color: var(--b-red); color: #fff; }

.book-card-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: .9rem;
}
.book-secure-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: var(--b-grey);
  margin-bottom: 1.25rem;
}
.book-secure-badge svg { color: var(--b-green); flex-shrink: 0; }
.book-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: .88rem;
  color: var(--b-mid);
  padding: .45rem 0;
  border-bottom: 1px solid var(--b-light);
}
.book-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--b-dark);
  padding-top: .75rem;
  margin-top: .35rem;
}

.book-footer {
  background: #2f2f2f;
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: .9rem 1.5rem;
  font-size: .75rem;
}
.book-footer a { color: rgba(255,255,255,.4); text-decoration: none; }
.book-footer a:hover { color: #fff; }

@media (max-width: 860px) {
  .book-body { grid-template-columns: 1fr; }
  .book-basket { position: static; order: -1; }
  .book-package-grid { grid-template-columns: 1fr; }
  .book-dates-grid { grid-template-columns: repeat(4, 1fr); }
  .book-card-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .book-header__trust { display: none; }
  .book-times-grid { grid-template-columns: repeat(3, 1fr); }
  .book-dates-grid { grid-template-columns: repeat(4, 1fr); }
  .book-row { grid-template-columns: 1fr; }
}