/* Базовый сброс отступов и размеров. */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-main: #070d1a;
  --bg-deep: #0a1020;
  --panel: #111a2d;
  --panel-soft: #172134;
  --panel-strong: #20283a;
  --border: rgba(125, 141, 170, 0.24);
  --border-bright: rgba(241, 207, 111, 0.34);
  --text: #f4f3f1;
  --muted: #b8bfce;
  --muted-2: #8f9ab1;
  --gold: #e0ad3d;
  --gold-light: #f1cf6a;
  --gold-dark: #b68126;
  --danger: #e56682;
  --success: #7bd88f;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 78% 8%, rgba(224, 173, 61, 0.14), transparent 30%),
    radial-gradient(circle at 12% 88%, rgba(224, 173, 61, 0.06), transparent 28%),
    linear-gradient(135deg, var(--bg-main) 0%, var(--bg-deep) 100%);
  color: var(--text);
  padding: 32px;
  overflow-x: hidden;
  position: relative;
}

/* Большой фоновый знак бренда: декоративный фон за основной карточкой. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../assets/images/bevpn-bg.svg") center no-repeat;
  background-size: min(1200px, 92vw);
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}

a,
button {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.card {
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  border: 1px solid var(--border-bright);
  background: rgba(17, 26, 45, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 56px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Статичное внутреннее свечение без движения за мышкой. */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 0%, rgba(224, 173, 61, 0.10), transparent 24%),
    radial-gradient(circle at 6% 12%, rgba(241, 207, 111, 0.06), transparent 20%);
  pointer-events: none;
  z-index: 0;
}

/* Поднимаем весь контент карточки над декоративным свечением. */
.card > * {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 64px;
  z-index: 2;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 128px;
  width: auto;
  display: block;
}

/* Верхняя навигация — это якорные ссылки, не вкладки. */
nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
  font-weight: 650;
}

nav a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--gold-light);
}

.hero {
  max-width: 760px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(224, 173, 61, 0.14);
  color: var(--gold-light);
  border: 1px solid var(--border-bright);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 22px;
}

h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.07em;
  margin-bottom: 24px;
}

h1 span {
  color: var(--gold);
}

.description {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 18px;
}

/* Слоган бренда: английская строка главная, русская — поясняющая. */
.slogan {
  display: grid;
  gap: 6px;
  margin-bottom: 34px;
}

.slogan-line {
  line-height: 1.45;
  font-weight: 800;
}

.slogan-line-main {
  color: var(--text);
  font-size: 20px;
}

.slogan-line-sub {
  color: var(--muted);
  font-size: 16px;
}

/* Подсвечиваем только игру слов bee / Be, а не всё название BeVPN. */
.wordplay {
  color: var(--gold);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #070d1a;
}

.btn-secondary {
  color: var(--text);
  border: 1px solid rgba(125, 141, 170, 0.28);
  background: rgba(17, 26, 45, 0.78);
}

