:root[data-theme=dark] {
  --background: #0F1318;
  --surface: #171C23;
  --surface-2: #1F262F;
  --overlay: #232B35;
  --foreground: #EAEEF2;
  --muted-foreground: #9AA6B2;
  --subtle-foreground: #8792A0;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: #2A333F;
  --scrim: rgba(6, 9, 13, 0.6);
  --primary: #F97316;
  --on-primary: #1A1206;
  --primary-hover: #FB8A3C;
  --primary-active: #EA6A0C;
  --primary-text: #F97316;
  --secondary: #3A2A1C;
  --on-secondary: #FDBA74;
  --accent: #22C55E;
  --on-accent: #06210F;
  --success-text: #4ADE80;
  --warning: #F59E0B;
  --warning-text: #FBBF24;
  --danger: #EF4444;
  --on-danger: #FFFFFF;
  --danger-text: #FB7185;
  --info: #0EA5E9;
  --info-text: #38BDF8;
  --ring: #F9A85C;
  --hero-glow: rgba(249, 115, 22, 0.18);
  --grad-brand: linear-gradient(135deg, #FB8A3C 0%, #F97316 45%, #EA580C 100%);
  --grad-success: linear-gradient(135deg, #34D399 0%, #22C55E 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.65);
  --dv-weight: #F97316;
  --dv-workout: #4ADE80;
  --dv-target: #38BDF8;
  --dv-nutrition: #A78BFA;
  --dv-s1: #FBBF24;
  --dv-s2: #FB7185;
  --dv-s3: #2DD4BF;
  --dv-muted: #94A3B8;
  --grid: rgba(255, 255, 255, 0.06);
  --axis: #9AA6B2;
  --tooltip-bg: #232B35;
  --brand-vk: #0077FF;
  --brand-yandex: #FC3F1D;
}

:root[data-theme=light] {
  --background: #F6F7F9;
  --surface: #FFFFFF;
  --surface-2: #EEF1F4;
  --overlay: #FFFFFF;
  --foreground: #0F172A;
  --muted-foreground: #5A6675;
  --subtle-foreground: #64748B;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --scrim: rgba(15, 23, 42, 0.45);
  --primary: #F97316;
  --on-primary: #1A1206;
  --primary-hover: #EA6A0C;
  --primary-active: #C2410C;
  --primary-text: #C2410C;
  --secondary: #FFF1E6;
  --on-secondary: #9A3412;
  --accent: #16A34A;
  --on-accent: #FFFFFF;
  --success-text: #15803D;
  --warning: #F59E0B;
  --warning-text: #B45309;
  --danger: #DC2626;
  --on-danger: #FFFFFF;
  --danger-text: #DC2626;
  --info: #0EA5E9;
  --info-text: #0369A1;
  --ring: #F97316;
  --hero-glow: rgba(249, 115, 22, 0.10);
  --grad-brand: linear-gradient(135deg, #FB8A3C 0%, #F97316 45%, #EA580C 100%);
  --grad-success: linear-gradient(135deg, #34D399 0%, #22C55E 100%);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.10);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, 0.16);
  --dv-weight: #EA580C;
  --dv-workout: #16A34A;
  --dv-target: #0284C7;
  --dv-nutrition: #7C3AED;
  --dv-s1: #D97706;
  --dv-s2: #E11D48;
  --dv-s3: #0D9488;
  --dv-muted: #94A3B8;
  --grid: #EDF0F3;
  --axis: #5A6675;
  --tooltip-bg: #FFFFFF;
  --brand-vk: #0077FF;
  --brand-yandex: #FC3F1D;
}

:root[data-theme=dark] {
  color-scheme: dark;
}

:root[data-theme=light] {
  color-scheme: light;
}

body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.muted {
  color: var(--muted-foreground);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  color: var(--primary-text);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--background) 82%, transparent);
  border-bottom: 1px solid var(--border);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
}

.dot {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #FB8A3C, #EA580C);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.link {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.link:hover {
  color: var(--foreground);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  min-height: 44px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-primary:active {
  background: var(--primary-active);
}

.btn-ghost {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--surface-2);
}

.toggle {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--foreground);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.toggle:hover {
  background: var(--surface-2);
}

:root[data-theme=dark] .icon-sun {
  display: none;
}

:root[data-theme=light] .icon-moon {
  display: none;
}

main > section {
  padding: 96px 0;
}

@media (max-width: 640px) {
  main > section {
    padding: 64px 0;
  }
}
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(1200px 600px at 70% -10%, var(--hero-glow), transparent 60%);
}

.hero-content {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 1rem 0;
}

.grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  font-size: 1.2rem;
  color: var(--muted-foreground);
  max-width: 620px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin: 0.6rem 0;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.ic {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--secondary);
  color: var(--primary);
}

