@font-face {
  font-family: "Inter";
  src: url("./assets/inter-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #071014;
  --surface: #0d171b;
  --surface-2: #101f24;
  --surface-3: #15272d;
  --text: #f4fbfb;
  --muted: #a8bbbf;
  --line: rgba(255, 255, 255, 0.12);
  --teal: #22d3c5;
  --cyan: #69e6ff;
  --green: #35e58a;
  --danger: #ff6b6b;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
}

:root[data-theme="light"] {
  --bg: #f4f8f7;
  --surface: #ffffff;
  --surface-2: #edf5f3;
  --surface-3: #e1eeeb;
  --text: #081115;
  --muted: #526267;
  --line: rgba(8, 17, 21, 0.14);
  --shadow: 0 20px 60px rgba(8, 17, 21, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 12%, rgba(34, 211, 197, 0.14), transparent 28rem),
    linear-gradient(180deg, #061013 0%, #091417 48%, #061013 100%);
  color: var(--text);
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at 16% 12%, rgba(34, 211, 197, 0.18), transparent 28rem),
    linear-gradient(180deg, #f7fbfa 0%, #eef7f5 48%, #f7fbfa 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.header-tools,
.mobile-controls,
.cabinet-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.lang-switch button {
  display: inline-grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 850;
  cursor: pointer;
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.lang-switch button {
  min-width: 36px;
  height: 32px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
}

.lang-switch button.active {
  background: var(--white);
  color: #060606;
}

:root[data-theme="light"] .site-header,
:root[data-theme="light"] .auth-header,
:root[data-theme="light"] .mobile-nav,
:root[data-theme="light"] .cabinet-sidebar {
  background: rgba(255, 255, 255, 0.78);
}

:root[data-theme="light"] .header-action,
:root[data-theme="light"] .lang-switch button.active {
  background: #081115;
  color: #ffffff;
}

.site-header.is-scrolled {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 20, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(34, 211, 197, 0.42);
  border-radius: var(--radius);
  background: rgba(34, 211, 197, 0.12);
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.nav a,
.footer-links a,
.auth-links a,
.cabinet-nav a {
  transition: color 160ms ease, background 160ms ease;
}

.nav a:hover,
.footer-links a:hover,
.auth-links a:hover {
  color: var(--teal);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.header-action,
.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.button-primary {
  border: 1px solid rgba(34, 211, 197, 0.8);
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: #051012;
  box-shadow: 0 16px 36px rgba(34, 211, 197, 0.22);
}

.button:hover,
.header-action:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
}

.mobile-nav {
  position: fixed;
  top: 72px;
  left: 16px;
  right: 16px;
  z-index: 19;
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 16, 20, 0.96);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mobile-nav.is-open {
  display: grid;
}

.mobile-nav a {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.82);
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.mobile-cta {
  color: var(--teal);
  font-weight: 850;
}

.home-hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.75fr);
  align-items: center;
  gap: clamp(28px, 6vw, 78px);
  padding: 132px clamp(18px, 5vw, 72px) 82px;
}

:root[data-theme="light"] .home-hero {
  background:
    radial-gradient(circle at 88% 40%, rgba(96, 82, 255, 0.18), transparent 28rem),
    linear-gradient(90deg, rgba(244, 248, 247, 0.96), rgba(234, 242, 240, 0.98));
}

.home-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  max-width: 840px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

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

.dashboard-preview,
.auth-panel,
.auth-aside,
.feature-card,
.plan-card,
.metric-card,
.content-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.dashboard-preview {
  min-height: 420px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(34, 211, 197, 0.13), rgba(255, 255, 255, 0.06)),
    var(--surface);
  box-shadow: var(--shadow);
}

.preview-topbar {
  display: flex;
  gap: 7px;
  margin-bottom: 30px;
}

.preview-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}

.preview-status,
.metric-head,
.usage-row,
.payment-list div,
.device-list > div,
.support-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.link-email-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.62fr) auto;
  align-items: end;
  gap: 12px;
  width: min(760px, 100%);
}

.link-email-form [hidden] {
  display: none;
}

.link-email-form .form-note {
  grid-column: 1 / -1;
  margin: 0;
}

.preview-status {
  margin-bottom: 22px;
}

.preview-status p,
.card-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
}

.preview-status strong {
  font-size: 38px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(53, 229, 138, 0.4);
  border-radius: 999px;
  background: rgba(53, 229, 138, 0.12);
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
}

