
.res {
  --radius-block: 0.5rem;
  --radius-inner: 0.35rem;
}
.res main > section {
  padding-block: var(--space-lg);
  scroll-margin-top: 4.2rem;
}

.res-hero {
  padding-block: var(--space-lg) var(--space-md) !important;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 108, 87, 0.09), transparent 45%),
    radial-gradient(circle at 0 100%, rgba(45, 169, 137, 0.08), transparent 40%);
}

.res-hero h1 {
  max-width: 16ch;
}

.res-hero .lede {
  margin-bottom: var(--space-md);
}

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}

.jump a:hover {
  border-color: var(--navy);
}

.jump .jump__cta {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
}

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--coral);
  margin: 0 0 0.35rem;
}

.section-lede {
  color: var(--muted);
  margin: -0.6rem 0 var(--space-md);
  max-width: 60ch;
}

.section-note {
  color: var(--muted);
  font-size: 0.94rem;
  margin: var(--space-sm) 0;
  max-width: 62ch;
}

.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.fine {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0.6rem 0 0;
}

.tests-acc,
.courses-acc {
  display: grid;
  gap: 0.7rem;
}

details > summary {
  list-style: none;
  cursor: pointer;
}

details > summary::-webkit-details-marker {
  display: none;
}

.test {
  border: 1px solid var(--line);
  border-radius: var(--radius-block);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  scroll-margin-top: 4.2rem;
}

.test summary {
  position: relative;
  display: grid;
  gap: 0.15rem;
  padding: 1.05rem 3.4rem 1.05rem 1.2rem;
}

.test summary::after,
.course-item summary::after {
  content: "";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  width: 1.9rem;
  height: 1.9rem;
  margin-top: -0.95rem;
  border-radius: 50%;
  background:
    linear-gradient(var(--paper), var(--paper)) center / 0.75rem 2px no-repeat,
    linear-gradient(var(--paper), var(--paper)) center / 2px 0.75rem no-repeat,
    var(--coral);
  transition: transform 0.25s var(--ease);
}

.test[open] summary::after,
.course-item[open] summary::after {
  transform: rotate(45deg);
}

.test__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.15;
  color: var(--navy);
}

.test__partner {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  opacity: 0.8;
}

.test__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin-top: 0.35rem;
  font-size: 0.86rem;
}

.test__fee {
  font-weight: 700;
  color: var(--coral-deep);
}

.test__next {
  color: var(--muted);
}

.test__body {
  padding: 0 1.2rem 1.3rem;
  border-top: 1px solid var(--line);
}

.test__body h3,
.course-item__body h3 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin: 1.3rem 0 0.55rem;
}

.test__body p {
  margin: 0 0 0.6rem;
}

.test__cols {
  display: grid;
  gap: 0 var(--space-md);
}

.dates {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.dates li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}

.dates span {
  text-transform: capitalize;
  color: var(--ink);
}

.dates b {
  color: var(--navy);
  white-space: nowrap;
}

.dates-none {
  color: var(--navy);
  font-weight: 600;
}

.fee b {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--navy);
}

.steps {
  margin: 0 0 0.8rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.55rem;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 1.9rem 1fr;
  gap: 0.6rem;
  align-items: start;
  font-size: 0.96rem;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--ice);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
}

.callout {
  padding: 0.8rem 1rem;
  background: #fdf8ea;
  border-radius: var(--radius-inner);
  font-size: 0.9rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.9rem 0 0.4rem;
}

.actions .btn {
  min-height: 3rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.93rem;
}

.ext {
  margin-left: 0.4rem;
  font-weight: 500;
}

.tip {
  margin-top: 0.4rem;
}

.doc-row,
.video-row {
  display: grid;
  gap: 0.5rem;
}

.doc,
.video {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-inner);
  background: var(--paper);
  color: var(--navy);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.doc:hover,
.video:hover {
  border-color: var(--navy);
  transform: translateY(-1px);
}

.doc__icon {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--paper);
  background: var(--coral);
  border-radius: 0.35rem;
  padding: 0.3rem 0.4rem;
}

.doc__size,
.video__src {
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
}

.doc--main {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
}

.doc--main .doc__size {
  color: rgba(255, 255, 255, 0.7);
}

.video__play {
  width: 1.9rem;
  height: 1.35rem;
  border-radius: 0.2rem;
  background:
    conic-gradient(from 90deg at 40% 50%, transparent 0 0) ,
    var(--navy);
  position: relative;
}

.video__play::after {
  content: "";
  position: absolute;
  left: 0.72rem;
  top: 0.35rem;
  border-left: 0.55rem solid var(--paper);
  border-top: 0.33rem solid transparent;
  border-bottom: 0.33rem solid transparent;
}

.keep {
  margin-top: var(--space-md);
  padding: var(--space-sm);
  border-radius: var(--radius-block);
  background: var(--ice);
}

