/* Montserrat — assets/fonts */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100;
  src: url('./assets/fonts/Montserrat-Thin.woff') format('woff');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 200;
  src: url('./assets/fonts/Montserrat-ExtraLight.woff') format('woff');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  src: url('./assets/fonts/Montserrat-Light.woff') format('woff');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('./assets/fonts/Montserrat-Regular.woff') format('woff');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  src: url('./assets/fonts/Montserrat-Medium.woff') format('woff');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  src: url('./assets/fonts/Montserrat-SemiBold.woff') format('woff');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: url('./assets/fonts/Montserrat-Bold.woff') format('woff');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  src: url('./assets/fonts/Montserrat-ExtraBold.woff') format('woff');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  src: url('./assets/fonts/Montserrat-Black.woff') format('woff');
}
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 400;
  src: url('./assets/fonts/Montserrat-Italic.woff') format('woff');
}
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 700;
  src: url('./assets/fonts/Montserrat-BoldItalic.woff') format('woff');
}

:root{
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e6eaf2;

  --primary: #1d4ed8;
  --primary-dark: #1a35a8;
  --accent: #f36a2a;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);

  --radius-lg: 14px;
  --radius-md: 12px;
  --radius-sm: 10px;

  --font-main: 'Montserrat', sans-serif;
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}

.container{
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

/* top bar */
.topbar{
  background: #1a34a6;
  color: #d1d6ed;
}
.topbar__nav{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 14px 24px;
  max-width: 1400px;
  margin: 0 auto;
}
.topbar__link{
  display: block;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  padding: 8px 4px;
  color: #d1d6ed;
  text-decoration: none;
  white-space: normal;
}
.topbar__link--active{
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.9);
  padding-bottom: 7px;
  margin-bottom: -1px;
}

/* common */
.section{padding: 18px 0;}
.card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.btn{
  appearance:none;
  border:0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 600;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  transition: transform .05s ease, opacity .2s ease;
}
.btn:active{transform: translateY(1px);}
.btn--accent{background: var(--accent); color:#fff;}
.btn--primary{background: var(--primary-dark); color:#fff;}
.btn--ghost{background: transparent; color: var(--primary-dark); border: 1px solid var(--line);}
.btn--sm{padding: 8px 12px; border-radius: 10px; font-size: 13px;}

.chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}
.chip--accent{background: rgba(243,106,42,.12); color: var(--accent);}
.chip--primary{background: rgba(29,78,216,.12); color: var(--primary-dark);}
.chip--muted{background: rgba(107,114,128,.12); color: var(--muted);}

.h2{
  margin: 0 0 12px;
  font-size: 20px;
}

/* hero */
.hero{
  padding-top: 18px;
}
.hero__wrap{
  display: grid;
  grid-template-columns: 0.8fr 2.2fr;
  gap: 14px;
  position: relative;
}
.hero__info{
  background: var(--primary-dark);
  color: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-radius: 18px;
  box-shadow: var(--shadow);
  align-self: start;
}
.hero__title{
  margin: 0 0 14px;
  font-size: 40px;
  line-height: 1.25;
  font-weight: 800;
}
.hero__title em{
  font-style: italic;
  font-weight: 700;
  font-size: 0.95em;
}
.hero__desc{
  margin: 0 0 18px;
  font-size: 20px;
  opacity: .92;
  line-height: 1.4;
}
.hero__countdown{
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex-shrink: 0;
}
.hero__countdown-item{
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border: none;
  border-radius: 14px;
  background: #3149b1;
  min-width: 70px;
  align-items: center;
}
.hero__countdown-label{
  font-size: 13px;
  opacity: .9;
}
.hero__countdown-value{
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.1;
}
.hero__media{
  position: absolute;
  top: 0;
  left: calc((100% - 14px) * 0.8 / 3 + 14px);
  width: calc((100% - 14px) * 2.2 / 3);
  height: 100%;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* quick links — синий прямоугольник, сверху картинка со скруглением, снизу текст со скруглением */
.quicklinks{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 96px;
}
/* Основа карточки — синий прямоугольник */
.quicklink{
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--primary-dark);
  padding: 10px;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .2);
  transition: box-shadow .2s ease, transform .15s ease;
}
.quicklink:hover{
  box-shadow: 0 8px 24px rgba(15, 23, 42, .28);
}
/* Верхняя часть — картинка со скруглёнными краями */
.quicklink__img{
  aspect-ratio: 4/3;
  background: #eef2ff;
  overflow: hidden;
  border-radius: 16px;
  flex-shrink: 0;
}
.quicklink__img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Нижняя часть — блок с текстом, скруглённые края */
.quicklink__body{
  padding: 14px 12px 16px;
  background: var(--surface);
  text-align: center;
  flex: 1;
  border-radius: 16px;
}
.quicklink__title{
  font-size: 15px;
  margin: 0;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.35;
}
.quicklink__sub{
  margin: 6px 0 0;
  color: var(--primary-dark);
  font-size: 13px;
  line-height: 1.3;
  opacity: .9;
}

