@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400..700&family=Golos+Text:wght@400;500;600;700;900&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Бело-синяя палитра (Audit Blue #1F3A5C из брендбука) + серый, без градиентов.
     --ink/--ink-2 — нейтральный тёмно-серый текст/лого. --ink-3 — самый тёмный синий
     (hover-затемнение кнопок). --emerald — Audit Blue как есть (текст-акцент: ссылки,
     цены, номера курсов); --emerald-bright — более светлый синий для главной CTA-кнопки
     и крупных декоративных акцентов. --gold/--gold-bright — только декоративно (тонкие
     обводки/линии), не для текста. --sage сохранена как алиас --stone. */
  --ink: #1c1917;
  --ink-2: #57534e;
  --ink-3: #142639;
  --emerald: #1f3a5c;
  --emerald-bright: #2f5a82;
  --gold: #9db4c7;
  --gold-bright: #dce6ee;
  --paper: #ffffff;
  --paper-2: #f5f5f4;
  --sage: #78716c;
  --stone: #78716c;
  --ink-text: #292524;
  --sale: #142639;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --container: 1180px;
  --radius: 3px;
  --radius-btn: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body.site {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.site img { max-width: 100%; display: block; }
.site a { color: inherit; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
}

.site h1, .site h2, .site h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(31, 58, 92, 0.18);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 84px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  flex-shrink: 0;
}

/* Полноценный бренд-символ (штангенциркуль целиком, без обрезки в кружок) — выше и шире,
   чтобы название рядом с ним читалось увереннее. */
.logo-mark {
  height: 46px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-mark img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.logo-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.logo-word small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--stone);
  text-transform: uppercase;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
}

.main-nav a {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-text);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Селекторы "a.btn-*" (а не просто ".btn-*") нужны, чтобы явный color здесь побеждал
   правило ".site a { color: inherit }" — оно имеет более высокую специфичность
   (элемент+класс) и иначе тихо перекрашивает текст кнопки в унаследованный цвет фона.
   Кнопки — прямоугольные, со скруглением как у клавиш клавиатуры (--radius-btn) и
   нижней "гранью" через box-shadow, которая при нажатии (:active) исчезает, а кнопка
   опускается — имитация физической клавиши. Без градиентов. */
a.btn-account {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius-btn);
  padding: 8px 16px;
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(28,25,23,0.18);
  transition: background .2s ease, color .2s ease, transform .1s ease, box-shadow .1s ease;
  display: inline-block;
}
.btn-account:hover { background: var(--ink); color: var(--paper); transform: translateY(1px); box-shadow: 0 1px 0 rgba(28,25,23,0.18); }
.btn-account:active { transform: translateY(2px); box-shadow: 0 0 0 rgba(28,25,23,0.18); }

a.btn-cta {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  color: var(--paper);
  background: var(--emerald);
  border-radius: var(--radius-btn);
  padding: 10px 20px;
  white-space: nowrap;
  box-shadow: 0 3px 0 rgba(28,25,23,0.28);
  transition: background .2s ease, transform .1s ease, box-shadow .1s ease;
  display: inline-block;
}
.btn-cta:hover { background: var(--ink-3); transform: translateY(1px); box-shadow: 0 2px 0 rgba(28,25,23,0.28); }
.btn-cta:active { transform: translateY(3px); box-shadow: 0 0 0 rgba(28,25,23,0.28); }
/* стрелка на самой заметной кнопке в шапке — усиливает призыв к действию */
.btn-cta::after { content: "→"; margin-left: 7px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  content: "";
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--paper);
  color: var(--ink-text);
  overflow: hidden;
  padding: 96px 0 84px;
}

.hero-seal {
  position: absolute;
  top: 50%;
  right: -6%;
  width: 620px;
  height: 620px;
  transform: translateY(-50%);
  opacity: 0.1;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: end;
}
/* Grid-элементы по умолчанию min-width:auto — не сжимаются меньше содержимого (здесь —
   текст .hero-eyebrow), из-за чего вся колонка на узких экранах вылезает за viewport и
   не даёт себя пролистнуть (overflow:visible на .hero, скролл внутри блока не появляется). */
