:root {
  --atl-blue: #0c273c;
  --atl-ice: #d3e6f0;
  --atl-silver: #f2f2f2;
  --atl-white: #ffffff;
  --atl-ink: #071723;
  --atl-line: #c6d9e3;
  --atl-muted: #667b89;
  --atl-good: #24856f;
  --atl-warn: #bd6f1d;
  --atl-focus: rgba(211, 230, 240, 0.75);
  --surface: #ffffff;
  --surface-soft: #f7fbfd;
  --shadow: 0 18px 46px rgba(12, 39, 60, 0.13);
  --shadow-sm: 0 8px 24px rgba(12, 39, 60, 0.09);
  --radius: 8px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-data: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

[data-theme="dark"] {
  --atl-ink: #eaf5fa;
  --atl-muted: #a9bec9;
  --atl-line: #24465a;
  --surface: #102d42;
  --surface-soft: #0b2233;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--atl-silver);
  color: var(--atl-ink);
  font-family: var(--font-body);
}

html[data-calculator-state="loading"] .deal-strip,
html[data-calculator-state="loading"] .results,
html[data-calculator-state="loading"] .seo-content,
html[data-calculator-state="error"] .deal-strip,
html[data-calculator-state="error"] .results,
html[data-calculator-state="error"] .seo-content {
  opacity: 0.62;
}

html[data-calculator-state="loading"] .deal-strip,
html[data-calculator-state="error"] .deal-strip {
  position: relative;
}

html[data-calculator-state="loading"] .deal-strip::after,
html[data-calculator-state="error"] .deal-strip::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.56);
  color: var(--atl-blue);
  content: "Загрузка калькулятора…";
  font-weight: 800;
  pointer-events: none;
}

html[data-calculator-state="error"] .deal-strip::after {
  background: rgba(255, 255, 255, 0.76);
  content: "Калькулятор временно недоступен";
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(211, 230, 240, 0.9), rgba(242, 242, 242, 0.95) 300px),
    var(--atl-silver);
  color: var(--atl-ink);
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at 50% -120px, rgba(211, 230, 240, 0.2), transparent 370px),
    #071723;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: wait;
}

.bootstrap-retry {
  display: inline-flex;
  min-height: 42px;
  margin-top: 8px;
  padding: 8px 16px;
  border: 1px solid var(--atl-blue);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--atl-blue);
  font-weight: 800;
}

.bootstrap-retry[hidden] {
  display: none;
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: var(--atl-blue);
  box-shadow: 0 8px 26px rgba(7, 23, 35, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--atl-white);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
}

.brand-mark img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-name {
  display: block;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}

.brand-sub {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 600;
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(211, 230, 240, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--atl-white);
}

.sun {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 -10px 0 -7px currentColor, 0 10px 0 -7px currentColor, 10px 0 0 -7px currentColor, -10px 0 0 -7px currentColor;
}

.shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 28px clamp(16px, 3vw, 34px) 34px;
}

.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--atl-blue);
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

[data-theme="dark"] .eyebrow {
  color: var(--atl-ice);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  color: var(--atl-blue);
  font-size: clamp(32px, 3.4vw, 54px);
  line-height: 1;
  font-weight: 800;
}

[data-theme="dark"] h1 {
  color: var(--atl-white);
}

.intro-copy {
  max-width: 520px;
  margin-bottom: 6px;
  color: var(--atl-muted);
  font-size: 16px;
  line-height: 1.5;
}

.deal-strip {
  margin-bottom: 20px;
}

.control-panel,
.results > .empty-state,
.kpi-card,
.tax-card,
.benefit-card,
.chart-card,
.table-card {
  border: 1px solid var(--atl-line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.control-panel {
  position: relative;
  overflow: hidden;
}

.panel-head {
  position: relative;
  display: block;
  min-height: auto;
  padding: 18px 22px;
  background: var(--atl-blue);
  color: var(--atl-white);
}

.panel-head::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 98px;
  height: 98px;
  transform: translateY(-50%);
  background: url("logo.svg") center / contain no-repeat;
  opacity: 0.08;
}

.panel-head h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.15;
}

