@font-face {
  font-family: Manrope;
  src: url("assets/manrope-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Manrope;
  src: url("assets/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #f6f7fb;
  --white: #fff;
  --ink: #172540;
  --muted: #4a5872;
  --blue: #284ec7;
  --blue-deep: #1c3ba1;
  --blue-light: #e8edff;
  --line: #d7dfee;
  --lime: #e7f2ce;
  --green: #35582b;
  --radius: 22px;
  --gutter: clamp(17px, 4vw, 56px);
  font-family: Manrope, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, select { font: inherit; }
p, ul, ol, dl, figure { margin: 0; }
p { color: var(--muted); }

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -.05em;
  text-wrap: balance;
}

h2 { font-size: clamp(2.05rem, 4.65vw, 3.65rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }

[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.wrap {
  width: min(100% - var(--gutter) * 2, 1196px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); background: var(--white); }

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 77px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.35;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  aspect-ratio: 1;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--blue);
  color: var(--white);
  font-size: .9rem;
  font-weight: 800;
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: .98rem; font-weight: 800; }
.brand small { margin-top: 2px; color: var(--muted); font-size: .8rem; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 2.35vw, 29px);
}

.site-nav a, .footer-inner > a:last-child {
  color: var(--muted);
  font-size: .925rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover, .footer-inner > a:last-child:hover { color: var(--blue); }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 11px 20px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: .9375rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}

.button-primary { background: var(--blue); color: var(--white); }
.button-primary:hover { background: var(--blue-deep); }
.button-outline { border-color: #b7c5e1; background: transparent; color: var(--blue-deep); }
.button-outline:hover { border-color: var(--blue); background: var(--blue-light); }
.header-action { min-height: 40px; }

.text-link {
  width: fit-content;
  color: var(--blue-deep);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: #7d93d5;
  text-underline-offset: .26em;
}

.text-link:hover { color: var(--ink); text-decoration-color: currentColor; }

.hero {
  padding-block: 34px 0;
  background: linear-gradient(180deg, #f8faff, var(--paper));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-areas: "copy image";
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #d5dff2;
  border-radius: 27px;
  background: #eaf0fd;
}

.hero-copy {
  grid-area: copy;
  align-self: center;
  display: grid;
  justify-items: start;
  padding: clamp(24px, 5vw, 64px);
}

.eyebrow {
  color: var(--blue-deep);
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .045em;
}

.hero .eyebrow {
  padding: 5px 11px;
  border-radius: 7px;
  background: var(--lime);
  color: var(--green);
  letter-spacing: 0;
}

.hero h1 {
  margin-block: 17px 19px;
  font-size: clamp(2.7rem, 5.2vw, 4.9rem);
  line-height: 1.01;
  letter-spacing: -.075em;
  text-wrap: initial;
}

.hero h1 span { color: var(--blue); }

.hero-description {
  max-width: 29em;
  font-size: clamp(1.05rem, 1.65vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 21px;
  margin-top: 25px;
}

.hero-actions .text-link { font-size: .9rem; }

.hero-figure {
  position: relative;
  grid-area: image;
  min-height: 473px;
  background: #dce5fe;
}

.hero-figure img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% top;
}

.section {
  padding-block: clamp(56px, 7.5vw, 105px);
  scroll-margin-top: 12px;
}

.section-head { margin-bottom: clamp(22px, 3.4vw, 38px); }
.section-head p { max-width: 36em; margin-top: 12px; font-size: clamp(1rem, 1.6vw, 1.125rem); }

.program-grid, .profile-grid, .booking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(15px, 2.3vw, 25px);
}

.program-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(20px, 3.5vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.program-card:nth-child(2) {
  border-color: #d7e4c2;
  background: #f3f8ea;
}

.program-card h3 { text-wrap: initial; }
.program-card p { max-width: 34em; margin-block: 10px 19px; }
.program-card .text-link { margin-top: auto; }

.section-tinted {
  border-block: 1px solid var(--line);
  background: #fff;
}

.profile-card {
  padding: clamp(20px, 3.2vw, 35px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8faff;
}

.profile-list, .education-list {
  display: grid;
  gap: 10px;
  margin-top: 17px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.profile-list li { position: relative; padding-left: 19px; }

.profile-list li::before {
  position: absolute;
  top: .65em;
  left: 1px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--blue);
  content: "";
}

.education-list { gap: 14px; }
.education-list dt { color: var(--ink); font-weight: 800; }
.education-list dd { margin: 3px 0 0; }
.education-list > div + div { padding-top: 12px; border-top: 1px solid var(--line); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3.6vw, 45px);
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding-top: 15px;
  border-top: 1px solid #b5c5e7;
  counter-increment: step;
}

.steps li::before {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 13px;
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue-deep);
  content: counter(step);
  font-weight: 800;
}

.steps p { margin-top: 8px; }

.booking { padding-block-start: 0; }

.booking-grid {
  align-items: center;
  gap: clamp(25px, 6vw, 76px);
  padding: clamp(22px, 4.8vw, 58px);
  border: 1px solid #c9d6f4;
  border-radius: 25px;
  background: #e9f0ff;
}

.booking-copy p {
  max-width: 30em;
  margin-block: 13px 15px;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
}

.contact-list {
  display: grid;
  grid-template-columns: minmax(0, 330px);
  gap: 5px;
  padding: 0;
  list-style: none;
}

.contact-list a {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  min-height: 41px;
  gap: 0 14px;
  border-bottom: 1px solid #c0cef1;
  color: var(--blue-deep);
  font-weight: 800;
  text-decoration: none;
}

.contact-list a:hover { text-decoration: underline; text-underline-offset: .22em; }
.contact-list a span { color: var(--muted); font-size: .9rem; font-weight: 650; }

.booking-form {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: clamp(17px, 2.7vw, 28px);
  border: 1px solid #c2d0ee;
  border-radius: 16px;
  background: #fff;
}

.booking-form label { font-size: .9rem; font-weight: 750; }
.booking-form label span { color: var(--muted); font-weight: 500; }
.select-wrap { position: relative; margin-bottom: 5px; }

.select-wrap::after {
  position: absolute;
  top: calc(50% - 6px);
  right: 15px;
  width: 9px;
  height: 9px;
  border: solid var(--blue);
  border-width: 0 2px 2px 0;
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
}

.booking-form select {
  appearance: none;
  width: 100%;
  min-height: 45px;
  padding: 8px 35px 8px 12px;
  border: 1px solid #b2c0dc;
  border-radius: 8px;
  background: #f9faff;
  color: var(--ink);
}
.booking-form .button { margin-top: 5px; }
.booking-form p { margin-top: 3px; font-size: .875rem; line-height: 1.45; }

.site-footer { border-top: 1px solid var(--line); background: var(--white); }
.footer-inner { min-height: 92px; }
.footer-inner .brand { min-width: 0; flex-shrink: 1; }

@media (max-width: 930px) {
  .header-inner { flex-wrap: wrap; gap: 12px 20px; padding-block: 13px; }
  .site-nav {
    order: 2;
    justify-content: start;
    gap: 5px 22px;
    width: 100%;
    padding-top: 7px;
    border-top: 1px solid var(--line);
  }
  .site-nav a { padding-block: 4px; }
  .hero-figure { min-height: 398px; }
  .hero h1 { font-size: clamp(2.15rem, 4.7vw, 4.9rem); }
}

@media (max-width: 700px) {
  .hero { padding-top: 18px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "image";
    border-radius: 20px;
  }
  .hero-copy { padding: clamp(20px, 5vw, 36px); }
  .hero-figure { min-height: 0; aspect-ratio: 1; }
  .hero h1 {
    margin-block: 13px 15px;
    font-size: clamp(2.35rem, 8.7vw, 3.9rem);
    letter-spacing: -.065em;
  }
  .hero-actions { margin-top: 20px; }
  .program-grid, .profile-grid, .steps, .booking-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: 20px; }
  .booking-grid { border-radius: 20px; }
}

@media (max-width: 390px) {
  .header-inner { gap: 9px 5px; }
  .brand { gap: 6px; }
  .brand-mark { width: 34px; border-radius: 8px; }
  .brand strong { font-size: .88rem; }
  .brand small { font-size: .74rem; }
  .header-action { padding-inline: 8px; font-size: .875rem; }
  .site-nav { justify-content: space-between; gap: 3px; }
  .site-nav a { font-size: .875rem; }
  .hero-actions .button { width: 100%; }
  .footer-inner { gap: 12px; }
  .footer-inner > a:last-child { font-size: .875rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
