/* ═══════════════════════════════════════════════════════════════════
   ФАЙЛ СТИЛЕЙ САЙТА EasyUni (цвета, шрифты, оформление)
   ═══════════════════════════════════════════════════════════════════
   ⭐ ХОТИТЕ ПОМЕНЯТЬ ЦВЕТА САЙТА? Меняйте их ТОЛЬКО здесь, в :root ниже -
   они автоматически применятся ко всему сайту:
     --navy  - основной тёмно-синий (кнопки, заголовки)
     --gold  - золотой акцент (кнопки, надписи)
   Остальное менять не обязательно.

   Структура файла (ищите по названиям разделов):
     Кнопки → Шапка → Главный экран → Услуги → Страны → Шаги →
     Контакты → Подвал → СТРАНИЦЫ СТРАН (каталог и страница страны) →
     Адаптив под телефоны
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --navy: #1c3667;
  --navy-dark: #12244a;
  --navy-deep: #0d1b38;
  --gold: #b8912f;
  --gold-light: #d4af57;
  --ink: #22304a;
  --muted: #5b6b85;
  --bg: #ffffff;
  --bg-tint: #f4f6fb;
  --line: #e3e8f2;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(18, 36, 74, 0.10);
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #fff;
  box-shadow: 0 8px 24px rgba(184, 145, 47, 0.35);
}
.btn--gold:hover { box-shadow: 0 12px 30px rgba(184, 145, 47, 0.45); }
.btn--navy {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 24px rgba(28, 54, 103, 0.25);
}
.btn--outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.btn--outline:hover { background: rgba(255, 255, 255, 0.14); }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--full { width: 100%; }

/* ---------- Section scaffolding ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--bg-tint); }
.section--navy {
  background: linear-gradient(160deg, var(--navy-dark), var(--navy-deep));
  color: #fff;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-label--light { color: var(--gold-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  color: inherit;
  margin-bottom: 18px;
}
.section--navy .section-title { color: #fff; }

.section-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 640px;
}
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .section-sub { margin: 0 auto; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(18, 36, 74, 0.08); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.header__logo img { width: 46px; height: 46px; object-fit: contain; }
.header__logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.header__logo-text em { font-style: normal; color: var(--gold); }

.nav { display: flex; gap: 26px; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  transition: color .15s ease;
}
.nav a:hover { color: var(--gold); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(184, 145, 47, 0.22), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 55%, var(--navy-deep) 100%);
  color: #fff;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}
.hero__glow--1 { width: 480px; height: 480px; background: rgba(212, 175, 87, 0.25); top: -160px; right: -80px; }
.hero__glow--2 { width: 420px; height: 420px; background: rgba(80, 120, 200, 0.28); bottom: -180px; left: -120px; }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
  padding: 88px 0 96px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 26px;
}
.hero__badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 0 4px rgba(212, 175, 87, 0.25);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.15;
  margin-bottom: 22px;
}
.hero__title .accent {
  background: linear-gradient(120deg, var(--gold-light), #e8c97a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin-bottom: 34px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 36px;
  list-style: none;
  justify-content: start;
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong {
  font-size: 30px;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.1;
}
.hero__stats span { font-size: 14px; color: rgba(255, 255, 255, 0.7); }

.hero__visual { display: flex; justify-content: center; }
.hero__logo-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
  max-width: 340px;
}
.hero__logo-card img { width: 100%; }

/* ---------- Trust bar ---------- */
.trust { background: var(--bg); border-bottom: 1px solid var(--line); }
.trust__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 44px 0;
}
.trust__item { display: flex; gap: 16px; align-items: flex-start; }
.trust__item svg {
  width: 42px; height: 42px;
  flex: none;
  color: var(--gold);
  background: rgba(184, 145, 47, 0.1);
  border-radius: 12px;
  padding: 9px;
}
.trust__item h3 { font-size: 16px; color: var(--navy); margin-bottom: 4px; }
.trust__item p { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---------- About ---------- */
.about__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.about__text p { color: var(--muted); margin-bottom: 16px; font-size: 16.5px; }
.about__text p strong { color: var(--navy); }

.about__list { list-style: none; margin: 24px 0 32px; }
.about__list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--ink);
}
.about__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: destination-out;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.about__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.about__card {
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.about__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.about__card:nth-child(even) { transform: translateY(22px); }
.about__card:nth-child(even):hover { transform: translateY(18px); }
.about__card strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
.about__card--gold strong { color: var(--gold); }
.about__card span { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---------- Services ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.service {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(184, 145, 47, 0.4);
}
.service__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service__icon svg { width: 26px; height: 26px; color: var(--gold-light); }
.service h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; line-height: 1.35; }
.service p { font-size: 14.5px; color: var(--muted); }
.service__tag {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: rgba(184, 145, 47, 0.12);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- Countries ---------- */
.countries__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.country {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.country:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(28, 54, 103, 0.35);
}
.country__flag { font-size: 44px; line-height: 1; display: block; margin-bottom: 14px; }
.country h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.country p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Steps ---------- */
.steps__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: background .2s ease, transform .2s ease;
}
.step:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-4px); }
.step__num {
  display: inline-block;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy-deep);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 10px;
  padding: 6px 12px;
  margin-bottom: 16px;
}
.step h3 { font-size: 16.5px; margin-bottom: 8px; color: #fff; line-height: 1.35; }
.step p { font-size: 13.5px; color: rgba(255, 255, 255, 0.72); }

/* ---------- Contact ---------- */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact__text > p { color: var(--muted); font-size: 17px; margin-bottom: 32px; }

.contact__channels { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.contact__channels li { display: flex; gap: 16px; align-items: flex-start; }
.contact__channel-icon {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 13px;
  background: rgba(28, 54, 103, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact__channel-icon svg { width: 22px; height: 22px; color: var(--navy); }
.contact__channels strong { display: block; font-size: 15px; color: var(--navy); }
.contact__channels a, .contact__channels div > span {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}
.contact__channels a:hover { color: var(--gold); }

.contact__form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.contact__form h3 { font-size: 22px; color: var(--navy); margin-bottom: 6px; }
.contact__form-sub { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.contact__form label { display: block; margin-bottom: 16px; }
.contact__form label span {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.contact__form input,
.contact__form select,
.contact__form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-tint);
  transition: border-color .15s ease, background .15s ease;
  resize: vertical;
}
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}
.contact__form input.is-invalid { border-color: #d24545; }
.contact__form-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}
.contact__form-success {
  margin-top: 18px;
  background: rgba(46, 145, 90, 0.1);
  border: 1px solid rgba(46, 145, 90, 0.35);
  color: #1f6e44;
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
}
.contact__form-success strong { display: block; }
.contact__form-success span { font-size: 13.5px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 44px;
}
.footer__brand img {
  width: 72px;
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  margin-bottom: 16px;
}
.footer__brand p { font-size: 14.5px; max-width: 280px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 {
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.footer__col a, .footer__col span { color: rgba(255, 255, 255, 0.65); text-decoration: none; font-size: 14.5px; }
.footer__col a:hover { color: var(--gold-light); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.5);
}

/* ════════════════════════════════════════════════════════════
   ВСПЛЫВАЮЩЕЕ ОКНО ЗАЯВКИ (открывается при клике на услугу)
   ════════════════════════════════════════════════════════════ */

/* Карточка услуги кликабельна */
.service { cursor: pointer; }
/* Подпись «Оставить заявку» внизу каждой карточки услуги.
   Текст подписи меняется здесь, в content: */
.service::after {
  content: 'Оставить заявку';
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  border-bottom: 1.5px dashed rgba(184, 145, 47, 0.5);
  transition: border-color .15s ease;
}
.service:hover::after { border-bottom-style: solid; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 56, 0.65);
  backdrop-filter: blur(4px);
}
.modal__box {
  position: relative;
  width: min(460px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.modal__close:hover { background: var(--line); color: var(--navy); }
.contact__form--modal { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }


/* ════════════════════════════════════════════════════════════
   СТИЛИ СТРАНИЦ СТРАН (countries.html и country.html)
   ════════════════════════════════════════════════════════════ */

/* Карточка страны стала ссылкой - убираем подчёркивание */
.country {
  display: block;
  text-decoration: none;
  color: inherit;
}
.country__more {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s ease, transform .2s ease;
}
.country:hover .country__more { opacity: 1; transform: none; }

/* Кнопка «Смотреть все 50 стран» под сеткой на главной */
.countries__all { text-align: center; margin-top: 40px; }

/* Прозрачная кнопка на тёмном фоне не нужна - на светлом: */
.btn--ghost {
  border-color: var(--line);
  color: var(--navy);
  background: #fff;
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* --- Шапка страницы каталога («N стран для вашего образования») --- */
.page-hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(184, 145, 47, 0.20), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 55%, var(--navy-deep) 100%);
  color: #fff;
  padding: 72px 0 64px;
  text-align: center;
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 48px);
  margin-bottom: 16px;
}
.page-hero__title span { color: var(--gold-light); }
.page-hero__sub {
  color: rgba(255, 255, 255, 0.8);
  max-width: 620px;
  margin: 0 auto;
  font-size: 17px;
}

/* --- Группы регионов в каталоге --- */
.catalog { padding-top: 64px; }
.region-group { margin-bottom: 56px; }
.region-group__title {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.region-group__title span {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  background: rgba(184, 145, 47, 0.12);
  border-radius: 999px;
  padding: 4px 12px;
}

/* --- Полоса призыва внизу каталога --- */
.cta-strip {
  background: linear-gradient(160deg, var(--navy-dark), var(--navy-deep));
  color: #fff;
  padding: 56px 0;
}
.cta-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-strip h2 { font-family: var(--font-display); font-size: 28px; margin-bottom: 8px; }
.cta-strip p { color: rgba(255, 255, 255, 0.75); max-width: 520px; }

/* --- Шапка страницы одной страны (флаг + название) --- */
.country-hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(184, 145, 47, 0.20), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 55%, var(--navy-deep) 100%);
  color: #fff;
  padding: 40px 0 64px;
}
.country-hero__back {
  display: inline-block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 32px;
  transition: color .15s ease;
}
.country-hero__back:hover { color: var(--gold-light); }
.country-hero__main {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.country-hero__flag {
  font-size: 96px;
  line-height: 1;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.35));
}
.country-hero__region {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 6px;
}
.country-hero__main h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 8px;
}
.country-hero__main p { color: rgba(255, 255, 255, 0.8); font-size: 17px; margin-bottom: 14px; }
.country-hero__discount {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(184, 145, 47, 0.4);
}