/* Состояние недоступной кнопки скачивания. */
.btn.is-disabled {
  opacity: 0.58;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

.btn.is-disabled:hover {
  transform: none;
}

/* Спокойная вторичная кнопка для настройки тарифа. */
.btn-ghost {
  color: var(--gold-light);
  border: 1px solid rgba(241, 207, 111, 0.24);
  background: rgba(224, 173, 61, 0.08);
}

.btn-ghost:hover {
  background: rgba(224, 173, 61, 0.14);
}

.hero-note {
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.5;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.stat {
  padding: 18px;
  border-radius: 18px;
  background: rgba(17, 26, 45, 0.56);
  border: 1px solid var(--border);
  text-align: center;
}

.stat-value {
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.4;
}

.section {
  position: relative;
  z-index: 1;
  margin-top: 52px;
}

.section-header {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-kicker {
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin-bottom: 14px;
}

/* Акцент в заголовках используем точечно, чтобы золото не стало визуальным шумом. */
.section-header h2 span {
  color: var(--gold);
}

.section-header p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  position: relative;
  z-index: 1;
}

.feature,
.approach-card,
.plan,
.faq-item,
.download-card,
.trust-card {
  padding: 20px;
  border-radius: 18px;
  background: rgba(17, 26, 45, 0.78);
  border: 1px solid var(--border);
}

.feature,
.approach-card,
.plan,
.download-card,
.trust-card {
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

/* Единая hover-подсветка карточек. */
.feature:hover,
.approach-card:hover,
.plan:hover,
.download-card:hover,
.trust-card:hover {
  border-color: rgba(241, 207, 111, 0.42);
  background: rgba(224, 173, 61, 0.08);
  transform: translateY(-2px);
}

.feature strong,
.approach-card h3,
.download-card h3,
.trust-card h3 {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.feature p,
.approach-card p,
.download-card p,
.trust-card p,
.plan p,
.faq-item p {
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.55;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.approach-icon,
.download-icon,
.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: rgba(224, 173, 61, 0.14);
  color: var(--gold-light);
  border: 1px solid var(--border-bright);
  font-weight: 900;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* Устойчивая сетка приватности: 3 / 2 / 1 колонки по доступной ширине. */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

/* Плашка пробного периода в блоке тарифов. */
.trial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 10% 0%, rgba(241, 207, 111, 0.16), transparent 34%),
    rgba(224, 173, 61, 0.08);
  border: 1px solid rgba(241, 207, 111, 0.34);
}

.trial-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #070d1a;
  font-size: 22px;
  font-weight: 950;
}

.trial-text {
  flex: 1;
  min-width: 0;
}

.trial-text strong {
  display: block;
  color: var(--text);
  font-size: 17px;
  margin-bottom: 4px;
}

.trial-text p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.trial-link {
  flex: 0 0 auto;
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
}

.trial-link:hover {
  color: var(--gold);
}

/* Тарифы */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.plan.featured {
  border-color: rgba(241, 207, 111, 0.5);
  background:
    radial-gradient(circle at 80% 0%, rgba(224, 173, 61, 0.14), transparent 32%),
    rgba(224, 173, 61, 0.08);
}

.plan-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(224, 173, 61, 0.14);
  color: var(--gold-light);
  border: 1px solid var(--border-bright);
  font-size: 12px;
  font-weight: 800;
}

.plan-tag {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
}

.plan-name {
  font-weight: 900;
  font-size: 26px;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.plan-short {
  min-height: 44px;
  margin-bottom: 18px;
}

.duration-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.duration-option {
  min-height: 38px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(125, 141, 170, 0.24);
  background: rgba(17, 26, 45, 0.58);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.duration-option:hover {
  border-color: rgba(241, 207, 111, 0.34);
  color: var(--text);
  transform: translateY(-1px);
}

.duration-option.is-active {
  background: rgba(224, 173, 61, 0.16);
  border-color: rgba(241, 207, 111, 0.48);
  color: var(--gold-light);
}

.plan-price {
  color: var(--gold);
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  letter-spacing: -0.04em;
}

.plan-price small {
  color: var(--muted-2);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.plan-saving {
  min-height: 22px;
  color: var(--success);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}

.plan-saving:empty::before {
  content: "Flexible monthly start";
  color: var(--muted-2);
  font-weight: 700;
}

.currency-disclosure {
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.5;
  margin: 10px 0 14px;
}

.currency-rate-date {
  display: block;
  margin-top: 3px;
}

html[lang="ru"] .plan-saving:empty::before {
  content: "Гибкий помесячный старт";
}

html[lang="es"] .plan-saving:empty::before {
  content: "Comienza con flexibilidad, mes a mes";
}

html[lang="pt"] .plan-saving:empty::before {
  content: "Comece com flexibilidade, mês a mês";
}

.plan-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}

.plan .btn {
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
}

.pricing-note {
  margin-top: 14px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(17, 26, 45, 0.56);
  border: 1px solid var(--border);
}

.pricing-note strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 6px;
}

.pricing-note p {
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.55;
}

/* Скачать */
.download-card .btn {
  margin-top: 16px;
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
}

.download-meta {
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.45;
}

.status-soon {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(125, 141, 170, 0.14);
  color: var(--muted);
  border: 1px solid rgba(125, 141, 170, 0.24);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-accordion {
  gap: 10px;
}

.faq-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.faq-accordion .faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-accordion details {
  border-radius: 18px;
}

.faq-accordion summary {
  min-height: 58px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  color: var(--text);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
}

.faq-accordion summary::-webkit-details-marker {
  display: none;
}

.faq-accordion summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(224, 173, 61, 0.14);
  border: 1px solid rgba(241, 207, 111, 0.26);
  color: var(--gold-light);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.faq-accordion details[open] summary::after {
  content: "−";
  background: rgba(224, 173, 61, 0.20);
}

.faq-accordion .faq-item:hover {
  border-color: rgba(241, 207, 111, 0.42);
  background: rgba(224, 173, 61, 0.08);
}

.faq-accordion .faq-item p {
  padding: 0 20px 18px;
  max-width: 880px;
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.65;
}

.faq-accordion .faq-item[open] {
  border-color: rgba(241, 207, 111, 0.36);
  background:
    radial-gradient(circle at 0% 0%, rgba(241, 207, 111, 0.08), transparent 32%),
    rgba(17, 26, 45, 0.78);
}

/* Блок поддержки на главной */
.support-box {
  padding: 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 0%, rgba(241, 207, 111, 0.14), transparent 34%),
    rgba(17, 26, 45, 0.68);
  border: 1px solid rgba(241, 207, 111, 0.30);
}

.support-main {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: flex-start;
}

.support-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #070d1a;
  font-size: 22px;
  font-weight: 950;
}

.support-main h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.support-main p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.support-email {
  display: inline-flex;
  color: var(--gold-light);
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.support-email:hover {
  color: var(--gold);
}

.support-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.support-topics span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(125, 141, 170, 0.12);
  border: 1px solid rgba(125, 141, 170, 0.22);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links button,
.footer-links a {
  color: var(--muted);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.footer-links button:hover,
.footer-links a:hover {
  color: var(--gold);
}

/* Модальные окна */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 10, 20, 0.78);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.modal.is-open {
  display: flex;
}

.modal-content {
  width: 100%;
  max-width: 760px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 34px;
  border-radius: 26px;
  background: #111a2d;
  border: 1px solid var(--border-bright);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.7);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--border);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(224, 173, 61, 0.18);
}

