/* Kwest — главная, бронирование, контакты */

.kwest-home {
  color: #e8e8e8;
}

.kwest-hero {
  position: relative;
  width: 100%;
  min-height: 52vh;
  background: #111 center/cover no-repeat;
  display: flex;
  align-items: flex-end;
}

.kwest-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.kwest-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 4rem 0 3rem;
}

.kwest-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
}

.kwest-hero__subtitle {
  margin: 0 0 1.25rem;
  max-width: 720px;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
}

.kwest-hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.kwest-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}

.kwest-hero__cta:hover {
  color: #111;
  opacity: 0.92;
  transform: translateY(-1px);
}

/* --- Quest block --- */

.kwest-quest {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: start;
}

.kwest-quest__media {
  display: grid;
  gap: 1rem;
}

.kwest-quest__photo {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #2a2a2a;
}

.kwest-quest__video-frame,
.kwest-quest__video-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  background: #0a0a0a center/cover no-repeat;
}

.kwest-quest__video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.kwest-quest__video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.kwest-quest__video-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.kwest-quest__video-label {
  position: relative;
  z-index: 1;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.9rem;
  color: #fff;
}

.kwest-quest__lead {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: #d8d8d8;
}

.kwest-quest__text {
  margin: 0 0 1.5rem;
  color: #9a9a9a;
  line-height: 1.7;
}

.kwest-quest__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.kwest-quest__features li {
  padding: 0.45rem 0.85rem;
  border: 1px solid #333;
  border-radius: 999px;
  font-size: 0.88rem;
  color: #eee;
  background: #171717;
}

.kwest-quest__price-note {
  margin: 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid #c0392b;
  background: #121212;
  color: #bdbdbd;
  line-height: 1.6;
}

.kwest-section {
  padding: 4.5rem 0;
}

.kwest-section--dark {
  background: #141414;
}

.kwest-section--darker {
  background: #0a0a0a;
}

.kwest-section__title {
  margin: 0 0 2rem;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.kwest-games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.kwest-game {
  background: #1b1b1b;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
}

.kwest-game__img {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.kwest-game__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.kwest-game__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: #fff;
}

.kwest-game__title a {
  color: inherit;
  text-decoration: none;
}

.kwest-game__title a:hover {
  color: var(--primary, #c0392b);
}

.kwest-game__text {
  margin: 0;
  color: #9a9a9a;
  line-height: 1.6;
}

/* --- Booking week --- */

.kwest-booking {
  background: #0a0a0a;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 1.5rem 1.25rem 1.75rem;
}

.kwest-booking__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.kwest-booking__title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
}

.kwest-booking__nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.kwest-booking__range {
  min-width: 180px;
  text-align: center;
  color: #fff;
  font-size: 1rem;
}

.kwest-booking__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #333;
  color: #fff;
  text-decoration: none;
  font-size: 1.25rem;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s;
}

.kwest-booking__nav-btn:hover {
  background: #222;
  border-color: #555;
  color: #fff;
}

.kwest-booking__day-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kwest-booking__day-btn {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid #242424;
  border-radius: 10px;
  background: #141414;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.kwest-booking__day-btn:hover:not(:disabled) {
  background: #1b1b1b;
  border-color: #3a3a3a;
}

.kwest-booking__day-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.kwest-booking__day-btn-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.kwest-booking__day-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.kwest-booking__day-count {
  font-size: 0.88rem;
  color: #888;
  white-space: nowrap;
}

.kwest-booking__day-arrow {
  font-size: 1.35rem;
  line-height: 1;
  color: #666;
}

.kwest-booking__modal[hidden] {
  display: none !important;
}

.kwest-booking__modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.kwest-booking__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.kwest-booking__modal-dialog {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.kwest-booking__modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  appearance: none;
  border: 0;
  background: transparent;
  color: #aaa;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.kwest-booking__modal-close:hover {
  color: #fff;
}

.kwest-booking__modal-title {
  margin: 0 2rem 1rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.kwest-booking__modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kwest-booking__day-panel[hidden] {
  display: none !important;
}

.kwest-booking__time-group {
  border-top: 1px solid #1f1f1f;
  padding-top: 0.85rem;
}

.kwest-booking__times-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.kwest-booking__time-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #242424;
  border-radius: 10px;
  background: #141414;
}

.kwest-booking__time-row.is-disabled {
  opacity: 0.45;
}

