:root {
  --bg: #f4faf5;
  --surface: #ffffff;
  --surface-soft: #eaf4ee;
  --text: #082117;
  --muted: #60766b;
  --line: #cdded4;
  --accent: #0d7f55;
  --accent-dark: #075f3f;
  --danger: #a33434;
  --radius: 12px;
  --shadow: 0 18px 48px rgba(8, 33, 23, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button {
  -webkit-appearance: none;
  appearance: none;
  color: inherit;
}

h1, h2, h3, p, a, button, span, dd {
  overflow-wrap: anywhere;
}

.app-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 0 34px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 48px;
}

.brand {
  color: var(--accent);
  font-size: 34px;
  font-weight: 850;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  font-weight: 750;
}

.button:disabled {
  cursor: not-allowed;
  opacity: .65;
}

.button-small {
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
}

.button-ghost {
  color: var(--accent-dark);
  background: transparent;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
  min-height: 520px;
}

.page-layout {
  display: grid;
  gap: 36px;
  align-items: start;
}

.page-layout-side,
.page-layout-media {
  grid-template-columns: minmax(0, .82fr) minmax(360px, 560px);
}

.page-intro {
  display: grid;
  align-content: start;
  gap: 30px;
  padding-top: 34px;
}

.page-layout-side > .page-intro,
.page-layout-media > .page-intro {
  position: sticky;
  top: 24px;
}

.page-intro-wide {
  max-width: 760px;
}

.page-intro h1,
.hero h1,
.doc-page h1,
.error-card h1 {
  margin: 0;
  overflow-wrap: normal;
  word-break: normal;
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

.page-intro p,
.hero p,
.error-card p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
}

.hero p {
  margin-top: 34px;
}

.page-actions,
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.content-stack {
  display: grid;
  gap: 14px;
}

.legal-layout {
  grid-template-columns: minmax(0, 470px) minmax(420px, 1fr);
  gap: 54px;
}

.legal-layout .page-intro h1 {
  font-size: clamp(38px, 3.6vw, 46px);
  line-height: 1.08;
}

.eyebrow {
  margin-bottom: 12px !important;
  color: var(--accent) !important;
  font-size: 15px !important;
  font-weight: 760;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.system-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.system-icons span,
.download-link,
.platform-button,
.option-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.system-icons span {
  min-height: 42px;
  padding: 0 13px;
  color: var(--muted);
}

img {
  width: 22px;
  height: 22px;
}

img:not(.chat-image),
svg {
  -webkit-user-drag: none;
  pointer-events: none;
  user-select: none;
}

.chat-message a,
.chat-image {
  pointer-events: auto;
  user-select: auto;
}

.hero-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  min-height: 280px;
  object-fit: contain;
}

.section {
  min-width: 0;
  padding: 42px 0;
}

.section h2 {
  margin: 0 0 20px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1;
}

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

.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-card,
.price-card,
.account-card,
.step-card {
  padding: 22px;
}

.feature-card h3,
.price-card h3,
.account-card h2,
.step-card h2 {
  margin: 14px 0 8px;
  font-size: 20px;
  letter-spacing: 0;
}

.feature-card p,
.step-card p,
.muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.price-card strong {
  display: block;
  margin: 18px 0;
  font-size: 36px;
}

.step-title {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.step-title h2 {
  margin-top: 0;
}

.step-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent-dark);
  font-weight: 800;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.platform-button {
  min-height: 52px;
  color: var(--text);
  cursor: pointer;
}

.platform-button:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.platform-button.active,
.option-button.active {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: #edf8ee;
}

.download-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.download-link {
  min-height: 52px;
  padding: 0 16px;
  color: var(--text);
}

.add-servers-button,
.copy-servers-button {
  width: 100%;
  margin-top: 18px;
  cursor: pointer;
}

.add-servers-button {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.add-servers-button img {
  filter: brightness(0) invert(1);
}

.status-box {
  display: none;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface-soft);
}

.status-box.show { display: grid; gap: 10px; }
.status-box.error { color: var(--danger); border-color: #e4bebe; background: #fff4f4; }
.status-box.success { color: var(--accent-dark); border-color: #b8d9c4; background: #edf8ee; }

.status-box .status-action {
  width: fit-content;
  margin-top: 12px;
  color: #fff;
  text-decoration: none;
}

.manual-fallback {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.page-media {
  display: grid;
  gap: 18px;
}

.page-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.media-note {
  font-size: 16px;
}

.cabinet-loader {
  display: grid;
  min-height: 360px;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--muted);
}

.loader-mark {
  width: 46px;
  height: 46px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: rotate-loader 900ms linear infinite;
}

@keyframes rotate-loader {
  to { transform: rotate(360deg); }
}

.cabinet-help-image {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin-top: 24px;
}

.device-page {
  display: grid;
  gap: 34px;
}

.device-top {
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.device-page .page-intro {
  position: sticky;
  top: 24px;
}

.device-page .page-intro h1 {
  overflow-wrap: normal;
  font-size: clamp(42px, 5vw, 58px);
  line-height: 1.05;
}

.device-main {
  display: grid;
  gap: 20px;
}

.device-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.referral-card {
  width: 100%;
}

.device-wide {
  display: grid;
  gap: 20px;
}

.device-wide > .help-section {
  padding: 0;
}

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

.card-heading h2 {
  margin: 0;
}

.device-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  margin: 0;
}

.device-list dt {
  color: var(--muted);
}

.device-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.subscription-value {
  margin-bottom: 18px;
  color: var(--accent-dark);
  font-size: 36px;
  font-weight: 850;
}

.subscription-value.expired {
  color: var(--danger);
}

.icon-action img {
  filter: brightness(0) invert(1);
}

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

.promo-action {
  background: var(--surface);
}

.copy-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

.copy-line span {
  min-width: 0;
  overflow: hidden;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent-dark);
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--surface-soft);
}

.icon-button-inline {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.icon-button-inline.copied {
  border-color: var(--accent);
  background: #edf8ee;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-card {
  grid-column: 1 / -1;
}

.history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.history-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.history-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.help-card {
  grid-column: 1 / -1;
}

.help-section {
  padding-bottom: 0;
}

.device-wide .help-card {
  height: 100%;
}

.help-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.support-link {
  display: inline-flex;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface);
  font-weight: 700;
  text-align: center;
}

.support-link span {
  min-width: 0;
}

.error-state {
  display: grid;
  gap: 18px;
}

.error-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 34px;
  text-align: center;
  box-shadow: var(--shadow);
}

