.content {
    overflow: hidden;
}

.note-line{
  display:flex;
  align-items:center;
  gap: 18px;
  margin-bottom: 16px;
}

.note-line__num{
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background:#2A2055;
  color:#fff;
  font-size: 13px;
  line-height: 1;
  flex: 0 0 24px;
}

.note-line__text{
  color:#2A2055;
font-size:18px;  
  line-height: 1.1;
}



.comm-nav {
  display: flex;
  justify-content: center;
  /* margin-right: 4vw; */
  margin-top: 1vw;
  gap: 1vw;
}

.comm-btn {
  outline: none;
  border: 0;
}

.comm-btn>svg {
  width: clamp(16px, 3.5vw, 39px);
  height: clamp(16px, 3.5vw, 39px);
}


.comm-item>img {
  width: clamp(100px, 38vw, 900px);
  height: clamp(100px, 25vw, 900px);
}

.tuf-table{
  --c: #1B1640; /* основной: и линии, и текст */
  border-radius: 3px;
  overflow-y: hidden;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.tuf-table__grid{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: transparent;
  overflow-y: scroll;
  min-width: 868px;
  overflow-y: hidden;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.tuf-table__grid th,
.tuf-table__grid td{
  border: 2px solid var(--c);
  padding: clamp(14px, 1.2vw, 26px);
  background: transparent;
  vertical-align: middle;
}

.tuf-table__col-label{ width: 22%; }
.tuf-table__col-year { width: calc(70% / 7); }

.tuf-table__blank{
  background: transparent;
}

.tuf-table__year{
  text-align: center;
  color: var(--c);
  font-weight: 700;
  font-size: 1.57rem;
  letter-spacing: 0.01em;
}


.tuf-table__label{
  text-align: left;
  color: var(--c);
  font-weight: 700;
}

.tuf-table__label--big{
  font-size: 24px;
  line-height: 1.05;
}

.tuf-table__label--sub{
  margin-top: clamp(12px, 1vw, 18px);
  font-weight: 400;
  font-size: clamp(14px, 1.45vw, 30px);
  line-height: 1.15;
  color: var(--c);
}

/* Числа */
.tuf-table__num{
  text-align: center;
  color: var(--c);
  font-weight: 700;
  font-size: 1.57rem;
   color: #2A2055;
  letter-spacing: 0.01em;
}

/* Высокая нижняя строка */
.tuf-table__tall th,
.tuf-table__tall td{
  height: auto;
}

.scores-footnote{
  margin: 10px 0 0;
  color: var(--c);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}

@media (max-width: 768px) {
    .tuf-table__year, td.tuf-table__num, .tuf-table__label--big {
        font-size: 1.4rem;
    }
}



.svg__container{
  display:grid;            /* 1-колоночный grid → строки одна под другой   */
  grid-row-gap:0;
  overflow-x:auto;         /* горизонтальный скролл                        */
  overflow-y:hidden;
  width:100%;              /* не расширяет .pathways                       */
  -webkit-overflow-scrolling:touch;
}

.svg__container svg{
  display:block;
  height:auto;
}

/* конкретные размеры (пример) */
.svg__container svg.f__svg{ max-width:845px; }  /* длинная */
.svg__container svg.s__svg{
  max-width:502px; 
  justify-self:end;          /* ⬅️ прижали к правому краю grid-контейнера  */
}

.study-track-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:20px;
  margin-top:24px;
}

.study-track-card{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:220px;
  padding:24px;
  border:2px solid #1B1640;
  border-radius:20px;
  background:rgba(42, 32, 85, 0.04);
}

.study-track-card__eyebrow{
  color:#2A2055;
  font-size:14px;
  font-weight:700;
  letter-spacing:0.06em;
  text-transform:uppercase;
}

.study-track-card h3{
  margin:0;
  color:#1A162D;
  font-size:32px;
  line-height:1.05;
}

.study-track-card p{
  margin:0;
  color:#1B1640;
  font-size:18px;
  line-height:1.35;
}

.study-track-card__places{
  margin-top:auto;
  padding-top:12px;
  color:#2A2055;
  font-size:20px;
  font-weight:700;
  line-height:1.2;
}

.legacy-score-svg,
.legacy-olymp-svg{
  display:none;
}

.study-directions{
  margin: 0 0 18px;
  color:#2A2055;
  font-size:18px;
  line-height:1.35;
}

.study-directions__title{
  font-weight:700;
  margin-bottom:10px;
}

.study-directions ul{
  margin:0;
  padding-left:24px;
}

.study-directions li + li{
  margin-top:8px;
}

.study-directions a{
  color:inherit;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:0.12em;
}

.study-directions__site-link{
  color:#1B1640 !important;
  white-space:nowrap;
}

.study-directions span{
  color:#2A2055;
}

@media(max-width: 1190px)
{
 .svg__container svg.f__svg{ min-width:845px; } 
    .svg__container svg.s__svg{
  width:451px; 
  justify-self:end;          /* ⬅️ прижали к правому краю grid-контейнера  */
}
}



/* ===== План приёма ===== */
.enrol-plan{

  margin-top: 48px;
}

.plan-grid{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;           /* чтобы на тесных экранах переносилось */
  gap: 32px 51px;
}

.plan-grid li{
  flex:1 1 160px;           /* минимум 160 px, остальное равномерно */
}

.num{
  font-family:inherit;
  font-weight:700;
  font-size:64px;
  line-height:1;
  color:#2A2055;            /* «синенький» #2A2055 */
  text-align: center;
  display:block;
  margin-bottom:8px;
}

.num sup{
  font-size:0.5em;
  vertical-align:super;
}

.caption{
  font-size:20px;
  font-weight:500;
  color:#1A162D;
  text-align: center;
  padding: 0 10px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  line-height:1.18;
}

.caption strong{
  font-size:22px;
  line-height:1;
}

.caption small{
  display:block;
  font-size:14px;
  font-weight:400;
  line-height:1.25;
  text-align:center;
}


@media(max-width: 520px)
{
  ul.plan-grid {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 14px 0px;
  }
    .num{  font-size: 54px;}
  
}

svg.t__svg, .tt__svg {
    max-width: 500px;
}

.min-score-grid{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  margin-top:24px;
}

.min-score-card{
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  flex:0 0 calc((100% - 64px) / 5);
  max-width:calc((100% - 64px) / 5);
  min-height:164px;
  padding:18px 14px;
  border:2px solid #1B1640;
  border-radius:18px;
  background:#fff;
  text-align:center;
}

.min-score-card__value{
  color:#2A2055;
  font-size:44px;
  font-weight:700;
  line-height:1;
}

.min-score-card__label{
  color:#1A162D;
  font-size:18px;
  font-weight:600;
  line-height:1.2;
}

.min-score-card__note{
  color:#1B1640;
  font-size:13px;
  line-height:1.3;
}

@media(max-width: 1100px)
{
  .min-score-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }

  .min-score-card{
    max-width:none;
  }
}