.kwest-booking__time-value {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.kwest-booking__time-price {
  font-size: 0.88rem;
  color: #888;
  text-align: right;
}

.kwest-booking__time-row .kwest-booking__slot-btn {
  min-width: 132px;
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
}

body.kwest-modal-open {
  overflow: hidden;
}

body .booked-modal {
  z-index: 10100 !important;
  top: 0 !important;
  margin-top: 0 !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
}

/* Booked — модальное окно бронирования */

body .booked-modal .bm-overlay {
  background: rgba(0, 0, 0, 0.86) !important;
}

body .booked-modal .bm-window {
  display: flex !important;
  flex-direction: column !important;
  width: min(460px, calc(100vw - 2rem)) !important;
  max-height: min(90vh, 720px) !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #141414 !important;
  border: 1px solid #2a2a2a !important;
  border-radius: 16px !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65) !important;
  color: #ddd !important;
  overflow: hidden !important;
}

body .booked-modal .bm-window .close {
  position: absolute !important;
  top: 0.95rem !important;
  right: 0.95rem !important;
  z-index: 3 !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ccc !important;
  text-decoration: none !important;
}

body .booked-modal .bm-window .close:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

body .booked-modal .bm-window p.booked-title-bar {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 1.1rem 3.2rem 1.1rem 1.2rem !important;
  background: #181818 !important;
  border-bottom: 1px solid #262626 !important;
  border-radius: 0 !important;
}

body .booked-modal .bm-window p.booked-title-bar small {
  display: block !important;
  margin: 0 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #fff !important;
}

body .booked-modal .booked-form.booked-scrollable {
  flex: 1 1 auto !important;
  overflow: auto !important;
  padding: 1.15rem 1.2rem 1.25rem !important;
  background: #141414 !important;
}

body .booked-modal .booked-form p,
body .booked-modal .booked-form label,
body .booked-modal .booked-form .field-small-p {
  color: #b8b8b8 !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
}

body .booked-modal .booked-form .field-label {
  color: #fff !important;
  font-weight: 600 !important;
  margin-bottom: 0.35rem !important;
}

body .booked-modal #customerChoices {
  display: flex !important;
  gap: 1rem !important;
  flex-wrap: wrap !important;
  margin: 0 0 1rem !important;
  padding: 0.75rem 0.85rem !important;
  background: #101010 !important;
  border: 1px solid #262626 !important;
  border-radius: 10px !important;
}

body .booked-modal #customerChoices .field {
  margin: 0 !important;
}

body .booked-modal .checkbox-radio-block {
  padding: 0 !important;
}

body .booked-modal .checkbox-radio-block label {
  color: #eee !important;
  font-size: 0.92rem !important;
  top: 0 !important;
  padding-left: 0.45rem !important;
}

body .booked-modal input[type="radio"] {
  accent-color: #c0392b;
}

body .booked-modal .booked-appointments {
  background: #101010 !important;
  border: 1px solid #262626 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  padding: 0.95rem 1rem !important;
  margin: 0 0 1rem !important;
}

body .booked-modal .appointment-title {
  color: #fff !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  text-transform: none !important;
  margin-bottom: 0.35rem !important;
}

body .booked-modal .appointment-info {
  color: #ccc !important;
  font-size: 0.92rem !important;
  margin: 0 !important;
}

body .booked-modal .booked-appointment-details {
  border-bottom: 1px solid #242424 !important;
  padding-bottom: 0.75rem !important;
  margin-bottom: 0.75rem !important;
}

body .booked-modal .booked-form .field {
  margin-bottom: 0.85rem !important;
}

body .booked-modal .booked-form input.textfield,
body .booked-modal .booked-form input.large,
body .booked-modal .booked-form input[type="text"],
body .booked-modal .booked-form input[type="email"],
body .booked-modal .booked-form input[type="password"],
body .booked-modal .booked-form textarea,
body .booked-modal .booked-form select {
  width: 100% !important;
  background: #0a0a0a !important;
  border: 1px solid #333 !important;
  color: #f0f0f0 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  padding: 0.72rem 0.85rem !important;
  line-height: 1.35 !important;
}

body .booked-modal .booked-form input::placeholder {
  color: #666 !important;
}

