/* ИИ-штат · Алёна Литвинова
   Идея: кадровые документы малого бизнеса. Печатная форма — Geologica,
   заполнено от руки — Caveat, синяя печать — бренд-синий М360. */

:root {
  --paper: #F4F6F2;
  --paper-2: #E8ECE5;
  --ink: #0E1B1F;
  --ink-2: #172A2F;
  --text: #12211F;
  --muted: #4A5A57;
  --on-dark: #EEF3F1;
  --on-dark-muted: #A9C2BD;
  --green: #2FBF71;
  --green-deep: #17804A;
  --blue: #2F80ED;
  --stamp: #2A6CE0;
  --rule: rgba(14, 27, 31, .16);
  --rule-strong: rgba(14, 27, 31, .55);
  --rule-dark: rgba(238, 243, 241, .16);

  --f: "Geologica", "Manrope", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;

  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 48px);
  --sec: clamp(88px, 12vw, 168px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 18px/1.6 var(--f);
  font-variation-settings: "SHRP" 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }

/* ---------- type ---------- */
.d1, .h2, .h3 {
  font-weight: 700;
  font-variation-settings: "SHRP" 100;
  letter-spacing: -.035em;
  margin: 0;
  text-wrap: balance;
}
.d1 { font-size: clamp(46px, 8vw, 124px); line-height: .94; }
.h2 { font-size: clamp(34px, 5vw, 68px); line-height: 1; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -.02em; }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; max-width: 34em; margin: 0; }
.small { font-size: 14px; line-height: 1.5; }
.hand { font-family: var(--hand); font-weight: 600; letter-spacing: 0; color: var(--stamp); }
.num { font-variant-numeric: tabular-nums lining-nums; }
.muted { color: var(--muted); }
.s--ink .muted { color: var(--on-dark-muted); }

/* ---------- sections ---------- */
.s { padding-block: var(--sec); position: relative; }
.s--ink { background: var(--ink); color: var(--on-dark); }
.s--paper + .s--paper { padding-top: 0; }
.s__head { display: grid; gap: 20px; margin-bottom: clamp(48px, 6vw, 88px); max-width: 920px; }
.s__head .lead { color: var(--muted); }
.s--ink .s__head .lead { color: var(--on-dark-muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  border: 0; border-radius: 0;
  background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer; text-align: center;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--green-deep); }