.preview-meter,
.usage-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.preview-meter span,
.usage-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.preview-grid div,
.preview-link {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 16, 20, 0.44);
}

.preview-grid div {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.preview-grid span,
.preview-link span {
  color: var(--muted);
  font-size: 13px;
}

.preview-grid strong {
  font-size: 24px;
}

.preview-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.preview-link button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: var(--teal);
  color: #051012;
  font-weight: 850;
}

.section {
  padding: 88px clamp(18px, 5vw, 72px);
}

.section-tight {
  padding-top: 58px;
}

.section-head {
  width: min(780px, 100%);
  margin-bottom: 34px;
}

.section-head-row {
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

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

.feature-card,
.plan-card {
  padding: 26px;
}

.feature-number {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.feature-card p,
.plan-card li,
.faq-list p,
.auth-copy,
.auth-aside p,
.check-list,
.metric-card span,
.content-card p,
.device-list span {
  color: var(--muted);
  line-height: 1.65;
}

.plans-section {
  background:
    linear-gradient(180deg, rgba(34, 211, 197, 0.06), rgba(34, 211, 197, 0)),
    var(--bg);
}

.billing-toggle {
  display: inline-flex;
  min-width: max-content;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.billing-toggle button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.billing-toggle button.active {
  background: var(--white);
  color: #071014;
}

.plan-card {
  display: flex;
  flex-direction: column;
}

.plan-card-accent {
  border-color: rgba(34, 211, 197, 0.5);
  background: linear-gradient(180deg, rgba(34, 211, 197, 0.16), rgba(255, 255, 255, 0.06));
}

.plan-label {
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(34, 211, 197, 0.35);
  border-radius: 999px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.price {
  margin: 6px 0 22px;
  color: var(--white);
  font-size: 42px;
  font-weight: 950;
}

.plan-card ul {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.plan-card li {
  position: relative;
  padding-left: 22px;
}

.plan-card li::before {
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  content: "";
}

.plan-card .button {
  margin-top: auto;
}

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

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.faq-list summary {
  padding: 20px 22px;
  font-size: 18px;
  font-weight: 850;
  cursor: pointer;
}

.faq-list p {
  margin: 0;
  padding: 0 22px 22px;
}

.cta-band {
  margin: 24px clamp(18px, 5vw, 72px) 88px;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid rgba(34, 211, 197, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(34, 211, 197, 0.18), rgba(105, 230, 255, 0.08)),
    rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.cta-band h2 {
  max-width: 820px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 7px 0 0;
}

.site-footer strong {
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 18px;
}

.auth-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(320px, 0.75fr);
  width: min(1080px, 100%);
  min-height: 650px;
  gap: 18px;
}

.auth-panel,
.auth-aside {
  padding: clamp(28px, 4vw, 44px);
}

.auth-brand {
  margin-bottom: 54px;
}

.auth-panel h1 {
  font-size: clamp(40px, 5vw, 64px);
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.auth-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  background: rgba(7, 16, 20, 0.58);
  color: var(--text);
  outline: 0;
}

.auth-form input:focus {
  border-color: rgba(34, 211, 197, 0.68);
  box-shadow: 0 0 0 4px rgba(34, 211, 197, 0.12);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.text-action {
  justify-self: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--teal);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.text-action:hover {
  color: var(--cyan);
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 14px;
}

.auth-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(34, 211, 197, 0.16), rgba(255, 255, 255, 0.055)),
    var(--surface);
}

.auth-aside h2 {
  margin-top: 18px;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.cabinet-page {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.cabinet-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 28px;
  border-right: 1px solid var(--line);
  background: rgba(7, 16, 20, 0.76);
}

.cabinet-nav {
  display: grid;
  gap: 8px;
  margin-top: 42px;
}

.cabinet-nav a,
.sidebar-exit {
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--muted);
}

.cabinet-nav a:hover,
.cabinet-nav a.active {
  background: rgba(34, 211, 197, 0.12);
  color: var(--teal);
}

.sidebar-exit {
  margin-top: auto;
}

.cabinet-main {
  padding: 36px clamp(18px, 4vw, 56px) 56px;
}

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

.cabinet-header h1 {
  margin-bottom: 0;
  font-size: clamp(38px, 5vw, 64px);
}

.cabinet-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(190px, 0.5fr));
  gap: 18px;
  margin-bottom: 18px;
}

.metric-card,
.content-card {
  padding: 24px;
}

.metric-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 34px;
}

.metric-card-wide h2,
.content-card h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.usage-bar {
  margin-top: 22px;
}

.usage-row {
  margin-top: 13px;
  color: var(--muted);
  font-size: 14px;
}

.cabinet-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  margin-bottom: 18px;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.subscription-card {
  display: grid;
  gap: 22px;
}

.copy-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 16, 20, 0.52);
}

