/* ==========================================================================
   Приёмная кампания · СОШ в г. Худжанд имени А.П. Чехова

   Палитра: Government Portal / Civic Services (ui-ux-pro-max)
     синий #1E40AF + служебный зелёный #16A34A + фон #EFF6FF
   Типографика: пара Corporate Trust. Рекомендованный Lexend не поддерживает
     кириллицу, поэтому заголовки набраны IBM Plex Sans с той же ролью.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;

  --blue-900: #1e3a8a;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-500: #3b82f6;
  --blue-200: #bfdbfe;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;

  --green-700: #15803d;
  --green-600: #16a34a;
  --green-50:  #ecfdf5;

  --amber-700: #b45309;
  --amber-50:  #fffbeb;

  --red-700: #b91c1c;
  --red-600: #dc2626;
  --red-50:  #fef2f2;

  --slate-800: #1f2937;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;

  --bg: var(--blue-50);
  --bg-alt: #e4edfa;
  --card: #ffffff;
  --heading: var(--blue-900);
  --text: var(--slate-700);
  --muted: var(--slate-500);
  --line: #cbd9ec;
  --line-soft: #e3ebf6;

  --display: 'IBM Plex Sans', system-ui, 'Segoe UI', sans-serif;
  --body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;

  --wrap: 1160px;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(30, 58, 138, .06);
  --shadow: 0 2px 4px rgba(30, 58, 138, .07), 0 12px 28px -20px rgba(30, 58, 138, .4);

  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%231e40af' stroke-width='2'%3E%3Cpath d='M1 1.5 7 7l6-5.5'/%3E%3C/svg%3E");
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='11' fill='none' stroke='%2316a34a' stroke-width='2.2'%3E%3Cpath d='M1 5.6 5 9.5 13 1.5'/%3E%3C/svg%3E");
  --check-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='11' fill='none' stroke='%23ffffff' stroke-width='2.4'%3E%3Cpath d='M1 5.6 5 9.5 13 1.5'/%3E%3C/svg%3E");
}

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

/* Строчные элементы, которые по смыслу занимают отдельную строку. */
.brand__name, .brand__sub,
.step-link__n, .step-link__t, .step-link__s,
.file__k, .file__n,
.radio__t, .radio__d,
.track__note { display: block; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
}

img, svg { max-width: 100%; }

a { color: var(--blue-800); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-900); }

:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.2;
  color: var(--heading);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(28px, 3.8vw, 42px); }
h2 { font-size: clamp(22px, 2.6vw, 30px); }
h3 { font-size: clamp(18px, 1.9vw, 21px); }
h4 { font-size: 16px; font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 40px, 760px); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blue-900); color: #fff; padding: 12px 20px;
}
.skip:focus { left: 0; }

/* ————— Верхняя служебная полоса ————— */