.tt__svg {
    max-width: 670px;}

    #olympiads h2
    {
        margin-top: 80px;
    }

.olymp-benefits{
  margin-top:24px;
  max-width:870px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

.olymp-benefits__table{
  width:100%;
  min-width:870px;
  border-collapse:collapse;
  table-layout:fixed;
  color:#2A2055;
  font-family:'Geologica', sans-serif;
  font-style:normal;
  font-size:18px;
}

.olymp-benefits__col-track{ width:25%; }
.olymp-benefits__col-profile{ width:15%; }
.olymp-benefits__col-level{ width:17%; }
.olymp-benefits__col-status{ width:16%; }
.olymp-benefits__col-right{ width:27%; }

.olymp-benefits__table thead th{
  padding:0 8px 8px;
  border:0;
  color:#2A2055;
  font-size:18px;
  font-weight:100;
  line-height:1.05;
  letter-spacing:0.01em;
  text-align:center;
  text-transform:uppercase;
  overflow-wrap:anywhere;
  word-break:normal;
  hyphens:auto;
}

.olymp-benefits__table tbody th,
.olymp-benefits__table tbody td{
  border:1.4px solid #2A2055;
  padding:10px 8px;
  color:#2A2055;
  font-size:18px;
  font-weight:300;
  line-height:1.05;
  text-align:center;
  vertical-align:middle;
  background:transparent;
  overflow-wrap:anywhere;
  word-break:normal;
  hyphens:auto;
}

.olymp-benefits__table tbody sup{
  font-size:0.66em;
  vertical-align:super;
  line-height:0;
}

.olymp-benefits__track{
  text-align:left !important;
  font-size:18px !important;
  font-weight:700 !important;
  line-height:1.08 !important;
}

.olymp-benefits__track-stack{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.olymp-benefits__profile{
  font-weight:400 !important;
}

.olymp-benefits__footnote{
  margin:12px 0 0;
  color:#2A2055;
  font-family:'Geologica', sans-serif;
  font-size:13px;
  font-style:normal;
  font-weight:300;
  line-height:1.25;
}

.olymp-benefits__footnote sup{
  font-size:0.75em;
  vertical-align:super;
}

    /* === Индивидуальные достижения === */

/* сброс счётчика и маркеров */
.achiev-list{
  counter-reset:item;
  list-style:none;
  margin:0;
  padding:0;
}

/* ⬇️ flex ТОЛЬКО для первого уровня */
.achiev-list > li{
  counter-increment:item;
  display:flex;
  justify-content:space-between;
  gap:24px;
  margin-bottom:32px;
}

/* большая цифра + точка */
.achiev-list > li::before{
  content:counter(item) '.';
  font-size:32px;
  font-weight:700;
  color:#1A162D;
  min-width:34px;
  text-align:right;
  margin-right:12px;
  line-height:1;
}

/* текст описания */
.desc{flex:1 1 auto;flex-basis: 10%;font-size:18px;line-height:1.4;max-width: 600px;}

/* вложенный UL в desc — обычные точки     */
/* (если вообще не нужны, раскомментируйте строку list-style:none) */
.desc ul{
  margin:8px 0 0;
  padding-left:20px;
  font-size:16px;
  list-style: disc;
  /* list-style: none;  */  /* ← убрать маркеры, если нужны «кружочки» — оставьте как есть */
}

/* колонка баллов справа */
.pts{
  margin-left:auto;
  text-align: left;
  font-weight:700;
  color:#2A2055;
  font-size:18px;
  line-height:1.3;
}
.pts small{ font-size:14px; font-weight:400; color:#1A162D; }
.pts.tr {
  min-width: 140px;
}

@media(max-width: 530px)
{
  .desc, .pts{
    font-size: 16px !important;
  }
  .achiev-list > li{
  counter-increment:item;
  display:flex;
  justify-content:space-between;
  gap:14px;
  margin-bottom:32px;
}
  .achiev-list > li::before
  {
    display: none;
  }
}

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

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

@media(max-width: 520px)
{
  .study-track-card{
    min-height:0;
    padding:20px;
  }

  .study-track-card h3{
    font-size:28px;
  }

  .min-score-grid{
    grid-template-columns:1fr;
  }

  .min-score-card__value{
    font-size:40px;
  }
}

.arrow {
    width: 25px !important;
    height: 25px !important;
    object-fit: contain;
    transform-origin: center;
    background: #1B1640;
    border-radius: 13px;
}

.arrow svg{
    transform: translate(-3.3px, 1.8px);
}

.dorm-swiper
{

    max-width: 550px;

}

.btn__holder {
    gap: 15px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

.dorm-swiper{
  position: relative;
  width: min(640px, 100%);
  margin-top: 18px;
  border-radius: 22px;
  overflow: hidden;
  background: #1A162D;
  box-shadow:
    0 18px 45px rgba(26, 22, 45, .18),
    0 2px 10px rgba(26, 22, 45, .10);
}

.dorm-swiper .swiper-slide{
  height: clamp(230px, 28vw, 390px);
  background: #1A162D;
}
.dorm-swiper .swiper-slide img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
}
.dorm-swiper:hover .swiper-slide-active img{
  transform: scale(1.06);
}

.dorm-swiper::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height: 92px;
  z-index: 2;
  pointer-events:none;
  background: linear-gradient(180deg,
    rgba(11,22,51,0) 0%,
    rgba(11,22,51,.25) 35%,
    rgba(11,22,51,.55) 100%);
}

.dorm-swiper .comm-nav{
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 999px;

  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.20);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  margin-top: 0;     /* перебиваем твой margin-top */
  justify-content: flex-start; /* перебиваем center */
}

.dorm-swiper .comm-btn{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;

  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  cursor: pointer;
  outline: none;

  transition: transform .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease;
  opacity: .95;
  padding: 0;
}

.dorm-swiper .comm-btn:hover{
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.34);
  transform: translateY(-1px);
  opacity: 1;
}
.dorm-swiper .comm-btn:active{
  transform: translateY(0) scale(.98);
}