.error-card img {
  width: 46px;
  height: 46px;
}

.error-card h1 {
  font-size: clamp(38px, 7vw, 58px);
}

.error-card .error-actions {
  justify-content: center;
  margin-top: 8px;
}

.modal {
  width: min(100% - 28px, 520px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  animation: modal-in 160ms ease both;
  z-index: 20;
}

.modal::backdrop {
  background: rgba(4, 24, 16, .5);
  animation: backdrop-in 160ms ease both;
}

.modal-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  pointer-events: auto;
}

.modal-card h2 {
  margin: 0;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
}

.modal-step p {
  margin: 0 0 10px;
  color: var(--muted);
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 22px;
}

.modal-step > .button {
  width: 100%;
  margin-top: 22px;
}

.promo-form {
  display: grid;
  gap: 10px;
}

.text-input,
.chat-form textarea,
.chat-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface);
  font: inherit;
}

.chat-form textarea {
  min-height: 104px;
  padding-top: 14px;
  resize: vertical;
}

.modal-actions .button {
  width: 100%;
}

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

.option-button {
  min-height: 50px;
  padding: 0 12px;
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
}

.qr-card {
  justify-items: center;
}

.qr-frame {
  padding: 16px;
  border-radius: 22px;
  background: #edf8ee;
}

.qr-frame img {
  display: block;
  width: min(70vw, 280px);
  height: min(70vw, 280px);
  border-radius: 16px;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.captcha-page {
  display: grid;
  min-height: 70vh;
  place-items: center;
}

.captcha-card {
  display: grid;
  width: min(100%, 440px);
  gap: 16px;
  padding: 26px;
  justify-items: center;
  text-align: center;
}

.captcha-icon {
  width: 42px;
  height: 42px;
}

.captcha-card h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 48px);
}

.captcha-card p {
  margin: 0;
  color: var(--muted);
}

.captcha-art {
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 16px;
  background: #edf8ee;
}

.captcha-art svg,
.captcha-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
  image-rendering: auto;
}

.captcha-form {
  display: grid;
  width: 100%;
  gap: 10px;
}

.captcha-refresh {
  width: 100%;
}

.captcha-input {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface);
  text-align: center;
}

.captcha-slider-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 12px;
  align-items: center;
}

.captcha-slider {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.captcha-slider-value {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent-dark);
  background: var(--surface-soft);
  font-weight: 800;
}

.captcha-submit:disabled {
  border-color: #c7d2ca;
  background: #c7d2ca;
  color: #6b7a70;
  opacity: 1;
}

