/* Ретушь онлайн. Светлая тема по умолчанию; тёмная — по кнопке в шапке или по настройке системы. */

/* Шрифт Onest лежит на нашем сервере (static/fonts, лицензия OFL). Браузер берёт только нужные части. */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/onest-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/onest-symbols.woff2") format("woff2");
  unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AD, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F7FF, U+1F800-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FA89, U+1FA8F-1FAC6, U+1FACE-1FADC, U+1FADF-1FAE9, U+1FAF0-1FAF8, U+1FB00-1FBFF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/onest-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #fff; --panel: #f5f5f3; --frame: #ececE8; --ink: #0e0e10; --muted: #5c5c63;
  --line: #e3e3df; --field: #8a8a91; --accent: #1f3bff; --on-accent: #fff; --bad: #b3261e;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0b0d; --panel: #141417; --frame: #1c1c20; --ink: #f4f4f2; --muted: #a3a3aa;
  --line: #2b2b30; --field: #6e6e76; --accent: #7c93ff; --on-accent: #0b0b0d; --bad: #ffb4ab;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0d; --panel: #141417; --frame: #1c1c20; --ink: #f4f4f2; --muted: #a3a3aa;
    --line: #2b2b30; --field: #6e6e76; --accent: #7c93ff; --on-accent: #0b0b0d; --bad: #ffb4ab;
    color-scheme: dark;
  }
}

/* Основа */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd, ul, ol, fieldset { margin: 0; }
ul, ol, fieldset { padding: 0; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }
[hidden] { display: none !important; }
.vh, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); }

/* Текст */
h1 { font-size: clamp(38px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
h1.inner { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.06; letter-spacing: -.03em; }
.h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -.025em; font-weight: 600; text-wrap: balance; }
.h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.01em; font-weight: 600; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 600; }
.lead { font-size: 19px; color: var(--muted); max-width: 56ch; }
.muted { color: var(--muted); }
.muted strong { color: var(--ink); font-weight: 500; }
.small { font-size: 15px; }
.eyebrow { font: 500 12px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.eyebrow.ok { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.formats { font: 400 12px/1.6 var(--mono); letter-spacing: .06em; color: var(--muted); overflow-wrap: anywhere; }
.notice { padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-size: 15px; }
.bad { color: var(--bad); }
.text a, .links a, .link { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }

/* Каркас */
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 32px; }
.section { padding-block: 96px; }
.alt { background: var(--panel); }
.lined { border-top: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: var(--gap, 24px); }
.head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 48px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border: 1px solid var(--ink); border-radius: 12px; background: var(--ink); color: var(--bg);
  font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { opacity: .88; }
.btn.big { min-height: 52px; padding: 0 26px; font-size: 17px; }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.as-link { min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font-size: 15px; font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Шапка */
.top { border-bottom: 1px solid var(--line); }
.top-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 32px; padding-block: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 18px; font-weight: 600;
  letter-spacing: -.01em; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; flex: 1 1 auto; gap: 0 28px; font-size: 15px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { display: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line);
  border-radius: 12px; background: transparent; cursor: pointer; }
.js .icon-btn { display: inline-grid; }
.icon-sun, [data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-moon { display: none; }
  :root:not([data-theme="light"]) .icon-sun { display: block; }
}
.plain { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-size: 15px; font-weight: 500; text-decoration: none; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line);
  border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }

/* Первый экран */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 72px 88px; }
.hero > * { flex: 1 1 440px; min-width: 0; }
.hero.solo > * { flex: 0 1 760px; }
.hero-text { display: flex; flex-direction: column; gap: 24px; }

/* Загрузка фото */
.drop { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding: 24px;
  border: 1.5px dashed var(--field); border-radius: 16px; background: var(--panel); }
.drop.over { border-style: solid; border-color: var(--accent); }
.file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.file:focus-visible + .btn { outline: 2px solid var(--accent); outline-offset: 2px; }
.drop-hint { flex: 1 1 220px; font-size: 15px; color: var(--muted); }
.drop-hint a { color: var(--ink); font-weight: 600; }
.drop progress { flex: 1 1 100%; width: 100%; height: 6px; appearance: none; border: 0; border-radius: 3px;
  background: var(--line); overflow: hidden; }