.modal h2 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 16px;
  padding-right: 44px;
}

.modal h2 span {
  color: var(--gold);
}

.modal-intro,
.modal-content p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 18px;
  max-width: 640px;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.modal-box {
  padding: 20px;
  border-radius: 18px;
  background: rgba(17, 26, 45, 0.78);
  border: 1px solid var(--border);
}

.modal-box h3 {
  margin-bottom: 14px;
  font-size: 18px;
}

.modal-box ul {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

/* Юридические страницы */
.legal-card {
  max-width: 980px;
}

.legal-page {
  max-width: 820px;
}

.legal-hero {
  margin-bottom: 28px;
}

.legal-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin-bottom: 18px;
}

.legal-hero h1 span {
  color: var(--gold);
}

.legal-hero p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 720px;
}

.legal-notice {
  padding: 18px;
  border-radius: 18px;
  background: rgba(224, 173, 61, 0.08);
  border: 1px solid rgba(241, 207, 111, 0.28);
  margin-bottom: 28px;
}

.legal-notice strong {
  display: block;
  color: var(--gold-light);
  font-size: 15px;
  margin-bottom: 6px;
}

.legal-notice p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.legal-section {
  padding: 22px 0;
  border-top: 1px solid var(--border);
}

.legal-section h2 {
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.legal-section p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-section ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.legal-section strong {
  color: var(--text);
}

.legal-section a {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 800;
}

.legal-section a:hover {
  color: var(--gold);
}

.legal-table {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  margin-top: 16px;
}

.legal-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  border-top: 1px solid var(--border);
}

.legal-row:first-child {
  border-top: 0;
}

