:root {
  color-scheme: light;
  --bg: #f6f8f7;
  --paper: #ffffff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-muted: #f1f5f4;
  --ink: #121722;
  --muted: #64707d;
  --soft: #e2e8e6;
  --line: rgba(18, 23, 34, 0.11);
  --accent: #0f7f68;
  --accent-strong: #066d59;
  --accent-soft: #e1f3ee;
  --warning: #a15c07;
  --danger: #b42318;
  --deduction: #9e4f47;
  --deduction-soft: #fff7f5;
  --deduction-line: rgba(158, 79, 71, 0.16);
  --shadow: 0 22px 70px rgba(38, 52, 47, 0.11);
  --shadow-soft: 0 12px 40px rgba(38, 52, 47, 0.08);
  --radius: 12px;
  --font: "Geist", "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-cyrillic: "Geist", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: 0;
  scroll-behavior: smooth;
}

html[lang="ru"] {
  font-family: var(--font-cyrillic);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 4%, rgba(15, 127, 104, 0.09), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f7faf9 44%, #eef4f2 100%);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid rgba(15, 127, 104, 0.32);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 50;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  font-weight: 540;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 52px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(15, 127, 104, 0.22);
  border-radius: 12px;
  background: #f6f8f7;
  box-shadow: 0 12px 28px rgba(15, 127, 104, 0.18);
}

.brand-mark svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: none;
}

.brand-mark .netik-bg {
  fill: #f6f8f7;
}

.brand-mark .netik-body {
  fill: #0f7f68;
}

.brand-mark .netik-top {
  fill: #19a487;
}

.brand-mark .netik-tab,
.brand-mark .netik-check {
  fill: #d8f1eb;
}

.brand-mark .netik-eyes {
  fill: #121722;
}

.brand-mark .netik-outline {
  fill: none;
  stroke: #121722;
  stroke-linejoin: round;
  stroke-width: 3;
}

.brand-mark .netik-line {
  fill: none;
  stroke: #d8f1eb;
  stroke-linecap: square;
  stroke-width: 3;
}

.brand strong {
  display: block;
  font-size: 1.02rem;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
}

.site-nav,
.mobile-section-nav,
.top-actions,
.language-toggle,
.status-pill {
  display: flex;
  align-items: center;
}

.site-nav {
  justify-content: center;
  gap: 20px;
}

.site-nav a {
  color: #26313d;
  font-size: 0.82rem;
  font-weight: 580;
}

.mobile-section-nav {
  display: none;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(140%);
}

.mobile-section-nav a {
  flex: 0 0 auto;
  min-height: 34px;
  border-radius: 999px;
  padding: 8px 12px;
  color: #26313d;
  font-size: 0.84rem;
  font-weight: 540;
}

.mobile-section-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
  text-decoration: none;
}

.top-actions {
  gap: 10px;
}

.status-pill,
.language-toggle,
.method-badge {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.status-pill {
  gap: 8px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--muted);
}

.status-pill[data-status="ok"] .status-dot {
  background: var(--accent);
}

.status-pill[data-status="loading"] .status-dot {
  background: var(--warning);
}

.status-pill[data-status="error"] .status-dot {
  background: var(--danger);
}

.toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 560;
}

.toggle-button.is-active {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(560px, 1.3fr);
  align-items: center;
  gap: 32px;
  min-height: 440px;
  padding: 34px 0 24px;
}

.hero-copy {
  max-width: 520px;
  min-width: 0;
}

.trust-label,
.section-kicker {
  margin: 0 0 11px;
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 560;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.12rem, 2.85vw, 3rem);
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.82rem, 2.55vw, 2.72rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 0;
  font-size: 1.22rem;
  line-height: 1.14;
}

.hero-copy > p:not(.trust-label),
.content-block p,
.section-heading p:not(.section-kicker) {
  max-width: 64ch;
  color: #4d5967;
  font-size: 0.94rem;
  line-height: 1.44;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 14px 0 0;
  padding: 0;
  color: #44515f;
  font-size: 0.88rem;
  list-style: none;
}