body .booked-modal .booked-form input:-webkit-autofill,
body .booked-modal .booked-form input:-webkit-autofill:hover,
body .booked-modal .booked-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f0f0f0 !important;
  -webkit-box-shadow: 0 0 0 1000px #0a0a0a inset !important;
  box-shadow: 0 0 0 1000px #0a0a0a inset !important;
  border: 1px solid #333 !important;
}

body .booked-modal .booked-form .field:last-child {
  display: flex !important;
  gap: 0.65rem !important;
  flex-wrap: wrap !important;
  margin-top: 0.35rem !important;
  margin-bottom: 0 !important;
}

body .booked-modal input[type="submit"].button-primary,
body .booked-modal .booked-form .button-primary {
  flex: 1 1 180px !important;
  background: #fff !important;
  border: 1px solid #fff !important;
  color: #111 !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  line-height: 1.2 !important;
  padding: 0.72rem 1.1rem !important;
  height: auto !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

body .booked-modal input[type="submit"].button-primary:hover,
body .booked-modal .booked-form .button-primary:hover {
  background: #ececec !important;
  border-color: #ececec !important;
  color: #111 !important;
}

body .booked-modal .booked-form .button.cancel,
body .booked-modal .booked-form .button.booked-forgot-goback,
body .booked-modal button.cancel {
  flex: 1 1 120px !important;
  background: transparent !important;
  border: 1px solid #3a3a3a !important;
  color: #ccc !important;
  border-radius: 999px !important;
  font-size: 0.92rem !important;
  line-height: 1.2 !important;
  padding: 0.72rem 1.1rem !important;
  height: auto !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

body .booked-modal .booked-form .button.cancel:hover,
body .booked-modal .booked-form .button.booked-forgot-goback:hover,
body .booked-modal button.cancel:hover {
  background: #1b1b1b !important;
  border-color: #555 !important;
  color: #fff !important;
}

body .booked-modal .booked-form a.booked-forgot-password {
  color: #999 !important;
  font-size: 0.88rem !important;
}

body .booked-modal .booked-form a.booked-forgot-password:hover {
  color: #fff !important;
}

body .booked-modal hr {
  border-color: #262626 !important;
}

body .booked-modal .field-paid-service,
body .booked-modal .kwest-booking-addon {
  margin-top: 0.5rem;
}

body .booked-modal .field-paid-service.kwest-booking-paid-hidden {
  display: none !important;
}

body .booked-modal .kwest-booking-options {
  margin: 1rem 0 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #2a2a2a;
}

body .booked-modal .kwest-booking-addons {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

body .booked-modal .kwest-booking-addon {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid #333;
  border-radius: 10px;
  background: #141414;
  cursor: pointer;
  margin: 0;
}

body .booked-modal .kwest-booking-addon:hover {
  border-color: #444;
}

body .booked-modal .kwest-booking-addon input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #fff;
  flex-shrink: 0;
}

body .booked-modal .kwest-booking-addon__label {
  flex: 1;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  line-height: 1.35;
}

body .booked-modal .kwest-booking-addon__price {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  white-space: nowrap;
}

body .booked-modal .kwest-booking-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 1rem 0 0.25rem;
  border-top: 1px solid #2a2a2a;
}

body .booked-modal .kwest-booking-total__label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
}

body .booked-modal .kwest-booking-total__value {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

body .booked-modal .field-paid-service select,
body .booked-modal .kwest-booking-addon select {
  width: 100%;
  cursor: pointer;
}

body .booked-modal .kwest-players-input {
  max-width: 8rem;
  font-variant-numeric: tabular-nums;
}

body .booked-modal .cf-block .field:first-child .kwest-players-input {
  font-size: 1.05rem;
}

body .booked-modal .kwest-booking-addon .field-label {
  color: rgba(255, 255, 255, 0.85);
}

body .booked-modal .paid-variations {
  margin-top: 0.5rem;
}

body .booked-modal .paid-variations select {
  width: 100%;
}

body .woocommerce-checkout .booked-wc-checkout-section {
  color: rgba(255, 255, 255, 0.75);
}

.kwest-booking__day {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 0;
  border-top: 1px solid #1f1f1f;
}

.kwest-booking__day:first-child {
  border-top: 0;
}

.kwest-booking__day-label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.kwest-booking__day-date {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.kwest-booking__day-name {
  font-size: 0.95rem;
  color: #888;
  text-transform: capitalize;
}

.kwest-booking__slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.65rem;
}

.kwest-booking__slot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  min-width: 0;
}