.drop progress::-webkit-progress-bar { background: var(--line); }
.drop progress::-webkit-progress-value { background: var(--accent); }
.drop progress::-moz-progress-bar { background: var(--accent); }
.js .nojs { display: none; }

/* Шторка «до/после» */
.cmp { --pos: 50%; position: relative; width: 100%; margin-inline: auto; overflow: hidden; border: 1px solid var(--line);
  border-radius: 16px; background: var(--frame); }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .28); pointer-events: none; }
.cmp-line::after { content: "\2039\00a0\203A"; position: absolute; top: 50%; left: 50%; display: grid; place-items: center;
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; color: #0e0e10;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .28); font: 600 18px/1 var(--sans); }
.cmp input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.cmp:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tag { position: absolute; top: 16px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); font-size: 13px; font-weight: 500; pointer-events: none; }
.tag-l { left: 16px; }
.tag-r { right: 16px; }
figure .formats { margin-top: 12px; }

/* Блоки главной */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px 48px; padding-block: 32px; }
.strip strong { display: block; font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px 48px; list-style: none; }
.step { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--ink); }
.step-n { font: 500 13px/1.5 var(--mono); color: var(--accent); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--bg); }
.card p { font-size: 16px; color: var(--muted); }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.examples figcaption { margin-top: 12px; font-size: 15px; font-weight: 500; }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.price { display: flex; flex-direction: column; gap: 20px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; }
.price.best { padding: 27px; border: 2px solid var(--accent); }
.price.best .eyebrow { color: var(--accent); }
.price-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.badge { padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 600; }
.price-sum { font-size: 40px; line-height: 1; letter-spacing: -.03em; font-weight: 600; }
.price ul { display: flex; flex: 1 1 auto; flex-direction: column; gap: 6px; list-style: none; font-size: 16px; color: var(--muted); }
.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split > .narrow { flex: 1 1 320px; }
.split > .wide { flex: 2 1 520px; }
.rows > * { display: flex; flex-direction: column; gap: 6px; padding-block: 22px; border-top: 1px solid var(--line); }
.rows > :last-child { border-bottom: 1px solid var(--line); }
.rows strong { font-weight: 600; }
.text { display: flex; flex-direction: column; gap: 16px; max-width: 68ch; }
.text ul, .text ol { display: flex; flex-direction: column; gap: 8px; padding-left: 1.2em; color: var(--muted); }
.text p { color: var(--muted); }
.blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px 64px; }

/* Подвал */
.foot { border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; padding-block: 40px 56px; font-size: 15px; }
.foot-nav { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 28px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.foot-nav a:hover { color: var(--ink); }

/* Результат */
.result { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px; padding-block: 40px 72px; }
.result-view { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.result-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.between { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
.wait { flex: 1 1 100%; display: flex; flex-direction: column; align-items: center; gap: 20px; padding-block: 96px; text-align: center; }
.spin { width: 44px; height: 44px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%;
  animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.kv > :last-child { border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); }
.kv dd { text-align: right; }

/* Вход */
.auth { display: flex; flex-wrap: wrap; align-items: stretch; gap: 56px; padding-block: 56px 88px; }
.auth > * { flex: 1 1 380px; min-width: 0; }
.auth-form { display: flex; flex-direction: column; justify-content: center; gap: 24px; max-width: 440px; }
.auth-side { display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: clamp(28px, 5vw, 56px);
  border-radius: 24px; background: var(--panel); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 500; }
.input { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--field); border-radius: 12px;
  background: var(--bg); color: var(--ink); font-size: 17px; }
.input.code { height: 64px; font: 500 28px/1 var(--mono); letter-spacing: .3em; text-align: center; }
.checks { display: flex; flex-direction: column; gap: 20px; list-style: none; }
.checks li { display: flex; align-items: flex-start; gap: 14px; }
.checks svg { flex: none; margin-top: 3px; color: var(--accent); }
.checks strong { display: block; font-weight: 600; }
.checks span { font-size: 16px; color: var(--muted); }

/* Оплата */
.page { padding-block: 48px 72px; }
.pay { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px; }
.pay-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.pay-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; padding: 28px;
  border-radius: 16px; background: var(--panel); }
.picks { display: flex; flex-direction: column; gap: 14px; }
.picks legend { margin-bottom: 14px; padding: 0; font-size: 20px; font-weight: 600; }
.picks.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.picks.two legend { grid-column: 1 / -1; }
.pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; min-height: 76px; padding: 14px 22px;
  border: 2px solid var(--field); border-radius: 16px; cursor: pointer; }
