#pieteikties,
#par,
#ko-daru,
#buj,
#kontakti {
  scroll-margin-top: 90px;
}

.hero__visual img {
  object-position: 50% 18%;
}

.page-book {
  background: var(--grey);
  color: var(--black);
  padding-top: clamp(70px, 11vh, 140px);
  padding-bottom: clamp(70px, 11vh, 140px);
}

.page-book .lbl {
  color: var(--mut-l);
}

.book-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  margin-top: 28px;
}

.book-intro h2 {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.96;
  font-size: clamp(32px, 4.6vw, 64px);
  max-width: 11ch;
}

.book-intro p {
  margin-top: 14px;
  color: #2c3644;
  max-width: 42ch;
  font-size: clamp(15px, 1.2vw, 18px);
}

.quiz {
  background: #fff;
  border: 1px solid rgba(13, 19, 28, 0.12);
  padding: clamp(22px, 3vw, 36px);
  color: var(--black);
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.quiz-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
}

.quiz-bar i {
  flex: 1;
  height: 3px;
  background: rgba(13, 19, 28, 0.12);
}

.quiz-bar i.is-on {
  background: var(--blue-deep);
}

.quiz-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mut-l);
}

.quiz h3 {
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 0 22px;
  max-width: 18ch;
}

.quiz-hint {
  margin: -12px 0 20px;
  color: #2c3644;
  font-size: 0.92rem;
}

.quiz-opts {
  display: grid;
  gap: 8px;
}

.quiz-opt {
  text-align: left;
  border: 1.5px solid rgba(13, 19, 28, 0.14);
  border-radius: 14px;
  padding: 16px 18px;
  display: grid;
  gap: 4px;
  background: #fff;
}

.quiz-opt b {
  font-size: 1rem;
  font-weight: 700;
}

.quiz-opt small {
  color: var(--mut-l);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quiz-opt:hover,
.quiz-opt.is-on {
  border-color: var(--blue-deep);
  background: #e8eef6;
}

.quiz-field input {
  width: 100%;
  border: 0;
  border-bottom: 2px solid rgba(13, 19, 28, 0.2);
  border-radius: 0;
  padding: 12px 0;
  font-size: 1.35rem;
  font-weight: 600;
  background: transparent;
}

.quiz-field input:focus {
  outline: none;
  border-bottom-color: var(--blue-deep);
}

.quiz-cal {
  margin-top: 4px;
}

.quiz-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.quiz-cal-head b {
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-transform: capitalize;
}

.quiz-cal-head button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(13, 19, 28, 0.18);
  background: #fff;
  font-size: 1.4rem;
  line-height: 1;
}

.quiz-cal-week,
.quiz-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.quiz-cal-week span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mut-l);
  padding-bottom: 4px;
}

.quiz-cal-day,
.quiz-cal-empty {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 0;
  background: transparent;
  font-weight: 700;
}

.quiz-cal-day.is-open {
  background: #eef2f7;
}

.quiz-cal-day.is-on {
  background: var(--blue-deep);
  color: #f2f6fb;
}

.quiz-cal-day:disabled {
  opacity: 0.28;
  cursor: default;
}

.quiz-cal-day.is-open:hover {
  background: #d9e3ef;
}

.quiz-cal-day.is-on:hover {
  background: var(--blue-deep);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 28px;
}

.quiz .btn-accent,
.quiz .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 16px 22px;
  border-radius: 999px;
}

.quiz .btn-accent {
  background: var(--blue-deep);
  color: #f2f6fb;
}

.quiz .btn-accent:disabled {
  opacity: 0.45;
}

.quiz .btn-ghost {
  background: transparent;
  color: var(--black);
  border: 1px solid rgba(13, 19, 28, 0.28);
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  font-weight: 500;
  color: #2c3644;
}

.check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: 0 0 18px;
  accent-color: var(--blue-deep);
}

.check a {
  color: var(--blue-deep);
  text-decoration: underline;
}

.form-error {
  color: #9b2c2c;
  background: #fdecec;
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 14px;
}

.tiny {
  color: var(--mut-l);
  font-size: 0.82rem;
  margin-top: 14px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.page-book .acc {
  padding: 0;
  margin-top: 28px;
}

.page-book .acc details {
  border-top-color: rgba(13, 19, 28, 0.18);
}

.page-book .acc p {
  color: #2c3644;
}

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(13, 19, 28, 0.92);
  display: none;
}

.mobile-cta a {
  width: 100%;
  display: flex;
  justify-content: center;
  background: var(--blue-deep);
  color: #f2f6fb;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 16px 22px;
  border-radius: 999px;
}

.mobile-cta.is-hidden {
  display: none !important;
}

@media (max-width: 760px) {
  .mobile-cta {
    display: block;
  }
  .book-layout {
    grid-template-columns: 1fr;
  }
  .quiz {
    min-height: 0;
  }
}