.card h3, .card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted-foreground);
  font-size: 0.97rem;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
.how {
  background: var(--surface);
}

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

.step {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.num {
  font-size: 1.1rem;
  font-weight: 700;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: var(--primary);
  color: var(--on-primary);
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.cta-band {
  background: var(--grad-brand);
  border-radius: 24px;
  padding: 64px 32px;
  text-align: center;
  color: #1A1206;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 0.6rem;
  color: #1A1206;
}

.cta-band p {
  margin-bottom: 28px;
  color: #3a1e08;
  font-size: 1.1rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  background: #1A1206;
  color: #FDBA74;
  transition: background-color 0.2s ease;
}

.cta-btn:hover {
  background: #2a1c0c;
}

.legal {
  max-width: 68ch;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.legal .lede {
  color: var(--muted-foreground);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-size: 1.25rem;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.legal h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal p, .legal li {
  line-height: 1.7;
}

.legal p {
  margin-bottom: 1rem;
}

.legal ul, .legal ol {
  margin: 0 0 1rem 1.25rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal a {
  color: var(--primary-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal strong {
  font-weight: 600;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 1.5rem 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout p {
  line-height: 1.7;
}

.legal .meta {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--subtle-foreground);
  font-size: 0.9rem;
}

.feature {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 96px;
}

.hero--compact {
  padding: 56px 0 16px;
}

.section--tight {
  padding-top: 32px;
}

.hero .crumbs {
  text-align: left;
}

.grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
  .grid--two {
    grid-template-columns: 1fr;
  }
}
.feature > section {
  padding: 0;
  margin-top: 56px;
}

.feature h1 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  margin-bottom: 0.6rem;
}

.feature > section > h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-bottom: 1.2rem;
}

.feature .lede {
  color: var(--muted-foreground);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

.feature p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.feature ul {
  margin: 0 0 1rem 1.25rem;
}

.feature li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.crumbs {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--muted-foreground);
}

.crumbs a {
  color: var(--primary-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat {
  list-style: none;
  margin: 0;
  display: grid;
  gap: 14px;
}

.msg {
  max-width: 88%;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.msg ul, .msg ol {
  margin: 0 0 1rem 1.25rem;
}

.msg p:last-child, .msg ul:last-child, .msg ol:last-child {
  margin-bottom: 0;
}

.msg--user {
  margin-left: auto;
  background: var(--secondary);
  color: var(--on-secondary);
  border-color: transparent;
  border-bottom-right-radius: 4px;
}

.msg--assistant {
  background: var(--surface);
  border-bottom-left-radius: 4px;
}

.msg__who {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  color: var(--subtle-foreground);
}

.msg--user .msg__who {
  color: var(--on-secondary);
  opacity: 0.85;
}

.msg img {
  max-width: 260px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  height: auto;
}

.plan-card {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 1rem 0 0;
}

.plan-card__head {
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.plan-card__meta {
  display: block;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.plan-card dl {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.5rem 1rem;
  margin: 0 0 1rem;
}

.plan-card dt {
  font-weight: 600;
  color: var(--primary-text);
  font-size: 0.95rem;
}

.plan-card dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.plan-card__note {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.plan-card__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-mock {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: default;
}

.btn-mock--accept {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-mock--reject {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border-strong);
}

.plan-card__hint {
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

.cand {
  list-style: none;
  margin: 0 0 0.9rem;
  display: grid;
  gap: 0.6rem;
}

.cand li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 0.5rem 0.75rem;
  align-items: start;
  font-size: 0.95rem;
  margin: 0;
}

.cand svg {
  color: var(--success-text);
  margin-top: 0.2rem;
}

.cand__kbju {
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .cand li {
    grid-template-columns: 20px minmax(0, 1fr);
  }
  .cand__kbju {
    grid-column: 2;
  }
}
.cand__total {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.shots {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 20px;
  align-items: start;
}

.shots figure {
  margin: 0;
}

.shots img {
  border-radius: 12px;
  border: 1px solid var(--border);
  width: 100%;
  height: auto;
}

.shots figcaption {
  font-size: 0.85rem;
  color: var(--subtle-foreground);
  margin-top: 0.5rem;
}

@media (max-width: 720px) {
  .shots {
    grid-template-columns: 1fr;
  }
}
.faq h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.4rem;
}

.faq h3:first-of-type {
  margin-top: 0;
}

.also {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 640px) {
  .also {
    grid-template-columns: 1fr;
  }
}
.card--link {
  display: block;
}

.card--link .go {
  color: var(--primary-text);
  font-weight: 600;
  font-size: 0.95rem;
}

.card--link .quote {
  color: var(--foreground);
  font-size: 0.95rem;
  border-left: 3px solid var(--border-strong);
  padding-left: 0.9rem;
  margin: 0 0 0.9rem;
}

.deep-links {
  list-style: none;
  margin: 0;
  display: grid;
  gap: 12px;
}

.deep-links a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 16px;
  padding: 18px 20px;
  min-height: 44px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.1s ease;
}

.deep-links a:hover {
  background: var(--overlay);
  border-color: var(--border-strong);
  transform: translateX(2px);
}

.deep-links__title {
  font-weight: 600;
  font-size: 1.05rem;
}

.deep-links__text {
  grid-column: 1;
  font-size: 0.95rem;
  color: var(--muted-foreground);
}

.deep-links svg {
  grid-row: 1/-1;
  grid-column: 2;
  color: var(--primary-text);
}

.calc-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr));
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-inline-size: 0;
  border: 0;
}

.calc-field--wide {
  grid-column: 1/-1;
}

.calc-field > label, .calc-field legend {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.calc-field input[type=number], .calc-field select {
  inline-size: 100%;
  min-inline-size: 0;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--foreground);
}

.calc-field--radios {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calc-field--radios label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-weight: 400;
  color: var(--foreground);
  cursor: pointer;
}

.calc-field--radios input {
  accent-color: var(--primary);
  inline-size: 20px;
  block-size: 20px;
}

@media (min-width: 560px) {
  .calc-field--radios {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
  }
  .calc-field--radios legend {
    inline-size: 100%;
  }
}
.calc-error {
  color: var(--danger-text);
  font-size: 0.95rem;
  margin: -8px 0 16px;
}

.calc-result {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 24px;
}

.calc-result h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  border: 0;
  padding: 0;
}

.calc-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr));
  gap: 16px;
  margin-bottom: 1.25rem;
}

.calc-figure {
  margin: 0;
  min-inline-size: 0;
}

.calc-figure__value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.calc-figure__label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

.calc-figure--lead {
  grid-column: 1/-1;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.calc-figure--lead .calc-figure__value {
  font-size: clamp(2.6rem, 7vw, 3.4rem);
  color: var(--primary-text);
}

.calc-figure--lead .calc-figure__label {
  font-size: 1rem;
}

.calc-details {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.5rem 1rem;
  margin: 0;
}

.calc-details dt {
  font-weight: 600;
  font-size: 0.95rem;
}

.calc-details dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted-foreground);
}

.calc-details span {
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 480px) {
  .calc-details {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
  .calc-details dd {
    margin-bottom: 0.6rem;
  }
}
.calc-note {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  border-left: 3px solid var(--border-strong);
  padding-left: 0.9rem;
  margin: 1rem 0 0;
}

#kbju-floor {
  border-left-color: var(--danger);
  color: var(--foreground);
}

.calc-formula {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.table-scroll {
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
  background: linear-gradient(to right, var(--background) 30%, rgba(0, 0, 0, 0)) left center/32px 100% no-repeat local, linear-gradient(to left, var(--background) 30%, rgba(0, 0, 0, 0)) right center/32px 100% no-repeat local, radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0)) left center/16px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0)) right center/16px 100% no-repeat scroll;
}

.table-scroll::-webkit-scrollbar {
  height: 8px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

.table-scroll:focus-visible {
  outline-offset: 4px;
}

.table-hint {
  display: none;
}

@media (max-width: 700px) {
  .table-hint {
    display: inline;
  }
}
.calc-table {
  border-collapse: collapse;
  inline-size: 100%;
  min-inline-size: 30rem;
  font-size: 0.93rem;
}

.calc-table caption {
  text-align: left;
  font-size: 0.85rem;
  color: var(--subtle-foreground);
  padding-bottom: 0.6rem;
}

.calc-table th, .calc-table td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.calc-table thead th {
  color: var(--muted-foreground);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calc-table tbody th {
  font-weight: 600;
}

.calc-table td {
  font-variant-numeric: tabular-nums;
}

.calc-table__mark {
  display: block;
  font-size: 0.78rem;
  font-variant-numeric: normal;
  color: var(--warning-text);
}

.calc-table tbody tr:last-child th, .calc-table tbody tr:last-child td {
  border-bottom: 0;
}

.foot-wrap {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.foot-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.foot:has(.foot-links + .foot-links) > span:first-child {
  flex: 1 1 100%;
}

.foot-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 80ch;
}