.btn:active { transform: translateY(1px); }
.btn--green { background: var(--green); color: var(--ink); }
.btn--green:hover { background: #4CD488; }
.btn--line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.s--ink .btn--line:hover { background: var(--paper); color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: progress; }
.link { color: inherit; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.link:hover { color: var(--green-deep); }
.s--ink .link:hover { color: var(--green); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav__in { display: flex; align-items: center; gap: 32px; min-height: 68px; }
.logo { display: grid; line-height: 1; text-decoration: none; }
.logo b { font-size: 21px; font-weight: 800; letter-spacing: -.04em; font-variation-settings: "SHRP" 100; }
.logo span { font-size: 12px; color: var(--muted); margin-top: 3px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: 15px; color: var(--muted); }
.nav__links a:hover { color: var(--text); }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 15px; white-space: nowrap; }
@media (max-width: 520px) { .nav .btn .opt { display: none; } }
@media (max-width: 900px) { .nav__links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 64px); align-items: end; }
.order {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  font-size: 15px; color: var(--muted);
  padding-bottom: 14px; border-bottom: 1px solid var(--rule-strong);
  margin-bottom: clamp(28px, 4vw, 48px);
}
.order b { color: var(--text); font-weight: 600; }
.order .hand { font-size: 26px; line-height: 1; }
.hero .d1 { margin-bottom: 28px; }
.hero .lead { margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(36px, 5vw, 56px); }
.fields { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0; border-top: 1px solid var(--rule); }
.field { padding: 12px 28px 0 0; margin-right: 28px; border-right: 1px solid var(--rule); }
.field:last-child { border-right: 0; margin-right: 0; }
.field small { display: block; font-size: 13px; color: var(--muted); }
.field span { display: block; font-weight: 600; font-size: 17px; }

.portrait { position: relative; align-self: stretch; display: flex; align-items: flex-end; }
.portrait img { width: 100%; mix-blend-mode: multiply; filter: contrast(1.04); }
.approve {
  position: absolute; top: 0; right: 0; width: min(270px, 70%);
  font-size: 13px; line-height: 1.45; color: var(--text);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  padding: 12px 14px 16px;
}
.approve b { display: block; font-size: 14px; letter-spacing: .02em; }
.approve__line { position: relative; height: 40px; border-bottom: 1px solid var(--rule-strong); margin-top: 8px; }
.approve__name { font-size: 12px; color: var(--muted); margin-top: 4px; text-align: right; }
.approve__sign {
  position: absolute; left: 8px; bottom: -10px;
  font-size: 40px; line-height: 1; transform: rotate(-6deg);
  clip-path: inset(0 0 0 0);
}
.seal { position: absolute; width: 168px; height: 168px; left: -36px; bottom: 16%; color: var(--stamp); pointer-events: none; }
.seal svg { width: 100%; height: 100%; filter: url(#ink); opacity: .9; mix-blend-mode: multiply; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .portrait { max-width: 380px; margin: 8px auto 0; width: 100%; }
  .approve { width: 62%; font-size: 12px; }
  .approve__sign { font-size: 32px; }
  .seal { right: auto; left: -8px; top: auto; bottom: 18%; width: 118px; height: 118px; }
  .fields { grid-template-columns: 1fr 1fr; }
  .field { border-right: 0; margin-right: 0; padding-right: 12px; }
}

/* hero load: подпись пишется, потом ставится печать */
.motion .approve__sign { animation: write 1.1s .7s cubic-bezier(.6, 0, .3, 1) both; }
.motion .seal svg { animation: slam .5s 1.85s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes slam {
  0% { opacity: 0; transform: scale(1.6) rotate(-24deg); }
  60% { opacity: .9; }
  100% { opacity: .9; transform: scale(1) rotate(-12deg); }
}
.seal svg { transform: rotate(-12deg); }

/* ---------- recognise ---------- */
.claims { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule-strong); }
.claim { padding: 32px 32px 0 0; border-right: 1px solid var(--rule); }
.claim + .claim { padding-left: 32px; }
.claim:last-child { border-right: 0; padding-right: 0; }
.claim q { display: block; font-size: clamp(22px, 2.1vw, 28px); line-height: 1.25; font-weight: 300; letter-spacing: -.015em; quotes: "«" "»"; margin-bottom: 28px; text-wrap: pretty; }
.claim h3 { font-size: 17px; margin: 0 0 6px; font-weight: 700; }
.claim p { margin: 0; color: var(--muted); font-size: 16px; }
.after-note { margin-top: 48px; font-size: 15px; color: var(--muted); }
@media (max-width: 860px) {
  .claims { grid-template-columns: 1fr; }
  .claim, .claim + .claim { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
}

/* ---------- why now: ledger ---------- */
.ledger { border-top: 1px solid var(--rule-dark); }
.ledger__row {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--rule-dark);
}
.ledger__n { white-space: nowrap; font-size: clamp(44px, 7.2vw, 112px); line-height: .9; font-weight: 700; letter-spacing: -.05em; font-variation-settings: "SHRP" 100; color: var(--green); }
.ledger__t { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; max-width: 30em; }
.ledger__t a { display: block; margin-top: 10px; font-size: 14px; color: var(--on-dark-muted); }
.verdict { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px; }
.verdict p { margin: 0; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.45; }
@media (max-width: 760px) {
  .ledger__row, .verdict { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- staff schedule ---------- */
.sheet { border: 1.5px solid var(--ink); background: #fff; }
.sheet__top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; align-items: baseline;
  padding: 18px 22px; border-bottom: 1.5px solid var(--ink);
}
.sheet__top b { font-size: 18px; }
.sheet__top .hand { font-size: 30px; line-height: 1; }
.sheet__cols, .row {
  display: grid; grid-template-columns: 64px minmax(0, 1.25fr) minmax(0, 2fr) 168px;
  align-items: center;
}
.sheet__cols { font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--rule-strong); }
.sheet__cols span, .row > * { padding: 12px 18px; border-right: 1px solid var(--rule); align-self: stretch; }
.sheet__cols span:last-child, .row > *:last-child { border-right: 0; }
.row { border-bottom: 1px solid var(--rule); min-height: 104px; }
.row:last-child { border-bottom: 0; }
.row__n { font-size: 28px; font-weight: 700; font-variation-settings: "SHRP" 100; display: flex; align-items: center; }
.row__pos { display: flex; flex-direction: column; justify-content: center; }
.row__pos b { font-size: 20px; line-height: 1.2; letter-spacing: -.015em; }
.row__pos small { color: var(--muted); font-size: 14px; }
.row__does { display: flex; align-items: center; font-size: 16px; line-height: 1.45; }
.row__st { position: relative; display: flex; align-items: center; justify-content: center; }
.row__vac { font-size: 14px; color: var(--muted); }
.stamp {
  position: absolute; inset: 50% auto auto 50%;
  display: grid; place-items: center; text-align: center;
  padding: 6px 12px 5px; border: 3px solid var(--stamp); border-radius: 6px;
  color: var(--stamp); font-weight: 800; font-size: 20px; line-height: 1; letter-spacing: .06em;
  font-variation-settings: "SHRP" 100;
  transform: translate(-50%, -50%) rotate(-9deg);
  filter: url(#ink); opacity: 0; mix-blend-mode: multiply;
}
.stamp small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .02em; margin-top: 4px; }
.row.is-hired .row__vac { opacity: 0; }
.row.is-hired .stamp { opacity: .95; }
.motion .row.is-hired .stamp { animation: stamp .42s cubic-bezier(.2, 1.7, .45, 1) both; }
@keyframes stamp {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-22deg) scale(1.9); }
  100% { opacity: .9; transform: translate(-50%, -50%) rotate(-9deg) scale(1); }
}
.row:nth-child(even) .stamp { transform: translate(-50%, -50%) rotate(6deg); }
.motion .row:nth-child(even).is-hired .stamp { animation-name: stamp2; }
@keyframes stamp2 {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(20deg) scale(1.9); }
  100% { opacity: .9; transform: translate(-50%, -50%) rotate(6deg) scale(1); }
}
.sheet__foot { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: end; margin-top: 28px; }
.sheet__foot p { margin: 0; max-width: 40em; }
@media (max-width: 820px) {
  .sheet__cols { display: none; }
  .row { grid-template-columns: 52px 1fr; grid-template-areas: "n pos" "n does" "n st"; min-height: 0; padding: 14px 0; }
  .row > * { border-right: 0; padding: 4px 14px; }
  .row__n { grid-area: n; align-items: flex-start; font-size: 24px; }
  .row__pos { grid-area: pos; }
  .row__does { grid-area: does; font-size: 15px; }
  .row__st { grid-area: st; justify-content: flex-start; min-height: 56px; }
  .stamp { left: 64px; }
  .sheet__foot { grid-template-columns: 1fr; }
}

