/* GarageDoc — static landing. No external assets, system fonts only. */

:root {
  --bg: #0e1116;
  --bg-2: #131922;
  --card: #161b23;
  --card-2: #1c232d;
  --line: #2a3441;
  --line-soft: #222b36;
  --text: #e8edf4;
  --muted: #9aa7b8;
  --accent: #ff7a1a;
  --accent-2: #ffa05c;
  --accent-ink: #1a1207;
  --ok: #3ecf8e;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 20px 50px -24px rgba(0, 0, 0, .7);
  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1150px 560px at 80% -12%, rgba(255, 122, 26, .17), transparent 64%),
    radial-gradient(900px 520px at 10% 6%, rgba(255, 122, 26, .09), transparent 62%),
    radial-gradient(1000px 620px at 52% 112%, rgba(255, 122, 26, .08), transparent 66%),
    radial-gradient(760px 420px at 6% 2%, rgba(80, 140, 255, .045), transparent 60%);
  z-index: -1;
}

img, svg { max-width: 100%; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.12rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 max(22px, env(safe-area-inset-right, 0px)) 0 max(22px, env(safe-area-inset-left, 0px)); }
.container-narrow { max-width: 860px; }

.section { position: relative; padding: clamp(56px, 8vw, 104px) 0; }
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--section-glow, none);
}
.section > .container { position: relative; z-index: 1; }
.section-tint {
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0));
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

/* Оранжевая подсветка секций: где-то мягче, где-то ярче. */
#hero {
  --section-glow:
    radial-gradient(820px 500px at 84% 14%, rgba(255, 122, 26, .20), transparent 66%),
    radial-gradient(560px 360px at 10% 80%, rgba(255, 122, 26, .08), transparent 70%);
}
#pain {
  --section-glow: radial-gradient(760px 420px at 4% 46%, rgba(255, 122, 26, .10), transparent 68%);
}
#features {
  --section-glow: radial-gradient(940px 540px at 50% 58%, rgba(255, 122, 26, .12), transparent 68%);
}
#how {
  --section-glow: radial-gradient(780px 460px at 92% 48%, rgba(255, 122, 26, .14), transparent 68%);
}
#demo {
  --section-glow: radial-gradient(820px 520px at 78% 18%, rgba(255, 122, 26, .16), transparent 66%);
}
#pricing {
  --section-glow: radial-gradient(720px 440px at 14% 32%, rgba(255, 122, 26, .11), transparent 68%);
}
#compare {
  --section-glow: radial-gradient(780px 440px at 86% 66%, rgba(255, 122, 26, .10), transparent 68%);
}
#trial {
  --section-glow:
    radial-gradient(860px 540px at 50% 112%, rgba(255, 122, 26, .20), transparent 66%),
    radial-gradient(560px 340px at 94% 0%, rgba(255, 122, 26, .10), transparent 72%);
}
#auth-view {
  --section-glow: radial-gradient(860px 560px at 26% 34%, rgba(255, 122, 26, .17), transparent 66%);
}
#cabinet-view {
  --section-glow: radial-gradient(940px 560px at 78% 6%, rgba(255, 122, 26, .12), transparent 68%);
}

.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-sub { color: var(--muted); font-size: 1.06rem; margin: 0; }
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--accent-2);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.muted { color: var(--muted); }
.small { font-size: .9rem; }
.hl { color: var(--accent); }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 17, 22, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(14, 17, 22, .92);
  box-shadow: 0 14px 34px -24px rgba(0, 0, 0, .95);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 800; font-size: 1.18rem; letter-spacing: -.02em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(145deg, var(--accent), #e96307);
  color: var(--accent-ink);
  box-shadow: 0 6px 16px -8px rgba(255, 122, 26, .9);
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); font-size: .96rem; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav .nav-cta { color: var(--accent-ink); }

@media (min-width: 881px) {
  .nav a:not(.nav-cta):not(.nav-login) { position: relative; }
  .nav a:not(.nav-cta):not(.nav-login)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
    border-radius: 2px; background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform .24s ease;
  }
  .nav a:not(.nav-cta):not(.nav-login):hover::after,
  .nav a:not(.nav-cta):not(.nav-login):focus-visible::after { transform: scaleX(1); }
}
.nav .nav-login { color: var(--text); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; margin: 4px auto;
  background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons / chips ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px;
  padding: 12px 20px;
  font: inherit; font-weight: 700; font-size: .98rem; line-height: 1.2;
  cursor: pointer; text-align: center;
  transition: transform .12s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-2); outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent), #f26a09);
  color: var(--accent-ink);
  box-shadow: 0 10px 26px -12px rgba(255, 122, 26, .85);
}
.btn-primary:hover { background: linear-gradient(180deg, #ff8833, #ff7a1a); }

.btn-ghost { background: rgba(255, 255, 255, .03); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: #3a4757; background: rgba(255, 255, 255, .06); }

.btn-quiet { background: transparent; color: var(--muted); border-color: transparent; }
.btn-quiet:hover { color: var(--text); background: rgba(255, 255, 255, .04); }

.btn-sm { padding: 9px 14px; font-size: .9rem; border-radius: 10px; }
.btn-lg { padding: 15px 26px; font-size: 1.04rem; }
.btn-block { width: 100%; }

.btn, .nav-toggle, .auth-tab, .row-remove, .demo-table input { touch-action: manipulation; }

.chips, .chip-row { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  color: var(--muted); font-size: .82rem; font-weight: 600;
}
.chip-work { color: var(--accent-2); border-color: rgba(255, 122, 26, .4); background: rgba(255, 122, 26, .1); }
.chip-done { color: var(--ok); border-color: rgba(62, 207, 142, .35); background: rgba(62, 207, 142, .1); }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(48px, 7vw, 88px); }
.hero-grid {
  display: grid; grid-template-columns: 1.06fr .94fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero-copy .lead { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.16rem); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: -24px -14px;
  background: radial-gradient(closest-side, rgba(255, 122, 26, .22), transparent);
  filter: blur(22px); z-index: -1;
}

.mock {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}
.mock-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.mock-title { margin: 0; font-weight: 700; font-size: 1.05rem; }
.mock-sub { margin: 2px 0 0; color: var(--muted); font-size: .84rem; }
.mock-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.mock-meta span { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.mock-meta strong { font-size: .94rem; font-weight: 600; }
.mock-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.mock-table td { padding: 10px 0; border-top: 1px dashed var(--line); }
.mock-table td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mock-total {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 6px; padding: 14px 0 6px; border-top: 1px solid var(--line);
}
.mock-total strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.mock-actions { display: flex; gap: 8px; margin-top: 12px; }

/* ---------- Grids / cards ---------- */

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0)), var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.pain-card h3, .feature-card h3 { margin-bottom: 8px; }
.pain-card p, .feature-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.pain-card { border-top: 2px solid rgba(255, 122, 26, .55); }

.icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px;
  background: rgba(255, 122, 26, .1); border: 1px solid rgba(255, 122, 26, .28);
  color: var(--accent-2);
}