.hero-proof li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-product {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.product-shell {
  display: grid;
  grid-template-columns: 72px minmax(260px, 1fr) 250px;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 250, 0.88)),
    radial-gradient(circle at 16% 12%, rgba(15, 127, 104, 0.12), transparent 34%);
  box-shadow: 0 34px 90px rgba(38, 52, 47, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.product-sidebar,
.product-main,
.product-result {
  padding: 18px;
}

.product-sidebar {
  display: grid;
  align-content: start;
  gap: 12px;
  border-right: 1px solid var(--line);
  background: #f4f8f7;
}

.product-sidebar span {
  height: 34px;
  border-radius: 10px;
  background: #dfe9e6;
}

.product-sidebar span.is-active {
  background: var(--accent-soft);
}

.product-main {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.preview-row span {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 540;
}

.preview-row strong {
  color: var(--accent-strong);
  font-size: 0.78rem;
}

.preview-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.preview-flow div {
  display: grid;
  gap: 7px;
  min-height: 78px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.preview-flow small,
.preview-mini-table span,
.preview-mini-table b {
  color: var(--muted);
  font-size: 0.72rem;
}

.preview-flow strong {
  color: var(--ink);
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}

.preview-flow div:last-child {
  border-color: rgba(15, 127, 104, 0.22);
  background: var(--accent-soft);
}

.preview-flow div:last-child strong {
  color: var(--accent-strong);
}

.preview-mini-table {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.preview-mini-table span,
.preview-mini-table b {
  min-height: 34px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(18, 23, 34, 0.07);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.preview-mini-table b {
  color: #26313d;
  font-weight: 540;
}

.preview-mini-table :nth-last-child(-n + 3) {
  border-bottom: 0;
}

.preview-check {
  margin-top: 0;
  border: 1px solid rgba(15, 127, 104, 0.2);
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 13px;
  font-size: 0.78rem;
  font-weight: 600;
}

.product-result {
  display: grid;
  align-content: start;
  gap: 14px;
  border-left: 1px solid var(--line);
  background: #fbfdfc;
}

.product-result p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.product-result strong {
  color: var(--accent-strong);
  font-size: 1.65rem;
  font-variant-numeric: tabular-nums;
}

.preview-deductions {
  display: grid;
  gap: 9px;
  color: #3a4652;
  font-size: 0.78rem;
  font-weight: 600;
}

.preview-deductions span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-deductions i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.preview-bar {
  display: flex;
  overflow: hidden;
  height: 38px;
  border-radius: 8px;
  background: #edf2f0;
}

.preview-bar span:first-child {
  width: 58%;
  background: var(--accent);
}

.preview-bar span:last-child {
  flex: 1;
  background: #a7c957;
}

.product-result small {
  color: var(--muted);
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(18, 23, 34, 0.09);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 250, 248, 0.76)),
    radial-gradient(circle at 8% 0%, rgba(15, 127, 104, 0.08), transparent 42%);
  box-shadow: 0 20px 54px rgba(38, 52, 47, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.metrics-strip div {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 6px;
  min-width: 0;
  min-height: 72px;
  padding: 11px 12px;
  border: 1px solid rgba(18, 23, 34, 0.07);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
}

.metrics-strip span {
  color: var(--ink);
  font-size: 1.48rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metrics-strip small {
  align-self: end;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.22;
  text-wrap: pretty;
}

.calculator-section,
.content-grid,
.site-footer {
  scroll-margin-top: 112px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 18px;
}

.section-tabs {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(140%);
}

.section-tab {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 15px;
  font-size: 0.88rem;
  font-weight: 560;
}

.section-tab.is-active {
  background: var(--ink);
  color: #fff;
}

.section-view[hidden] {
  display: none;
}

.content-grid[hidden] {
  display: none;
}

.workspace-grid,
.gross-net-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 470px);
  align-items: start;
  gap: 18px;
}

.gross-net-input-stack {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.calculator-panel,
.glass-panel,
.formula-panel,
.checklist-panel,
.source-list {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(140%);
}

.calculator-panel,
.checklist-panel,
.source-list {
  padding: 22px;
}

.result-rail {
  position: sticky;
  top: 92px;
  z-index: 2;
  display: grid;
  gap: 14px;
}

.glass-panel {
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.76));
}

.formula-panel {
  padding: 18px;
  background: linear-gradient(180deg, rgba(244, 248, 247, 0.96), rgba(255, 255, 255, 0.78));
  box-shadow: var(--shadow-soft);
}

.wide-formula-panel {
  grid-column: 1;
}

.panel-heading,
.subsection-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.panel-heading {
  margin-bottom: 20px;
}

.panel-heading.compact {
  margin-bottom: 14px;
}

.privacy-note {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 127, 104, 0.18);
  border-radius: 14px;
  background: rgba(225, 243, 238, 0.72);
}

.privacy-note p {
  margin-bottom: 0;
  color: #2d5b52;
  font-size: 0.88rem;
  line-height: 1.38;
}

.subsection-heading {
  margin: 24px 0 12px;
}

.subsection-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.field-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

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

.field-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-grid-note {
  grid-column: 1 / -1;
  margin-top: -2px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field span {
  color: #36414d;
  font-size: 0.82rem;
  font-weight: 580;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  padding: 0 12px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

input:disabled {
  color: #42505f;
  opacity: 1;
}

select {
  appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, #526170 50%),
    linear-gradient(135deg, #526170 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 19px,
    calc(100% - 12px) 19px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

input:focus,
select:focus {
  border-color: rgba(15, 127, 104, 0.58);
  box-shadow: 0 0 0 4px rgba(15, 127, 104, 0.12);
}

#vacationStart,
#vacationEnd,
.holiday-date {
  padding-right: 42px;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)),
    url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3.5' y='4.75' width='13' height='11.5' rx='2.25' stroke='%23066d59' stroke-width='1.5'/%3E%3Cpath d='M6.5 3.25V6.25M13.5 3.25V6.25M4 8.25H16' stroke='%23066d59' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position:
    0 0,
    calc(100% - 12px) 50%;
  background-repeat: no-repeat;
  background-size:
    auto,
    20px 20px;
}

.month-field {
  min-width: 0;
}

.month-button {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3.5' y='4.75' width='13' height='11.5' rx='2.25' stroke='%23066d59' stroke-width='1.5'/%3E%3Cpath d='M6.5 3.25V6.25M13.5 3.25V6.25M4 8.25H16' stroke='%23066d59' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") calc(100% - 12px) 50% / 20px 20px no-repeat,
    rgba(255, 255, 255, 0.88);
  color: var(--ink);
  padding: 0 42px 0 12px;
  text-align: left;
  text-transform: capitalize;
  font-weight: 500;
  outline: none;
}

.month-button:hover {
  border-color: rgba(15, 127, 104, 0.26);
  background-color: rgba(255, 255, 255, 0.96);
}

.month-button:focus-visible {
  border-color: rgba(15, 127, 104, 0.58);
  box-shadow: 0 0 0 4px rgba(15, 127, 104, 0.12);
}

.date-picker-popover {
  position: fixed;
  z-index: 60;
  width: min(328px, calc(100vw - 24px));
  padding: 12px;
  border: 1px solid rgba(18, 23, 34, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 249, 0.9)),
    radial-gradient(circle at 12% 0%, rgba(15, 127, 104, 0.1), transparent 42%);
  box-shadow: 0 28px 74px rgba(38, 52, 47, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(22px) saturate(150%);
}

.month-picker-popover {
  position: fixed;
  z-index: 60;
  width: min(304px, calc(100vw - 24px));
  padding: 12px;
  border: 1px solid rgba(18, 23, 34, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 249, 0.9)),
    radial-gradient(circle at 12% 0%, rgba(15, 127, 104, 0.1), transparent 42%);
  box-shadow: 0 28px 74px rgba(38, 52, 47, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(22px) saturate(150%);
}

.date-picker-popover[hidden],
.month-picker-popover[hidden] {
  display: none;
}

.date-picker-header,
.month-picker-header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.date-picker-header strong,
.month-picker-header strong {
  color: var(--ink);
  text-align: center;
  font-size: 0.98rem;
  font-weight: 620;
  text-transform: capitalize;
}

.date-picker-header button,
.date-picker-grid button,
.date-picker-footer button,
.month-picker-header button,
.month-picker-grid button,
.month-picker-footer button {
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #34414d;
  font-weight: 580;
}

.date-picker-header button,
.month-picker-header button {
  min-height: 40px;
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(18, 23, 34, 0.08);
  color: var(--accent-strong);
  font-size: 1.35rem;
  line-height: 1;
}

.date-picker-weekdays,
.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.month-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.date-picker-weekdays {
  margin-bottom: 6px;
}

.date-picker-weekdays span {
  display: grid;
  min-height: 26px;
  place-items: center;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 620;
}

.date-picker-grid button,
.date-picker-empty {
  min-height: 36px;
}

.date-picker-grid button {
  font-variant-numeric: tabular-nums;
}

.date-picker-header button:hover,
.date-picker-grid button:hover,
.date-picker-footer button:hover,
.month-picker-header button:hover,
.month-picker-grid button:hover,
.month-picker-footer button:hover {
  border-color: rgba(15, 127, 104, 0.2);
  background: rgba(225, 243, 238, 0.78);
  color: var(--accent-strong);
}

.date-picker-grid button.is-today,
.month-picker-grid button.is-current {
  border-color: rgba(15, 127, 104, 0.24);
  background: rgba(225, 243, 238, 0.55);
  color: var(--accent-strong);
}

.date-picker-grid button.is-selected,
.month-picker-grid button.is-selected {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 127, 104, 0.22);
}

.month-picker-grid button {
  min-height: 44px;
  text-transform: capitalize;
}

.date-picker-footer,
.month-picker-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(18, 23, 34, 0.08);
}

.date-picker-footer button,
.month-picker-footer button {
  min-height: 36px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--accent-strong);
  font-size: 0.82rem;
}

.field-hint,
.field-error {
  min-height: 15px;
  font-size: 0.73rem;
  line-height: 1.3;
}

.field-hint {
  color: var(--muted);
}

.field-error {
  color: var(--danger);
}

button,
.primary-button,
.secondary-button,
.ghost-button,
.text-button {
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

button:active,
.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.text-button:active {
  transform: translateY(1px);
}

.primary-button,
.secondary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 0.92rem;
  font-weight: 560;
  white-space: nowrap;
}

.primary-button {
  border: 1px solid var(--accent-strong);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 34px rgba(15, 127, 104, 0.22);
}

.primary-button:hover {
  background: var(--accent-strong);
  text-decoration: none;
}

.secondary-button {
  border: 1px solid rgba(15, 127, 104, 0.22);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.secondary-button:disabled {
  opacity: 0.48;
}

.ghost-button,
.text-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: #313b46;
}

.text-link {
  color: #24303c;
  font-weight: 540;
}

.income-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
}

