
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: unset;
  max-height: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  background: #020919;
  backdrop-filter: blur(18px);
}

.container.header-inner,
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: min(1192px, calc(100% - 32px));
  min-height: 42px;
  margin: 0 auto;
}

/* logo block */

.brand {
  position: static;
  top: auto;
  left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand__logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand__copy {
  display: grid;
  gap: 0;
  width: auto;
  transform: none;
}

.brand__name {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.brand__meta {
  font-size: 10px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

/* nav */

.site-nav {
  position: static;
  top: auto;
  left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(24px, 4vw, 67px);
  margin-left: auto;
  white-space: nowrap;
}

.site-nav a {
  min-height: 24px;
  font-size: 12px;
  line-height: 1;
}

.site-nav__cta {
  min-height: 24px;
  padding: 4px 16px;
  border: 1px solid var(--accent);
  border-radius: 85px;
  font-weight: 700;
  text-transform: uppercase;
}

.header-cta {
  display: none;
}

/* burger */

.nav-toggle {
  display: none;
  position: static;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

/* tablet */

@media (max-width: 1150px) {
  .container.header-inner,
  .header-inner {
    gap: 20px;
  }

  .site-nav {
    gap: 28px;
  }
}

/* mobile menu */

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-left: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(3, 10, 28, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 40px;
    justify-content: center;
  }

  .site-nav__cta {
    min-height: 44px;
    border-radius: 12px;
  }
}

/* small mobile */

@media (max-width: 640px) {
  .container.header-inner,
  .header-inner {
    width: min(100%, calc(100% - 24px));
    min-height: 42px;
  }

  .brand__logo {
    width: 42px;
    height: 42px;
  }

  .brand__name {
    font-size: 22px;
  }

  .brand__meta {
    font-size: 9px;
  }
}

/* ============================
   GLOBAL LAYOUT CLEANUP
   вставить в самый конец CSS
   ============================ */

.container,
.footer-container {
  width: min(1192px, calc(100% - 32px));
  margin-inline: auto;
}

.narrow-container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.section {
  padding-top: clamp(42px, 5vw, 72px);
}

.section-title,
.section--research .section-title,
.section--curriculum .section-title,
.section--departments .section-title {
  width: auto;
  max-width: 1064px;
}

.section-title {
  line-height: 123%;
  font-size: 42px;
}

/* ============================
   HERO CLEANUP
   ============================ */

.hero {
  padding-top: 0;
}


.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
      gap: clamp(240px, 28vw, 456px);
  min-height: unset;
}

.hero-copy {
  width: auto;
text-align: justify;
  min-width: 756px;
  max-width: 836px;
  padding-left: 20px;
}

.hero-support-copy,
.lead {
  width: auto;
  max-width: 736px;
}

.hero-support-copy {
  margin: 0 0 18px;
  line-height: 1.45;
}

h1 {
  max-width: 736px;
  line-height: 1.12;
}

.lead {
  margin-top: 18px;
  line-height: 1.5;
}

.hero-visual {
  justify-content: center;
  padding-right: 0;
}

.hero-visual__logo {
  width: min(100%, 520px);
}
h1.hero-title  {
    line-height: 123%;
}

h1.hero-title span {
  display: block;
}


/* фоновые картинки не должны ломать сетку */

.hero-bg--left {
  left: 0;
  bottom: 40px;
  width: clamp(180px, 20vw, 285px);
}

.hero-bg--right {
  right: 0;
  bottom: 0;
  width: clamp(260px, 33vw, 482px);
}

.hero-bg--overlay {
  left: 0;
  width: 100%;
}



/* ============================
   ABOUT / TEXT BLOCKS CLEANUP
   ============================ */

.section--about .narrow-container,
.section--quote .narrow-container {
  width: min(1180px, calc(100% - 32px));
}

.about-copy,
.section-intro {
  width: auto;
  max-width: 1180px;
}

.about-copy p,
.quote-copy p,
.section-intro,
.admission-feature__body {
  line-height: 1.45;
}

.about-copy {
  margin-top: clamp(24px, 3vw, 34px);
}

.about-strip img {
  height: clamp(150px, 18vw, 230px);
}

/* ============================
   QUOTE CLEANUP
   ============================ */

.quote-block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(18px, 3vw, 32px);
}

.s-qoute.quote-block.is-visible {
  align-items: center;
}

.quote-block__text {
  width: auto;
  max-width: 767px;
}

.quote-block__text p {
  width: auto;
  line-height: 1.18;
}

.quote-block__author {
}

/* ============================
   RESEARCH SLIDER CLEANUP
   ============================ */

.research-slider {
  width: min(100%, 1046px);
  max-width: 1180px;
  margin-top: 28px;
  margin-inline: auto;
}

.research-slider__viewport {
  height: auto;
  min-height: unset;
  aspect-ratio: 1180 / 460;
}

.research-slide__caption {
  left: clamp(24px, 9vw, 217px);
  right: clamp(24px, 9vw, 217px);
  top: auto;
  bottom: clamp(24px, 4vw, 44px);
  line-height: 1.25;
  z-index: 999999;
}

.research-slider__footer {
  height: auto;
  min-height: 82px;
  padding: 14px clamp(16px, 3vw, 32px);
}

/* ============================
   CURRICULUM CLEANUP
   ============================ */

.curriculum-track-wrap {
  margin-top: clamp(24px, 3vw, 36px);
}

.study-plan-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  width: 100%;
  max-width: 1180px;
  margin-top: 26px;
}

