.v2-top {
  width: min(1180px, calc(100% - 24px));
  margin: 12px auto 0;
}

.v2 .v2-hero {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.v2-logo {
  display: block;
  width: auto;
  height: 54px;
  max-width: 70%;
  margin: 0 auto 10px;
}

.v2 .v2-hero .hero-copy {
  padding: 22px 18px 18px;
}

.v2 .v2-hero h1 {
  font-size: clamp(30px, 2.5vw, 46px);
}

.quiz-wrap {
  margin-top: 12px;
  scroll-margin-top: 12px;
}

.quiz-card {
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e3ddd4;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(26, 22, 16, 0.08);
  padding: 22px 18px 18px;
  max-width: 100%;
}

.quiz-card > .q-steps {
  min-width: 0;
  max-width: 100%;
  padding-inline: 8px;
}

.q-progress {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #5c564c;
  font-size: 14px;
}

.q-bar {
  height: 6px;
  margin: 10px 0 14px;
  border-radius: 99px;
  background: #ece7df;
  overflow: hidden;
}

.q-bar span {
  display: block;
  height: 100%;
  background: var(--gold);
  border-radius: inherit;
}

.quiz-card h2 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.15;
  text-align: center;
  overflow-wrap: break-word;
}

.q-consent {
  margin: 8px 2px 0;
  color: #1a1a1a;
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
}

.q-consent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.q-help {
  margin: 8px auto 18px;
  max-width: 100%;
  color: #5c564c;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
}

.q-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.q-photo,
.q-option {
  width: 100%;
  border: 1px solid #e3ddd4;
  border-radius: 16px;
  background: #fff;
  color: #1a1a1a;
  text-align: left;
  cursor: pointer;
}

.q-photo {
  padding: 0;
  overflow: hidden;
}

.q-photo img {
  display: block;
  width: 100%;
  height: 118px;
  object-fit: cover;
}

.q-photo span,
.q-option span {
  display: block;
}

.q-photo strong,
.q-option strong {
  display: block;
  font-weight: 400;
  font-size: 16px;
}

.q-photo small,
.q-option small {
  display: block;
  margin-top: 2px;
  color: #5c564c;
  font-size: 13px;
  line-height: 1.35;
}

.q-photo strong,
.q-photo small {
  padding: 0 12px;
}

.q-photo strong {
  padding-top: 10px;
}
.q-photo small {
  padding-bottom: 12px;
}

.q-photo.is-selected,
.q-option.is-selected {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
  background: #fbf7ee;
}

.q-other {
  grid-column: 1 / -1;
  padding: 14px 16px;
}

.q-options {
  display: grid;
  gap: 10px;
}

.q-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.q-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #c9c2b6;
  background: #fff;
}

.q-option.is-selected .q-mark {
  border-color: #16140f;
  background: radial-gradient(circle, #16140f 0 5px, #fff 6px 8px, #16140f 9px);
}

.q-back {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: #5c564c;
  font: inherit;
  cursor: pointer;
}

.q-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.q-row input {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #e3ddd4;
  border-radius: 14px;
  background: #fff;
  background-clip: padding-box;
  color: #1a1a1a;
  font: inherit;
  font-size: 16px;
  appearance: none;
  outline: none;
}

.q-row input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: none;
}

.q-row .btn {
  width: auto;
  max-width: 100%;
}