.income-head,
.income-row {
  display: grid;
  grid-template-columns: minmax(128px, 0.85fr) minmax(108px, 0.7fr) minmax(108px, 0.7fr) minmax(150px, 1fr) minmax(84px, 0.38fr);
  gap: 8px;
  align-items: center;
}

.income-head {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 560;
  text-transform: uppercase;
}

.income-row {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(18, 23, 34, 0.07);
}

.income-row:last-child {
  border-bottom: 0;
}

.check-cell {
  display: flex;
  justify-content: center;
}

.check-cell input {
  width: 22px;
  min-height: 22px;
  accent-color: var(--accent);
}

.holiday-disclosure {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-soft);
}

.holiday-disclosure[open] {
  background: rgba(255, 255, 255, 0.78);
}

.holiday-summary {
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  list-style: none;
}

.holiday-summary::-webkit-details-marker {
  display: none;
}

.holiday-summary::after {
  content: "+";
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--accent-strong);
  font-weight: 600;
}

.holiday-disclosure[open] .holiday-summary::after {
  content: "-";
}

.holiday-summary h3 {
  margin-bottom: 5px;
}

.holiday-summary p,
.holiday-tools p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.holiday-summary-status {
  justify-self: end;
  max-width: 260px;
  border: 1px solid rgba(15, 127, 104, 0.2);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 8px 12px;
  text-align: right;
  font-size: 0.78rem;
  font-weight: 540;
  line-height: 1.25;
}