.topbar {
  background: var(--blue-900);
  color: #c7d8f5;
  font-size: 13.5px;
}
.topbar__in {
  display: flex; flex-wrap: wrap; gap: 4px 24px;
  align-items: center; justify-content: space-between;
  min-height: 40px; padding-block: 8px;
}
.topbar a { color: #dce8fb; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__org { color: #9fbcea; }
.topbar__contacts { display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* ————— Шапка ————— */

.masthead {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.masthead__in { display: flex; align-items: center; gap: 20px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: 0 0 auto; }
.brand__mark {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: var(--radius);
  background: var(--blue-800); display: grid; place-items: center;
}
.brand__mark svg { width: 26px; height: 26px; display: block; }
.brand__text { line-height: 1.2; min-width: 0; }
.brand__name {
  font-family: var(--display); font-weight: 600; font-size: 16px;
  color: var(--heading); letter-spacing: -.01em; white-space: nowrap;
}
.brand__sub {
  font-size: 13px; color: var(--muted); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
/* :not(.btn) обязателен: иначе эти правила перебивают цвет и отступы кнопки-ссылки. */
.nav a:not(.btn) {
  text-decoration: none; color: var(--slate-600); font-size: 14.5px; font-weight: 500;
  padding: 9px 10px; border-radius: var(--radius); white-space: nowrap;
}
.nav a:not(.btn):hover { color: var(--blue-800); background: var(--blue-50); }
.nav a:not(.btn)[aria-current='page'] { color: var(--blue-800); background: var(--blue-100); font-weight: 600; }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); width: 44px; height: 44px; cursor: pointer; color: var(--blue-800);
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--body);
  padding: 13px 22px; border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; text-decoration: none; text-align: center;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.btn--primary { background: var(--blue-800); color: #fff; }
.btn--primary:hover { background: var(--blue-900); color: #fff; }
.btn--ink { background: var(--blue-900); color: #fff; }
.btn--ink:hover { background: var(--blue-800); color: #fff; }
.btn--ghost { background: var(--card); color: var(--blue-800); border-color: var(--line); }
.btn--ghost:hover { background: var(--blue-50); border-color: var(--blue-500); }
.btn--onink { background: transparent; color: #dbeafe; border-color: rgba(191, 219, 254, .5); }
.btn--onink:hover { background: rgba(191, 219, 254, .15); color: #fff; }
.btn--danger { background: var(--card); color: var(--red-700); border-color: #f0c2c2; }
.btn--danger:hover { background: var(--red-50); border-color: var(--red-600); }
.btn--sm { padding: 9px 15px; font-size: 14.5px; }
.btn--full { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .45; pointer-events: none; }

/* ————— Надзаголовок секции ————— */

.rubric {
  font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--blue-700); display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.rubric::before { content: ''; width: 24px; height: 2px; background: var(--blue-500); flex: 0 0 24px; }
.rubric--light { color: var(--blue-200); }
.rubric--light::before { background: var(--blue-200); }

/* ————— Первый экран ————— */

.hero { background: var(--blue-900); color: #dbe7fb; border-bottom: 4px solid var(--blue-500); }
.hero__in { padding-block: clamp(44px, 6vw, 72px); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr);
  gap: clamp(28px, 5vw, 60px); align-items: start;
}
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--blue-200); display: block; }
.hero__lead { font-size: clamp(17px, 1.5vw, 19px); color: #b9cdee; max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__closed { margin-top: 20px; color: #f5c9c9; font-size: 16px; max-width: 48ch; }

/* Карточка сроков */
.slip { background: var(--card); color: var(--text); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.slip__head {
  background: var(--blue-100); border-bottom: 1px solid var(--blue-200);
  padding: 14px 20px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.slip__title { font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--blue-800); }
.slip__year { font-family: var(--mono); font-weight: 600; font-size: 15px; color: var(--heading); }
.slip__body { padding: 4px 20px 14px; }
.slip__row { display: flex; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.slip__row:last-child { border-bottom: 0; }
.slip__k { font-size: 15px; color: var(--muted); flex: 1 1 auto; }
.slip__v { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--heading); text-align: right; white-space: nowrap; }
.slip__deadline {
  margin: 0 20px 18px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--blue-800); color: #fff;
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.slip__deadline b { font-family: var(--mono); font-size: 20px; }
.slip__deadline span { font-size: 14px; color: #c7d9f8; }
.slip__deadline--closed { background: var(--red-600); }

/* ————— Секции ————— */

.section { padding-block: clamp(40px, 5.5vw, 68px); }
.section--tight { padding-block: clamp(30px, 4vw, 44px); }
.section--paper { background: var(--bg-alt); }
.section--card { background: var(--card); }
.section--ink { background: var(--blue-900); color: #c9dbf6; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section__head { max-width: 62ch; margin-bottom: 30px; }
.section__head p { color: var(--muted); font-size: 18px; }
.section--ink .section__head p { color: #a9c1e8; }

/* ————— Этапы приёма ————— */

.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.stage {
  background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--blue-500);
  border-radius: var(--radius); padding: 22px 20px 24px; display: flex; flex-direction: column;
}
.stage__n { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--blue-700); display: block; margin-bottom: 10px; }
.stage h3 { font-size: 18px; margin-bottom: 6px; }
.stage p { font-size: 15.5px; color: var(--muted); margin: 0; }
.stage__when { margin-top: auto; padding-top: 14px; font-family: var(--mono); font-size: 13px; color: var(--slate-600); }

/* ————— Карточки и сетки ————— */

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card__pad { padding: clamp(20px, 3vw, 30px); }
.card__head {
  padding: 18px clamp(20px, 3vw, 30px); border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.card__head h2, .card__head h3 { margin: 0; }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(22px, 3vw, 36px); align-items: start; }

/* ————— Места по классам ————— */

.seats { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.seat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 12px; text-align: center;
}
.seat__grade { font-family: var(--display); font-size: 26px; font-weight: 600; color: var(--heading); }
.seat__label { font-size: 13px; color: var(--muted); margin-top: 2px; }
.seat__n { font-family: var(--mono); font-size: 13.5px; font-weight: 500; color: var(--green-700); margin-top: 8px; }
.seat--closed { background: var(--bg-alt); border-color: var(--line-soft); }
.seat--closed .seat__grade, .seat--closed .seat__n { color: var(--slate-500); }

/* ————— Метки состояния ————— */

.stamp {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
  padding: 9px 16px; border-radius: var(--radius);
  color: var(--blue-800); background: var(--blue-100); border: 1px solid var(--blue-200);
}
.stamp--ok { color: var(--green-700); background: var(--green-50); border-color: #a7e0bd; }
.stamp--warn { color: var(--amber-700); background: var(--amber-50); border-color: #f0d391; }
.stamp--bad { color: var(--red-700); background: var(--red-50); border-color: #f2c3c3; }
.stamp--muted { color: var(--slate-600); background: var(--bg-alt); border-color: var(--line); }
.stamp--lg { font-size: 15px; padding: 11px 20px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  background: var(--blue-100); color: var(--blue-800); border: 1px solid var(--blue-200);
}
.pill--info { background: var(--blue-100); color: var(--blue-800); border-color: var(--blue-200); }
.pill--ok { background: var(--green-50); color: var(--green-700); border-color: #a7e0bd; }
.pill--warn { background: var(--amber-50); color: var(--amber-700); border-color: #f0d391; }
.pill--bad { background: var(--red-50); color: var(--red-700); border-color: #f2c3c3; }
.pill--muted { background: var(--bg-alt); color: var(--slate-600); border-color: var(--line); }

/* ————— Шкала прохождения заявления ————— */

.track { list-style: none; margin: 0; padding: 0; }
.track__item { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; padding-bottom: 26px; position: relative; }
.track__item::before { content: ''; position: absolute; left: 16px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.track__item:last-child { padding-bottom: 0; }
.track__item:last-child::before { display: none; }
.track__dot {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line);
  background: var(--card); display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--muted);
  position: relative; z-index: 1;
}
.track__label { font-weight: 600; color: var(--muted); padding-top: 5px; }
.track__note { font-size: 15px; color: var(--slate-600); font-weight: 400; margin-top: 4px; }

.track__item--done .track__dot {
  border-color: var(--green-600); background: var(--green-600);
  font-size: 0; background-image: var(--check-white); background-repeat: no-repeat; background-position: center;
}
.track__item--done::before { background: var(--green-600); }
.track__item--done .track__label { color: var(--slate-800); }

.track__item--current .track__dot { border-color: var(--blue-700); color: var(--blue-800); box-shadow: 0 0 0 4px var(--blue-100); }
.track__item--current .track__label { color: var(--heading); }
.track__item--stopped .track__dot { border-color: var(--red-600); background: var(--red-50); color: var(--red-700); }

/* ————— Формы ————— */

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 20px; }
.form-grid--wide { grid-template-columns: 1fr; }
.span-2 { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 15px; font-weight: 600; color: var(--slate-800); }
.field .req { color: var(--red-600); }
.hint { font-size: 14px; color: var(--muted); line-height: 1.45; }

.input, .select, .textarea {
  font: 400 16px/1.4 var(--body); color: var(--slate-800);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 13px; width: 100%; min-width: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--blue-500); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--blue-700); box-shadow: 0 0 0 3px var(--blue-100);
}
.input::placeholder, .textarea::placeholder { color: #97a6bd; }
.textarea { min-height: 104px; resize: vertical; }
.select {
  appearance: none; background-image: var(--chevron);
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.input[type='date'] { font-family: var(--mono); font-size: 15px; }
.input--mono { font-family: var(--mono); }

.input:disabled, .select:disabled, .textarea:disabled,
fieldset:disabled .input, fieldset:disabled .select, fieldset:disabled .textarea {
  background: var(--bg-alt); color: var(--slate-600); border-color: var(--line-soft); cursor: not-allowed;
}
fieldset:disabled .check, fieldset:disabled .radio { opacity: .65; cursor: not-allowed; }

.input.is-bad, .select.is-bad, .textarea.is-bad { border-color: var(--red-600); background: var(--red-50); }
.err { font-size: 14.5px; color: var(--red-700); font-weight: 600; }

.check { display: flex; gap: 11px; align-items: flex-start; font-size: 16px; cursor: pointer; }
.check input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--blue-800); flex: 0 0 19px; }
.check span { color: var(--slate-700); }
.check + .check { margin-top: 12px; }

.radios { display: grid; gap: 8px; }
.radio {
  display: flex; gap: 11px; align-items: flex-start; cursor: pointer;
  border: 1px solid var(--line); padding: 13px 15px; border-radius: var(--radius); background: var(--card);
}
.radio:hover { border-color: var(--blue-500); }
.radio input { margin: 3px 0 0; accent-color: var(--blue-800); }
.radio:has(input:checked) { border-color: var(--blue-700); background: var(--blue-50); }
.radio__t { font-weight: 600; font-size: 16px; color: var(--slate-800); }
.radio__d { font-size: 14.5px; color: var(--muted); }

.fieldset { border: 0; padding: 0; margin: 0 0 30px; }
.fieldset > legend {
  font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--heading);
  padding: 0 0 12px; margin-bottom: 18px; border-bottom: 1px solid var(--line-soft); width: 100%;
}
.form-actions {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding-top: 22px; margin-top: 24px; border-top: 1px solid var(--line-soft);
}
.form-actions .spacer { margin-left: auto; }

/* ————— Пошаговая форма ————— */

.steps { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 8px; }
.steps--row { grid-template-columns: repeat(5, 1fr); }
.step-link {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 15px; display: block; text-decoration: none;
}
.step-link:hover { border-color: var(--blue-500); }
.step-link[aria-current='step'] { border-color: var(--blue-700); background: var(--blue-50); }
.step-link__n { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.step-link__t { font-weight: 600; font-size: 15.5px; color: var(--slate-800); margin-top: 2px; }
.step-link__s { font-size: 13.5px; color: var(--muted); margin-top: 1px; }
.step-link--done .step-link__n {
  color: var(--green-700);
  background: var(--check) no-repeat right center; padding-right: 20px; display: inline-block;
}

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

.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 15.5px; background: var(--card); }
table.data th {
  text-align: left; font-size: 13.5px; font-weight: 600; color: var(--slate-600);
  padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--blue-50);
}
table.data td { padding: 13px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data tbody tr:hover { background: var(--blue-50); }
.num { font-family: var(--mono); font-size: 14px; }

.kv { display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr); font-size: 16px; }
.kv dt { padding: 10px 0; color: var(--muted); font-size: 15px; border-bottom: 1px solid var(--line-soft); }
.kv dd { padding: 10px 0; margin: 0; border-bottom: 1px solid var(--line-soft); color: var(--slate-800); }
.kv dd:last-of-type, .kv dt:last-of-type { border-bottom: 0; }

/* ————— Сообщения и врезки ————— */

.flash {
  display: block; padding: 14px 18px; border-radius: var(--radius);
  border: 1px solid var(--blue-200); border-left: 4px solid var(--blue-700);
  background: var(--blue-50); color: var(--slate-800); font-size: 16px; margin-bottom: 24px;
}
.flash--warn { border-color: #f0d391; border-left-color: var(--amber-700); background: var(--amber-50); }
.flash--bad { border-color: #f2c3c3; border-left-color: var(--red-600); background: var(--red-50); }

.note {
  border: 1px solid var(--line); border-left: 4px solid var(--blue-500);
  border-radius: var(--radius); background: var(--card); padding: 18px 20px; font-size: 16px;
}
.note--warn { border-left-color: var(--amber-700); }
.note--bad { border-left-color: var(--red-600); }
.note h4 { margin-bottom: 6px; }
.note p:last-child { margin-bottom: 0; }
.note + .note { margin-top: 16px; }

.empty {
  border: 1px dashed var(--line); border-radius: var(--radius); background: var(--card);
  padding: clamp(28px, 5vw, 44px); text-align: center; color: var(--muted);
}
.empty h3 { color: var(--heading); }

/* ————— Объявления ————— */

.ann { display: grid; gap: 12px; }
.ann__item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; display: block; text-decoration: none; color: inherit;
}
a.ann__item:hover { border-color: var(--blue-500); background: var(--blue-50); }
.ann__meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.ann__date { font-family: var(--mono); font-size: 13.5px; color: var(--muted); }
.ann__title { font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--heading); margin-bottom: 5px; }
.ann__lead { font-size: 15.5px; color: var(--muted); margin: 0; }

.prose { font-size: 17px; line-height: 1.7; }
.prose p { margin-bottom: 1.1em; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 1.1em; }
.prose li { margin-bottom: .45em; }
.prose h2 { margin-top: 1.5em; }
.prose h3 { margin-top: 1.4em; }

/* ————— Вопросы и ответы ————— */

.qa { display: grid; gap: 10px; }
.qa details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.qa details[open] { border-color: var(--blue-500); }
.qa summary {
  cursor: pointer; padding: 17px 20px; font-weight: 600; font-size: 17px; color: var(--heading);
  list-style: none; display: flex; gap: 14px; align-items: center;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ''; margin-left: auto; flex: 0 0 14px; width: 14px; height: 9px;
  background: var(--chevron) no-repeat center; transition: transform .18s ease;
}
.qa details[open] summary::after { transform: rotate(180deg); }
.qa summary:hover { background: var(--blue-50); }
.qa__body { padding: 0 20px 20px; color: var(--slate-700); font-size: 16px; }
.qa__body p:last-child { margin-bottom: 0; }

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

.files { display: grid; gap: 8px; }
.file {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.file__i {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: var(--radius);
  background: var(--blue-100); color: var(--blue-800); display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
}
.file__t { flex: 1 1 220px; min-width: 0; }
.file__k { font-weight: 600; font-size: 15.5px; color: var(--slate-800); }
.file__n { font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }

.dropzone {
  border: 1px solid var(--blue-200); background: var(--blue-50); border-radius: var(--radius);
  padding: 18px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: end;
}

/* Список требуемых документов */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15.5px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--slate-800); }
.checklist li::before {
  content: ''; flex: 0 0 16px; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg-alt);
}
.checklist li.is-done { color: var(--muted); }
.checklist li.is-done::before {
  border-color: var(--green-600); background: var(--green-50) var(--check) no-repeat center / 11px 8px;
}
.checklist li.is-required::before { border-color: var(--red-600); background: var(--red-50); }

/* ————— Кабинет ————— */

.app-card {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--blue-700);
  border-radius: var(--radius); padding: 22px 24px;
  display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) auto; align-items: start;
}
.app-card--muted { border-left-color: var(--slate-500); }
.app-card--bad { border-left-color: var(--red-600); }
.app-card--ok { border-left-color: var(--green-600); }
.app-card__ref { font-family: var(--mono); font-size: 14px; color: var(--blue-700); }
.app-card__name { font-family: var(--display); font-size: 21px; font-weight: 600; color: var(--heading); margin: 4px 0 2px; }
.app-card__meta { font-size: 15px; color: var(--muted); }

.progress { height: 6px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--green-600); }

.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat__n { font-family: var(--display); font-size: 34px; font-weight: 600; color: var(--heading); line-height: 1; }
.stat__l { font-size: 14.5px; color: var(--muted); margin-top: 8px; }
.stat--accent { border-left: 4px solid var(--blue-700); }

/* ————— Подвал ————— */

.foot { background: var(--blue-900); color: #a8c1e8; padding-block: 44px 28px; margin-top: 56px; font-size: 15.5px; }
.foot a { color: #d5e4fa; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot h4 { color: var(--blue-200); font-size: 13.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.foot__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; }
.foot__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot__bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(191, 219, 254, .18);
  display: grid; gap: 8px; font-size: 14px; color: #8fabd8;
}

/* ————— Печатная форма ————— */

.sheet { background: #fff; max-width: 800px; margin: 24px auto; padding: 40px 46px; border: 1px solid var(--line); }
.sheet__head { display: flex; justify-content: space-between; gap: 24px; border-bottom: 2px solid var(--blue-900); padding-bottom: 16px; margin-bottom: 26px; }
.sheet h1 { font-size: 22px; text-align: center; margin: 26px 0 22px; }
.sheet .kv { font-size: 15px; }
.sign { display: flex; justify-content: space-between; gap: 40px; margin-top: 44px; font-size: 14px; color: var(--muted); }
.sign__line { border-bottom: 1px solid var(--slate-800); width: 220px; height: 26px; }

@media print {
  .noprint { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .sheet { border: 0; margin: 0; padding: 0; max-width: none; }
  a { color: inherit; text-decoration: none; }
}

/* ————— Адаптив ————— */

/* Восемь пунктов меню перестают помещаться в строку раньше остальной сетки. */
@media (max-width: 1220px) {
  .nav-toggle { display: grid; place-items: center; }
  .masthead__in { position: relative; min-height: 68px; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 5;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    flex-direction: column; align-items: stretch; padding: 8px; gap: 2px; box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 13px 12px; }
  .nav .btn { margin: 6px 0 0 !important; }
  .nav form { margin-top: 6px; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; }
  .steps--row { grid-template-columns: 1fr 1fr; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { padding-bottom: 0; border-bottom: 0; }
  .kv dd { padding-top: 2px; }
}

@media (max-width: 700px) {
  .app-card { grid-template-columns: 1fr; }
  .steps--row { grid-template-columns: 1fr; }
  .sheet { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