.study-card {
  width: auto;
  max-width: none;
  min-height: clamp(260px, 26vw, 308px);
}

.study-card h3 {
  width: 100%;
  min-height: 76px;
  padding: 12px 10px;
}

/* ============================
   DEPARTMENTS CLEANUP
   ============================ */

.departments-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
  margin-top: 34px;
}

.department-card {
  width: auto;
  height: 372px;
  min-height: 372px;
}

.department-card h3 {
  line-height: 1.16;
}

.department-card p {
  line-height: 1.22;
}

/* ============================
   SUPPORT / CONTACTS CLEANUP
   ============================ */

.support-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.perspectives-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contacts-actions {
  width: min(100%, 420px);
}

.perspective-card,
.support-card,
.contact-card,
.admission-feature {
  min-width: 0;
}

.support-card img,
.support-card svg {
  max-width: 100%;
}

/* ============================
   FOOTER CLEANUP
   ============================ */

.site-footer {
  margin-top: clamp(56px, 6vw, 72px);
}

.footer-container {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.7fr) minmax(220px, 0.9fr);
  gap: clamp(24px, 4vw, 48px);
}

/* ============================ 1screen */

.hero-shell {
    padding: 0 !important;
  position: relative;
  overflow: visible;
  display: flex;
}

.hero-scene {
  overflow: visible;
  z-index: 0;
}


.hero-bg--overlay {
  z-index: -2;
  top: 0;
  left: 0;
      opacity: 1;
width: 100%;
    max-height: none;
    transform: translateY(-10%) !important;
    height: 166%;
  object-fit: cover;
  object-position: top center;
}


.quote-copy.is-visible {text-align: justify;}


.im-support {
height: 463px; background: linear-gradient(180deg, rgba(2, 9, 25, 0) 0%, #020919 29%);
    width: 100%;
    height: 920px;
    transform: translateY(-284px);
    z-index: 0;
    position: absolute;
}
.about-strip
{
    background: #020919;
}

article.support-card.is-visible {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(163.61, 143.10, 255, 0.51) 100%); overflow: hidden;
    
}


.hero-scene {
  
    margin: 0 auto;
}


/* ============================
   ADAPTIVE CLEANUP
   ============================ */

@media (max-width: 1150px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  }

  .hero-copy {
    padding-left: 0;
  }

  .study-plan-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .perspectives-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .departments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-visual__logo {
    width: min(72vw, 420px);
  }

  .quote-block {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .quote-block__author {
    grid-column: 2;
  }

  .study-plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .curriculum-track-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .curriculum-track-wrap::-webkit-scrollbar,
  .study-plan-grid::-webkit-scrollbar {
    display: none;
  }

  .container,
  .narrow-container,
  .footer-container {
    width: min(100%, calc(100% - 24px));
  }

  .hero-shell {
    padding: 34px 0 42px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .lead {
    font-size: 15px;
  }

  .hero-support-copy {
    font-size: 14px;
  }

  .section-title {
    font-size: 30px;
  }

  /* .about-copy,
  .section-intro {
    text-align: left;
  } */

  .quote-block {
    grid-template-columns: 1fr;
  }

  .quote-block__author {
    grid-column: auto;
  }

  .quote-block__mark img {
    width: 38px;
    height: auto;
  }

  .research-slider {
    border-radius: 20px;
  }

  .research-slider__viewport {
    aspect-ratio: 1 / 1;
  }

  .research-slide__caption {
    left: 20px;
    right: 20px;
    bottom: 22px;
    font-size: 22px;
    line-height: 1.25;
    text-align: center;
  }

  .study-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin-top: 18px;
    overflow: visible;
    padding: 10px 0 14px;
  }

  .study-card {
    min-height: 260px;
  }

  .study-card h3 {
    width: 100%;
    height: auto;
    min-height: 62px;
    font-size: 17px;
    line-height: 1.35;
  }

  .study-card__image {
    aspect-ratio: auto;
  }

  .departments-grid {
    grid-template-columns: 1fr;
  }

  .perspectives-grid {
    grid-template-columns: 1fr;
  }

  .department-card {
    min-height: 0;
  }

  .support-grid,
  .admission-feature__stats {
    grid-template-columns: 1fr;
  }

  .contacts-actions {
    width: 100%;
  }

  .buttons {
    flex-direction: column;
  }
}