/* ---------- Схема потерь (pain) ---------- */

.pain-scheme { position: relative; }
.pain-nodes {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.pain-node {
  position: relative;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0)), var(--card);
  border: 1px solid var(--line); border-top: 2px solid rgba(255, 122, 26, .55);
  border-radius: var(--radius); padding: 20px;
  transition: transform .3s ease, border-color .22s ease, box-shadow .22s ease;
}
.pain-node::before {
  content: ""; position: absolute; top: 50%; right: -19px; width: 18px; height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, rgba(255, 122, 26, .55), rgba(255, 122, 26, .08));
}
.pain-node::after {
  content: ""; position: absolute; top: 50%; right: -23px; width: 7px; height: 7px;
  margin-top: -3.5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px rgba(255, 122, 26, .8);
}
.pain-node:last-child::before, .pain-node:last-child::after { display: none; }
.pain-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pain-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px;
  background: rgba(255, 122, 26, .1); border: 1px solid rgba(255, 122, 26, .28);
  color: var(--accent-2);
}
.pain-icon svg { width: 20px; height: 20px; }
.pain-step { font: 700 .74rem var(--mono); letter-spacing: .08em; color: rgba(255, 122, 26, .7); }
.pain-node h3 { font-size: 1rem; margin-bottom: 7px; }
.pain-node p { margin: 0 0 14px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.pain-tag {
  margin-top: auto; align-self: flex-start;
  padding: 4px 9px; border-radius: 999px;
  font-size: .7rem; font-weight: 600; letter-spacing: .02em;
  color: var(--accent-2); background: rgba(255, 122, 26, .09);
  border: 1px solid rgba(255, 122, 26, .28);
}

/* ---------- Карта возможностей (features) ---------- */

.feature-map {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 1.12fr) 1fr;
  gap: 16px 34px;
  align-items: center;
}
.feature-col { display: grid; gap: 14px; min-width: 0; }
.feature-node {
  position: relative;
  display: flex; gap: 13px; align-items: flex-start;
  background: linear-gradient(180deg, rgba(255, 255, 255, .022), rgba(255, 255, 255, 0)), var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px;
  transition: transform .3s ease, border-color .22s ease, box-shadow .22s ease;
}
.feature-node::before {
  content: ""; position: absolute; top: 50%; width: 34px; height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, rgba(255, 122, 26, .5), rgba(255, 122, 26, .06));
}
.feature-node::after {
  content: ""; position: absolute; top: 50%; width: 7px; height: 7px;
  margin-top: -3.5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px rgba(255, 122, 26, .8);
}
.feature-col:first-child .feature-node::before { right: -34px; }
.feature-col:first-child .feature-node::after { right: -37px; }
.feature-col:last-child .feature-node::before {
  left: -34px;
  background: linear-gradient(270deg, rgba(255, 122, 26, .5), rgba(255, 122, 26, .06));
}
.feature-col:last-child .feature-node::after { left: -37px; }
.feature-icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255, 122, 26, .1); border: 1px solid rgba(255, 122, 26, .28);
  color: var(--accent-2);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-copy { min-width: 0; }
.feature-node h3 { font-size: .98rem; line-height: 1.25; margin: 1px 0 5px; }
.feature-node p { margin: 0; font-size: .85rem; line-height: 1.45; color: var(--muted); }

.feature-core {
  position: relative; min-width: 0; padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 122, 26, .34);
  background:
    linear-gradient(160deg, rgba(255, 122, 26, .13), rgba(255, 122, 26, .03) 42%, rgba(255, 255, 255, .02)),
    var(--card-2);
  box-shadow: 0 30px 64px -38px rgba(255, 122, 26, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.feature-core::before {
  content: ""; position: absolute; inset: -26px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 122, 26, .24), transparent);
  filter: blur(22px);
}
.core-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 15px; }
.core-badge { font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-2); }
.core-num { font: 700 .78rem var(--mono); color: var(--muted); }
.core-client {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line);
  font-size: .84rem; color: #cdd7e3;
}
.core-avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 50% 34%, rgba(255, 122, 26, .75) 0 30%, rgba(255, 122, 26, .18) 32% 100%);
  border: 1px solid rgba(255, 122, 26, .35);
}
.core-rows { display: grid; gap: 9px; }
.core-row { display: flex; justify-content: space-between; gap: 10px; font-size: .83rem; color: var(--muted); }
.core-row b { color: #dfe7f0; font-weight: 600; font-variant-numeric: tabular-nums; }
.core-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--muted);
}
.core-total b { font-size: 1.4rem; color: var(--text); font-variant-numeric: tabular-nums; }
.core-send { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.core-chip {
  padding: 4px 9px; border-radius: 999px; font-size: .68rem; font-weight: 600;
  color: var(--muted); border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
}
.core-chip-mark { color: var(--accent-2); border-color: rgba(255, 122, 26, .38); background: rgba(255, 122, 26, .1); }

/* ---------- Steps ---------- */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 24px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-bottom: 14px;
  border-radius: 50%; border: 1px solid rgba(255, 122, 26, .45);
  color: var(--accent); font-weight: 800; font-size: 1.1rem;
  background: rgba(255, 122, 26, .08);
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: .96rem; }
.step::after {
  content: ""; position: absolute; top: 52px; right: -19px; width: 18px; height: 2px;
  background: linear-gradient(90deg, rgba(255, 122, 26, .5), rgba(255, 122, 26, .08));
}
.step:last-child::after { display: none; }
.step-visual {
  position: relative; display: flex; align-items: center; gap: 10px;
  min-height: 58px; margin: 0 0 16px; padding: 11px 14px; overflow: hidden;
  border-radius: 10px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line-soft);
}
.step-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 122, 26, .08), transparent);
  transform: translateX(-100%);
}
.sv-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 50% 34%, rgba(255, 122, 26, .75) 0 28%, rgba(255, 122, 26, .18) 30% 100%);
  border: 1px solid rgba(255, 122, 26, .32);
}
.sv-copy { display: grid; gap: 6px; flex: 1; }
.sv-copy span { display: block; height: 6px; border-radius: 999px; background: linear-gradient(90deg, rgba(255, 122, 26, .5), rgba(255, 122, 26, .12)); }
.sv-copy span:last-child { width: 58%; background: linear-gradient(90deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); }
.step-visual.sv-rows { display: grid; gap: 7px; align-content: center; }
.sv-row { display: flex; align-items: center; gap: 10px; }
.sv-row-bar { height: 6px; border-radius: 999px; flex: 1; background: rgba(255, 255, 255, .14); }
.sv-row-sum { width: 44px; height: 6px; border-radius: 999px; background: rgba(255, 122, 26, .5); }
.sv-row-total { padding-top: 7px; border-top: 1px solid var(--line-soft); }
.sv-row-total .sv-row-sum { width: 60px; background: var(--accent); box-shadow: 0 0 12px rgba(255, 122, 26, .5); }
.step-visual.sv-send { display: flex; flex-wrap: wrap; gap: 6px; align-content: center; justify-content: center; }
.sv-send span {
  padding: 5px 9px; border-radius: 999px; font-size: .7rem; font-weight: 600;
  color: var(--muted); border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
}
.sv-send span:first-child { color: var(--accent-2); border-color: rgba(255, 122, 26, .4); background: rgba(255, 122, 26, .1); }