.holiday-disclosure:not(.has-matches) .holiday-summary-status {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
}

.holiday-disclosure-body {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

.holiday-tools {
  align-items: center;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(18, 23, 34, 0.08);
}

.holiday-list {
  display: grid;
  gap: 10px;
  max-height: min(440px, 54vh);
  overflow: auto;
  padding-right: 4px;
}

.holiday-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(160px, 1fr) auto 42px;
  gap: 8px;
  align-items: center;
}

.holiday-row.is-official input {
  border-color: rgba(15, 127, 104, 0.16);
  background-color: rgba(225, 243, 238, 0.42);
}

.holiday-row.is-in-vacation input {
  border-color: rgba(15, 127, 104, 0.48);
  background-color: #e1f3ee;
  box-shadow: inset 0 0 0 1px rgba(15, 127, 104, 0.12);
}

.holiday-badge {
  min-height: 34px;
  border: 1px solid rgba(15, 127, 104, 0.24);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 8px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.holiday-badge[hidden] {
  display: none;
}

.icon-button {
  width: 42px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #3a4652;
  font-size: 1rem;
  font-weight: 600;
}

.validation-box {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(180, 35, 24, 0.18);
  border-radius: 14px;
  background: rgba(255, 242, 240, 0.9);
}

.validation-box.warning {
  border-color: rgba(161, 92, 7, 0.2);
  background: rgba(255, 247, 237, 0.92);
}

.validation-box ul {
  margin: 0;
  padding-left: 18px;
  color: #4c2320;
}

.validation-box.warning ul {
  color: #5f3b0a;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.method-badge {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 540;
}

.method-badge.is-average {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.method-badge.is-guarantee {
  background: #fff7ed;
  color: var(--warning);
}

.result-content.empty-state {
  display: grid;
  min-height: 260px;
  gap: 12px;
  place-items: center;
  align-content: center;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.mascot-mini,
.empty-mascot {
  flex: 0 0 auto;
  color: var(--accent);
}

.mascot-mini {
  width: 34px;
  height: 34px;
}

.empty-mascot {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 12px 24px rgba(15, 127, 104, 0.14));
}

.mascot-mini path:first-child,
.empty-mascot path:first-child {
  fill: var(--accent);
}

.mascot-mini path:nth-child(2),
.empty-mascot path:nth-child(2) {
  fill: #19a487;
}

.mascot-mini path:nth-child(3),
.empty-mascot path:nth-child(3) {
  fill: var(--ink);
}

.mascot-mini path:nth-child(4),
.empty-mascot path:nth-child(4) {
  fill: #d8f1eb;
}

.executive-result {
  display: grid;
  gap: 14px;
}

.payable-summary {
  display: grid;
  gap: 12px;
}

.payable-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.result-factor-grid {
  display: grid;
  gap: 10px;
}

.result-factor-grid .kpi-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.result-factor-grid .kpi-card strong {
  margin-top: 0;
  font-size: 1.12rem;
  text-align: right;
}

.hero-total {
  padding: 18px;
  border: 1px solid rgba(15, 127, 104, 0.2);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, var(--accent-soft));
}

.hero-total.net-total {
  border-color: rgba(15, 127, 104, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #e6f5ef 100%);
}

.hero-total span,
.kpi-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-total strong {
  display: block;
  margin-top: 8px;
  color: var(--accent-strong);
  font-size: 2.16rem;
  font-variant-numeric: tabular-nums;
}

.hero-total small {
  display: block;
  margin-top: 8px;
  color: #52606d;
  font-size: 0.8rem;
  font-weight: 560;
  line-height: 1.35;
}

.holiday-result-note {
  border: 1px solid rgba(15, 127, 104, 0.2);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 9px 12px;
  font-size: 0.8rem;
  font-weight: 540;
  line-height: 1.25;
}

.reason-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(244, 248, 247, 0.94), rgba(255, 255, 255, 0.78));
}

