/* ============================================================
   presianova.pro — персональный сайт профориентолога
   Тёплый светлый фон, индиго-фиолетовый градиент как компас,
   крупная типографика, мягкие объёмы, много воздуха.
   ============================================================ */

:root {
  --ink: #14102B;
  --ink-2: #3B3453;
  --muted: #6E6788;
  --line: #ECE9F4;
  --line-2: #DFDAEC;
  --bg: #FBFAFE;
  --card: #FFFFFF;

  --brand: #2C5BFF;
  --brand-2: #8B5CF6;
  --brand-ink: #1B3BD6;
  --brand-soft: #EFF1FF;
  --accent: #FF6B5A;
  --accent-ink: #C63A2B;
  --accent-soft: #FFF1EE;
  --ok: #0E9F6E;
  --ok-soft: #E7F8F0;
  --err: #E5484D;
  --err-ink: #C22B32;
  --err-soft: #FDECEC;

  /* градиент под белым текстом — затемнённый: все его точки дают ≥ 5:1 к белому */
  --grad: linear-gradient(135deg, #2440C8 0%, #5A34D6 58%, #C63A2B 100%);
  /* яркий вариант — только для декора без текста поверх */
  --grad-vivid: linear-gradient(135deg, #2C5BFF 0%, #8B5CF6 55%, #FF6B5A 100%);
  --grad-soft: linear-gradient(135deg, #EFF1FF, #F6EEFF 60%, #FFF1EE);

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 11px;

  --sh-1: 0 1px 2px rgba(20, 16, 43, .04), 0 2px 8px rgba(20, 16, 43, .05);
  --sh-2: 0 2px 6px rgba(20, 16, 43, .05), 0 14px 34px -12px rgba(44, 91, 255, .22);
  --sh-3: 0 4px 12px rgba(20, 16, 43, .07), 0 26px 60px -18px rgba(44, 91, 255, .3);

  --font: 'Manrope', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --ease: cubic-bezier(.22, .8, .28, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(680px 480px at 8% -6%, rgba(44, 91, 255, .1), transparent 68%),
    radial-gradient(620px 440px at 98% 2%, rgba(255, 107, 90, .1), transparent 66%),
    radial-gradient(760px 520px at 55% 108%, rgba(139, 92, 246, .09), transparent 70%);
  background-attachment: fixed;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: #fff; color: var(--ink); padding: 10px 16px;
  border-radius: var(--r-sm); box-shadow: var(--sh-2);
}
.skip:focus { left: 12px; }

.page { max-width: 820px; margin: 0 auto; padding: 28px 22px 96px; }
.page-wide { max-width: 1040px; }
.page-auth { max-width: none; padding: 0; }
body:has(.auth-wrap) .foot { display: none; }

h1 { font-size: clamp(27px, 4.2vw, 40px); line-height: 1.1; font-weight: 800;
     letter-spacing: -.035em; margin: 0 0 10px; scroll-margin-top: 80px; }
h2 { font-size: clamp(19px, 2.4vw, 22px); line-height: 1.25; font-weight: 750;
     letter-spacing: -.02em; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
h2::before { content: ""; width: 8px; height: 8px; border-radius: 3px;
             background: var(--grad-vivid); flex: none; margin-top: 1px; }
h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 8px; }

p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.sec-title { margin: 34px 4px 14px; font-size: 13px; font-weight: 800; letter-spacing: .12em;
             text-transform: uppercase; color: var(--muted); }
.sec-title::before { display: none; }

a { color: var(--brand); text-decoration-color: rgba(44, 91, 255, .35); text-underline-offset: 3px; }
/* телефон и мессенджеры в тексте — цель нажатия не меньше 44 px */
a[href^="tel:"], a[href*="t.me/"] { display: inline-flex; align-items: center; min-height: 44px; }
a:hover { text-decoration-color: currentColor; }

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

/* ------------------------------------------------------------- навбар */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(236, 233, 244, .9);
}
.nav-inner { max-width: 1040px; margin: 0 auto; display: flex; align-items: center;
             gap: 22px; padding: 11px 22px; }
.brandmark { display: flex; align-items: center; gap: 11px; padding-block: 5px;
             text-decoration: none; color: var(--ink); }
.mark { width: 34px; height: 34px; border-radius: 11px; flex: none; display: block;
        box-shadow: 0 6px 16px -6px rgba(44, 91, 255, .6); }
.brandtext { display: flex; flex-direction: column; line-height: 1.15; }
.brandtext b { font-size: 16.5px; font-weight: 800; letter-spacing: -.03em; }
.brandtext small { font-size: 11.5px; color: var(--muted); letter-spacing: .01em; }

.nav-menu { display: flex; gap: 4px; margin-left: 8px; }
.nav-link { color: var(--muted); font-size: 14.5px; font-weight: 650; text-decoration: none;
            display: inline-flex; align-items: center; min-height: 44px;
            padding: 8px 12px; border-radius: 999px; transition: .18s var(--ease); }
.nav-link:hover { color: var(--ink); background: var(--brand-soft); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-user { display: flex; align-items: center; gap: 8px; color: var(--ink-2);
            font-size: 14px; font-weight: 650; }
.mini-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--grad);
               color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .02em;
               display: flex; align-items: center; justify-content: center; }

.nav-slim { position: static; background: transparent; border: none; backdrop-filter: none; }
.nav-slim .nav-inner { padding: 20px 22px 0; max-width: 820px; }

/* ------------------------------------------------------------- подвал */
.foot { border-top: 1px solid var(--line); margin-top: 40px; background: rgba(255, 255, 255, .55); }
.foot-inner { max-width: 1040px; margin: 0 auto; padding: 26px 22px; display: flex;
              flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: space-between;
              color: var(--muted); font-size: 13px; }
.foot-inner a { color: var(--muted); text-decoration: none;
                display: inline-flex; align-items: center; min-height: 40px; }
.foot-inner a:hover { color: var(--ink); }

/* ------------------------------------------------------------- панели */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 26px 28px;
  margin: 16px 0;
  box-shadow: var(--sh-1);
}
.panel > h2:last-child, .panel > p:last-child { margin-bottom: 0; }
details.panel { padding: 20px 24px; }
details.panel summary { cursor: pointer; font-weight: 700; list-style: none;
                        min-height: 44px; display: flex; align-items: center; }
details.panel summary::-webkit-details-marker { display: none; }
details.panel summary::after { content: "+"; float: right; font-size: 20px; line-height: 1; color: var(--muted); }
details.panel[open] summary::after { content: "–"; }
details.panel summary + * { margin-top: 16px; }

/* hero-карточка */
.hero-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  padding: 32px;
  color: #fff;
  background: var(--grad);
  box-shadow: var(--sh-3);
  margin: 6px 0 18px;
}
.hero-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(340px 220px at 88% 4%, rgba(255, 255, 255, .3), transparent 62%),
    radial-gradient(300px 200px at 4% 100%, rgba(255, 255, 255, .16), transparent 60%);
}
.hero-card > * { position: relative; z-index: 1; }
.hero-card h1 { color: #fff; }
.hero-card .muted, .hero-card p { color: rgba(255, 255, 255, .94); }
.hero-card .avatar { background: rgba(255, 255, 255, .2); color: #fff;
                     border: 1px solid rgba(255, 255, 255, .35); }
.hero-card .meter { background: rgba(255, 255, 255, .26); }
.hero-card .meter span { background: #fff; }

.hero { padding: 6px 4px 0; }

/* ------------------------------------------------------------- кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 14.5px; font-weight: 700; letter-spacing: -.01em;
  padding: 11px 18px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line-2); background: #fff; color: var(--ink);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s, border-color .16s;
}
.btn:hover { border-color: var(--line-2); background: #F6F5FB; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.99); }

.btn.primary { border-color: transparent; color: #fff; background: var(--grad);
               background-size: 160% 160%; background-position: 0 0;
               box-shadow: 0 8px 20px -10px rgba(44, 91, 255, .8); }
.btn.primary:hover { background-position: 60% 40%; box-shadow: var(--sh-2); }

.btn.xl { padding: 15px 26px; font-size: 15.5px; border-radius: var(--r-md); width: 100%; }
.btn.sm { padding: 8px 13px; font-size: 13.5px; min-height: 44px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: #F3F1F9; }
.btn.danger { color: var(--err-ink); }
.btn.danger:hover { background: var(--err-soft); }
.btn svg { width: 16px; height: 16px; }
.inline { display: inline; }

.alert { padding: 13px 16px; border-radius: var(--r-md); font-size: 14.5px; font-weight: 600;
         margin: 0 0 16px; border: 1px solid transparent; }
.alert.ok { background: var(--ok-soft); color: #06714E; border-color: #C4EFDD; }
.alert.err { background: var(--err-soft); color: #B42318; border-color: #F8D3D3; }

/* ------------------------------------------------------------- формы */
label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 6px; color: var(--ink-2); }
input[type="text"], input[type="password"], input:not([type]), textarea {
  display: block; width: 100%; padding: 12px 14px; font: inherit; font-size: 15px;
  color: var(--ink); background: #FBFAFE;
  border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  transition: border-color .16s, box-shadow .16s, background .16s;
}
input:hover, textarea:hover { border-color: #CFC8E2; }
input:focus, textarea:focus { outline: none; background: #fff; border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(44, 91, 255, .13); }
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row .full { grid-column: 1 / -1; }

.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px; }
.chk { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px;
       color: var(--ink-2); background: #FBFAFE; border: 1.5px solid var(--line);
       border-radius: var(--r-sm); padding: 10px 12px; cursor: pointer;
       transition: .16s var(--ease); }
.chk:hover { border-color: #C8C1DE; background: #fff; }
.chk input { appearance: none; width: 19px; height: 19px; flex: none; margin: 0;
             border: 1.5px solid var(--line-2); border-radius: 6px; background: #fff;
             display: grid; place-items: center; cursor: pointer; transition: .16s; }
.chk input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff;
                    border-bottom: 2px solid #fff; transform: rotate(-45deg) scale(0); transition: .16s; }
.chk input:checked { background: var(--brand); border-color: var(--brand); }
.chk input:checked::after { transform: rotate(-45deg) scale(1); }
.chk:has(input:checked) { border-color: rgba(44, 91, 255, .45); background: var(--brand-soft); color: var(--ink); }

/* ------------------------------------------------------------- анкета записи */
select {
  display: block; width: 100%; padding: 12px 14px; font: inherit; font-size: 15px;
  color: var(--ink); background: #FBFAFE;
  border: 1.5px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer;
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
select:hover { border-color: #CFC8E2; }
select:focus { outline: none; background-color: #fff; border-color: var(--brand);
               box-shadow: 0 0 0 4px rgba(44, 91, 255, .13); }

.book-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; align-items: start; }
.book-panel { margin-top: 0; }
.book-aside { display: flex; flex-direction: column; gap: 0; }
.book-aside .panel { margin-top: 16px; }
.book-note h3 { margin-bottom: 8px; }

.fset { border: none; padding: 0; margin: 0 0 18px; }
.fset legend { font-weight: 700; font-size: 13.5px; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.radio-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.radio-cards .chk { font-size: 14px; }
.chk input[type="radio"] { border-radius: 50%; display: grid; place-items: center; }
.chk input[type="radio"]::after { content: ""; width: 7px; height: 7px; border-radius: 50%;
  border: none; background: #fff; transform: scale(0); transition: .16s; }
.chk input[type="radio"]:checked::after { transform: scale(1); }
.chk.consent { align-items: flex-start; margin: 4px 0 14px; font-weight: 600; line-height: 1.5; }
.chk.consent input { margin-top: 2px; border-radius: 6px; }
.chk.consent input::after { width: 10px; height: 6px; border-left: 2px solid #fff;
  border-bottom: 2px solid #fff; background: none; border-radius: 0;
  transform: rotate(-45deg) scale(0); }
.chk.consent input:checked::after { transform: rotate(-45deg) scale(1); }

.req-star { color: var(--accent-ink); font-weight: 800; }
.req-note { margin: 0 0 12px; }
.field-err { color: var(--err-ink); font-size: 13.5px; font-weight: 650; margin: 7px 0 0; }
.field-err::before { content: "▲ "; font-size: 10px; }
.err-list { margin: 8px 0 0; padding-left: 20px; font-weight: 600; }
.err-list li { margin-bottom: 4px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------- заявки в кабинете */
.lead.is-new { border-color: rgba(44, 91, 255, .35); box-shadow: var(--sh-2); }
.lead-toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
                justify-content: space-between; margin: -6px 0 14px; }
.lead-toolbar p { margin: 0; max-width: 52ch; }
.consent a, .book-note a { display: inline-flex; align-items: center; min-height: 44px; }
.lead-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.chip.soft { background: var(--brand-soft); color: var(--brand-ink); }
.lead-facts { display: grid; gap: 6px; margin: 12px 0 0; }
.lead-facts > div { display: grid; grid-template-columns: 132px 1fr; gap: 10px; font-size: 14.5px; }
.lead-facts dt { color: var(--muted); font-size: 12.5px; font-weight: 700; padding-top: 2px; }
.lead-facts dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.lead-row { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: space-between;
            align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.lead-row:first-of-type { border-top: none; }
.lead-row b { display: block; }

/* ------------------------------------------------------------- сессии */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 4px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
        padding: 16px 18px; box-shadow: var(--sh-1); }
.stat b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.04em;
          background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 12.5px; color: var(--muted); font-weight: 650; }

.session-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.session-name { font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.session-foot { display: flex; justify-content: space-between; align-items: center;
                gap: 10px; flex-wrap: wrap; }
.session-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.account-row { display: flex; justify-content: space-between; align-items: center;
               gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.account-row p { margin: 4px 0 0; }
.chip { font-size: 12.5px; font-weight: 750; padding: 5px 12px; border-radius: 999px;
        white-space: nowrap; letter-spacing: -.01em; }
.chip.done { background: var(--ok-soft); color: #06714E; }
.chip.wip { background: var(--accent-soft); color: #C2410C; }

.meter { height: 8px; border-radius: 999px; background: #EEEBF6; overflow: hidden; margin: 14px 0; }
.meter span { display: block; height: 100%; border-radius: 999px; background: var(--grad);
              transition: width .45s var(--ease); }
.meter.big { height: 10px; }

/* ------------------------------------------------------------- клиент: старт */
.client-hero { display: flex; gap: 18px; align-items: center; margin-bottom: 4px; }
.avatar { width: 62px; height: 62px; border-radius: 50%; background: var(--grad); color: #fff;
          font-weight: 800; font-size: 19px; letter-spacing: .02em; display: flex;
          align-items: center; justify-content: center; flex: none;
          box-shadow: 0 10px 24px -12px rgba(44, 91, 255, .8); }

.blocks { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.block-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg);
  padding: 16px 18px; text-decoration: none; color: var(--ink);
  box-shadow: var(--sh-1);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
}
.block-card:hover { border-color: rgba(44, 91, 255, .5); transform: translateY(-2px); box-shadow: var(--sh-2); }
.block-card.is-done { background: #FCFEFD; box-shadow: none; }
.block-idx { width: 36px; height: 36px; border-radius: 12px; background: var(--brand-soft);
             color: var(--brand-ink); font-weight: 800; font-size: 15px;
             display: flex; align-items: center; justify-content: center; flex: none; }
.block-check { width: 36px; height: 36px; border-radius: 12px; background: var(--ok-soft);
               color: var(--ok); font-weight: 800; display: flex; align-items: center;
               justify-content: center; flex: none; }
.block-title { font-weight: 700; font-size: 15.5px; flex: 1; letter-spacing: -.01em; }
.block-go { color: var(--brand); font-size: 13.5px; font-weight: 750; white-space: nowrap; }
.is-done .block-title { color: var(--muted); }

.done-panel { text-align: center; padding: 46px 26px; }
.done-emoji { font-size: 46px; line-height: 1; }

/* ------------------------------------------------------------- клиент: тест */
.testpage { max-width: 720px; }
.backlink { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px;
            font-weight: 700; color: var(--muted); text-decoration: none; min-height: 44px;
            margin: 2px 0 14px; padding: 7px 12px; border-radius: 999px; transition: .16s; }
.backlink:hover { color: var(--ink); background: #EFEDF7; }

.test-bar { position: sticky; top: 0; z-index: 20; padding: 8px 0; background: var(--bg); }
body:has(.nav:not(.nav-slim)) .test-bar { top: 63px; }
.test-title { font-size: clamp(22px, 3.4vw, 28px); }
.test-name { color: var(--brand-ink); font-weight: 750; font-size: 15px; margin: 0 0 2px; }

.question {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 22px; margin: 12px 0; box-shadow: var(--sh-1);
  transition: border-color .2s, box-shadow .2s;
}
.question:focus-within { border-color: rgba(44, 91, 255, .45); box-shadow: var(--sh-2); }
.question.is-invalid { border-color: var(--err); box-shadow: 0 0 0 4px var(--err-soft); }
.question.is-invalid .qnum { background: var(--err-soft); color: var(--err-ink); }
.qerr { color: var(--err-ink); font-size: 13.5px; font-weight: 700; margin: 10px 0 0; }
.qerr::before { content: "! "; display: inline-block; width: 17px; height: 17px; line-height: 17px;
                text-align: center; border-radius: 50%; background: var(--err); color: #fff;
                font-size: 12px; margin-right: 2px; }
.qnum { display: inline-block; color: var(--muted); font-size: 11.5px; font-weight: 800;
        letter-spacing: .1em; background: #F4F2FB; padding: 3px 9px;
        border-radius: 999px; margin-bottom: 10px; }
.qtext { font-size: 16.5px; font-weight: 650; line-height: 1.5; margin: 0 0 16px; }

.scale { display: flex; gap: 8px; flex-wrap: wrap; }
.seg { min-width: 50px; padding: 12px 0; border: 1.5px solid var(--line-2); background: #fff;
       border-radius: var(--r-sm); font: inherit; font-weight: 750; color: var(--ink-2);
       cursor: pointer; transition: .14s var(--ease); }
.seg:hover { border-color: var(--brand); color: var(--brand-ink); transform: translateY(-1px); }
.seg.on { background: var(--grad); color: #fff; border-color: transparent;
          box-shadow: 0 8px 18px -10px rgba(44, 91, 255, .9); }
.scalelbl { display: flex; justify-content: space-between; gap: 16px; color: var(--muted);
            font-size: 12.5px; margin-top: 9px; }

.choices { display: flex; flex-direction: column; gap: 9px; }
.choice { text-align: left; padding: 13px 16px; border: 1.5px solid var(--line-2); background: #fff;
          border-radius: var(--r-md); font: inherit; font-size: 15px; color: var(--ink-2);
          cursor: pointer; transition: .15s var(--ease); }
.choice:hover { border-color: var(--brand); color: var(--ink); transform: translateX(2px); }
.choice.on { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); font-weight: 650; }
.choice .ord { display: inline-flex; width: 24px; height: 24px; border-radius: 8px;
               background: #EDEAF6; color: var(--muted); align-items: center; justify-content: center;
               margin-right: 10px; font-size: 12.5px; font-weight: 800; transition: .15s; }
.choice.on .ord { background: var(--grad); color: #fff; }

.hint { display: inline-block; font-size: 12.5px; font-weight: 750; color: var(--brand-ink);
        background: var(--brand-soft); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.kab { display: flex; flex-direction: column; gap: 4px; }
.kabq { color: var(--ink); margin: 16px 0 8px; font-size: 14px; font-weight: 750; }
.kabq:first-child { margin-top: 0; }

.submitrow { display: flex; gap: 10px; align-items: center; margin: 22px 0 8px; flex-wrap: wrap; }
.submitrow .primary { width: auto; }
.submitrow .btn:disabled { opacity: .7; cursor: progress; }
.save-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-height: 44px; }
.save-line p { margin: 0; }
#other-errors { color: var(--err-ink); font-weight: 650; font-size: 14px; }
#other-errors:not(:empty) { background: var(--err-soft); border-radius: var(--r-sm);
                            padding: 10px 14px; margin-bottom: 10px; }
/* выбранное состояние не только цветом — видимая рамка и жирный текст уже есть, добавим галочку */
.choice[aria-checked="true"]::after, .seg[aria-checked="true"]::after { content: "✓"; font-size: 12px;
  margin-left: 8px; font-weight: 800; }
.seg[aria-checked="true"]::after { margin-left: 4px; }

/* ------------------------------------------------------------- отчёт */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.print-head { background: var(--grad-soft); border-color: #E4DEFA; }
.meta { color: var(--ink-2); font-size: 14px; margin: 3px 0; }
.btitle { font-weight: 750; margin: 16px 0 6px; font-size: 15px; }
.picklist { margin: 0 0 8px; padding-left: 20px; color: var(--ink-2); }
.picklist li { margin-bottom: 4px; }
.picklist li::marker { color: var(--brand); }

.tbl { width: 100%; border-collapse: separate; border-spacing: 0; margin: 10px 0 4px; font-size: 14.5px; }
.tbl-wrap { overflow-x: auto; margin: 10px 0 4px; -webkit-overflow-scrolling: touch;
            overscroll-behavior-x: contain; }
.tbl-wrap:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.tbl-wrap > .tbl { margin: 0; }
.tbl th { text-align: left; color: var(--muted); font-weight: 800; font-size: 11.5px;
          text-transform: uppercase; letter-spacing: .08em; padding: 8px 10px; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: #FBFAFE; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
.tbl .q { color: var(--ink-2); width: 46%; }
canvas { max-width: 100%; height: auto; }
.ai-area { min-height: 220px; font-size: 15px; line-height: 1.65; }

/* ------------------------------------------------------------- вход */
.auth-wrap { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; }
.auth-aside { position: relative; overflow: hidden; background: var(--grad); color: #fff;
              padding: 48px 44px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-aside::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 300px at 90% 6%, rgba(255,255,255,.26), transparent 62%),
              radial-gradient(380px 300px at 0% 100%, rgba(255,255,255,.16), transparent 60%); }
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); font-weight: 800;
                 letter-spacing: -.035em; line-height: 1.12; display: block; }
.auth-aside h2::before { display: none; }
.auth-aside p { color: rgba(255, 255, 255, .85); }
.auth-aside .brandmark { color: #fff; }
.auth-aside .brandtext small { color: rgba(255, 255, 255, .75); }
.auth-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 10px; }
.auth-points li { display: flex; gap: 10px; font-size: 14.5px; font-weight: 650; color: rgba(255,255,255,.95); }
.auth-points li::before { content: "✓"; width: 21px; height: 21px; flex: none; border-radius: 50%;
                          background: rgba(255,255,255,.25); display: grid; place-items: center; font-size: 12px; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 44px 24px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card .panel { padding: 28px; box-shadow: var(--sh-2); }
.auth-logo { font-size: 24px; font-weight: 800; letter-spacing: -.03em; display: flex;
             align-items: center; gap: 10px; margin-bottom: 4px; }
.auth-sub { color: var(--muted); margin: 0 0 20px; font-size: 14.5px; }
.auth-note { color: var(--muted); font-size: 12.5px; text-align: center; margin-top: 16px; }
.auth-card .btn.xl { margin-top: 6px; }
.auth-card label + input { margin-bottom: 14px; }

/* ------------------------------------------------------------- о специалисте */
.about-hero { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; padding: 4px 2px; }
.about-photo { width: 168px; height: 168px; border-radius: 26px; overflow: hidden; flex: none;
               padding: 4px; background: var(--grad); box-shadow: var(--sh-3); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 22px; }
.about-lead { flex: 1; min-width: 240px; }
.about-role { color: var(--brand-ink); font-weight: 750; font-size: 14.5px; }

.tagrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { font-size: 13px; font-weight: 700; color: var(--ink-2); background: #fff;
       border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; box-shadow: var(--sh-1); }

.cities { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.city { font-size: 13.5px; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft);
        border-radius: 999px; padding: 6px 13px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 14px; }
.gallery img { width: 100%; border-radius: var(--r-md); border: 1px solid var(--line);
               display: block; box-shadow: var(--sh-1); transition: .2s var(--ease); }
.gallery img:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.gallery.certs { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.gallery.certs img { aspect-ratio: 3 / 4; object-fit: contain; background: #fff; padding: 10px; }

.cta { background: var(--grad); border: none; color: #fff; box-shadow: var(--sh-3); }
.cta h2 { color: #fff; }
.cta h2::before { background: rgba(255, 255, 255, .8); }
.cta p { color: rgba(255, 255, 255, .88); }
.cta .btn { background: #fff; color: var(--brand-ink); border-color: transparent; }
.cta .btn:hover { background: #fff; box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .5); }

/* ------------------------------------------------------------- адаптив */
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; min-height: 0; }
  .auth-aside { padding: 34px 26px; }
  .auth-aside h2 { font-size: 26px; }
  .auth-points { display: none; }
  .nav-menu { display: none; }
  .book-grid { grid-template-columns: 1fr; }
  .lead-facts > div { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .page { padding: 20px 15px 80px; }
  .form-row, .checks { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .radio-cards { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; }
  .lead-facts > div { grid-template-columns: 1fr; gap: 2px; }
  .stat { padding: 12px; }
  .stat b { font-size: 21px; }
  .hero-card { padding: 24px 20px; border-radius: var(--r-lg); }
  .panel { padding: 20px; border-radius: var(--r-lg); }
  .client-hero { flex-direction: column; text-align: center; align-items: center; }
  .client-hero p { text-align: center; }
  .nav-user { display: none; }
  .nav-inner { gap: 12px; padding: 10px 15px; }
  .brandtext small { display: none; }
  .seg { min-width: 44px; }
  .question { padding: 16px; }
  .test-bar { top: 58px; }
  .about-photo { width: 132px; height: 132px; border-radius: 22px; }
  .about-photo img { border-radius: 18px; }
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto; }
}

/* ------------------------------------------------------------- контакты / верхняя строка */
.topstrip { background: var(--ink); color: rgba(255, 255, 255, .78); font-size: 12.5px; font-weight: 600; }
.topstrip-inner { max-width: 1040px; margin: 0 auto; padding: 7px 22px; display: flex;
                  flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.topstrip a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.topstrip a:hover { border-bottom-color: #fff; }
.topstrip-contacts { display: flex; gap: 16px; flex-wrap: wrap; }
.topstrip-site { letter-spacing: .04em; text-transform: uppercase; font-size: 11.5px; opacity: .8; }

/* ------------------------------------------------------------- о специалисте */
.about-hero { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; padding: 4px 2px 0; }
.about-photo { width: 190px; height: 238px; border-radius: 26px; overflow: hidden; flex: none;
               padding: 5px; background: var(--grad); box-shadow: var(--sh-3); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 22px; }
.about-lead { flex: 1; min-width: 260px; }
.about-eyebrow { color: var(--brand-ink); font-weight: 800; font-size: 12px;
                 letter-spacing: .11em; text-transform: uppercase; margin: 0 0 8px; }
.about-role { color: var(--brand-ink); font-weight: 700; font-size: 15px; margin: 6px 0 0; }
.about-slogan { font-size: 17px; color: var(--ink-2); max-width: 46ch; margin: 12px 0 18px; }
.about-sign { margin-top: 4px; }
.about-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.about-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 22px 24px; }
.fact b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.04em;
          background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact span { font-size: 12.5px; color: var(--muted); font-weight: 600; line-height: 1.35; display: block; }

.req-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.req-card { margin: 0; }
.req-card h3 { font-size: 17px; margin-bottom: 12px; }
.req-list { margin: 0 0 14px; padding-left: 20px; color: var(--ink-2); font-size: 14.5px; }
.req-list li { margin-bottom: 6px; }
.req-list li::marker { color: var(--brand); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { position: relative; padding-left: 48px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0;
                    width: 33px; height: 33px; border-radius: 11px; background: var(--grad); color: #fff;
                    font-weight: 800; font-size: 14px; display: grid; place-items: center;
                    box-shadow: 0 8px 16px -10px rgba(44, 91, 255, .9); }
.steps b { display: block; font-size: 15px; }
.steps span { color: var(--muted); font-size: 14px; line-height: 1.55; }
.quote { margin: 20px 0 0; padding: 14px 18px; border-left: 3px solid var(--brand);
         background: var(--grad-soft); border-radius: 0 var(--r-md) var(--r-md) 0;
         font-size: 14.5px; color: var(--ink-2); }

/* ------------------------------------------------------------- галереи */
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ph { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); background: #F4F2FB; }
.ph img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; cursor: zoom-in; transition: .2s var(--ease); }
.ph img:hover { transform: scale(1.02); }

.rev-hint { margin: -6px 4px 12px; }
.rev-grid { column-count: 3; column-gap: 12px; }
.rev { margin: 0 0 12px; break-inside: avoid; background: #fff; border: 1px solid var(--line);
       border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); }
.rev img { width: 100%; height: auto; display: block; cursor: zoom-in; background: #F7F5FC; }
.rev figcaption { font-size: 12px; color: var(--muted); padding: 9px 12px; border-top: 1px solid var(--line); }

.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.doc { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
       overflow: hidden; box-shadow: var(--sh-1); padding: 6px; }
.doc img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; display: block; cursor: zoom-in; }

.lightbox { border: none; border-radius: var(--r-md); padding: 0; max-width: min(94vw, 900px);
            max-height: 92vh; background: #fff; box-shadow: 0 30px 80px rgba(20, 16, 43, .5); }
.lightbox::backdrop { background: rgba(20, 16, 43, .72); backdrop-filter: blur(3px); }
.lightbox img { display: block; max-width: min(94vw, 900px); max-height: 88vh; object-fit: contain; }
.lb-close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%;
            border: none; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 16px;
            cursor: pointer; box-shadow: var(--sh-2); }
.lb-close:hover { background: #fff; }

.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-actions .btn { width: auto; }
.ghost-cta { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .55); }
.ghost-cta:hover { background: rgba(255, 255, 255, .27); }
.cta-note { margin: 14px 0 0; color: rgba(255, 255, 255, .88); }
.cta-note a { color: #fff; }

/* ------------------------------------------------------------- адаптив (страница специалиста) */
@media (max-width: 860px) {
  .req-wrap { grid-template-columns: 1fr; }
  .rev-grid { column-count: 2; }
}
@media (max-width: 640px) {
  .about-hero { gap: 18px; }
  .about-facts { grid-template-columns: repeat(2, 1fr); padding: 18px; }
  .ph-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .topstrip-inner { font-size: 11.5px; padding: 6px 15px; }
  .about-photo { width: 128px; height: 160px; border-radius: 20px; }
  .about-photo img { border-radius: 16px; }
}

/* ------------------------------------------------------------- копирайт / подвал */
.foot-inner { align-items: flex-start; }
.foot-col { display: flex; flex-direction: column; gap: 4px; }
.foot-col b { color: var(--ink); font-size: 14px; }

/* ------------------------------------------------------------- утилиты */
.btn.lg { padding: 13px 22px; font-size: 15px; }
.req-card .btn { align-self: flex-start; }

/* ------------------------------------------------------------- публичные страницы услуг */
.page-service { max-width: 1040px; }
.breadcrumbs { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
                  list-style: none; padding: 0; margin: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.breadcrumbs li + li::before { content: "/"; color: var(--muted); }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.service-hero { padding: 34px 0 38px; border-bottom: 1px solid var(--line-2); margin-bottom: 28px; }
.service-hero h1 { max-width: 22ch; font-size: clamp(30px, 4.8vw, 48px); line-height: 1.12; }
.service-eyebrow { color: var(--brand-ink); font-size: 12px; font-weight: 800;
                   letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.service-lead { font-size: 18px; line-height: 1.65; max-width: 65ch; margin: 18px 0 24px; color: var(--ink-2); }
.service-hero > .small { margin: 12px 0 0; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; margin-bottom: 28px; align-items: start; }
.content-grid > *, .content-aside { min-width: 0; }
.content-grid .panel:first-child { margin-top: 0; }
.content-aside .panel { background: var(--brand-soft); box-shadow: none; }
.page-service .req-list { font-size: 15px; line-height: 1.7; }
.page-service .req-list li { margin-bottom: 12px; }
.page-service .steps + p { margin-top: 20px; }
.page-service details.panel summary { min-height: 44px; padding: 10px 26px 10px 0; position: relative; line-height: 1.5; }
.page-service details.panel summary::after { position: absolute; right: 0; top: 13px; }
.page-service details.panel p:last-child { margin-bottom: 0; }
.page-service .btn { min-height: 44px; white-space: normal; text-align: center; }
.related-links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.related-links a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-methods { font-style: normal; display: grid; gap: 12px; margin: 22px 0; }
.contact-methods a { display: flex; flex-direction: column; padding: 12px 16px;
                     border: 1px solid var(--line-2); border-radius: var(--r-md); text-decoration: none; }
.contact-methods span { font-size: 13px; color: var(--muted); }
.contact-methods a:hover { background: var(--brand-soft); }
.gallery-link { display: block; }
.review-excerpt { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.review-excerpt p { margin: 0; }
.gallery-link:focus-visible { outline-offset: -4px; outline-width: 3px; }
.lb-close { width: 44px; height: 44px; }
.nav-public .nav-menu { min-width: 0; }
.nav-public .nav-link { white-space: nowrap; }
.nav-link[aria-current="page"] { color: var(--brand-ink); background: var(--brand-soft); }
.nav-public .btn { min-height: 44px; }
.topstrip a { display: inline-flex; align-items: center; min-height: 44px; }
.topstrip-inner { align-items: center; padding-top: 0; padding-bottom: 0; }
.foot-col a { display: inline-flex; align-items: center; min-height: 44px; }
[id] { scroll-margin-top: 140px; }
@media (max-width: 1000px) {
  .nav-public .nav-inner { flex-wrap: wrap; gap: 4px 12px; }
  .nav-public .nav-menu { display: flex; order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; }
}
@media (max-width: 780px) {
  .content-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .service-hero { padding-top: 10px; }
}
@media (max-width: 640px) {
  .nav-public .nav-link { padding: 8px 10px; font-size: 12.5px; }
  /* таблицы отчёта: компактнее, чтобы влезали без прокрутки */
  .tbl { font-size: 13px; }
  .tbl th { padding: 6px 4px 8px; }
  .tbl td { padding: 8px 4px; }
  .tbl .q { width: auto; overflow-wrap: anywhere; }
  .tbl .num { font-size: 13px; }
  .tbl-wrap { margin-inline: -4px; padding-inline: 4px; }
  /* на телефоне меню — одна прокручиваемая строка, а не два ряда */
  .nav-public .nav-menu { gap: 2px; justify-content: flex-start; flex-wrap: nowrap;
                          overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav-public .nav-menu::-webkit-scrollbar { display: none; }
  /* в верхней полосе на телефоне остаётся только звонок — остальное в подвале и «Контактах» */
  .topstrip-contacts a:not([href^="tel:"]) { display: none; }
  .topstrip-contacts { width: auto; justify-content: flex-start; }
  .nav-public .nav-menu { gap: 0; justify-content: space-between; }
  .nav-public .brandtext b { font-size: 15px; }
  .nav-public .brandmark { gap: 8px; }
  .nav-public .btn.sm { padding: 8px 10px; }
  .topstrip-site { display: none; }
  .topstrip-contacts { gap: 10px; justify-content: space-between; width: 100%; }
  .service-lead { font-size: 16px; }
  .service-hero .btn { width: 100%; }
  .page-reviews .rev-grid { column-count: 1; }
  .page-service details.panel { padding: 12px 18px; }
}

/* ------------------------------------------------------------- стоимость программ */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 14px; margin: 16px 0 6px; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 10px;
              background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--r-lg);
              padding: 20px 20px 18px; box-shadow: var(--sh-1); }
.price-card.featured { border-color: transparent; box-shadow: var(--sh-3); }
.price-card.featured::before { content: ""; position: absolute; inset: 0; border-radius: inherit;
              padding: 2px; background: var(--grad);
              -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
              mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
              -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.price-card .pc-tag { align-self: flex-start; font-size: 11.5px; font-weight: 800;
              letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink);
              background: var(--brand-soft); border-radius: 999px; padding: 5px 11px; }
.price-card h3 { font-size: 19px; margin: 0; letter-spacing: -.02em; }
.price-card p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.pc-price { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.pc-meta { font-size: 12.5px; color: var(--muted); font-weight: 650; }
.pc-includes { list-style: none; padding: 0; margin: 4px 0 6px; display: grid; gap: 8px;
               font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.pc-includes li { position: relative; padding-left: 24px; }
.pc-includes li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 18px; height: 18px;
               border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink);
               font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.price-card .btn { margin-top: auto; min-height: 44px; width: 100%; justify-content: center; }
.pc-note { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-top: 2px; }
.price-foot { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------- текстовые отзывы */
.rev-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin: 14px 0 8px; }
.rev-text { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
            padding: 18px 20px; box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 12px; }
.rev-text blockquote { margin: 0; font-size: 15px; line-height: 1.62; color: var(--ink-2); }
.rev-text blockquote p { margin: 0; }
.rev-meta { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
            font-size: 12.5px; color: var(--muted); }
.rev-who { font-weight: 750; color: var(--brand-ink); background: var(--brand-soft);
           border-radius: 999px; padding: 4px 11px; }
.rev-shot { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; font-weight: 650; }

/* ------------------------------------------------------------- галерея с подписями */
.gal { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 14px; }
.gal figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
              overflow: hidden; box-shadow: var(--sh-1); }
.gal img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; transition: .2s var(--ease); }
.gal img:hover { transform: scale(1.02); }
.gal figcaption { padding: 9px 12px 11px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.gal figcaption b { display: block; color: var(--ink); font-size: 13px; font-weight: 700; }

/* ------------------------------------------------------------- печать */
@media print {
  body { background: #fff; font-size: 12.5pt; background-image: none; }
  .no-print, .nav, .foot, .toolbar, .skip { display: none !important; }
  .page { max-width: none; padding: 0; }
  .panel { border: none; box-shadow: none; padding: 0 0 14px; margin: 0; break-inside: avoid-page;
           border-radius: 0; }
  .print-head { border: none; border-bottom: 3px solid #2C5BFF; padding-bottom: 12px;
                background: none; }
  .print-head h1 { color: #000; }
  h2 { break-after: avoid; font-size: 14pt; }
  h2::before { display: none; }
  .tbl tr:hover td { background: none; }
  .tbl-wrap { overflow: visible; margin-inline: 0; padding-inline: 0; }
  .tbl { font-size: 10.5pt; }
  .ai-area { border: none; resize: none; height: auto; overflow: visible; background: none; }
}
