/* STUDY IN SAUDI — дизайн-система */

:root {
  --cream: #FBF7F1;
  --sand: #F1E4D1;
  --sand-2: #E8D5BA;
  --gold: #D9B88C;
  --brown: #8F5A20;
  --brown-dark: #5E3A12;
  --ink: #2E1D0E;
  --muted: #7A6552;
  --white: #fff;

  --shadow-sm: 0 2px 10px rgba(94, 58, 18, .08);
  --shadow-md: 0 10px 30px rgba(94, 58, 18, .12);
  --shadow-lg: 0 24px 60px rgba(94, 58, 18, .16);
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;

  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-ar: 'Amiri', 'Traditional Arabic', serif;
  --header-h: 76px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.menu-open { overflow: hidden; }
/* backdrop-filter делает шапку контейнером для fixed-меню, поэтому при открытом меню его выключаем */
html.menu-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--cream); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip; /* clip, а не hidden: hidden ломает position: sticky у шапки */
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--brown); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brown-dark); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .5em;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

.ar { font-family: var(--font-ar); direction: rtl; unicode-bidi: isolate; }

:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 3px;
  border-radius: 6px;
}
.section--dark :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible {
  outline-color: var(--gold);
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--brown-dark); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Секции ---------- */
.section { padding: 96px 0; position: relative; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); color: #F3E8D8; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lead { color: #D9C9B3; }
.section--dark .eyebrow { color: var(--gold); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: .35em; }
.lead { font-size: 1.15rem; color: var(--muted); line-height: 1.65; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .18em; color: var(--brown); margin-bottom: 14px;
}
.eyebrow::before {
  content: ''; width: 14px; height: 14px; flex: none;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 24%, 85% 15%, 76% 38%, 100% 50%, 76% 62%, 85% 85%, 62% 76%, 50% 100%, 38% 76%, 15% 85%, 24% 62%, 0 50%, 24% 38%, 15% 15%, 38% 24%);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font: 700 .95rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, #A56A2A 0%, var(--brown-dark) 100%);
  color: #fff; box-shadow: 0 8px 20px rgba(94, 58, 18, .28);
}
.btn--primary:hover { color: #fff; box-shadow: 0 12px 28px rgba(94, 58, 18, .36); }
.btn--ghost { background: transparent; border-color: var(--brown); color: var(--brown-dark); }
.btn--ghost:hover { background: var(--brown); color: #fff; }
.btn--light { background: #fff; color: var(--brown-dark); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.btn--light:hover { background: var(--sand); color: var(--brown-dark); }
.btn--wa { background: #1E8E4E; color: #fff; box-shadow: 0 8px 20px rgba(30, 142, 78, .3); }
.btn--wa:hover { background: #17753f; color: #fff; }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.site-header.is-scrolled {
  background: rgba(251, 247, 241, .85);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(143, 90, 32, .12), var(--shadow-sm);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand__logo { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name { font-family: var(--font-head); font-weight: 700; letter-spacing: .16em; font-size: 1rem; white-space: nowrap; }
.brand__sub { font-size: .7rem; color: var(--muted); margin-top: 3px; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 24px; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 999px; background: none; border: 0;
  font: 600 .95rem/1.2 var(--font-body); color: var(--ink); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s;
}
.nav__link:hover, .nav__item.is-open > .nav__link { background: var(--sand); color: var(--brown-dark); }
.nav__link.is-active { color: var(--brown); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav__link.is-active:hover { border-radius: 999px; box-shadow: none; }
.nav__caret { transition: transform .25s ease; }
.nav__item.is-open .nav__caret { transform: rotate(180deg); }

.dropdown {
  list-style: none; position: absolute; left: 50%; top: 100%; z-index: 20;
  width: 340px; margin-top: 8px; padding: 10px;
  background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  border: 1px solid var(--sand);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav__item.is-open > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown__row {
  display: flex; align-items: center; gap: 14px; padding: 10px 12px;
  border-radius: var(--r-sm); text-decoration: none; color: var(--ink);
  transition: background .2s;
}
.dropdown__row:hover { background: var(--cream); color: var(--ink); }
.flag { display: inline-block; width: 1.5em; height: 1em; border-radius: 3px; box-shadow: 0 0 0 1px rgba(46,29,14,.12); vertical-align: -0.12em; flex: none; }
.dropdown__flag { width: 36px; display: flex; justify-content: center; flex: none; }
.dropdown__flag .flag { width: 30px; height: 20px; }
.dropdown__text { display: flex; flex-direction: column; line-height: 1.3; }
.dropdown__text strong { font-size: .95rem; }
.dropdown__text small { color: var(--muted); font-size: .8rem; }

.burger {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--sand); cursor: pointer; padding: 0; position: relative; flex: none;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--brown-dark);
  border-radius: 2px; transition: transform .25s, opacity .25s, top .25s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 959px) {
  .burger { display: block; z-index: 130; }
  .nav {
    position: fixed; inset: 0; z-index: 120;
    padding: calc(var(--header-h) + 16px) 20px 32px;
    flex-direction: column; align-items: stretch; gap: 20px;
    background: var(--cream); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-header__inner { position: relative; z-index: 130; }
  .brand { position: relative; z-index: 130; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--sand-2); }
  .nav__link {
    width: 100%; justify-content: space-between; padding: 16px 4px;
    font-size: 1.15rem; border-radius: 0;
  }
  .nav__link:hover, .nav__item.is-open > .nav__link { background: none; }
  .nav__link.is-active { box-shadow: none; }
  .dropdown {
    position: static; width: auto; margin: 0; padding: 0; border: 0; box-shadow: none;
    background: transparent; transform: none !important; opacity: 1; visibility: hidden;
    max-height: 0; overflow: hidden; transition: max-height .3s ease, visibility .3s;
  }
  .dropdown::before { display: none; }
  .nav__item.is-open > .dropdown { max-height: 520px; padding-bottom: 10px; visibility: visible; }
  .nav__cta { width: 100%; padding: 16px; font-size: 1.05rem; }
}
@media (max-width: 420px) {
  .brand__name { font-size: .88rem; letter-spacing: .12em; }
  .brand__sub { font-size: .62rem; }
  .brand__logo { width: 40px; height: 40px; }
}

/* ---------- Подвал ---------- */
.site-footer {
  position: relative; overflow: hidden; background: #2E1D0E; color: #E6D8C3;
  padding: 72px 0 28px;
}
.site-footer__star {
  position: absolute; right: -140px; top: -120px; width: 560px; height: 560px;
  color: rgba(217, 184, 140, .12); stroke-width: .6; pointer-events: none;
}
.site-footer .container { position: relative; }
.site-footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr; gap: 40px;
}
.site-footer h3 {
  font-family: var(--font-body); font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .16em; color: var(--gold); margin-bottom: 18px;
}
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #E6D8C3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__about p { margin-top: 16px; color: #CDBBA2; max-width: 320px; font-size: .95rem; }
.brand--light, .brand--light:hover { color: #fff; }
.contact-link { display: inline-flex; align-items: center; gap: 10px; }
.contact-link svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.social { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.social__btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(217, 184, 140, .35); color: #fff;
  transition: background .2s, transform .2s, color .2s;
}
.social__btn:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); text-decoration: none; }
.social__btn svg { width: 22px; height: 22px; }
.site-footer__bottom {
  margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(217, 184, 140, .22);
  font-size: .88rem; color: #BBA88F;
}
@media (max-width: 959px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__star { width: 380px; height: 380px; right: -140px; }
}

/* ---------- Плавающая кнопка WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #1E8E4E; color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
  animation: wa-pulse 2.6s ease-out infinite;
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }
@keyframes wa-pulse {
  0% { box-shadow: 0 10px 24px rgba(0, 0, 0, .25), 0 0 0 0 rgba(30, 142, 78, .5); }
  70%, 100% { box-shadow: 0 10px 24px rgba(0, 0, 0, .25), 0 0 0 18px rgba(30, 142, 78, 0); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 0 100px;
  background: linear-gradient(160deg, var(--cream) 0%, var(--sand) 100%);
}
.hero__star, .page-hero__star, .cta-band__star {
  position: absolute; pointer-events: none; color: var(--gold); stroke-width: .5;
}
.hero__star {
  right: -160px; top: 50%; width: 760px; height: 760px; margin-top: -380px;
  opacity: .45; animation: spin 120s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero::before, .hero::after {
  content: ''; position: absolute; pointer-events: none; border: 2px solid rgba(143, 90, 32, .14);
  border-radius: 999px 999px 0 0; border-bottom: 0;
}
.hero::before { left: -60px; bottom: 0; width: 240px; height: 340px; }
.hero::after { left: 40px; bottom: 0; width: 160px; height: 230px; }
.hero__grid {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.hero__grid .lead { max-width: 560px; margin-bottom: 28px; }
.hero__badge {
  display: inline-block; padding: 6px 16px; margin-bottom: 20px; border-radius: 999px;
  background: #fff; color: var(--brown-dark); font-size: .85rem; font-weight: 700;
  letter-spacing: .06em; box-shadow: var(--shadow-sm); border: 1px solid var(--sand-2);
}
.hero__visual { position: relative; }
@media (max-width: 899px) {
  .hero { padding: 56px 0 72px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__star { width: 520px; height: 520px; margin-top: -260px; right: -200px; opacity: .3; }
}

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; padding: 56px 0 64px;
  background: linear-gradient(160deg, var(--cream) 0%, var(--sand) 100%);
}
.page-hero .container { position: relative; }
.page-hero__star { right: -80px; top: -60px; width: 380px; height: 380px; opacity: .5; }
.page-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); margin-bottom: .3em; max-width: 820px; }
.page-hero .lead { max-width: 640px; margin: 0; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--gold); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brown); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Сетки ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Карточки ---------- */
.card {
  background: #fff; border-radius: var(--r-md); padding: 28px; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(232, 213, 186, .6);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sand); color: var(--brown); margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }

/* Карточка вуза */
.uni-card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); border: 1px solid rgba(232, 213, 186, .6);
  text-decoration: none; color: var(--ink); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.uni-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); color: var(--ink); }
.uni-card__media {
  position: relative; display: block; aspect-ratio: 4 / 3; margin: 10px 10px 0;
  border-radius: 16px; overflow: hidden; background: var(--sand);
}
.uni-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.uni-card:hover .uni-card__media img { transform: scale(1.05); }
.uni-card__media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(46, 29, 14, 0) 55%, rgba(46, 29, 14, .5) 100%);
}
.uni-card__city {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: var(--brown-dark);
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.uni-card__media--fallback {
  display: grid; place-items: center; text-align: center; padding: 16px;
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-dark) 100%); color: #fff;
}
.uni-card__media--fallback::after { background: none; }
.uni-card__media--fallback .uni-card__star {
  position: absolute; left: 50%; top: 50%; width: 85%; height: 85%; transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, .16); stroke-width: .6;
}
.uni-card__media--fallback .uni-card__fallback-city {
  position: relative; font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: #fff; line-height: 1.1;
}
.uni-card__body { padding: 18px 20px 16px; flex: 1; }
.uni-card__title { font-family: var(--font-head); font-size: 1.2rem; line-height: 1.25; margin: 0 0 6px; }
.uni-card__ar { font-family: var(--font-ar); direction: rtl; text-align: right; color: var(--muted); font-size: 1.15rem; line-height: 1.4; margin: 0 0 12px; }
.uni-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; background: var(--cream); border-top: 1px solid var(--sand);
  font-weight: 700; font-size: .92rem; color: var(--brown-dark);
}
.uni-card__arrow {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brown); color: #fff; transition: transform .25s, background .25s;
}
.uni-card__arrow svg { width: 18px; height: 18px; }
.uni-card:hover .uni-card__arrow { transform: translateX(4px); background: var(--brown-dark); }