.reason-card h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.94rem;
}

.reason-card ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: reasons;
}

.reason-card li {
  counter-increment: reasons;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(18, 23, 34, 0.08);
}

.reason-card li:first-child {
  border-top: 0;
  padding-top: 0;
}

.reason-card li::before {
  content: counter(reasons);
  display: grid;
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(15, 127, 104, 0.16);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 600;
}

.reason-card span,
.reason-card strong {
  grid-column: 2;
  min-width: 0;
}

.reason-card span {
  display: block;
  color: #3c4652;
  font-size: 0.8rem;
  font-weight: 580;
  line-height: 1.35;
}

.reason-card strong {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 560;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.result-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kpi-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.kpi-card.net-card {
  background: rgba(225, 243, 238, 0.74);
}

.kpi-card.deduction-card {
  border-color: var(--deduction-line);
  background: linear-gradient(180deg, #fffdfd, var(--deduction-soft));
}

.kpi-card.deduction-card span {
  color: #8e514b;
}

.kpi-card.deduction-card strong {
  color: var(--deduction);
}

.kpi-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.34rem;
  font-variant-numeric: tabular-nums;
}

.breakdown-chart {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(250, 252, 251, 0.8);
}

.breakdown-chart h4,
.deduction-breakdown h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.94rem;
}