/* ---------- Demo ---------- */

.demo-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 20px; align-items: start; }
.demo-grid > * { min-width: 0; }
.demo-builder { padding: clamp(18px, 3vw, 26px); min-width: 0; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .field > label { color: var(--muted); font-size: .84rem; font-weight: 600; }
.field input, .field-row input, .lead-form input[type="text"] {
  width: 100%; padding: 11px 13px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .96rem;
}
.field input:focus, .lead-form input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(255, 122, 26, .18); }

.demo-table-wrap { overflow-x: auto; max-width: 100%; }
.demo-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.demo-table th {
  position: relative;
  text-align: left; color: var(--muted); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; padding: 8px 6px;
  border-bottom: 1px solid var(--line);
}
.demo-table th:nth-child(2) { width: 76px; }
.demo-table th:nth-child(3) { width: 108px; }
.demo-table th:nth-child(4) { width: 110px; text-align: right; }
.demo-table th:nth-child(5) { width: 40px; }
.demo-table td { padding: 6px 4px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.demo-table td:nth-child(4) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.demo-table input {
  width: 100%; padding: 9px 10px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: .93rem;
}
.demo-table input[type="number"] { -moz-appearance: textfield; }
.demo-table input[type="number"]::-webkit-outer-spin-button,
.demo-table input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.demo-table input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(255, 122, 26, .15); }

.row-remove {
  width: 32px; height: 32px; border-radius: 8px;
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.row-remove:hover { color: #ff8a8a; border-color: #5a2e2e; }

.demo-controls { display: flex; gap: 8px; margin-top: 14px; }
.demo-total-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
}
.demo-total-row span { color: var(--muted); font-weight: 600; }
.demo-total-row strong { font-size: 1.7rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hint { color: var(--muted); font-size: .84rem; margin: 10px 0 0; }

.demo-preview { position: sticky; top: 90px; padding: 20px; }
.preview-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; color: var(--muted); font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
}
.demo-preview pre {
  margin: 0; padding: 16px;
  min-height: 300px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  color: #cfe0f2; font-family: var(--mono); font-size: .8rem; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word; overflow-x: auto;
}

/* ---------- Pricing ---------- */

.pricing-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: start; }
.price-card { border-color: rgba(255, 122, 26, .35); box-shadow: 0 30px 60px -40px rgba(255, 122, 26, .55); }
.price-top { padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.price-top h3 { color: var(--accent-2); text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; }
.price { margin: 0 0 6px; display: flex; align-items: baseline; gap: 8px; }
.price strong { font-size: clamp(2.3rem, 4vw, 2.9rem); letter-spacing: -.03em; }
.price span { color: var(--muted); font-size: 1rem; }
.price-note { margin: 0; color: var(--muted); font-size: .92rem; }

.checklist { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 28px; font-size: .96rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .22em;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(62, 207, 142, .14);
  border: 1px solid rgba(62, 207, 142, .45);
}
.checklist li::after {
  content: ""; position: absolute; left: 5px; top: .5em;
  width: 6px; height: 3px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}
.price-legal { margin: 14px 0 0; color: var(--muted); font-size: .82rem; }

.price-side h3 { font-size: 1rem; }
.price-side hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.side-list { margin: 0 0 4px; padding-left: 20px; color: var(--muted); font-size: .94rem; }
.side-list li { margin-bottom: 8px; }

/* ---------- Compare ---------- */

.table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.compare-table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 660px; }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.compare-table thead th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; background: rgba(255, 255, 255, .02); }
.compare-table tbody th { font-weight: 600; color: var(--text); width: 26%; }
.compare-table td { color: var(--muted); }
.compare-table .col-hl { color: var(--text); background: rgba(255, 122, 26, .07); font-weight: 600; }
.compare-table thead .col-hl { color: var(--accent-2); }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 20px; font-weight: 600; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--accent-2); font-size: 1.15rem; line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); font-size: .96rem; }

/* ---------- Trial form ---------- */