.legal-row > div {
  padding: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.legal-row > div:first-child {
  color: var(--text);
  font-weight: 800;
  border-right: 1px solid var(--border);
}

.legal-row-head {
  background: rgba(224, 173, 61, 0.08);
}

.legal-row-head > div {
  color: var(--gold-light);
  font-weight: 900;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* Планшеты */
@media (max-width: 900px) {
  .approach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .trial-banner {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Мобильная версия */
@media (max-width: 780px) {
  body {
    padding: 10px;
  }

  .card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .site-header {
    align-items: center;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
    text-align: center;
  }

  .logo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0 auto;
  }

  .logo img {
    width: min(200px, 70vw);
    max-width: 200px;
    height: auto;
    display: block;
  }

  nav {
    justify-content: center;
    width: 100%;
    gap: 8px;
    row-gap: 8px;
    font-size: 12px;
    line-height: 1;
  }

  nav a {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(125, 141, 170, 0.10);
    border: 1px solid rgba(125, 141, 170, 0.16);
  }

  .hero {
    text-align: center;
    margin: 0 auto;
  }

  .badge {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 18px;
    padding: 7px 12px;
    font-size: 12px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.02;
    letter-spacing: -0.055em;
    margin-bottom: 18px;
  }

  .description {
    margin-left: auto;
    margin-right: auto;
    max-width: 330px;
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 16px;
  }

  .slogan {
    justify-items: center;
    margin-bottom: 26px;
  }

  .slogan-line-main {
    font-size: 18px;
  }

  .slogan-line-sub {
    font-size: 14px;
  }

  .actions {
    justify-content: center;
  }

  .btn {
    width: 100%;
    max-width: 330px;
    min-height: 46px;
  }

  .hero-note {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 12px;
  }

  .section {
    margin-top: 40px;
  }

  .section-header {
    max-width: none;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 18px;
  }

  .section-kicker {
    text-align: left;
    font-size: 12px;
    margin-bottom: 8px;
  }

  .section-header h2 {
    font-size: clamp(28px, 8.5vw, 36px);
    line-height: 1.08;
    letter-spacing: -0.045em;
    margin-bottom: 12px;
  }

  .section-header p {
    font-size: 15px;
    line-height: 1.6;
  }

  .stats,
  .features,
  .approach-grid,
  .plans,
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: 10px;
    margin-bottom: 0;
  }

  .stat {
    padding: 16px;
  }

  .feature,
  .approach-card,
  .trust-card,
  .plan {
    text-align: left;
    padding: 18px;
  }

  .feature p,
  .approach-card p,
  .trust-card p,
  .plan p,
  .faq-item p {
    font-size: 14px;
    line-height: 1.55;
  }

  .approach-icon,
  .trust-icon {
    margin-left: 0;
    margin-right: 0;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trial-banner {
    align-items: flex-start;
    text-align: left;
    padding: 18px;
  }

  .trial-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 20px;
  }

  .trial-link {
    margin: 0;
  }

  .plan-top {
    align-items: flex-start;
  }

  .duration-selector {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .duration-option {
    min-height: 42px;
  }

  .plan-short {
    min-height: auto;
  }

  .plan-price {
    font-size: 32px;
  }

  .plan-actions {
    flex-direction: column;
  }

  .plan .btn {
    max-width: none;
  }

  .download-card {
    text-align: center;
    padding: 20px;
  }

  .download-icon {
    margin-left: auto;
    margin-right: auto;
  }

  .download-card .btn {
    max-width: 290px;
  }

  /* FAQ оставляем слева: так длинные вопросы и ответы читаются лучше. */
  #faq .section-header,
  #faq .section-kicker {
    text-align: left;
  }

  .faq-accordion summary {
    padding: 16px 18px;
    font-size: 15px;
    text-align: left;
  }

  .faq-accordion summary::after {
    width: 28px;
    height: 28px;
  }

  .faq-accordion .faq-item p {
    padding: 0 18px 16px;
    text-align: left;
  }

  .support-box {
    text-align: left;
    padding: 20px;
  }

  .support-main {
    grid-template-columns: 1fr;
    justify-items: flex-start;
  }

  .support-email {
    font-size: 16px;
    word-break: break-word;
  }

  .support-topics {
    justify-content: flex-start;
  }

  .legal-row {
    grid-template-columns: 1fr;
  }

  .legal-row > div:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .legal-actions {
    flex-direction: column;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
    width: 100%;
  }
}

/* Языковой переключатель: оба языка видимы, активный выделен. */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(241, 207, 111, 0.34);
  border-radius: 999px;
  background: rgba(224, 173, 61, 0.10);
  box-shadow: 0 0 0 1px rgba(224, 173, 61, 0.04) inset;
}

nav .language-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

nav .language-option:hover {
  color: var(--gold-light);
  background: rgba(224, 173, 61, 0.10);
}

nav .language-option.is-active {
  color: #0a0f1c;
  background: var(--gold-light);
  border-color: rgba(255, 255, 255, 0.22);
}

/* Карточки загрузки держат кнопки и подписи на одной высоте. */
.download-card {
  display: flex;
  flex-direction: column;
}

.download-card > p {
  flex: 1 1 auto;
}

.download-card .btn {
  align-self: flex-start;
}

@media (max-width: 720px) {
  .language-switch {
    width: auto;
    margin: 2px auto 0;
  }

  nav .language-option {
    padding: 7px 10px;
    background: transparent;
    border-color: transparent;
  }

  .download-card .btn {
    align-self: center;
  }
}

/* Карточки скачивания: компактные статусы и ровное положение кнопок. */
#download .download-grid {
  align-items: stretch;
}

