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

#amo-livechat iframe,
.amo-button-holder iframe,
#amo-form-container iframe {
  color-scheme: light;
}

:root {
  color-scheme: dark;

  --pink-red: #e43f6f;
  --magenta: #e43fa2;
  --blue: #4e83fc;
  --purple: #9544b4;
  --space: #313942;

  --pink-red-dark: #cc2f5d;
  --pink-red-light: #eb5d86;
  --magenta-dark: #c42e88;
  --magenta-light: #f071bd;
  --blue-dark: #4571d4;
  --blue-light: #81a7ff;
  --purple-dark: #732393;
  --purple-light: #cb6ad0;

  --green: #2a892e;
  --green-light: #62c966;
  --red: #e23030;
  --red-light: #ff5c5c;
  --orange: #f28022;
  --orange-light: #ffa75e;
  --sky: #0288d1;
  --sky-light: #03a9f4;

  --bg-primary: #0e1114;
  --bg-secondary: #161a1f;
  --bg-card: #1c2229;
  --bg-card-hover: #242b33;
  --border: #262d35;
  --border-light: var(--space);

  --text-primary: #ffffff;
  --text-secondary: #b8c0ca;
  --text-muted: #7d8792;

  --accent: var(--pink-red);
  --accent-hover: var(--pink-red-light);
  --accent-subtle: rgba(228, 63, 111, 0.1);
  --accent-line: rgba(228, 63, 111, 0.3);

  --accent-text: var(--accent);

  --ok: var(--green-light);
  --warn: var(--orange-light);
  --risk: var(--pink-red);
  --risk-dark: var(--magenta-dark);
  --info: var(--blue-light);

  --accent-wash: rgba(228, 63, 111, 0.12);
  --accent-glow: rgba(228, 63, 111, 0.16);

  --ok-wash: rgba(98, 201, 102, 0.14);
  --warn-wash: rgba(255, 167, 94, 0.14);
  --info-wash: rgba(129, 167, 255, 0.14);

  --nav-bg: rgba(14, 17, 20, 0.82);
  --sticky-bg: rgba(14, 17, 20, 0.92);
  --glass-bg: rgba(28, 34, 41, 0.86);
  --overlay: rgba(0, 0, 0, 0.72);
  --dot-pattern: rgba(255, 255, 255, 0.035);

  --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-6: 0 32px 80px rgba(0, 0, 0, 0.5);

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-14: 56px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 100px;

  --font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;

  --max-width: 1200px;
  --gutter: var(--sp-5);

  --section-gap: min(clamp(48px, 7vw, 112px), 8vh);
  --nav-h: 72px;
}

