/* ============================================================
   Хуамин — центр тестирования и изучения китайского языка.
   Статическая версия. Палитра фирменного логотипа:
   бордовый лотос с золотой сердцевиной.
   ============================================================ */

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/golos-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/golos-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/golos-cyr-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

:root {
  --primary: #2f7d4c;
  --primary-dark: #24603a;
  --primary-soft: #e8f3ec;
  --accent: #eda12f;
  --ink: #1e2a23;
  --text: #3b463f;
  --muted: #77857c;
  --paper: #fcfdfb;
  --tint: #eff5f0;
  --card: #ffffff;
  --border: #dde7de;
  --success: #2e7d4f;
  --success-bg: #e9f5ee;
  --error: #b3261e;
  --error-bg: #fdecea;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(24, 54, 38, 0.08);
  --container: 1180px;
  --header-h: 116px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: "Golos Text", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }

p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.lead { font-size: 1.12rem; color: var(--text); max-width: 46em; }
.muted { color: var(--muted); font-weight: 400; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 0.95rem; line-height: 1.2;
  cursor: pointer; text-decoration: none; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { text-decoration: none; }

.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); }

.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary-soft); }

.btn--small { padding: 8px 16px; font-size: 0.85rem; background: var(--primary); color: #fff; }
.btn--small:hover { background: var(--primary-dark); }

.btn--block { width: 100%; }

.btn--provider { background: #fff; color: var(--ink); border-color: var(--border); justify-content: flex-start; }
.btn--provider:hover { border-color: var(--provider-color, var(--primary)); }
.btn__dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; background: var(--provider-color, var(--primary)); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ---------- Шапка ---------- */

/* Двухъярусная шапка, как на оригинале: сверху логотип, соцсети, телефон
   и кнопка; ниже — просторная строка навигации.
   Без backdrop-filter: он делает шапку containing block для
   position:fixed и ломает мобильную панель меню. */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.header__top { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.header__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header__icons { display: flex; gap: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--primary); color: #fff; text-decoration: none; }
.header__navrow { border-top: 1px solid var(--border); }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand__mark { flex: 0 0 auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 800; font-size: 1.25rem; color: var(--primary); letter-spacing: 0.02em; }
.brand__descr { font-size: 0.72rem; color: var(--muted); }

.nav { flex: 1; }
.nav__list { display: flex; align-items: center; justify-content: space-between; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 14px; border: 0; background: none; border-radius: 8px;
  font: inherit; font-weight: 600; font-size: 1rem; color: var(--ink); cursor: pointer;
  white-space: nowrap;
}
.nav__link:hover { background: var(--primary-soft); color: var(--primary); text-decoration: none; }
.nav__caret { transition: transform 0.15s; }

.nav__drop {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  display: none; flex-direction: column; gap: 2px;
  margin: 6px 0 0; padding: 8px; list-style: none;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow);
  animation: drop-in 0.18s ease;
}
@keyframes drop-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.nav__drop a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: 0.92rem; }
.nav__drop a:hover { background: var(--primary-soft); color: var(--primary); text-decoration: none; }

.nav__item--drop.open > .nav__drop { display: flex; }
.nav__item--drop.open > .nav__toggle { background: var(--primary-soft); color: var(--primary); }
.nav__item--drop.open > .nav__toggle .nav__caret { transform: rotate(180deg); }

.nav__extra { display: none; }

.header__phone { font-weight: 700; color: var(--ink); white-space: nowrap; }
.header__phone:hover { color: var(--primary); text-decoration: none; }
.header__phone-wrap { display: inline-flex; align-items: center; gap: 2px; }

.burger {
  display: none; position: relative; width: 44px; height: 44px;
  border: 1.5px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer;
}
.burger__line, .burger__line::before, .burger__line::after {
  content: ""; position: absolute; left: 11px; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: transform 0.2s, opacity 0.2s;
}
.burger__line { top: 21px; }
.burger__line::before { left: 0; top: -6px; }
.burger__line::after { left: 0; top: 6px; }
.burger[aria-expanded="true"] .burger__line { background: transparent; }
.burger[aria-expanded="true"] .burger__line::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Секции ---------- */

.section { padding: 64px 0; }
.section--tinted { background: var(--tint); }
.section--cta { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section__title { margin-bottom: 28px; }
.section__head .section__title { margin-bottom: 20px; }

.link-more { font-weight: 600; white-space: nowrap; }

.page-head { padding: 56px 0 8px; }
.page-head__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Герой ---------- */

.hero {
  background:
    radial-gradient(60% 90% at 85% 10%, rgba(237, 161, 47, 0.12), transparent 60%),
    radial-gradient(50% 80% at 100% 80%, rgba(47, 125, 76, 0.1), transparent 60%),
    var(--tint);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 36px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero__title { font-size: clamp(2.3rem, 5vw, 3.3rem); margin-bottom: 2px; }
.hero__hanzi { color: var(--primary); font-weight: 700; margin-right: 4px; }
.hero__subtitle { font-size: 1.25rem; font-weight: 600; color: var(--ink); margin-bottom: 16px; }
.hero__kicker {
  display: inline-block; margin-bottom: 14px; padding: 6px 14px;
  background: var(--primary-soft); color: var(--primary);
  border-radius: 999px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.03em;
}
.hero__stats { display: flex; gap: 40px; margin: 36px 0 0; flex-wrap: wrap; }
.hero__stats dt { font-size: 1.7rem; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.hero__stats dd { margin: 0; color: var(--muted); font-size: 0.9rem; max-width: 10em; }

.hero__visual { display: flex; justify-content: flex-end; }

/* Орбита: преподаватель в кольце, точки-факты появляются снизу вверх. */
.orbit { position: relative; width: 100%; max-width: 680px; padding-left: 200px; }
.orbit__stage { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1 / 1; margin-left: auto; }
.orbit__ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(
    from 210deg,
    rgba(237, 161, 47, 0.35),
    rgba(47, 125, 76, 0.2),
    rgba(232, 243, 236, 0.95),
    rgba(237, 161, 47, 0.35)
  );
  -webkit-mask: radial-gradient(circle closest-side, transparent calc(100% - 30px), #000 calc(100% - 29px));
  mask: radial-gradient(circle closest-side, transparent calc(100% - 30px), #000 calc(100% - 29px));
}
.orbit__ring-dash {
  position: absolute; inset: 24px; border-radius: 50%;
  border: 1.5px dashed rgba(47, 125, 76, 0.3);
  animation: orbit-spin 60s linear infinite;
}
/* Плавное «растворение» фото снизу, как на оригинале. */
.orbit__photo {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 88%; height: auto;
  filter: drop-shadow(0 18px 28px rgba(24, 54, 38, 0.2));
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, rgba(0, 0, 0, 0.4) 88%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 70%, rgba(0, 0, 0, 0.4) 88%, transparent 99%);
}

.orbit__point { position: absolute; width: 14px; height: 14px; transform: translate(-50%, -50%); }
.orbit__dot {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--primary); border: 2.5px solid #fff;
  box-shadow: 0 0 0 0 rgba(47, 125, 76, 0.35);
}
.orbit__label {
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  width: 215px; text-align: right;
  font-size: 0.82rem; line-height: 1.35; color: var(--muted);
}
.orbit__label strong { display: block; color: var(--ink); font-size: 0.92rem; }

/* Центры точек лежат на окружности кольца (левая дуга). */
.orbit__point--1 { left: 28%; top: 3.5%; }
.orbit__point--2 { left: 2%; top: 30%; }
.orbit__point--3 { left: 0%; top: 60%; }
.orbit__point--4 { left: 11%; top: 85%; }

/* Появление: снизу вверх по дуге, подпись догоняет свою точку. */
.js .orbit__point { opacity: 0; }
.js .orbit__label { opacity: 0; transform: translateY(-50%) translateX(8px); }
.orbit.is-live .orbit__point { animation: point-in 0.45s ease-out forwards; }
.orbit.is-live .orbit__label { transition: opacity 0.45s ease, transform 0.45s ease; opacity: 1; transform: translateY(-50%) translateX(0); }
.orbit.is-live .orbit__point--4 { animation-delay: 0.15s; }
.orbit.is-live .orbit__point--3 { animation-delay: 0.55s; }
.orbit.is-live .orbit__point--2 { animation-delay: 0.95s; }
.orbit.is-live .orbit__point--1 { animation-delay: 1.35s; }
.orbit.is-live .orbit__point--4 .orbit__label { transition-delay: 0.4s; }
.orbit.is-live .orbit__point--3 .orbit__label { transition-delay: 0.8s; }
.orbit.is-live .orbit__point--2 .orbit__label { transition-delay: 1.2s; }
.orbit.is-live .orbit__point--1 .orbit__label { transition-delay: 1.6s; }
/* Пульс включается после появления всех точек. */
.orbit.is-live .orbit__dot { animation: orbit-pulse 2.6s ease-out 2.2s infinite; }
.orbit.is-live .orbit__point--2 .orbit__dot { animation-delay: 2.85s; }
.orbit.is-live .orbit__point--3 .orbit__dot { animation-delay: 3.5s; }
.orbit.is-live .orbit__point--4 .orbit__dot { animation-delay: 4.15s; }

@keyframes point-in {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 14px)) scale(0.4); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes orbit-pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 125, 76, 0.35); }
  70% { box-shadow: 0 0 0 16px rgba(47, 125, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 125, 76, 0); }
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }

/* Факты-чипы под орбитой: заменяют подписи на узких экранах. */
.orbit-facts { display: none; list-style: none; margin: 20px 0 0; padding: 0; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.orbit-facts li {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 14px; font-size: 0.82rem; line-height: 1.35; color: var(--muted);
}
.orbit-facts li::before {
  content: ""; flex: 0 0 auto; width: 10px; height: 10px; margin-top: 5px;
  border-radius: 50%; background: var(--primary); border: 2px solid var(--primary-soft);
}
.orbit-facts strong { display: block; color: var(--ink); font-size: 0.9rem; }

/* ---------- Появление при скролле ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .reveal:nth-child(3) { transition-delay: 0.16s; }
.js .reveal:nth-child(4) { transition-delay: 0.24s; }
.js .reveal:nth-child(5) { transition-delay: 0.32s; }

/* ---------- Сетки и карточки ---------- */

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 4px 16px rgba(24, 54, 38, 0.05);
}

.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; border-top: 3px solid var(--accent); }
.feature h3 { color: var(--primary); }
.feature p { margin: 0; font-size: 0.94rem; }

.exam-card { text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 16px; display: flex; flex-direction: column; align-items: center; }
.exam-card__icon { height: 44px; width: auto; margin-bottom: 14px; object-fit: contain; }
.exam-card h3 { margin-bottom: 6px; }
.exam-card p { font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; flex: 1; }
.exam-card__price { font-weight: 700; color: var(--primary); margin: 0; }