.panel-kicker {
  position: relative;
  z-index: 1;
  margin-bottom: 6px;
  color: var(--atl-ice);
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.panel-head p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.panel-body {
  flex: 1;
  min-width: 0;
  padding: 18px 22px 22px;
}

.horizontal-panel {
  display: block;
}

.form-grid,
.calc-row {
  display: grid;
  gap: 12px;
}

.calc-row {
  --module-label-h: 24px;
  --module-control-h: 48px;
  --module-helper-h: 56px;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.calc-row-primary {
  --module-helper-h: 0px;
  grid-template-columns: repeat(24, minmax(0, 1fr));
}

.calc-row-primary > :nth-child(1) {
  grid-column: span 6;
}

.calc-row-primary > :nth-child(2) {
  grid-column: span 8;
}

.calc-row-primary > :nth-child(3) {
  grid-column: span 4;
}

.calc-row-primary > :nth-child(4) {
  grid-column: span 6;
}

.calc-row-secondary {
  --module-helper-h: 0px;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--atl-line);
}

.calc-row-sliders {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--atl-line);
}

.scale-module {
  display: grid;
  grid-template-rows: 16px 22px 16px;
  gap: 4px;
  min-width: 0;
  padding: 0 4px;
}

.calc-row-secondary > :nth-child(1) {
  grid-column: span 6;
}

.calc-row-secondary > :nth-child(2) {
  grid-column: span 4;
}

.calc-row-secondary > :nth-child(3) {
  grid-column: span 5;
}

.calc-row-secondary > :nth-child(4) {
  grid-column: span 5;
}

.calc-row-secondary > :nth-child(5) {
  grid-column: span 4;
}

.calc-module {
  display: grid;
  grid-template-rows: var(--module-label-h) var(--module-control-h) var(--module-helper-h);
  min-width: 0;
  gap: 8px;
}

.module-label,
.module-helper {
  display: block;
  min-width: 0;
}

.module-label {
  grid-row: 1;
  height: var(--module-label-h);
}

.calc-module > .input-unit,
.calc-module > input[type="text"],
.calc-module > .segmented,
.calc-module > .calc-button {
  grid-row: 2;
  align-self: start;
}

.calc-module > .module-helper {
  grid-row: 3;
}

.action-module .module-label {
  height: var(--module-label-h);
}

.action-module {
  grid-template-rows: var(--module-label-h) auto var(--module-helper-h);
}