.pick:has(input:checked) { border-color: var(--accent); }
.pick:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pick input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.pick-text { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; }
.pick-text strong { font-size: 18px; font-weight: 600; }
.pick-price { font-size: 24px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-weight: 600; }
.total strong { font-size: 28px; letter-spacing: -.02em; }
.secure { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--muted); }
.secure svg { flex: none; margin-top: 2px; }

/* Кабинет */
.cab { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 48px; padding-block: 48px 72px; }
.cab-menu { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cab-menu a, .cab-menu button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 14px; border: 0;
  border-radius: 10px; background: none; color: var(--muted); font-size: 16px; text-align: left; text-decoration: none; cursor: pointer; }
.cab-menu a:hover, .cab-menu button:hover { color: var(--ink); }
.cab-menu a[aria-current] { background: var(--panel); color: var(--ink); font-weight: 600; }
.cab-who { display: flex; flex-direction: column; gap: 2px; padding: 0 14px 16px; font-size: 15px; overflow-wrap: anywhere; }
.cab-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.cab-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; }
.tile-num { font-size: 32px; line-height: 1.1; letter-spacing: -.025em; font-weight: 600; }
.tile p { flex: 1 1 auto; font-size: 15px; color: var(--muted); }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px 16px; }
.shot { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.shot-img { display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line);
  border-radius: 12px; background: var(--frame); color: var(--muted); font-size: 14px; text-align: center; text-decoration: none; }
.shot-img img { width: 100%; height: 100%; object-fit: cover; }
.shot-name { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.shot-meta { font-size: 13px; color: var(--muted); }
.shot-actions { display: flex; gap: 8px; }
.shot-actions .btn { flex: 1 1 0; min-height: 44px; padding: 0 8px; border-radius: 10px; font-size: 14px; }
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; text-align: left; }
th { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 500; }
td { padding: 16px; }
tr + tr td { border-top: 1px solid var(--line); }

/* Админка */
.adm .cab-main { gap: 40px; }
.tile-num.bad { color: var(--bad); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.filters a:hover { border-color: var(--field); }
.filters a[aria-current] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.search { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.search .input { flex: 1 1 280px; width: auto; }
.input.small { height: 44px; font-size: 16px; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.inline-form .field { flex: 0 1 160px; }
.inline-form .field.grow { flex: 1 1 260px; }
.pill { display: inline-block; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; white-space: nowrap; }
.pill.ok { border-color: var(--accent); color: var(--accent); }
.pill.bad { border-color: var(--bad); color: var(--bad); }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.tight td { padding-block: 12px; }
td.cut { max-width: 260px; overflow-wrap: anywhere; }
td.who { min-width: 170px; max-width: 240px; overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.events { display: flex; flex-direction: column; list-style: none; }
.events li { display: flex; flex-wrap: wrap; gap: 4px 20px; padding-block: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.events li:last-child { border-bottom: 1px solid var(--line); }
.events time { flex: 0 0 120px; color: var(--muted); }
.events span { flex: 1 1 320px; min-width: 0; overflow-wrap: anywhere; }

/* Короткие служебные страницы */
.msg { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 640px; padding-block: 96px; }
.cmd { padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  font: 500 16px/1.5 var(--mono); overflow-wrap: anywhere; user-select: all; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .section { padding-block: 64px; }
  .head { margin-bottom: 32px; }
  .hero { gap: 40px; padding-block: 40px 56px; }
  .top-row { gap: 0 20px; }
  .nav { order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; gap: 0 16px; white-space: nowrap; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .top-actions { margin-left: auto; gap: 8px; }
  .hide-s { display: none; }
  .wait, .msg { padding-block: 64px; }
  .price-sum { font-size: 36px; }
  /* меню кабинета и админки на телефоне — строкой, чтобы не отодвигать содержимое вниз */
  .cab-menu { flex-direction: row; flex-wrap: wrap; }
  .cab-menu a, .cab-menu button { width: auto; }
  .cab-who { flex: 1 1 100%; padding-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spin { animation-duration: 3s; }
}
