/* Generic sections */
.section {
  padding-block: 72px;
}

.section--alt {
  background: var(--surface-alt);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}

.section-header__copy {
  max-width: 720px;
}

.section-header h2 {
  margin-bottom: 15px;
}

.section-header p {
  margin-bottom: 0;
  color: var(--ink-600);
  font-size: 1.05rem;
}

.prose {
  color: var(--ink-700);
  font-size: 1.05rem;
}

.prose > * + * {
  margin-top: 1.45em;
}

.prose h2,
.prose h3 {
  margin-top: 2.3em;
  margin-bottom: 0.75em;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 0.55em;
}

.lead-paragraph {
  color: var(--navy-800);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 560;
  line-height: 1.55;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 72px;
  align-items: start;
}

.content-grid--no-sidebar {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}

.content-grid--contacts {
  grid-template-columns: minmax(270px, 350px) minmax(0, 1fr);
  gap: 52px;
}

.sticky-panel {
  position: sticky;
  top: 80px;
  align-self: start;
}

.card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.card__body {
  padding: 24px;
}

.card--dark {
  color: rgba(255, 255, 255, 0.8);
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.card--dark h2,
.card--dark h3,
.card--dark a {
  color: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.feature-card::after,
.card-obor::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  content: "";
  background: var(--accent, var(--blue-600));
}

.feature-card__number {
  margin-bottom: 18px;
  color: var(--accent, var(--blue-600));
  font-size: 2rem;
  font-weight: 820;
  line-height: 1;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--ink-600);
}

.feature-card__link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding: 10px 0 0;
  color: var(--blue-700);
  background: transparent;
  border: 0;
  font-weight: 760;
  cursor: pointer;
}

.feature-card__link:hover,
.feature-card__link:focus-visible {
  color: var(--blue-600);
}

.feature-card__link:hover .feature-card__link-label,
.feature-card__link:focus-visible .feature-card__link-label {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.feature-card__link:focus-visible {
  outline: 3px solid var(--action-focus);
  outline-offset: 4px;
  border-radius: 4px;
}

.poster-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
}

html.lightbox-open,
body.lightbox-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.poster-lightbox[open] {
  display: grid;
  place-items: center;
}