.kwest-booking__slot-btn {
  appearance: none;
  border: 1px solid #333;
  background: #181818;
  color: #fff;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font-size: 0.88rem;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.kwest-booking__slot-btn:hover:not(:disabled) {
  background: #fff;
  color: #111;
  border-color: #fff;
}

.kwest-booking__slot.is-disabled .kwest-booking__slot-btn {
  opacity: 0.35;
  cursor: not-allowed;
}

.kwest-booking__slot-price,
.kwest-booking__slot-status {
  font-size: 0.8rem;
  text-align: center;
}

.kwest-booking__slot-price {
  color: #777;
}

.kwest-booking__slot-status {
  color: #666;
}

.kwest-booking__empty {
  color: #666;
  font-size: 0.95rem;
}

.kwest-booking-fallback {
  color: #aaa;
}

/* Route / contacts block */

.kwest-route__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.kwest-route__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kwest-route__list li {
  margin-bottom: 0.85rem;
  color: #bdbdbd;
}

.kwest-route__list strong {
  color: #fff;
}

.kwest-route__map {
  min-height: 280px;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kwest-route__map a {
  color: #fff;
  text-decoration: underline;
}

/* FAQ */

.kwest-faq-head {
  margin-bottom: 2rem;
}

.kwest-faq-head__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c0392b;
}

.kwest-faq-head__text {
  margin: 0.35rem 0 0;
  color: #888;
}

.kwest-faq {
  display: grid;
  gap: 0.75rem;
}

.kwest-faq__item {
  border: 1px solid #242424;
  border-radius: 12px;
  background: linear-gradient(180deg, #151515 0%, #101010 100%);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.kwest-faq__item.is-open {
  border-color: #3a3a3a;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.kwest-faq__question {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  text-align: left;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 600;
  padding: 1.15rem 1.2rem;
  cursor: pointer;
}

.kwest-faq__num {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: #c0392b;
}

.kwest-faq__icon {
  width: 14px;
  height: 14px;
  position: relative;
}

.kwest-faq__icon::before,
.kwest-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 2px;
  background: #aaa;
  transition: transform 0.2s, background 0.2s;
}

.kwest-faq__icon::after {
  transform: rotate(90deg);
}

.kwest-faq__item.is-open .kwest-faq__icon::after {
  transform: rotate(0deg);
  opacity: 0;
}

.kwest-faq__answer {
  display: none;
  padding: 0 1.2rem 1.15rem 3.35rem;
  color: #a8a8a8;
  line-height: 1.7;
}

.kwest-faq__item.is-open .kwest-faq__answer {
  display: block;
}

/* Contacts page */

.kwest-contacts-page {
  color: #ddd;
}

.kwest-contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.kwest-contacts-card,
.kwest-legal-card {
  background: #141414;
  border: 1px solid #242424;
  border-radius: 12px;
  padding: 1.75rem;
}

.kwest-contacts-card h2,
.kwest-legal-card h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1.35rem;
}

.kwest-contacts-card p,
.kwest-legal-card p {
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

.kwest-contacts-card a {
  color: #fff;
}

/* Личный кабинет (Booked profile) — тёмный стиль Kwest */

.kwest-account-page {
  color: #ddd;
  padding-bottom: 3rem;
}

.kwest-account-page .kwest-section__title {
  margin-bottom: 1.5rem;
}

.kwest-account-wrap {
  max-width: 920px;
  margin: 0 auto;
}

.kwest-account-page #booked-profile-page {
  background: #141414;
  border: 1px solid #242424;
  border-radius: 16px;
  overflow: hidden;
  color: #ddd;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

/* Шапка профиля */

.kwest-account-page #booked-profile-page .booked-profile-header {
  background: #141414 !important;
  border-bottom: 1px solid #2a2a2a !important;
  padding: 1.5rem 1.75rem;
}

.kwest-account-page #booked-profile-page .booked-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.kwest-account-page #booked-profile-page .booked-user-avatar img {
  border-radius: 50%;
  border: 2px solid #333;
}

.kwest-account-page #booked-profile-page .booked-profile-header h3 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}

.kwest-account-page #booked-profile-page .booked-profile-header h3 strong {
  font-weight: 700;
}