/* ---------- Таблицы ---------- */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); }
.table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table thead th { background: var(--primary-soft); color: var(--primary); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.table tbody tr:last-child td { border-bottom: 0; }
.table__action { text-align: right; white-space: nowrap; }
.table--plain { min-width: 0; }

/* ---------- Шаги ---------- */

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; list-style: none; margin: 0 0 8px; padding: 0; }
.steps--column { grid-template-columns: 1fr; }
.step { counter-increment: step; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: relative; }
.step::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 12px;
  background: var(--primary); color: #fff; border-radius: 50%;
  font-weight: 700;
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { margin: 0; font-size: 0.9rem; color: var(--text); }

/* ---------- Инструкция ---------- */

.instruction { max-width: 800px; }
.instruction-block { margin-bottom: 34px; }
.instruction-block h2 { display: flex; align-items: center; gap: 12px; }
.instruction-block__num {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 36px; height: 36px; background: var(--primary); color: #fff;
  border-radius: 50%; font-size: 1rem;
}
.substeps { margin: 0; padding-left: 22px; }
.substeps li { margin-bottom: 8px; }
.substeps ul { margin-top: 6px; padding-left: 18px; }
.substeps ul li { margin-bottom: 4px; font-size: 0.95rem; }

/* ---------- Уведомления и блоки ---------- */