.hero .wrap > div:first-child { min-width: 0; }

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--emerald);
}

.hero h1 {
  font-size: clamp(2.9rem, 6.2vw, 5.4rem);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  color: var(--emerald-bright);
}

.hero-lede {
  margin: 26px 0 34px;
  max-width: 46ch;
  font-size: 17.5px;
  color: var(--stone);
}

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

a.btn-primary {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  color: var(--paper);
  background: var(--emerald-bright);
  border-radius: var(--radius-btn);
  padding: 14px 26px;
  box-shadow: 0 3px 0 rgba(28,25,23,0.28);
  transition: transform .1s ease, background .2s ease, box-shadow .1s ease;
  display: inline-block;
}
.btn-primary:hover { background: var(--emerald); color: var(--paper); transform: translateY(1px); box-shadow: 0 2px 0 rgba(28,25,23,0.28); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 0 0 rgba(28,25,23,0.28); }

a.btn-ghost {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  color: var(--ink-text);
  border: 1px solid rgba(41, 37, 36, 0.22);
  border-radius: var(--radius-btn);
  padding: 14px 26px;
  box-shadow: 0 2px 0 rgba(28,25,23,0.14);
  transition: border-color .2s ease, background .2s ease, transform .1s ease, box-shadow .1s ease;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(41,37,36,0.04); transform: translateY(1px); box-shadow: 0 1px 0 rgba(28,25,23,0.14); }
.btn-ghost:active { transform: translateY(2px); box-shadow: 0 0 0 rgba(28,25,23,0.14); }

/* Второстепенное действие в hero — текстовая ссылка, а не кнопка, чтобы не конкурировать
   визуально с основным CTA "Выбрать курс". */
.hero-actions .hero-link-secondary {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  color: var(--stone);
  display: inline-flex;
  align-items: center;
  padding: 14px 6px;
  transition: color .2s ease;
}
.hero-actions .hero-link-secondary:hover { color: var(--ink); }

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(41, 37, 36, 0.12);
  padding-top: 26px;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--emerald);
  line-height: 1;
}
.hero-stat .label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--stone);
  margin-top: 6px;
  text-transform: uppercase;
}

.hero-card {
  background: var(--paper-2);
  color: var(--ink-text);
  border-radius: var(--radius);
  padding: 28px 26px;
  align-self: end;
  border-top: 3px solid var(--gold);
  box-shadow: 0 24px 48px -20px rgba(41,37,36,0.18);
}
.hero-card .eyebrow { color: var(--emerald); }
.hero-card h3 { font-size: 1.3rem; margin: 10px 0 14px; }
.hero-card ul { margin: 0; padding: 0; list-style: none; }
.hero-card li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid rgba(41, 37, 36, 0.1);
  font-size: 14px;
}
.hero-card li:first-child { border-top: none; }
.hero-card li .mark { color: var(--emerald); font-family: var(--font-mono); }

/* ---------- Section shells ---------- */

.section { padding: 96px 0; }
.section-paper { background: var(--paper); }
/* Класс исторически назывался "тёмная секция" — теперь, как и весь сайт, светлый фон. */
.section-ink { background: var(--paper-2); color: var(--ink-text); }
.section-alt { background: var(--paper-2); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 52px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.section-head .eyebrow { margin-bottom: 14px; display: block; }
.section-kicker {
  max-width: 34ch;
  font-size: 15px;
  color: var(--stone);
  margin: 0;
}
.section-ink .section-kicker { color: var(--stone); }

/* ---------- Course registry cards ---------- */

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

.course-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--paper-2);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 30px 22px 26px;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: block;
}
.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -22px rgba(41,37,36,0.25);
  border-top-color: var(--emerald-bright);
}
.course-card.is-soon { cursor: default; }
.course-card.is-soon:hover { transform: none; box-shadow: none; border-top-color: var(--gold); }

