/* ============================================================
   Обучение в Китае — Site components
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink-900); background: var(--white); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--blue-100); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font); font-weight: 700; font-size: 15px; border: none;
  border-radius: var(--r-pill); padding: 13px 24px; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-coral { background: var(--coral-500); color: #fff; box-shadow: var(--sh-coral); }
.btn-coral:hover { background: var(--coral-600); }
.btn-blue  { background: var(--blue-700); color: #fff; box-shadow: var(--sh-blue); }
.btn-blue:hover { background: var(--blue-800); }
.btn-ghost { background: #fff; color: var(--ink-900); border: 1.5px solid var(--line-strong); box-shadow: var(--sh-xs); }
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-700); }
.btn-white { background: #fff; color: var(--blue-700); box-shadow: var(--sh-sm); }
.btn-onblue { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.24); }
.btn-onblue:hover { background: rgba(255,255,255,.18); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.brand .mark { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-700); display: grid; place-items: center; color: #fff; font-size: 20px; font-weight: 800; box-shadow: var(--sh-sm); }
.brand-logo { display: block; width: 40px; height: 40px; flex-shrink: 0; }
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-400); letter-spacing: .01em; margin-top: 1px; }
.nav-links { display: flex; gap: 28px; font-size: 15px; font-weight: 600; color: var(--ink-700); }
.nav-links a { position: relative; padding: 4px 0; transition: color .15s; }
.nav-links a:hover { color: var(--blue-700); }
.nav-links a.active { color: var(--blue-700); }
.nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--coral-500); border-radius: 2px; }
.hdr-right { display: flex; align-items: center; gap: 20px; }
.hdr-phone { font-size: 15px; font-weight: 700; color: var(--ink-900); white-space: nowrap; }
.hdr-phone small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-400); text-align: right; }
@media (max-width: 1080px){ .nav-links{ display:none; } .hdr-phone{ display:none; } }

/* ---------- eyebrow / section heads ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: var(--blue-700); background: var(--blue-50); border: 1px solid var(--blue-100); padding: 8px 15px; border-radius: var(--r-pill); letter-spacing: .02em; text-transform: uppercase; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral-500); }
.eyebrow.on-blue { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.sec-head h2 { font-size: 42px; line-height: 1.1; letter-spacing: -.025em; font-weight: 800; color: var(--ink-900); }
.sec-head p { font-size: 18px; line-height: 1.55; color: var(--ink-500); font-weight: 500; margin-top: 16px; }
h2.left, .sec-head.left { text-align: left; margin-left: 0; }

/* ---------- placeholder image ---------- */
.ph { position: relative; background: repeating-linear-gradient(45deg, #eef1f6 0 14px, #e8ecf3 14px 28px); border-radius: var(--r-lg); overflow: hidden; display: grid; place-items: center; }
.ph::after { content: attr(data-label); position: absolute; bottom: 12px; left: 12px; font-size: 12px; font-weight: 700; color: var(--ink-700); background: rgba(255,255,255,.92); padding: 5px 11px; border-radius: var(--r-pill); box-shadow: var(--sh-xs); }
.ph .ico { font-size: 40px; opacity: .32; }

/* ---------- generic card ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--blue-100); }

/* ---------- avatars / trust ---------- */
.avs { display: flex; }
.avs .av { width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid #fff; margin-left: -12px; background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); box-shadow: var(--sh-xs); }
.avs .av:first-child { margin-left: 0; }
.avs .av.b2 { background: linear-gradient(135deg,#3a72c4,#224a86); }
.avs .av.b3 { background: linear-gradient(135deg,#5a86c9,#2f5fa3); }
.avs .av.more { background: var(--coral-500); display:grid; place-items:center; color:#fff; font-size:12px; font-weight:800; }

/* ---------- sticky CTA bar (mobile-style floating) ---------- */
.sticky-cta { position: fixed; right: 28px; bottom: 28px; z-index: 45; display: flex; align-items: center; gap: 14px; background: var(--blue-800); color: #fff; padding: 12px 14px 12px 22px; border-radius: var(--r-pill); box-shadow: var(--sh-lg); transition: transform .3s ease, opacity .3s ease; }
.sticky-cta.hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
.sticky-cta b { font-size: 15px; }
.sticky-cta small { display:block; font-size: 12px; color: rgba(255,255,255,.6); font-weight:600; }

/* ---------- modal ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(15,37,71,.55); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal { width: 100%; max-width: 940px; background: #fff; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg); display: grid; grid-template-columns: .85fr 1fr; transform: translateY(16px) scale(.98); transition: transform .25s ease; max-height: 92vh; }
.modal-overlay.open .modal { transform: none; }
.modal-aside { background: linear-gradient(160deg, var(--blue-700), var(--blue-900)); color: #fff; padding: 40px 36px; display: flex; flex-direction: column; }
.modal-aside h3 { font-size: 27px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.modal-aside .feat { display: flex; gap: 13px; align-items: flex-start; margin-top: 20px; font-size: 14.5px; color: rgba(255,255,255,.86); line-height: 1.45; }
.modal-aside .feat .ck { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; flex-shrink: 0; font-size: 13px; }
.modal-body { padding: 40px 38px; position: relative; overflow-y: auto; }
.modal-close { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; color: var(--ink-500); display: grid; place-items: center; transition: background .15s; }
.modal-close:hover { background: var(--mist); }
@media (max-width: 760px){ .modal{ grid-template-columns: 1fr; } .modal-aside{ display:none; } }

/* ---------- form ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-700); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; font-family: var(--font); font-size: 15px; color: var(--ink-900); padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--paper); transition: border-color .15s, background .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); background: #fff; }
.field input.err, .field select.err { border-color: var(--coral-500); background: var(--coral-50); }
.field .msg { font-size: 12.5px; color: var(--coral-600); margin-top: 5px; font-weight: 600; }
.seg { display: flex; gap: 8px; }
.seg label { flex: 1; cursor: pointer; }
.seg input { display: none; }
.seg span { display: block; text-align: center; font-size: 14px; font-weight: 700; padding: 12px 8px; border: 1.5px solid var(--line); border-radius: var(--r-md); color: var(--ink-700); transition: all .15s; background: var(--paper); }
.seg input:checked + span { border-color: var(--blue-700); background: var(--blue-50); color: var(--blue-700); }
.form-note { font-size: 12.5px; color: var(--ink-400); line-height: 1.5; margin-top: 14px; }
.form-note a { color: var(--blue-600); text-decoration: underline; }
.form-ok { text-align: center; padding: 24px 8px; }
.form-ok .big { width: 64px; height: 64px; border-radius: 50%; background: var(--blue-50); color: var(--blue-700); display: grid; place-items: center; font-size: 32px; margin: 0 auto 18px; }
.form-ok h3 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.form-ok p { font-size: 15px; color: var(--ink-500); margin-top: 10px; line-height: 1.5; }

/* ---------- footer ---------- */
.footer { background: var(--blue-900); color: rgba(255,255,255,.7); padding: 64px 0 32px; }
.footer .brand { color: #fff; }
.footer .brand .mark { background: #fff; color: var(--blue-700); }
.footer .brand small { color: rgba(255,255,255,.5); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer h5 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .04em; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.footer ul a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 13px; color: rgba(255,255,255,.45); }
.footer-bottom .soc { display: flex; gap: 10px; }
.footer-bottom .soc a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center; font-size: 16px; transition: background .15s; }
.footer-bottom .soc a:hover { background: rgba(255,255,255,.1); }

/* ---------- pills / chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 6px 13px; border-radius: var(--r-pill); }
.chip-blue { background: var(--blue-50); color: var(--blue-700); }
.chip-coral { background: var(--coral-50); color: var(--coral-600); }
.chip-teal { background: #E2F3F2; color: var(--teal-500); }
.chip-gold { background: #FBF1D9; color: #9a6f12; }
.chip-line { background: #fff; border: 1px solid var(--line); color: var(--ink-700); }

/* ---------- misc home ---------- */
.stat-num { font-size: 38px; font-weight: 800; letter-spacing: -.025em; color: var(--blue-700); line-height: 1; }
.stat-num.light { color: #fff; }
.stat-lbl { font-size: 14px; font-weight: 600; color: var(--ink-500); margin-top: 7px; }
.stat-lbl.light { color: rgba(255,255,255,.62); }

.hero-glow { position: absolute; top: -180px; right: -120px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(225,32,84,.30), transparent 62%); pointer-events: none; }

.how-line { position: absolute; top: 56px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px); z-index: 0; }
@media (max-width: 900px){ .how-line{ display:none; } }

.prog-card .arr { transition: transform .2s ease; }
.prog-card:hover .arr { transform: translateX(5px); }
