/* Frekans palette, typography and shared controls */
:root {
  --paper: #f7f7f3;
  --white: #fff;
  --ink: #191b17;
  --muted: #555b52;
  --line: #dadfd4;
  --green: #30532e;
  --band: #edeee8;
  --lime: #d9fa72;
  --focus: #285ec7;
  --danger: #9b2929;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #171a16;
  --white: #1e221d;
  --ink: #f4f5ec;
  --muted: #bdc5b6;
  --line: #3c4539;
  --green: #d9fa72;
  --band: #20251e;
  --focus: #aac6ff;
  --danger: #ffb0a6;
}
[hidden] {
  display: none !important;
}
body {
  overflow-wrap: break-word;
}
button,
input,
select {
  font: inherit;
}
button,
select,
summary {
  cursor: pointer;
}
:where(a, button, input, select, summary):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
.skip {
  color: #191b17;
}
.shell {
  width: min(1240px, calc(100% - 96px));
}
.header {
  min-height: 83px;
  gap: 20px;
}
.brand {
  flex: none;
  letter-spacing: -0.06em;
  font-weight: 900;
}
.brand span {
  color: var(--green);
}
.header nav,
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}
.header-tools,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.button {
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 800;
  text-align: center;
  transition:
    background-color 180ms,
    border-color 180ms,
    transform 180ms;
}
.button.primary {
  background: var(--lime);
  color: #191b17;
}
.button.primary:hover {
  background: #e9ff9d;
}
.button.outline {
  border-color: var(--line);
  color: inherit;
  background: transparent;
}
.button.outline:hover {
  background: var(--band);
}
select,
input,
.icon-control,
.close-dialog {
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
}
.header-tools select {
  font-size: 14px;
  min-width: 0;
}
.icon-control,
.close-dialog {
  width: 44px;
  padding: 0;
  font-size: 21px;
}
.icon-control:hover,
.close-dialog:hover {
  background: var(--band);
}

