:root {
  --ink: #142c3e;
  --ink-soft: #526674;
  --paper: #f6f8f7;
  --surface: #ffffff;
  --line: #dce5e6;
  --brand: #0d7182;
  --brand-dark: #0a5263;
  --lime: #ddeb92;
  --orange: #ff8b5e;
  --shadow: 0 18px 50px rgb(20 44 62 / 10%);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  color: white;
  background: var(--brand-dark);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid rgb(255 255 255 / 18%);
  color: white;
  background: #173b57;
}

.header-inner {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding-block: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  text-decoration: none;
}

.brand-logo,
.brand-mark {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  border: 2px solid rgb(255 255 255 / 32%);
  border-radius: 18px;
  background: white;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  place-items: center;
  color: #173b57;
  background: var(--lime);
  font-size: 28px;
  font-weight: 800;
}

.brand-copy { display: grid; min-width: 0; }
.brand-kicker {
  color: #bbd2da;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.brand-name {
  overflow: hidden;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.contacts {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
}

.contact-item {
  display: grid;
  padding-left: 16px;
  border-left: 2px solid rgb(221 235 146 / 70%);
  font-size: 13px;
}

.contact-item span { color: #bbd2da; }
.contact-item strong { color: white; font-size: 14px; }
.contact-item a { color: var(--lime); text-decoration: none; }

.catalog-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 82% 22%, rgb(221 235 146 / 18%), transparent 24%),
    radial-gradient(circle at 72% 110%, rgb(13 113 130 / 55%), transparent 40%),
    linear-gradient(135deg, #173b57 0%, #0a6574 100%);
}

.catalog-hero::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 11%) .8px, transparent .8px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 38%, black 100%);
  mask-image: linear-gradient(90deg, transparent 38%, black 100%);
  content: "";
  pointer-events: none;
}

.hero-carousel-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-inline: 0;
}

.hero-carousel-viewport {
  overflow: hidden;
  transition: height .45s ease;
}

.hero-carousel-track {
  display: grid;
}

.hero-slide {
  grid-area: 1 / 1;
  width: 100%;
  min-width: 0;
  min-height: 350px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(400px, .95fr);
  align-items: center;
  gap: clamp(26px, 3.5vw, 48px);
  padding: 36px max(20px, calc((100% - 1180px) / 2)) 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(24px);
  transition: opacity .35s ease, transform .45s cubic-bezier(.22, .75, .26, 1), visibility 0s linear .45s;
}

.hero-slide.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}

.hero-slide-copy { min-width: 0; }

.hero-visual {
  position: relative;
  height: 300px;
  overflow: visible;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.hero-visual::after {
  content: none;
}

.hero-visual picture,
.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-visual img {
  object-fit: contain;
  object-position: center;
}

.hero-info-slide h1 {
  font-size: clamp(35px, 4.4vw, 56px);
  overflow-wrap: anywhere;
  hyphens: auto;
  text-wrap: balance;
}

.hero-info-message {
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.hero-info-visual {
  width: 100%;
  max-width: 100%;
  height: 270px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-info-visual .hero-info-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  display: block;
  border-radius: 30px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 18px 32px rgb(4 38 51 / 24%));
}

.hero-info-placeholder {
  position: relative;
  width: min(100%, 390px);
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 38px;
  background:
    radial-gradient(circle at 18% 24%, rgb(221 235 146 / 30%) 0 8px, transparent 9px),
    radial-gradient(circle at 82% 72%, rgb(255 149 111 / 27%) 0 13px, transparent 14px),
    linear-gradient(145deg, rgb(76 151 157 / 88%), rgb(9 76 92 / 96%));
  box-shadow: 0 24px 48px rgb(4 38 51 / 22%);
}

.hero-info-placeholder::before,
.hero-info-placeholder::after {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 50%;
  content: "";
}

.hero-info-placeholder::before { top: -62px; left: -46px; }
.hero-info-placeholder::after { right: -54px; bottom: -72px; }

.hero-info-placeholder > span {
  position: relative;
  z-index: 1;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 58%);
  border-radius: 38px;
  color: #173b57;
  background: var(--lime);
  box-shadow: 0 16px 34px rgb(4 38 51 / 24%);
  font-family: Georgia, serif;
  font-size: 82px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
}