.doc-page {
  max-width: 760px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.doc-page h1 {
  font-size: clamp(34px, 6vw, 54px);
}

.doc-page p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.doc-card {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.doc-card h2 {
  margin: 0;
  font-size: 22px;
}

.doc-card p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.faq-group {
  padding: 22px;
}

.faq-group h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.05;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.faq-item summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-content {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
}

.faq-content p {
  margin: 0;
}

.faq-media {
  display: grid;
  gap: 8px;
  margin: 0;
}

.faq-media img {
  display: block;
  width: 100%;
  max-height: 560px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--bg);
}

.faq-media figcaption {
  color: var(--muted);
  font-size: 14px;
}

.chat-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.chat-status {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

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

.chat-status .chat-retry {
  width: fit-content;
  margin-top: 10px;
  color: #fff;
}

.chat-messages {
  display: grid;
  min-height: 340px;
  max-height: 52vh;
  align-content: start;
  gap: 10px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.chat-message {
  display: grid;
  max-width: 82%;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.chat-message.from-client {
  justify-self: end;
  border-color: #a9d4bc;
  background: #edf8ee;
}

.chat-message.from-system,
.chat-message.from-bot {
  max-width: 92%;
  background: #f8fbf9;
}

.chat-role {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: lowercase;
}

.chat-message p {
  margin: 0;
  line-height: 1.4;
}

.chat-message a {
  color: var(--accent-dark);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-message code {
  padding: 2px 5px;
  border-radius: 6px;
  background: rgba(8, 33, 23, .08);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .92em;
}

.chat-message pre {
  overflow: auto;
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(8, 33, 23, .08);
  white-space: pre-wrap;
}

.chat-image {
  display: block;
  width: min(260px, 100%);
  max-height: 260px;
  height: auto;
  border-radius: calc(var(--radius) - 2px);
  object-fit: contain;
  background: var(--surface);
}

.chat-form {
  display: grid;
  gap: 10px;
}

.chat-attachment-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent-dark);
  background: var(--surface-soft);
  font-size: 14px;
}

.chat-attachment-preview img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
}

.chat-attachment-preview span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-composer {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: end;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.chat-composer textarea {
  min-height: 42px;
  max-height: 160px;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  resize: none;
}

.chat-composer textarea:focus {
  outline: none;
}

.chat-icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface-soft);
  cursor: pointer;
}

.chat-send-button {
  background: var(--accent);
}

.chat-send-button img {
  filter: brightness(0) invert(1);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hidden { display: none !important; }

@media (max-width: 1120px) {
  .app-shell {
    width: min(100% - 28px, 900px);
  }
  .topbar {
    align-items: flex-start;
  }
  .page-layout-side,
  .page-layout-media {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .page-layout-side > .page-intro,
  .page-layout-media > .page-intro {
    position: static;
    padding-top: 0;
  }
  .device-page .page-intro {
    position: static;
    padding-top: 0;
  }
  .page-intro h1 {
    font-size: clamp(38px, 7vw, 56px);
  }
  .legal-layout .page-intro h1 {
    font-size: clamp(38px, 7vw, 56px);
  }
  .page-intro p {
    max-width: 680px;
  }
}

@media (min-width: 821px) and (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 28px;
  }
  .feature-grid,
  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .help-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .device-top {
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 28px;
  }
  .device-page .page-intro h1 {
    font-size: clamp(40px, 5vw, 50px);
  }
  .subscription-actions {
    grid-template-columns: 1fr;
  }
  .device-wide .help-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .app-shell {
    width: min(100% - 24px, 560px);
    padding-top: 18px;
  }
  .topbar {
    margin-bottom: 28px;
  }
  .nav {
    display: none;
  }
  body:not([data-page="device"]) .nav {
    display: flex;
    max-width: 58%;
  }
  body[data-page="device"] .nav {
    display: flex;
  }
  .hero,
  .page-layout-side,
  .page-layout-media,
  .device-top,
  .device-card-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 0;
    gap: 24px;
  }
  .hero-image {
    min-height: 0;
  }
  .page-image {
    max-width: 420px;
    margin: 0 auto;
  }
  .hero h1,
  .page-intro h1,
  .doc-page h1,
  .error-card h1 {
    font-size: clamp(34px, 9vw, 52px);
  }
  .hero p,
  .page-intro p,
  .error-card p {
    font-size: 18px;
  }
  .page-intro {
    position: static;
    padding-top: 0;
  }
  .device-page {
    gap: 22px;
  }
  .device-main,
  .device-card-grid,
  .device-wide {
    gap: 14px;
  }
  .feature-grid,
  .price-grid {
    grid-template-columns: 1fr;
  }
  .option-grid {
    grid-template-columns: 1fr;
  }
  .subscription-actions {
    grid-template-columns: 1fr;
  }
  .help-actions {
    grid-template-columns: 1fr;
  }
  .page-layout-side {
    grid-template-columns: 1fr;
  }
  .button {
    width: 100%;
  }
  .footer {
    display: grid;
  }
}