/* --- Описание страны --- */
.country-about { padding: 56px 0 40px; }
.country-about__text {
  font-size: 18px;
  color: var(--muted);
  max-width: 800px;
  line-height: 1.75;
}

/* --- Карточки университетов --- */
.uni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 480px));
  justify-content: center;
  gap: 28px;
}
.uni-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.uni-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

/* Фото университета (или заглушка, пока фото не добавлено) */
.uni-card__photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
/* Три варианта оформления заглушки - чередуются автоматически */
.uni-card__photo--v1 { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); }
.uni-card__photo--v2 { background: linear-gradient(135deg, #2a4a86, var(--navy)); }
.uni-card__photo--v3 { background: linear-gradient(135deg, var(--navy-dark), #3d3016); }
.uni-card__monogram {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}
.uni-card__photo-hint {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.uni-card__body { padding: 26px 26px 28px; }
.uni-card__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: rgba(184, 145, 47, 0.12);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.uni-card__body h3 {
  font-size: 20px;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 4px;
}
.uni-card__city {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}
.uni-card__body > p { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }

/* Плашка «N наших студентов уже учатся здесь» */
.uni-card__stats { margin-bottom: 20px; }
.uni-card__stat {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
}
.uni-card__stat strong {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
}
.uni-card__stat span { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.uni-card__btn { width: 100%; }

/* --- Блок «Мы поможем вам сюда поступить» --- */
.country-pitch__inner { max-width: 760px; }
.country-pitch__text { color: var(--muted); font-size: 17px; margin-bottom: 8px; }
.country-pitch__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* --- Страница «страна не найдена» --- */
.country-notfound {
  text-align: center;
  padding: 110px 0;
}
.country-notfound__emoji { font-size: 64px; display: block; margin-bottom: 18px; }
.country-notfound h1 { font-family: var(--font-display); color: var(--navy); margin-bottom: 12px; }
.country-notfound p { color: var(--muted); max-width: 480px; margin: 0 auto 28px; }

/* ════════════════════════════════════════════════════════════
   ФЛАГИ СТРАН (картинки из папки images/flags/)
   Флаги называются по slug страны: images/flags/uk.svg
   ════════════════════════════════════════════════════════════ */
.flag {
  display: inline-block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(18, 36, 74, 0.18), inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  background: #fff;
}
.flag--card { width: 72px; height: 54px; }          /* в карточке страны */
.flag--hero { width: 132px; height: 99px; border-radius: 14px; }  /* в шапке страницы страны */
.flag--small { width: 34px; height: 25px; border-radius: 5px; }   /* маленький (страница вуза) */
.flag--emoji { font-size: 44px; line-height: 1; box-shadow: none; background: none; } /* запасной эмодзи */
.country__flag-wrap { display: block; margin-bottom: 14px; }

/* ════════════════════════════════════════════════════════════
   СТРАНИЦА УНИВЕРСИТЕТА (university.html)
   ════════════════════════════════════════════════════════════ */

/* Хлебные крошки (путь: Все страны / Страна / Университет) */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.5);
}
.breadcrumbs a { color: rgba(255, 255, 255, 0.75); text-decoration: none; transition: color .15s ease; }
.breadcrumbs a:hover { color: var(--gold-light); }
.breadcrumbs__current { color: var(--gold-light); }

/* Шапка страницы университета */
.uni-hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(184, 145, 47, 0.20), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 55%, var(--navy-deep) 100%);
  color: #fff;
  padding: 40px 0 72px;
}
.uni-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.uni-hero__country {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 18px;
}
.uni-hero__country:hover { color: var(--gold-light); }
.uni-hero__info h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  margin-bottom: 16px;
}
.uni-hero__badge {
  display: inline-block;
  background: rgba(212, 175, 87, 0.16);
  border: 1px solid rgba(212, 175, 87, 0.45);
  color: var(--gold-light);
  font-weight: 800;
  font-size: 14px;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.uni-hero__desc { color: rgba(255, 255, 255, 0.8); font-size: 17px; margin-bottom: 28px; max-width: 520px; }
.uni-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Большое фото (или заглушка) в шапке страницы вуза */
.uni-hero__photo-wrap { display: flex; justify-content: center; }
.uni-hero__photo {
  width: 100%;
  max-width: 520px;
  height: 320px;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
img.uni-hero__photo { object-fit: cover; }

/* Полоса «цифры и факты» под шапкой */
.uni-facts { background: var(--bg); border-bottom: 1px solid var(--line); }
.uni-facts__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 36px 0;
}
.uni-fact { text-align: center; }
.uni-fact strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.2;
  margin-bottom: 4px;
}
.uni-fact span { font-size: 14px; color: var(--muted); }

/* Сетка преимуществ */
.advantages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.advantage {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.advantage:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.advantage__icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
}
.advantage__icon svg { width: 20px; height: 20px; color: #fff; }
.advantage p { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.5; }

/* Кликабельные элементы карточки университета на странице страны */
.uni-card__photo-link { display: block; text-decoration: none; }
.uni-card__photo-link:hover .uni-card__photo { opacity: 0.92; }
.uni-card__name-link {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease;
}
.uni-card__name-link:hover { color: var(--gold); }
.uni-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.uni-card__actions .btn { padding: 12px 10px; font-size: 14px; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; padding: 64px 0 72px; }
  .hero__visual { display: none; }
  .countries__grid { grid-template-columns: repeat(3, 1fr); }
  .steps__list { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .uni-hero__grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .section { padding: 68px 0; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(18, 36, 74, 0.12);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 15px 24px; border-top: 1px solid var(--line); }
  .burger { display: flex; }
  .header__cta { display: none; }
  .trust__inner { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
  .about__inner { grid-template-columns: 1fr; gap: 44px; }
  .about__card:nth-child(even) { transform: none; }
  .about__card:nth-child(even):hover { transform: translateY(-4px); }
  .contact__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__stats { grid-template-columns: repeat(2, auto); gap: 22px 44px; }
}

@media (max-width: 600px) {
  .countries__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .uni-grid { grid-template-columns: 1fr; }
  .country-hero__flag { font-size: 64px; }
  .cta-strip__inner { flex-direction: column; align-items: flex-start; }
  .flag--hero { width: 96px; height: 72px; }
  .uni-facts__inner { grid-template-columns: 1fr; gap: 18px; }
  .uni-card__actions { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__actions .btn { width: 100%; }
  .contact__form { padding: 28px 20px; }
}