.kwest-account-page #booked-profile-page .booked-logout-button {
  display: inline-flex;
  align-items: center;
  margin-left: 0.65rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: normal;
  text-decoration: none !important;
  text-transform: none;
  vertical-align: middle;
  transition: background 0.2s, border-color 0.2s;
}

.kwest-account-page #booked-profile-page .booked-logout-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff !important;
}

/* Вкладки */

.kwest-account-page #booked-profile-page .booked-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 1rem 1.25rem;
  background: #111 !important;
  border: none !important;
  border-bottom: 1px solid #2a2a2a !important;
  list-style: none;
}

.kwest-account-page #booked-profile-page .booked-tabs li {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
}

.kwest-account-page #booked-profile-page .booked-tabs li a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid transparent !important;
  border-radius: 10px;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.kwest-account-page #booked-profile-page .booked-tabs li a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.kwest-account-page #booked-profile-page .booked-tabs li.active a,
.kwest-account-page #booked-profile-page .booked-tabs li.active a:hover {
  background: #1c1c1c !important;
  border-color: #333 !important;
  color: #fff !important;
}

.kwest-account-page #booked-profile-page .booked-tabs li a i {
  opacity: 0.85;
}

/* Контент вкладок */

.kwest-account-page #booked-profile-page .booked-tab-content {
  padding: 1.5rem 1.75rem 1.75rem;
  background: #141414;
}

.kwest-account-page #booked-profile-page .booked-form-notice {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid #333 !important;
  border-left: 3px solid #fff !important;
  border-radius: 10px;
  background: #1a1a1a !important;
  color: rgba(255, 255, 255, 0.88) !important;
  line-height: 1.55;
}

.kwest-account-page #booked-profile-page .booked-form-notice strong {
  color: #fff;
}

.kwest-account-page #booked-profile-page h4 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.kwest-account-page #booked-profile-page h4 .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.65rem;
  margin-right: 0.45rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 0.82rem;
  font-weight: 700;
}

.kwest-account-page #booked-profile-page .booked-no-margin,
.kwest-account-page #booked-profile-page .booked-profile-appt-list > p {
  color: rgba(255, 255, 255, 0.55);
}

/* Карточка записи */

.kwest-account-page #booked-profile-page .booked-profile-appt-list .appt-block {
  display: block;
  position: relative;
  margin: 0 0 0.85rem;
  padding: 1.15rem 1.25rem 1.1rem;
  border: 1px solid #2a2a2a !important;
  border-radius: 12px;
  background: #1b1b1b !important;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.kwest-account-page #booked-profile-page .appt-block .booked-icon {
  opacity: 0.65;
  margin-right: 0.25rem;
}

.kwest-account-page #booked-profile-page .appt-block strong {
  color: #fff;
  font-weight: 600;
}

.kwest-account-page #booked-profile-page .appt-block .status-block {
  position: static;
  display: inline-flex;
  align-items: center;
  float: right;
  margin: 0 0 0.5rem 0.75rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 999px;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.kwest-account-page #booked-profile-page .appt-block.pending .status-block {
  border-color: rgba(255, 196, 100, 0.45) !important;
  color: #ffc864 !important;
}

.kwest-account-page #booked-profile-page .appt-block.approved .status-block {
  border-color: rgba(140, 220, 160, 0.35) !important;
  color: #9fd9ad !important;
}

.kwest-account-page #booked-profile-page .appt-block .booked-show-cf {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
}

.kwest-account-page #booked-profile-page .appt-block .booked-show-cf:hover {
  color: #fff;
}

.kwest-account-page #booked-profile-page .cf-meta-values-hidden {
  margin-top: 0.5rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: #111;
  color: rgba(255, 255, 255, 0.75);
}

/* Кнопки записи */

.kwest-account-page #booked-profile-page .booked-cal-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #2a2a2a;
}

.kwest-account-page #booked-profile-page .appt-block .google-cal-button {
  display: inline-block;
}

.kwest-account-page #booked-profile-page .appt-block .google-cal-button > a,
.kwest-account-page #booked-profile-page .appt-block .pay,
.kwest-account-page #booked-profile-page .appt-block .edit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.55rem 1rem !important;
  border: none !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #111 !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  text-transform: none !important;
  transition: opacity 0.2s, transform 0.2s;
}