.breakdown-chart p {
  margin: 12px 0 0;
  color: #52606d;
  font-size: 0.78rem;
  line-height: 1.45;
}

.stacked-bar {
  display: flex;
  overflow: hidden;
  height: 22px;
  border-radius: 999px;
  background: #ecefed;
}

.bar-salary {
  background: #22303d;
}

.bar-vacation {
  background: var(--accent);
}

.chart-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 999px;
}

.legend-dot.salary {
  background: #22303d;
}

.legend-dot.vacation {
  background: var(--accent);
}

.month-breakdown {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.result-disclosure {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.result-disclosure summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
}

.result-disclosure summary::-webkit-details-marker {
  display: none;
}

.result-disclosure summary::after {
  content: "+";
  float: right;
  color: var(--accent-strong);
  font-size: 1.05rem;
}

.result-disclosure[open] summary {
  border-bottom: 1px solid var(--line);
}

.result-disclosure[open] summary::after {
  content: "-";
}

.disclosure-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.deduction-breakdown {
  padding: 14px;
  border: 1px solid var(--deduction-line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdfd, var(--deduction-soft));
}

.deduction-breakdown h4 {
  color: #8e514b;
}

.month-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(18, 23, 34, 0.08);
  color: var(--muted);
  font-size: 0.8rem;
}