.country-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 28px;
  background: #fff; border-radius: var(--r-md); text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm); border: 1px solid rgba(232, 213, 186, .6);
  transition: transform .25s ease, box-shadow .25s ease;
}
.country-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); color: var(--ink); }
.country-card__flag { margin-bottom: 12px; }
.country-card__flag .flag { width: 54px; height: 36px; border-radius: 6px; }
.country-card__title { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; }
.country-card__sub { color: var(--muted); font-size: .95rem; padding-right: 48px; }
.country-card__arrow {
  position: absolute; right: 24px; bottom: 24px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sand); color: var(--brown); transition: transform .25s, background .25s, color .25s;
}
.country-card__arrow svg { width: 20px; height: 20px; }
.country-card:hover .country-card__arrow { background: var(--brown); color: #fff; transform: translateX(4px); }

.stat { text-align: center; padding: 8px; }
.stat__num { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1.1; color: var(--brown); }
.stat__label { display: block; margin-top: 6px; color: var(--muted); font-size: .95rem; }
.section--dark .stat__num { color: var(--gold); }
.section--dark .stat__label { color: #D9C9B3; }

.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature .card__icon { margin-bottom: 0; flex: none; }
.feature h3 { font-size: 1.15rem; margin-bottom: .3em; }
.feature p { margin: 0; color: var(--muted); }

/* Шаги */
.steps { list-style: none; counter-reset: step; display: grid; gap: 0; position: relative; max-width: 820px; }
.step { position: relative; padding: 0 0 36px 76px; counter-increment: step; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: counter(step); position: absolute; left: 0; top: 0; z-index: 1;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #A56A2A, var(--brown-dark)); color: #fff;
  font: 700 1.25rem/1 var(--font-head); box-shadow: 0 6px 16px rgba(94, 58, 18, .25);
}
.step::after {
  content: ''; position: absolute; left: 25px; top: 52px; bottom: 0; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--gold) 0 6px, transparent 6px 12px);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 1.2rem; margin: 10px 0 .3em; }