.notice {
  background: var(--primary-soft); border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 26px 30px;
}
.notice h2 { font-size: 1.2rem; }
.notice p:last-child { margin-bottom: 0; }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 12px; font-weight: 500; }
.alert--success { background: var(--success-bg); color: var(--success); }
.alert--error { background: var(--error-bg); color: var(--error); }
.alert--info { background: var(--primary-soft); color: var(--primary); }

/* ---------- Цитата-пословица ---------- */

.quote { text-align: center; max-width: 640px; margin: 0 auto; }
.quote__hanzi { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; color: var(--primary); display: block; margin-bottom: 10px; }
.quote__text { font-size: 1.05rem; color: var(--text); font-style: italic; }
.quote__note { font-size: 0.85rem; color: var(--muted); }

/* ---------- Фотосекции ---------- */

.photo-band { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.photo-band__img { display: block; width: 100%; height: 420px; object-fit: cover; }
.photo-band__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 34px 38px;
  background: linear-gradient(to top, rgba(19, 33, 25, 0.78) 0%, rgba(19, 33, 25, 0.35) 45%, rgba(19, 33, 25, 0) 75%);
}
.photo-band__overlay h2, .photo-band__overlay h3 { color: #fff; margin-bottom: 6px; }
.photo-band__overlay p { color: rgba(255, 255, 255, 0.88); margin: 0; max-width: 40em; }
.photo-band__overlay .btn-row { margin-top: 16px; }

/* ---------- CTA ---------- */

.cta { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; text-align: center; justify-items: center; }
.cta .btn-row { justify-content: center; }
.cta h2, .section--cta h2 { color: #fff; }
.section--cta p { color: rgba(255, 255, 255, 0.85); }
.section--cta .btn--primary { background: var(--accent); color: var(--ink); }
.section--cta .btn--primary:hover { background: #f5b34e; }
.section--cta .btn--outline { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.section--cta .btn--outline:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Развороты ---------- */

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: start; }
.split--reverse { grid-template-columns: 0.9fr 1.1fr; }
.split__aside { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.split__aside figure, .split figure { margin: 0; text-align: center; color: var(--muted); font-size: 0.85rem; }

/* ---------- Карта офисов ---------- */

.map-box { position: relative; }
.map-box img { display: block; width: 100%; height: auto; }
.map-pin { position: absolute; transform: translate(-50%, -50%); }
.map-pin__dot {
  display: block; width: 14px; height: 14px; border-radius: 50%;
  background: var(--primary); border: 2.5px solid #fff;
  box-shadow: 0 0 0 0 rgba(47, 125, 76, 0.4);
  animation: orbit-pulse 2.4s ease-out infinite;
}
.map-pin--2 .map-pin__dot { animation-delay: 0.8s; }
.map-pin--3 .map-pin__dot { animation-delay: 1.6s; }
.map-pin__label {
  position: absolute; left: 50%; top: calc(100% + 4px); transform: translateX(-50%);
  white-space: nowrap; font-size: 0.8rem; font-weight: 700; color: var(--ink);
  background: rgba(255, 255, 255, 0.9); border-radius: 6px; padding: 1px 8px;
}
.map-pin--up .map-pin__label { top: auto; bottom: calc(100% + 4px); }

/* ---------- Списки ---------- */

.ticks { list-style: none; margin: 0 0 1em; padding: 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list__label { flex: 0 0 110px; color: var(--muted); font-size: 0.9rem; padding-top: 1px; }

.request-list { list-style: none; margin: 0; padding: 0; }
.request-list li { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--border); }
.request-list li:last-child { border-bottom: 0; }

.tag {
  display: inline-block; vertical-align: middle; margin-left: 6px; padding: 3px 10px;
  background: var(--accent); color: var(--ink); border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}

.contact-card--main { border-color: var(--primary); }
.contact-card__phone a { font-weight: 700; font-size: 1.05rem; }

.center-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.center-list h3 { margin-bottom: 2px; }
.center-list p { margin: 0; }

/* ---------- Экзамены (детально) ---------- */

.exam-detail-list { display: grid; gap: 20px; }
.exam-detail__head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.exam-detail__head h2 { margin-bottom: 0; }
.exam-detail__head .muted { margin: 0; font-size: 0.9rem; }
.exam-detail__icon { flex: 0 0 auto; }
.exam-detail__price { margin: 0 0 0 auto; font-weight: 800; color: var(--primary); font-size: 1.1rem; white-space: nowrap; }
.exam-detail__meta { display: flex; gap: 40px; flex-wrap: wrap; margin: 0; }
.exam-detail__meta dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.exam-detail__meta dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }

/* ---------- Курсы ---------- */

.course-card { display: flex; flex-direction: column; }
.course-card__subtitle { color: var(--muted); margin-top: -6px; }
.course-card__pricing { margin: auto 0 16px; padding-top: 12px; border-top: 1px dashed var(--border); }
.course-card__price { font-size: 1.25rem; font-weight: 800; color: var(--primary); margin-bottom: 2px; }
.course-card .btn { align-self: flex-start; }

/* ---------- Преподаватели ---------- */

.teacher-card { text-align: center; }
.teacher-card__photo {
  width: 210px; height: 210px; object-fit: cover; object-position: top;
  border-radius: 50%; background: var(--tint); margin-bottom: 16px;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
.teacher-card h3 { margin-bottom: 2px; }
.teacher-card__hanzi { color: var(--primary); font-weight: 700; }
.teacher-card__role { color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; }
.teacher-card__bio { text-align: left; font-size: 0.93rem; background: var(--tint); border-radius: 12px; padding: 16px 18px; }
.teacher-card__bio p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */

.faq { max-width: 800px; }
.faq__group { margin: 34px 0 14px; }
.faq__group:first-child { margin-top: 0; }
.faq__item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: 0 0 auto; width: 10px; height: 10px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(45deg); transition: transform 0.2s; margin-top: -4px;
}
.faq__item[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq__item[open] summary { color: var(--primary); }
.faq__item p { padding: 0 20px 18px; margin: 0; }

/* ---------- Формы ---------- */

.form h2 { margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field__label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--ink); }
.field__req { color: var(--error); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.field--error input, .field--error select, .field--error textarea { border-color: var(--error); }
.field__hint { font-size: 0.8rem; color: var(--muted); margin: 6px 0 0; }
.field__error { font-size: 0.82rem; color: var(--error); margin: 6px 0 0; display: none; }
.field--error .field__error { display: block; }
.form__consent { font-size: 0.8rem; color: var(--muted); margin: 14px 0 0; }

/* ---------- Кнопка копирования ---------- */

.copy-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0; margin-left: 4px;
  border: 1px solid var(--border); border-radius: 8px;
  background: #fff; color: var(--muted); cursor: pointer;
  vertical-align: middle; transition: color 0.15s, border-color 0.15s;
}
.copy-btn:hover { color: var(--primary); border-color: var(--primary); }
.copy-btn.copied { color: var(--success); border-color: var(--success); }
.copy-btn svg { pointer-events: none; }

/* ---------- Документы ---------- */

.doc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.doc-card { display: flex; gap: 16px; align-items: flex-start; }
.doc-card__icon {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 0.7rem;
  letter-spacing: 0.04em;
}
.doc-card h3 { font-size: 1rem; margin-bottom: 4px; }
.doc-card p { margin: 0 0 8px; font-size: 0.88rem; color: var(--muted); }
.doc-card a { font-weight: 600; font-size: 0.9rem; }

/* ---------- Прочее ---------- */

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose ol, .prose ul { padding-left: 24px; }

.error-page { text-align: center; padding: 40px 0; }
.error-page__code { font-size: 5rem; font-weight: 800; color: var(--primary-soft); -webkit-text-stroke: 2px var(--primary); margin: 0; line-height: 1; }

/* ---------- Футер ---------- */

.footer { background: var(--ink); color: #c7d4ca; margin-top: 40px; }
.footer a { color: #e1ebe4; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1fr 1fr 1.1fr; gap: 30px; padding-top: 52px; padding-bottom: 36px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 9px; font-size: 0.92rem; }
.footer__title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: #92a498; margin-bottom: 14px; }
.footer .brand__name { color: #fff; }
.footer .brand__descr { color: #92a498; }
.footer__about { font-size: 0.9rem; margin: 14px 0; max-width: 26em; }
.footer__social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer__social a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border: 1px solid #44544a; border-radius: 999px; font-size: 0.85rem;
}
.footer__social a:hover { border-color: var(--accent); text-decoration: none; }
.footer__social svg { flex: 0 0 auto; }
.footer__contacts li { color: #c7d4ca; }
.footer__contacts .copy-btn { background: transparent; border-color: #44544a; color: #92a498; }
.footer__contacts .copy-btn:hover { color: #fff; border-color: var(--accent); }
.footer__contacts .copy-btn.copied { color: var(--accent); border-color: var(--accent); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid #34423a; padding-top: 22px; padding-bottom: 26px; font-size: 0.85rem;
}
.footer__bottom p { margin: 0; }
.footer__bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ============================================================
   Доступность: отключение анимаций
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit__ring-dash, .orbit__dot, .map-pin__dot { animation: none !important; }
  .js .orbit__point { opacity: 1; animation: none !important; }
  .js .orbit__label { opacity: 1; transform: translateY(-50%); transition: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Адаптивность
   ============================================================ */

@media (max-width: 1320px) {
  .nav__link { padding: 10px 10px; }
  .header__inner { gap: 18px; }
}

@media (max-width: 1180px) {
  .header__phone { display: none; }
}

@media (max-width: 1080px) {
  .grid--5 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  /* Подписи у точек не помещаются — вместо них факты-чипы под кольцом. */
  .orbit { padding-left: 0; }
  .orbit__label { display: none; }
  .orbit-facts { display: grid; }
  .hero__inner { grid-template-columns: 1.15fr 0.85fr; }
  .doc-list { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--paper); border-top: 1px solid var(--border);
    padding: 20px; overflow-y: auto;
    display: none; z-index: 49;
  }
  body.nav-open .nav { display: block; }
  body.nav-open { overflow: hidden; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.05rem; white-space: normal; }
  .nav__drop {
    position: static; display: none; box-shadow: none; border: 0;
    background: var(--tint); border-radius: 10px; margin: 2px 0 6px; padding: 6px;
  }
  .nav__item--drop.open > .nav__drop { display: flex; }
  .nav__extra {
    display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
    margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border);
  }
  .nav__phone { font-weight: 700; font-size: 1.1rem; color: var(--ink); }

  .header__auth { display: none; }
  .burger { display: block; }

  .hero__inner { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; padding-bottom: 44px; }
  .hero__visual { justify-content: center; }
  .orbit { max-width: none; }
  .orbit__stage { max-width: 350px; margin: 0 auto; }

  .split, .split--reverse { grid-template-columns: 1fr; gap: 28px; }
  .photo-band__img { height: 320px; }
  .photo-band__overlay { padding: 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 48px 0; }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; }
  .orbit-facts { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .page-head { padding-top: 40px; }
  .exam-detail__price { margin-left: 0; width: 100%; }
  .contact-list li { flex-direction: column; gap: 2px; }
  .contact-list__label { flex-basis: auto; }
  .photo-band__img { height: 260px; }
}