#download .download-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#download .download-card .status-soon {
  align-self: flex-start;
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  padding: 4px 10px;
  margin-bottom: 12px;
  line-height: 1;
}

#download .download-card > p {
  flex: 1 1 auto;
  margin-bottom: 0;
}

#download .download-card .btn {
  align-self: flex-start;
  flex: 0 0 auto;
  width: auto;
  min-width: 190px;
  max-width: 100%;
  margin-top: 20px;
  padding-inline: 18px;
  white-space: nowrap;
}

#download .download-card .download-meta {
  margin-top: 12px;
}

@media (min-width: 901px) {
  #download .download-card > p {
    min-height: 96px;
  }

  #download .download-card .download-meta {
    min-height: 35px;
  }
}

@media (max-width: 780px) {
  #download .download-card .status-soon,
  #download .download-card .btn {
    align-self: center;
  }

  #download .download-card > p,
  #download .download-card .download-meta {
    min-height: 0;
  }
}

.legal-page,
.account-panel {
  overflow-wrap: anywhere;
}

.account-panel {
  max-width: 620px;
  margin-top: 16px;
  padding: clamp(14px, 4vw, 28px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
}

.account-controls,
.account-form,
.account-field,
.account-thread {
  display: grid;
  gap: 12px;
  min-inline-size: 0;
}

.account-controls,
.account-thread,
.account-tickets {
  border: 0;
  list-style: none;
}

.account-controls > .btn,
.account-form .btn {
  justify-self: start;
}

.account-actions,
.account-tickets li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.account-tickets li + li {
  margin-top: 8px;
}

.account-field input,
.account-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: var(--bg-deep);
  font: inherit;
}

.account-field textarea {
  resize: vertical;
}

.account-thread li {
  padding: 12px;
  border-radius: 8px;
  background: var(--panel-soft);
}

.account-thread p {
  margin-top: 4px;
  white-space: pre-wrap;
}

.account-status:not(:empty) {
  margin-top: 12px;
  color: var(--danger);
}

.site-header:has(.site-header-actions) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.site-account-menu {
  position: relative;
  z-index: 10001;
}

.site-account-menu summary {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-bright);
  border-radius: 11px;
  color: var(--gold-light);
  background: var(--panel);
  cursor: pointer;
  list-style: none;
}

.site-account-menu summary::-webkit-details-marker {
  display: none;
}

.site-account-menu svg {
  width: 22px;
  height: 22px;
}

.site-account-menu > div {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  display: grid;
  width: min(190px, calc(100vw - 48px));
  padding: 6px;
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 15px 40px #0008;
  text-align: start;
}

.site-account-menu a {
  padding: 10px 12px;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
}

.site-account-menu a:hover,
.site-account-menu a:focus-visible {
  background: var(--panel-soft);
  color: var(--gold-light);
}

.account-page {
  max-width: 460px;
  margin-inline: auto;
}

.account-page h1 {
  font-size: clamp(28px, 6vw, 40px);
}

.account-page a {
  color: var(--gold-light);
}

.account-agreement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.account-agreement input {
  margin-top: .25em;
  accent-color: var(--gold);
}

.account-page .account-panel > p:not(:empty) {
  overflow-wrap: anywhere;
}

.account-page.account-dashboard,
.account-page.account-chat-page {
  max-width: 880px;
}

