:root,
html[data-site-theme="light"] {
  --ink: #0b1020;
  --paper: #f6f1e7;
  --sand: #e8dfcc;
  --amber: #d98a12;
  --amber-soft: #fdf0d6;
  --blue: #2f5bff;
  --blue-soft: #e7ecff;
  --emerald: #0e9e67;
  --emerald-soft: #def5ea;
  --cool: #dce4f0;
  --slate: #4a5570;
  --danger: #d93425;
  --surface: #ffffff;
}

html[data-site-theme="dark"] {
  --ink: #e8eef8;
  --paper: #0b1020;
  --sand: #243049;
  --amber: #f0b429;
  --amber-soft: #2a2110;
  --blue: #6b8cff;
  --blue-soft: #18233f;
  --emerald: #3ecf8e;
  --emerald-soft: #123226;
  --cool: #1a2238;
  --slate: #9aa8c2;
  --danger: #ff6b5c;
  --surface: #12182b;
}

html {
  transition: background-color 0.18s ease, color 0.18s ease;
}

.site-theme-toggle {
  display: inline-flex;
  gap: 2px;
  border: 1px solid var(--sand);
  border-radius: 12px;
  padding: 2px;
  background: var(--surface, #fff);
}
.site-theme-toggle button {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: var(--slate);
  font-size: 0.85rem;
}
.site-theme-toggle button.is-active,
.site-theme-toggle button:hover {
  background: var(--amber-soft);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Segoe UI", system-ui, sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
/* без этого UA даёт buttonface (#f0f0f0) — светлый текст (text-cool/white) на нём пропадает */
button {
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

.bg-paper { background: var(--paper); }
.bg-paper\/90 { background: rgba(246, 241, 231, 0.9); }
.bg-white { background: var(--surface, #fff); }
.bg-ink { background: var(--ink); }
.bg-amber { background: var(--amber); }
.bg-amber-soft { background: var(--amber-soft); }
.bg-amber-soft\/60 { background: rgba(253, 240, 214, 0.6); }
.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;
}
.bg-emerald { background: var(--emerald); }
.bg-emerald-soft { background: var(--emerald-soft); }
.bg-blue-soft\/40 { background: rgba(231, 236, 255, 0.4); }
.text-ink { color: var(--ink); }
.text-ink\/80 { color: rgba(11, 16, 32, 0.8); }
.text-white { color: #fff; }
.text-slate { color: var(--slate); }
.text-amber { color: var(--amber); }
.text-blue { color: var(--blue); }
.text-danger { color: var(--danger); }
.text-cool { color: var(--cool); }
.text-cool\/80 { color: rgba(220, 228, 240, 0.8); }
.text-cool\/70 { color: rgba(220, 228, 240, 0.7); }
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-b { border-bottom: 1px solid; }
.border-t { border-top: 1px solid; }
.border-sand { border-color: var(--sand); }
.border-sand\/60 { border-color: rgba(232, 223, 204, 0.6); }
.border-amber\/30 { border-color: rgba(217, 138, 18, 0.3); }
.border-emerald { border-color: var(--emerald); }
.border-emerald\/30 { border-color: rgba(14, 158, 103, 0.3); }
.border-blue\/20 { border-color: rgba(47, 91, 255, 0.2); }
.border-amber { border-color: var(--amber); }
.antialiased { -webkit-font-smoothing: antialiased; }
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.grid { display: grid; }
.hidden { display: none; }
.sticky { position: sticky; }
.relative { position: relative; }
.absolute { position: absolute; }
.top-0 { top: 0; }
.top-7 { top: 1.75rem; }
.bottom-0 { bottom: 0; }
.left-\[13px\] { left: 13px; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-auto { margin-top: auto; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.block { display: block; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.space-y-0 > * + * { margin-top: 0; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-6xl { max-width: 72rem; }
.w-0\.5 { width: 0.125rem; }
.w-9 { width: 2.25rem; }
.h-4 { height: 1rem; }
.w-4 { width: 1rem; }
.h-7 { height: 1.75rem; }
.w-7 { width: 1.75rem; }
.h-9 { height: 2.25rem; }
.w-full { width: 100%; }
.shrink-0 { flex-shrink: 0; }
.place-items-center { place-items: center; }
.grid-cols-\[28px_1fr\] { grid-template-columns: 28px 1fr; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-16 { padding-bottom: 4rem; }
.pt-10 { padding-top: 2.5rem; }
.scroll-mt-24 { scroll-margin-top: 6rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-\[0\.65rem\] { font-size: 0.65rem; }
.font-medium { font-weight: 500; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 650; }
.font-extrabold { font-weight: 700; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-\[0\.17em\] { letter-spacing: 0.17em; }
.leading-tight { line-height: 1.15; }
.underline { text-decoration: underline; }
.break-all { word-break: break-all; }
.shadow-sm { box-shadow: 0 1px 2px rgba(11, 16, 32, 0.06), 0 4px 14px rgba(11, 16, 32, 0.05); }
.shadow-md { box-shadow: 0 2px 6px rgba(11, 16, 32, 0.07), 0 18px 44px rgba(11, 16, 32, 0.09); }
.backdrop-blur { backdrop-filter: blur(16px); }
.hover\:text-ink:hover { color: var(--ink); }
.hover\:brightness-105:hover { filter: brightness(1.05); }
.hover\:brightness-125:hover { filter: brightness(1.25); }
.field-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1.5px solid var(--sand);
  background: #fff;
  color: var(--ink);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  line-height: 1.35;
  outline: none;
}
.field-input::placeholder {
  color: var(--slate);
  opacity: 0.9;
}
.field-input:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 91, 255, 0.1);
}
.consent-check { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--blue); flex-shrink: 0; }
.hp-wrap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.prose { color: var(--slate); }
.prose p { margin: 0 0 0.9em; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.divide-y > * + * { border-top: 1px solid var(--sand); }
.divide-sand > * + * { border-color: var(--sand); }
.justify-between { justify-content: space-between; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-emerald { color: var(--emerald); }
.text-blue { color: var(--blue); }
.bg-blue-soft { background: var(--blue-soft); }
.bg-gradient-to-b { background-image: linear-gradient(180deg, var(--paper), #eff2f9); }
.from-paper { }
.to-\[\#EFF2F9\] { }
.border-y { border-top: 1px solid; border-bottom: 1px solid; }
.border-blue\/30 { border-color: rgba(47, 91, 255, 0.3); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.rounded-full { border-radius: 9999px; }
.overflow-x-auto { overflow-x: auto; }
.min-w-\[640px\] { min-width: 640px; }
.opacity-60 { opacity: 0.6; }
.line-through { text-decoration: line-through; }
.hover\:bg-amber-soft:hover { background: var(--amber-soft); }
.hover\:text-amber:hover { color: var(--amber2, #ffc24d); }
.\!py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.\!px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.p-6 { padding: 1.5rem; }
.mb-5 { margin-bottom: 1.25rem; }
.gap-1 { gap: 0.25rem; }
.gap-8 { gap: 2rem; }
.scroll-mt-24 { scroll-margin-top: 6rem; }
table { border-collapse: collapse; }
th, td { vertical-align: top; }
.float-right { float: right; }
.whitespace-nowrap { white-space: nowrap; }
.border-dashed { border-style: dashed; }
.border-t-2 { border-top-width: 2px; border-top-style: solid; }
.bg-white\/5 { background: rgba(255,255,255,.05); }
.bg-white\/10 { background: rgba(255,255,255,.1); }
.bg-white\/15 { background: rgba(255,255,255,.15); }
.hover\:bg-white\/10:hover { background: rgba(255,255,255,.1); }
.hover\:bg-white\/15:hover { background: rgba(255,255,255,.15); }
.border-white\/15 { border-color: rgba(255,255,255,.15); }
.border-white\/20 { border-color: rgba(255,255,255,.2); }
.border-white\/25 { border-color: rgba(255,255,255,.25); }
.text-cool\/60 { color: rgba(220,228,240,.6); }
.text-cool\/70 { color: rgba(220,228,240,.7); }
.text-cool\/80 { color: rgba(220,228,240,.8); }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.accent-blue { accent-color: var(--blue); }
.list-disc { list-style: disc; }
.pl-5 { padding-left: 1.25rem; }
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-\[0\.9fr_1\.1fr\] { grid-template-columns: 0.9fr 1.1fr; }
}
.bg-emerald\/10 { background: rgba(14,158,103,.1); }
.border-emerald\/40 { border-color: rgba(14,158,103,.4); }
.bg-white\/5 { background: rgba(255,255,255,.05); }
.bg-black\/20 { background: rgba(0,0,0,.2); }
.whitespace-pre-wrap { white-space: pre-wrap; }
.fixed { position: fixed; }
.bottom-4 { bottom: 1rem; }
.left-4 { left: 1rem; }
.right-4 { right: 1rem; }
.z-50 { z-index: 50; }
.max-w-xl { max-width: 36rem; }
.leading-relaxed { line-height: 1.65; }
.bg-blue { background: var(--blue); }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.hover\:border-amber:hover { border-color: var(--amber); }
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:inline-flex { display: inline-flex; }
}
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:flex-row { flex-direction: row; }
  .md\:justify-between { justify-content: space-between; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:p-6 { padding: 1.5rem; }
  .md\:pt-16 { padding-top: 4rem; }
  .md\:py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .md\:text-lg { font-size: 1.125rem; }
  .md\:text-3xl { font-size: 1.875rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1.05; }
}
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--paper), rgba(231, 236, 255, 0.35), var(--paper));
}
.overflow-hidden { overflow: hidden; }
.prose-legal h2 {
  margin-top: 1.75rem;
  font-size: 1.15rem;
  font-weight: 800;
}
.prose-legal ul {
  padding-left: 1.25rem;
  list-style: disc;
}
.prose-legal li { margin: 0.35rem 0; }
.prose-legal a { color: var(--blue); text-decoration: underline; }
.border-cool\/40 { border-color: rgba(220, 228, 240, 0.4); }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.shrink-0 { flex-shrink: 0; }
.hover\:brightness-105:hover { filter: brightness(1.05); }

/* —— недостающие утилиты (склейка сеток / радиусы / контраст) —— */
[x-cloak] { display: none !important; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-10 { gap: 2.5rem; }
.h-2 { height: 0.5rem; }
.w-2 { width: 0.5rem; }
.h-10 { height: 2.5rem; }
.w-10 { width: 2.5rem; }
.p-1 { padding: 0.25rem; }
.p-3 { padding: 0.75rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-4 { padding-top: 1rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-5 { padding-bottom: 1.25rem; }
.pb-10 { padding-bottom: 2.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }
.min-w-0 { min-width: 0; }
.max-w-none { max-width: none; }
.max-w-xs { max-width: 20rem; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.justify-center { justify-content: center; }
.inline-grid { display: inline-grid; }
.cursor-pointer { cursor: pointer; }
.text-center { text-align: center; }
.text-\[15px\] { font-size: 15px; line-height: 1.45; }
.normal-case { text-transform: none; }
.tracking-normal { letter-spacing: 0; }
.transition { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.bg-sand { background: var(--sand); }
.bg-amber\/10 { background: rgba(217, 138, 18, 0.1); }
.bg-amber-soft\/50 { background: rgba(253, 240, 214, 0.5); }
.bg-\[\#EFF2F9\]\/30 { background: rgba(239, 242, 249, 0.3); }
.border-amber\/40 { border-color: rgba(217, 138, 18, 0.4); }
.border-danger\/30 { border-color: rgba(217, 52, 37, 0.3); }
.accent-emerald { accent-color: var(--emerald); }
.overflow-hidden { overflow: hidden; }

/* цены и короткие суммы не рвутся посередине на узком экране */
.font-mono.whitespace-nowrap,
td.whitespace-nowrap {
  white-space: nowrap;
}

/* поле в flex-ряду не съедает кнопку */
@media (min-width: 640px) {
  .sm\:flex-row > .field-input {
    width: auto;
    flex: 1 1 0%;
    min-width: 0;
  }
}
@media (min-width: 768px) {
  .md\:grid-cols-\[1\.2fr_0\.8fr\] { grid-template-columns: 1.2fr 0.8fr; }
  .md\:grid-cols-\[1\.3fr_0\.7fr\] { grid-template-columns: 1.3fr 0.7fr; }
  .md\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
}

/* длинные бейджи: радиус не «съедается» текстом */
.badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 0.75rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
}

/* display-утилиты в конце: иначе .hidden перекрывает lg:flex / sm:inline-flex */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:inline-flex { display: inline-flex !important; }
}
@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:flex-row { flex-direction: row; }
}
@media (min-width: 1024px) {
  .lg\:flex { display: flex !important; }
  .lg\:hidden { display: none !important; }
}
