:root {
  --berry: #9b3d3f;
  --berry-deep: #6f2a2c;
  --berry-soft: #c47a7c;
  --berry-wash: #edd6d4;
  --cream: #f4ebe3;
  --paper: #fbf6f1;
  --ink: #2a1b1b;
  --muted: #6e5858;
  --line: rgba(111, 42, 44, 0.14);
  --gold: #b8956a;
  --leaf: #5c6b4e;
  --shadow: 0 18px 40px rgba(42, 27, 27, 0.08);
  --glow: 0 0 16px rgba(155, 61, 63, 0.42), 0 0 36px rgba(196, 122, 124, 0.28);
  --glow-strong: 0 0 10px rgba(255, 210, 208, 0.55), 0 0 28px rgba(155, 61, 63, 0.55), 0 0 56px rgba(155, 61, 63, 0.28);
  --radius: 18px;
  --header-h: 72px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Manrope, "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(155, 61, 63, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(92, 107, 78, 0.08), transparent 50%),
    var(--cream);
  line-height: 1.55;
  overflow-x: hidden;
  min-width: 0;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: 20px;
  box-sizing: border-box;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: auto;
  padding-top: env(safe-area-inset-top);
  background: rgba(244, 235, 227, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  overflow: visible;
}

.header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(251, 246, 241, 0.94);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.02em;
  color: var(--berry-deep);
}

.brand span {
  text-shadow: 0 0 18px rgba(155, 61, 63, 0.35);
  white-space: nowrap;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--berry-wash), 0 0 18px rgba(155, 61, 63, 0.45);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--berry);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang {
  position: relative;
  z-index: 80;
  flex: 0 0 auto;
}

.lang-btn {
  min-width: 44px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  background: var(--paper);
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  min-width: 148px;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  gap: 4px;
  z-index: 81;
}

.lang.open .lang-menu {
  display: grid;
}

.lang-menu button {
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
}

.lang-menu button:hover {
  background: var(--berry-wash);
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  place-items: center;
  gap: 5px;
  flex-direction: column;
}

.menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: calc(var(--header-h) + env(safe-area-inset-top)) 0 0 0;
  z-index: 45;
  background: rgba(251, 246, 241, 0.98);
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
  flex-direction: column;
  gap: 4px;
  overflow: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a,
.mobile-menu button {
  font-size: 20px;
  font-weight: 700;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  color: var(--ink);
}

.hero-art {
  line-height: 0;
  padding: 12px 0 0;
}

.hero-art picture,
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius);
}

.hero-art img {
  box-shadow: 0 0 40px rgba(155, 61, 63, 0.22), var(--shadow);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-row.center {
  justify-content: center;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  transition: 0.2s ease;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--berry);
  color: #fff8f4;
  box-shadow: var(--glow);
  text-shadow: 0 0 12px rgba(255, 232, 224, 0.45);
}

.btn-primary:hover {
  background: var(--berry-deep);
  box-shadow: var(--glow-strong);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--berry-soft);
  color: var(--berry-deep);
  box-shadow: 0 0 18px rgba(155, 61, 63, 0.22);
}

.section {
  padding: 88px 0;
}

.section.alt {
  background: rgba(251, 246, 241, 0.7);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--berry);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
}

.section-head h2 em {
  font-style: italic;
  color: var(--berry);
  text-shadow: 0 0 18px rgba(155, 61, 63, 0.35);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.tariffs {
  padding-top: 28px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  min-width: 0;
}

.plan-pic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.plan-pic img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: transparent;
}

.plan-pic .btn {
  width: 100%;
  max-width: 220px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover:not(.device-card) {
  border-color: var(--berry-soft);
  box-shadow: var(--shadow), 0 0 28px rgba(155, 61, 63, 0.2);
}

.modal input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.pay-methods button {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 13px;
  background: var(--cream);
}

.pay-methods button.active {
  background: var(--berry);
  border-color: var(--berry);
  color: #fff8f4;
}

.benefits,
.devices,
.steps,
.support-row {
  display: grid;
  gap: 16px;
}

.benefits {
  grid-template-columns: repeat(3, 1fr);
}

.benefit,
.devices .card,
.steps .card,
.support-card {
  padding: 24px;
}

.benefit .ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--berry-wash);
  color: var(--berry-deep);
  font-weight: 800;
  box-shadow: 0 0 14px rgba(155, 61, 63, 0.28);
}

.benefit .ico svg {
  width: 18px;
  height: 18px;
  display: block;
}

.benefit h3,
.steps h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.benefit p,
.steps p {
  margin: 0;
  color: var(--muted);
}