/* ---------- payroll ---------- */
.payroll { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.slip { border-top: 2px solid var(--on-dark); }
.slip__row { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; padding: 24px 0; border-bottom: 1px dashed var(--rule-dark); }
.slip__row b { font-size: 19px; font-weight: 600; }
.slip__row small { grid-column: 1 / -1; color: var(--on-dark-muted); font-size: 15px; }
.slip__sum { font-size: clamp(30px, 3.6vw, 48px); font-weight: 700; letter-spacing: -.03em; font-variation-settings: "SHRP" 100; text-align: right; white-space: nowrap; }
.slip__row--ours .slip__sum { color: var(--green); }
.slip__total { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; font-size: 15px; color: var(--on-dark-muted); }
@media (max-width: 860px) { .payroll { grid-template-columns: 1fr; } }

/* ---------- lesson steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: st; border-top: 1px solid var(--rule-strong); }
.steps li { counter-increment: st; padding: 24px 24px 0 0; position: relative; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.steps li::before { content: counter(st); display: block; font-size: 56px; line-height: 1; font-weight: 700; font-variation-settings: "SHRP" 100; letter-spacing: -.04em; margin-bottom: 28px; color: var(--green-deep); }
.steps b { display: block; font-size: 20px; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 16px; line-height: 1.45; display: block; }
.steps-note { margin-top: 40px; max-width: 40em; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 64px 1fr; }
  .steps li::before { margin: 0; font-size: 40px; grid-row: span 2; }
}

/* ---------- before / after ---------- */
.ba { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule-strong); }
.ba > div { padding-top: 24px; }
.ba > div + div { padding-left: 40px; border-left: 1px solid var(--rule); }
.ba h3 { font-size: 15px; font-weight: 600; color: var(--muted); margin: 0 0 18px; }
.ba ul { list-style: none; margin: 0; padding: 0; }
.ba li { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.35; padding: 14px 0; border-bottom: 1px solid var(--rule); letter-spacing: -.01em; }
.ba .was li { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(14, 27, 31, .35); text-decoration-thickness: 1px; }
.ba .will li { font-weight: 500; }
@media (max-width: 760px) { .ba { grid-template-columns: 1fr; } .ba > div + div { padding-left: 0; border-left: 0; margin-top: 36px; } }