/* Opening */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
.hero-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
  z-index: -2;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(12 14 18 / 72%);
  z-index: -1;
}
.hero {
  min-height: 0;
  position: relative;
  isolation: isolate;
  color: white;
  background: #101013;
  border-block: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  justify-items: center;
  min-block-size: min(64svh, 560px);
  padding-block: 64px;
  text-align: center;
  background: none;
}
.hero h1 {
  max-inline-size: 26ch;
  font-family: "Space Grotesk", Manrope, system-ui, sans-serif;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0;
  margin: 0 auto;
  text-wrap: balance;
}
:lang(zh-CN) .hero h1 {
  line-height: 1.25;
  letter-spacing: 0;
}
.hero .hero-description {
  max-inline-size: 60ch;
  color: #eceee8;
  font-size: 1.125rem;
  line-height: 1.5;
  margin: 14px auto 0;
  text-wrap: pretty;
}
.hero-actions {
  justify-content: center;
  gap: 10px;
  margin-block-start: 24px;
}
.hero-channels {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 760px);
  margin: 35px 0 0;
  padding: 0;
  text-align: start;
}
.hero-channels a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  height: 100%;
  min-block-size: 52px;
  padding: 8px 11px;
  border: 1px solid rgb(255 255 255 / 29%);
  border-radius: 8px;
  background: rgb(26 28 31 / 76%);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.3;
  font-weight: 750;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%);
  transition:
    background-color 180ms,
    border-color 180ms;
}
@supports (backdrop-filter: blur(12px)) {
  .hero-channels a {
    background: rgb(39 42 43 / 51%);
    backdrop-filter: blur(12px);
  }
}
.hero-channels img {
  filter: invert(1);
}
.hero-channel-arrow {
  color: var(--lime);
}
.hero-channels a:hover,
.hero-channels a:focus-visible {
  background: rgb(61 68 49 / 88%);
  border-color: var(--lime);
}
.hero :where(a):focus-visible {
  outline-color: var(--lime);
}
.hero-actions .button {
  min-height: 51px;
  padding-inline: 16px;
}
.hero-stage {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 16px 44px #1a231014;
}
.stage-visual {
  position: relative;
  isolation: isolate;
  border-radius: 16px;
  overflow: hidden;
  background: #201a30 url("./assets/hero.webp") center / cover;
  aspect-ratio: 1.6;
}
.stage-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stage-caption {
  position: absolute;
  inset: auto 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  background: #14171af5;
  border: 1px solid #ffffff30;
  color: #fff;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 750;
}
.stage-caption a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
}
.stage-caption a:hover {
  color: var(--lime);
}
.stage-mark {
  flex: none;
}
.channel-band {
  background: none;
  border: 0;
}
.channel-nav {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding-top: 7px;
}
.channel-nav a:nth-child(n) {
  min-height: 62px;
  padding: 6px 3px;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 10px;
  line-height: 1.2;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.channel-nav a:hover {
  background: var(--band);
}
.channel-nav a[aria-current] {
  background: var(--band);
  border-color: var(--line);
  color: var(--green);
}
[data-theme="dark"] :is(.channel-nav, .price) img {
  filter: invert(1);
}

/* Product overview and pricing */
.section {
  padding-block: clamp(56px, 7vw, 102px);
}
.section-heading {
  margin-bottom: 28px;
  align-items: end;
}
.section-heading h2,
.faq h2 {
  margin: 0;
  font-size: clamp(32px, 4.1vw, 62px);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.section-heading p {
  color: var(--muted);
  max-width: 53ch;
}
.section-heading > div > p {
  margin-top: 12px;
}
.products {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.product:nth-child(n) {
  grid-column: span 5;
  align-items: start;
  grid-template: auto 1fr / minmax(0, 1fr);
  gap: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  transition:
    transform 230ms,
    box-shadow 230ms;
}
.product:nth-child(4n + 1),
.product:nth-child(4n + 4) {
  grid-column: span 7;
}
.product:nth-child(n) .art {
  order: 0;
  aspect-ratio: auto;
  height: clamp(180px, 21vw, 290px);
  padding: 0;
  border-radius: 12px;
  background: var(--band);
}
.art img {
  border-radius: inherit;
  object-position: center;
}
.product-copy {
  padding: 20px 18px 9px;
}
.product-copy h3 {
  font-size: clamp(24px, 3vw, 35px);
  letter-spacing: -0.045em;
}
.product-copy li::before {
  content: "✓";
}
.product-copy a::after,
.price > a::after {
  content: "↗";
}
.product-copy a {
  color: var(--green);
}
@media (hover: hover) {
  .product:hover,
  .price:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px #14200f13;
  }
}
.pricing {
  background: var(--band);
}
.price-list {
  gap: 12px;
}
.price {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 18px;
  padding: 20px;
  border-radius: 16px;
  min-width: 0;
  overflow-wrap: anywhere;
  transition:
    transform 230ms,
    box-shadow 230ms;
}
.price img {
  margin-bottom: 14px;
}
.price p {
  margin-top: 4px;
}
.price strong {
  color: var(--ink);
  font-size: clamp(22px, 2.45vw, 33px);
  letter-spacing: -0.045em;
}
.price > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  min-height: 44px;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}
.price > a:hover {
  text-decoration: underline;
}

/* Calculator, FAQ and footer */
.calculator-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 34px;
}
.calculator-section .section-heading {
  margin: 0;
}
.calculator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px;
  background: var(--white);
}
.calc-fields,
.calc-result {
  padding: clamp(14px, 2vw, 24px);
}
.calc-fields,
#login-form {
  display: grid;
  align-content: start;
  gap: 8px;
}
.calc-fields select {
  min-width: 0;
  width: 100%;
  margin-bottom: 8px;
}
.calc-fields label,
#login-form label {
  font-weight: 800;
  font-size: 14px;
}
.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.field-row input,
#login-form input {
  width: 100%;
}
.field-row span {
  color: var(--muted);
  font-size: 13px;
}
.calc-result {
  display: grid;
  align-content: center;
  gap: 18px;
  margin: 0;
  border-radius: 13px;
  background: #22291d;
  color: #f4f5ec;
}
.calc-result dt {
  color: #d1d9cc;
  font-size: 14px;
}
.calc-result dd {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.calc-result div:last-child dd {
  color: var(--lime);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}
#calc-error,
#ivr-count-error,
#login-status,
#telegram-status {
  color: var(--danger);
  font-size: 14px;
}
[aria-invalid="true"] {
  border-color: var(--danger);
}
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 34px;
  border-top: 1px solid var(--line);
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding: 12px 0;
  font-weight: 800;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 22px;
  color: var(--green);
}
.faq [open] summary::after {
  content: "−";
}
.faq details p {
  max-width: 60ch;
  margin-bottom: 16px;
  color: var(--muted);
}
.footer {
  padding-inline-end: 64px;
}
.footer nav {
  color: var(--muted);
  font-size: 14px;
}
.fx-status {
  color: var(--muted);
  font-size: 13px;
  margin-block: 6px 14px;
}
.fx-status:empty {
  margin-block: 0;
}

