:root {
  color-scheme: light;
  --ink: #121934;
  --muted: #555f77;
  --blue: #1d43df;
  --blue-deep: #1635b8;
  --lime: #d1fa73;
  --paper: #f7f8fc;
  --line: #dfe4ef;
  --radius: 24px;
  --wrap: min(100% - clamp(36px, 8vw, 128px), 1296px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.55 'Golos Text', system-ui, sans-serif; background: var(--paper); color: var(--ink); }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #4168ff; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.034em; font-weight: 750; }
h2 { font-size: clamp(1.75rem, 3.3vw, 3rem); }
h3 { font-size: clamp(1.12rem, 2vw, 1.44rem); }
p { color: var(--muted); }
.wrap { width: var(--wrap); margin-inline: auto; }
#main { min-height: 44vh; }
:where(section, footer)[id] { scroll-margin-top: 95px; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { z-index: 3; position: fixed; top: 10px; left: 10px; padding: 12px; background: white; color: var(--blue); border-radius: 10px; }
.site-header { background: #fff; position: sticky; top: 0; z-index: 2; border-bottom: 1px solid #e6e9f2; }
.header-line { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 15px; }
.brand { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; text-decoration: none; font-size: 1.125rem; font-weight: 780; line-height: 1.1; letter-spacing: -.04em; }
.brand img { width: 36px; height: 36px; object-fit: contain; background: var(--blue); padding: 6px; border-radius: 10px; }
.brand-city { color: var(--blue); }
.main-nav { display: flex; align-items: center; gap: clamp(12px, 2.35vw, 34px); }
.main-nav a { color: #3b4560; text-decoration: none; font-weight: 550; font-size: .88rem; padding-block: 12px; }
.main-nav a:hover, .main-nav a.selected { color: var(--blue); }
.main-nav a.selected { box-shadow: inset 0 -2px var(--blue); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.header-actions .button { padding: 10px 17px; min-height: 44px; font-size: .89rem; }
.search-link { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; text-decoration: none; border: 1px solid var(--line); color: var(--ink); }
.search-link span { position: relative; display: block; width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 100%; transform: translate(-1px, -1px); }
.search-link span::after { position: absolute; content: ''; height: 2px; width: 7px; border-radius: 3px; background: currentColor; transform: rotate(45deg); top: 10px; left: 9px; }
.search-link:hover { color: var(--blue); border-color: var(--blue); }
.menu-search, .menu-button { display: none; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 13px 22px; border: 1px solid transparent; border-radius: 12px; text-decoration: none; text-align: center; font-weight: 660; line-height: 1.25; transition: background-color .16s ease, border-color .16s ease; }
.button--primary { color: white; background: var(--blue); }
.button--primary:hover { background: var(--blue-deep); }
.button--outline { border-color: #cdd5e7; color: var(--ink); background: #fff; }
.button--outline:hover { border-color: var(--blue); color: var(--blue); background: #edf1ff; }
.button--lime { color: #172504; background: var(--lime); }
.button--lime:hover { background: #e6ffa6; }
.text-link { display: inline-flex; align-items: baseline; gap: 8px; color: var(--blue-deep); font-weight: 650; text-underline-offset: .2em; }
.text-link:hover { color: var(--blue); }
.hero { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: clamp(20px, 4vw, 70px); margin-block: clamp(26px, 4.7vw, 73px) clamp(46px, 6vw, 95px); }
.hero-content { padding-block: 24px; }
.kicker { display: flex; align-items: center; gap: 8px; color: var(--blue-deep); font-size: .78rem; font-weight: 740; letter-spacing: .07em; text-transform: uppercase; }
.kicker span { width: 8px; height: 8px; flex: none; border-radius: 100%; background: var(--blue); box-shadow: 0 0 0 3px #dce4ff; }
.hero h1 { font-size: clamp(2.7rem, 5.65vw, 5.6rem); letter-spacing: -.066em; margin-top: 16px; line-height: 1; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-description { font-size: clamp(1rem, 1.43vw, 1.23rem); max-width: 38ch; margin-block: 22px 24px; }
.hero-art { overflow: hidden; background: #092cab; border-radius: clamp(20px, 3vw, 37px); box-shadow: 0 19px 54px -29px #173cbf9c; }
.hero-art img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; padding: 20px 0 0; margin: 26px 0 0; border-top: 1px solid var(--line); list-style: none; }
.hero-facts li { display: flex; flex-direction: column; min-width: 0; padding-right: clamp(12px, 2.1vw, 32px); }
.hero-facts li + li { border-left: 1px solid var(--line); padding-left: clamp(12px, 2.1vw, 32px); }
.hero-facts strong { font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.1; font-weight: 770; }
.hero-facts span { color: var(--muted); font-size: .81rem; margin-top: 5px; }
.section { margin-block: clamp(47px, 6.9vw, 106px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 27px; }
.section-head p { margin-top: 9px; }
.section-head > a { flex-shrink: 0; }
.course-grid, .news-grid, .staff-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 26px); }
.course-card, .news-card, .staff-grid li { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.course-card { display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease; }
.course-card:hover { box-shadow: 0 14px 35px -16px #2c40983c; border-color: #bcc9f1; }
.course-image { width: 100%; height: auto; aspect-ratio: 2.1; object-fit: cover; background: #102664; }
.course-body { padding: clamp(18px, 2.4vw, 27px); display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; justify-content: space-between; color: var(--muted); font-size: .84rem; font-weight: 600; line-height: 1.25; margin-bottom: 13px; }
.pill { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #233772; background: #edf1ff; }
.course-card h3 a, .news-card h3 a { text-decoration: none; }
.course-card h3 a:hover, .news-card h3 a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .15em; }
.course-card p { margin: 10px 0 16px; font-size: .94rem; }
.course-card .text-link, .news-card .text-link { margin-top: auto; align-self: start; }
.about-strip { background: #e9eeff; border-block: 1px solid #dbe4fb; }
.about-layout { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: clamp(25px, 7vw, 100px); padding-block: clamp(36px, 7vw, 85px); }
.about-layout h2 { margin-top: 9px; }
.about-layout p:not(.kicker) { margin-block: 13px 18px; max-width: 56ch; }
.about-address { background: white; border-radius: var(--radius); padding: clamp(20px, 3vw, 35px); }
.about-address p:last-child { margin-bottom: 0; }
.news-card { display: flex; flex-direction: column; gap: 12px; padding: clamp(18px, 2.4vw, 29px); }
.news-card .card-meta { justify-content: start; margin-bottom: 0; }
.news-card .card-meta span { color: var(--blue-deep); }
.enroll-space { margin-block: clamp(45px, 6vw, 82px); }
.enroll-panel { display: grid; grid-template-columns: 1.55fr minmax(max-content, .8fr); gap: 28px; align-items: center; color: white; background: linear-gradient(115deg, #112fbc, #2046df); border-radius: var(--radius); padding: clamp(26px, 5vw, 72px); }
.enroll-panel p { color: #eef1ff; max-width: 54ch; margin-top: 12px; }
.enroll-actions { display: flex; flex-direction: column; gap: 15px; align-items: center; justify-self: end; }
.site-footer { background: #131c3b; color: #f6f8ff; }
.footer-grid { padding-block: clamp(38px, 6vw, 70px); display: grid; grid-template-columns: 1.25fr .75fr 1fr 1.1fr; gap: 28px; }
.site-footer h2 { margin-bottom: 12px; font-size: 1rem; }
.site-footer nav, .footer-contact, .footer-partners { display: flex; flex-direction: column; align-items: start; gap: 8px; }
.site-footer a:not(.brand), .site-footer p, .site-footer address { color: #d6dcf1; font-size: .89rem; }
.site-footer p { margin-top: 11px; }
.site-footer address { font-style: normal; }
.site-footer a:hover { color: white; }
.site-footer a:focus-visible, .enroll-panel a:focus-visible { outline-color: var(--lime); }
.page-intro { background: #e9eeff; padding-block: 20px clamp(29px, 5vw, 65px); border-bottom: 1px solid #e0e6f6; }
.breadcrumbs { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 10px; margin-bottom: clamp(20px, 3.1vw, 42px); font-size: .84rem; color: #4f5a79; overflow-wrap: anywhere; }
.breadcrumbs a { color: var(--blue-deep); }
.page-intro h1 { font-size: clamp(2rem, 5vw, 4.4rem); line-height: 1.05; max-width: 21ch; text-wrap: balance; }
.page-intro p { font-size: clamp(1rem, 1.55vw, 1.2rem); margin-top: 13px; max-width: 64ch; }
.inner-section { margin-block: clamp(28px, 4.3vw, 68px) clamp(50px, 6vw, 88px); }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 24px; }
.filters button { border: 1px solid #cdd5e7; color: var(--ink); background: white; border-radius: 999px; min-height: 44px; padding: 8px 14px; }
.filters button[aria-pressed="true"] { background: var(--blue); color: white; border-color: var(--blue); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, 31%); align-items: start; gap: clamp(20px, 5vw, 68px); }
.detail-layout > [itemprop="provider"] { display: none; }
.detail-image { width: 100%; height: auto; aspect-ratio: 2.05; object-fit: cover; border-radius: var(--radius); }
.flow > * + * { margin-top: 19px; }
.flow p + p { margin-top: 14px; }
.skill-list { padding-left: 24px; margin-bottom: 0; }
.skill-list li { padding-left: 5px; margin-bottom: 7px; }
.skill-list li::marker { color: var(--blue); }
.info-panel, .side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); }
.side-card { display: flex; flex-direction: column; gap: 16px; }
.side-card h2, .info-panel h2 { font-size: clamp(1.4rem, 2.3vw, 2rem); }
.side-card dl { margin: 0; }
.side-card dl div { display: flex; justify-content: space-between; gap: 10px; padding-block: 9px; border-bottom: 1px solid var(--line); }
.side-card dt { color: var(--muted); }
.side-card dd { margin: 0; font-weight: 660; }
.reading { max-width: 800px; }
.reading p { font-size: 1.035rem; overflow-wrap: anywhere; }
.staff-grid, .document-list, .search-results { list-style: none; padding: 0; }
.staff-grid li { padding: clamp(17px, 2vw, 25px); }
.staff-grid p { margin-top: 8px; font-size: .93rem; }
.document-list { display: grid; gap: 10px; }
.document-list a { display: grid; align-items: center; grid-template-columns: auto 1fr auto; gap: clamp(11px, 2vw, 25px); background: white; border: 1px solid var(--line); border-radius: 16px; padding: 17px; text-decoration: none; }
.document-list a:hover { color: var(--blue); border-color: var(--blue); }
.document-list small { display: block; color: var(--muted); }
.file-type { display: inline-flex; align-items: center; color: var(--blue-deep); background: #e9eeff; border-radius: 9px; padding: 9px; font-size: .77rem; font-weight: 750; }
.search-form { margin-block: 0 28px; }
.search-form label { display: block; font-weight: 650; margin-bottom: 5px; }
.search-form > div { display: flex; gap: 9px; }
.search-form input { flex: 1; min-width: 0; border: 1px solid #bac5df; border-radius: 12px; padding: 12px; color: var(--ink); }
.search-results { display: grid; gap: 12px; }
.search-results li { background: white; border: 1px solid var(--line); padding: 18px; border-radius: 14px; }
.search-results p { margin-top: 7px; }
@media (max-width: 1020px) {
  .header-line { min-height: 65px; gap: 13px; flex-wrap: wrap; }
  .menu-button:not([hidden]) { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-height: 44px; background: white; color: var(--ink); }
  .menu-button:not([hidden]) ~ .main-nav:not(.is-open) { display: none; }
  .main-nav { order: 3; width: 100%; display: flex; flex-wrap: wrap; gap: 0 18px; padding-bottom: 11px; }
  .main-nav .menu-search { display: inline; }
  .header-actions .search-link { display: none; }
  .hero h1 { font-size: clamp(2.7rem, 6.1vw, 4.5rem); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 790px) {
  .hero { grid-template-columns: 1fr; gap: 20px; margin-top: 21px; }
  .hero-content { padding-block: 10px 0; }
  .hero h1 { max-width: 13ch; font-size: clamp(2.6rem, 8.5vw, 4.2rem); text-wrap: initial; }
  .hero-description { margin-block: 17px 20px; }
  .hero-art img { aspect-ratio: 1.7; }
  .course-grid, .news-grid, .staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-layout, .enroll-panel, .detail-layout { grid-template-columns: 1fr; }
  .enroll-actions { justify-self: start; align-items: start; }
  .side-card { order: -1; }
}
@media (max-width: 494px) {
  .brand { font-size: .99rem; }
  .brand img { width: 32px; height: 32px; }
  .header-line { gap: 5px; }
  .header-actions .button { padding: 8px 10px; font-size: .78rem; }
  .menu-button:not([hidden]) { font-size: .81rem; padding-inline: 8px; }
  .menu-button span { display: none; }
  .main-nav { flex-direction: column; align-items: stretch; padding-top: 5px; }
  .main-nav a { min-height: 44px; }
  .course-grid { grid-template-columns: 1fr; }
  .news-grid, .staff-grid, .footer-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; gap: 11px; }
  .hero h1 { line-height: 1.03; margin-top: 11px; }
  .hero-facts { margin-top: 19px; padding-top: 15px; }
  .button { min-height: 46px; padding: 11px 15px; font-size: .92rem; }
  .hero-art img { aspect-ratio: 1.46; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