.poster-lightbox::backdrop {
  background: rgba(3, 12, 24, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.poster-lightbox__close {
  position: fixed;
  z-index: 2;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: rgba(7, 20, 38, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.poster-lightbox__close:hover,
.poster-lightbox__close:focus-visible {
  color: #fff;
  background: var(--blue-600);
  border-color: #fff;
}

.poster-lightbox__close:focus-visible {
  outline: 3px solid var(--action-focus);
  outline-offset: 3px;
}

.poster-lightbox__image {
  display: block;
  width: auto;
  max-width: min(92vw, 900px);
  max-height: 92vh;
  margin: 0;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52);
}

.study-view-switch {
  display: inline-flex;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
}

.study-view-switch__button {
  min-height: 40px;
  padding: 0 15px;
  color: var(--ink-600);
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  font-weight: 720;
  cursor: pointer;
}

.study-view-switch__button:hover {
  color: var(--blue-700);
  background: var(--surface-blue);
}

.study-view-switch__button.is-active {
  color: #fff;
  background: var(--blue-700);
  box-shadow: var(--shadow-sm);
}

.study-view-switch__button:focus-visible {
  outline: 3px solid var(--action-focus);
  outline-offset: 2px;
}

.study-comparison[hidden],
.feature-grid[hidden] {
  display: none;
}

.study-comparison__scroll {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.study-comparison__scroll:focus-visible {
  outline: 3px solid var(--action-focus);
  outline-offset: 3px;
}

.study-comparison__table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  table-layout: fixed;
}

.study-comparison__table th,
.study-comparison__table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.study-comparison__table thead th {
  padding-block: 18px;
  background: var(--surface-alt);
}

.study-comparison__table th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 245px;
  color: var(--ink-900);
  background: var(--surface);
  text-align: left;
}

.study-comparison__table thead th:first-child {
  z-index: 3;
  background: var(--surface-alt);
  text-align: center;
}

.study-comparison__axis {
  display: grid;
  justify-items: center;
  gap: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.study-comparison__axis > span {
  color: var(--ink-900);
  font-size: 1rem;
}

.study-comparison__table tr > :nth-child(2) {
  --study-column-accent: var(--orange-500);
}

.study-comparison__table tr > :nth-child(3) {
  --study-column-accent: #c84a9a;
}

.study-comparison__table tr > :nth-child(4) {
  --study-column-accent: var(--blue-500);
}

.study-comparison__table tr > :nth-child(5) {
  --study-column-accent: var(--green-500);
}

.study-comparison__table tr > :nth-child(6) {
  --study-column-accent: #ffd12f;
}

.study-comparison__table thead tr > :not(:first-child) {
  background-color: color-mix(
    in srgb,
    var(--study-column-accent) 12%,
    var(--surface-alt)
  );
}

.study-comparison__table tbody tr > :not(:first-child) {
  background-color: color-mix(
    in srgb,
    var(--study-column-accent) 7%,
    var(--surface)
  );
}

.study-comparison__table tbody tr:last-child > * {
  border-bottom: 0;
}

.study-comparison__table tbody tr:hover > * {
  background-color: var(--surface-blue);
}

.study-comparison__table tbody tr:hover > :not(:first-child) {
  background-color: color-mix(
    in srgb,
    var(--study-column-accent) 14%,
    var(--surface)
  );
}

.study-comparison__poster {
  display: grid;
  width: 100%;
  justify-items: center;
  gap: 8px;
  padding: 0;
  color: var(--ink-900);
  background: transparent;
  border: 0;
  font-weight: 760;
  line-height: 1.25;
  cursor: pointer;
}

.study-comparison__poster img {
  width: 126px;
  height: 160px;
  object-fit: contain;
  object-position: top center;
  border: 0;
  border-radius: 2px;
  box-shadow: none;
  transition: transform var(--transition);
}

.study-comparison__poster:hover img,
.study-comparison__poster:focus-visible img {
  transform: translateY(-3px) scale(1.04);
}

.study-comparison__poster:focus-visible {
  outline: 3px solid var(--action-focus);
  outline-offset: 3px;
  border-radius: 8px;
}

.rating {
  color: var(--blue-700);
  font-size: 1.13rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.study-comparison__hint {
  margin: 12px 4px 0;
  color: var(--ink-600);
  font-size: 0.84rem;
}

[data-theme="dark"] .study-view-switch__button.is-active {
  color: var(--navy-950);
  background: var(--blue-300);
}

[data-theme="dark"] .study-view-switch__button:hover:not(.is-active),
[data-theme="dark"] .study-view-switch__button:focus-visible:not(.is-active) {
  color: var(--blue-300);
  background: color-mix(in srgb, var(--blue-500) 16%, var(--surface));
}

[data-theme="dark"] .rating {
  color: var(--blue-300);
}

@media (max-width: 680px) {
  .study-view-switch {
    width: 100%;
  }

  .study-view-switch__button {
    flex: 1 1 50%;
    padding-inline: 10px;
    font-size: 0.82rem;
  }

  .study-comparison__table {
    min-width: 1120px;
  }

  .study-comparison__table th:first-child {
    width: 210px;
  }

  .poster-lightbox__image {
    max-width: 96vw;
    max-height: 88vh;
  }
}

.icon-disc {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 18px;
  color: var(--blue-700);
  background: var(--surface-blue);
  border-radius: 14px;
}

.icon-disc svg {
  width: 23px;
  height: 23px;
}

.icon-disc__symbol {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.info-strip__item {
  min-height: 150px;
  padding: 28px;
  color: rgba(255, 255, 255, 0.72);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.info-strip__item:last-child {
  border-right: 0;
}

.info-strip__value {
  display: block;
  margin-bottom: 7px;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 820;
  line-height: 1.1;
}

[data-theme="dark"] .info-strip {
  background: linear-gradient(110deg, #193852 0%, #24506f 100%);
  border: 1px solid #426783;
  box-shadow: 0 14px 36px rgb(0 0 0 / 22%);
}

[data-theme="dark"] .info-strip__item {
  color: #d5e1eb;
  border-color: rgb(181 213 235 / 28%);
}

[data-theme="dark"] .info-strip__value {
  color: #f7fbff;
}

/* Match the standard shadow of the specialization tiles. */
.study-page #praxe .info-strip {
  box-shadow: var(--shadow-sm);
}

.callout {
  --callout-accent: var(--blue-500);
  --callout-background: color-mix(
    in srgb,
    var(--callout-accent) 8%,
    var(--surface)
  );
  --callout-border: color-mix(
    in srgb,
    var(--callout-accent) 28%,
    var(--surface)
  );
  position: relative;
  padding: 32px 34px 32px 40px;
  overflow: hidden;
  color: var(--ink-700);
  background: var(--callout-background);
  border: 1px solid var(--callout-border);
  border-radius: var(--radius-md);
  box-shadow: inset 6px 0 0 var(--callout-accent);
}

.callout--info {
  --callout-accent: var(--blue-500);
}

.callout--warning {
  --callout-accent: var(--orange-500);
}

.quote {
  margin: 40px 0;
  padding: 0 0 0 30px;
  color: var(--navy-800);
  border-left: 5px solid var(--orange-500);
  font-size: 1.35rem;
  font-weight: 620;
  line-height: 1.55;
}

/* Accordion */
.accordion {
  border-top: 1px solid var(--line-strong);
}

.accordion__item {
  border-bottom: 1px solid var(--line-strong);
}

.accordion__item > h3 {
  margin-bottom: 0;
}

.accordion__button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  color: var(--navy-950);
  background: transparent;
  border: 0;
  text-align: left;
  font-weight: 760;
}

.accordion__button:focus-visible,
main summary:focus-visible {
  outline: 3px solid var(--action-focus);
  outline-offset: -3px;
}

.accordion__icon {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  background: var(--surface-blue);
  border-radius: 50%;
}

.accordion__icon::before,
.accordion__icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  content: "";
  background: var(--blue-700);
  transform: translate(-50%, -50%);
  transition: transform var(--transition);
}

.accordion__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion__button[aria-expanded="true"] .accordion__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.accordion__panel {
  padding: 0 50px 22px 0;
  color: var(--ink-600);
}

.school-details {
  display: grid;
  gap: 8px;
}

.school-details p {
  margin: 0;
}

.founder-logo-card {
  display: block;
  width: min(100%, 480px);
  margin-top: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.founder-logo-card img {
  width: 100%;
  height: auto;
}

:is(.payment-table-shell, .table-scroll-shell) {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius-md);
  isolation: isolate;
}

:is(.payment-table-scroll, .table-scroll) {
  min-width: 0;
  overflow-x: auto;
  border-radius: inherit;
}

.payment-table-scroll {
  scrollbar-gutter: stable;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  scrollbar-gutter: auto;
}

:is(.payment-table-scroll__hint, .table-scroll__hint) {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: 13px;
  display: grid;
  width: 58px;
  padding: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.94) 62%
  );
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--surface) 88%, transparent) 62%
  );
  place-items: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.table-scroll__hint {
  bottom: 18px;
}