:root {

  --ui-bg: #0f2231;
  --ui-surface: rgba(255, 255, 255, 0.02);
  --ui-surface-2: rgba(255, 255, 255, 0.05);
  --ui-surface-3: rgba(255, 255, 255, 0.04);
  --ui-track: rgba(255, 255, 255, 0.08);
  --ui-border: rgba(255, 255, 255, 0.08);
  --ui-border-soft: rgba(255, 255, 255, 0.07);
  --ui-border-strong: rgba(255, 255, 255, 0.12);

  --ui-text: #e6eaf2;
  --ui-text-body: #c8ccd8;
  --ui-text-dim: #9da5b4;
  --ui-text-muted: #7a8a9a;
  --ui-text-faint: #5f6d7c;
  --ui-link: #6aa6e8;

  --ui-hint-bg: rgba(255, 200, 90, 0.06);
  --ui-hint-border: rgba(255, 200, 90, 0.25);
  --ui-call-bg: rgba(52, 168, 83, 0.18);
  --ui-call-fg: #4ade80;
  --ui-call-badge: #34a853;

  --ui-launcher-bg: #eef1f5;
  --ui-launcher-shadow: 0 0 0 10px rgba(149, 68, 180, 0.14),
    0 0 46px rgba(149, 68, 180, 0.55), 0 0 90px rgba(228, 63, 111, 0.3);

  --ui-panel-bg: #10141a;
  --ui-panel-surface: rgba(255, 255, 255, 0.03);
  --ui-panel-border: rgba(255, 255, 255, 0.1);
  --ui-panel-border-soft: rgba(255, 255, 255, 0.06);
  --ui-panel-line: var(--space);
  --ui-panel-shadow: -24px 0 60px rgba(0, 0, 0, 0.45);
  --ui-panel-text: #ffffff;
  --ui-panel-text-dim: #b8c0ca;
  --ui-panel-text-muted: #7d8792;
  --ui-accent: var(--pink-red);
  --ui-accent-text: var(--pink-red);
  --ui-accent-wash: rgba(228, 63, 111, 0.14);
  --ui-accent-line: rgba(228, 63, 111, 0.3);
}

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

  --bg-primary: #ffffff;

  --bg-secondary: rgba(45, 56, 75, 0.05);
  --bg-card: #ffffff;
  --bg-card-hover: #f8f9fc;
  --border: #3139423b;
  --border-light: #3139426b;

  --text-primary: #000000de;

  --text-secondary: #313942d1;
  --text-muted: #313942b3;

  --accent-hover: var(--pink-red-dark);
  --accent-text: var(--pink-red-dark);
  --accent-subtle: rgba(228, 63, 111, 0.08);
  --accent-line: rgba(228, 63, 111, 0.28);
  --accent-wash: rgba(228, 63, 111, 0.07);
  --accent-glow: rgba(228, 63, 111, 0.13);

  --ok: var(--green);
  --warn: var(--orange);
  --info: var(--blue-dark);
  --ok-wash: rgba(42, 137, 46, 0.1);
  --warn-wash: rgba(242, 128, 34, 0.12);
  --info-wash: rgba(69, 113, 212, 0.1);

  --nav-bg: rgba(255, 255, 255, 0.82);
  --sticky-bg: rgba(255, 255, 255, 0.92);
  --glass-bg: rgba(255, 255, 255, 0.86);
  --overlay: rgba(49, 57, 66, 0.55);
  --dot-pattern: rgba(49, 57, 66, 0.07);

  --shadow-1: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px rgba(0, 0, 0, 0.14),
    0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-2: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px rgba(0, 0, 0, 0.14),
    0 1px 5px rgba(0, 0, 0, 0.12);
  --shadow-6: 0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px rgba(0, 0, 0, 0.14),
    0 1px 18px rgba(0, 0, 0, 0.12);

  --ui-bg: #ffffff;
  --ui-surface: #f4f5f6;
  --ui-surface-2: #3139420f;
  --ui-surface-3: #f7f8f9;
  --ui-track: #3139421f;
  --ui-border: #3139423b;
  --ui-border-soft: #31394226;
  --ui-border-strong: #3139426b;

  --ui-text: #000000de;
  --ui-text-body: #313942d1;
  --ui-text-dim: #313942bf;
  --ui-text-muted: #313942b3;
  --ui-text-faint: #3139428f;
  --ui-link: var(--blue-dark);

  --ui-hint-bg: rgba(242, 128, 34, 0.08);
  --ui-hint-border: rgba(242, 128, 34, 0.4);
  --ui-call-bg: rgba(42, 137, 46, 0.12);
  --ui-call-fg: var(--green);
  --ui-call-badge: var(--green);

  --ui-launcher-bg: #eef1f5;
  --ui-launcher-shadow: 0 0 0 6px rgba(149, 68, 180, 0.1),
    0 0 24px rgba(149, 68, 180, 0.25), 0 6px 16px rgba(49, 57, 66, 0.22);

  --ui-panel-bg: #ffffff;
  --ui-panel-surface: #3139420f;
  --ui-panel-border: #3139423b;
  --ui-panel-border-soft: #3139421f;
  --ui-panel-line: #3139426b;
  --ui-panel-shadow: -24px 0 60px rgba(49, 57, 66, 0.18);
  --ui-panel-text: #000000de;
  --ui-panel-text-dim: #313942d1;
  --ui-panel-text-muted: #313942b3;
  --ui-accent-text: var(--pink-red-dark);
  --ui-accent-wash: rgba(228, 63, 111, 0.09);
  --ui-accent-line: rgba(228, 63, 111, 0.28);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg-primary);
  background-image: radial-gradient(
    circle at 1px 1px,
    var(--dot-pattern) 1px,
    transparent 0
  );
  background-size: 38px 38px;
  color: var(--text-primary);
  overflow-x: hidden;
}