/* list */
.list{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow:hidden;
}
.list__head{
  padding: 14px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.list__filters{display:flex; gap:8px; flex-wrap:wrap;}
.list__item{
  display:grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  align-items:center;
}
.list__icon{
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.list__icon img{width: 44px; height: 44px; object-fit:contain;}
.list__title{
  margin:0;
  font-size: 14px;
  font-weight: 800;
}
.list__meta{
  margin-top: 6px;
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.pager{
  padding: 10px 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-top:1px solid var(--line);
}
.pager__dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(29,78,216,.25);
}
.pager__dot--active{background: var(--primary); width: 18px;}

/* events — блок «Ближайшие мероприятия» по образцу приёмной комиссии */
.section--events{
  background: #fafafa;
  padding-top: 78px;
}
.events__title{
  margin: 0 0 32px;
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
}
.events__filters{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px 16px;
  margin-bottom: 32px;
}
.events__filter{
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
}
.events__filter:nth-child(-n+3){
  grid-column: span 2;
}
.events__filter:nth-child(n+4){
  grid-column: span 3;
}
.events__dropdown{
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #ffffff;
  border: 1px solid #e9ebf7;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 10;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 280px;
}
.events__dropdown--hidden{
  display: none;
}
.events__dropdown-input{
  padding: 10px 14px 10px;
  border: none;
  border-bottom: 1px solid #e9ebf7;
  border-radius: 24px 24px 0 0;
  font-size: 14px;
  color: #1d1d22;
  outline: none;
}
.events__dropdown-input::placeholder{
  color: #999;
}
.events__dropdown-list{
  overflow-y: auto;
  padding: 4px 0;
  max-height: 220px;
}
.events__dropdown-option{
  padding: 8px 14px;
  font-size: 14px;
  color: #1d1d22;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.events__dropdown-option:hover,
.events__dropdown-option:focus{
  background: #f0f2fa;
}
.events__select{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 10px 14px 12px;
  background: #ffffff;
  border: 1px solid #e9ebf7;
  border-radius: 24px;
  cursor: pointer;
  min-height: 56px;
  box-sizing: border-box;
}
.events__select:focus{
  outline: none;
  border-color: #1a35a8;
  box-shadow: 0 0 0 2px rgba(26, 53, 168, 0.15);
}
.events__select-label{
  display: block;
  font-size: 12px;
  color: #cccccc;
  font-weight: 400;
  margin-bottom: 2px;
}
.events__select-text{
  display: block;
  font-size: 14px;
  color: #1d1d22;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.events__select-inner{
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.events__select-chevron{
  font-size: 10px;
  color: #1a35a8;
  flex-shrink: 0;
  align-self: center;
}
.events__list{
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.event-card--hidden{
  display: none;
}
.event-card{
  display: grid;
  grid-template-columns: 168px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 24px 20px;
  width: 1128px;
  height: 248px;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--surface);
  border-radius: var(--radius-lg);
  color: #1d1d22;
}
.event-card__logo{
  width: 168px;
  height: 200px;
  border-radius: var(--radius-md);
  background: #f0f1f3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: none;
}
.event-card__logo img{
  width: 128px;
  height: 128px;
  object-fit: contain;
}
.event-card__body{
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 200px;
}
.event-card__title{
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: #1d1d22;
  line-height: 1.3;
}
.event-card__meta{
  margin: 0 0 16px;
  font-size: 18px;
  color: #1d1d22;
  line-height: 1.4;
}
.event-card__meta-item{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.event-card__meta-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #e5e7eb;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.event-card__meta-icon img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.event-card__meta-icon--metro{
  background: transparent;
  padding: 0;
}
.event-card__meta-icon--metro img{
  width: 18px;
  height: 18px;
}
.event-card__time{
  margin: 0 0 16px;
  font-size: 18px;
  color: #1d1d22;
  line-height: 1.4;
}
.event-card__contacts{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: auto;
}
.event-card__social{
  width: 70px;
  height: 70px;
  border-radius: 24px;
  background: #f3f5fa;
  color: #1a35a8;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.event-card__social:hover{
  background: #e8ebf5;
  color: #152a87;
}
.event-card__social img{
  object-fit: contain;
}
.event-card__social--vk img{
  width: 24px;
  height: 14px;
}
.event-card__social--tg img{
  width: 20px;
  height: 16px;
}
.event-card__contact-details{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.event-card__phone,
.event-card__email{
  font-size: 18px;
  color: #1d1d22;
}
.event-card__actions{
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
}
.event-card__btn{
  min-width: 160px;
  border-radius: 24px;
  border: 1px solid #d1d7ee;
  color: #1a35a8;
  background: #f3f5fa;
  box-sizing: border-box;
  font-size: 15px;
}
.btn--primary.event-card__btn{
  width: 168px;
  height: 72px;
  min-width: 168px;
}
.event-card__btn:hover{
  border-color: #d1d7ee;
  color: #152a87;
  background: #e8ebf5;
}
.event-card__btn--site{
  border: none;
  text-align: center;
  border-radius: 24px;
  width: 168px;
  height: 72px;
  min-width: 168px;
  box-sizing: border-box;
}
.event-card__btn--site:hover{
  border: none;
}
.events__more{
  margin-top: 32px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  background: #fafafa;
}
.events__more-link{
  font-size: 14px;
  color: #1a35a8;
  text-decoration: none;
  font-weight: 500;
}
.events__more-link:hover{
  text-decoration: underline;
}

/* promo — баннер как на скриншоте: синий фон, заголовок слева, кнопка «Записаться», ноутбук справа */
.promo-section{
  padding-top: 78px;
}
.promo-section .container {
  padding-left: 16px;
  padding-right: 16px;
}
.promo{
  border-radius: 28px;
  overflow: hidden;
  background: #1a35a8;
  color: #ffffff;
  position: relative;
  padding: 14px 28px 28px 18px;
  box-shadow: 0 12px 40px rgba(26, 53, 168, .25);
}
.promo__inner{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.promo__content {
  max-width: 520px;
  padding-top: 4px;
  padding-left: 8px;
  text-align: left;
}
.promo__title{
  margin: 0 0 24px;
  font-size: 26px;
  line-height: 1.35;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.promo__actions{
  margin-top: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.promo__btn{
  width: 470px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f56530;
  color: #ffffff;
  border: none;
  border-radius: 24px;
  padding: 0 80px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s ease, transform .05s ease;
}
.promo__btn:hover{
  opacity: .95;
}
.promo__btn:active{
  transform: translateY(1px);
}
.promo__media{
  width: 560px;
  max-width: 84vw;
  position: relative;
  flex-shrink: 0;
  overflow: visible;
}
.promo__media > img:first-child{
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}
/* faq — вопрос-ответ: фильтры по категориям и аккордеон */
.faq-section {
  margin-top: 96px;
  background: var(--bg);
}
.faq__main-title {
  margin: 0 0 32px;
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}
.faq__filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 17px 16px;
  margin-bottom: 32px;
}
.faq__filter-btn {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: none;
  padding: 12px 14px;
  border-radius: 24px;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  background: #f3f4f8;
  color: #1a35a8;
  font-weight: 500;
  transition: background .2s ease, color .2s ease;
}
.faq__filter-btn:hover {
  background: #e5e7eb;
  color: #1a35a8;
}
.faq__filter-btn--active {
  background: #1a35a8;
  color: #fff;
}
.faq__filter-btn--active:hover {
  background: #152a7a;
  color: #fff;
}
.faq__content--hidden {
  display: none;
}
.faq__topic-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}
.faq__empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq__item {
  background: var(--surface);
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: background .15s ease;
}
.faq__question:focus {
  outline: none;
}
.faq__question:hover {
  background: #f9fafb;
}
.faq__question span:first-child {
  flex: 1;
  min-width: 0;
}
.faq__arrow {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--primary-dark);
}
.faq__answer {
  padding: 0 18px 16px;
  overflow: hidden;
}
.faq__answer--closed {
  display: none;
}
.faq__answer p {
  margin: 0;
  padding: 0 0 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #1d1d22;
}

/* admission — поступление 9/11 класс */
.admission {
  margin-top: 96px;
  padding-bottom: 28px;
}
.admission__main-title {
  margin: 0 0 32px;
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}
.admission__hero {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
  background: var(--line);
}
.admission__hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  display: block;
}
.admission__grade-tabs,
.admission__category-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.admission__grade-tabs {
  width: 100%;
  flex-wrap: nowrap;
  gap: 10px;
}
.admission__panel {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  padding: 16px 18px 20px;
  margin-bottom: 24px;
}
.admission__category-tabs {
  margin-bottom: 32px;
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
}
.admission__category-tabs--hidden {
  display: none;
}
.admission__category-tabs .admission__tab {
  flex: 1;
  min-width: 0;
}
.admission__tab {
  appearance: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.admission__grade-tabs .admission__tab {
  flex: 1;
  min-width: 0;
}
.admission__tab--grade {
  margin-right: 0;
}
.admission__tab--grade.admission__tab--active {
  background: var(--accent);
  color: #fff;
}
.admission__tab--grade:not(.admission__tab--active) {
  background: var(--surface);
  color: var(--accent);
  border: 2px solid var(--accent);
}
.admission__tab--category.admission__tab--active {
  background: var(--primary-dark);
  color: #fff;
  margin-right: 0;
}
.admission__tab--category:not(.admission__tab--active) {
  background: #e5e7eb;
  color: #4b5563;
}
.admission__tab--category:not(.admission__tab--active):hover {
  background: #d1d5db;
}
.admission__content {
  margin-bottom: 24px;
}
.admission__content--hidden {
  display: none;
}
.admission__content-lead {
  margin: 0 0 32px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.4;
}
.admission__blocks {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.admission__block-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}
.admission__block-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}
.admission__link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.admission__link:hover {
  color: var(--primary-dark);
}
.admission__cta-wrap {
  width: 100%;
}
.admission__cta {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  padding: 16px 28px;
  font-size: 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity .2s ease, transform .05s ease;
  box-sizing: border-box;
}
.admission__cta:hover {
  opacity: .95;
}
.admission__cta:active {
  transform: translateY(1px);
}

/* cards (legacy, оставлено для совместимости) */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.post{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.post__media{
  position:relative;
  aspect-ratio: 16/9;
  overflow:hidden;
}
.post__media img{width:100%; height:100%; object-fit:cover;}
.post__ribbons{
  position:absolute;
  left: 0;
  right: 0;
  top: 10px;
  display:flex;
  justify-content:space-between;
  padding: 0 10px;
  gap: 8px;
}
.post__ribbon{
  height: 10px;
  border-radius: 999px;
  flex: 1;
  background: rgba(255,255,255,.75);
}
.post__ribbon--accent{background: var(--accent);}
.post__ribbon--primary{background: var(--primary);}

.post__body{padding: 12px 12px 14px;}
.post__tags{display:flex; gap:8px; flex-wrap:wrap; margin-bottom: 10px;}
.post__title{margin:0 0 8px; font-size: 16px; font-weight: 900;}
.post__desc{margin:0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.45;}
.post__facts{display:flex; gap:12px; flex-wrap:wrap; color: var(--muted); font-size: 12px; margin-bottom: 12px;}
.post__cta{width:100%; border-radius: 12px;}

/* footer */
.footer{
  padding: 26px 0 36px;
  color: var(--muted);
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding-top: 16px;
}
.footer__brand{display:flex; align-items:center; gap:10px;}
.footer__brand img{height: 74px; width:auto; opacity:.95;}
.footer__links{display:flex; gap: 14px; flex-wrap:wrap; font-size: 13px;}
.footer__links a:hover{text-decoration: underline;}

/* footer — Московское образование */
.footer--mos{
  margin-top: 96px;
  background: #fff;
  color: #1a1a1a;
  padding: 20px 0 24px;
}
.footer__inner--mos{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  flex-wrap: wrap;
}
.footer__brand--mos{
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer__logo-mos{
  flex-shrink: 0;
  width: 218px;
  height: 74px;
  display: block;
}
.footer__contacts-mos{
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: #1a1a1a;
}
.footer__contacts-mos a{
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}
.footer__contacts-mos a:hover{
  text-decoration: underline;
}
.footer__actions-mos{
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__btn-question{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 32px;
  border: 1px solid #7eb8e0;
  background: #fff;
  color: #1d6bb8;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.footer__btn-question:hover{
  background: #f5fafd;
  border-color: #5a9fd4;
}
.footer__social-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid #7eb8e0;
  background: #fff;
  color: #1d6bb8;
  flex-shrink: 0;
}
.footer__social-btn:hover{
  background: #f5fafd;
  border-color: #5a9fd4;
}
@media (max-width: 768px){
  .footer__inner--mos{
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__actions-mos{
    width: 100%;
    justify-content: flex-start;
  }
}

/* modal */
dialog:not([open]){
  display: none;
}
.modal{
  border: 0;
  border-radius: 16px;
  padding: 0;
  width: min(560px, calc(100% - 24px));
  box-shadow: 0 40px 120px rgba(0,0,0,.35);
}
.modal::backdrop{background: rgba(15, 23, 42, .6);}
.modal__head{
  padding: 14px 16px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.modal__title{margin:0; font-size: 16px; font-weight: 900;}
.modal__close{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor:pointer;
}
.modal__body{padding: 16px;}
.form{
  display:grid;
  gap: 12px;
}
.field label{display:block; font-size: 12px; color: var(--muted); margin-bottom: 6px;}
.field input, .field select, .field textarea{
  width:100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  outline: none;
  font: inherit;
  background: #fff;
}
.field textarea{min-height: 96px; resize: vertical;}
.field input:focus, .field select:focus, .field textarea:focus{border-color: rgba(29,78,216,.55); box-shadow: 0 0 0 3px rgba(29,78,216,.12);}
.form__row{display:grid; grid-template-columns: 1fr 1fr; gap: 12px;}
.modal__actions{
  display:flex;
  justify-content:flex-end;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
.note{font-size: 12px; color: var(--muted); margin: 10px 0 0;}

/* modal — индивидуальные консультации (строго по макету: 1256×860, белая тема, тёмно-синяя шапка) */
.modal--consult{
  background: #fff;
  width: 1256px;
  max-width: calc(100vw - 24px);
  height: 860px;
  max-height: calc(100vh - 24px);
  color: #1e293b;
  box-sizing: border-box;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
}
.modal__head--consult{
  background: #1e3a5f;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: none;
  min-height: 72px;
  box-sizing: border-box;
}
.modal__title--consult{
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0;
  padding: 0;
}
.modal__close--consult{
  background: transparent;
  border: 0;
  color: #818cf8;
  font-size: 22px;
  line-height: 1;
  padding: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.modal__close--consult:hover{ color: #a5b4fc; }
.modal__body--consult{
  padding: 32px 40px 40px;
  overflow: auto;
  box-sizing: border-box;
  background: #fff;
}
.modal__section{
  margin-bottom: 32px;
}
.modal__section:last-child{ margin-bottom: 0; }
.modal__section-title{
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}
.modal__section-text{
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.55;
  color: #0f172a;
}
.modal__list{
  margin: 0 0 18px;
  padding-left: 0;
  list-style: none;
}
.modal__list li{
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: #0f172a;
}
.modal__list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #818cf8;
}
.form--consult{ gap: 18px; }
.form__row--consult{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field--consult label{
  display: block;
  color: #64748b;
  font-size: 13px;
  margin-bottom: 8px;
  font-weight: 400;
}
.field--consult select{
  width: 100%;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 40px 12px 14px;
  font-size: 15px;
  color: #0f172a;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.field--consult select:focus{
  border-color: #94a3b8;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, .2);
}
.field--consult select option{
  color: #0f172a;
}

/* Доп. блок формы (показывается после выбора колледжа) */
.consult-form__extra{
  margin-top: 0;
}
.consult-form__extra:not(.consult-form__extra--hidden){
  margin-top: 32px;
}
.consult-form__extra--hidden{
  display: none;
}
.form__row--three{
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.field--consult input[type="text"],
.field--consult input[type="email"]{
  width: 100%;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  color: #0f172a;
  outline: none;
  font: inherit;
}
.field--consult input::placeholder{
  color: #94a3b8;
}
.field--consult input:focus{
  border-color: #94a3b8;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, .2);
}
.field--consult textarea{
  width: 100%;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  color: #0f172a;
  outline: none;
  font: inherit;
  min-height: 100px;
  resize: vertical;
}
.field--consult textarea:focus{
  border-color: #94a3b8;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, .2);
}
.field--patronymic .field__row{
  position: relative;
}
.field--patronymic .field__row input[type="text"]{
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding-right: 56px;
}
.field--patronymic .field__row .radio-label{
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  z-index: 1;
}
.field--patronymic .field__row .radio-label input{
  accent-color: #1e3a5f;
  cursor: pointer;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 0;
}
/* Описание и Регистрация */
.consult-form__description{
  margin-bottom: 32px;
}
.consult-form__section-heading{
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: #212529;
  line-height: 1.3;
}
.consult-form__desc-text{
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.55;
  color: #212529;
}
.consult-form__desc-list{
  margin: 0 0 18px;
  padding-left: 0;
  list-style: none;
}
.consult-form__desc-list li{
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: #212529;
}
.consult-form__desc-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
}
.consult-form__registration-intro{
  margin-bottom: 32px;
}
.consult-form__registration-intro .consult-form__section-heading{
  margin-bottom: 8px;
}
.consult-form__intro{
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #1d1d22;
}
/* Боксы формы консультаций */
.consult-form__box{
  background: #fafafa;
  border: none;
  border-radius: 24px;
  padding: 20px;
  box-sizing: border-box;
}
.consult-form__box-place{
  margin-bottom: 32px;
}
.consult-form__box-place .consult-form__place-extra{
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}
.consult-form__box-place .consult-form__place-extra.consult-form__extra--hidden{
  display: none;
}
.consult-form__visitor.consult-form__box-visitor{
  margin-bottom: 0;
}
.consult-form__visitor.consult-form__box-visitor + .consult-form__visitor.consult-form__box-visitor{
  margin-top: 32px;
}
.consult-form__visitor-remove{
  margin: 16px 0 0;
  text-align: center;
}
.consult-form__visitor:first-child .consult-form__visitor-remove{
  display: none;
}
.consult-form__remove-btn{
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: #dc2626;
  cursor: pointer;
  text-decoration: none;
}
.consult-form__remove-btn:hover{
  text-decoration: underline;
}
.consult-form__add-visitor{
  margin: 32px 0 0;
  text-align: center;
}
.btn--add-visitor.consult-form__add-btn{
  width: 100%;
  height: 64px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 500;
  color: #1A35A8;
  background: transparent;
  border: 1px solid #1A35A8;
  border-radius: 24px;
  cursor: pointer;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn--add-visitor.consult-form__add-btn:hover{
  background: rgba(26, 53, 168, 0.08);
}
.field--checkbox{ margin-bottom: 24px; }
.checkbox-label{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.45;
  color: #334155;
}
.checkbox-label input{
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #1e3a5f;
  cursor: pointer;
  flex-shrink: 0;
}
.checkbox-label__text{ flex: 1; }
.consult-form__submit{ margin-top: 8px; }
.btn--consult-submit{
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: #1e3a5f;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.btn--consult-submit:hover{ background: #16304d; }

/* Модальное окно «Задать вопрос» (Не нашли информацию?) — по скриншоту */
.modal--question{
  background: #fff;
  width: 1256px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  color: #212529;
  box-sizing: border-box;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 25px 80px rgba(0,0,0,.25);
  border: none;
  display: flex;
  flex-direction: column;
  height: fit-content;
}
.modal--question::backdrop{
  background: rgba(0, 0, 0, 0.5);
}
.modal__head--question{
  background: #fff;
  padding: 24px 48px 32px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  border-bottom: 2px solid #f9fafc;
}
.modal__title--question{
  font-size: 32px;
  font-weight: 700;
  color: #212529;
  line-height: 1.3;
  margin: 0;
  padding: 0;
  text-align: left;
}
.modal__close--question{
  position: absolute;
  top: 24px;
  right: 24px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #4263EB;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.modal__close--question:hover{
  color: #364FC7;
}
.modal__body--question{
  padding: 32px 24px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  background: #fff;
  flex: 1 1 auto;
  min-height: 0;
}
.modal__section--question{
  margin-bottom: 0;
}
.modal__section-title--question{
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #212529;
  line-height: 1.3;
}
.modal__section-text--question{
  margin: 8px 0 20px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #1d1d22;
}
.btn--question-submit{
  width: 100%;
  height: 64px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: #364FC7;
  border: 0;
  border-radius: 24px;
  cursor: pointer;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn--question-submit:hover{
  background: #2d3fb8;
}

/* Форма «Задать вопрос» — светлый блок и сетка как на скриншоте */
.form--question{
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 446px;
  box-sizing: border-box;
  background: #fafafa;
  border-radius: 32px;
  padding: 20px;
  margin-top: 0;
}
.form__row--question{
  display: grid;
  gap: 16px;
}
.form__row--three{
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
}
.form__row--two{
  grid-template-columns: 1fr 1fr;
}
/* Фамилия, Имя, Отчество — размер бокса 360×88 px; отступ до следующего ряда 32 px */
.form--question .form__row--three{
  grid-template-columns: 1fr 1fr 1fr;
  margin-bottom: 16px;
}
.form--question .form__row--three .field__box{
  width: 100%;
  height: 88px;
  box-sizing: border-box;
}
/* Ряд Телефон/Email — отступ до поля обращения 32 px */
.form--question .form__row--two{
  margin-bottom: 16px;
}
/* Box для поля формы «Задать вопрос» — скругление 24px */
.field--question .field__box{
  border-radius: 24px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #CED4DA;
}
.field--question .field__box label{
  display: block;
  margin-bottom: 8px;
  line-height: 1.3;
}
.field--question .field__box input,
.field--question .field__box textarea{
  border-radius: 6px;
}
.field--question label{
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #999999;
  margin-bottom: 8px;
  line-height: 1.3;
}
.field--question input[type="text"],
.field--question input[type="email"],
.field--question input[type="tel"],
.field--question textarea,
.field--question select{
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 10px 0;
  font-size: 15px;
  line-height: 1.5;
  color: #212529;
  outline: none;
  font: inherit;
  height: auto;
  min-height: 0;
}
.field--question select{
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231a35a8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 24px;
  cursor: pointer;
  font-weight: 500;
}
.field--question input::placeholder,
.field--question textarea::placeholder{
  color: #1d1d22;
  font-weight: 500;
}
.field--question input:focus,
.field--question textarea:focus{
  box-shadow: none;
}
.field--question textarea{
  min-height: 100px;
  resize: vertical;
}
/* Отчество — та же высота зоны подписи, что у Фамилия/Имя, чтобы «Ввести» был на одном уровне */
.field--question .field__label-row{
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.3;
  height: 1.3em;
  position: relative;
  font-family: inherit;
}
.field--question .field__label-row > label[for]{
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 400;
  color: #999999;
  line-height: 1.3;
  font-family: inherit;
  letter-spacing: normal;
  display: block;
}
/* «Нет» в абсолютной позиции, чтобы не увеличивать высоту строки и не сдвигать плейсхолдер */
.field--patronymic-row .field__label-row .question-no-label{
  position: absolute;
  right: 0;
  top: 0;
  margin: 0;
  padding: 0;
}
.field--patronymic-row .field__box input[type="text"]{
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 0;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
  text-indent: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #212529;
  background: transparent;
  border: none;
  font: inherit;
  outline: none;
  min-height: 0;
  height: auto;
  vertical-align: top;
}
.field--patronymic-row .field__box input[type="text"]::placeholder{
  color: #1d1d22;
}
/* Бокс Отчество — те же отступы и поведение, что у Имя/Фамилия; плейсхолдер не прибит к низу */
.field--patronymic-row .field__box{
  padding: 12px 16px;
  display: block;
}
.question-no-label{
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
  color: #999999;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.3;
  margin: 0;
  padding: 0;
  font-family: inherit;
  letter-spacing: normal;
  position: relative;
  z-index: 1;
}
.question-no-label input[type="checkbox"]{
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  width: 9px;
  height: 9px;
  margin: 0;
  flex-shrink: 0;
  vertical-align: middle;
  border-radius: 50%;
  border: 1px solid #CED4DA;
  background: #fff;
  position: relative;
  z-index: 2;
}
.question-no-label input[type="checkbox"]:checked{
  background: #4263EB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center 58% / 15px no-repeat;
  border-color: #4263EB;
}
.field--message{
  margin-bottom: 0;
}
/* Согласие на обработку ПД — такой же круглый чекбокс, как у отчества */
.form--question .field--checkbox .checkbox-label,
.question-form__footer .field--checkbox .checkbox-label{
  color: #212529;
  font-size: 14px;
}
.form--question .field--checkbox .checkbox-label input,
.question-form__footer .field--checkbox .checkbox-label input{
  accent-color: #4263EB;
}
.question-form__footer .field--checkbox .checkbox-label input[type="checkbox"],
.form--question .field--checkbox .checkbox-label input[type="checkbox"]{
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  width: 9px;
  height: 9px;
  margin: 0;
  flex-shrink: 0;
  vertical-align: middle;
  border-radius: 50%;
  border: 1px solid #CED4DA;
  background: #fff;
}
.question-form__footer .field--checkbox .checkbox-label input[type="checkbox"]:checked,
.form--question .field--checkbox .checkbox-label input[type="checkbox"]:checked{
  background: #4263EB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center 58% / 15px no-repeat;
  border-color: #4263EB;
}
/* Форма консультаций в стиле «Задать вопрос» — без фикс. высоты и цветовая схема */
#modal-apply .form--question{
  height: auto;
  min-height: 0;
  gap: 0;
  background: #fff;
}
.consult-form__block{
  margin-bottom: 24px;
}
.consult-form__block:last-child{
  margin-bottom: 0;
}
#consult-form > .consult-form__block:first-of-type{
  margin-bottom: 0;
}
.consult-form__section-title{
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: #212529;
  line-height: 1.3;
}

.consult-form__footer-wrap{
  margin-top: 32px;
}
.consult-form__footer-wrap .question-form__footer{
  margin-top: 0;
}
.question-form__footer{
  margin-top: 32px;
}
.question-form__footer .field--checkbox{
  margin-bottom: 0;
}
.question-form__footer .form-question__submit{
  margin-top: 32px;
  margin-bottom: 0;
}
.form-question__submit{
  margin-top: 4px;
  margin-bottom: 0;
}

/* responsive: модальные окна — мобильные устройства */
@media (max-width: 768px){
  .modal--question{
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
    padding: 0;
    inset: 0;
    position: fixed;
  }
  .modal--question::backdrop{
    background: rgba(0, 0, 0, 0.6);
  }
  .modal__head--question{
    padding: 16px 56px 16px 16px;
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
    padding-left: env(safe-area-inset-left, 16px);
    padding-right: calc(56px + env(safe-area-inset-right, 0px));
  }
  .modal__title--question{
    font-size: 20px;
    line-height: 1.25;
    padding-right: 8px;
  }
  .modal__close--question{
    position: fixed;
    top: calc(16px + env(safe-area-inset-top, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .modal__body--question{
    padding: 20px 16px 24px;
    padding-left: env(safe-area-inset-left, 16px);
    padding-right: env(safe-area-inset-right, 16px);
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
  }
  .form--question{
    padding: 16px;
    border-radius: 20px;
  }
  /* Модалка «Задать вопрос»: убираем лимит высоты формы, контент прокручивается в modal__body */
  #modal-question .form--question{
    height: auto;
    min-height: 0;
  }
  .form__row--question.form__row--three,
  .form__row--question.form__row--two{
    grid-template-columns: 1fr;
  }
  .form--question .form__row--three .field__box{
    width: 100%;
    height: auto;
    min-height: 72px;
  }
  .consult-form__box{
    padding: 16px;
    border-radius: 20px;
  }
  .consult-form__description,
  .consult-form__registration-intro{
    margin-bottom: 24px;
  }
  .consult-form__section-heading{
    font-size: 16px;
  }
  .consult-form__desc-text,
  .consult-form__desc-list li{
    font-size: 14px;
  }
  .question-form__footer .form-question__submit,
  .consult-form__footer .form-question__submit{
    margin-top: 20px;
  }
  .btn--question-submit,
  .btn--add-visitor.consult-form__add-btn{
    height: 52px;
  }
}

@media (max-width: 640px){
  .modal__head--question{ padding: 14px 52px 14px 14px; }
  .modal__title--question{ font-size: 18px; }
  .modal__body--question{ padding: 16px 12px 20px; }
  .form--question{ padding: 12px; }
  .form__row--three{
    grid-template-columns: 1fr;
  }
  .form--question .form__row--three .field__box{
    width: 100%;
    height: auto;
    min-height: 72px;
  }
  .form__row--two{
    grid-template-columns: 1fr;
  }
  .modal__section-title--question{
    font-size: 18px;
  }
  .consult-form__box{
    padding: 12px;
  }
}

/* responsive */
@media (max-width: 980px){
  .cards{grid-template-columns: 1fr;}
}

@media (max-width: 840px){
  .topbar__nav{display:none;}
  .topbar__burger{display:inline-flex; align-items:center; justify-content:center;}

  /* Hero: одна колонка, два блока с одинаковой минимальной высотой */
  .hero__wrap{
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero__info{
    min-height: 220px;
    padding: 18px 16px;
  }
  .hero__title{
    font-size: 26px;
    margin-bottom: 10px;
  }
  .hero__desc{
    font-size: 16px;
    margin-bottom: 12px;
  }
  .hero__countdown{
    gap: 8px;
  }
  .hero__countdown-item{
    padding: 8px 10px;
    min-width: 56px;
  }
  .hero__countdown-value{
    font-size: 22px;
  }
  .hero__countdown-label{
    font-size: 11px;
  }
  .hero__media{
    position: static;
    left: auto;
    width: auto;
    min-height: 220px;
    height: 100%;
  }

  /* Quicklinks: одинаковые по высоте карточки в сетке 2x2 */
  .quicklinks{
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
  }
  .quicklink{
    min-height: 180px;
    display: flex;
    flex-direction: column;
  }
  .quicklink__img{
    aspect-ratio: 4/3;
    flex-shrink: 0;
  }
  .quicklink__body{
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
  }
  .quicklink__title{
    font-size: 13px;
  }

  /* Promo: одна колонка, кнопка по ширине, картинка по центру */
  .promo-section{
    padding-top: 48px;
  }
  .promo-section .container{
    padding-left: 12px;
    padding-right: 12px;
  }
  .promo{
    padding: 20px 16px 24px;
    border-radius: 20px;
  }
  .promo__inner{
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .promo__content{
    max-width: none;
    padding-left: 0;
    text-align: center;
  }
  .promo__title{
    font-size: 22px;
    margin-bottom: 20px;
    line-height: 1.3;
  }
  .promo__actions{
    justify-content: center;
  }
  .promo__btn{
    width: 100%;
    max-width: 320px;
    height: 56px;
    padding: 0 24px;
    border-radius: 16px;
    font-size: 15px;
  }
  .promo__media{
    width: 100%;
    max-width: 280px;
    justify-self: center;
    margin: 0 auto;
  }

  .list__item{grid-template-columns: 56px 1fr;}
  .list__item .btn{grid-column: 2; justify-self:start;}

  .events__filters{
    grid-template-columns: 1fr;
  }
  .events__filter:nth-child(-n+3),
  .events__filter:nth-child(n+4){
    grid-column: auto;
  }
  .event-card{
    grid-template-columns: 80px 1fr;
    gap: 12px;
    width: auto;
    height: auto;
    min-height: 0;
    padding: 16px 12px;
  }
  .event-card__logo{
    width: 80px;
    height: 80px;
  }
  .event-card__logo img{
    width: 56px;
    height: 56px;
  }
  .event-card__body{
    height: auto;
    min-height: 0;
  }
  .event-card__title{
    font-size: 15px;
    margin-bottom: 8px;
  }
  .event-card__meta,
  .event-card__time{
    font-size: 14px;
    margin-bottom: 8px;
  }
  .event-card__phone,
  .event-card__email{
    font-size: 14px;
  }
  .event-card__contacts{
    gap: 8px 10px;
  }
  .event-card__social{
    width: 48px;
    height: 48px;
  }
  .event-card__social--vk img{
    width: 18px;
    height: 10px;
  }
  .event-card__social--tg img{
    width: 16px;
    height: 12px;
  }
  .event-card__contact-details{
    gap: 4px;
  }
  .event-card__actions{
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
  .event-card__btn,
  .btn--primary.event-card__btn,
  .event-card__btn--site{
    width: 100%;
    min-width: 0;
    height: 52px;
    font-size: 14px;
  }
  .form__row{grid-template-columns: 1fr;}
}

@media (max-width: 640px){
  .event-card{
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }
  .event-card__logo{
    width: 100%;
    max-width: 120px;
    height: 120px;
    justify-self: start;
  }
  .event-card__logo img{
    width: 72px;
    height: 72px;
  }
  .event-card__title{
    font-size: 16px;
  }
  .event-card__meta,
  .event-card__time{
    font-size: 13px;
  }
  .event-card__phone,
  .event-card__email{
    font-size: 13px;
  }
  .event-card__actions{
    flex-direction: column;
    align-items: stretch;
  }
  .event-card__btn,
  .btn--primary.event-card__btn,
  .event-card__btn--site{
    width: 100%;
    height: 48px;
    font-size: 14px;
  }

  .faq__filters{grid-template-columns: repeat(2, 1fr);}
  .faq__filter-btn{font-size: 12px; padding: 10px 8px;}
  .admission__main-title{font-size: 20px;}
  .admission__tab{padding: 10px 18px; font-size: 14px;}
  .admission__cta{width: 100%; max-width: 100%; padding: 14px 20px; font-size: 15px;}
}

@media (max-width: 480px){
  /* Hero на очень узких экранах — компактнее */
  .hero__info,
  .hero__media{
    min-height: 200px;
  }
  .hero__title{
    font-size: 22px;
  }
  /* Quicklinks: одна колонка, все карточки одинаковой высоты */
  .quicklinks{
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(160px, auto);
  }
  .quicklink{
    min-height: 160px;
  }
  /* Promo на узких экранах */
  .promo-section{
    padding-top: 32px;
  }
  .promo{
    padding: 16px 12px 20px;
    border-radius: 16px;
  }
  .promo__title{
    font-size: 18px;
    margin-bottom: 16px;
  }
  .promo__btn{
    height: 48px;
    font-size: 14px;
    max-width: 100%;
  }
  .promo__media{
    max-width: 240px;
  }
}

@media (max-width: 420px){
  .topbar__logo{min-width: 0;}
}