.month-row strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.formula-panel h3,
.formula-panel h4 {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.formula-panel h4 {
  margin-top: 0;
  color: #1f2933;
  font-size: 0.88rem;
}

.formula-panel p {
  margin-bottom: 0;
  color: #52606d;
  line-height: 1.5;
}

.formula-section {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.formula-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.formula-grid .formula-section {
  min-width: 0;
}

.formula-section-deductions {
  padding: 12px;
  border: 1px solid var(--deduction-line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdfd, rgba(255, 247, 245, 0.62));
}

.formula-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 8px 0;
  border-top: 1px solid rgba(31, 41, 51, 0.1);
}

.formula-row.deduction-row {
  margin-inline: -6px;
  padding-inline: 6px;
  border-top-color: var(--deduction-line);
  border-radius: 10px;
  background: rgba(255, 247, 245, 0.72);
}

.formula-row.deduction-row span,
.formula-row.deduction-row small {
  color: #8e514b;
}

.formula-row.deduction-row strong {
  color: var(--deduction);
}

.formula-row span {
  min-width: 0;
  color: #3c434d;
  font-size: 0.8rem;
  font-weight: 600;
}

.formula-row small {
  display: block;
  margin-top: 3px;
  color: #69707a;
  font-size: 0.72rem;
  font-weight: 480;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.formula-row strong {
  max-width: 140px;
  color: var(--ink);
  font-size: 0.82rem;
  text-align: right;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.formula-row-full-value {
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

.formula-row-full-value strong {
  max-width: none;
  justify-self: stretch;
  text-align: left;
}

.formula-rules {
  margin-top: 14px;
  padding-left: 12px;
  border-left: 4px solid #d8a100;
}

.formula-rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.formula-rules-grid .formula-rules {
  margin-top: 10px;
}

.formula-rules-public {
  border-left-color: var(--accent);
}

.formula-rules strong {
  display: block;
  margin-bottom: 8px;
}

.formula-rules ul,
.checklist-panel ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #3c4652;
  font-size: 0.84rem;
  line-height: 1.4;
}

.formula-rules-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.checks-panel {
  align-self: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 245, 0.9)),
    var(--surface);
}

.checks-panel h3 {
  margin-bottom: 12px;
}

.checks-panel ul {
  counter-reset: checks;
  gap: 0;
  padding-left: 0;
  list-style: none;
}

.checks-panel li {
  counter-increment: checks;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 12px 0;
  border-top: 1px solid rgba(18, 23, 34, 0.08);
  color: #2f3c49;
  font-weight: 540;
}

.checks-panel li:first-child {
  border-top: 0;
}

.checks-panel li::before {
  content: counter(checks, decimal-leading-zero);
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(15, 127, 104, 0.14);
  border-radius: 10px;
  background: #e4f4ef;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.backend-error,
.skeleton-list {
  display: grid;
  min-height: 140px;
  place-items: center;
  border: 1px dashed rgba(18, 23, 34, 0.18);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}

.backend-error {
  border-color: rgba(180, 35, 24, 0.24);
  color: var(--danger);
}

.skeleton-list {
  gap: 10px;
  padding: 18px;
}

.skeleton-line {
  width: 100%;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #edf0ef, #f8faf9, #edf0ef);
  background-size: 240% 100%;
  animation: shimmer 1.2s infinite linear;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.7fr);
  gap: 18px;
  margin-top: 56px;
}

#how {
  align-items: center;
}

#how .content-block {
  align-self: center;
}

.privacy-terms-section {
  display: grid;
  gap: 18px;
  margin-top: 56px;
  scroll-margin-top: 112px;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.policy-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.policy-card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.policy-card h3 {
  margin-bottom: 12px;
  font-size: 1.08rem;
}

.policy-card p {
  margin: 0;
  color: #3c4652;
  line-height: 1.48;
}

.policy-card-heading h3 {
  margin-bottom: 0;
}

.policy-card ul {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: #3c4652;
  line-height: 1.45;
}

.content-block,
.checklist-panel,
.source-list {
  min-width: 0;
}

.source-list {
  display: grid;
  gap: 12px;
  align-content: start;
}

.source-list a {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.source-list a:last-child {
  border-bottom: 0;
}

.rules-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(15, 127, 104, 0.22);
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(15, 127, 104, 0.08);
  font-size: 0.82rem;
  font-weight: 560;
}

.audit-source-list {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(18, 23, 34, 0.08);
}

.audit-source-list span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 560;
  text-transform: uppercase;
}

.audit-source-list a {
  color: var(--accent-strong);
  text-decoration: none;
  font-size: 0.86rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  max-width: 680px;
  margin: 6px 0 0;
  line-height: 1.5;
}

.site-footer .footer-author {
  color: #344250;
  font-weight: 600;
}

.site-footer .footer-copyright {
  color: #344250;
  font-weight: 540;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
}