.devices {
  list-style: none;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.device-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: 32px 18px;
  column-gap: 14px;
  row-gap: 2px;
  align-items: center;
  cursor: default;
  transition: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

.device-card:hover,
.device-card:focus,
.device-card:active {
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.device-logo {
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.device-logo svg {
  width: 32px;
  height: 32px;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  outline: none;
}

.device-copy {
  display: contents;
}

.device-logo--android svg {
  fill: #3ddc84;
  filter: drop-shadow(0 0 8px rgba(61, 220, 132, 0.85));
}

.device-logo--ios svg {
  fill: #007aff;
  filter: drop-shadow(0 0 8px rgba(0, 122, 255, 0.8));
}

.device-logo--windows svg {
  filter: drop-shadow(0 0 8px rgba(0, 164, 239, 0.8));
}

.device-logo--macos svg {
  filter: drop-shadow(0 0 8px rgba(224, 58, 62, 0.8));
}

.devices strong {
  display: block;
  grid-column: 2;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 32px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
}

.device-copy > span {
  display: block;
  grid-column: 2;
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-card span {
  color: var(--muted);
}

.steps {
  grid-template-columns: repeat(3, 1fr);
  counter-reset: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--berry);
  color: #fff8f4;
  box-shadow: 0 0 16px rgba(155, 61, 63, 0.45);
  font-weight: 800;
}

.support-row {
  grid-template-columns: repeat(3, 1fr);
}

.support-card {
  text-align: left;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 2px;
  align-items: center;
}

.support-logo {
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.support-logo svg {
  width: 32px;
  height: 32px;
  display: block;
}

.support-logo--tg svg {
  fill: #2aabee;
  filter: drop-shadow(0 0 8px rgba(42, 171, 238, 0.75));
}

.support-logo--chat svg {
  fill: var(--berry);
  filter: drop-shadow(0 0 8px rgba(155, 61, 63, 0.55));
}

.support-logo--mail svg {
  fill: var(--gold);
  filter: drop-shadow(0 0 8px rgba(184, 149, 106, 0.65));
}

.support-copy {
  display: contents;
}

.support-card strong {
  grid-column: 2;
  line-height: 1.25;
}

.support-copy > span {
  grid-column: 2;
}

.support-card:hover {
  border-color: var(--berry-soft);
  box-shadow: var(--shadow), 0 0 28px rgba(155, 61, 63, 0.22);
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 18px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
}

.faq p {
  margin: 0 0 14px;
  color: var(--muted);
}

.footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.footer p,
.footer .copy {
  margin: 0;
  color: var(--muted);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer nav a:hover {
  color: var(--berry);
}

.chat-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--berry);
  color: #fff;
  font-size: 22px;
  box-shadow: var(--glow);
  animation: neon-pulse 2.6s ease-in-out infinite;
}

@keyframes neon-pulse {
  0%,
  100% {
    box-shadow: 0 0 12px rgba(155, 61, 63, 0.5), 0 0 28px rgba(155, 61, 63, 0.28);
  }
  50% {
    box-shadow: 0 0 18px rgba(255, 190, 188, 0.75), 0 0 42px rgba(155, 61, 63, 0.5);
  }
}

.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 90px;
  z-index: 60;
  width: min(360px, calc(100vw - 32px));
  height: 420px;
  display: none;
  grid-template-rows: auto 1fr auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-panel.open {
  display: grid;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--berry);
  color: #fff8f4;
  font-weight: 700;
}

.chat-body {
  padding: 14px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
}

.msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.msg.bot {
  background: var(--cream);
}

.msg.user {
  justify-self: end;
  background: var(--berry-wash);
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.chat-form input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(42, 27, 27, 0.4);
  display: none;
}

.overlay.open,
.modal.open {
  display: block;
}

.modal {
  display: none;
  position: fixed;
  z-index: 80;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 32px));
  padding: 28px;
  background: var(--paper);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.modal h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
}

.modal p {
  margin: 0 0 16px;
  color: var(--muted);
}

.modal form {
  display: grid;
  gap: 12px;
}

.modal label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
}

.pay-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.toasts {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 90;
  display: grid;
  gap: 8px;
}

.toast {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff8f4;
  font-weight: 600;
}

.legal {
  padding: 48px 0 80px;
}

.legal h1 {
  font-family: var(--serif);
  font-size: 42px;
}

.cabinet {
  padding: 40px 0 80px;
}

.cabinet h1 {
  font-family: var(--serif);
  font-size: 42px;
  margin: 0 0 24px;
}

.cabinet-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.codebox {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--cream);
  word-break: break-all;
  font-size: 13px;
}