.kwest-account-page #booked-profile-page .appt-block .google-cal-button > a:hover,
.kwest-account-page #booked-profile-page .appt-block .pay:hover,
.kwest-account-page #booked-profile-page .appt-block .edit:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  color: #111 !important;
}

.kwest-account-page #booked-profile-page .appt-block a.cancel {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.55rem 1rem !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  text-transform: none !important;
}

.kwest-account-page #booked-profile-page .appt-block a.cancel:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #fff !important;
}

.kwest-account-page #booked-profile-page .booked-wc_status-text {
  display: inline-block;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

.kwest-account-page #booked-profile-page .booked-wc_status-text.paid {
  color: #9fd9ad;
}

/* Формы входа / профиля */

.kwest-account-page #booked-profile-page .booked-form,
.kwest-account-page #booked-profile-page .booked-form input[type="text"],
.kwest-account-page #booked-profile-page .booked-form input[type="email"],
.kwest-account-page #booked-profile-page .booked-form input[type="password"],
.kwest-account-page #booked-profile-page .booked-form textarea,
.kwest-account-page #booked-profile-page #booked-page-form input.text-input,
.kwest-account-page #booked-profile-page #booked-page-form input[type="password"] {
  color: #eee;
}

.kwest-account-page #booked-profile-page .booked-form input[type="text"],
.kwest-account-page #booked-profile-page .booked-form input[type="email"],
.kwest-account-page #booked-profile-page .booked-form input[type="password"],
.kwest-account-page #booked-profile-page .booked-form textarea,
.kwest-account-page #booked-profile-page #booked-page-form input.text-input,
.kwest-account-page #booked-profile-page #booked-page-form input[type="password"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #333;
  border-radius: 10px;
  background: #0a0a0a;
}

.kwest-account-page #booked-profile-page .booked-form input:focus,
.kwest-account-page #booked-profile-page #booked-page-form input:focus {
  border-color: #555;
  outline: none;
}

.kwest-account-page #booked-profile-page .booked-login-register,
.kwest-account-page #booked-profile-page #booked-page-form {
  padding: 0;
}

.kwest-account-page #booked-profile-page .booked-login-register label,
.kwest-account-page #booked-profile-page #booked-page-form label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.kwest-account-page #booked-profile-page input[type="submit"].button-primary,
.kwest-account-page #booked-profile-page .booked-form input.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.65rem 1.35rem !important;
  border: none !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #111 !important;
  font-weight: 600 !important;
  text-transform: none !important;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.kwest-account-page #booked-profile-page input[type="submit"].button-primary:hover,
.kwest-account-page #booked-profile-page .booked-form input.button-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  background: #fff !important;
  color: #111 !important;
}

.kwest-account-page #booked-profile-page .hint-p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
}

@media (max-width: 767px) {
  .kwest-account-page #booked-profile-page .booked-profile-header {
    padding: 1.15rem 1.1rem;
  }

  .kwest-account-page #booked-profile-page .booked-profile-header h3 {
    font-size: 0.95rem;
  }

  .kwest-account-page #booked-profile-page .booked-logout-button {
    display: inline-flex;
    margin: 0.65rem 0 0;
  }

  .kwest-account-page #booked-profile-page .booked-tabs {
    flex-direction: column;
    padding: 0.75rem;
  }

  .kwest-account-page #booked-profile-page .booked-tab-content {
    padding: 1.15rem 1.1rem 1.25rem;
  }

  .kwest-account-page #booked-profile-page .appt-block .status-block {
    float: none;
    margin: 0 0 0.65rem;
  }
}

@media (max-width: 991px) {
  .kwest-quest,
  .kwest-route__grid,
  .kwest-contacts-grid {
    grid-template-columns: 1fr;
  }

  .kwest-booking__time-row {
    grid-template-columns: 64px 1fr;
    grid-template-areas:
      "time price"
      "btn btn";
  }

  .kwest-booking__time-value {
    grid-area: time;
  }

  .kwest-booking__time-price {
    grid-area: price;
  }

  .kwest-booking__time-row .kwest-booking__slot-btn,
  .kwest-booking__time-row .kwest-booking__slot-status {
    grid-area: btn;
    width: 100%;
  }
}

@media (max-width: 575px) {
  .kwest-section {
    padding: 3rem 0;
  }

  .kwest-booking {
    padding: 1rem 0.75rem 1.25rem;
  }

  .kwest-faq__answer {
    padding-left: 1.2rem;
  }
}