.trial-grid { display: grid; grid-template-columns: 1fr 460px; gap: clamp(28px, 5vw, 56px); align-items: center; }
.trial-copy .checklist { margin-top: 18px; }
.lead-form { display: grid; gap: 14px; padding: clamp(20px, 3vw, 28px); }
.lead-form .field label { font-size: .85rem; }
.optional { color: var(--muted); font-weight: 400; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: .88rem; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.form-status { margin: 0; font-size: .9rem; min-height: 1.2em; }
.form-status.is-error { color: #ff9b9b; }
.form-status.is-ok { color: var(--ok); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line-soft); padding: 40px 0 28px; margin-top: 20px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-name { margin: 0; font-weight: 800; }
.footer-brand .muted { margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { color: var(--muted); font-size: .92rem; }
.footer-nav a:hover { color: var(--text); text-decoration: none; }
.footer-bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.footer-bottom p { margin: 0; }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.card, .step { transition: opacity .55s ease, transform .3s ease, border-color .22s ease, box-shadow .22s ease; }

/* ---------- Motion ---------- */

@keyframes gd-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes gd-glow {
  0%, 100% { opacity: .5; transform: scale(1); }
  50% { opacity: .85; transform: scale(1.07); }
}
@keyframes gd-aura {
  0%, 100% { opacity: .72; }
  50% { opacity: 1; }
}
@keyframes gd-beat {
  0%, 100% { opacity: .55; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.25); }
}
@keyframes gd-core-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes gd-scan {
  0%, 55% { transform: translateX(-100%); }
  85%, 100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-visual::before { animation: gd-glow 7s ease-in-out infinite; }
  .mock { animation: gd-float 7s ease-in-out infinite; }
  #hero::before, #demo::before, #trial::before, #auth-view::before {
    animation: gd-aura 13s ease-in-out infinite;
  }
  .pain-node::after, .feature-node::after { animation: gd-beat 3.4s ease-in-out infinite; }
  .pain-node:nth-child(2)::after, .feature-node:nth-child(2)::after { animation-delay: .5s; }
  .pain-node:nth-child(3)::after, .feature-node:nth-child(3)::after { animation-delay: 1s; }
  .pain-node:nth-child(4)::after { animation-delay: 1.5s; }
  .feature-core { animation: gd-core-float 8s ease-in-out infinite; }
  .step-visual::after { animation: gd-scan 5.5s ease-in-out infinite; }
}

/* Плавный подъём карточек при наведении (только устройства с мышью). */
@media (hover: hover) and (pointer: fine) {
  .grid .card:hover, .steps .step:hover, .pain-node:hover, .feature-node:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 122, 26, .38);
    box-shadow: 0 22px 44px -30px rgba(0, 0, 0, .9);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .pain-nodes { grid-template-columns: repeat(2, 1fr); }
  .pain-node::before, .pain-node::after { display: none; }
  .feature-map { grid-template-columns: 1fr 1fr; }
  .feature-core { grid-column: 1 / -1; grid-row: 1; }
  .feature-col:first-child { grid-column: 1; grid-row: 2; }
  .feature-col:last-child { grid-column: 2; grid-row: 2; }
  .feature-node::before, .feature-node::after { display: none; }
  .hero-visual { max-width: 520px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-preview { position: static; }
  .pricing-grid { grid-template-columns: 1fr; }
  .trial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: #10151c; border-bottom: 1px solid var(--line);
    padding: 10px 22px 18px;
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .8);
    max-height: calc(100vh - 68px);
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  body.nav-open .nav { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line-soft); }
  .nav a:last-child { border-bottom: 0; }
  .nav .nav-cta { margin-top: 12px; text-align: center; border-bottom: 0; }
  .steps { grid-template-columns: 1fr; }
  .step::after {
    top: auto; bottom: -19px; left: 36px; right: auto;
    width: 2px; height: 18px;
    background: linear-gradient(180deg, rgba(255, 122, 26, .5), rgba(255, 122, 26, .08));
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .field input, .field-row input, .demo-table input, .lead-form input[type="text"] { font-size: 16px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pain-nodes, .feature-map { grid-template-columns: 1fr; }
  .feature-col:first-child, .feature-col:last-child { grid-column: 1; grid-row: auto; }
  .pain-node::before, .pain-node::after, .feature-node::before, .feature-node::after { display: block; }
  .pain-node::before {
    top: auto; bottom: -19px; left: 50%; right: auto;
    width: 2px; height: 18px; margin: 0 0 0 -1px;
    background: linear-gradient(180deg, rgba(255, 122, 26, .5), rgba(255, 122, 26, .08));
  }
  .pain-node::after { top: auto; bottom: -23px; left: 50%; right: auto; margin: 0 0 0 -3.5px; }
  .pain-node:last-child::before, .pain-node:last-child::after { display: none; }
  .feature-node::before, .feature-node::after { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 52px 0; }
  .card { padding: 20px; }
  .demo-actions .btn { flex: 1 1 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  /* На узких экранах убираем вычисляемую колонку «сумма» — все поля ввода
     помещаются без горизонтальной прокрутки, итог виден под таблицей. */
  .demo-table { min-width: 0; }
  .demo-table th:nth-child(2), .demo-table td:nth-child(2) { width: 56px; }
  .demo-table th:nth-child(3), .demo-table td:nth-child(3) { width: 88px; }
  .demo-table th:nth-child(4), .demo-table td:nth-child(4) { display: none; }
  .demo-table th:nth-child(5), .demo-table td:nth-child(5) { width: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Legal pages ---------- */

.legal {
  position: relative;
  padding-top: clamp(36px, 5vw, 56px);
  padding-bottom: 64px;
  background:
    radial-gradient(620px 440px at 88% 0%, rgba(255, 122, 26, .10), transparent 70%),
    radial-gradient(540px 420px at 0% 46%, rgba(255, 122, 26, .06), transparent 72%);
}
.legal h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.legal h2 { font-size: clamp(1.2rem, 2.2vw, 1.48rem); margin-top: 34px; }
.legal p, .legal li { color: #c3cedd; font-size: .98rem; }
.legal ul { padding-left: 22px; margin: 0 0 1em; }
.legal li { margin-bottom: 7px; }
.legal-note {
  margin: 22px 0 8px;
  padding: 14px 16px;
  background: rgba(255, 122, 26, .08);
  border: 1px solid rgba(255, 122, 26, .3);
  border-left-width: 4px;
  border-radius: 10px;
  color: var(--muted);
  font-size: .92rem;
}
.legal-note strong { color: var(--accent-2); }
.legal-back { margin-top: 40px; }

/* ---------- Cabinet ---------- */

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

/* Auth */

.auth-section {
  display: flex; align-items: center;
  min-height: calc(100vh - 68px);
  min-height: calc(100svh - 68px);
  padding-block: clamp(40px, 6vw, 84px);
}
.auth-layout {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.auth-pitch { position: relative; min-width: 0; }
.auth-pitch::before {
  content: ""; position: absolute; inset: -20% -12% -20% -20%;
  background:
    radial-gradient(460px 280px at 30% 22%, rgba(255, 122, 26, .20), transparent 68%),
    radial-gradient(300px 220px at 8% 84%, rgba(255, 122, 26, .09), transparent 70%);
  pointer-events: none; z-index: -1;
}
.auth-pitch h1 { margin-bottom: 18px; }
.auth-lead { max-width: 46ch; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.1rem); }
.auth-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.auth-points li { display: flex; align-items: flex-start; gap: 12px; color: #c6d0dd; font-size: .98rem; }
.auth-points .tick {
  flex: none; display: inline-grid; place-items: center;
  width: 25px; height: 25px; margin-top: 1px; border-radius: 8px;
  background: rgba(255, 122, 26, .12); border: 1px solid rgba(255, 122, 26, .32);
  color: var(--accent-2); font-size: .8rem; font-weight: 800;
}
.auth-trust { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; }
.auth-trust span {
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03); color: var(--muted); font-size: .78rem; font-weight: 600;
}
.auth-card-wrap { justify-self: end; width: 100%; max-width: 460px; }

.auth-card {
  position: relative; overflow: hidden;
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow);
  animation: auth-rise .5s cubic-bezier(.2, .7, .2, 1) both;
}
.auth-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 26, .55), transparent);
}
.auth-tabs {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 5px; margin-bottom: 24px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
}
.auth-tab {
  position: relative; z-index: 1;
  padding: 11px 14px; border-radius: 9px; border: 0;
  background: transparent; color: var(--muted);
  font: inherit; font-weight: 700; cursor: pointer;
  transition: color .2s ease;
}
.auth-tab.is-active { color: var(--text); }
.auth-tab-indicator {
  position: absolute; top: 5px; bottom: 5px; left: 5px;
  width: calc(50% - 8px); border-radius: 9px;
  background: var(--card-2); border: 1px solid rgba(255, 255, 255, .05);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 8px 18px -12px rgba(0, 0, 0, .9);
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
}
.auth-tabs[data-active="register"] .auth-tab-indicator { transform: translateX(calc(100% + 6px)); }

.auth-form { display: grid; gap: 14px; }
.auth-form[hidden] { display: none; }
.auth-form.is-entering { animation: auth-panel-in .3s ease both; }
.auth-form-head { margin-bottom: 2px; }
.auth-form-head h2 { margin: 0 0 4px; font-size: 1.26rem; }
.auth-form-head p { margin: 0; font-size: .92rem; }
.auth-form .btn { margin-top: 4px; }
.auth-switch { margin: 4px 0 0; text-align: center; color: var(--muted); font-size: .9rem; }
.link-btn {
  margin: 0; padding: 0; border: 0; background: none;
  color: var(--accent-2); font: inherit; font-weight: 600; cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

@keyframes auth-rise {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes auth-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .auth-section { min-height: 0; }
  .auth-layout { grid-template-columns: 1fr; gap: 30px; max-width: 620px; margin: 0 auto; }
  .auth-card-wrap { justify-self: stretch; max-width: 560px; margin: 0 auto; }
  .auth-pitch h1 { margin-bottom: 12px; }
  .auth-points { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .auth-section { padding-block: 32px 44px; }
  .auth-layout { gap: 24px; }
  .auth-pitch h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .auth-points { grid-template-columns: 1fr; margin-top: 20px; }
  .auth-trust { margin-top: 20px; }
  .auth-card { padding: 20px; }
}

/* Cabinet layout */

.cab-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 24px; margin-bottom: 8px;
}
.cab-head h1 { margin-bottom: 0; }
.cab-head .muted { margin: 0; }
.cab-subtitle { margin-top: 6px !important; max-width: 46ch; }
.cab-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cab-email { word-break: break-word; text-align: right; }
.cab-head-side .btn { white-space: nowrap; }
.cab-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 20px; align-items: start; margin-top: 12px; }

.sub-card, .orders-card { padding: clamp(20px, 3vw, 26px); }
.sub-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sub-top h2 { margin: 0; font-size: 1.12rem; }

.sub-list { margin: 0 0 18px; display: grid; gap: 1px; }
.sub-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--line-soft);
}
.sub-row:last-child { border-bottom: 0; }
.sub-row dt { color: var(--muted); font-size: .9rem; }
.sub-row dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.sub-note { margin: 0 0 12px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.sub-note:empty { display: none; }

.sub-auto { margin-top: 6px; }
.sub-card .btn { margin-top: 18px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  border: 1px solid var(--line); color: var(--muted); background: rgba(255, 255, 255, .03);
}
.badge-ok { color: var(--ok); border-color: rgba(62, 207, 142, .4); background: rgba(62, 207, 142, .1); }
.badge-warn { color: var(--accent-2); border-color: rgba(255, 122, 26, .4); background: rgba(255, 122, 26, .1); }
.badge-muted { color: var(--muted); }

/* Orders list */

.orders-top { align-items: flex-start; }
.orders-top h2 { margin-bottom: 2px; }
.orders-hint { margin: 2px 0 0; max-width: 44ch; }
.orders-list { display: grid; gap: 12px; }
.order-item {
  display: grid; gap: 10px;
  padding: 16px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg);
}
.order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.order-heading { min-width: 0; }
.order-title { margin: 0; font-weight: 700; font-size: .98rem; overflow-wrap: anywhere; }
.order-meta { margin: 3px 0 0; color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; }
.order-total-badge {
  flex: none; font-weight: 700; color: var(--accent-2); font-size: 1.02rem;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

.order-details { border-top: 1px solid var(--line-soft); padding-top: 8px; }
.order-details summary {
  cursor: pointer; color: var(--muted); font-size: .86rem; font-weight: 600;
  list-style-position: inside; padding: 2px 0;
}
.order-details[open] summary { color: var(--text); }
.order-lines { margin: 8px 0 2px; padding-left: 18px; color: var(--muted); font-size: .86rem; }
.order-lines li { margin-bottom: 5px; }
.order-lines li:last-child { margin-bottom: 0; }

.order-share { border-top: 1px solid var(--line-soft); padding-top: 12px; }
.order-share-label {
  margin: 0 0 8px; color: var(--muted);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.order-actions-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.order-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255, 255, 255, .03); color: var(--text);
  font: inherit; font-size: .84rem; font-weight: 700; line-height: 1.15;
  text-align: center; text-decoration: none; cursor: pointer;
  touch-action: manipulation;
  transition: background-color .2s ease, border-color .2s ease, transform .12s ease;
}
.order-action svg { width: 17px; height: 17px; flex: none; }
.order-action:hover { text-decoration: none; background: rgba(255, 255, 255, .07); border-color: #3a4757; }
.order-action:active { transform: translateY(1px); }
.order-action[data-order-action="telegram"] { color: #7cc4f2; border-color: rgba(42, 171, 238, .35); }
.order-action[data-order-action="whatsapp"] { color: #7fe0a4; border-color: rgba(37, 211, 102, .3); }
.order-action[data-order-action="max"] { color: #c3a6ff; border-color: rgba(150, 110, 255, .35); }
.order-action[data-order-action="pdf"] { color: var(--accent-2); border-color: rgba(255, 122, 26, .35); }
.order-feedback { margin: 8px 0 0; color: var(--ok); font-size: .82rem; line-height: 1.45; }
.order-feedback:empty { display: none; }
.order-feedback.is-error { color: #ff9a9a; }

/* ---------- Статусы нарядов ---------- */

.order-badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; flex: none; }
.order-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  font-size: .76rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap;
}
.order-status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 8px currentColor;
}
.order-status.is-new { color: #8fb8e8; border-color: rgba(110, 160, 220, .35); background: rgba(110, 160, 220, .08); }
.order-status.is-progress { color: var(--accent-2); border-color: rgba(255, 122, 26, .38); background: rgba(255, 122, 26, .1); }
.order-status.is-waiting { color: #ffcf6a; border-color: rgba(255, 196, 80, .35); background: rgba(255, 196, 80, .09); }
.order-status.is-done { color: var(--ok); border-color: rgba(62, 207, 142, .38); background: rgba(62, 207, 142, .1); }

.order-status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.order-status-label {
  color: var(--muted); font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}
.order-status-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.order-status-chip {
  min-height: 36px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .025); color: var(--muted);
  font: inherit; font-size: .8rem; font-weight: 700;
  cursor: pointer; touch-action: manipulation;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .12s ease;
}
.order-status-chip:hover { color: var(--text); border-color: #3a4757; }
.order-status-chip:active { transform: translateY(1px); }
.order-status-chip:disabled { opacity: .55; cursor: progress; }
.order-status-chip.is-active {
  color: var(--text); border-color: rgba(255, 122, 26, .5); background: rgba(255, 122, 26, .14);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, .08);
}

/* ---------- Шаблоны работ ---------- */

.template-block {
  margin: 0 0 18px; padding: 14px 16px 15px;
  border: 1px dashed var(--line); border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 122, 26, .055), transparent 58%),
    rgba(255, 255, 255, .014);
}
.template-head h3 { margin: 0 0 2px; font-size: .98rem; }
.template-head p { margin: 0; }
.template-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.template-chip {
  min-height: 40px; padding: 8px 15px;
  border: 1px solid rgba(255, 122, 26, .3); border-radius: 999px;
  background: rgba(255, 122, 26, .07); color: var(--accent-2);
  font: inherit; font-size: .88rem; font-weight: 700;
  cursor: pointer; touch-action: manipulation;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}
.template-chip:hover { background: rgba(255, 122, 26, .14); border-color: rgba(255, 122, 26, .55); color: var(--text); }
.template-chip:active { transform: translateY(1px); }
.template-block .hint { margin: 8px 0 0; }
.template-block .hint:empty { display: none; }
.template-block .form-status { margin: 8px 0 0; }

/* ---------- Команда: владелец и мастер ---------- */

.team-card { margin-top: 20px; padding: clamp(20px, 3vw, 28px); }
.team-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.team-head h2 { margin: 4px 0 6px; font-size: 1.16rem; }
.team-head p { margin: 0; max-width: 72ch; }
.team-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.team-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 13px; border: 1px solid var(--line-soft); border-radius: 12px;
  background: rgba(255, 255, 255, .02);
}
.team-item-main { display: grid; gap: 1px; min-width: 0; }
.team-item-email { font-weight: 700; overflow-wrap: anywhere; }
.team-item-role { color: var(--muted); font-size: .82rem; }
.team-empty { padding: 10px 2px; margin: 0; }
.team-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.team-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.team-form .btn { min-height: 44px; }
.team-form .hint { margin: 10px 0 0; }