/* Скелетон-заглушка курса на время загрузки (главная страница) */
.course-card.is-skeleton { cursor: default; border-top-color: var(--paper-2); }
.course-card.is-skeleton:hover { transform: none; box-shadow: none; }
.skeleton-bar {
  height: 14px;
  border-radius: 3px;
  background: var(--paper-2);
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}
.skeleton-bar.eyebrow { width: 55%; height: 11px; margin-bottom: 14px; }
.skeleton-bar.code { width: 40%; height: 34px; margin-bottom: 14px; }
.skeleton-bar.name { width: 90%; margin-bottom: 8px; }
.skeleton-bar.name.short { width: 65%; }
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-bar { animation: none; }
}

.catalog-error { color: var(--stone); font-size: 14.5px; }
.catalog-error button {
  margin-left: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  border: 1px solid var(--emerald);
  background: #fff;
  color: var(--emerald);
  border-radius: var(--radius);
  padding: 6px 14px;
}
.catalog-error button:hover { background: var(--emerald); color: var(--paper); }

.course-card .corner {
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 26px 26px 0;
  border-color: transparent var(--paper-2) transparent transparent;
}

.course-card .code-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}

.course-card .code {
  font-family: var(--font-display);
  font-size: 3.1rem;
  font-weight: 600;
  color: var(--emerald);
  line-height: 1;
  margin: 10px 0 14px;
}

.course-card .name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-text);
  line-height: 1.35;
}

/* Цена курса — на карточках каталога и на странице курса (course.html .price). */
.price-old {
  text-decoration: line-through;
  color: var(--stone);
  font-weight: 400;
}
.price-sale { color: var(--sale); font-weight: 700; }
.price-star { color: var(--sale); font-weight: 700; margin-left: 1px; }
.price-sale-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--sale);
  margin-top: 3px;
}

.course-card .card-price {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 14px;
}
.course-card .card-price .price-old { font-size: 12.5px; margin-right: 6px; }
.course-card .card-price .price-sale { font-size: 15.5px; }

.course-card .card-format { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.course-card .format-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .02em;
  color: var(--emerald);
  background: rgba(31, 58, 92, .08);
  border-radius: var(--radius-btn);
  padding: 3px 9px;
}

.course-card .badge-soon {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  background: var(--paper-2);
  border-radius: 999px;
  padding: 4px 9px;
}

.course-card .go {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--emerald);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.about-lead {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.3;
  color: var(--ink);
}
.about-lead .mark { color: var(--emerald-bright); }

.about-body p { color: var(--stone); font-size: 15.5px; margin: 0 0 18px; }

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--paper-2);
}
.about-facts .num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--emerald);
  line-height: 1;
}
.about-facts .label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 6px;
}

/* ---------- Testimonials ---------- */

.testi-viewport { overflow: hidden; }
.testi-track {
  display: flex;
  gap: 22px;
  transition: transform .45s cubic-bezier(.65,.05,.25,1);
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}
.testi-track:active { cursor: grabbing; }

.testi-card {
  flex: 0 0 calc((100% - 44px) / 3);
  background: var(--paper);
  border: 1px solid var(--paper-2);
  border-radius: var(--radius);
  padding: 30px 26px;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 14px 30px -20px rgba(41,37,36,0.15);
}
.testi-ref {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--emerald);
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
}
.testi-quote-mark {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 0.6;
  display: block;
  margin: 14px 0 6px;
}
.testi-text {
  font-size: 15px;
  color: var(--ink-text);
  line-height: 1.6;
  min-height: 6.4em;
}
.testi-person {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--paper-2);
  font-size: 13.5px;
}
.testi-person .name { font-weight: 700; color: var(--ink); }
.testi-person .role { font-family: var(--font-mono); font-size: 11.5px; color: var(--stone); margin-top: 3px; }