.account-dashboard .account-panel,
.account-chat-page .account-panel {
  max-width: none;
  padding: 0;
  border: 0;
  background: none;
}

.account-dashboard .account-controls {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-card,
.support-pane {
  min-width: 0;
  padding: clamp(14px, 2.5vw, 22px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
}

.profile-card h2 { color: var(--gold-light); font-size: 18px; }
.profile-card p { color: var(--muted); margin-top: 6px; }
.profile-card .btn { margin-top: 12px; text-align: center; }
.profile-plan .btn { display: flex; justify-content: center; }
.profile-service { display: flex; align-content: flex-start; align-items: start; flex-wrap: wrap; gap: 4px 8px; }
.profile-service h2 { flex-basis: 100%; }

.profile-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  grid-column: 1 / -1;
}
.profile-pending { grid-column: 1 / -1; }

.profile-identity h2 { color: var(--text); font-size: 22px; }
.profile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 56px;
  height: 56px;
  border-radius: 50%;
  background: #e0ad3d24;
  color: var(--gold-light);
  font-size: 24px;
  font-weight: 800;
}

.account-controls > .profile-sign-out {
  grid-column: 1 / -1;
  justify-self: stretch;
  justify-content: center;
  border-color: #e5668277;
  color: #ff93aa;
}

.profile-resource {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  margin-top: 8px;
  border-bottom: 1px solid var(--border);
}

.profile-resource small { color: var(--muted); }
.profile-resource .btn { padding: 6px 8px; margin: 0 0 0 auto; }
.profile-card > .account-form { margin-top: 16px; }

.account-card .site-header { margin-bottom: clamp(22px, 4vw, 40px); }
.account-card .site-header .logo img { max-height: 84px; object-fit: contain; object-position: left center; }
.account-card .site-account-menu { position: relative; inset: auto; }
.account-view-toolbar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}
.account-view-toolbar .btn { min-height: 40px; padding: 8px 12px; font-size: 13px; }
.account-view-toolbar .btn > span { margin-inline-end: 5px; }
.profile-resource-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}
.profile-resource-summary { grid-column: 1 / -1; }
.profile-resource-info { display: grid; min-width: 0; flex: 1; gap: 4px; overflow-wrap: anywhere; }
.profile-resource-info small { color: var(--muted); }
.profile-resource .profile-revoke { color: #ff9cad; border-color: #e5668260; font-size: 12px; }
.profile-members { display: grid; gap: 8px; margin-top: 14px; }
.profile-member {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--bg-deep);
}
.profile-member-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--gold-light);
  background: #e0ad3d24;
  font-weight: 800;
}
.profile-member .profile-member-limit { flex-basis: 100%; font-size: 13px; }
.profile-invite summary { width: fit-content; list-style: none; }
.profile-invite summary::-webkit-details-marker { display: none; }
.profile-invite > form { margin-top: 12px; }

.support-workspace {
  display: grid;
  grid-template-columns: minmax(242px, 1fr) minmax(0, 2fr);
  gap: 12px;
}