:root[data-theme="light"] body {
  background-image: radial-gradient(
      circle at 1px 1px,
      var(--dot-pattern) 1px,
      transparent 0
    ),
    radial-gradient(
      1100px 760px at 92% -8%,
      rgba(228, 63, 111, 0.12),
      transparent 62%
    ),
    radial-gradient(
      1000px 780px at 2% 34%,
      rgba(78, 131, 252, 0.11),
      transparent 64%
    ),
    radial-gradient(
      900px 720px at 48% 112%,
      rgba(149, 68, 180, 0.09),
      transparent 66%
    );
  background-size: 38px 38px, cover, cover, cover;
  background-attachment: scroll, fixed, fixed, fixed;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-gap) 0;
}

.section--tight {
  padding: calc(var(--section-gap) * 0.6) 0;
}

.section__badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  margin-bottom: 20px;
}

.section__title {
  font-size: min(clamp(28px, 3.8vw, 48px), 6vh);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  text-wrap: balance;
}

.section__subtitle {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 640px;
  text-wrap: pretty;
}

.section__head {
  margin-bottom: min(clamp(32px, 5vw, 64px), 7vh);
}

.section__head--center {
  text-align: center;
}

.section__head--center .section__subtitle {
  margin-left: auto;
  margin-right: auto;
}

.accent {
  color: var(--accent-text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

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

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn--secondary:hover {
  background: var(--bg-card);
  border-color: var(--text-muted);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 17px;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__logo {
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-spin {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__spin-icon {
  width: 28px;
  height: 28px;
}

.nav__spin-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav__links a {
  font-size: 15px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--text-primary);
}

.nav__group {
  position: relative;

  padding: 14px 0;
  margin: -14px 0;
}

.nav__group-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav__group-btn:hover,
.nav__group-btn[aria-expanded="true"] {
  color: var(--text-primary);
}

.nav__group-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.nav__group-btn[aria-expanded="true"] .nav__group-chevron {
  transform: rotate(180deg);
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -6px);
  min-width: 260px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.nav__group:hover .nav__dropdown,
.nav__group:focus-within .nav__dropdown,
.nav__group-btn[aria-expanded="true"] + .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav__dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.nav__dropdown a:hover {
  background: var(--accent-subtle);
}

.nav__dropdown-title {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.nav__dropdown-text {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__phone {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
}

.nav__phone:hover {
  color: var(--accent-text);
}

.nav__cta {
  padding: 12px 20px;
  font-size: 15px;
}

.nav__login {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav__login:hover {
  color: var(--text-primary);
}

.nav__theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav__theme:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
  background: var(--bg-card);
}

.nav__theme svg {
  width: 18px;
  height: 18px;
}

.nav__theme-sun {
  display: block;
}

.nav__theme-moon {
  display: none;
}

:root[data-theme="light"] .nav__theme-sun {
  display: none;
}

:root[data-theme="light"] .nav__theme-moon {
  display: block;
}

:root[data-theme="light"] img[src$="logo.svg"] {
  content: url("assets/logo-dark.svg");
}

.nav__burger {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  position: relative;
}

.nav__burger span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.25s, opacity 0.2s;
}

.nav__burger span:nth-child(1) {
  top: 15px;
}
.nav__burger span:nth-child(2) {
  top: 20px;
}
.nav__burger span:nth-child(3) {
  top: 25px;
}

.nav__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px var(--gutter) 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}

.nav__mobile.is-open {
  display: flex;
}

.nav__mobile a {
  font-size: 17px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.nav__mobile a:last-of-type {
  border-bottom: none;
}

.nav__mobile-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 0 4px;
}

.nav__mobile a.nav__mobile-sub {
  padding-left: 16px;
}

.nav__mobile .btn {
  margin-top: 12px;
}

.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 56px var(--gutter) 0;
}

.footer__container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 40px;
}

.footer__logo {
  text-decoration: none;
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  color: var(--text-secondary);
}

.footer__info a {
  color: var(--text-secondary);
  text-decoration: none;
  width: fit-content;
}

.footer__info a:hover {
  color: var(--accent-text);
}

.footer__nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__nav a {
  font-size: 15px;
  color: var(--text-secondary);
  text-decoration: none;
}

.footer__nav a:hover {
  color: var(--text-primary);
}

.footer__social-link {
  display: inline-flex;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.footer__social-link:hover {
  opacity: 1;
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0 24px;
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer__bottom-inner a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer__bottom-inner a:hover {
  color: var(--accent-text);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 900px) {
  :root {
    --nav-h: 64px;
    --gutter: 20px;
  }

  .nav__links,
  .nav__actions {
    display: none;
  }

  .nav__theme {
    margin-left: auto;
  }

  .nav__burger {
    display: block;
    margin-left: 0;
  }

  .footer__main {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.portrait,
.calc {
  font-size: 16px;
  line-height: 1.6;
}

.portrait {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}

.portrait__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.portrait__title {
  font-size: 16px;
  font-weight: 600;
}

.portrait__sub {
  font-size: 14px;
  color: var(--text-muted);
}

.portrait__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 1px;
  background: var(--border);
}

.portrait__col {
  background: var(--bg-card);
  padding: var(--sp-2) var(--sp-5);
}

.portrait__col--calls {
  background: var(--bg-secondary);
}

.portrait__col-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--sp-2) 0 var(--sp-1);
}

.portrait__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-5);
  align-items: baseline;
  padding: var(--sp-2) 0;
  font-size: 15px;
}

.portrait__ops {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.portrait__calls {
  list-style: none;
}

.portrait__calls li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-4);
  align-items: baseline;
  padding: var(--sp-1) 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.portrait__calls b {
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.portrait__total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-5);
  align-items: baseline;
  padding: var(--sp-4) var(--sp-5);
  background: linear-gradient(
    135deg,
    var(--accent-wash) 0%,
    var(--bg-card) 65%
  );
  border-top: 1px solid var(--accent-line);
}