.testi-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
}
.testi-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--paper-2);
  background: var(--paper);
  color: var(--ink-text);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 16px;
  transition: background .2s ease, border-color .2s ease;
}
.testi-arrow:hover { background: rgba(31,58,92,0.06); border-color: var(--emerald); }
.testi-dots { display: flex; gap: 8px; }
.testi-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--paper-2);
  border: none;
  cursor: pointer;
  padding: 0;
}
.testi-dot.is-active { background: var(--emerald); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--paper-2);
  color: var(--stone);
  border-top: 1px solid rgba(31,58,92,0.25);
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-grid.no-policies {
  grid-template-columns: 1.3fr 1fr 1fr;
  padding-bottom: 36px;
}
.footer-brand .logo-word { color: var(--ink); }
.footer-brand p {
  margin: 16px 0 0;
  font-size: 13.5px;
  max-width: 32ch;
  color: var(--stone);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  text-decoration: none;
  font-size: 14px;
  color: var(--stone);
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--emerald); }

.cookie-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--stone);
  opacity: 0.85;
  max-width: 70ch;
  margin: 0 0 18px;
}
.cookie-note a { color: var(--stone); text-decoration: underline; }
.cookie-note a:hover { color: var(--emerald); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(41,37,36,0.1);
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--stone);
}

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .testi-track { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-card { justify-self: start; max-width: 420px; }
  .footer-grid, .footer-grid.no-policies { grid-template-columns: 1fr 1fr; }
  .testi-card { flex: 0 0 calc((100% - 22px) / 2); }
}

@media (max-width: 700px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-actions { display: none; }
  .site-header .wrap { height: 66px; }

  .hero { padding: 56px 0 56px; }
  /* clamp() ниже держит минимум 2.9rem (46.4px) на любом экране шире ~748px и не
     опускается ниже него — на телефоне длинные слова ("подтверждённый") в это не
     помещаются и вылезают за край. Отдельный, более низкий пол специально для узких
     экранов. */
  .hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero-stats { flex-wrap: wrap; gap: 24px 32px; }
  .hero-card { padding: 22px 20px; }

  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 36px; }

  .course-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .course-card { padding: 22px 16px 20px; }
  .course-card .code { font-size: 2.3rem; }

  .testi-card { flex: 0 0 100%; }

  .footer-grid, .footer-grid.no-policies { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
}

@media (max-width: 460px) {
  .course-grid { grid-template-columns: 1fr; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 66px 0 0 0;
  background: var(--paper);
  z-index: 51;
  padding: 28px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .3s ease, visibility 0s linear .3s;
  overflow-y: auto;
}
.mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .3s ease;
}
.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  padding: 14px 0;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--paper-2);
}
.mobile-nav .mobile-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Степпер прогресса заявки: Заявка → Оплата → Материалы → Тест → Документ */
.progress-stepper { margin: 4px 0 22px; }
.progress-stepper .ps-row { display: flex; align-items: center; }
.progress-stepper .ps-dot {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  background: var(--paper-2);
  color: var(--stone);
  border: 2px solid var(--paper-2);
}
.progress-stepper .ps-dot.is-done { background: var(--emerald); border-color: var(--emerald); color: var(--paper); }
.progress-stepper .ps-dot.is-current { background: var(--paper); border-color: var(--emerald); color: var(--emerald); }
.progress-stepper .ps-line { flex: 1 1 auto; height: 2px; background: var(--paper-2); }
.progress-stepper .ps-line.is-done { background: var(--emerald); }
.progress-stepper .ps-labels { display: flex; margin-top: 6px; }
.progress-stepper .ps-labels span { flex: 1; text-align: center; font-size: 11.5px; color: var(--stone); }
.progress-stepper .ps-labels span:first-child { text-align: left; }
.progress-stepper .ps-labels span:last-child { text-align: right; }
.progress-stepper.is-cancelled {
  font-size: 13.5px;
  color: #a33;
  font-weight: 600;
}
.progress-stepper.is-compact { margin: 0 0 10px; }
.progress-stepper.is-compact .ps-dot { width: 18px; height: 18px; font-size: 9.5px; }

@media (max-width: 460px) {
  .progress-stepper .ps-labels span { font-size: 10px; }
}