.field {
  display: block;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.field.calc-module,
.action-module.calc-module {
  display: grid;
}

.calc-row > .field,
.calc-row > .action-module {
  align-self: start;
}

.label {
  display: block;
  min-height: 0;
  height: var(--module-label-h);
  margin-bottom: 0;
  color: var(--atl-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.label small {
  color: var(--atl-muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

input[type="number"],
input[type="text"] {
  font-size: 16px;
  width: 100%;
  height: 48px;
  min-height: 48px;
  border: 1px solid var(--atl-line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--atl-ink);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input[type="number"] {
  appearance: textfield;
  font-family: var(--font-data);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

input:focus {
  border-color: var(--atl-blue);
  box-shadow: 0 0 0 4px var(--atl-focus);
  background: var(--surface);
}

.input-unit {
  position: relative;
  display: block;
}

.input-unit input {
  padding-right: 56px;
  font-family: var(--font-data);
}

.input-unit b {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--atl-blue);
  font-size: 13px;
}

[data-theme="dark"] .input-unit b {
  color: var(--atl-ice);
}

.range-field {
  display: grid;
  grid-template-rows: 16px 22px 16px;
  gap: 4px;
  margin: 0;
  overflow: visible;
  padding: 0 4px;
}

.range-current {
  display: block;
  grid-row: 1;
  height: 16px;
  color: var(--atl-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

input[type="range"] {
  grid-row: 2;
  align-self: center;
  width: 100%;
  height: 6px;
  appearance: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--atl-blue) var(--progress, 0%), rgba(12, 39, 60, 0.12) var(--progress, 0%));
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  appearance: none;
  border: 3px solid var(--atl-white);
  border-radius: 50%;
  background: var(--atl-blue);
  box-shadow: 0 5px 14px rgba(12, 39, 60, 0.28);
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid var(--atl-white);
  border-radius: 50%;
  background: var(--atl-blue);
  box-shadow: 0 5px 14px rgba(12, 39, 60, 0.28);
}

.range-scale {
  display: flex;
  grid-row: 3;
  justify-content: space-between;
  margin-top: 0;
  color: var(--atl-muted);
  font-size: 12px;
}

.rate-source {
  min-height: 18px;
  color: var(--atl-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

.rate-restore {
  min-height: 24px;
  border: 1px solid var(--atl-line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--atl-blue);
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
}

.rate-restore:hover {
  border-color: var(--atl-blue);
  background: var(--atl-blue);
  color: var(--atl-white);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  height: 48px;
}

.segment {
  min-height: 48px;
  border: 1px solid var(--atl-line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--atl-muted);
  font-size: 13px;
  font-weight: 800;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.segment.active,
.segment:focus-visible {
  border-color: var(--atl-blue);
  background: var(--atl-blue);
  color: var(--atl-white);
}

@media (hover: hover) and (pointer: fine) {
  .segment:hover {
    border-color: var(--atl-blue);
    background: var(--atl-blue);
    color: var(--atl-white);
  }
}

input[type="range"] {
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.seasonal-config {
  display: none;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--atl-line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.seasonal-config.visible {
  display: block;
}

.season-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.season-grid label {
  display: grid;
  gap: 6px;
  color: var(--atl-muted);
  font-size: 12px;
  font-weight: 700;
}

.season-grid input {
  min-height: 42px;
  padding: 8px;
  text-align: center;
}

.calc-button,
.pdf-button {
  min-height: 52px;
  border-radius: var(--radius);
  background: var(--atl-blue);
  color: var(--atl-white);
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.calc-button {
  width: 100%;
  min-height: 48px;
  height: 48px;
  margin-top: 0;
  border: 1px solid var(--atl-line);
  background: var(--surface-soft);
  color: var(--atl-ink);
  box-shadow: none;
}

.calc-button:hover {
  transform: translateY(-1px);
  background: var(--atl-white);
}

.pdf-button:hover {
  transform: translateY(-1px);
  background: #123650;
}

.calc-button.modal-submit {
  border-color: var(--atl-blue);
  background: var(--atl-blue);
  color: var(--atl-white);
  box-shadow: 0 14px 24px rgba(12, 39, 60, 0.24);
}

.results {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.results > * {
  min-width: 0;
}

.empty-state {
  display: grid;
  min-height: 300px;
  place-items: center;
  padding: 42px 20px;
  text-align: center;
}

.empty-state img {
  width: 76px;
  height: 76px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--atl-blue);
}

.empty-state h2 {
  margin: 18px 0 8px;
  font-size: 22px;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--atl-muted);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.kpi-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--atl-blue);
}

.kpi-card.good::before {
  background: var(--atl-good);
}

.kpi-card.warn::before {
  background: var(--atl-warn);
}

.kpi-label,
.kpi-sub,
.tax-desc,
.table-note {
  color: var(--atl-muted);
  font-size: 12px;
  font-weight: 700;
}

.kpi-value {
  margin: 8px 0 7px;
  color: var(--atl-blue);
  font-family: var(--font-data);
  font-size: clamp(17px, 1.8vw, 23px);
  font-weight: 600;
  line-height: 1.12;
}

[data-theme="dark"] .kpi-value,
[data-theme="dark"] .tax-amount,
[data-theme="dark"] .total-benefit {
  color: var(--atl-ice);
}

.tax-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tax-card {
  padding: 18px;
}

.tax-title {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 800;
}

.tax-amount {
  margin-bottom: 5px;
  color: var(--atl-blue);
  font-family: var(--font-data);
  font-size: 22px;
  font-weight: 600;
}

.benefit-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.benefit-card > div {
  min-width: 0;
}

.benefit-card > div:last-child {
  text-align: right;
}

.benefit-card h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.total-benefit {
  color: var(--atl-blue);
  font-family: var(--font-data);
  font-size: 24px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.chart-card {
  min-width: 0;
  padding: 18px;
}

.chart-card h3,
.table-head h3 {
  margin-bottom: 14px;
  font-size: 18px;
}

.chart-box {
  position: relative;
  height: 270px;
}

.svg-chart {
  display: grid;
  min-height: 238px;
  align-content: center;
  gap: 10px;
}

.svg-chart svg {
  width: 100%;
  height: 210px;
  overflow: visible;
}

.donut-segment {
  transition: stroke-width 0.18s ease;
}

.donut-segment:hover {
  stroke-width: 27px;
}

.bar-scroll {
  overflow-x: auto;
  overflow-y: hidden;
}

.bar-scroll svg {
  min-width: 420px;
}

.svg-chart text {
  fill: var(--atl-muted);
  font-family: var(--font-data);
  font-size: 11px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  color: var(--atl-muted);
  font-size: 12px;
  font-weight: 700;
}

.chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-legend-item i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.table-card {
  min-width: 0;
  overflow: hidden;
}

.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--atl-line);
}

.table-head > div {
  min-width: 0;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: var(--atl-ice);
  color: var(--atl-blue);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.pdf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 178px;
  padding: 0 16px;
  white-space: nowrap;
}

.download-actions {
  display: grid;
  gap: 6px;
  justify-items: stretch;
}

.download-helper {
  max-width: 260px;
  color: var(--atl-muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.download-helper[hidden] {
  display: none;
}

.web-rate-control[hidden] {
  display: none !important;
}

@media (max-width: 1320px) {
  .calc-row-primary,
  .calc-row-secondary,
  .calc-row-sliders {
    gap: 12px;
  }

  .segment {
    font-size: 12px;
  }
}

.table-scroll {
  width: 100%;
  overflow: auto;
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--atl-line);
  text-align: right;
  white-space: nowrap;
}

th:first-child,
td:first-child,
th:nth-child(2),
td:nth-child(2) {
  text-align: left;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-soft);
  color: var(--atl-muted);
  font-size: 12px;
  font-weight: 800;
}

td {
  font-family: var(--font-data);
}

tbody tr:last-child td {
  border-bottom: 0;
  background: var(--surface-soft);
  font-weight: 600;
}

.footer {
  padding: 18px clamp(16px, 3vw, 34px) 28px;
  color: var(--atl-muted);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.cookie-consent[hidden] {
  display: none;
}

html[data-cookie-consent] .cookie-consent {
  display: none;
}

.cookie-consent {
  position: fixed;
  z-index: 30;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(16px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 32px, 860px);
  box-sizing: border-box;
  margin: 0 auto;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: #0c273c;
  color: #fff;
  box-shadow: 0 14px 35px rgba(4, 18, 29, .28);
  font-size: 14px;
  line-height: 1.45;
}

.cookie-consent p {
  margin: 0;
}

.cookie-consent a {
  color: #fff;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.cookie-consent-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cookie-consent button {
  min-height: 42px;
  padding: 9px 13px;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}

.cookie-consent-necessary {
  border: 1px solid rgba(255, 255, 255, .65);
  background: transparent;
  color: #fff;
}

.cookie-consent-accept {
  border: 1px solid #fff;
  background: #fff;
  color: #0c273c;
}

.cookie-consent button:focus-visible {
  outline: 3px solid #7dd3fc;
  outline-offset: 2px;
}

.seo-content {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--atl-line);
}

.seo-lead {
  max-width: 840px;
}

.seo-lead h2,
.faq-block h2 {
  margin-bottom: 12px;
  color: var(--atl-blue);
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.15;
}

[data-theme="dark"] .seo-lead h2,
[data-theme="dark"] .faq-block h2 {
  color: var(--atl-white);
}

.seo-lead p,
.seo-panel p,
.faq-block p {
  color: var(--atl-muted);
  font-size: 15px;
  line-height: 1.65;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.seo-panel {
  min-width: 0;
  border-left: 4px solid var(--atl-blue);
  padding: 4px 0 4px 14px;
}

.seo-panel h3 {
  margin-bottom: 8px;
  color: var(--atl-ink);
  font-size: 16px;
  line-height: 1.3;
}

.seo-panel p {
  margin-bottom: 0;
}

.faq-block {
  max-width: 920px;
  margin-top: 30px;
}

.faq-block details {
  border-top: 1px solid var(--atl-line);
}

.faq-block details:last-child {
  border-bottom: 1px solid var(--atl-line);
}

.faq-block summary {
  min-height: 52px;
  padding: 16px 0;
  color: var(--atl-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
}

.faq-block summary::marker {
  color: var(--atl-blue);
}

.faq-block p {
  max-width: 760px;
  margin-bottom: 16px;
}

@media (max-width: 1180px) {
  .calc-row-primary > :nth-child(n),
  .calc-row-secondary > :nth-child(n) {
    grid-column: span 12;
  }

  .calc-row-secondary > :first-child {
    grid-column: span 24;
  }

  .calc-row-secondary > :last-child {
    grid-column: span 24;
  }

  .panel-head {
    min-height: auto;
  }
}

@media (max-width: 860px) {
  .intro {
    display: block;
  }

  .intro-copy {
    margin-top: 12px;
  }

  .calc-row {
    --module-label-h: auto;
  }

  .calc-module {
    grid-template-rows: auto minmax(var(--module-control-h), auto) auto;
  }

  .calc-module > .module-helper:empty,
  .action-module .module-label,
  .action-module .module-helper {
    display: none;
  }

  .action-module {
    grid-template-rows: auto;
    gap: 0;
  }

  .action-module > .action-buttons {
    grid-row: 1;
  }

  .calc-row-primary,
  .calc-row-secondary,
  .calc-row-sliders {
    grid-template-columns: repeat(24, minmax(0, 1fr));
  }

  .calc-row-primary > :nth-child(n),
  .calc-row-secondary > :nth-child(n) {
    grid-column: span 24;
  }

  .calc-row-sliders > :nth-child(n) {
    grid-column: span 24;
  }

  .label {
    line-height: 1.25;
    white-space: normal;
  }

  .kpi-grid,
  .tax-grid,
  .charts-grid,
  .seo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit-card,
  .table-head {
    align-items: stretch;
    flex-direction: column;
  }

  .pdf-button {
    width: 100%;
  }

  .download-helper {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .topbar {
    min-height: 66px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-sub {
    font-size: 11px;
  }

  .shell {
    padding-top: 20px;
  }

  .panel-body,
  .panel-head {
    padding-left: 18px;
    padding-right: 18px;
  }

  .panel-head h2 {
    font-size: 22px;
  }

  .benefit-card > div:last-child {
    text-align: left;
  }

  .segmented,
  .season-grid,
  .kpi-grid,
  .tax-grid,
  .charts-grid,
  .seo-grid {
    grid-template-columns: 1fr;
  }

  .segmented {
    height: auto;
  }

  .action-buttons {
    width: 100%;
  }

  h1 {
    font-size: 38px;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .cookie-consent {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .cookie-consent-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cookie-consent button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.action-buttons {
  grid-row: 2;
  display: grid;
  gap: 8px;
}

.request-button {
  min-height: 48px;
  border: 1px solid var(--atl-blue);
  border-radius: var(--radius);
  background: var(--atl-blue);
  color: var(--atl-white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(12, 39, 60, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.request-button:hover,
.request-button:focus-visible {
  transform: translateY(-1px);
  background: #123650;
}

.document-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 18px 0 8px;
  color: var(--atl-muted);
  font-size: 13px;
}

.document-links a {
  color: inherit;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  align-items: start;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 18, 29, .68);
}

.modal-dialog {
  position: relative;
  width: min(100%, 480px);
  max-height: min(calc(100dvh - 24px), calc(var(--modal-viewport-height, 100vh) - 24px));
  margin-top: var(--modal-viewport-top, 0px);
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--atl-line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(4, 18, 29, .28);
}

.modal-dialog h2 {
  margin: 0 32px 8px 0;
}

.modal-intro {
  margin: 0 0 20px;
  color: var(--atl-muted);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--atl-muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.form-control {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
}

.form-control input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--atl-line);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--atl-ink);
  font: inherit;
  font-size: 16px;
}

.check-control input,
.modal-submit,
.modal-close {
  touch-action: manipulation;
}

@supports not (height: 100dvh) {
  .modal-dialog { max-height: calc(100vh - 24px); }
}

.field-hint {
  color: var(--atl-muted);
  font-size: 12px;
  font-weight: 500;
}

.form-control.has-error input {
  border-color: #a33f3f;
  box-shadow: 0 0 0 3px rgba(163, 63, 63, 0.14);
}

.calc-module.has-error input,
.seasonal-config.has-error input {
  border-color: #a33f3f;
  box-shadow: 0 0 0 3px rgba(163, 63, 63, 0.14);
}

.type-field.has-error .segmented,
.seasonal-config.has-error {
  outline: 2px solid #a33f3f;
  outline-offset: 2px;
}

.calculator-form-message {
  min-height: 22px;
  margin-top: 14px;
  color: var(--atl-muted);
  font-size: 13px;
}

.calculator-form-message.error {
  color: #a33f3f;
}

.check-control {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 9px;
  margin-top: 14px;
  color: var(--atl-muted);
  font-size: 13px;
  line-height: 1.4;
}

.check-control input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
}

.check-control.has-error {
  color: #a33f3f;
}

.check-control.has-error input {
  outline: 2px solid #a33f3f;
  outline-offset: 1px;
}

.check-control a {
  color: inherit;
}

.modal-documents {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  color: var(--atl-muted);
  font-size: 12px;
  line-height: 1.45;
}

.modal-documents a {
  color: inherit;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
}

.form-message {
  min-height: 22px;
  margin-top: 14px;
  color: var(--atl-muted);
  font-size: 13px;
}

.form-message.error {
  color: #a33f3f;
}

.modal-submit {
  width: 100%;
  margin-top: 4px;
}

.legal-page {
  max-width: 900px;
  padding-top: 40px;
  padding-bottom: 60px;
}

.legal-page h1 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
}

.legal-page h2 {
  margin-top: 34px;
}

.legal-page p {
  max-width: 78ch;
  color: var(--atl-muted);
  line-height: 1.65;
}

.legal-source-text {
  margin: 0;
  max-width: 78ch;
  color: var(--atl-muted);
  font: inherit;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