.support-sidebar { display: flex; flex-direction: column; gap: 12px; padding: 14px; min-height: 0; }
.support-sidebar-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.support-sidebar-header .btn { margin: 0; padding: 7px 10px; font-size: 12px; min-height: 40px; }
.support-sidebar input {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-deep);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.support-conversations { display: grid; align-content: start; gap: 8px; max-height: min(52vh, 480px); overflow-y: auto; list-style: none; color: var(--muted); }
.support-conversations .support-ticket {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 11px;
  text-align: start;
  color: var(--text);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.support-ticket:hover, .support-ticket[aria-current] { border-color: var(--border-bright); background: #e0ad3d17; }
.support-ticket-title { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.support-ticket-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.support-ticket time { color: var(--muted); font-size: 11px; justify-self: end; }
.support-status-chip {
  width: fit-content;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 10px;
  font-weight: 750;
}
.support-status-chip[data-status="WAITING_USER"] { color: var(--gold-light); border-color: var(--border-bright); background: #e0ad3d18; }
.support-closed {
  margin: 12px;
  padding: 10px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
}
.support-pane { padding: 0; display: flex; flex-direction: column; min-height: 370px; }
.support-empty { margin: auto; padding: 18px; color: var(--muted); text-align: center; }
.support-chat-header { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.support-chat-header h2 { font-size: 17px; }
.support-chat-header .support-status-chip { display: block; margin-bottom: 7px; }
.support-chat-header .btn { display: none; }
.support-chat-state { margin-top: 4px; font-size: 13px; }
.support-new-chat { padding: 16px; }

.support-thread {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  height: min(48vh, 480px);
  min-height: 210px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px;
  list-style: none;
  background: var(--bg-deep);
}

.support-bubble {
  flex: none;
  max-width: 85%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px 14px 14px 4px;
  background: var(--panel-soft);
  align-self: flex-start;
}

.support-bubble.is-own {
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  background: #e0ad3d25;
  border-color: var(--border-bright);
}

.support-bubble-meta { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 4px; }
.support-bubble-meta strong { color: var(--gold-light); }
.support-bubble-meta time { color: var(--muted); font-size: 11px; }
.support-bubble p { white-space: pre-wrap; line-height: 1.45; }
.support-composer { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.support-composer[hidden], .checkout-field[hidden], .checkout-help[hidden] { display: none !important; }
.support-composer textarea {
  flex: 1;
  min-width: 0;
  resize: vertical;
  max-height: 160px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-deep);
  color: var(--text);
  font: inherit;
}
.support-composer .btn { padding: 10px 12px; }

.checkout-recipient {
  display: grid;
  gap: 7px;
  margin-block: 8px 12px;
  border: 0;
  min-width: 0;
}
.checkout-recipient label { display: flex; align-items: start; gap: 8px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 10px; overflow-wrap: anywhere; }
.checkout-recipient label:has(input:checked) { border-color: var(--border-bright); background: #e0ad3d12; }
.checkout-recipient input { accent-color: var(--gold); margin-top: 3px; }
.checkout-recipient small { display: block; color: var(--muted); margin-top: 3px; }

@media (max-width: 700px) {
  .account-dashboard .account-controls,
  .profile-resource-grid,
  .support-workspace { grid-template-columns: minmax(0, 1fr); }
  .support-workspace:not(.has-open-chat) .support-pane,
  .support-workspace.has-open-chat .support-sidebar { display: none; }
  .support-chat-header .btn { display: inline-flex; padding: 5px 8px; margin-bottom: 6px; }
  .support-bubble { max-width: 93%; }
  .support-pane { min-height: 0; }
  .support-conversations { max-height: none; }
  .support-composer textarea, .support-sidebar input, .account-field input, .account-field textarea { font-size: 16px; }
  .support-composer .btn, .profile-resource .profile-revoke { min-height: 44px; }
}

/* Give support its own workspace. Dashboard and sign-in keep their usual width. */
body:has(.account-chat-page, .account-family-page) { padding: clamp(8px, 1.4vw, 24px); }
.account-card:has(.account-chat-page, .account-family-page) {
  --support-inset: clamp(8px, 1.4vw, 24px);
  display: flex;
  flex-direction: column;
  max-width: none;
  min-height: calc(100dvh - 2 * var(--support-inset));
  padding: clamp(12px, 1.8vw, 28px);
}
.account-card:has(.account-chat-page, .account-family-page) .site-header { margin-bottom: 12px; }
.account-card:has(.account-chat-page, .account-family-page) .logo img { max-height: 54px; }
.account-page.account-chat-page { width: 100%; max-width: none; flex: 1; }
.account-chat-page h1 { font-size: clamp(24px, 3vw, 34px); margin: 0 auto 0 0; line-height: 1.15; }
.support-topbar { align-items: center; }
.account-chat-page .account-panel { margin-top: 8px; }

.account-page.account-family-page { width: 100%; max-width: none; }
.account-card:has(.account-family-page) { max-width: 1080px; }
.account-family-page .account-controls { grid-template-columns: minmax(0, 1fr); }
.account-family-page .account-panel { margin-top: 0; }
.family-toolbar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  padding: 4px 0 10px;
}
.family-toolbar h1 { margin: 0; font-size: clamp(20px, 2.3vw, 33px); line-height: 1.15; text-align: center; }
.family-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.family-stack .profile-card { border-radius: 20px; padding: clamp(14px, 1.7vw, 24px); }
.family-stack .profile-card h2 { color: var(--text); font-size: clamp(17px, 1.7vw, 22px); }
.family-overview h2 { display: flex; align-items: center; gap: 8px; }
.family-overview h2 .family-icon { color: var(--gold); }
.family-stack .profile-card p { color: var(--text); font-size: 14px; }
.family-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.family-actions .btn { width: 100%; margin: 0; min-height: 44px; padding: 8px 10px; text-align: center; }
.family-invite-form[hidden] { display: none; }
.family-member-identity, .family-allocation { display: flex; align-items: center; gap: 10px; }
.family-allocation { flex-wrap: wrap; margin-top: 10px; }
.family-allocation p { flex: 1 1 125px; margin: 0; }
.family-icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  font-size: 24px;
  line-height: 1;
}
.family-icon-button:hover { background: var(--panel-soft); }
.family-icon-button:disabled { opacity: .36; cursor: default; }
.family-allocation .family-icon-button > span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 18px;
}
.family-remove { color: #ff899e; }
.family-user-icon { color: #68aaff; background: #68aaff26; }
.family-icon { display: grid; place-items: center; }
.family-icon svg { width: 21px; height: 21px; }
.checkout-purchase-title { font-size: 17px; margin: 10px 0 0; }
.checkout-gift-toggle { width: 100%; min-height: 44px; margin-top: 14px; justify-content: center; }
.checkout-own-recipient { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.checkout-own-recipient[hidden], .checkout-gift-note[hidden] { display: none; }

@media (min-width: 701px) {
  .account-chat-page,
  .account-chat-page .account-panel { display: flex; flex-direction: column; min-height: 0; }
  .account-chat-page .account-panel { flex: 1; }
  .account-chat-page .account-controls { flex: 1; grid-template-rows: auto minmax(0, 1fr); }
  .account-chat-page .support-workspace {
    min-height: 330px;
    grid-template-columns: clamp(240px, 26vw, 400px) minmax(0, 1fr);
  }
  .account-chat-page .support-pane { min-height: 0; overflow: hidden; }
  .account-chat-page .support-thread { height: auto; min-height: 0; }
  .account-chat-page .support-conversations { flex: 1; min-height: 0; max-height: none; }
  .account-chat-page .support-new-chat { overflow-y: auto; }
  .support-chat-header, .support-composer, .support-closed { flex-shrink: 0; }
}

@media (min-width: 701px) and (min-height: 640px) {
  .account-card:has(.account-chat-page) { height: calc(100dvh - 2 * var(--support-inset)); }
  .account-chat-page .account-controls { min-height: 0; }
  .account-chat-page .support-workspace { min-height: 0; }
}

@media (max-width: 700px) {
  .account-card:has(.account-chat-page, .account-family-page) { border-radius: 16px; padding: 8px; overflow: clip; }
  .account-card:has(.account-chat-page) .logo img { max-width: min(132px, 100%); }
  .account-chat-page .support-thread { flex: none; height: clamp(140px, calc(100dvh - 310px), 720px); min-height: 0; }
  .account-chat-page .support-chat-header .btn { min-height: 44px; }
  .account-chat-page .support-composer {
    position: sticky;
    bottom: env(safe-area-inset-bottom, 0px);
    z-index: 1;
    align-items: center;
    background: var(--panel);
    border-radius: 0 0 18px 18px;
  }
  .support-topbar h1 { flex: 0 0 100%; }
}

@media (min-width: 1021px) {
  .site-account-menu {
    position: absolute;
    top: 0;
    right: 0;
  }
}

@media (max-width: 1020px) {
  .site-header:has(.site-header-actions) {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-header:has(.site-header-actions) nav {
    grid-area: 2 / 1 / 3 / -1;
    justify-content: center;
  }
}

@media (max-width: 780px) {
  .site-header:has(.site-header-actions) .logo {
    justify-content: flex-start;
  }

  .site-header:has(.site-header-actions) .logo img {
    width: min(160px, 100%);
  }
}

@media (max-width: 480px) {
  .card {
    padding-inline: 12px;
  }

  #download .download-card .btn,
  .account-panel .btn {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}
