/* =================================================================
   Дизайн-токены (взяты из Figma) и базовые сбросы
   ================================================================= */
:root {
  /* Цвета */
  --brand-blue: #36c; /* Primary/Brand 2 */
  --brand-red: #d24256; /* Primary/Brand 1 */
  --text: #333; /* Text */
  --secondary-3: #ccd4ff; /* Secondary/Secondary 3 */
  --secondary-3-50: #d6dcff; /* Secondary/Secondary 3 - 50% */
  --gray-100: #e4e7ec; /* Neutral/Gray 100 */
  --gray-50: #f6f6f6; /* Neutral/Gray 50 */
  --white: #fff;

  /* Радиусы */
  --radius-xs: 8px;
  --radius-card: 12px;
  --radius-l: 16px;
  --radius-full: 999px;

  /* Горизонтальные отступы блоков (адаптивные) */
  --gutter: clamp(16px, 4vw, 64px);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family:
    'Montserrat',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.4;
}

/* Универсальная иконка: наследует цвет текста, рисуется обводкой */
.icon {
  flex-shrink: 0;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =================================================================
   Блок 1. Notification Bar (верхняя плашка)
   ================================================================= */
.notice {
  position: relative;
  background: var(--brand-blue);
  color: var(--gray-50);
  padding: 7px clamp(16px, 4vw, 40px);
  /* место под кнопку закрытия справа */
  padding-right: clamp(40px, 4vw, 56px);
}

.notice__inner {
  max-width: 1592px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

/* --- Левая часть --- */
.notice__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.notice__badge {
  display: inline-block;
  background: var(--gray-50);
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 15px;
  padding: 2px 12px;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(25, 33, 61, 0.06);
}

.notice__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  line-height: 1.2;
}

/* --- Правая часть --- */
.notice__right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.notice__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.notice__link .icon {
  width: 16px;
  height: 16px;
}

.notice__link:hover {
  text-decoration: underline;
}

/* Вертикальный разделитель между ссылками */
.notice__divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.5);
}

.notice__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--white);
  border-radius: var(--radius-xs);
  padding: 7px 14px;
  color: var(--white);
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition:
    background-color 0.2s,
    color 0.2s;
}

.notice__btn:hover {
  background: var(--white);
  color: var(--brand-blue);
}

/* Кнопка закрытия */
.notice__close {
  position: absolute;
  top: 50%;
  right: clamp(12px, 2vw, 24px);
  transform: translateY(-50%);
  display: inline-flex;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  line-height: 0;
}

.notice__close .icon {
  width: 18px;
  height: 18px;
}

.notice__close:hover {
  opacity: 0.8;
}

/* =================================================================
   Блок 2. Banner (баннер приёмной кампании)
   ================================================================= */
.banner {
  position: relative;
  overflow: hidden;
  /* max-width: 1720px; */
  /* border-radius: var(--radius-l); */
  padding: clamp(24px, 4vw, 56px) var(--gutter);
  /* Градиент: персиковый -> голубой (как в макете) */
  background-image: linear-gradient(60.8deg, #fff7f3 49.4%);
}

/* Декоративный контурный рисунок здания (правый верхний угол) */
.banner__decor {
  position: absolute;
  top: -8%;
  right: -4%;
  width: min(46%, 620px);
  height: auto;
  opacity: 0.16;
  /* исходник — белые линии на чёрном фоне; инвертируем в тёмные линии
     и режимом multiply убираем белый фон, оставляя контур здания */
  filter: invert(1);
  mix-blend-mode: multiply;
  transform: rotate(8deg);
  pointer-events: none;
  user-select: none;
}

.banner__inner {
  position: relative;
  z-index: 1;
  max-width: 1592px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 3vw, 48px);
}

/* --- Левая колонка: текст --- */
.banner__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  flex: 1 1 0;
  min-width: 0;
  max-width: 688px;
}

.banner__badge {
  display: inline-flex;
  align-items: center;
  background: var(--secondary-3);
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 15px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.banner__title {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  color: var(--text);
}

.banner__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  color: var(--text);
}

.banner__text p {
  margin: 0;
}

.banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--brand-red);
  border: 1px solid var(--brand-red);
  border-radius: var(--radius-xs);
  padding: 8px 14px;
  color: var(--white);
  font-size: 16px;
  text-decoration: none;
  transition:
    background-color 0.2s,
    box-shadow 0.2s;
}

.banner__cta .icon {
  width: 22px;
  height: 22px;
}

.banner__cta:hover {
  background: #bd3a4d;
  box-shadow: 0 4px 12px rgba(210, 66, 86, 0.35);
}

/* --- Правая колонка: карточка приёмной комиссии --- */
.admission {
  flex: 1 1 0;
  min-width: 0;
  max-width: 688px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--white);
  border: 2px solid var(--secondary-3-50);
  border-radius: var(--radius-card);
  padding: clamp(20px, 3vw, 32px);
}

.admission__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 24px);
  color: var(--text);
}

.admission__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admission__row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Адрес может переноситься — подпись прижата к верху */
.admission__row--top {
  align-items: flex-start;
}

.admission__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
}

.admission__label .icon {
  width: 20px;
  height: 20px;
  color: var(--brand-blue);
}

.admission__value {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}

a.admission__value:hover {
  text-decoration: underline;
}

/* Набор «чипов» с режимом работы */
.admission__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  padding: 4px 8px;
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
}

/* =================================================================
   Адаптив
   ================================================================= */

/* Планшет: колонки баннера встают друг под друга */
@media (max-width: 1024px) {
  .banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .banner__content,
  .admission {
    max-width: 100%;
  }

  .banner__decor {
    width: min(60%, 480px);
    opacity: 0.1;
  }
}

/* Узкий планшет/большой телефон: плашка переносит правую группу под левую */
@media (max-width: 820px) {
  .notice__inner {
    justify-content: flex-start;
  }
}

/* Телефон */
@media (max-width: 560px) {
  /* Плашка: вертикальная раскладка, скрываем декоративные разделители */
  .notice {
    padding-right: 44px;
  }

  .notice__right {
    width: 100%;
    gap: 12px 16px;
  }

  .notice__divider {
    display: none;
  }

  .notice__btn {
    width: 100%;
  }

  /* Баннер: подпись и значение в строке/перенос, кнопка на всю ширину */
  .banner__cta {
    width: 100%;
    justify-content: center;
  }

  .admission__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .admission__chips {
    width: 100%;
  }
}