.hero-feature-visual {
  position: relative;
  height: 270px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 28px;
  background: linear-gradient(145deg, rgb(70 139 148 / 84%), rgb(10 75 90 / 94%));
}

.hero-directions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.direction-card {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 17px;
  color: #173b57;
}

.direction-card::after {
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 62px;
  height: 62px;
  border: 1px solid rgb(23 59 87 / 14%);
  border-radius: 50%;
  content: "";
}

.direction-card > span {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgb(255 255 255 / 58%);
  font-size: 21px;
  font-weight: 850;
}

.direction-card strong { min-width: 0; font-size: 15px; }
.direction-card.is-creative { background: #e4ef95; }
.direction-card.is-sport { background: #f3f7f6; }
.direction-card.is-tech { background: #83cfca; }
.direction-card.is-science { background: #ff956f; }

.hero-teachers {
  display: grid;
  grid-template-columns: minmax(105px, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 17px;
}

.teacher-symbol {
  width: 112px;
  height: 148px;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 34px;
  color: #173b57;
  background: var(--lime);
}

.teacher-symbol svg {
  width: 62px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.teacher-benefits { min-width: 0; display: grid; gap: 8px; }

.teacher-benefits > div {
  min-width: 0;
  min-height: 48px;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 13px;
  color: #e8f2f3;
  background: rgb(5 52 66 / 38%);
}

.teacher-benefits span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #173b57;
  background: var(--lime);
  font-size: 14px;
  font-weight: 900;
}

.teacher-benefits strong { min-width: 0; font-size: 12px; line-height: 1.25; }

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow { color: var(--lime); }

.hero-slide h1,
.hero-slide h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 760;
  letter-spacing: -.045em;
  line-height: .98;
}

.hero-lead {
  max-width: 650px;
  margin: 18px 0 0;
  color: #d9e6e9;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(20px, calc((100% - 1180px) / 2)) 20px;
}

.hero-carousel-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #bcd2d8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.hero-carousel-status span:first-child { color: white; }
.hero-carousel-status i { width: 46px; height: 1px; background: rgb(255 255 255 / 28%); }

.hero-carousel-buttons { display: flex; gap: 9px; }

.hero-carousel-buttons button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 50%;
  color: #173b57;
  background: var(--lime);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s ease, opacity .2s ease;
}

.hero-carousel-buttons button:hover:not(:disabled) { background: white; transform: translateY(-2px); }
.hero-carousel-buttons button:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.hero-carousel-buttons button:disabled { color: #c8d9de; background: rgb(255 255 255 / 8%); cursor: default; opacity: .55; }

.hero-insights {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 26px;
  background: linear-gradient(145deg, rgb(85 143 151 / 88%), rgb(13 74 88 / 92%));
}

.hero-insights::before {
  position: absolute;
  top: -70px;
  right: -55px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgb(221 235 146 / 14%);
  content: "";
  pointer-events: none;
}

.hero-insights-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.hero-insights-head p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px;
  color: #c6dce1;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero-insights-head p > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgb(221 235 146 / 13%);
}

.hero-total {
  display: flex;
  align-items: baseline;
  gap: 11px;
}

.hero-total strong {
  font-size: clamp(48px, 5vw, 66px);
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
  line-height: .9;
}

.hero-total span { color: #e0ecef; font-size: 18px; font-weight: 750; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-block: 16px;
}

.hero-metrics > div {
  display: grid;
  padding: 13px 15px;
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: 14px;
  background: rgb(6 52 67 / 30%);
}

.hero-metrics strong { color: white; font-size: 24px; line-height: 1.1; }
.hero-metrics span { color: #bdd3d9; font-size: 12px; }

.hero-availability { position: relative; }

.hero-availability-head,
.hero-availability-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hero-availability-head { margin-bottom: 9px; color: #c6dce1; font-size: 12px; }
.hero-availability-head strong { color: white; font-weight: 750; }

.hero-availability-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(255 139 94 / 80%);
}

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

.hero-availability-bar.is-empty { background: rgb(255 255 255 / 12%); }

.hero-availability-legend {
  margin-top: 10px;
  color: #c6dce1;
  font-size: 11px;
}

.hero-availability-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hero-availability-legend i { width: 7px; height: 7px; border-radius: 50%; }
.hero-availability-legend .is-free { background: var(--lime); }
.hero-availability-legend .is-paid { background: var(--orange); }

.catalog-layout { padding-block: 70px 100px; }

.catalog-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.catalog-heading h2,
.content-card h2 {
  margin: 0;
  font-size: clamp(29px, 4vw, 43px);
  letter-spacing: -.035em;
  line-height: 1.1;
}

.loading-indicator {
  visibility: hidden;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #e1f0ef;
  font-size: 13px;
  opacity: 0;
  transition: opacity .2s;
}

.loading-indicator.htmx-request {
  visibility: visible;
  opacity: 1;
}

.filter-panel {
  position: relative;
  z-index: 2;
  margin-bottom: 36px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-field {
  display: grid;
  grid-template-columns: 25px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 8px 18px;
  border: 2px solid #c9d8da;
  border-radius: 16px;
  background: #fbfcfc;
  transition: border-color .2s, box-shadow .2s;
}

.search-field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgb(13 113 130 / 12%);
}

.search-field svg {
  width: 23px;
  fill: none;
  stroke: var(--brand);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-field input {
  width: 100%;
  min-height: 44px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 18px;
}

.search-field input::placeholder { color: #87969f; }

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 14px;
}

.filter-field {
  min-width: 0;
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

.filter-field legend,
.filter-label {
  width: 100%;
  padding-left: 2px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
}

.filter-select {
  position: relative;
  min-width: 0;
}

.filter-select summary,
.filter-input,
.reset-link {
  width: 100%;
  min-height: 46px;
  border: 1px solid #c9d8da;
  border-radius: 12px;
  color: var(--ink);
  background: white;
}

.filter-select summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.filter-select summary::-webkit-details-marker { display: none; }

.filter-select summary > [data-filter-value] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--brand-dark);
  border-bottom: 2px solid var(--brand-dark);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .18s ease;
}

.filter-select[open] {
  z-index: 20;
}

.filter-select[open] summary {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(13 113 130 / 10%);
}

.filter-select[open] .filter-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.filter-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  width: max(100%, 280px);
  max-height: 265px;
  display: grid;
  gap: 3px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 16px 42px rgb(20 44 62 / 18%);
}

.filter-field:nth-child(3n) .filter-menu {
  right: 0;
  left: auto;
}

.filter-option {
  min-width: 0;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  cursor: pointer;
  line-height: 1.3;
}

.filter-option:hover { background: #eff7f7; }

.filter-option-address { align-items: start; }

.address-option-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.address-option-copy strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
}

.address-option-copy small {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.3;
}

.filter-option input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--brand);
}

.filter-input {
  padding: 10px 12px;
  border: 1px solid #c9d8da;
  outline: none;
}

.filter-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(13 113 130 / 10%);
}