.step p { margin: 0; color: var(--muted); }

/* Отзывы */
.review-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: #fff; border-radius: var(--r-md); padding: 32px 28px 26px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(232, 213, 186, .6);
}
.review-card::before {
  content: '\201C'; position: absolute; top: 4px; left: 22px;
  font: 700 5rem/1 var(--font-head); color: var(--gold); opacity: .6;
}
.review-card__text { position: relative; margin: 26px 0 20px; flex: 1; }
.review-card__meta { display: flex; flex-direction: column; font-size: .9rem; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--sand); }
.review-card__meta strong { color: var(--ink); font-size: 1rem; }
.review-card img { border-radius: var(--r-sm); margin-bottom: 14px; }

/* Чипсы */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chip {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
  background: var(--sand); color: var(--brown-dark); font-size: .8rem; font-weight: 600;
  border: 1px solid transparent; font-family: var(--font-body);
}
button.chip { cursor: pointer; padding: 8px 18px; font-size: .9rem; background: #fff; border-color: var(--sand-2); transition: background .2s, color .2s, border-color .2s; }
button.chip:hover { border-color: var(--brown); }
button.chip.is-active { background: var(--brown); color: #fff; border-color: var(--brown); }

/* Список с галочками */
.list-check { list-style: none; display: grid; gap: 12px; }
.list-check li { position: relative; padding-left: 36px; }
.list-check li::before {
  content: ''; position: absolute; left: 0; top: .15em; width: 24px; height: 24px; border-radius: 50%;
  background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%238F5A20' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Аккордеон */
.accordion { display: grid; gap: 12px; max-width: 860px; }
.accordion details { background: #fff; border-radius: var(--r-sm); border: 1px solid var(--sand-2); overflow: hidden; transition: box-shadow .25s; }
.accordion details[open] { box-shadow: var(--shadow-sm); border-color: var(--gold); }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ''; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--brown); border-bottom: 2px solid var(--brown);
  transform: rotate(45deg); transition: transform .3s ease;
}
.accordion details[open] summary::after { transform: rotate(-135deg); }
.accordion__body { padding: 0 22px 20px; color: var(--muted); }
.accordion__body > :last-child { margin-bottom: 0; }

/* CTA */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 56px 48px;
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-dark) 100%); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-band__star { right: -90px; top: 50%; width: 400px; height: 400px; margin-top: -200px; color: rgba(255, 255, 255, .16); }
.cta-band > *:not(.cta-band__star) { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { margin: 0; color: #F3E3CC; max-width: 560px; }
@media (max-width: 639px) { .cta-band { padding: 36px 24px; } .cta-band .btn { width: 100%; } }

/* Панель поиска и фильтра */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 36px; }
.toolbar input[type="search"], .toolbar input[type="text"] {
  flex: 1 1 280px; min-width: 0; padding: 14px 20px; border-radius: 999px;
  border: 1.5px solid var(--sand-2); background: #fff; color: var(--ink);
  font: 500 1rem var(--font-body); transition: border-color .2s, box-shadow .2s;
}
.toolbar input::placeholder { color: var(--muted); }
.toolbar input:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 4px rgba(143, 90, 32, .18); }
.toolbar .chips { flex: 1 1 100%; }
.empty-note { text-align: center; padding: 48px 0; color: var(--muted); font-size: 1.1rem; }