/* ---------- author ---------- */
.author { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.author__photo figure { margin: 0; }
.author__photo img { width: 100%; aspect-ratio: 9 / 13; object-fit: cover; object-position: 50% 30%; }
figcaption { font-size: 13px; color: var(--on-dark-muted); margin-top: 10px; line-height: 1.4; }
.card-t2 { border-top: 1.5px solid var(--on-dark); margin-top: 36px; }
.card-t2 div { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule-dark); }
.card-t2 dt { color: var(--on-dark-muted); font-size: 15px; }
.card-t2 dd { margin: 0; font-size: 17px; line-height: 1.45; }
.author blockquote { margin: 48px 0 0; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.18; font-weight: 300; letter-spacing: -.02em; }
.author blockquote footer { margin-top: 14px; font-size: 15px; color: var(--on-dark-muted); font-weight: 400; letter-spacing: 0; }
.reel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(56px, 7vw, 96px); }
.reel figure { margin: 0; }
.reel img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 900px) {
  .author { grid-template-columns: 1fr; }
  .author__photo { max-width: 460px; }
  .card-t2 div { grid-template-columns: 1fr; gap: 2px; }
  .reel { grid-template-columns: 1fr 1fr; }
}

/* ---------- stories ---------- */
.stories { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule-strong); margin-bottom: clamp(56px, 7vw, 96px); }
.story { padding: 24px 24px 0 0; }
.story + .story { padding-left: 24px; border-left: 1px solid var(--rule); }
.story b { display: block; font-size: 22px; letter-spacing: -.02em; margin-bottom: 8px; }
.story p { margin: 0; color: var(--muted); font-size: 16px; }
.shots { columns: 4 240px; column-gap: 20px; }
.shots figure { break-inside: avoid; margin: 0 0 20px; }
.shots img { width: 100%; border: 1px solid var(--rule); }
.shots figcaption { color: var(--muted); }
@media (max-width: 900px) {
  .stories { grid-template-columns: 1fr 1fr; }
  .story, .story + .story { padding: 20px 16px 20px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
}

/* ---------- tariffs ---------- */
.deals { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.deal { display: flex; flex-direction: column; border: 1.5px solid var(--ink); padding: clamp(24px, 3vw, 40px); background: #fff; }
.deal--main { background: var(--ink); color: var(--on-dark); }
.deal__no { font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); margin-bottom: 24px; }
.deal--main .deal__no { color: var(--on-dark-muted); border-color: var(--rule-dark); }
.deal h3 { font-size: clamp(26px, 2.6vw, 34px); margin: 0 0 8px; font-weight: 700; letter-spacing: -.03em; font-variation-settings: "SHRP" 100; }
.deal__price { font-size: clamp(40px, 4.6vw, 60px); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variation-settings: "SHRP" 100; margin: 18px 0 6px; }
.deal__sub { color: var(--muted); font-size: 16px; margin: 0 0 24px; }
.deal--main .deal__sub { color: var(--on-dark-muted); }
.deal ul { list-style: none; padding: 0; margin: 0 0 32px; flex: 1; }
.deal li { padding: 10px 0 10px 26px; border-bottom: 1px solid var(--rule); position: relative; font-size: 17px; }
.deal--main li { border-color: var(--rule-dark); }
.deal li::before { content: ""; position: absolute; left: 0; top: 19px; width: 12px; height: 2px; background: var(--green-deep); }
.deal--main li::before { background: var(--green); }
.deal .btn { width: 100%; }
.deal--main .btn { background: var(--green); color: var(--ink); }
.deal--main .btn:hover { background: #4CD488; }
.deals-note { margin-top: 32px; display: grid; gap: 8px; max-width: 46em; }
.deals-note p { margin: 0; }
@media (max-width: 820px) { .deals { grid-template-columns: 1fr; } }

/* ---------- honest ---------- */
.honest { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule-dark); }
.honest > div { padding-top: 24px; }
.honest > div + div { padding-left: 40px; border-left: 1px solid var(--rule-dark); }
.honest h3 { margin: 0 0 14px; font-size: 22px; }
.honest ul { margin: 0; padding: 0; list-style: none; }
.honest li { padding: 12px 0; border-bottom: 1px solid var(--rule-dark); font-size: 18px; }
.honest-q { margin: 64px 0 0; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.12; font-weight: 600; letter-spacing: -.03em; font-variation-settings: "SHRP" 100; max-width: 20em; text-wrap: balance; }
@media (max-width: 760px) { .honest { grid-template-columns: 1fr; } .honest > div + div { padding-left: 0; border-left: 0; margin-top: 32px; } }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--rule-strong); max-width: 920px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 28px; gap: 24px; align-items: center; padding: 22px 0; font-size: clamp(19px, 1.7vw, 22px); font-weight: 600; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 18px; height: 18px; justify-self: end; background: linear-gradient(currentColor, currentColor) center / 18px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 18px no-repeat; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; max-width: 42em; color: var(--muted); }