.reset-link {
  display: inline-grid;
  place-items: center;
  align-self: end;
  padding: 10px 14px;
  color: var(--brand-dark);
  background: #eaf2f2;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.result-summary {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
  color: var(--ink-soft);
}

.result-summary p { margin: 0; }
.result-summary strong { color: var(--ink); }

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

.course-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgb(20 44 62 / 7%);
  transition: transform .2s ease, box-shadow .2s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgb(20 44 62 / 14%);
}

.card-image {
  position: relative;
  height: 210px;
  display: block;
  overflow: hidden;
  background: #dce8e9;
}

.card-image::after {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(transparent, rgb(0 0 0 / 20%));
  content: "";
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.course-card:hover .card-image img { transform: scale(1.035); }

.classification-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  color: white;
  background: var(--course-accent, var(--brand));
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1.15;
}

.card-image .classification-badge {
  position: absolute;
  z-index: 1;
  right: 15px;
  bottom: 15px;
  max-width: calc(100% - 30px);
}

.card-body {
  min-height: 425px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: 22px;
}

.card-body h3 {
  max-width: 100%;
  margin: 0 0 10px;
  font-size: 23px;
  letter-spacing: -.025em;
  line-height: 1.2;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.card-body h3 a {
  display: inline;
  max-width: 100%;
  text-decoration: none;
}
.card-body h3 a:hover { color: var(--brand); }

.card-description {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--ink-soft);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.course-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  margin: 0;
}