.apps {
  display: grid;
  gap: 10px;
}

.app-link {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.app-link:hover {
  border-color: var(--berry-soft);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.checkout {
  padding: 36px 0 80px;
}

.checkout-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow), 0 0 36px rgba(155, 61, 63, 0.14);
  padding: 36px 32px 32px;
}

.checkout-head h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--berry-deep);
}

.checkout-head p {
  margin: 0;
  color: var(--muted);
  max-width: 46ch;
}

.checkout-note {
  margin-top: 12px !important;
  font-size: 14px;
}

.checkout-note a {
  color: var(--berry);
  text-decoration: underline;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) 1.15fr;
  gap: 22px;
  margin-top: 28px;
  align-items: start;
}

.checkout-sub {
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
}

.checkout-order {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}

.checkout-thumb {
  width: 100%;
  max-width: 220px;
  margin: 0 auto 16px;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: transparent;
}

.checkout-meta {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

.checkout-meta b {
  color: var(--ink);
  font-weight: 800;
}

.checkout-price {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 18px;
}

.checkout-price b {
  color: var(--berry-deep);
}

.checkout-form input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.checkout-alt {
  margin: 18px 0 8px;
}

.checkout-alt-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.btn-tg {
  width: 100%;
  background: #2aabee;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(42, 171, 238, 0.45);
}

.btn-tg:hover {
  background: #1d96d3;
  box-shadow: 0 0 24px rgba(42, 171, 238, 0.6);
}

.agree-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
  margin: 16px 0 20px;
  cursor: pointer;
}

.agree-row input {
  margin-top: 4px;
  accent-color: var(--berry);
}

.agree-row a {
  color: var(--berry);
  text-decoration: underline;
}

.checkout-pay {
  width: 100%;
}

.checkout-methods {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.checkout-methods .pay-methods {
  margin-bottom: 14px;
}

.checkout-support {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.checkout-support a {
  color: var(--berry);
  text-decoration: underline;
}

.checkout-mobile-back {
  display: none;
  width: 100%;
  margin-top: 12px;
}

@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

  .header-account,
  .header-back {
    display: none;
  }

  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits,
  .devices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps,
  .support-row,
  .cabinet-grid,
  .checkout-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 60px;
  }

  .container {
    width: 100%;
    padding-inline: 16px;
  }

  .nav {
    gap: 8px;
    min-width: 0;
  }

  .hero-art {
    padding: 8px 0 0;
  }

  .hero-art picture,
  .hero-art img {
    aspect-ratio: 3 / 4;
    object-position: center 18%;
    border-radius: 16px;
  }

  .brand {
    font-size: 18px;
    gap: 8px;
    min-width: 0;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .tariffs {
    padding-top: 18px;
  }

  .plans {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    justify-items: stretch;
  }

  .plan-pic {
    max-width: 300px;
    margin-inline: auto;
  }

  .plan-pic .btn {
    max-width: none;
  }

  .cta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .cta-row .btn {
    width: 100%;
    padding: 12px 10px;
    font-size: 16px;
  }

  .section {
    padding: 40px 0;
  }

  .section-head {
    margin-bottom: 24px;
    text-align: center;
  }

  .tariffs .section-head {
    text-align: center;
  }

  .section-head h2 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .plans,
  .benefits,
  .devices {
    grid-template-columns: minmax(0, 1fr);
  }

  .devices,
  .benefits,
  .support-row,
  .steps {
    min-width: 0;
  }

  .pay-methods button {
    min-height: 44px;
    flex: 1 1 100%;
  }

  .legal,
  .cabinet,
  .checkout {
    padding: 28px 0 64px;
  }

  .checkout-card {
    padding: 24px 18px 22px;
  }

  .checkout-thumb {
    max-width: 180px;
  }

  .checkout-mobile-back {
    display: inline-flex;
  }

  .legal h1,
  .cabinet h1 {
    font-size: 32px;
  }

  .chat-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: calc(80px + env(safe-area-inset-bottom));
    height: min(420px, calc(100dvh - 160px));
  }

  .modal {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    overflow: auto;
    padding: 22px 18px;
    top: 50%;
  }

  .toasts {
    width: calc(100% - 24px);
    bottom: calc(20px + env(safe-area-inset-bottom));
  }

  .toast {
    text-align: center;
  }

  .kv {
    flex-direction: column;
    gap: 4px;
  }

  input,
  .btn,
  .modal input,
  .chat-form input {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .cta-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    justify-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-fab {
    animation: none;
  }

  .plan-pic img,
  .card,
  .btn {
    transition: none;
  }
}