/* ---------- final ---------- */
.final { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.final__opt { padding: clamp(28px, 3.4vw, 48px); border: 1px solid var(--rule-dark); display: flex; flex-direction: column; gap: 16px; }
.final__opt--hot { background: var(--paper); color: var(--text); border-color: var(--paper); }
.final__opt small { font-size: 15px; color: var(--on-dark-muted); }
.final__opt--hot small { color: var(--muted); }
.final__opt h3 { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; font-variation-settings: "SHRP" 100; }
.final__opt p { margin: 0; flex: 1; }
.final__opt .btn { align-self: flex-start; }
@media (max-width: 820px) { .final { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--on-dark-muted); padding: 48px 0 56px; border-top: 1px solid var(--rule-dark); font-size: 14px; }
.foot__in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 48px; }
.foot p { margin: 0 0 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--on-dark); }
@media (max-width: 760px) { .foot__in { grid-template-columns: 1fr; } }

/* ---------- form & modal ---------- */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.form label small { font-weight: 400; color: var(--muted); }
.form input[type="text"], .form input[type="tel"] {
  width: 100%; min-height: 54px; padding: 0 16px;
  border: 1.5px solid var(--rule-strong); border-radius: 0; background: #fff; color: var(--text);
  font: 400 17px var(--f);
}
.form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 128, 237, .2); }
.form .err { color: #B3261E; font-size: 14px; font-weight: 400; min-height: 0; }
.form [aria-invalid="true"] { border-color: #B3261E; }
.check { display: grid !important; grid-template-columns: 22px 1fr; gap: 10px !important; font-weight: 400 !important; font-size: 14px !important; line-height: 1.45; align-items: start; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green-deep); }
.form .btn { width: 100%; margin-top: 6px; }
.form__alt { font-size: 14px; color: var(--muted); margin: 0; }
.form__msg { display: none; }
.form__msg h3 { margin: 0 0 10px; font-size: 28px; letter-spacing: -.03em; font-variation-settings: "SHRP" 100; }
.form__msg p { margin: 0 0 18px; }
.form__msg .btns { display: grid; gap: 10px; }
.is-sent .form__fields { display: none; }
.is-sent .form__msg { display: block; }
.form__fail { display: none; padding: 14px 16px; background: #FCEDEC; color: #7A1A14; font-size: 15px; }
.form__fail.on { display: block; }
.form__fail a { color: inherit; font-weight: 600; }

.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 16px; background: rgba(14, 27, 31, .66); }
.modal.on { display: grid; }
.modal__box { position: relative; width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--paper); padding: clamp(24px, 4vw, 40px); }
.modal__box h2 { padding-right: 36px; font-size: 30px; line-height: 1.05; margin: 0 0 8px; letter-spacing: -.03em; font-variation-settings: "SHRP" 100; }
.modal__box > p { margin: 0 0 22px; color: var(--muted); font-size: 16px; }
.modal__x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 28px; line-height: 1; }

