:root { --line:var(--border); }
body { font-size:16px; }
header { justify-content:space-between; }
main { max-width:1120px; padding:32px 24px; min-height:65vh; }
header .brand { min-height:44px; display:flex; flex-wrap:wrap; align-content:center; gap:8px 16px; align-items:baseline; font-size:24px; font-weight:700; color:var(--brand-fg); text-decoration:none; }
.brand span { font-size:13px; font-weight:400; color:var(--brand-muted); }
.brand-logo { display:block; width:145px; height:30px; flex-shrink:0; fill:currentColor; }
footer .brand { display:inline-flex; min-height:44px; align-items:center; vertical-align:middle; color:#1E3D30; }
footer .brand-logo { width:116px; height:24px; }
.cr-print-mark .brand-logo { display:inline-block; width:116px; height:24px; vertical-align:middle; }
.account-links { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:16px; margin-left:auto; }
.account-links a { color:var(--brand-fg); }
.account-links form { margin:0; }
h1 { font-size:30px; line-height:1.2; margin:12px 0 20px; overflow-wrap:anywhere; }
h2 { color:var(--fg); font-size:22px; margin-top:28px; }
h3 { color:var(--fg); font-size:17px; }
p { max-width:70ch; }
.lead { font-size:20px; line-height:1.6; color:var(--muted); }
.hero { display:grid; grid-template-columns:1.25fr 1fr; gap:64px; align-items:center; padding:36px 0 56px; }
.hero h1 { font-size:44px; line-height:1.16; letter-spacing:-.025em; }
.sample { padding:28px; background:var(--surface); border:1px solid var(--border); border-radius:12px; }
.sample h2 { margin-top:0; }
dl div { padding:12px 0; border-top:1px solid var(--border); }
dt { color:var(--muted); font-size:13px; }
dd { margin:4px 0 0; }
.section { margin:48px 0; padding-top:24px; border-top:1px solid var(--border); }
.split { display:grid; grid-template-columns:1fr 1fr; gap:48px; }
.steps { list-style:decimal; display:grid; grid-template-columns:1fr 1fr; gap:24px 48px; padding-left:24px; }
.steps span { display:block; color:var(--muted); margin-top:6px; }
.button,button { display:inline-flex; justify-content:center; align-items:center; min-height:44px; padding:10px 16px; border-radius:8px; border:1px solid var(--border); background:var(--surface); color:var(--fg); font:inherit; font-weight:600; text-decoration:none; cursor:pointer; line-height:1.4; }
.button:hover,button:hover { border-color:var(--accent); }
.primary { background:var(--accent); border-color:var(--accent); color:var(--accent-fg); }
.quiet { background:transparent; }
header .quiet { color:var(--brand-fg); border-color:var(--brand-muted); }
button:disabled { opacity:.6; cursor:default; }
.field { margin:20px 0; max-width:660px; }
label { display:block; font-weight:500; margin-bottom:8px; }
input:not([type=checkbox]):not([type=hidden]),select,textarea { width:100%; font:inherit; padding:12px; min-height:46px; color:var(--fg); background:var(--surface); border:1px solid var(--muted); border-radius:8px; }
textarea { resize:vertical; }
input::placeholder,textarea::placeholder { color:var(--muted); opacity:1; }
.check { display:flex; align-items:flex-start; gap:12px; margin:24px 0; max-width:70ch; font-weight:400; }
.check input { flex-shrink:0; width:22px; height:22px; margin-top:2px; }
form { margin:20px 0 28px; }
.notice,.error { padding:20px 24px; margin:24px 0; border-radius:12px; background:var(--surface-2); border:1px solid var(--border); }
.notice h2,.error h2 { margin-top:0; }
.error { background:var(--danger-soft); color:var(--danger-strong); }
.error h2 { color:inherit; }
.muted { font-size:14px; }
.empty { padding:28px 0; background:transparent; border:0; }
.empty h2 { margin-top:0; }
.project-nav { display:flex; gap:4px; flex-wrap:wrap; padding:12px max(24px,calc((100vw - 1072px)/2)); background:var(--surface); border-bottom:1px solid var(--border); }
.project-nav a { color:var(--fg); text-decoration:none; padding:12px 14px; border-radius:8px; font-size:15px; }
.project-nav a[aria-current] { background:var(--accent-soft); color:var(--accent-strong); font-weight:600; }
.project-context { max-width:1120px; padding:18px 24px 0; margin:auto; display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; overflow-wrap:anywhere; font-size:14px; }
.project-context span { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.project-list,.work-list { list-style:none; margin:20px 0; padding:0; }
.project-list li,.work-list li,.list-row { border-bottom:1px solid var(--border); padding:20px 0; }
.project-list li,.list-row { display:flex; justify-content:space-between; gap:20px; align-items:baseline; flex-wrap:wrap; }
.project-list p,.work-list p { margin:8px 0; }
.project-list a { font-size:20px; }
.work-heading,.section-heading,.page-heading { display:flex; justify-content:space-between; align-items:baseline; gap:16px; flex-wrap:wrap; }
.work-heading h3 { margin:0; }
.status { display:inline-block; padding:5px 10px; background:var(--surface-2); color:var(--fg); border-radius:6px; font-size:13px; }
.price { font-size:34px; font-weight:700; font-variant-numeric:tabular-nums; }
.price span { font-size:16px; font-weight:400; color:var(--muted); }
.card { box-shadow:none; }
.card h3 { margin-top:0; }
.value { font-size:28px; font-weight:650; margin:8px 0; }
.card .muted { font-size:13px; }
.article { max-width:72ch; font-size:17px; line-height:1.75; margin:32px 0; overflow-wrap:anywhere; }
.article > p { text-indent:1.5em; }
.article h1 { font-size:28px; }
.article figure { margin:24px 0; }
.article img { display:block; max-width:100%; height:auto; border-radius:8px; }
.connection { margin:32px 0; border-bottom:1px solid var(--border); }
details { padding:16px 0; border-bottom:1px solid var(--border); }
summary { cursor:pointer; min-height:44px; padding:8px 0; font-weight:500; }
.month-nav { display:flex; flex-wrap:wrap; gap:16px; }
.month-nav [aria-current] { font-weight:700; }
.table-wrap { overflow:auto; max-width:100%; }
th,td { text-align:left; padding:12px; }
/* Полоса футора — по ширине контента main (1120 − 2×24), а не по его внешней рамке. Ссылки справа на базовой линии логотипа. */
footer { --foot-gutter:24px; margin:24px max(var(--foot-gutter), calc((100% - 1072px) / 2)); padding:24px 0; color:var(--muted); font-size:13px; border-top:1px solid var(--border); display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:6px 24px; }
.foot-links { display:flex; flex-wrap:wrap; align-items:center; gap:0 20px; }
.foot-links a { text-decoration:none; }
.foot-links a:hover { opacity:.8; }
.foot-links a:focus-visible { outline:3px solid currentColor; outline-offset:3px; }
.environment { padding:8px 24px; background:var(--warn-soft); color:var(--warn-strong); font-size:13px; }
.skip { position:absolute; left:-9999px; top:8px; z-index:100; padding:12px; background:var(--surface); }
.skip:focus { left:8px; }
@media(max-width:720px) { main { padding:24px 16px; } footer { --foot-gutter:16px; } header { padding:12px 16px; } .brand span { display:none; } h1 { font-size:26px; } .hero { grid-template-columns:1fr; gap:28px; padding:8px 0 24px; } .hero h1 { font-size:34px; } .hero .button { margin-bottom:8px; } .split,.steps { grid-template-columns:1fr; gap:20px; } .project-nav { padding:8px; } .project-nav a { padding:10px; font-size:14px; } .project-context { padding:16px; } .section { margin:32px 0; } .notice,.error { padding:16px; } .cards { grid-template-columns:1fr; } .price { font-size:30px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none!important; animation:none!important; scroll-behavior:auto!important; } }
@media print { header,nav,.environment,footer,.button,form { display:none!important; } body { color:#111; background:#fff; } main { padding:0; } .invoice { font-size:12pt; } }

.notice li a { display:inline-block; min-height:44px; padding:4px 0; }
.project-nav a { min-height:44px; display:inline-flex; align-items:center; }
main { overflow-wrap:anywhere; }

.check-cta { text-align:left; }
.check-inline-form { display:flex; flex-wrap:wrap; gap:12px; margin:20px 0 0; max-width:640px; }
.check-inline-form input { flex:1; min-width:220px; }
.check-stages { list-style:none; padding:0; margin:24px 0; display:flex; flex-wrap:wrap; gap:8px; }
.check-stages li { min-height:44px; display:inline-flex; align-items:center; padding:0 14px; border-radius:8px; background:var(--surface-2); color:var(--muted); font-size:14px; }
.check-stages li.done { background:var(--accent-soft); color:var(--accent-strong); }
.check-stages li.current { background:var(--accent); color:var(--accent-fg); font-weight:600; }
.check-status-text { font-weight:600; }
.score-badge { display:flex; align-items:baseline; gap:16px; margin:24px 0; padding:24px; background:var(--surface); border:1px solid var(--border); border-radius:12px; }
.score-number { font-size:64px; font-weight:800; line-height:1; font-variant-numeric:tabular-nums; color:var(--accent-strong); }
.score-scale { font-size:18px; font-weight:600; color:var(--muted); }
.score-badge-incomplete { background:var(--warn-soft); color:var(--warn-strong); }
.score-badge-incomplete p { margin:0; max-width:60ch; }
.direction-cards { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin:20px 0; }
.direction-card .value { font-variant-numeric:tabular-nums; }
.finding { padding:20px 0; border-bottom:1px solid var(--border); }
.finding h3 { margin-top:0; }
.metrics { list-style:none; padding:0; margin:12px 0 0; display:flex; flex-wrap:wrap; gap:6px 16px; font-size:13px; color:var(--muted); }
.copy-link { display:flex; gap:8px; flex-wrap:wrap; margin:16px 0; max-width:520px; }
.copy-link input { flex:1; min-width:200px; }
.check-actions { margin-top:32px; padding-top:24px; border-top:1px solid var(--border); }
@media(max-width:720px) { .direction-cards { grid-template-columns:repeat(2,1fr); } }
@media(max-width:390px) { .direction-cards { grid-template-columns:1fr; } .score-badge { flex-direction:column; gap:4px; } .score-number { font-size:48px; } }
@media print {
  .check-stages,.smart-captcha,#captcha-container,.copy-link,.check-actions form,#check-progress { display:none!important; }
  details { border:0; padding:4px 0; }
  details > * { display:block!important; }
  .finding,.score-badge,.direction-card { break-inside:avoid; }
}
.check-status { white-space:nowrap; }
.check-pages td:first-child { overflow-wrap:break-word; word-break:normal; }
@media(max-width:720px) { .check-pages table,.check-pages tbody,.check-pages tr,.check-pages td { display:block; width:100%; } .check-pages thead { display:none; } .check-pages tr { padding:12px 0; border-bottom:1px solid var(--border); } .check-pages td { padding:2px 0; border:0; } .check-pages td:first-child { font-weight:600; } .check-pages td.check-status { color:var(--muted); font-size:13px; } }

/* Подпись разработчика: закреплена справа снизу на всех страницах, ведёт на aimatik.ru.
   Низ страницы получает запас, чтобы плашка не закрывала последние строки. */
.by-aimatik { position:fixed; right:16px; bottom:16px; z-index:50; padding:6px 12px; border:1px solid var(--border,#d8d6c8); border-radius:999px; background:rgba(255,255,255,.94); color:#1E3D30; font:600 12px/1.2 system-ui,sans-serif; text-decoration:none; box-shadow:0 2px 8px rgba(30,61,48,.12); }
.by-aimatik:hover { background:#E2EBE3; }
body { padding-bottom:56px; }
.team-panel .team-workspace { min-height:calc(100dvh - 56px); }
@media print { .by-aimatik { display:none; } }

/* Шапка крупнее; «by aimatik.ru» у правого нижнего угла логотипа */
.brand-lockup { position:relative; display:inline-flex; flex-direction:column; align-items:flex-end; }
.by-logo { margin-top:-2px; font:600 11px/1 system-ui,sans-serif; letter-spacing:.01em; color:#526050; text-decoration:none; }
.by-logo:hover { color:#1E3D30; text-decoration:underline; text-underline-offset:2px; }
header .brand-lockup .brand-logo { width:190px; height:39px; }
@media(max-width:720px) { header .brand-lockup .brand-logo { width:150px; height:31px; } }

/* ── Лёгкое движение: кнопки и ссылки. Только transform/shadow; reduced-motion гасит всё правилом выше. ── */
.button,button,.btn { transition:transform .18s cubic-bezier(.2,.7,.2,1), box-shadow .18s, background-color .18s, border-color .18s, color .18s; }
.button:not(:disabled):hover,button:not(:disabled):hover,.btn:hover { transform:translateY(-2px); box-shadow:0 6px 16px rgba(30,61,48,.16); }
.button:not(:disabled):active,button:not(:disabled):active,.btn:active { transform:translateY(0) scale(.97); box-shadow:none; transition-duration:.06s; }
.button:focus-visible,button:focus-visible { transform:translateY(-1px); }
.brand-lockup,.by-aimatik { transition:transform .2s, opacity .2s; }
.by-aimatik:hover { transform:translateY(-2px); }