.product-features {
  border-top: 1px solid var(--line);
  padding-block: 8px;
}
.product-features summary {
  padding-block: 6px;
  color: var(--green);
  font-weight: 750;
}
.product-features ul {
  margin-top: 8px;
}
.footer .footer-contact {
  flex-wrap: wrap;
  min-width: 0;
}
.footer .footer-contact a {
  overflow-wrap: anywhere;
}
.footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Account dialogs and fixed contact button */
.telegram-widget {
  position: fixed;
  z-index: 3;
  bottom: max(16px, env(safe-area-inset-bottom));
  right: max(16px, env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #191b17;
  background: var(--lime);
  box-shadow: 0 5px 18px #1a231028;
}
.telegram-widget:hover {
  background: #e9ff9d;
}
html:has(dialog[open]) {
  overflow: hidden;
}
dialog {
  width: min(780px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 18px 72px #0006;
}
dialog::backdrop {
  background: #0b100bbc;
}
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.auth-visual {
  display: grid;
  align-content: end;
  min-height: 355px;
  border-radius: 13px;
  padding: 26px;
  color: #fff;
  background:
    linear-gradient(0deg, #161027 3%, #161027e8 30%, #16102715 75%),
    url("./assets/mail.webp") center / cover;
}
.auth-visual h2,
.auth-content h2 {
  font-size: 27px;
  line-height: 1.12;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.auth-visual p {
  margin-top: 8px;
}
.auth-content {
  position: relative;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 60px 24px 24px;
}
.close-dialog {
  position: absolute;
  right: 4px;
  top: 4px;
  line-height: 1;
}
#login-form .button {
  margin-top: 8px;
}
.signup-dialog {
  width: min(420px, calc(100% - 32px));
}
#signup-link[aria-disabled="true"] {
  background: var(--band);
  color: var(--muted);
  border-color: var(--line);
  cursor: not-allowed;
}

@media (max-width: 1100px) {
  .shell {
    width: calc(100% - 64px);
  }
  .header {
    flex-wrap: wrap;
    gap: 3px 24px;
    padding-top: 10px;
  }
  .header nav {
    order: 3;
    width: 100%;
  }
  .calculator-section,
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .shell {
    width: calc(100% - 36px);
  }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    min-block-size: 0;
    padding-block: 42px;
  }
  .hero h1 {
    font-size: 2.75rem;
  }
  .hero-channels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-inline-size: 425px;
    margin-block-start: 26px;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 9px;
  }
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product:nth-child(n) {
    grid-column: auto;
  }
  .product:nth-child(n) .art {
    height: auto;
    aspect-ratio: 1.6;
  }
  .product-copy {
    padding-inline: 10px;
  }
  .footer {
    flex-wrap: wrap;
  }
  .footer nav {
    order: 3;
    width: 100%;
  }
}
@media (max-width: 550px) {
  .header-tools {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  }
  .header-tools select {
    grid-column: span 2;
    width: 100%;
  }
  .header-tools .outline {
    grid-column: 1 / 3;
  }
  .hero h1 {
    max-inline-size: 17ch;
    font-size: 2.25rem;
  }
  .hero .hero-description {
    font-size: 0.9375rem;
    margin-block-start: 12px;
  }
  .hero-channels {
    margin-block-start: 22px;
    gap: 6px;
  }
  .hero-channels a {
    min-block-size: 44px;
    gap: 6px;
    padding-inline: 7px;
    font-size: 0.8125rem;
  }
  .hero-channels img {
    width: 17px;
    height: 17px;
  }
  .hero-actions {
    margin-block-start: 18px;
    gap: 6px;
  }
  .hero-actions .button {
    min-height: 44px;
    padding-inline: 9px;
    font-size: 13px;
  }
  .hero-inner {
    padding-block: 36px;
  }
  .footer {
    padding-inline-end: 42px;
  }
  .header-tools .button {
    height: 100%;
  }
  .products,
  .calculator,
  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-visual {
    min-height: 185px;
    padding: 16px;
  }
  .auth-content {
    padding-inline: 14px;
  }
  .price {
    padding: 13px;
  }
  .stage-caption {
    inset: auto 7px 7px;
    padding: 3px 8px;
  }
}
@media (max-width: 359px) {
  .price-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .channel-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* Navigation and customer panel access */
.hero-actions .outline {
  border-color: rgb(255 255 255 / 70%);
}
.hero-actions .outline:hover {
  background-color: rgb(255 255 255 / 15%);
}
.header-panel {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
}
.header .menu-toggle {
  display: none;
}
.menu-icon {
  width: 16px;
  height: 12px;
  border-block: 2px solid currentColor;
  position: relative;
  flex: none;
}
.menu-icon::after {
  content: "";
  position: absolute;
  inset: 3px 0 auto;
  border-top: 2px solid currentColor;
}
.header {
  min-height: 94px;
}
.header .brand {
  font-size: 30px;
  font-weight: 800;
  gap: 9px;
}
.header .brand img {
  width: 34px;
  height: 34px;
}
.header .main-nav {
  width: auto;
  order: 0;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}
.header .main-nav a {
  padding: 0 11px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
}
.header .main-nav a:hover {
  background: var(--band);
  color: var(--ink);
  text-decoration: none;
}
.header-tools .button {
  letter-spacing: -0.02em;
  font-size: 13px;
  gap: 6px;
}
.header-tools select {
  font-size: 13px;
  font-weight: 750;
}
.hero h1 {
  letter-spacing: 0;
}
.hero-actions .primary {
  box-shadow: 0 4px 0 #93aa51;
}
.hero-stage {
  box-shadow: 0 24px 64px #20291c24;
}
.panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.panel-list :is(a, .unavailable-panel) {
  min-height: 48px;
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
}
.panel-list a:hover {
  background: var(--band);
}
.unavailable-panel,
.panel-status {
  color: var(--muted);
}
.panel-status {
  font-size: 13px;
}
[data-theme="dark"] .panel-list img {
  filter: invert(1);
}
@media (max-width: 1100px) {
  .header {
    position: relative;
    z-index: 4;
    min-height: 66px;
    padding-block: 10px;
  }
  .nav-ready .header .menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    padding-inline: 12px;
    font-size: 13px;
    font-weight: 750;
  }
  .nav-ready .header-panel {
    position: absolute;
    inset: calc(100% - 2px) 0 auto;
    max-block-size: calc(100dvh - 76px);
    overflow-y: auto;
    box-shadow: 0 12px 28px rgb(0 0 0 / 15%);
  }
  .header-panel {
    flex: 1 0 100%;
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
  }
  .header .main-nav {
    display: grid;
    order: 0;
    width: 100%;
    border: 0;
    padding: 0;
  }
  .header .main-nav a {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .header-panel .header-tools {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
    gap: 8px;
  }
  .header-panel .header-tools select {
    width: 100%;
    min-width: 0;
    grid-column: auto;
  }
  .header-panel .header-tools .outline {
    grid-column: 1 / 2;
  }
  .header-panel .header-tools .primary {
    grid-column: 2 / 4;
  }
}
@media (max-width: 550px) {
  .header-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .header-tools select {
    width: auto;
    max-width: 100%;
  }
  .header .main-nav a {
    padding-inline: 7px;
  }
}

.styled-select {
  appearance: none;
  padding-inline: 13px 36px;
  background: var(--white) url("./assets/chevron.svg") right 12px center / 14px
    no-repeat;
  font-family: inherit;
  font-weight: 750;
  color: var(--ink);
  transition:
    border-color 180ms,
    box-shadow 180ms;
}
.styled-select:hover {
  border-color: var(--green);
}
[data-theme="dark"] .styled-select {
  background-image: url("./assets/chevron-light.svg");
}
@supports (appearance: base-select) {
  .styled-select,
  .styled-select::picker(select) {
    appearance: base-select;
  }
  .styled-select::picker-icon {
    display: none;
  }
  .styled-select::picker(select) {
    margin-block: 5px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--white);
    color: var(--ink);
    padding: 4px;
    box-shadow: 0 12px 26px #10151026;
  }
  .styled-select option {
    padding: 9px 12px;
    border-radius: 7px;
    font: inherit;
  }
  .styled-select option:is(:checked, :hover, :focus-visible) {
    background: var(--band);
  }
}
.footer {
  font-family: Manrope, system-ui, sans-serif;
}
.footer nav a,
.footer .back-top {
  font-size: 14px;
  font-weight: 750;
}
.footer .back-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.calc-control-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.calc-control-group input {
  width: 100%;
}
.calc-help {
  font-size: 13px;
  color: var(--muted);
}
#meta-error,
#login-error {
  font-size: 14px;
  color: var(--danger);
}
#meta-result {
  display: grid;
  gap: 8px;
}
#meta-result dd {
  font-size: 16px;
}
.mail-packages {
  margin-top: 16px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.mail-packages summary {
  min-height: 48px;
  padding: 11px 0;
  font-weight: 800;
}
.mail-packages ul {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 178px), 1fr));
  gap: 8px;
}
.mail-packages a {
  display: grid;
  padding: 8px 11px;
  background: var(--band);
  border-radius: 8px;
  font-size: 14px;
}
.mail-packages a:hover {
  text-decoration: underline;
}
.auth-dialog {
  width: min(880px, calc(100% - 28px));
}
.auth-dialog .auth-visual {
  align-content: space-between;
  gap: 28px;
  min-height: 410px;
}
.auth-preview {
  display: grid;
  gap: 8px;
}
.sample-label {
  font-size: 12px;
  font-weight: 800;
  color: #e1dbff;
}
.sample-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  background: #161326eb;
  border: 1px solid #ffffff38;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.32;
}
.sample-row img {
  filter: invert(1);
}
.sample-row span {
  display: block;
  color: #e1dbff;
  margin-top: 3px;
}
.auth-switch,
.register-copy {
  font-size: 14px;
  color: var(--muted);
}
.auth-switch button {
  min-height: 44px;
  border: 0;
  padding: 0 4px;
  background: none;
  color: var(--green);
  font-weight: 800;
  text-decoration: underline;
}
@media (max-width: 550px) {
  .auth-dialog .auth-visual {
    min-height: 0;
    gap: 16px;
  }
  .auth-dialog .auth-content {
    grid-row: 1;
    padding-top: 52px;
  }
}
