.wrap { width: min(1320px, calc(100% - 80px)); }

.service-bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.service-bar .wrap { display: flex; justify-content: flex-end; }
.service-hours {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 33px;
  font-size: 13px;
  font-weight: 650;
}
.service-hours::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-red);
}
.service-hours-time { color: var(--red); font-variant-numeric: tabular-nums; white-space: nowrap; }
.service-hours:hover { text-decoration: underline; }
.service-hours:focus-visible { outline-offset: -2px; }
.section-more-secondary { margin-inline-start: 18px; }

:root { --page-tools-bottom: max(22px, env(safe-area-inset-bottom)); }
.consultation-shortcut {
  position: fixed;
  z-index: 4;
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(var(--page-tools-bottom) + 132px);
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #5e397b;
  box-shadow: 0 3px 9px rgb(55 28 83 / .28);
  color: #fff;
}
.consultation-shortcut:is(:hover, :focus-visible) { background: #46245f; }
.consultation-icon {
  position: relative;
  width: 18px;
  height: 22px;
  margin-inline-end: 4px;
  border: 2px solid currentColor;
  border-radius: 3px;
  background: linear-gradient(currentColor, currentColor) 3px 5px / 7px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 3px 10px / 5px 2px no-repeat;
}
.consultation-icon::after {
  content: "";
  position: absolute;
  right: -9px;
  bottom: 1px;
  width: 17px;
  height: 5px;
  clip-path: polygon(0 50%, 22% 0, 100% 0, 100% 100%, 22% 100%);
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, currentColor 70%, #ccb4e0 70%);
  transform: rotate(-48deg);
}
.consultation-shortcut-label {
  position: absolute;
  right: calc(100% + 8px);
  padding: 4px 8px;
  border-radius: 5px;
  visibility: hidden;
  background: #342451;
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  pointer-events: none;
}
.consultation-shortcut:focus-visible .consultation-shortcut-label { visibility: visible; }
@media (hover: hover) {
  .consultation-shortcut:hover .consultation-shortcut-label { visibility: visible; }
}

.page-tools {
  position: fixed;
  z-index: 4;
  right: max(14px, env(safe-area-inset-right));
  bottom: var(--page-tools-bottom);
  width: 102px;
  height: 96px;
  filter: drop-shadow(0 3px 4px rgb(52 29 84 / .36)) drop-shadow(0 0 6px rgb(176 135 248 / .48));
  pointer-events: none;
}
.page-tools::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #7759aa;
}
.page-tools button {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  pointer-events: auto;
}
.page-tools [data-page-top] {
  clip-path: polygon(50% 0, 73.6% 47.2%, 50% 61%, 26.4% 47.2%);
  background: linear-gradient(152deg, #f9f5ff 14%, #decaff 37%, #a884e1 62%);
}
.page-tools [data-history="back"] {
  clip-path: polygon(25.8% 48.4%, 49.4% 62%, 49.4% 100%, 0 100%);
  background: linear-gradient(127deg, #fcf8ff 42%, #d2baf9 59%, #ab86e3 75%);
}
.page-tools [data-history="forward"] {
  clip-path: polygon(74.2% 48.4%, 100% 100%, 50.6% 100%, 50.6% 62%);
  background: linear-gradient(232deg, #e5d4ff 42%, #b795ed 64%, #8e65cc 93%);
}
.page-tools button:focus-visible { filter: brightness(1.23); }
.page-tools button:not(:disabled):active { filter: brightness(1.07); }
.page-tools button:disabled {
  filter: saturate(.25) brightness(.9);
  cursor: default;
}
.page-tools-label {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  translate: -50% 0;
  visibility: hidden;
  padding: 5px 9px;
  border-radius: 5px;
  background: #342451;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}
.page-tools:not(:has(button:hover)) button:focus-visible + .page-tools-label { visibility: visible; }
@media (hover: hover) {
  .page-tools button:not(:disabled):hover { filter: brightness(1.23); }
  .page-tools button:hover + .page-tools-label { visibility: visible; }
}

.consultation-section { background: var(--paper); }
.consultation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  align-items: start;
  gap: clamp(20px, 5vw, 76px);
}
.consultation-layout .section-heading { margin-bottom: 0; }
.consultation-contact {
  width: min(100%, 256px);
  margin: clamp(24px, 5vw, 56px) auto 0;
  text-align: center;
}
.consultation-contact img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.consultation-contact figcaption { margin-top: 7px; color: var(--muted); font-size: 14px; }
.consultation-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  padding: clamp(16px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.consultation-wide { grid-column: 1 / -1; }
.consultation-field,
.consultation-form label { display: grid; gap: 4px; font-weight: 650; }
.consultation-form :is(input, select, textarea) {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #aabbb9;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.consultation-form textarea { resize: vertical; }
.consultation-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.consultation-form button {
  min-height: 44px;
  padding: 7px 19px;
  border: 0;
  border-radius: 5px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.consultation-form button:disabled { opacity: .65; cursor: wait; }
.consultation-privacy, .consultation-feedback { color: var(--muted); font-size: 14px; }
.consultation-feedback.is-error { color: var(--red); }

.faq-layout { align-items: start; }
.news-link a {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px 22px 8px;
}
.news-link a:hover h3 { color: var(--red); }
.news-link a:focus-visible { outline-offset: -3px; }
.news-link h3 { font-size: 17px; overflow-wrap: anywhere; }
.news-link .news-tag { justify-self: start; }
.news-link p { padding-inline: 128px 22px; overflow-wrap: anywhere; }
.news-article { max-width: 940px; overflow-wrap: anywhere; }
.news-article h1 { margin-top: 8px; font-size: clamp(27px, 4vw, 46px); line-height: 1.25; }
.news-article-body { margin-block: 25px 32px; font-size: 17px; line-height: 1.8; }
.news-article-body :is(p, div, ul, ol, blockquote) { margin-block: 0 .9em; }
.news-article-body :is(h2, h3) { margin: 1.1em 0 .5em; line-height: 1.4; }
.news-article-body :is(ul, ol) { padding-inline-start: 1.5em; }
.news-article-body blockquote { margin-inline: 0; padding-inline-start: 15px; border-inline-start: 3px solid var(--line); }
@media (max-width: 680px) {
  .news-link a { grid-template-columns: 68px minmax(0, 1fr) auto; gap: 7px; padding-inline: 12px; }
  .news-link p { padding-inline: 12px; }
}
.faq-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-top: 16px;
  border-radius: 9px;
  object-fit: cover;
  object-position: center 58%;
}

@media (hover: hover) {
  .site-nav > a:hover, .site-nav .exam-menu-link:hover {
    background: var(--rose);
    border-radius: 5px;
    box-shadow: 0 0 0 6px var(--rose);
  }
  .site-nav .nav-about:hover { box-shadow: 0 2px 8px rgb(169 42 37 / .16); }
  .hero-actions a:hover, .inner-button:hover {
    box-shadow: 0 5px 12px rgb(1 31 36 / .22);
    transform: translateY(-2px);
  }
  .topic-menu a:hover { box-shadow: inset 0 -2px var(--brand-red); }
  .topic-route-links a:hover { box-shadow: inset 0 0 0 1px #d28b83; }
  .disclosure summary:hover, .news-item summary:hover { background: var(--rose); }
  .exam-types a:hover { box-shadow: inset 0 -2px var(--card-accent); }
  .news-filter:hover { background: var(--rose); }
  .news-filter[aria-pressed="true"]:hover { background: #86231f; }
}
.hero-actions a:active, .inner-button:active { transform: translateY(1px); }

.reasons-section { background: var(--navy); color: #fff; }
.reasons-section .section-heading p { color: #d5e5e5; }
.reasons-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.reason-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid #4a696c;
  border-radius: 10px;
  background: #12343a;
  color: #d5e5e5;
  font-size: 15px;
}
.reason-card strong { color: #fff; font-size: 19px; line-height: 1.4; }
.reason-card .reason-link { margin-top: auto; color: #ffc6bd; font-size: 14px; font-weight: 650; }
.reason-card:hover { background: #1d4349; border-color: #ffc6bd; }
.reason-card:hover .reason-link { text-decoration: underline; }
.reason-card:focus-visible { outline-color: #ffc6bd; }

.support-note {
  margin-top: 16px;
  padding: 13px 16px;
  border-inline-start: 3px solid var(--brand-red);
  border-radius: 0 7px 7px 0;
  background: var(--rose);
  color: var(--ink);
  font-size: 14px;
}
.support-note p + p { margin-top: 4px; }
.support-note strong + span { color: var(--red); font-weight: 750; }
.topic-section--dark .support-note { background: #173c41; color: #e2eded; }
.topic-support { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.carousel-slide, .column-banner { position: relative; isolation: isolate; }
.carousel-slide { --slide-color: #a72a26; background: var(--slide-color); }
.slide-exams { --slide-color: #092a34; }
.slide-courses { --slide-color: #892a2e; }
.slide-resources { --slide-color: #08272a; }
.carousel .hero-art { inset: 0 0 0 29%; background: var(--slide-color); }
.carousel .hero-art img, .column-banner-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel .hero-art img { object-position: center 54%; }
.carousel .hero-art::after {
  background: linear-gradient(90deg, var(--slide-color), color-mix(in srgb, var(--slide-color) 89%, transparent) 15%, transparent 70%);
}
.carousel .hero-inner { min-height: clamp(550px, 40vw, 670px); padding-block: 86px; }
.carousel .hero-copy { max-width: 705px; }
.carousel h2 {
  margin: 15px 0 22px;
  font-size: clamp(48px, 5.4vw, 82px);
  line-height: 1.13;
  font-weight: 800;
  letter-spacing: .01em;
}
.carousel .hero-description { max-width: 470px; color: #fff3ef; }
.exam-card-photo {
  display: block;
  width: calc(100% + 52px);
  max-width: none;
  height: clamp(145px, 15vw, 225px);
  margin: -25px -26px 23px;
  object-fit: cover;
  object-position: center 53%;
}
.institution-card .exam-card-photo { object-position: center 27%; }

.column-banner {
  background: var(--navy);
  color: #fff;
}
.column-banner-art {
  position: absolute;
  inset: 0 0 0 17%;
  z-index: -1;
}
.column-banner-art img { object-position: center 54%; }
.column-banner-art img[src$="banner-courses.webp"] { object-position: center 33%; }
.column-banner-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy), rgb(1 31 36 / .9) 17%, rgb(1 31 36 / .44) 53%, rgb(1 31 36 / .14));
}
.column-banner > .wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(350px, 31vw, 475px);
  padding-block: 46px;
}
.column-banner h1 { font-size: clamp(38px, 5.2vw, 69px); }
.column-banner p { color: #e8f2f2; font-size: 17px; max-width: 610px; }
.column-banner .breadcrumbs { color: #e2eded; }
.column-banner .breadcrumbs a:hover { color: #ffc2bc; }
.column-banner a:focus-visible { outline-color: #ffc2bc; }
.column-banner .topic-overview {
  background: rgb(1 31 36 / .81);
  border: 1px solid #658084;
}
.column-banner .inner-button { background-color: #a92a25; border-color: #a92a25; }
.column-banner .inner-button:hover { background-color: #8f211c; border-color: #8f211c; }
.column-banner .inner-button--quiet { background: #fff; border-color: #fff; }
.column-banner .inner-button--quiet:hover { background: var(--rose); border-color: var(--rose); }

body:has(.column-banner) .section { padding-block: 74px; }
body:has(.column-banner) .section-heading h2 { font-size: clamp(29px, 3.5vw, 43px); }
.feature-split {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(22px, 4vw, 59px);
}
.feature-split > * { min-width: 0; }
.feature-split > figure { margin: 0; }
.feature-split > figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}
.feature-split > figure figcaption { margin-top: 7px; color: var(--muted); font-size: 13px; }
.feature-split .section-heading { margin-bottom: 17px; }
.feature-split > .course-path { align-self: stretch; }
.feature-split .course-stages a { display: block; border-radius: 3px; }
.feature-split .course-stages a:hover { color: #ffbeb5; }
.feature-split .course-stages a:focus-visible { outline-color: #fff; }
.feature-split .course-stages li:focus-within, .feature-split .course-stages li:hover { background: #24484e; }
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.course-stage-group .editorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.course-stage-group + .course-stage-group { margin-top: 28px; }
.course-stage-group > h3 { margin-bottom: 10px; font-size: clamp(20px, 2.2vw, 26px); }
.editorial-card {
  min-width: 0;
  padding: clamp(19px, 2.3vw, 31px);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand-red);
  border-radius: 10px;
  scroll-margin-top: 10px;
}
.editorial-card:target { border-color: var(--red); box-shadow: 0 0 0 3px #f3d9d5; }
.editorial-card h3, .editorial-card h4 { margin: 4px 0 10px; font-size: 22px; line-height: 1.35; }
.editorial-kicker { color: var(--red); font-size: 14px; font-weight: 750; }
.editorial-card p:not(.editorial-kicker), .editorial-card li { color: var(--muted); }
.editorial-list { padding-left: 1.25em; color: var(--muted); }
.editorial-list li + li { margin-top: 7px; }
.editorial-list strong { color: var(--ink); }
.editorial-card a:not(.inner-button) { color: var(--red); font-weight: 650; }
.editorial-card a:not(.inner-button):hover { text-decoration: underline; }
.editorial-card .disclosure-list { margin-top: 12px; }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 48px); }
  .carousel .hero-art { left: 23%; }
  .feature-split .course-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-support { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reasons-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .exam-card-photo { width: calc(100% + 38px); margin-inline: -19px; }
  .editorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .carousel .hero-inner { min-height: 546px; padding-block: 40px 205px; }
  .carousel .hero-art { inset: auto 0 0; height: 57%; }
  .carousel .hero-art::after {
    background: linear-gradient(180deg, var(--slide-color), color-mix(in srgb, var(--slide-color) 55%, transparent) 33%, transparent 82%);
  }
  .carousel h2 { margin-block: 13px 14px; font-size: clamp(39px, 8.6vw, 58px); }
  .faq-photo { max-height: 150px; }
  :root { --page-tools-bottom: max(12px, env(safe-area-inset-bottom)); }
  .consultation-layout, .consultation-form { grid-template-columns: 1fr; }
  .consultation-contact { width: min(100%, 222px); margin-top: 20px; }
  .consultation-in-view .consultation-shortcut:not(:focus-visible),
  .consultation-in-view .page-tools:not(:focus-within) { visibility: hidden; }
  .consultation-in-view .page-tools:not(:focus-within) .page-tools-label { visibility: hidden; }
  .exam-card-photo { height: 155px; margin-bottom: 17px; }
  .column-banner > .wrap { min-height: 330px; padding-block: 33px; }
  .column-banner-art { inset: 0; }
  .column-banner-art::after { background: linear-gradient(90deg, rgb(1 31 36 / .94), rgb(1 31 36 / .58) 82%); }
  .column-banner p { font-size: 15px; }
  .column-banner .topic-overview { background: rgb(1 31 36 / .88); }
  body:has(.column-banner) .section { padding-block: 48px; }
  .feature-split, .editorial-grid, .course-stage-group .editorial-grid { grid-template-columns: 1fr; }
  .editorial-grid { gap: 12px; }
  .inner-grid.topic-support { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reasons-grid { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 360px) {
  .carousel h2 { font-size: 35px; }
  .carousel .hero-actions { gap: 8px; }
  .carousel .hero-actions a { gap: 7px; padding-inline: 10px; font-size: 14px; }
  .inner-grid.topic-support { grid-template-columns: 1fr; }
}