/* Обложка вуза */
.uni-hero {
  position: relative; overflow: hidden; color: #fff; display: flex; align-items: flex-end;
  min-height: 460px; padding: 64px 0 48px;
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-dark) 100%);
}
.uni-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.uni-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(46, 29, 14, .35) 0%, rgba(46, 29, 14, .85) 100%);
}
.uni-hero__star { position: absolute; z-index: 1; right: -100px; top: 50%; width: 520px; height: 520px; margin-top: -260px; color: rgba(255, 255, 255, .12); stroke-width: .5; }
.uni-hero .container { position: relative; z-index: 2; }
.uni-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 900px; margin-bottom: .2em; }
.uni-hero__ar { font-family: var(--font-ar); direction: rtl; text-align: right; font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--sand-2); margin: 0 0 14px; max-width: 900px; }
.uni-hero__city {
  display: inline-block; padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: .85rem;
  background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.uni-hero .crumbs, .uni-hero .crumbs a, .uni-hero .crumbs [aria-current] { color: #F0E3CF; }
@media (max-width: 639px) { .uni-hero { min-height: 380px; padding: 48px 0 32px; } .uni-hero__ar { text-align: left; } }

.facts { display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 20px 24px; background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-sm); border: 1px solid var(--sand); }
.facts__item { display: flex; flex-direction: column; line-height: 1.3; }
.facts__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.facts__value { font-weight: 700; color: var(--ink); }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.two-col > aside { position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card {
  background: #fff; border-radius: var(--r-md); padding: 28px; box-shadow: var(--shadow-md);
  border: 1px solid var(--sand-2);
}
.aside-card h3 { margin-bottom: .4em; }
.aside-card p { color: var(--muted); }
.aside-card .btn { width: 100%; }
@media (max-width: 959px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col > aside { position: static; }
}

/* Карусель */
[data-carousel] { position: relative; }
[data-carousel-track] {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 6px 2px 20px; -webkit-overflow-scrolling: touch;
}
[data-carousel-track]::-webkit-scrollbar { display: none; }
[data-carousel-track] > * { flex: 0 0 min(380px, 86%); scroll-snap-align: start; }
.carousel-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.carousel-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--brown); background: #fff;
  color: var(--brown); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s, opacity .2s;
}
.carousel-btn:hover:not(:disabled) { background: var(--brown); color: #fff; }
.carousel-btn:disabled { opacity: .4; cursor: default; }
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-btn--prev svg { transform: scaleX(-1); }

/* ---------- Появление ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 639px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