.copy-box code {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-actions,
.device-create-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

.app-actions .button {
  min-height: 46px;
}

.device-actions {
  display: grid;
  gap: 14px;
}

.device-actions[hidden],
.app-actions[hidden] {
  display: none;
}

.device-create-row .range-field {
  min-width: 190px;
  flex: 1;
}

.device-create-row .button {
  min-height: 52px;
}

.my-devices {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

.my-devices[hidden] {
  display: none;
}

.devices-head,
.device-item,
.device-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.devices-head,
.device-item {
  justify-content: space-between;
}

.devices-head h3 {
  margin: 0;
  font-size: 22px;
}

.devices-head > span {
  color: var(--muted);
  font-weight: 850;
}

.device-item {
  align-items: stretch;
}

.device-meta {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.device-meta span,
.device-meta code {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-buttons {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.device-buttons .button {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

.qr-card {
  display: grid;
  place-items: center;
  text-align: center;
}

.qr-placeholder {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 150px;
  height: 150px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.qr-placeholder span {
  border-radius: 3px;
  background: #071014;
}

.qr-placeholder span:nth-child(3n) {
  background: var(--teal);
}

.device-list,
.payment-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.device-list > div,
.payment-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 16, 20, 0.36);
}

.payment-list span {
  display: grid;
  gap: 4px;
}

.payment-list small,
.muted-row {
  color: var(--muted);
}

.button:disabled,
.social-login-list button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.form-note.is-error {
  color: #ff9b9b;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(34, 211, 197, 0.45);
  border-radius: var(--radius);
  padding: 13px 16px;
  background: rgba(7, 16, 20, 0.94);
  color: var(--text);
  box-shadow: var(--shadow);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  top: 20px;
  left: 50%;
  right: auto;
  width: min(660px, calc(100% - 32px));
  min-height: 64px;
  transform: translateX(-50%);
  grid-template-columns: auto 1fr auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.62);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 10, 0.78);
}

.brand-mark {
  border-radius: 999px;
}

.nav {
  gap: 20px;
}

.nav a:first-child {
  display: none;
}

.header-action {
  min-height: 44px;
  border-radius: 999px;
  background: var(--white);
  color: #060606;
}

.home-hero {
  min-height: 820px;
  background:
    radial-gradient(circle at 88% 40%, rgba(96, 82, 255, 0.34), transparent 28rem),
    linear-gradient(90deg, rgba(8, 16, 13, 0.7), rgba(5, 5, 7, 0.98));
}

.home-copy {
  max-width: 820px;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.42);
}

.status-dot::before {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00d18f;
  box-shadow: 0 0 18px rgba(0, 209, 143, 0.52);
  content: "";
}

.home-hero h1 {
  max-width: 690px;
}

.home-hero h1 strong,
.accent-word {
  color: #7568ff;
}

.phone-preview {
  min-height: 540px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.phone-shell {
  width: min(330px, 100%);
  margin: 0 auto;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-radius: 42px;
  padding: 13px;
  background: #111;
  box-shadow: 0 0 70px rgba(99, 89, 255, 0.32);
}

.phone-screen {
  min-height: 500px;
  border-radius: 30px;
  padding: 28px 18px;
  background:
    radial-gradient(circle at 50% 18%, rgba(112, 96, 255, 0.7), transparent 10rem),
    linear-gradient(180deg, #201b63, #171342);
}

:root[data-theme="light"] .phone-shell {
  border-color: rgba(8, 17, 21, 0.16);
  background: #1a1d24;
}

.power-circle {
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  margin: 40px auto 24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 108, 255, 0.95), rgba(70, 58, 182, 0.36));
  box-shadow: 0 0 0 16px rgba(255, 255, 255, 0.04), 0 0 0 32px rgba(255, 255, 255, 0.025);
  text-align: center;
}

.power-circle span {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.74);
  border-top-color: transparent;
  border-radius: 50%;
}

.power-circle strong,
.power-circle small {
  color: rgba(255, 255, 255, 0.8);
}

.server-card,
.server-list div {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.server-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
}

.server-card span,
.server-list small {
  color: rgba(255, 255, 255, 0.56);
}

.server-list {
  display: grid;
  gap: 10px;
}

.server-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
}