/* ---------- practicum page ---------- */
.pr-hero { padding-top: clamp(32px, 5vw, 64px); padding-bottom: var(--sec); }
.pr-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.pr-grid .d1 { margin-bottom: 24px; }
.count { display: flex; gap: 0; margin: 32px 0 0; border-top: 1px solid var(--rule-strong); }
.count div { padding: 12px 24px 0 0; margin-right: 24px; border-right: 1px solid var(--rule); }
.count div:last-child { border: 0; }
.count b { display: block; font-size: clamp(36px, 4vw, 56px); line-height: 1; font-weight: 700; letter-spacing: -.04em; font-variation-settings: "SHRP" 100; }
.count small { font-size: 13px; color: var(--muted); }
.count-state { margin: 32px 0 0; font-size: 20px; font-weight: 600; }
.panel { background: #fff; border: 1.5px solid var(--ink); padding: clamp(22px, 3vw, 36px); position: sticky; top: 92px; }
.panel h2 { font-size: 26px; margin: 0 0 6px; letter-spacing: -.03em; font-variation-settings: "SHRP" 100; }
.panel > p { margin: 0 0 20px; color: var(--muted); font-size: 16px; }
.shifts { border: 1.5px solid var(--ink); background: #fff; }
.shift { display: grid; grid-template-columns: 150px 1fr; border-bottom: 1px solid var(--rule); }
.shift:last-child { border-bottom: 0; }
.shift > div { padding: 22px; }
.shift > div + div { border-left: 1px solid var(--rule); }
.shift time { display: block; font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variation-settings: "SHRP" 100; }
.shift small { color: var(--muted); font-size: 14px; }
.shift h3 { margin: 0 0 6px; font-size: 21px; letter-spacing: -.015em; }
.shift p { margin: 0; color: var(--muted); font-size: 16px; }
.who { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; }
.who img { width: 180px; height: 180px; object-fit: cover; mix-blend-mode: multiply; }
.who p { margin: 0; font-size: 19px; }
.cta-bottom { text-align: left; }
@media (max-width: 960px) {
  .pr-grid { grid-template-columns: 1fr; }
  .panel { position: static; }
}
@media (max-width: 620px) {
  .shift { grid-template-columns: 1fr; }
  .shift > div + div { border-left: 0; padding-top: 0; }
  .who { grid-template-columns: 1fr; }
  .count div { padding-right: 14px; margin-right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.motion) { scroll-behavior: auto; }
}

/* ---------- документы ---------- */
.doc { padding-block: clamp(56px, 8vw, 104px); background: var(--paper); }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.05; margin: 0 0 12px; }
.doc h2 { font-size: 21px; line-height: 1.25; margin: 40px 0 12px; }
.doc p, .doc li { font-size: 16px; line-height: 1.6; max-width: 46em; }
.doc ol, .doc ul { padding-left: 1.3em; }
.doc li + li { margin-top: 6px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; }
.doc td, .doc th { border-top: 1px solid var(--rule); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.doc .ph { background: rgba(47, 191, 113, .22); border-radius: 3px; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.doc .draft { border-left: 3px solid var(--green); padding: 10px 14px; background: var(--paper-2); font-size: 14px; margin: 0 0 32px; }