.course-meta div { min-width: 0; }
.course-meta dt {
  color: #768993;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.course-meta dd {
  overflow: hidden;
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
}

.course-meta .course-days { grid-column: 1 / -1; }

.course-days dd {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  overflow: visible;
}

.course-days dd span {
  min-width: 30px;
  display: inline-grid;
  place-items: center;
  padding: 4px 7px;
  border-radius: 8px;
  color: var(--brand-dark);
  background: #eaf3f2;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.course-days dd .is-empty {
  padding-inline: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 13px;
  font-weight: 650;
  text-transform: none;
}

.card-address {
  margin: 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: color .2s, background .2s, border-color .2s, transform .2s;
}

.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--brand); }
.button-primary:hover { background: var(--brand-dark); }
.button-secondary { border-color: #c9d8da; color: var(--brand-dark); background: white; }
.button-secondary:hover { border-color: var(--brand); background: #eff7f7; }
.button-large { min-height: 54px; padding-inline: 24px; font-size: 16px; }

.empty-state {
  display: grid;
  justify-items: center;
  padding: 70px 20px;
  border: 1px dashed #b8c8cb;
  border-radius: var(--radius-lg);
  text-align: center;
}

.empty-state > span { color: var(--brand); font-size: 58px; line-height: 1; }
.empty-state h3 { margin: 18px 0 5px; font-size: 25px; }
.empty-state p { max-width: 520px; margin: 0 0 22px; color: var(--ink-soft); }

.detail-page { padding-block: 32px 100px; }

.breadcrumbs {
  display: flex;
  gap: 9px;
  overflow: hidden;
  margin-bottom: 27px;
  color: var(--ink-soft);
  font-size: 14px;
  white-space: nowrap;
}

.breadcrumbs a { color: var(--brand-dark); font-weight: 700; text-decoration: none; }
.breadcrumbs span:last-child { overflow: hidden; text-overflow: ellipsis; }

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  overflow: hidden;
  border-radius: 32px;
  color: white;
  background: #173b57;
  box-shadow: var(--shadow);
}

.detail-image { min-height: 500px; background: #dce8e9; }
.detail-image img { width: 100%; height: 100%; object-fit: cover; }

.detail-intro {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(35px, 4vw, 58px);
}

.detail-title {
  width: 100%;
  max-width: 100%;
  margin: 22px 0 18px;
  font-size: clamp(37px, 4vw, 58px);
  letter-spacing: -.045em;
  line-height: 1;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-wrap: balance;
}

.detail-title--medium { font-size: clamp(33px, 3.5vw, 50px); }
.detail-title--long { font-size: clamp(29px, 3.1vw, 43px); line-height: 1.06; }

.detail-intro > .classification-badge {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.detail-intro > p { margin: 0; color: #d9e6e9; font-size: 19px; }

.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
}

.detail-facts span {
  padding: 7px 11px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 999px;
  color: #eff6f7;
  background: rgb(255 255 255 / 8%);
  font-size: 13px;
  font-weight: 700;
}

.mosru-enrollment {
  position: relative;
  display: grid;
  gap: 3px;
  width: 100%;
  margin: 0 0 18px;
  padding: 14px 16px 14px 43px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 15px;
  color: #e8f2f4;
  background: rgb(255 255 255 / 8%);
}

.mosru-enrollment::before {
  position: absolute;
  top: 19px;
  left: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #aab9bf;
  box-shadow: 0 0 0 5px rgb(170 185 191 / 13%);
  content: "";
}

.mosru-enrollment--open::before {
  background: #99e39a;
  box-shadow: 0 0 0 5px rgb(153 227 154 / 13%);
}

.mosru-enrollment--closed::before {
  background: #ffb27d;
  box-shadow: 0 0 0 5px rgb(255 178 125 / 13%);
}

.mosru-enrollment--full::before {
  background: #ff8b7d;
  box-shadow: 0 0 0 5px rgb(255 139 125 / 13%);
}

.mosru-enrollment-label {
  color: #aebfc6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mosru-enrollment strong { color: white; font-size: 17px; }
.mosru-enrollment > span:last-child:not(.mosru-enrollment-label) { font-size: 14px; }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr);
  gap: 24px;
  margin-top: 24px;
}

.detail-main,
.detail-aside { display: grid; align-content: start; gap: 24px; }

.content-card {
  padding: clamp(25px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgb(20 44 62 / 6%);
}

.content-card h2 { margin-bottom: 24px; font-size: clamp(26px, 3vw, 36px); }
.prose { font-size: 18px; }
.prose p { color: #354d5d; }
.prose p:last-child { margin-bottom: 0; }

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.schedule-day {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: #809099;
  background: #f8faf9;
}

.schedule-day.has-classes { border-color: #b8d5d3; color: var(--ink); background: #eff8f6; }
.day-short { color: var(--brand); font-size: 20px; font-weight: 850; }
.day-name { margin-bottom: 12px; color: #71848f; font-size: 11px; }
.schedule-day strong {
  width: fit-content;
  max-width: 100%;
  margin-top: 2px;
  padding: 4px 7px;
  border: 1px solid rgb(13 113 130 / 18%);
  border-radius: 8px;
  color: var(--ink);
  background: rgb(255 255 255 / 72%);
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: .025em;
  line-height: 1.35;
  white-space: nowrap;
}
.schedule-day strong + strong { margin-top: 6px; }
.no-class { margin-top: auto; font-size: 12px; }

.info-card h2 { margin-bottom: 10px; font-size: 27px; }
.info-card > p:last-child { margin-bottom: 0; color: var(--ink-soft); }

.teacher-heading {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.teacher-heading img { width: 72px; height: 72px; border-radius: 20px; object-fit: cover; }
.teacher-heading h2 { margin: 0 0 4px; font-size: 23px; }
.teacher-heading a, .text-link { color: var(--brand); font-weight: 750; text-decoration: none; }
.teacher-card > p { color: var(--ink-soft); }
.teacher-more-button { width: 100%; margin-top: 8px; }

.site-footer {
  border-top: 1px solid var(--line);
  color: #d2e0e4;
  background: #173b57;
}

.footer-inner {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 25px;
  font-size: 13px;
}

.footer-inner p { margin: 0; }
.footer-inner p:first-child { color: white; font-size: 15px; font-weight: 750; }
.footer-inner a { color: var(--lime); }

@media (max-width: 1050px) {
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .header-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }
  .brand { align-self: flex-start; }
  .contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 9px;
  }
  .contact-item {
    padding: 10px 12px;
    border: 1px solid rgb(255 255 255 / 14%);
    border-left: 3px solid rgb(221 235 146 / 70%);
    border-radius: 10px;
    background: rgb(255 255 255 / 5%);
  }
  .hero-slide { min-height: 0; grid-template-columns: 1fr; gap: 22px; padding-block: 30px 20px; }
  .hero-insights { max-width: 620px; }
  .hero-visual { height: 230px; }
  .hero-feature-visual { width: 100%; max-width: 620px; height: 220px; }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-image { min-height: auto; aspect-ratio: 16 / 10; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 650px) {
  .shell { width: min(100% - 24px, 1180px); }
  .header-inner { min-height: 84px; padding-block: 14px; }
  .brand-logo, .brand-mark { width: 50px; height: 50px; border-radius: 15px; }
  .brand-kicker { font-size: 10px; }
  .brand-name { font-size: 17px; }
  .hero-carousel-shell { margin-inline: auto; }
  .hero-carousel-track { position: relative; display: block; }
  .hero-slide { position: absolute; inset: 0; }
  .hero-slide.is-active { position: relative; inset: auto; }
  .hero-slide { align-content: start; justify-items: center; gap: 4px; padding: 16px 12px 0; }
  .hero-slide-copy { width: 100%; justify-self: stretch; }
  .hero-slide-copy .eyebrow { margin-bottom: 6px; font-size: 10px; }
  .hero-slide h1, .hero-slide h2 { font-size: clamp(30px, 9.3vw, 35px); line-height: 1.02; }
  .hero-lead { margin-top: 8px; font-size: 14px; line-height: 1.35; }
  .hero-visual { width: 100%; height: 150px; justify-self: center; margin-inline: auto; border-radius: 0; }
  .hero-info-visual { height: 135px; margin-bottom: 8px; }
  .hero-info-slide h1 { font-size: clamp(29px, 9vw, 35px); }
  .hero-info-message { font-size: 14px; line-height: 1.35; }
  .hero-info-visual .hero-info-image { border-radius: 20px; }
  .hero-info-placeholder { width: min(100%, 270px); border-radius: 24px; }
  .hero-info-placeholder > span { width: 74px; height: 74px; border-radius: 24px; font-size: 52px; }
  .hero-feature-visual { height: 150px; padding: 9px; border-radius: 21px; }
  .hero-directions { gap: 6px; }
  .direction-card { gap: 7px; padding: 7px; border-radius: 12px; }
  .direction-card > span { width: 30px; height: 30px; border-radius: 9px; font-size: 15px; }
  .direction-card strong { font-size: 11px; }
  .hero-teachers { grid-template-columns: 67px minmax(0, 1fr); gap: 8px; }
  .teacher-symbol { width: 62px; height: 100px; border-radius: 20px; }
  .teacher-symbol svg { width: 40px; }
  .teacher-benefits { gap: 5px; }
  .teacher-benefits > div { min-height: 36px; grid-template-columns: 22px minmax(0, 1fr); gap: 7px; padding: 5px 7px; border-radius: 10px; }
  .teacher-benefits span { width: 22px; height: 22px; border-radius: 7px; font-size: 11px; }
  .teacher-benefits strong { font-size: 10px; }
  .hero-insights { width: 100%; justify-self: center; margin-inline: auto; padding: 14px; border-radius: 18px; }
  .hero-insights-head p { margin-bottom: 4px; font-size: 10px; }
  .hero-total { gap: 8px; }
  .hero-total strong { font-size: 44px; letter-spacing: 0; }
  .hero-total span { font-size: 14px; }
  .hero-metrics { gap: 7px; margin-block: 11px; }
  .hero-metrics > div { padding: 8px 10px; border-radius: 11px; }
  .hero-metrics strong { font-size: 20px; }
  .hero-availability-head { margin-bottom: 6px; }
  .hero-availability-legend { margin-top: 7px; }
  .hero-carousel-controls { padding: 4px 12px 8px; }
  .hero-carousel-buttons button { width: 40px; height: 40px; font-size: 19px; }
  .catalog-layout { padding-block: 50px 70px; }
  .catalog-heading { position: relative; align-items: center; margin-bottom: 32px; }
  .catalog-heading h2 { white-space: nowrap; }
  .catalog-heading .loading-indicator {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    padding: 3px 8px;
    font-size: 11px;
  }
  .filter-panel { padding: 14px; border-radius: 20px; }
  .search-field { grid-template-columns: 21px minmax(0, 1fr); gap: 8px; padding-inline: 12px; }
  .search-field svg { width: 21px; }
  .search-field input { min-width: 0; font-size: clamp(12.5px, 4vw, 18px); }
  .filter-grid { grid-template-columns: 1fr; gap: 12px; }
  .filter-field:nth-child(3n) .filter-menu { right: auto; left: 0; }
  .filter-menu { width: 100%; }
  .course-grid { grid-template-columns: 1fr; }
  .card-image { height: 220px; }
  .card-body { min-height: 0; }
  .detail-page { padding-top: 20px; }
  .detail-hero { border-radius: 23px; }
  .detail-intro { padding: 28px 22px 32px; }
  .detail-title { font-size: clamp(32px, 10vw, 40px); }
  .detail-title--medium { font-size: clamp(29px, 8.7vw, 35px); }
  .detail-title--long { font-size: clamp(26px, 7.7vw, 31px); }
  .content-card { padding: 24px 20px; border-radius: 20px; }
  .schedule-grid { grid-template-columns: 1fr 1fr; }
  .detail-aside { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