.dorm-swiper .comm-btn svg{
  width: 20px;
  height: 20px;
}
.dorm-swiper .comm-btn svg path{
  stroke: #fff !important;    /* перебиваем твой #2A2055 */
  stroke-width: 3.5;
}

.dorm-swiper .comm-btn.swiper-button-disabled{
  opacity: .35;
  pointer-events: none;
}

@media (max-width: 768px){
  .dorm-swiper{ border-radius: 18px; }
  .dorm-swiper .comm-nav{
    right: 12px;
    bottom: 12px;
    padding: 9px 11px;
    gap: 8px;
  }
  .dorm-swiper .comm-btn{
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 520px){
  .dorm-swiper .swiper-slide{ height: 240px; }
  .dorm-swiper::after{ height: 78px; }
  .dorm-swiper .comm-nav{
    right: 10px;
    bottom: 10px;
    padding: 8px 10px;
  }
  .dorm-swiper .comm-btn{
    width: 40px;
    height: 40px;
  }
}

.comm-btn{
  border: 0;
}

/* ===== Правки ноября 2026 ===== */
/* Программы над шкалой сроков обучения */
.study-programs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.study-programs li { padding: 8px 16px; border: 1px solid var(--lilac-200); border-radius: 999px; font-size: var(--fs-small); line-height: 1.3; color: var(--ink); }
.study-programs a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }

/* План приёма: пять чисел в одну строку */
.plan-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: start; margin-top: 28px; }
.plan-grid li { padding: 0 12px 0 0; border-left: 0; }
.plan-grid .num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1rem + 3.4vw, 4rem);
  letter-spacing: -0.04em;
  text-align: left;
  margin-bottom: 12px;
  color: var(--violet);
}
.plan-grid .caption { display: block; padding: 0; text-align: left; font-size: var(--fs-small); font-weight: 400; line-height: 1.3; color: var(--ink); }
.plan-grid .caption { white-space: normal; overflow-wrap: break-word; }
@media (max-width: 760px) {
  ul.plan-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
  .plan-grid li { display: grid; grid-template-columns: 4.2ch minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--lilac-200); font-size: 2.4rem; }
  .plan-grid .num { font-size: 2.4rem; margin: 0; }
  .plan-grid .caption { font-size: var(--fs-text); }
}

/* Минимальные баллы: без белой подложки и рамки, цифры шрифтом заголовков */
.min-score-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.min-score-card {
  flex: none;
  max-width: none;
  min-height: 0;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  padding: 16px 12px 0 0;
  border: 0;
  border-top: 2px solid var(--ink);
  border-radius: 0;
  background: none;
  text-align: left;
}
.min-score-card__value { font-family: var(--font-display); font-size: var(--fs-num); letter-spacing: -0.03em; color: var(--violet); }
.min-score-card__label { font-size: var(--fs-small); font-weight: 400; line-height: 1.3; color: var(--ink); }
@media (max-width: 1100px) { .min-score-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .min-score-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
}

/* Общежитие: слева курс и название, справа описание, ниже лента фото */
.dorm-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px 32px; align-items: start; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--lilac-200, #DCD4FF); }
.dorm-item__when { margin: 0 0 10px; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-num); line-height: 1; letter-spacing: -0.03em; color: var(--violet); }
.dorm-item h3 { margin: 0; font-size: var(--fs-sub); line-height: 1.15; }
.dorm-item__text p { margin: 0 0 12px; font-size: var(--fs-text); line-height: 1.5; }
.dorm-item__text p:last-child { margin-bottom: 0; }
.dorm-item__photos { grid-column: 1 / -1; display: grid; gap: 8px; margin-top: 8px; }
.dorm-item__photos--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dorm-item__photos--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dorm-photo { display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3; background: #EEEAFF; }
.dorm-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--expo); }
.dorm-photo:hover img { transform: scale(1.05); }
@media (max-width: 860px) {
  .dorm-item { grid-template-columns: 1fr; gap: 14px; }
  .dorm-item__photos--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dorm-item__photos--3 .dorm-photo:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