@media (max-width: 640px) {
  .order-badges { width: 100%; justify-content: flex-start; }
  .order-status-chip { min-height: 44px; }
  .template-chip { min-height: 44px; }
  .team-fields { grid-template-columns: 1fr; }
  .team-item { flex-wrap: wrap; }
  .team-head { flex-wrap: wrap; }
}

/* New order form */

.order-form-card { margin-top: 20px; padding: clamp(20px, 3vw, 28px); scroll-margin-top: 90px; }
.order-form-card h2 { margin-bottom: 4px; font-size: 1.12rem; }
.order-form-hint { margin: 0 0 18px; }
.order-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }

.order-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
.order-table th {
  padding: 10px 8px; text-align: left; color: var(--muted);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700;
}
.order-table th:nth-child(2) { width: 80px; }
.order-table th:nth-child(3) { width: 120px; }
.order-table th:nth-child(4) { width: 110px; text-align: right; }
.order-table th:nth-child(5) { width: 40px; }
.order-table td { padding: 6px 4px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.order-table td:nth-child(4) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-table input {
  width: 100%; padding: 9px 10px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: .93rem;
}
.order-table input[type="number"] { -moz-appearance: textfield; }
.order-table input[type="number"]::-webkit-outer-spin-button,
.order-table input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.order-table input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(255, 122, 26, .15); }