:is(.payment-table-scroll__hint, .table-scroll__hint)[data-direction="start"] {
  right: auto;
  left: 0;
  padding: 0;
  background: linear-gradient(
    270deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.94) 62%
  );
  background: linear-gradient(
    270deg,
    transparent,
    color-mix(in srgb, var(--surface) 88%, transparent) 62%
  );
  place-items: center;
}

:is(.payment-table-scroll__hint, .table-scroll__hint)[hidden] {
  display: none;
}

:is(.payment-table-scroll__end, .table-scroll__button) {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  pointer-events: auto;
  color: var(--action-text);
  cursor: pointer;
  background: var(--action-bg);
  border: 1px solid var(--action-bg);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(7, 20, 38, 0.2);
  place-items: center;
  transition:
    color var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

:is(.payment-table-scroll__end, .table-scroll__button) svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

:is(.payment-table-scroll__end, .table-scroll__button)[data-direction="start"] svg {
  transform: rotate(180deg);
}

:is(.payment-table-scroll__end, .table-scroll__button):hover,
:is(.payment-table-scroll__end, .table-scroll__button):focus-visible {
  color: var(--action-text);
  background: var(--action-bg-hover);
  border-color: var(--action-bg-hover);
  outline: none;
  transform: scale(1.05);
}

:is(.payment-table-scroll__end, .table-scroll__button):focus-visible {
  outline: 3px solid var(--action-focus);
  outline-offset: 3px;
  transform: none;
  box-shadow:
    0 0 0 3px var(--surface),
    0 8px 22px rgba(7, 20, 38, 0.2);
}

@media (max-width: 600px) {
  :is(.payment-table-scroll__hint, .table-scroll__hint) {
    width: 48px;
  }

  :is(.payment-table-scroll__end, .table-scroll__button) {
    width: 28px;
    height: 28px;
  }

  :is(.payment-table-scroll__end, .table-scroll__button) svg {
    width: 15px;
    height: 15px;
  }
}

[data-theme="dark"] :is(.payment-table-scroll__hint, .table-scroll__hint) {
  background: linear-gradient(
    90deg,
    rgba(17, 27, 39, 0),
    rgba(17, 27, 39, 0.94) 62%
  );
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--surface) 88%, transparent) 62%
  );
}

[data-theme="dark"] :is(.payment-table-scroll__hint, .table-scroll__hint)[data-direction="start"] {
  background: linear-gradient(
    270deg,
    rgba(17, 27, 39, 0),
    rgba(17, 27, 39, 0.94) 62%
  );
  background: linear-gradient(
    270deg,
    transparent,
    color-mix(in srgb, var(--surface) 88%, transparent) 62%
  );
}

.traffic-notice {
  margin-bottom: 24px;
  padding: 18px 22px 18px 28px;
  font-weight: 650;
}