.portrait__total-label {
  font-size: 17px;
  font-weight: 600;
}

.portrait__total-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.portrait__total-value span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}

.calc__heading {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: var(--sp-10) 0 var(--sp-5);
}

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.calc__inputs,
.calc__output {
  background: var(--bg-card);
  padding: clamp(24px, 3vw, 36px);
}

.calc__output {
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
}

.calc__field {
  margin-bottom: 28px;
}

.calc__field:last-child {
  margin-bottom: 0;
}

.calc__field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.calc__label {
  font-size: 15px;
  color: var(--text-secondary);
}

.calc__value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.calc__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: var(--border-light);
  outline: none;
  cursor: pointer;
}

.calc__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-card);
  box-shadow: var(--shadow-1);
  cursor: pointer;
}

.calc__range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-card);
  cursor: pointer;
}

.calc__range:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.calc__scale {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 8px;
}

.calc__out-block {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.calc__out-block:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.calc__out-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.calc__out-value {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.calc__out-value--accent {
  color: var(--accent-text);
}

.calc__out-value span {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}

.calc__breakdown {
  list-style: none;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
}

.calc__breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
}

.calc__breakdown b {
  color: var(--text-secondary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.calc__cta {
  margin-top: auto;
  padding-top: 24px;
}

.calc__cta .btn {
  width: 100%;
}

.calc__note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-top: 12px;
}

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

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

@media (min-width: 1024px) and (max-height: 1000px) {
  .calc__inputs,
  .calc__output {
    padding: var(--sp-5);
  }

  .calc__field {
    margin-bottom: var(--sp-2);
  }

  .calc__field-head {
    margin-bottom: var(--sp-2);
  }

  .calc__breakdown {
    margin-top: var(--sp-2);
  }

  .calc__breakdown li {
    padding: 3px 0;
  }

  .calc__out-block {
    padding-bottom: var(--sp-4);
    margin-bottom: var(--sp-4);
  }

  .calc__out-value {
    font-size: 30px;
  }

  .calc__cta {
    padding-top: var(--sp-4);
  }

  .calc__note {
    margin-top: var(--sp-2);
  }

  .calc__scale {
    margin-top: var(--sp-1);
  }

  .section__badge {
    margin-bottom: var(--sp-4);
    padding: 6px 14px;
  }

  .section__title {
    margin-bottom: var(--sp-2);
  }
}