.order-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 16px;
}
.order-total { margin: 0; color: var(--muted); }
.order-total strong { color: var(--text); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.order-form-card .btn-block { margin-top: 16px; }

@media (max-width: 900px) {
  .cab-grid { grid-template-columns: 1fr; }
  .order-fields { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .cab-head-side { align-items: stretch; width: 100%; }
  .cab-email { text-align: left; }
  .cab-head-side .btn { width: 100%; }

  .orders-top { flex-wrap: wrap; }
  .order-head { flex-wrap: wrap; gap: 6px; }
  .order-total-badge { margin-left: auto; }
  .order-actions-row { grid-template-columns: 1fr 1fr; }

  .table-wrap { overflow: visible; border: 0; background: transparent; }
  .order-table { min-width: 0; }
  .order-table thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
  .order-table tbody tr {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px;
    padding: 14px; margin-bottom: 12px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
  }
  .order-table tbody tr:last-child { margin-bottom: 0; }
  .order-table td { display: grid; gap: 5px; padding: 0; border: 0; }
  .order-table td::before {
    content: attr(data-label); color: var(--muted);
    font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  }
  .order-table td:nth-child(1) { grid-column: 1 / -1; }
  .order-table td:nth-child(5) { display: flex; justify-content: flex-end; }
  .order-table td:nth-child(5)::before { content: none; }
  .row-remove { width: 44px; height: 44px; font-size: 1.25rem; }
  .order-table td:nth-child(4) { text-align: left; }
}

/* ---------- Автопродление: акцентный блок ---------- */

.sub-auto-block {
  position: relative; margin-top: 16px;
  padding: 15px 16px 16px 19px;
  border: 1px solid rgba(255, 122, 26, .34); border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 122, 26, .11), rgba(255, 122, 26, .02) 70%),
    rgba(255, 255, 255, .015);
  box-shadow: 0 14px 34px -24px rgba(255, 122, 26, .6);
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.sub-auto-block::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 3px; border-radius: 3px;
  background: var(--accent); box-shadow: 0 0 16px rgba(255, 122, 26, .7);
}
.sub-auto-block .sub-auto { color: var(--text); font-weight: 700; font-size: .95rem; }
.sub-auto-block .sub-auto input { accent-color: var(--accent); }
.sub-auto-motivation {
  margin: 9px 0 7px; color: var(--text); font-size: .9rem;
  font-weight: 600; line-height: 1.5;
}
.sub-auto-block .hint { margin: 0; }
.sub-auto-block.is-on {
  border-color: rgba(62, 207, 142, .45);
  background:
    linear-gradient(135deg, rgba(62, 207, 142, .11), rgba(62, 207, 142, .02) 70%),
    rgba(255, 255, 255, .015);
  box-shadow: 0 14px 34px -24px rgba(62, 207, 142, .6);
}
.sub-auto-block.is-on::before { background: var(--ok); box-shadow: 0 0 16px rgba(62, 207, 142, .7); }
.sub-auto-block.is-on .sub-auto-motivation { color: #bdf0d8; }

/* ---------- Выгрузка нарядов в CSV ---------- */

.csv-tools { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.csv-tools-head h3 { margin: 0 0 3px; font-size: .98rem; }
.csv-tools-head p { margin: 0 0 13px; }
.csv-controls {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px; align-items: end;
}
.csv-controls .field { margin: 0; gap: 6px; }
.csv-controls .field > span { font-size: .78rem; }
.csv-controls select, .csv-controls input { min-height: 44px; }
.csv-export-btn { min-height: 44px; white-space: nowrap; }
.csv-tools .hint { margin: 10px 0 0; }

/* ---------- Личная ссылка ---------- */

.share-card {
  position: relative; overflow: hidden; margin-top: 20px;
  padding: clamp(20px, 3vw, 28px);
  border-color: rgba(255, 122, 26, .26);
  background:
    radial-gradient(620px 220px at 92% -20%, rgba(255, 122, 26, .14), transparent 68%),
    linear-gradient(160deg, rgba(255, 122, 26, .05), transparent 46%),
    var(--card);
  box-shadow: 0 22px 54px -34px rgba(255, 122, 26, .5);
}
.share-card::after {
  content: ""; position: absolute; right: -70px; bottom: -90px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 26, .13), transparent 66%);
  pointer-events: none;
}
.share-head { position: relative; z-index: 1; }
.share-head h2 { margin: 4px 0 6px; font-size: 1.16rem; }
.share-head p { margin: 0; max-width: 72ch; }
.share-link-row {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px; margin: 16px 0 14px;
}
.share-link-row input {
  min-width: 0; width: 100%; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--text);
  font-family: var(--mono); font-size: .82rem;
}
.share-stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px; margin: 0 0 12px;
}
.share-stats > div {
  padding: 10px 13px; border: 1px solid var(--line-soft);
  border-radius: 12px; background: rgba(255, 255, 255, .025);
}
.share-stats dt { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
.share-stats dd {
  margin: 2px 0 0; color: var(--accent-2);
  font-size: 1.15rem; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.share-friends { position: relative; z-index: 1; list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.share-friend {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 11px; border: 1px solid var(--line-soft); border-radius: 10px;
  background: rgba(255, 255, 255, .02); color: var(--muted); font-size: .86rem;
}
.share-friend.is-empty {
  justify-content: center; text-align: center;
  border-style: dashed; background: transparent;
}
.share-friend-dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--muted);
}
.share-friend-dot.is-registered { background: var(--accent-2); box-shadow: 0 0 10px rgba(255, 122, 26, .65); }
.share-friend-dot.is-paid { background: #5ab0ff; box-shadow: 0 0 10px rgba(90, 176, 255, .6); }
.share-friend-dot.is-credited { background: var(--ok); box-shadow: 0 0 10px rgba(62, 207, 142, .65); }

/* ---------- Печать наряда / сохранение в PDF ---------- */

.print-page { min-height: 100vh; }
.print-toolbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 20px; padding: 14px clamp(16px, 4vw, 32px);
  border-bottom: 1px solid var(--line);
  background: rgba(14, 17, 22, .93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.print-toolbar-text { display: grid; gap: 2px; min-width: 0; }
.print-toolbar-text strong { font-size: .98rem; }
.print-toolbar-text span { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.print-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.print-wrap { max-width: 860px; margin: 0 auto; padding: 26px 20px 56px; }
.print-wrap .form-status { margin: 0 0 10px; }
.print-wrap .form-status:empty { display: none; }
.print-doc {
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid var(--line); border-radius: 14px;
  background: #fff; color: #111;
  box-shadow: var(--shadow);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px; line-height: 1.5;
}
.print-doc .print-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 8px 24px; padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 2px solid #111;
}
.print-doc .print-brand { flex-basis: 100%; margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.print-doc .print-tagline { margin: -6px 0 0; color: #555; font-size: .82rem; }
.print-doc .print-order-no { margin: 0 0 0 auto; text-align: right; font-size: .95rem; font-weight: 700; }
.print-doc .print-meta { display: grid; gap: 5px; margin: 0 0 16px; font-size: .95rem; }
.print-doc .print-meta-row { display: flex; gap: 8px; }
.print-doc .print-meta dt { flex: none; min-width: 76px; color: #555; }
.print-doc .print-meta dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.print-doc .print-table-wrap { overflow-x: auto; }
.print-doc .print-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.print-doc .print-table th {
  padding: 7px 6px; text-align: left; border-bottom: 1px solid #111;
  font-size: .76rem; text-transform: uppercase; letter-spacing: .04em;
}
.print-doc .print-table td { padding: 7px 6px; border-bottom: 1px solid #d8d8d8; vertical-align: top; }
.print-doc .print-table th:nth-child(2), .print-doc .print-table td:nth-child(2),
.print-doc .print-table th:nth-child(3), .print-doc .print-table td:nth-child(3),
.print-doc .print-table th:nth-child(4), .print-doc .print-table td:nth-child(4) {
  width: 82px; text-align: right;
}
.print-doc .print-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.print-doc .print-total {
  display: flex; align-items: baseline; justify-content: flex-end; gap: 12px;
  margin: 14px 0 0; font-size: 1.05rem;
}
.print-doc .print-total strong { font-size: 1.25rem; }
.print-doc .print-footer {
  margin: 26px 0 0; padding-top: 10px; border-top: 1px solid #bbb;
  color: #666; font-size: .78rem; line-height: 1.5;
}
.print-doc .print-empty { margin: 0 0 16px; text-align: center; font-size: 1rem; }
.print-doc .print-empty + .btn { display: block; width: fit-content; margin: 0 auto; }

@media (max-width: 720px) {
  .csv-controls { grid-template-columns: 1fr 1fr; }
  .csv-export-btn { grid-column: 1 / -1; }
  .share-link-row { grid-template-columns: 1fr 1fr; }
  .share-link-row input { grid-column: 1 / -1; }
  .share-stats { grid-template-columns: 1fr; }
  .print-toolbar-text span { display: none; }
  .print-toolbar-actions { width: 100%; }
  .print-toolbar-actions .btn { flex: 1 1 auto; }
  .print-doc .print-head { flex-direction: column; }
  .print-doc .print-order-no { margin-left: 0; text-align: left; }
}

/* ---------- Адаптив под топ-разрешения и все типы устройств ---------- */
/* Покрываем: 4K/2K мониторы, ноутбуки 1280–1920, планшеты 768–1180,
   телефоны 320–480, горизонтальные телефоны, тач-устройства. */

/* Большие и сверхбольшие мониторы: шире контейнер, чтобы не было «узкой колонки» */
@media (min-width: 1440px) {
  :root { --container: 1240px; }
  .section { padding: clamp(64px, 6vw, 116px) 0; }
}
@media (min-width: 1800px) {
  :root { --container: 1340px; }
  body { font-size: 18px; }
}
@media (min-width: 2400px) {
  :root { --container: 1480px; }
}

/* Телефоны: iPhone SE/12/13 mini, Galaxy, Pixel (≤ 480) */
@media (max-width: 480px) {
  .container {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .section { padding: 44px 0; }
  h1 { font-size: clamp(1.8rem, 8.5vw, 2.4rem); }
  h2 { font-size: clamp(1.45rem, 6.5vw, 1.9rem); }
  .card { padding: 18px; }
  .share-link-row { grid-template-columns: 1fr; }
  .share-link-row input { grid-column: auto; }
  .share-link-row .btn { width: 100%; }
  .share-stats { grid-template-columns: 1fr; }
  .hero-actions .btn, .demo-actions .btn, .order-actions .btn { width: 100%; }
  .team-fields { grid-template-columns: 1fr; }
  .footer-inner, .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Очень узкие телефоны: Galaxy S8, старые Android (≤ 360) */
@media (max-width: 360px) {
  .container {
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }
  body { font-size: 15.5px; }
  .card { padding: 15px; }
  .badge { font-size: .72rem; }
  .share-stats > div { padding: 8px 11px; }
  .cab-head h1 { font-size: 1.7rem; }
}

/* Горизонтальная ориентация телефона — мало высоты */
@media (max-height: 500px) and (orientation: landscape) {
  .section { padding: 30px 0; }
  .auth-section { min-height: 0; }
  .nav { max-height: calc(100vh - 60px); max-height: calc(100dvh - 60px); }
}

/* Тач-устройства: цели нажатия не меньше 44px */
@media (hover: none) and (pointer: coarse) {
  .btn, .btn-sm, .template-chip, .order-status-chip,
  .nav-toggle, .row-remove, .auth-tab { min-height: 44px; }
}

@media print {
  @page { margin: 14mm; }

  html, body { background: #fff !important; color: #111 !important; }
  .print-page body::before { display: none !important; }
  .print-toolbar, .print-toolbar-text, .print-toolbar-actions,
  .print-wrap > .form-status, .skip-link { display: none !important; }
  .print-wrap { max-width: none; margin: 0; padding: 0; }
  .print-doc {
    padding: 0; border: 0; border-radius: 0; box-shadow: none; background: #fff;
  }

  .print-doc { font-family: Arial, Helvetica, sans-serif; color: #111; font-size: 12pt; line-height: 1.45; }
  .print-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 24pt;
    padding-bottom: 10pt; margin-bottom: 14pt; border-bottom: 2pt solid #111;
  }
  .print-brand { font-size: 20pt; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
  .print-tagline { margin: 2pt 0 0; font-size: 9.5pt; color: #555; }
  .print-order-no { text-align: right; font-size: 11pt; font-weight: 700; line-height: 1.5; }
  .print-meta { display: grid; gap: 4pt; margin-bottom: 14pt; font-size: 11pt; }
  .print-meta p { margin: 0; }
  .print-meta strong { display: inline-block; min-width: 70pt; }

  .print-table { width: 100%; border-collapse: collapse; font-size: 10.5pt; }
  .print-table th {
    padding: 6pt 5pt; text-align: left; border-bottom: 1pt solid #111;
    font-size: 9pt; text-transform: uppercase; letter-spacing: 0.04em;
  }
  .print-table td { padding: 6pt 5pt; border-bottom: 0.5pt solid #ccc; vertical-align: top; }
  .print-table th:nth-child(2), .print-table td:nth-child(2) { width: 44pt; text-align: right; }
  .print-table th:nth-child(3), .print-table td:nth-child(3) { width: 72pt; text-align: right; }
  .print-table th:nth-child(4), .print-table td:nth-child(4) { width: 80pt; text-align: right; }
  .print-num { font-variant-numeric: tabular-nums; white-space: nowrap; }

  .print-total { margin: 12pt 0 0; text-align: right; font-size: 13pt; font-weight: 700; }
  .print-footer {
    margin-top: 26pt; padding-top: 8pt; border-top: 0.5pt solid #999;
    font-size: 8.5pt; color: #555; line-height: 1.5;
  }
}
