/* ============================================================================
   МКМ Student — дизайн «Документ и путь»
   Палитра: чернильно-синий + дипломное золото. Шрифты: Unbounded / Manrope.
   ========================================================================== */

:root{
  --ink:        #0E1F3D;   /* глубокий чернильный */
  --ink-2:      #16294A;   /* синяя поверхность */
  --ink-3:      #1F3A66;   /* линии/границы на тёмном */
  --gold:       #E3A93C;   /* дипломное золото (акцент) */
  --gold-soft:  #f3d79a;
  --paper:      #F7F8FB;   /* светлый фон */
  --paper-2:    #FFFFFF;
  --line:       #E4E7EE;   /* границы на светлом */
  --text:       #16213A;
  --muted:      #5C6B86;
  --muted-2:    #8A97AD;
  --ok:         #1E9E6A;

  --maxw: 1160px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -28px rgba(14,31,61,.45);
  --shadow-sm: 0 10px 30px -18px rgba(14,31,61,.4);

  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  background:var(--paper);
  color:var(--text);
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } *{ animation:none!important; transition:none!important; } }

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
.container{ width:100%; max-width:var(--maxw); margin:0 auto; padding:0 24px; }
.container.narrow{ max-width:840px; }

/* ── Типографика ─────────────────────────────────────────── */
h1,h2,h3,h4{ font-family:var(--font-display); font-weight:700; line-height:1.08; letter-spacing:-.01em; margin:0; }
.eyebrow{
  display:inline-flex; align-items:center; gap:9px;
  font-family:var(--font-mono); font-weight:500;
  font-size:12.5px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--gold); margin-bottom:18px;
}
.eyebrow::before{ content:""; width:22px; height:1.5px; background:currentColor; opacity:.7; }
.eyebrow.dark{ color:#B07D1C; }
.section-title{ font-size:clamp(28px,4.2vw,46px); color:var(--ink); margin-bottom:14px; }
.section-title.light{ color:#fff; }
.section-sub{ color:var(--muted); max-width:640px; font-size:18px; margin:0 0 40px; }

/* ── Кнопки ──────────────────────────────────────────────── */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family:var(--font-body); font-weight:700; font-size:16px;
  padding:13px 24px; border-radius:999px; border:1.5px solid transparent;
  cursor:pointer; transition:transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space:nowrap;
}
.btn:active{ transform:translateY(1px); }
.btn-lg{ padding:16px 30px; font-size:17px; }
.btn-block{ width:100%; }
.btn-gold{ background:var(--gold); color:#2A1B00; box-shadow:0 12px 28px -12px rgba(227,169,60,.7); }
.btn-gold:hover{ background:#efb84e; box-shadow:0 16px 34px -12px rgba(227,169,60,.85); }
.btn-ghost{ background:transparent; color:#fff; border-color:rgba(255,255,255,.32); }
.btn-ghost:hover{ border-color:#fff; background:rgba(255,255,255,.06); }
.btn-dark{ background:var(--ink); color:#fff; }
.btn-dark:hover{ background:var(--ink-2); }
.btn-outline{ background:transparent; color:var(--ink); border-color:var(--line); }
.btn-outline:hover{ border-color:var(--ink); }

/* ── Header ──────────────────────────────────────────────── */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(14,31,61,.92); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--ink-3);
}
.header-inner{ display:flex; align-items:center; gap:28px; height:72px; }
.brand{ display:flex; align-items:baseline; gap:6px; font-family:var(--font-display); }
.brand-mark{ background:var(--gold); color:#2A1B00; font-weight:800; padding:3px 9px; border-radius:8px; font-size:18px; letter-spacing:-.02em; }
.brand-name{ color:#fff; font-weight:600; font-size:19px; }
.brand-light .brand-name{ color:#fff; }
.nav{ display:flex; gap:26px; margin-left:8px; }
.nav a{ color:#C7D2E6; font-weight:600; font-size:15px; transition:color .15s; }
.nav a:hover{ color:#fff; }
.header-cta{ margin-left:auto; }
.burger{ display:none; margin-left:auto; background:none; border:0; flex-direction:column; gap:5px; cursor:pointer; padding:8px; }
.burger span{ width:24px; height:2px; background:#fff; border-radius:2px; transition:.2s; }
.mobile-nav{ display:none; }

/* ── Hero ────────────────────────────────────────────────── */
.hero{
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(227,169,60,.16), transparent 45%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color:#fff; position:relative; overflow:hidden;
  padding:84px 0 96px;
}
.hero::before{ /* тонкая «бумажная» сетка */
  content:""; position:absolute; inset:0; opacity:.05; pointer-events:none;
  background-image:linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg,#fff 1px, transparent 1px);
  background-size:48px 48px;
}
.hero-inner{ display:grid; grid-template-columns:1.1fr .9fr; gap:56px; align-items:center; position:relative; }
.hero-copy h1{ font-size:clamp(34px,5.2vw,62px); color:#fff; margin-bottom:22px; }
.hero-copy h1 .accent{ color:var(--gold); }
.lead{ color:#C7D2E6; font-size:clamp(17px,2vw,20px); max-width:560px; margin:0 0 32px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:44px; }
.hero-trust{ list-style:none; display:flex; gap:36px; padding:0; margin:0; flex-wrap:wrap; }
.hero-trust li{ display:flex; flex-direction:column; }
.hero-trust strong{ font-family:var(--font-display); font-size:30px; color:#fff; }
.hero-trust span{ color:var(--muted-2); font-size:14px; }

/* Signature — приказ о зачислении с гербовой печатью */
.hero-card{ display:flex; justify-content:center; }
.order{
  width:100%; max-width:392px; position:relative;
  background:
    linear-gradient(180deg,#FFFDF8,#FBFAF4);
  color:var(--ink); border-radius:6px; padding:30px 30px 26px;
  border:1px solid #ECE6D6;
  box-shadow:0 44px 90px -34px rgba(8,20,40,.7), 0 2px 0 #fff inset;
  transform:rotate(-1.2deg);
  animation:orderIn .7s cubic-bezier(.2,.7,.2,1) both;
}
.order::before{ /* левое поле бланка, как у официальной бумаги */
  content:""; position:absolute; left:16px; top:14px; bottom:14px; width:1.5px;
  background:var(--gold); opacity:.5;
}
.order-head{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding-left:14px; border-bottom:1.5px solid var(--ink); padding-bottom:14px; }
.order-kind{ font-family:var(--font-display); font-weight:700; font-size:16px; letter-spacing:-.01em; }
.order-no{ font-family:var(--font-mono); font-size:12px; color:var(--muted); white-space:nowrap; }
.order-body{ padding:18px 0 6px 14px; }
.order-verb{ font-family:var(--font-display); font-weight:800; font-size:34px; letter-spacing:-.02em; color:var(--ink); display:block; margin-bottom:16px; }
.order-rows{ margin:0; display:flex; flex-direction:column; gap:10px; }
.order-rows div{ display:flex; justify-content:space-between; gap:14px; align-items:baseline; border-bottom:1px dotted #D8CFB8; padding-bottom:8px; }
.order-rows dt{ font-family:var(--font-mono); font-size:11.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.order-rows dd{ margin:0; font-weight:600; font-size:14.5px; color:var(--ink); text-align:right; }
.order-foot{ display:flex; justify-content:space-between; align-items:center; padding:16px 0 0 14px; }
.order-foot span{ font-family:var(--font-mono); font-size:12px; color:var(--muted); }

/* Гербовая печать */
.seal{ position:absolute; right:-14px; bottom:-18px; width:128px; height:128px;
  filter:drop-shadow(0 8px 14px rgba(154,107,18,.35));
  transform:rotate(-9deg); transform-origin:center;
  animation:stampIn .55s cubic-bezier(.2,1.5,.4,1) .55s both;
}
.seal-ring{ fill:none; stroke:var(--gold); }
.seal-ring{ stroke-width:3.5; }
.seal-ring.thin{ stroke-width:1.5; opacity:.85; }
.seal-text{ fill:var(--gold); font-family:var(--font-mono); font-weight:600; font-size:13px; letter-spacing:.06em; }
.seal-star{ fill:var(--gold); font-size:30px; text-anchor:middle; }
.seal-year{ fill:var(--gold); font-family:var(--font-mono); font-weight:600; font-size:13px; text-anchor:middle; letter-spacing:.1em; }

@keyframes orderIn{ from{ opacity:0; transform:translateY(22px) rotate(-1.2deg); } to{ opacity:1; transform:translateY(0) rotate(-1.2deg); } }
@keyframes stampIn{ 0%{ opacity:0; transform:rotate(-26deg) scale(1.7); } 100%{ opacity:1; transform:rotate(-9deg) scale(1); } }
@media (prefers-reduced-motion: reduce){
  .order{ animation:none; }
  .seal{ animation:none; }
}

/* ── Секции (общее) ──────────────────────────────────────── */
.section{ padding:88px 0; }
.section-plans{ background:var(--paper-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }

/* ── Шаги ────────────────────────────────────────────────── */
.steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; margin-top:46px; }
.step{ background:var(--paper-2); border:1px solid var(--line); border-radius:var(--radius); padding:28px 24px; position:relative; transition:transform .2s, box-shadow .2s; }
.step:hover{ transform:translateY(-4px); box-shadow:var(--shadow-sm); }
.step-num{ font-family:var(--font-display); font-weight:800; font-size:30px; color:var(--gold); }
.step h3{ font-size:20px; color:var(--ink); margin:10px 0 8px; }
.step p{ color:var(--muted); font-size:15px; margin:0; }

/* ── Тарифы ──────────────────────────────────────────────── */
.plans{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:46px; align-items:stretch; }
.plan{
  background:var(--paper-2); border:1px solid var(--line); border-radius:var(--radius);
  padding:32px 28px; display:flex; flex-direction:column; position:relative; transition:transform .2s, box-shadow .2s;
}
.plan:hover{ transform:translateY(-5px); box-shadow:var(--shadow); }
.plan.popular{ border:1.5px solid var(--gold); box-shadow:0 30px 70px -34px rgba(227,169,60,.55); overflow:hidden; }
.plan.popular::before{ /* золотая печать-штамп (signature) */
  content:"ПОД КЛЮЧ"; position:absolute; top:18px; right:-44px; width:170px; text-align:center;
  background:var(--gold); color:#2A1B00; font-family:var(--font-display); font-weight:700; font-size:11px;
  letter-spacing:.1em; padding:6px 0; transform:rotate(45deg); box-shadow:0 6px 14px -6px rgba(227,169,60,.8);
}
.plan-title{ font-family:var(--font-display); font-weight:700; font-size:21px; color:var(--ink); }
.plan-caption{ color:var(--muted); font-size:14px; margin:4px 0 18px; }
.plan-price{ font-family:var(--font-display); font-weight:800; font-size:40px; color:var(--ink); letter-spacing:-.02em; }
.plan-price span{ font-size:20px; color:var(--muted); font-weight:600; }
.plan-features{ list-style:none; padding:0; margin:22px 0 28px; display:flex; flex-direction:column; gap:12px; flex:1; }
.plan-features li{ display:flex; gap:10px; font-size:15px; color:var(--text); }
.plan-features li::before{ content:"✓"; color:var(--ok); font-weight:800; flex:none; }
.plan .btn{ width:100%; }

/* ── Форма ───────────────────────────────────────────────── */
.section-form{ background:linear-gradient(160deg,var(--ink) 0%,var(--ink-2) 100%); color:#fff; }
.form-wrap{ display:grid; grid-template-columns:1fr 1fr; gap:54px; align-items:center; }
.form-intro p{ color:#C7D2E6; }
.form-points{ list-style:none; padding:0; margin:24px 0 0; display:flex; flex-direction:column; gap:12px; }
.form-points li{ display:flex; gap:12px; color:#E7ECF5; font-weight:500; }
.form-points li::before{ content:"✓"; color:var(--gold); font-weight:800; }
.apply-form{ background:var(--paper-2); color:var(--text); border-radius:22px; padding:34px; box-shadow:var(--shadow); }
.field{ margin-bottom:18px; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field label{ display:block; font-weight:700; font-size:14px; margin-bottom:8px; color:var(--ink); }
.field input, .select-wrap select{
  width:100%; padding:14px 16px; font-family:var(--font-body); font-size:16px;
  border:1.5px solid var(--line); border-radius:12px; background:#fff; color:var(--text);
  transition:border-color .15s, box-shadow .15s;
}
.field input:focus, .select-wrap select:focus{ outline:none; border-color:var(--gold); box-shadow:0 0 0 4px rgba(227,169,60,.18); }
.field input::placeholder{ color:var(--muted-2); }
.select-wrap{ position:relative; }
.select-wrap select{ appearance:none; cursor:pointer; padding-right:42px; }
.select-wrap::after{ content:""; position:absolute; right:18px; top:50%; width:9px; height:9px; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted); transform:translateY(-65%) rotate(45deg); pointer-events:none; }
.consent{ display:flex; gap:11px; align-items:flex-start; font-size:14px; color:var(--muted); margin:6px 0 20px; }
.consent input{ margin-top:3px; width:18px; height:18px; accent-color:var(--gold); flex:none; }
.consent a{ color:var(--ink); text-decoration:underline; }
.pay-amount{ font-weight:800; }
.pay-amount:empty{ display:none; }
.form-error{ color:#D64545; font-weight:600; font-size:14px; min-height:0; margin:12px 0 0; }
.form-error:empty{ display:none; }
.form-note{ color:var(--muted-2); font-size:13px; text-align:center; margin:14px 0 0; }

/* ── Факультеты (аккордеон) ──────────────────────────────── */
.faculties{ margin-top:40px; display:flex; flex-direction:column; gap:14px; }
.acc{ background:var(--paper-2); border:1px solid var(--line); border-radius:var(--radius-sm); overflow:hidden; }
.acc-head{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:22px 26px; background:none; border:0; cursor:pointer; text-align:left;
  font-family:var(--font-display); font-weight:600; font-size:19px; color:var(--ink);
}
.acc-head .acc-meta{ display:flex; align-items:center; gap:16px; }
.acc-count{ font-family:var(--font-body); font-weight:600; font-size:13px; color:var(--muted); }
.acc-icon{ width:14px; height:14px; border-right:2px solid var(--gold); border-bottom:2px solid var(--gold); transform:rotate(45deg); transition:transform .25s; flex:none; }
.acc.open .acc-icon{ transform:rotate(-135deg); }
.acc-body{ max-height:0; overflow:hidden; transition:max-height .3s ease; }
.acc.open .acc-body{ max-height:900px; }
.acc-grid{ padding:4px 26px 26px; display:grid; grid-template-columns:repeat(3,1fr); gap:10px 26px; }
.acc-grid span{ display:flex; gap:10px; color:var(--text); font-size:15px; padding:5px 0; border-bottom:1px dashed var(--line); }
.acc-grid span::before{ content:""; width:6px; height:6px; border-radius:50%; background:var(--gold); margin-top:9px; flex:none; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq{ margin-top:36px; display:flex; flex-direction:column; gap:12px; }
.faq-item{ border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--paper-2); overflow:hidden; }
.faq-q{ width:100%; text-align:left; background:none; border:0; cursor:pointer; padding:20px 24px; font-family:var(--font-display); font-weight:600; font-size:17px; color:var(--ink); display:flex; justify-content:space-between; gap:16px; }
.faq-q .acc-icon{ transition:transform .25s; }
.faq-item.open .acc-icon{ transform:rotate(-135deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .3s ease; color:var(--muted); }
.faq-item.open .faq-a{ max-height:300px; }
.faq-a p{ padding:0 24px 22px; margin:0; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer{ background:var(--ink); color:#C7D2E6; padding:64px 0 28px; }
.footer-inner{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:34px; }
.footer-brand p{ font-size:14px; color:var(--muted-2); max-width:280px; margin:16px 0 0; }
.footer-col h4{ font-family:var(--font-display); font-size:15px; color:#fff; margin-bottom:16px; }
.footer-col a{ display:block; color:#AAB6CC; font-size:15px; margin-bottom:11px; transition:color .15s; }
.footer-col a:hover{ color:var(--gold); }
.footer-bottom{ display:flex; justify-content:space-between; gap:16px; margin-top:44px; padding-top:24px; border-top:1px solid var(--ink-3); font-size:13px; color:var(--muted-2); flex-wrap:wrap; }

/* ── Адаптив ─────────────────────────────────────────────── */
@media (max-width:980px){
  .hero-inner{ grid-template-columns:1fr; gap:40px; }
  .hero-card{ order:-1; }
  .doc{ transform:none; max-width:420px; }
  .steps{ grid-template-columns:repeat(2,1fr); }
  .plans{ grid-template-columns:1fr; max-width:460px; }
  .form-wrap{ grid-template-columns:1fr; gap:32px; }
  .acc-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-inner{ grid-template-columns:1fr 1fr; }
}
@media (max-width:680px){
  body{ font-size:16px; }
  .nav{ display:none; }
  .header-cta{ display:none; }
  .burger{ display:flex; }
  .mobile-nav.open{ display:flex; flex-direction:column; gap:4px; padding:16px 24px 22px; background:var(--ink-2); border-top:1px solid var(--ink-3); }
  .mobile-nav a{ color:#E7ECF5; font-weight:600; padding:10px 0; }
  .mobile-nav .btn{ margin-top:8px; }
  .section{ padding:60px 0; }
  .hero{ padding:56px 0 64px; }
  .hero-actions .btn{ flex:1; }
  .hero-trust{ gap:24px; }
  .hero-trust strong{ font-size:24px; }
  .steps{ grid-template-columns:1fr; }
  .field-row{ grid-template-columns:1fr; }
  .apply-form{ padding:24px; }
  .acc-grid{ grid-template-columns:1fr; }
  .acc-head{ padding:18px 20px; font-size:17px; }
  .footer-inner{ grid-template-columns:1fr; gap:28px; }
  .footer-bottom{ flex-direction:column; gap:8px; }
  .doc{ padding:22px; }
}