.keep__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  margin: 0 0 0.2rem;
}

.keep > p:nth-child(2) {
  margin: 0 0 0.9rem;
  color: var(--ink);
}

.prep-grid {
  display: grid;
  gap: var(--space-sm);
}

.prep {
  position: relative;
  padding: var(--space-sm);
  border-radius: var(--radius-block);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.prep::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 0.3rem;
  background: var(--coral);
}

#prep-ielts::before {
  background: var(--teal);
}

.prep p {
  margin: 0 0 0.6rem;
}

.prep__format {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
}

.prep__fee {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.8rem;
}

.prep__fee b {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--navy);
}

.prep__fee span {
  font-size: 0.8rem;
  color: var(--muted);
}

.course-item {
  border-bottom: 1px solid var(--line);
}

.course-item summary {
  position: relative;
  padding: 1rem 3.4rem 1rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
}

.course-item summary::after {
  right: 0;
  width: 1.7rem;
  height: 1.7rem;
  margin-top: -0.85rem;
  background:
    linear-gradient(var(--navy), var(--navy)) center / 0.7rem 2px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 2px 0.7rem no-repeat,
    var(--ice);
}

.course-item__body {
  padding-bottom: 1.1rem;
}

.course-item__body p {
  margin: 0 0 0.6rem;
}

.facts {
  margin: 0 0 0.4rem;
  padding-left: 1.1rem;
  color: var(--ink);
  font-size: 0.93rem;
}

.facts li::marker {
  color: var(--coral);
}

#brochureDoc {
  margin-top: var(--space-sm);
}

.resources-grid {
  display: grid;
  gap: var(--space-sm);
}

.res-card h3 {
  margin-bottom: 0.6rem;
}

.res-card .video-row {
  margin-top: 0.5rem;
}

#stay {
  background: var(--navy);
  color: var(--paper);
  border-radius: var(--radius-block);
  margin-block: var(--space-md);
  border-bottom: 0;
}

#stay h2,
#stay .fine a {
  color: var(--paper);
}

#stay .kicker {
  color: var(--gold);
}

#stay .section-lede,
#stay .fine {
  color: rgba(255, 255, 255, 0.75);
}

.lead {
  display: grid;
  gap: 1rem;
  max-width: 38rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  border: 0;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.field legend {
  margin-bottom: 0.5rem;
  padding: 0;
}

.field input {
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
  min-height: 3.2rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-inner);
  border: 1px solid transparent;
  background: var(--paper);
  color: var(--ink);
}

.field input:focus-visible {
  outline: 2px solid var(--gold);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  min-height: 2.7rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--paper);
  font-size: 0.88rem;
  font-weight: 500;
}

.chip[aria-pressed="true"] {
  background: var(--coral);
  border-color: var(--coral);
  font-weight: 600;
}

.consent {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.93rem;
}

.consent input {
  width: 1.4rem;
  height: 1.4rem;
  margin: 0.1rem 0 0;
  accent-color: var(--coral);
}

.form-msg {
  min-height: 1.4em;
  margin: 0;
  font-weight: 600;
}

.form-msg.is-error {
  color: var(--gold);
}

.form-msg.is-ok {
  color: #7fe0c4;
}

.lead .btn {
  justify-self: start;
}

.lead .btn:disabled {
  opacity: 0.6;
}

.help h2 {
  margin-bottom: var(--space-sm);
}

.help__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.help__more {
  margin: var(--space-sm) 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.noscript {
  max-width: 62rem;
  margin: 1rem auto;
  padding: 0 var(--space-md);
}

@media (max-width: 34rem) {
  .res main > section {
    padding-inline: 1rem;
  }

  #stay {
    border-radius: 0;
  }

  .help__actions .btn,
  .lead .btn {
    flex: 1 1 100%;
    justify-self: stretch;
  }
}

@media (min-width: 44rem) {
  .test__cols {
    grid-template-columns: 1.3fr 1fr;
  }

  .prep-grid,
  .resources-grid {
    grid-template-columns: 1fr 1fr;
  }

  .doc-row {
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  }

  #stay {
    padding-inline: var(--space-lg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .test summary::after,
  .course-item summary::after,
  .doc,
  .video {
    transition: none;
  }
}

.promo {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-block);
  background: var(--gold);
  color: var(--navy-deep);
}

.promo--compact {
  margin: 0 0 var(--space-sm);
}

.promo__title {
  margin: 0 0 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
}

.promo__code {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.7rem;
  margin: 0 0 0.4rem;
}

.promo__code span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.promo__code b {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.01em;
  user-select: all;
}

.promo__body {
  margin: 0 !important;
  font-size: 0.9rem;
}

.promo__link {
  color: var(--navy-deep);
  font-weight: 600;
  font-size: 0.9rem;
}

.test__promo {
  padding: 0 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
}