.q-fields {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.q-name {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.q-name input {
  min-width: 0;
}

.q-fields input,
.q-fields textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #e3ddd4;
  border-radius: 14px;
  background: #fff;
  color: #1a1a1a;
  font: inherit;
  font-size: 16px;
  appearance: none;
  outline: none;
}

.q-fields input:focus {
  outline: none;
  border-color: var(--gold);
}

.q-fields input.is-invalid,
.q-row input.is-invalid {
  border: 2px solid #b42318;
  background: #fff6f5;
}

.q-fields input.is-invalid:focus,
.q-row input.is-invalid:focus {
  outline: none;
  border-color: #b42318;
}

.q-fields textarea {
  min-height: 110px;
  resize: vertical;
}

.q-news,
.q-slots,
.q-offer {
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 14px;
  line-height: 1.4;
}

.q-news {
  background: #eef6ef;
  color: #1a1a1a;
}

.q-slots,
.q-offer {
  background: #fbf7ee;
  color: #8a6d24;
  font-size: 14px;
}

.q-offer {
  color: #1a1a1a;
}

.q-range {
  margin: 18px 0;
  padding: 16px;
  border-radius: 16px;
  background: #fbf7ee;
  text-align: center;
}

.q-range p:first-child {
  margin: 0;
  color: #5c564c;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.q-price {
  margin: 6px 0;
  color: #8a6d24;
  font-size: 36px;
}

.q-range p:last-child {
  margin: 0;
  color: #5c564c;
  font-size: 13px;
  line-height: 1.4;
}

.q-verify {
  color: #8a6d24;
  font-weight: 600;
}

.q-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.q-perks li {
  padding: 12px;
  border-radius: 14px;
  background: #f6f4f0;
  font-size: 14px;
}

.q-event {
  margin: 0 0 12px;
  text-align: center;
  font-size: 18px;
}

.q-build {
  margin: 16px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
  max-width: 22rem;
}

.q-build li {
  margin: 8px 0;
}

.q-news.is-outside {
  background: #f6f1e6;
}

.q-note {
  margin: 12px 0 0;
  color: #5c564c;
  font-size: 14px;
  text-align: center;
}

.q-error {
  margin: 8px 2px 0;
  color: #b42318;
  font-size: 16px;
  line-height: 1.35;
}

.q-turnstile {
  margin-top: 12px;
}

.q-submit {
  width: 100%;
  margin-top: 12px;
}

.q-done {
  text-align: center;
}

.q-check {
  width: 64px;
  height: 64px;
  margin: 8px auto 14px;
  border-radius: 50%;
  background: #eef6ef;
  color: #2f6b3a;
  display: grid;
  place-items: center;
  font-size: 28px;
}

.q-book {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e3ddd4;
  text-align: left;
}

.q-book h3 {
  text-align: center;
  font-size: 26px;
}

.q-calendar {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
  background: #fff;
  transform-origin: top left;
}

.quiz-card h2.q-book-note {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 400;
}

body.is-booking .v2-hero {
  display: none;
}

body.is-booking .v2-top {
  display: block;
  height: auto;
  width: min(520px, calc(100% - 24px));
  margin: 12px auto 28px;
}

body.is-booking .quiz-wrap,
body.is-booking .quiz-card {
  height: auto;
  min-height: 0;
  overflow: visible;
}

body.is-booking .quiz-card {
  padding: 14px 12px 12px;
}

body.is-booking .quiz-card > .q-steps {
  overflow: visible;
  flex: none;
  height: auto;
  padding-inline: 0;
}

body.is-booking .q-book {
  margin: 0;
  padding: 0;
  border: 0;
}

body.is-booking .q-calendar-slot {
  width: 100%;
  overflow: hidden;
  height: min(720px, calc(100dvh - 72px));
}

.q-dates {
  display: flex;
  gap: 8px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 6px;
}

.q-date {
  flex: 0 0 72px;
  min-height: 78px;
  border: 1px solid #e3ddd4;
  border-radius: 14px;
  background: #fff;
  color: #1a1a1a;
  font: inherit;
  cursor: pointer;
}

.q-date small,
.q-date em {
  display: block;
  color: #5c564c;
  font-style: normal;
  font-size: 12px;
}

.q-date strong {
  display: block;
  font-size: 22px;
  font-weight: 400;
}

.q-date.is-selected {
  border-color: var(--gold);
  background: #fbf7ee;
}

.q-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.q-times .q-option {
  display: block;
  padding: 12px;
  text-align: center;
}

.v2-promises {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 22px auto 22px;
  padding: 0;
  list-style: none;
  color: #5c564c;
}

.v2-promises li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v2-promises li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

@media (min-width: 960px) {
  .v2-top {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    height: calc(100dvh - 28px);
    margin: 14px auto;
  }

  .v2 .v2-hero,
  .quiz-wrap,
  .quiz-card {
    height: 100%;
    min-height: 0;
  }

  .v2 .v2-hero {
    overflow: hidden;
  }

  .v2 .v2-hero .hero-copy {
    min-height: 0;
    height: 100%;
    justify-content: center;
    padding: 24px 20px;
  }

  .quiz-wrap {
    margin-top: 0;
  }

  .quiz-card {
    display: flex;
    flex-direction: column;
    padding: 18px 18px 14px;
    overflow: hidden;
  }

  .quiz-card > .q-steps {
    flex: 1;
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    padding-inline: 8px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .quiz-card > .q-steps:has(.q-photos) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .q-done .q-check {
    width: 48px;
    height: 48px;
    margin: 0 auto 8px;
    font-size: 22px;
  }

  .q-range {
    margin: 10px 0;
    padding: 12px;
  }

  .q-price {
    font-size: 30px;
  }

  .q-book {
    margin-top: 14px;
    padding-top: 12px;
  }

  .q-book h3 {
    font-size: 22px;
  }

  .quiz-card h2 {
    font-size: clamp(22px, 2vw, 32px);
  }

  .q-help {
    margin: 6px auto 10px;
  }

  .q-photos {
    flex: 1;
    min-height: 0;
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

  .q-photo {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
  }

  .q-photo img {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 959px) {
  .quiz-wrap {
    height: calc(100svh - 16px);
  }

  .quiz-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .quiz-card > .q-steps {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .quiz-card > .q-steps:has(.q-photos) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .q-photos {
    flex: 1;
    min-height: 0;
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

  .q-photo {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
  }

  .q-photo img {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .q-row,
  .q-fields input,
  .q-fields textarea,
  .q-photo,
  .q-option {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .v2-logo {
    height: 46px;
  }
}