.centered-head {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.centered-head p {
  color: var(--muted);
  font-size: 20px;
}

.timeline {
  display: grid;
  gap: 56px;
  width: min(760px, 100%);
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
}

.timeline-item > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-weight: 850;
}

.timeline-item p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.app-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.app-chips button,
.quick-days button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 750;
  cursor: pointer;
}

.daily-pricing {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 0.65fr);
  gap: 18px;
}

.daily-plan,
.calc-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.calc-card {
  display: grid;
  gap: 18px;
}

.range-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.range-field input,
.range-field select {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  background: rgba(7, 16, 20, 0.58);
  color: var(--text);
  outline: 0;
}

.calc-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(7, 16, 20, 0.42);
}

.calc-result span {
  color: var(--muted);
}

.calc-result strong {
  font-size: 30px;
}

.quick-days {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-page {
  display: block;
  padding: 0;
  background: #090909;
}

:root[data-theme="light"] .auth-page {
  background: #f4f8f7;
}

.auth-header {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(520px, calc(100% - 32px));
  min-height: 64px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(10, 10, 10, 0.78);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.auth-header .brand {
  margin-right: auto;
}

.auth-shell {
  display: grid;
  grid-template-columns: 1fr;
  width: min(560px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 150px 0 72px;
}

.compact-auth {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.compact-auth .auth-brand {
  display: none;
}

.compact-auth h1 {
  font-size: clamp(40px, 6vw, 54px);
  text-align: center;
}

.auth-copy,
.auth-footnote {
  color: rgba(255, 255, 255, 0.44);
  text-align: center;
}

.auth-form input {
  min-height: 74px;
  border-radius: 22px;
  padding: 0 24px;
  background: #090909;
  font-size: 20px;
}

:root[data-theme="light"] .auth-form input,
:root[data-theme="light"] .range-field input,
:root[data-theme="light"] .range-field select,
:root[data-theme="light"] .copy-box,
:root[data-theme="light"] .device-list > div,
:root[data-theme="light"] .payment-list div,
:root[data-theme="light"] .preview-grid div,
:root[data-theme="light"] .preview-link {
  background: rgba(255, 255, 255, 0.78);
}

.auth-form .button {
  min-height: 74px;
  border-radius: 999px;
  background: var(--white);
  color: #060606;
  font-size: 18px;
  box-shadow: none;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 34px 0 22px;
  color: rgba(255, 255, 255, 0.32);
}

.divider::before,
.divider::after {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  content: "";
}

.social-login-list {
  display: grid;
  gap: 14px;
}

.telegram-widget-row {
  display: grid;
  min-height: 58px;
  place-items: center;
}

.telegram-widget-row iframe {
  max-width: 100%;
}

.social-login-list button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-size: 18px;
  font-weight: 850;
  cursor: pointer;
}

.social-login-list button > span:first-child {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: #111;
  font-weight: 950;
}

.social-login-list button > span:last-child {
  width: auto;
  height: auto;
  background: transparent;
  color: inherit;
  font-weight: 850;
}

.social-login-list .telegram-social {
  width: min(360px, 100%);
  margin: 10px auto 0;
  border-color: rgba(83, 173, 232, 0.68);
  background: #55acee;
  color: var(--white);
}

.telegram-social span {
  background: transparent;
  color: var(--white);
}

.auth-footnote {
  margin: 24px 0 0;
  font-size: 14px;
}

.topup-card {
  display: grid;
  gap: 18px;
}

@media (max-width: 1080px) {
  .home-hero,
  .daily-pricing,
  .auth-shell,
  .cabinet-grid,
  .cabinet-content,
  .two-column {
    grid-template-columns: 1fr;
  }

  .dashboard-preview {
    min-height: 360px;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .nav,
  .site-header .header-tools {
    display: none;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .feature-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .section-head-row {
    align-items: start;
    flex-direction: column;
  }

  .cabinet-page {
    grid-template-columns: 1fr;
  }

  .cabinet-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .cabinet-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 24px;
  }

  .sidebar-exit {
    margin-top: 16px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding: 11px 16px;
  }

  .mobile-nav {
    top: 64px;
  }

  .home-hero {
    min-height: auto;
    padding-top: 104px;
    padding-bottom: 58px;
  }

  h1 {
    font-size: 43px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .section {
    padding-top: 66px;
    padding-bottom: 66px;
  }

  .dashboard-preview,
  .feature-card,
  .plan-card,
  .metric-card,
  .content-card,
  .auth-panel,
  .auth-aside {
    padding: 22px;
  }

  .preview-grid,
  .cabinet-nav {
    grid-template-columns: 1fr;
  }

  .billing-toggle {
    width: 100%;
  }

  .billing-toggle button {
    flex: 1;
  }

  .auth-page {
    padding: 0;
  }

  .auth-brand {
    margin-bottom: 36px;
  }

  .cabinet-main {
    padding: 24px 16px 40px;
  }

  .cabinet-header,
  .metric-head,
  .support-card,
  .copy-box,
  .devices-head,
  .device-item {
    align-items: stretch;
    flex-direction: column;
  }

  .device-buttons {
    justify-content: stretch;
  }

  .device-buttons .button {
    flex: 1 1 100%;
  }

  .link-email-form {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: start;
  }
}

/* Compact creative refresh */

:root {
  --bg: #061216;
  --surface: #0b1a1f;
  --surface-2: #10242a;
  --surface-3: #173038;
  --text: #f2f6f3;
  --muted: #91a2a4;
  --line: rgba(180, 224, 217, 0.13);
  --teal: #54dfd3;
  --cyan: #8cecf2;
  --paper: #f0f4ef;
  --paper-text: #07151b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}

:root[data-theme="light"] {
  --bg: #edf2ee;
  --surface: #f8faf7;
  --surface-2: #e2ebe6;
  --surface-3: #d5e3dc;
  --text: #07151b;
  --muted: #5d6e70;
  --line: rgba(7, 21, 27, 0.14);
  --paper: #07151b;
  --paper-text: #f2f6f3;
}

body,
:root[data-theme="light"] body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(84, 223, 211, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 223, 211, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  font-size: 15px;
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
}

h1 {
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.05;
}

h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
}

h3 {
  font-size: 18px;
}

.eyebrow {
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.brand {
  gap: 9px;
  font-size: 14px;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 11px;
}

.site-header {
  top: 24px;
  width: min(1180px, calc(100% - 48px));
  min-height: 52px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.site-header.is-scrolled {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 18, 22, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

:root[data-theme="light"] .site-header {
  color: var(--text);
  background: transparent;
}

:root[data-theme="light"] .site-header.is-scrolled {
  background: rgba(237, 242, 238, 0.92);
}

.nav {
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.theme-toggle,
.lang-switch button {
  min-width: 34px;
  height: 34px;
}

.lang-switch button {
  min-width: 32px;
  height: 28px;
  font-size: 10px;
}

.header-action,
.button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.header-action {
  min-height: 38px;
  background: var(--paper);
  color: var(--paper-text);
}

.button-primary {
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: none;
}

.home-hero {
  width: min(1280px, 100%);
  min-height: 780px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.62fr);
  gap: clamp(40px, 7vw, 96px);
  padding: 138px 36px 72px;
  background: transparent;
}

:root[data-theme="light"] .home-hero {
  background: transparent;
}

.home-copy {
  max-width: 720px;
}

.home-hero h1 {
  max-width: 690px;
  margin-bottom: 24px;
  font-size: clamp(40px, 5.2vw, 66px);
  line-height: 1.07;
}

.home-hero h1 strong,
.accent-word {
  color: var(--teal);
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.7;
}

.status-dot {
  gap: 11px;
  color: var(--teal);
}

.status-dot::before {
  width: 9px;
  height: 9px;
  background: var(--teal);
  box-shadow: none;
}

.phone-preview {
  min-height: 500px;
}

.preview-topbar {
  justify-content: center;
  margin-bottom: 18px;
}

.preview-topbar span {
  width: 7px;
  height: 7px;
}

.phone-shell {
  width: min(300px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 38px;
  padding: 10px;
  background: var(--paper);
  box-shadow: 16px 18px 0 rgba(84, 223, 211, 0.12);
}

.phone-screen {
  min-height: 470px;
  border-radius: 29px;
  padding: 24px 16px;
  background: #e7eeea;
  color: #07151b;
}

:root[data-theme="light"] .phone-shell {
  border-color: rgba(7, 21, 27, 0.18);
  background: #07151b;
}

:root[data-theme="light"] .phone-screen {
  background: #10242a;
  color: #f2f6f3;
}

.power-circle {
  width: 132px;
  height: 132px;
  margin: 34px auto 24px;
  background: rgba(84, 223, 211, 0.22);
  box-shadow: 0 0 0 14px rgba(84, 223, 211, 0.1), 0 0 0 28px rgba(84, 223, 211, 0.05);
}

.power-circle span {
  width: 22px;
  height: 22px;
  border-color: #07151b;
  border-top-color: transparent;
}

.power-circle strong,
.power-circle small {
  color: #07151b;
}

:root[data-theme="light"] .power-circle strong,
:root[data-theme="light"] .power-circle small {
  color: #f2f6f3;
}

.server-card,
.server-list div {
  border-color: rgba(7, 21, 27, 0.12);
  background: rgba(255, 255, 255, 0.62);
}

.server-card span,
.server-list small {
  color: #627276;
}

:root[data-theme="light"] .server-card,
:root[data-theme="light"] .server-list div {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

:root[data-theme="light"] .server-card span,
:root[data-theme="light"] .server-list small {
  color: #91a2a4;
}

.section {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 72px 36px;
}

.section-tight {
  padding-top: 48px;
}

.section-head {
  width: min(700px, 100%);
  margin-bottom: 28px;
}

.feature-grid {
  gap: 12px;
}

.feature-card,
.plan-card,
.daily-plan,
.calc-card,
.metric-card,
.content-card {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: none;
}

.feature-card {
  min-height: 190px;
  padding: 22px;
}

.feature-number {
  margin-bottom: 36px;
}

.feature-card p,
.plan-card li,
.faq-list p,
.content-card p,
.device-list span {
  font-size: 14px;
  line-height: 1.65;
}

.timeline {
  gap: 38px;
  width: min(720px, 100%);
}

.timeline-item {
  grid-template-columns: 54px 1fr;
  gap: 22px;
}

.timeline-item > span {
  width: 38px;
  height: 38px;
  font-size: 12px;
}

.timeline-item p,
.centered-head p {
  font-size: 15px;
}

.app-chips button,
.quick-days button {
  min-height: 36px;
  padding: 0 13px;
  font-size: 12px;
}

.plans-section {
  background: transparent;
}

.daily-pricing {
  gap: 12px;
}

.daily-plan,
.calc-card {
  padding: 24px;
}

.daily-plan {
  border-color: transparent;
  background: var(--paper);
  color: var(--paper-text);
}

.daily-plan .plan-label {
  color: #087f77;
}

.daily-plan .price,
.daily-plan li {
  color: var(--paper-text);
}

.daily-plan .button-primary {
  background: var(--paper-text);
  color: var(--paper);
}

.price {
  font-size: 36px;
}

.range-field input,
.range-field select {
  min-height: 46px;
  border-radius: 6px;
}

.calc-result {
  padding: 15px;
}

.calc-result strong {
  font-size: 25px;
}

:root[data-theme="light"] .calc-result {
  background: var(--surface-2);
}

:root[data-theme="light"] .calc-result span {
  color: var(--muted);
}

.faq-list details {
  background: var(--surface);
}

.faq-list summary {
  padding: 17px 19px;
  font-size: 15px;
}

.cta-band {
  width: min(1208px, calc(100% - 72px));
  margin: 18px auto 72px;
  padding: 36px;
  border: 0;
  background: var(--paper);
  color: var(--paper-text);
  box-shadow: none;
}

.cta-band .eyebrow {
  color: #087f77;
}

.cta-band .button-primary {
  background: var(--paper-text);
  color: var(--paper);
}

.site-footer {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 28px 36px;
  font-size: 13px;
}

.auth-page,
:root[data-theme="light"] .auth-page {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(84, 223, 211, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 223, 211, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}

.auth-header {
  top: 24px;
  width: min(1180px, calc(100% - 48px));
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

:root[data-theme="light"] .auth-header {
  background: transparent;
}

.auth-shell {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.72fr);
  align-items: center;
  gap: clamp(54px, 8vw, 120px);
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  padding: 116px 0 62px;
}

.auth-intro {
  max-width: 650px;
}

.auth-intro h1 {
  max-width: 620px;
  margin-bottom: 28px;
  font-size: clamp(40px, 4.5vw, 60px);
}

.auth-intro > p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.signal-mark {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 94px;
  margin-top: 44px;
}

.signal-mark span {
  width: 9px;
  border-radius: 6px 6px 2px 2px;
  background: var(--teal);
  box-shadow: 0 0 18px rgba(84, 223, 211, 0.32);
}

.signal-mark span:nth-child(1) {
  height: 22px;
}

.signal-mark span:nth-child(2) {
  height: 40px;
}

.signal-mark span:nth-child(3) {
  height: 62px;
}

.signal-mark span:nth-child(4) {
  height: 84px;
}

.compact-auth {
  width: 100%;
  padding: 40px;
  border: 0;
  border-radius: var(--radius);
  background: #f0f4ef;
  color: #07151b;
  box-shadow: 14px 16px 0 rgba(84, 223, 211, 0.12);
}

.compact-auth h1 {
  margin-bottom: 12px;
  font-size: 32px;
  text-align: left;
}

.compact-auth .auth-copy,
.compact-auth .auth-footnote,
.compact-auth .form-note {
  color: #708084;
  text-align: left;
}

.compact-auth .auth-form {
  gap: 11px;
  margin-top: 24px;
}

.compact-auth .auth-form input {
  min-height: 54px;
  border-color: #d3dcd7;
  border-radius: 6px;
  padding: 0 16px;
  background: #ffffff;
  color: #07151b;
  font-size: 15px;
}

.compact-auth .auth-form input:focus {
  border-color: #54bdb5;
}

.compact-auth .auth-form .button {
  min-height: 52px;
  border-radius: 6px;
  background: #07151b;
  color: #ffffff;
  font-size: 14px;
}

.compact-auth .text-action {
  color: #087f77;
}

.compact-auth .divider {
  margin: 24px 0 16px;
  color: #829093;
}

.compact-auth .divider::before,
.compact-auth .divider::after {
  background: #d3dcd7;
}

.compact-auth .social-login-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.compact-auth .social-login-list button {
  min-height: 48px;
  border-color: #d3dcd7;
  border-radius: 6px;
  background: transparent;
  color: #07151b;
  font-size: 12px;
}

.compact-auth .social-login-list .telegram-social {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  border-color: #54bdb5;
  background: #54dfd3;
  color: #07151b;
}

.compact-auth .social-login-list .telegram-social > span:first-child {
  background: #07151b;
  color: #ffffff;
}

.compact-auth .auth-footnote {
  margin-top: 18px;
  font-size: 12px;
}

.compact-auth .auth-links {
  margin-top: 16px;
  color: #607174;
  font-size: 12px;
}

.cabinet-page {
  grid-template-columns: 224px minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--bg);
}

.cabinet-sidebar {
  min-width: 0;
  padding: 24px 18px;
  background: rgba(6, 18, 22, 0.82);
  backdrop-filter: blur(14px);
}

:root[data-theme="light"] .cabinet-sidebar {
  background: rgba(237, 242, 238, 0.88);
}

.cabinet-nav {
  gap: 4px;
  margin-top: 34px;
}

.cabinet-nav a,
.sidebar-exit {
  padding: 10px 12px;
  font-size: 13px;
}

.cabinet-tools {
  margin-top: 18px;
}

.cabinet-main {
  width: min(1480px, 100%);
  min-width: 0;
  margin: 0 auto;
  padding: 28px 32px 48px;
}

.cabinet-header {
  margin-bottom: 20px;
}

.cabinet-header h1 {
  font-size: clamp(30px, 3.4vw, 44px);
}

.cabinet-grid {
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(170px, 0.48fr));
  gap: 12px;
  margin-bottom: 12px;
}

.metric-card,
.content-card {
  padding: 20px;
}

.metric-card strong {
  font-size: 27px;
}

.metric-card-wide {
  border-color: transparent;
  background: var(--paper);
  color: var(--paper-text);
}

.metric-card-wide .card-label,
.metric-card-wide .usage-row {
  color: color-mix(in srgb, var(--paper-text), transparent 36%);
}

.metric-card-wide .usage-bar {
  background: color-mix(in srgb, var(--paper-text), transparent 82%);
}

.metric-card-wide .usage-bar span {
  background: var(--teal);
}

.metric-card-wide .status-pill {
  border-color: rgba(8, 127, 119, 0.3);
  background: rgba(84, 223, 211, 0.14);
  color: #087f77;
}

.metric-card-wide h2,
.content-card h2 {
  font-size: clamp(21px, 2vw, 28px);
}

.usage-bar {
  height: 7px;
  margin-top: 18px;
}

.usage-row {
  margin-top: 10px;
  font-size: 12px;
}

.cabinet-content {
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 12px;
  margin-bottom: 12px;
}

.cabinet-content.two-column {
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr);
}

.subscription-card {
  gap: 18px;
}

.copy-box {
  padding: 9px;
}

.copy-box code {
  font-size: 12px;
}

.app-actions .button,
.device-create-row .button {
  min-height: 42px;
}

.my-devices {
  gap: 10px;
}

.devices-head h3 {
  font-size: 17px;
}

.device-list,
.payment-list {
  gap: 8px;
  margin-top: 14px;
}

.device-list > div,
.payment-list div {
  padding: 11px;
}

.device-buttons .button {
  min-height: 34px;
  padding: 0 11px;
  font-size: 11px;
}

.qr-card {
  border-color: transparent;
  background: var(--paper);
  color: var(--paper-text);
}

.qr-card p {
  color: color-mix(in srgb, var(--paper-text), transparent 36%);
}

.qr-placeholder {
  width: 132px;
  height: 132px;
  gap: 6px;
  padding: 12px;
}

.topup-card {
  gap: 14px;
}

.support-card {
  gap: 24px;
}

@media (max-width: 1080px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .auth-shell {
    grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.8fr);
    gap: 44px;
  }

  .cabinet-grid,
  .cabinet-content,
  .cabinet-content.two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-header {
    top: 12px;
    width: calc(100% - 24px);
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(6, 18, 22, 0.9);
    backdrop-filter: blur(14px);
  }

  :root[data-theme="light"] .site-header {
    background: rgba(237, 242, 238, 0.92);
  }

  .home-hero,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .home-hero {
    padding-top: 120px;
  }

  .home-copy {
    max-width: 680px;
  }

  .phone-preview {
    min-height: auto;
    padding: 20px 0;
  }

  .auth-header {
    top: 16px;
    width: calc(100% - 32px);
  }

  .auth-shell {
    gap: 38px;
    width: min(620px, calc(100% - 32px));
    padding-top: 120px;
  }

  .auth-intro h1 {
    font-size: 42px;
  }

  .signal-mark {
    display: none;
  }

  .cabinet-page {
    grid-template-columns: 1fr;
  }

  .cabinet-sidebar {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    height: auto;
    padding: 16px;
  }

  .cabinet-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    margin-top: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .cabinet-nav::-webkit-scrollbar {
    display: none;
  }

  .cabinet-nav a {
    min-width: max-content;
  }

  .cabinet-tools {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
  }

  .sidebar-exit {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 4px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 27px;
  }

  .home-hero {
    padding: 108px 18px 52px;
  }

  .home-hero h1 {
    font-size: 38px;
  }

  .section {
    padding: 54px 18px;
  }

  .feature-card,
  .plan-card,
  .metric-card,
  .content-card {
    padding: 18px;
  }

  .cta-band {
    width: calc(100% - 36px);
    margin-bottom: 54px;
    padding: 26px 20px;
  }

  .auth-header .header-action {
    display: none;
  }

  .auth-intro h1 {
    font-size: 34px;
  }

  .auth-intro > p:not(.eyebrow) {
    font-size: 15px;
  }

  .compact-auth {
    padding: 26px 20px;
    box-shadow: 8px 9px 0 rgba(84, 223, 211, 0.12);
  }

  .compact-auth .social-login-list {
    grid-template-columns: 1fr;
  }

  .compact-auth .social-login-list .telegram-social {
    grid-column: auto;
  }

  .cabinet-main {
    padding: 24px 14px 38px;
  }

  .cabinet-header h1 {
    font-size: 30px;
  }

  .cabinet-header .button {
    width: auto;
  }

  .metric-card-wide .metric-head {
    align-items: center;
    flex-direction: row;
  }

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

  .copy-box {
    align-items: stretch;
  }

  .device-create-row .button,
  .app-actions .button {
    width: 100%;
  }
}