@keyframes shimmer {
  to {
    background-position: -240% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1220px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .mobile-section-nav {
    display: flex;
  }

  .hero-section,
  .workspace-grid,
  .gross-net-grid,
  .content-grid,
  .privacy-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-section {
    min-height: auto;
    padding: 44px 0 26px;
  }

  .product-shell {
    grid-template-columns: 92px minmax(0, 1fr) 250px;
  }

  .result-rail {
    position: static;
  }

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

  .formula-grid {
    grid-template-columns: 1fr;
  }

  .formula-rules-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: 100%;
    max-width: 100%;
    padding: 8px 10px 44px;
    overflow: hidden;
  }

  .topbar {
    position: static;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .status-pill {
    justify-content: flex-start;
    min-width: 0;
  }

  .language-toggle {
    justify-self: start;
  }

  .hero-section {
    gap: 26px;
    padding: 28px 0 24px;
    min-width: 0;
  }

  .hero-copy {
    width: min(100%, 360px);
    max-width: calc(100vw - 32px);
  }

  h1 {
    font-size: 1.78rem;
    line-height: 1.06;
    overflow-wrap: anywhere;
    text-wrap: pretty;
  }

  h2 {
    font-size: 1.78rem;
    line-height: 1.08;
  }

  .hero-copy > p:not(.trust-label) {
    max-width: calc(100vw - 32px);
    font-size: 0.9rem;
    line-height: 1.42;
    overflow-wrap: anywhere;
  }

  .hero-actions,
  .form-actions,
  .panel-heading,
  .subsection-heading,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .ghost-button,
  .text-button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .product-shell {
    display: none;
  }

  .product-sidebar {
    display: none;
  }

  .product-main,
  .product-result {
    padding: 18px;
    border-left: 0;
    border-right: 0;
  }

  .metrics-strip,
  .field-grid.two,
  .field-grid.three,
  .payable-metrics,
  .result-factor-grid,
  .result-summary-grid {
    grid-template-columns: 1fr;
  }

  .metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
    padding: 7px;
    border-radius: 17px;
  }

  .metrics-strip div {
    min-height: 66px;
    padding: 10px;
    border-radius: 12px;
  }

  .metrics-strip span {
    font-size: 1.3rem;
  }

  .metrics-strip small {
    max-width: 100%;
    font-size: 0.7rem;
    line-height: 1.16;
    overflow-wrap: anywhere;
  }

  .section-tabs {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .section-tab {
    min-height: 38px;
    font-size: 0.84rem;
    white-space: normal;
  }

  .calculator-panel,
  .glass-panel,
  .formula-panel,
  .checklist-panel,
  .source-list,
  .policy-card {
    padding: 16px;
    border-radius: 18px;
  }

  .income-table {
    overflow: visible;
  }

  .income-head {
    display: none;
  }

  .income-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .income-row + .income-row {
    border-top: 1px solid rgba(18, 23, 34, 0.08);
  }

  .check-cell {
    justify-content: flex-start;
  }

  .check-cell::after {
    content: attr(data-label);
    margin-left: 9px;
    color: var(--muted);
    font-size: 0.86rem;
  }

  .holiday-row {
    grid-template-columns: 1fr;
  }

  .date-picker-popover {
    width: min(344px, calc(100vw - 20px));
    padding: 10px;
    border-radius: 18px;
  }

  .month-picker-popover {
    width: min(336px, calc(100vw - 20px));
    padding: 10px;
    border-radius: 18px;
  }

  .date-picker-grid button,
  .date-picker-empty {
    min-height: 34px;
  }

  .month-picker-grid button {
    min-height: 40px;
  }

  .holiday-summary {
    grid-template-columns: 1fr;
  }

  .holiday-summary::after {
    display: none;
  }

  .holiday-summary-status {
    justify-self: stretch;
    max-width: none;
    text-align: left;
  }

  .holiday-tools {
    align-items: stretch;
  }

  .holiday-badge {
    justify-self: start;
  }

  .icon-button {
    width: 100%;
  }

  .hero-total strong {
    font-size: 2rem;
  }

  .kpi-card strong {
    font-size: 1.3rem;
  }

  .chart-legend {
    grid-template-columns: 1fr;
  }

}
