/* YuKat public site workspace — 2026-07-25 */
:root {
  --site-bg: #f8f7fc;
  --site-surface: #ffffff;
  --site-soft: #f1edfb;
  --site-soft-strong: #e9e1fb;
  --site-ink: #171421;
  --site-muted: #726e82;
  --site-line: #e5e0ef;
  --site-accent: #7448e8;
  --site-accent-dark: #5930c4;
  --site-success: #1b9b68;
  --site-danger: #d8495b;
  --site-radius: 18px;
  --site-card-radius: 14px;
  --site-control-radius: 11px;
  --site-control-height: 44px;
  --site-sidebar-width: clamp(240px, 13.542vw, 280px);
  --site-header-height: clamp(72px, 4.271vw, 88px);
  --site-workspace-max: clamp(1120px, 68.75vw, 1560px);
  --site-content-gutter: clamp(24px, 1.771vw, 42px);
  --site-header-max: clamp(1080px, 61.458vw, 1400px);
  --site-hero-max: clamp(1120px, 64.583vw, 1480px);
  --site-section-max: clamp(1040px, 61.458vw, 1400px);
  --site-workspace-inner: calc(var(--site-workspace-max) - (var(--site-content-gutter) * 2));
  --site-shadow: 0 18px 55px rgba(48, 31, 84, .08);
}

html { scroll-behavior: smooth; scroll-padding-top: 92px; }
html.account-route #loginView { display: none !important; }
body {
  margin: 0;
  background: var(--site-bg);
  color: var(--site-ink);
  font-family: "Uni Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: linear-gradient(rgba(116,72,232,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(116,72,232,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 72%);
}

* { box-sizing: border-box; }
button, input, textarea { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(116,72,232,.26);
  outline-offset: 3px;
}
.hidden { display: none !important; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Landing */
.landing { overflow: clip; }
.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  width: min(var(--site-header-max), calc(100% - 40px));
  min-height: 70px;
  margin: 14px auto 0;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(218,211,233,.9);
  border-radius: 20px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 40px rgba(35,24,61,.08);
  backdrop-filter: blur(18px);
}
.brand { gap: 10px; color: var(--site-ink); }
.brand img { display: block; }
.brand span { font-size: 20px; letter-spacing: -.02em; }
.brand b { color: var(--site-accent); }
.site-nav { gap: 3px; }
.site-nav a {
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #5f5b6d;
  font-size: 13px;
  font-weight: 700;
  transition: color .2s ease, background .2s ease;
}
.site-nav a:hover, .site-nav a.is-current { color: var(--site-accent); background: var(--site-soft); }
.header-login {
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid var(--site-line);
  border-radius: 13px;
  color: var(--site-accent);
  background: #fff;
  font-weight: 800;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.header-login:hover { border-color: #cfc2ee; box-shadow: 0 8px 20px rgba(65,40,120,.1); }
.header-login svg, .button svg { fill: none; stroke: currentColor; stroke-width: 1.8; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr);
  gap: clamp(34px, 5vw, 80px);
  align-items: center;
  width: min(var(--site-hero-max), calc(100% - 48px));
  min-height: 760px;
  margin: 0 auto;
  padding: 96px 10px 86px;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  right: -110px;
  top: 90px;
  border-radius: 50%;
  background: #eee7ff;
  filter: blur(3px);
}
.hero-copy { max-width: 610px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--site-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow > span { width: 22px; height: 2px; border-radius: 9px; background: currentColor; }
.hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--site-ink);
  font-size: clamp(54px, 6vw, 88px);
  line-height: .93;
  letter-spacing: -.055em;
}
.hero h1 em, .section-intro h2 em, .final-cta h2 em {
  color: var(--site-accent);
  font-style: normal;
}
.hero-lead {
  max-width: 570px;
  margin: 30px 0 0;
  color: var(--site-muted);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
}
.hero-actions { margin-top: 34px; gap: 12px; }
.button {
  min-height: 52px;
  border-radius: 14px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.button-primary {
  border: 1px solid var(--site-accent);
  background: var(--site-accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(116,72,232,.24);
}
.button-primary:hover { background: var(--site-accent-dark); box-shadow: 0 16px 32px rgba(116,72,232,.3); }
.button-secondary { border: 1px solid var(--site-line); background: #fff; color: var(--site-ink); }
.button-secondary:hover { border-color: #cfc2ee; color: var(--site-accent); }
.button-disabled { border: 1px solid #d9d2e9; background: #f4f1f9; color: #8c8799; box-shadow: none; cursor: not-allowed; }
.hero-note {
  display: flex;
  gap: 0;
  margin-top: 22px;
  color: #777184;
  font-size: 12px;
}
.hero-note::before { display: none; }
.hero-note span { display: inline-flex; align-items: center; }
.hero-note span + span::before { content: ""; width: 3px; height: 3px; margin: 0 10px; border-radius: 50%; background: #9fefc6; }

.hero-product { min-height: 570px; display: grid; align-items: center; }
.product-window {
  width: min(100%, 650px);
  margin-left: auto;
  border: 1px solid rgba(212,203,231,.9);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 36px 80px rgba(38,24,66,.18);
  transform: perspective(1200px) rotateY(-4deg) rotateX(1deg) translate3d(var(--parallax-x,0),var(--parallax-y,0),0);
  transition: transform .22s ease;
  overflow: hidden;
}
.window-bar { height: 52px; border-bottom: 1px solid var(--site-line); background: #fff; }
.window-body { min-height: 400px; }
.window-sidebar { width: 150px; padding: 18px 12px; background: #f6f2ff; border-right: 1px solid #e8e0f7; }
.window-logo { margin-bottom: 25px; }
.mock-nav { min-height: 40px; padding: 12px 13px; border-radius: 11px; font-size: 11px; }
.mock-nav.active { color: var(--site-accent); background: #e9dfff; }
.window-content { padding: 28px; }
.mock-title { font-size: 23px; }
.connection-row { margin-top: 42px; gap: 22px; }
.connection-orb { background: var(--site-soft); box-shadow: inset 0 0 0 1px #dfd4f3; }
.connection-copy i { border-radius: 11px; background: var(--site-accent); }
.mock-status { margin-top: 34px; gap: 9px; }
.mock-status span { border: 1px solid var(--site-line); border-radius: 13px; background: #faf9fc; }
.floating-status {
  border: 1px solid rgba(215,207,232,.92);
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 40px rgba(43,27,76,.14);
}
.floating-status-top { right: -16px; top: 54px; }
.floating-status-bottom { left: -22px; bottom: 52px; }
.status-dot { background: #3dc78a; box-shadow: 0 0 0 6px rgba(61,199,138,.13); }

.marquee-section { background: var(--site-accent); border: 0; overflow: hidden; }
.marquee-track { width: max-content; gap: 0; animation: site-marquee 28s linear infinite; }
.marquee-group { flex: none; gap: 34px; padding: 0 34px 0 0; }
.marquee-group span { color: #fff; font-size: 14px; }
.marquee-group i { width: 6px; height: 6px; background: #9ff0c9; }
@keyframes site-marquee { to { transform: translate3d(-50%,0,0); } }

.section { width: min(var(--site-section-max), calc(100% - 48px)); padding: 112px 0; }
.section-intro { max-width: 720px; }
.section-intro h2, .final-cta h2 {
  margin: 0;
  color: var(--site-ink);
  font-size: clamp(42px, 5vw, 67px);
  line-height: .98;
  letter-spacing: -.045em;
}
.section-intro > p:last-child { max-width: 630px; margin-top: 24px; font-size: 17px; line-height: 1.6; color: var(--site-muted); }

.benefits-section { padding-bottom: 70px; }
.benefit-list { display: grid; grid-template-columns: 1fr; margin-top: 68px; border-top: 1px solid var(--site-line); }
.benefit-list article { position: relative; display: grid; grid-template-columns: 56px minmax(240px,.55fr) minmax(0,1fr); align-items: center; gap: 32px; min-height: 132px; padding: 24px 0; border-bottom: 1px solid var(--site-line); }
.benefit-list article + article { padding-left: 0; border-left: 0; }
.benefit-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0; border-radius: 0; color: var(--site-accent); background: transparent; }
.benefit-icon svg { width: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.benefit-list h3 { margin: 0; font-size: 24px; }
.benefit-list p { max-width: 650px; margin: 0; color: var(--site-muted); font-size: 15px; line-height: 1.65; }

.apps-section { padding-top: 90px; }
.app-showcase { display: grid; grid-template-columns: 1.02fr .98fr; gap: 18px; margin-top: 58px; }
.app-primary, .happ-downloads {
  border: 1px solid var(--site-line);
  border-radius: var(--site-radius);
  background: #fff;
  box-shadow: none;
}
.app-primary { min-height: 510px; padding: 42px; overflow: hidden; }
.app-primary::before { content: ""; position: absolute; width: 310px; height: 310px; right: -95px; bottom: -110px; border-radius: 50%; background: var(--site-soft); }
.app-primary-copy { position: relative; z-index: 2; max-width: 390px; }
.app-primary h3, .happ-heading h3 { color: var(--site-ink); }
.app-primary p { color: var(--site-muted); line-height: 1.65; }
.app-release-actions { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; width: min(100%,360px); margin-top: 28px; }
.app-release-actions .button { justify-content: center; min-width: 0; margin: 0; padding-inline: 14px; }
.app-release-actions small { font: inherit; opacity: .68; }
.app-mascot { right: 12px; bottom: -22px; width: 225px; opacity: .94; }
.app-label { color: var(--site-accent); letter-spacing: .1em; }
.happ-downloads { padding: 26px; }
.happ-heading { padding: 8px 8px 24px; border-bottom: 1px solid var(--site-line); }
.happ-heading > a { color: var(--site-accent); }
.platform-links { gap: 0; }
.platform-links > a { min-height: 86px; padding: 13px 8px; border: 0; border-bottom: 1px solid var(--site-line); border-radius: 0; background: transparent; }
.platform-links > a:last-child { border-bottom: 0; }
.platform-links > a:hover { padding-left: 14px; border-color: var(--site-line); background: #faf8fe; transform: none; }
.platform-icon { background: var(--site-soft); color: var(--site-accent); }

.steps-section { border-top: 1px solid var(--site-line); }
.setup-steps { grid-template-columns: repeat(3,1fr); gap: 0; margin-top: 62px; border: 0; border-top: 1px solid var(--site-line); border-bottom: 1px solid var(--site-line); border-radius: 0; overflow: visible; background: transparent; }
.setup-steps article { min-height: 260px; padding: 34px 40px 36px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.setup-steps article + article { border-left: 1px solid var(--site-line); }
.setup-steps article + article { padding-left: 40px; }
.setup-steps article:hover { transform: none; background: transparent; box-shadow: none; }
.step-label { color: var(--site-accent); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.setup-steps h3 { max-width: 270px; margin-top: 62px; font-size: 22px; }
.setup-steps p { color: var(--site-muted); line-height: 1.65; }

.pricing-section { padding-top: 70px; }
.pricing-list { margin-top: 56px; border-top: 1px solid var(--site-line); }
.price-row { min-height: 132px; grid-template-columns: 1fr .55fr 1.2fr auto; padding: 22px 12px; border: 0; border-bottom: 1px solid var(--site-line); border-radius: 0; background: transparent; box-shadow: none; }
.price-row:hover { transform: none; padding-left: 12px; background: rgba(255,255,255,.72); }
.price-row::before { display: none; }
.price-row.featured { color: var(--site-ink); background: #f0ebfc; }
.price-row.featured strong, .price-row.featured h3, .price-row.featured p { color: inherit; }
.price-row.featured a { border-color: var(--site-accent); background: var(--site-accent); color: #fff; }
.price-row strong { color: var(--site-accent); }
.price-row a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 190px;
  min-height: 50px;
  border: 1px solid var(--site-line);
  border-radius: 12px;
  padding: 0 18px;
  background: #fff;
  color: var(--site-ink);
  white-space: nowrap;
}
.price-row a:active { transform: scale(.985); }
.price-row a:hover, .price-row a:active, .price-row a:hover i { transform: none; }

/* Stable interaction: visual feedback never changes layout or follows the cursor. */
.button::before, .soft-button::before { display: none; }
.button:hover, .soft-button:hover, .ghost-button:hover, .header-login:hover { transform: none; }
.platform-links > a:hover { padding-left: 8px; }

.release-status-section {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(520px, 1.22fr);
  align-items: end;
  gap: clamp(40px, 7vw, 104px);
  border-top: 1px solid var(--site-line);
  border-bottom: 1px solid var(--site-line);
  padding-block: clamp(58px, 7vw, 96px);
}
.release-status-copy h2 { margin: 0; font-size: clamp(38px, 4.4vw, 68px); line-height: .94; letter-spacing: -.055em; }
.release-status-copy h2 em { color: var(--site-accent); font-style: normal; }
.release-status-copy > p:not(.eyebrow) { max-width: 540px; margin: 22px 0; color: var(--site-muted); font-size: 15px; line-height: 1.65; }
.service-proof { display: inline-grid; grid-template-columns: 10px auto; gap: 3px 10px; align-items: center; }
.service-proof i { width: 10px; height: 10px; grid-row: 1 / span 2; border-radius: 50%; background: var(--site-success); box-shadow: 0 0 0 5px color-mix(in srgb, var(--site-success) 12%, transparent); }
.service-proof b { font-size: 12px; }
.service-proof small { color: var(--site-muted); font-size: 11px; }
.release-list { border-top: 1px solid var(--site-line); }
.release-list article { display: grid; grid-template-columns: 110px minmax(130px, .7fr) minmax(180px, 1fr) auto; align-items: center; gap: 22px; border-bottom: 1px solid var(--site-line); padding: 24px 0; }
.release-platform { color: var(--site-accent); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.release-list strong { font-size: 17px; }
.release-list strong b { color: var(--site-accent); }
.release-list p { margin: 0; color: var(--site-muted); font-size: 12px; line-height: 1.5; }
.release-list a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 1px solid var(--site-line); border-radius: var(--site-control-radius); padding: 0 15px; color: var(--site-ink); background: var(--site-surface); font-size: 11px; font-weight: 900; white-space: nowrap; transition: border-color .18s ease, color .18s ease, background .18s ease; }
.release-list a:hover { border-color: var(--site-accent); color: var(--site-accent); background: var(--site-soft); }

@media (max-width: 1080px) {
  .release-status-section { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 760px) {
  .release-status-section { gap: 34px; padding-block: 54px; }
  .release-status-copy h2 { font-size: clamp(36px, 12vw, 48px); }
  .release-status-copy > p:not(.eyebrow) { font-size: 15px; }
  .release-list article { grid-template-columns: 1fr auto; gap: 9px 15px; padding: 20px 0; }
  .release-list article p { grid-column: 1 / -1; font-size: 13px; }
  .release-list article a { grid-column: 1 / -1; width: 100%; margin-top: 7px; }
}

.faq-section { display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; align-items: start; }
.faq-list { margin-top: 0; border-top: 1px solid var(--site-line); }
.faq-list details { border-bottom: 1px solid var(--site-line); background: transparent; }
.faq-list summary { min-height: 78px; padding: 22px 4px; font-size: 16px; }
.faq-list details p { margin: 0; padding: 0 50px 25px 4px; color: var(--site-muted); line-height: 1.65; }

.final-cta { width: min(var(--site-section-max), calc(100% - 48px)); min-height: 390px; margin: 30px auto 90px; padding: 64px; border: 0; border-radius: 28px; color: #fff; background: #171421; overflow: hidden; }
.final-cta::before { content: ""; position: absolute; width: 390px; height: 390px; right: -100px; top: -120px; border-radius: 50%; background: #7448e8; opacity: .5; }
.final-cta h2, .final-cta .eyebrow { color: #fff; }
.final-cta img { width: 150px; filter: drop-shadow(0 18px 28px rgba(0,0,0,.2)); }
.final-cta .button { position: relative; z-index: 2; background: #fff; color: var(--site-accent); border-color: #fff; box-shadow: none; }
.site-footer { width: min(var(--site-section-max), calc(100% - 48px)); padding: 30px 0 44px; border-top: 1px solid var(--site-line); }
.site-footer > .footer-navigation { display: grid; grid-template-columns: repeat(2,minmax(0,auto)); justify-content: end; gap: 34px; }
.footer-link-group { display: grid; gap: 8px; }
.footer-link-group > span { color: var(--site-muted); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.footer-link-list { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-link-list a { color: var(--site-muted); font-size: 11px; font-weight: 800; }
.footer-link-list a:hover { color: var(--site-accent); }

/* Auth */
.auth-dialog { width: min(480px, calc(100% - 24px)); padding: 0; border: 0; border-radius: 24px; background: transparent; }
.auth-dialog::backdrop { background: rgba(19,15,29,.62); backdrop-filter: blur(8px); }
.auth-shell { padding: 30px; border: 1px solid rgba(225,219,236,.95); border-radius: 24px; background: #fff; box-shadow: 0 28px 80px rgba(16,10,31,.24); }
.auth-shell::before { display: none; }
.auth-close { width: 44px; height: 44px; border-radius: 12px; background: #f5f2f9; color: var(--site-ink); }
.auth-tabs { padding: 4px; border: 1px solid var(--site-line); border-radius: 14px; background: #f7f5fa; }
.auth-tabs button { min-height: 43px; border-radius: 10px; }
.auth-tabs button.is-active { background: #fff; color: var(--site-accent); box-shadow: 0 4px 14px rgba(47,29,82,.08); }
.auth-form { gap: 10px; }
.auth-form h2 { font-size: 35px; letter-spacing: -.035em; }
.auth-form label { color: #5f5a6e; font-size: 12px; font-weight: 800; }
.auth-form input, .account-setting-card input, .proof-form input, .proof-form textarea {
  min-height: 50px;
  border: 1px solid var(--site-line);
  border-radius: 12px;
  background: #fbfafc;
}
.telegram-auth-button { min-height: 52px; border-radius: 13px; border: 1px solid #d8cff0; color: var(--site-accent); background: #f8f5ff; }
.auth-legal { margin: 2px 0 4px; color: var(--site-muted); font-size: 11px; line-height: 1.5; }
.auth-legal a { color: var(--site-accent); text-decoration: underline; text-underline-offset: 2px; }

/* Account workspace */
.dashboard { min-height: 100vh; padding: 0; background: #f7f6fa; }
.dashboard-shell { display: grid; grid-template-columns: var(--site-sidebar-width) minmax(0,1fr); gap: 0; min-height: 100vh; width: 100%; max-width: none; margin: 0; }
.dashboard-sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: var(--site-sidebar-width);
  min-width: var(--site-sidebar-width);
  height: 100vh;
  padding: 20px 14px 16px;
  border-right: 1px solid var(--site-line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.sidebar-brand { min-height: 58px; padding: 5px 8px 16px; border-bottom: 1px solid var(--site-line); }
.sidebar-brand-home { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.cabinet-brand-home { border-radius: 10px; cursor: pointer; transition: opacity .18s ease; touch-action: manipulation; }
.cabinet-brand-home:hover { opacity: .78; }
.cabinet-brand-home:active { opacity: .62; }
.cabinet-brand-home:focus-visible { outline: 3px solid var(--site-accent); outline-offset: 3px; }
.sidebar-brand strong { color: var(--site-ink); font-size: 16px; }
.sidebar-brand span { color: var(--site-muted); font-size: 10px; }
.sidebar-profile { margin: 16px 0 12px; padding: 14px 10px; border: 1px solid var(--site-line); border-radius: 16px; background: #faf9fc; }
.profile-avatar { flex: 0 0 42px; width: 42px; height: 42px; background: var(--site-soft); color: var(--site-accent); }
.profile-meta strong { color: var(--site-ink); font-size: 13px; }
.profile-meta span { color: var(--site-muted); font-size: 10px; }
.sidebar-nav {
  gap: 4px;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sidebar-nav-label { display: block; margin: 14px 10px 5px; color: #9a95a7; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 11px; color: #696475; font-size: 16px; font-weight: 750; }
.sidebar-link svg { width: 21px; height: 21px; flex: 0 0 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-link:hover { color: var(--site-accent); background: #f7f3ff; transform: none; }
.sidebar-link.is-active { color: var(--site-accent); background: #eee7ff; box-shadow: inset 3px 0 0 var(--site-accent); }
.sidebar-logout { min-height: 44px; margin-top: auto; border: 1px solid var(--site-line); border-radius: 11px; color: #7b7586; background: #fff; }
.sidebar-logout:hover { color: var(--site-danger); border-color: #efcbd1; background: #fff7f8; }

.dashboard-content { width: 100%; min-width: 0; padding: 0 var(--site-content-gutter) 46px; }
.cabinet-page-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; min-height: var(--site-header-height); margin: 0 calc(var(--site-content-gutter) * -1) 28px; padding: 12px var(--site-content-gutter); border-bottom: 1px solid rgba(226,222,235,.9); background: rgba(248,247,252,.9); backdrop-filter: blur(15px); }
.cabinet-kicker { display: block; margin-bottom: 4px; color: #9994a4; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.cabinet-page-header h1 { margin: 0; font-size: 22px; line-height: 1; letter-spacing: -.025em; }
.cabinet-support { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid var(--site-line); border-radius: 11px; color: #5f5a69; background: #fff; font-size: 12px; font-weight: 800; }
.support-dot { width: 7px; height: 7px; border-radius: 50%; background: #34c884; box-shadow: 0 0 0 4px rgba(52,200,132,.12); }
.account-page { width: min(var(--site-workspace-inner),100%); margin: 0 auto; }
.panel { border: 1px solid var(--site-line); border-radius: var(--site-radius); background: #fff; box-shadow: none; }
.overview-workspace { display: block; }
.overview-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin: 8px 0 26px; }
.overview-heading h2 { margin: 0; font-size: 32px; line-height: 1; letter-spacing: -.035em; }
.cabinet-meta { display: flex; align-items: center; gap: 9px; margin: 0; }
.badge { min-height: 36px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 10px; background: #f0edf5; color: #6b6575; font-size: 10px; font-weight: 900; }
.badge.good { background: #e7f8f0; color: #148359; }
.badge.warn { background: #fff4dc; color: #9b6b0e; }
.badge.bad { background: #fff0f2; color: #bc3a4d; }
.icon-text-button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 12px; border: 1px solid var(--site-line); border-radius: 10px; background: #fff; color: #5f596a; font-size: 10px; font-weight: 800; cursor: pointer; }
.icon-text-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-text-button:hover { color: var(--site-accent); border-color: #cfc2ee; }
.overview-layout { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.75fr); gap: 16px; align-items: start; }
.overview-primary { padding: 26px; }
.overview-section-label { display: flex; align-items: center; gap: 10px; }
.overview-section-label > strong { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.subscription-block { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 20px 0 24px; padding: 0; border: 0; background: transparent; }
.subscription-block > p { grid-column: 1/-1; min-height: 100px; display: grid; place-items: center; margin: 0; padding: 20px; border: 1px dashed #d8d1e4; border-radius: 14px; text-align: center; }
.kv { min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 16px; border: 1px solid var(--site-line); border-radius: 14px; background: #faf9fc; }
.kv span { color: #8a8594; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.kv strong { font-size: 15px; }
.link-block { margin-top: 8px; padding: 24px; border: 1px solid #ded3f5; border-radius: 16px; background: #f6f2ff; }
.link-block label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 900; }
.link-block > p { margin: 0 0 16px; color: var(--site-muted); font-size: 11px; line-height: 1.5; }
.copy-row { gap: 9px; }
.copy-row input { min-width: 0; min-height: 52px; padding: 0 16px; border: 1px solid #ddd5ec; border-radius: 12px; color: var(--site-ink); background: #fff; font-size: 12px; }
.connection-copy-row input { min-height: 64px; }
.connection-copy-row .button { min-width: 150px; min-height: 64px; }
.overview-aside { display: grid; gap: 16px; }
.quick-action { display: grid; grid-template-columns: 44px 1fr 36px; gap: 12px; align-items: center; padding: 20px; }
.quick-action-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: var(--site-accent); background: var(--site-soft); }
.quick-action-icon svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.quick-action div span { display: block; margin-bottom: 4px; color: #9690a1; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.quick-action div strong { font-size: 12px; line-height: 1.35; }
.quick-action > a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #fff; background: var(--site-accent); }
.overview-referral { margin: 0; padding: 22px; border: 1px solid var(--site-line); border-radius: 18px; background: #fff; }
.overview-referral > p { margin: 16px 0; color: var(--site-muted); font-size: 11px; line-height: 1.5; }
.compact-copy-row { display: grid; grid-template-columns: minmax(0,1fr); }
.compact-copy-row input { min-height: 48px; }
.compact-copy-row .button { min-height: 46px; width: 100%; }

.cabinet-grid { display: block; width: min(var(--site-workspace-inner),100%); margin: 0 auto; }
.cabinet-panel { padding: 26px; }
.panel-head { padding-bottom: 20px; border-bottom: 1px solid var(--site-line); }
.panel-head h3 { font-size: 22px; letter-spacing: -.025em; }
.panel-head p { margin-top: 5px; font-size: 11px; }
.cabinet-dual { gap: 18px; margin-top: 22px; }
.checkout-flow { margin-top: 24px; }
.tariff-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.plan.tariff-card { position: relative; min-width: 0; min-height: 300px; display: flex; align-items: flex-start; flex-direction: column; gap: 0; overflow: hidden; padding: 16px; border: 1px solid var(--site-line); border-radius: var(--site-card-radius); background: #fff; animation: tariff-enter .46s cubic-bezier(.2,.8,.2,1) both; }
.tariff-card:nth-child(2) { animation-delay: .045s; }
.tariff-card:nth-child(3) { animation-delay: .09s; }
.tariff-card:nth-child(4) { animation-delay: .135s; }
.tariff-card:hover { border-color: #cbbce9; box-shadow: 0 12px 30px rgba(49,31,84,.07); }
.tariff-card.is-featured { background: #f6f2ff; }
.tariff-card.is-selected { border-color: var(--site-accent); background: #f4efff; box-shadow: inset 0 0 0 1px rgba(116,72,232,.12); }
.tariff-grid:has(.tariff-card.is-selected) .tariff-card:not(.is-selected) { opacity: .74; }
.tariff-topline { width: 100%; min-height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 7px; color: var(--site-accent); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.tariff-topline i { flex: 0 0 auto; padding: 5px 7px; border-radius: 7px; color: #fff; background: var(--site-accent); font-size: 7px; font-style: normal; letter-spacing: .04em; }
.tariff-mascot { width: 68px; height: 72px; align-self: center; margin: 12px 0 8px; object-fit: contain; transform-origin: 50% 80%; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.tariff-card:hover .tariff-mascot { transform: rotate(-3deg) scale(1.04); }
.tariff-price { color: var(--site-ink); font-size: clamp(27px,2.4vw,38px); font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.tariff-period { display: block; margin-top: 8px; font-size: 13px; }
.tariff-card > p { min-height: 28px; margin: 5px 0 15px; color: var(--site-muted); font-size: 9px; line-height: 1.45; }
.plan.tariff-card .tariff-select { position: relative; width: 100%; min-height: var(--site-control-height); display: flex; align-items: center; justify-content: center; margin-top: auto; border: 1px solid var(--site-line); color: var(--site-ink); background: #fff; box-shadow: none; }
.plan.tariff-card .tariff-select:hover { border-color: var(--site-accent); color: var(--site-accent); }
.plan.tariff-card.is-featured .tariff-select, .plan.tariff-card.is-selected .tariff-select { border-color: var(--site-accent); color: #fff; background: var(--site-accent); }
.plan.tariff-card .tariff-select.is-loading { color: transparent; cursor: wait; }
.plan.tariff-card .tariff-select.is-loading::after { position: absolute; width: 15px; height: 15px; border: 2px solid rgba(116,72,232,.25); border-top-color: var(--site-accent); border-radius: 50%; content: ""; animation: spin .7s linear infinite; }
.landing-tariff-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
  border-top: 0;
}
.landing-tariff-grid .landing-tariff-card {
  min-height: 304px;
}
.landing-tariff-grid .tariff-select {
  text-decoration: none;
}
.checkout-stage { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--site-line); }
.checkout-stage:not(.has-order) { display: none; }
.checkout-stage-heading { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 18px; align-items: start; margin-bottom: 15px; }
.checkout-stage-heading > span { padding-top: 4px; color: var(--site-accent); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.checkout-stage-heading h3 { margin: 0; font-size: 20px; }
.checkout-stage-heading p { max-width: 560px; margin: 5px 0 0; color: var(--site-muted); font-size: 10px; line-height: 1.5; }
.checkout-placeholder { min-height: 82px; display: grid; place-items: center; border-style: dashed; color: var(--site-muted); background: #faf9fc; font-size: 11px; text-align: center; }
.checkout-stage.has-order .checkout-stage-heading > span { color: var(--site-success); }
.checkout-stage.is-revealing .order-box { animation: checkout-reveal .58s cubic-bezier(.18,.88,.28,1) both; }
.checkout-stage.is-revealing .payment-method { animation: payment-option-enter .42s cubic-bezier(.18,.88,.28,1) both; }
.checkout-stage.is-revealing .payment-method:nth-child(2) { animation-delay: .07s; }
.checkout-stage.is-revealing .payment-method:nth-child(3) { animation-delay: .14s; }
.plan, .device, .order-box, .empty-state, .account-setting-card, .guide-tip { border-color: var(--site-line); border-radius: var(--site-card-radius); box-shadow: none; }
.order-box { width: 100%; min-width: 0; }
.plan { min-height: 76px; }
.soft-button, .ghost-button, .danger-button { min-height: var(--site-control-height); border-radius: var(--site-control-radius); }
.checkout-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.checkout-head > div { display: grid; gap: 5px; }
.checkout-head strong { font-size: 16px; }
.checkout-kicker { color: var(--site-muted); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.checkout-status { flex: 0 0 auto; min-height: 30px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 9px; color: #786f84; background: #f1eef5; font-size: 9px; font-weight: 900; }
.payment-methods { width: 100%; min-width: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.payment-methods.methods-count-1 { grid-template-columns: minmax(0,1fr); }
.payment-methods.methods-count-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.payment-method { position: relative; min-width: 0; min-height: 72px; display: grid; grid-template-columns: 40px minmax(0,1fr) 20px; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--site-line); border-radius: var(--site-card-radius); color: var(--site-ink); background: #fff; text-align: left; cursor: pointer; transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.payment-method:hover { border-color: #cbbce9; background: #fcfbff; }
.payment-method.is-selected { border-color: #a98de9; background: #f6f2ff; box-shadow: inset 0 0 0 1px rgba(116,72,232,.08); }
.payment-method.is-loading { cursor: wait; opacity: .72; }
.payment-method img { width: 40px; height: 40px; display: block; }
.payment-method span { min-width: 0; display: grid; gap: 3px; }
.payment-method strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.payment-method small { overflow: hidden; color: var(--site-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.payment-method i { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid #d8d1e4; border-radius: 50%; color: transparent; font-size: 10px; font-style: normal; }
.payment-method.is-selected i { border-color: var(--site-accent); color: #fff; background: var(--site-accent); }
.payment-next { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; padding: 9px 9px 9px 15px; border: 1px solid var(--site-line); border-radius: var(--site-card-radius); background: #faf9fc; }
.payment-next > div { min-width: 0; display: grid; gap: 3px; }
.payment-next > div span { color: var(--site-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.payment-next > div strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.payment-primary { min-height: var(--site-control-height); display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 16px; padding: 0 16px; border-radius: var(--site-control-radius); color: #fff; background: var(--site-accent); font-size: 11px; font-weight: 900; }
.payment-primary:hover { color: #fff; background: var(--site-accent-dark); }
.payment-secure { flex: 0 0 auto; padding-right: 7px; color: #8c8797; font-size: 9px; font-weight: 800; }
.checkout-note { margin: 10px 2px 0 !important; color: var(--site-muted); font-size: 10px; line-height: 1.5; }
.guide-downloads { grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 22px; }
.guide-downloads a { min-height: 86px; border-color: var(--site-line); border-radius: 14px; background: #faf9fc; }
.guide-layout { gap: 18px; }
.guide-steps { border-color: var(--site-line); border-radius: 16px; }
.guide-steps li { border-color: var(--site-line); }
.account-settings-grid { gap: 16px; margin-top: 22px; }
.account-setting-card { padding: 24px; background: #fff; }
.setting-index { color: var(--site-accent); }
.mobile-cabinet-bar, .dashboard-scrim { display: none; }
.drawer-close-button { display: none; }
.toast { z-index: 200; border-radius: 12px; background: #171421; color: #fff; box-shadow: 0 14px 35px rgba(20,15,30,.22); }

@keyframes tariff-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes checkout-reveal {
  from { opacity: 0; transform: translateY(18px); clip-path: inset(0 0 100% 0 round 14px); }
  to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 14px); }
}
@keyframes payment-option-enter {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 520px) {
  .checkout-head { display: grid; gap: 10px; }
  .checkout-status { justify-self: start; }
  .payment-methods { gap: 6px; }
  .payment-method { min-height: 74px; grid-template-columns: 1fr; justify-items: center; gap: 5px; padding: 8px 4px; text-align: center; }
  .payment-method img { width: 34px; height: 34px; }
  .payment-method span { display: block; width: 100%; }
  .payment-method strong { display: block; font-size: 10px; }
  .payment-method small { display: none; }
  .payment-method i { position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; font-size: 8px; }
  .payment-next { align-items: stretch; flex-direction: column; padding: 12px; }
  .payment-next > div strong { overflow: visible; text-overflow: clip; white-space: normal; line-height: 1.35; }
  .payment-primary { width: 100%; }
  .payment-secure { padding: 4px 0 0; }
}

@media (max-width: 1180px) {
  :root { --site-sidebar-width: 230px; --site-content-gutter: 24px; }
}

@media (min-width: 761px) and (max-height: 820px) {
  :root { --site-header-height: 70px; }
  .site-header { top: 8px; min-height: 62px; margin-top: 8px; }
  .hero { min-height: clamp(620px, calc(100svh - 90px), 710px); padding-block: 58px; }
  .hero h1 { font-size: clamp(54px,4.8vw,68px); }
  .hero-lead { margin-top: 20px; font-size: 17px; line-height: 1.45; }
  .hero-actions { margin-top: 24px; }
  .hero-note { margin-top: 16px; }
  .hero-product { min-height: 500px; }
  .section { padding-block: 88px; }
  .benefits-section { padding-bottom: 56px; }
  .apps-section { padding-top: 70px; }
  .pricing-section { padding-top: 56px; }
  .dashboard-content { padding-bottom: 30px; }
  .cabinet-page-header { margin-bottom: 20px; }
  .overview-heading { margin-block: 4px 20px; }
}

@media (min-width: 1800px) and (min-height: 900px) {
  .hero-copy { max-width: 680px; }
  .product-window { width: min(100%, 720px); }
  .section-intro { max-width: 790px; }
  .benefit-list p { max-width: 760px; }
}

@media (min-width: 3200px) and (min-height: 1200px) {
  :root {
    --site-sidebar-width: 300px;
    --site-header-height: 96px;
    --site-workspace-max: 1880px;
    --site-content-gutter: 52px;
    --site-header-max: 1760px;
    --site-hero-max: 1880px;
    --site-section-max: 1720px;
  }
  .hero { grid-template-columns: minmax(0,.9fr) minmax(680px,1.1fr); }
  .hero-copy { max-width: 760px; }
  .product-window { width: min(100%,820px); }
}

@media (max-width: 1080px) {
  .site-nav a { padding-inline: 9px; font-size: 11px; }
  .hero { grid-template-columns: 1fr 1fr; min-height: 690px; }
  .hero h1 { font-size: 58px; }
  .hero-product { min-height: 490px; }
  .window-sidebar { width: 125px; }
  .floating-status-top { right: 0; }
  .floating-status-bottom { left: 0; }
  .faq-section { gap: 45px; }
  .dashboard-shell { grid-template-columns: 230px minmax(0,1fr); }
  .dashboard-sidebar { width: 230px; }
  .dashboard-content { padding-inline: 24px; }
  .cabinet-page-header { margin-inline: -24px; padding-inline: 24px; }
  .overview-layout { grid-template-columns: 1fr; }
  .overview-aside { grid-template-columns: 1fr 1fr; }
  .compact-copy-row { grid-template-columns: minmax(0,1fr) auto; }
  .compact-copy-row .button { width: auto; }
  .guide-downloads { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 76px; }
  body::before { background-size: 42px 42px; }
  .site-header { top: 8px; width: calc(100% - 20px); min-height: 58px; margin-top: 8px; padding: 7px 8px 7px 12px; border-radius: 16px; }
  .site-header .brand { min-height: 44px; }
  .site-header .brand span { font-size: 16px; }
  .site-header .brand img { width: 32px; height: 31px; }
  .header-login { order: initial; min-width: 0; min-height: 42px; padding: 0 11px; margin-left: auto; }
  .header-login span { display: none; }
  .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; margin-left: 4px; border-radius: 11px; }
  .site-nav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: grid; gap: 3px; padding: 8px; border: 1px solid var(--site-line); border-radius: 15px; background: #fff; box-shadow: var(--site-shadow); transform: translateY(-8px); opacity: 0; visibility: hidden; }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a { min-height: 44px; padding: 13px; font-size: 12px; }
  .hero { display: flex; flex-direction: column; width: calc(100% - 28px); min-height: auto; padding: 64px 0 62px; gap: 42px; }
  .hero::after { width: 320px; height: 320px; right: -180px; top: 350px; }
  .hero-copy { width: 100%; }
  .eyebrow { margin-bottom: 14px; font-size: 9px; line-height: 1.4; }
  .hero h1 { font-size: clamp(43px,13vw,61px); line-height: .96; }
  .hero-lead { margin-top: 22px; font-size: 16px; line-height: 1.55; }
  .hero-actions { display: grid; grid-template-columns: 1fr; margin-top: 27px; }
  .hero-actions .button { width: 100%; }
  .hero-note { display: flex; flex-wrap: wrap; row-gap: 6px; font-size: 10px; }
  .hero-product { display: block; width: 100%; min-height: 0; }
  .product-window { position: relative; top: auto; right: auto; width: 100%; margin: 0; translate: none; transform: none; border-radius: 18px; }
  .window-bar { height: 40px; padding-inline: 12px; }
  .window-brand { font-size: 9px; }
  .window-body { min-height: 280px; }
  .window-sidebar { width: 90px; padding: 12px 8px; }
  .window-logo strong { font-size: 10px; }
  .window-logo img { width: 25px; }
  .mock-nav { min-height: 30px; padding: 9px 7px; font-size: 7px; }
  .window-content { padding: 18px 15px; }
  .mock-title { font-size: 16px; }
  .mock-subtitle { font-size: 7px; }
  .connection-row { margin-top: 28px; gap: 12px; }
  .connection-orb { width: 64px; height: 64px; }
  .connection-copy strong { font-size: 10px; }
  .connection-copy span { font-size: 7px; }
  .connection-copy i { min-height: 28px; font-size: 7px; }
  .mock-status { margin-top: 18px; }
  .mock-status span { padding: 9px; font-size: 6px; }
  .floating-status { display: none; }
  .marquee-section { min-height: 62px; }
  .marquee-group { gap: 20px; padding-right: 20px; }
  .marquee-group span { font-size: 10px; }
  .section { width: calc(100% - 28px); padding: 78px 0; }
  .section-intro h2, .final-cta h2 { font-size: clamp(36px,11vw,48px); }
  .section-intro > p:last-child { margin-top: 18px; font-size: 14px; }
  .benefit-list { grid-template-columns: 1fr; margin-top: 42px; }
  .benefit-list article, .benefit-list article + article { grid-template-columns: 44px minmax(0,1fr); gap: 8px 16px; min-height: 0; padding: 24px 0; border-left: 0; }
  .benefit-icon { grid-row: 1 / span 2; width: 44px; height: 44px; }
  .benefit-list h3 { font-size: 19px; }
  .benefit-list p { grid-column: 2; font-size: 14px; }
  .app-showcase { grid-template-columns: 1fr; margin-top: 38px; }
  .app-primary { min-height: 445px; padding: 28px; }
  .app-primary h3 { font-size: 27px; }
  .app-mascot { width: 180px; right: -7px; }
  .happ-downloads { padding: 18px; }
  .happ-heading { align-items: end; }
  .happ-heading > a { display: inline-flex; align-items: center; min-height: 44px; }
  .platform-links > a { min-height: 75px; }
  .setup-steps { grid-template-columns: 1fr; margin-top: 38px; }
  .setup-steps article, .setup-steps article + article { min-height: 0; padding: 27px 0 29px; }
  .setup-steps article + article { border-left: 0; border-top: 1px solid var(--site-line); }
  .setup-steps h3 { max-width: none; margin-top: 22px; }
  .price-row { grid-template-columns: 1fr auto; gap: 14px; min-height: 0; padding: 24px 0; }
  .price-row p { grid-column: 1/-1; }
  .price-row a { grid-column: 1/-1; width: 100%; min-width: 0; min-height: 56px; padding-inline: 20px; }
  .price-row.featured { background: transparent; }
  .price-row:hover { padding-left: 0; }
  .faq-section { display: block; }
  .faq-list { margin-top: 38px; }
  .faq-list summary { min-height: 70px; padding-right: 2px; font-size: 14px; }
  .final-cta { display: flex; flex-direction: column; align-items: flex-start; width: calc(100% - 28px); min-height: 500px; margin-bottom: 55px; padding: 36px 28px; }
  .final-cta img { width: 100px; }
  .final-cta .button { width: 100%; margin-top: auto; }
  .site-footer { display: grid; grid-template-columns: 1fr auto; gap: 18px; width: calc(100% - 28px); }
  .site-footer p { display: none; }
  .site-footer > .footer-navigation { grid-column: 1/-1; grid-template-columns: 1fr; justify-content: stretch; gap: 18px; }
  .footer-link-list { gap: 4px 16px; }
  .site-footer .brand, .site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

  .auth-dialog { max-height: calc(100dvh - 16px); overflow-y: auto; }
  .auth-shell { padding: 23px 18px calc(23px + env(safe-area-inset-bottom)); border-radius: 20px; }
  .auth-brand { padding-right: 48px; }
  .auth-form h2 { font-size: 30px; }
  .auth-tabs button { min-height: 44px; }

  .dashboard-shell { display: block; min-height: 100vh; }
  .mobile-cabinet-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; min-height: calc(66px + env(safe-area-inset-top)); padding: calc(9px + env(safe-area-inset-top)) 14px 9px; border-bottom: 1px solid var(--site-line); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
  .mobile-menu-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--site-line); border-radius: 12px; background: #fff; }
  .mobile-menu-button span { width: 17px; height: 1.5px; background: var(--site-ink); }
  .mobile-cabinet-brand { display: flex; align-items: center; gap: 8px; }
  .mobile-cabinet-brand { color: inherit; text-decoration: none; }
  .mobile-cabinet-brand strong { font-size: 12px; }
  .mobile-cabinet-brand span { color: var(--site-muted); font-size: 9px; }
  .mobile-status-dot { width: 9px; height: 9px; border-radius: 50%; background: #34c884; box-shadow: 0 0 0 5px rgba(52,200,132,.12); }
  .dashboard-scrim { position: fixed; inset: 0; z-index: 39; display: block; pointer-events: none; opacity: 0; background: rgba(18,13,28,.5); transition: opacity .22s ease; }
  .dashboard-scrim.is-visible { pointer-events: auto; opacity: var(--scrim-opacity,1); }
  .dashboard-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: min(86vw,330px); height: 100dvh; padding: calc(16px + env(safe-area-inset-top)) 12px calc(16px + env(safe-area-inset-bottom)); transform: translateX(calc(-100% + var(--drawer-drag-x,0px))); transition: transform .24s cubic-bezier(.2,.8,.2,1); box-shadow: 20px 0 55px rgba(27,17,47,.2); visibility: visible; }
  .dashboard-sidebar.drawer-open { transform: translateX(var(--drawer-drag-x,0px)); }
  .dashboard-sidebar.is-dragging { transition: none; }
  .drawer-close-button { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--site-line); border-radius: 11px; background: #fff; color: var(--site-ink); font-size: 22px; }
  .sidebar-profile { margin-top: 12px; }
  .dashboard-content { padding: 20px 14px calc(38px + env(safe-area-inset-bottom)); }
  .cabinet-page-header { display: none; }
  .overview-heading { display: block; margin: 5px 0 20px; }
  .overview-heading h2 { font-size: 33px; }
  .overview-heading .cabinet-meta { justify-content: space-between; margin-top: 19px; }
  .overview-layout { display: block; }
  .overview-primary { padding: 18px; }
  .subscription-block { grid-template-columns: 1fr; }
  .kv { min-height: 72px; }
  .link-block { padding: 18px; }
  .connection-copy-row { display: grid; grid-template-columns: 1fr; }
  .connection-copy-row input, .connection-copy-row .button { width: 100%; min-width: 0; min-height: 56px; }
  .copy-row input { text-overflow: ellipsis; }
  .overview-aside { display: grid; grid-template-columns: 1fr; margin-top: 12px; }
  .quick-action { grid-template-columns: 44px minmax(0,1fr) 44px; padding: 17px; }
  .quick-action > a { width: 44px; height: 44px; }
  .compact-copy-row { grid-template-columns: 1fr; }
  .cabinet-panel { padding: 18px; }
  .panel-head { display: flex; gap: 12px; }
  .cabinet-dual { grid-template-columns: 1fr; }
  .tariff-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(150px,46vw); gap: 8px; margin-inline: -18px; padding: 0 calc(50% - 75px) 10px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .tariff-grid::-webkit-scrollbar { display: none; }
  .plan.tariff-card { min-height: 268px; padding: 13px; scroll-snap-align: center; }
  .tariff-mascot { width: 56px; height: 60px; margin-block: 9px 6px; }
  .tariff-price { font-size: 28px; }
  .tariff-card > p { margin-bottom: 12px; }
  .landing-tariff-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px,46vw);
    gap: 8px;
    margin-inline: -18px;
    padding: 0 calc(50% - 75px) 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .landing-tariff-grid::-webkit-scrollbar { display: none; }
  .landing-tariff-grid .landing-tariff-card { min-height: 268px; }
  .checkout-stage { margin-top: 22px; padding-top: 20px; }
  .checkout-stage-heading { grid-template-columns: 1fr; gap: 5px; }
  .checkout-stage-heading > span { padding: 0; }
  .guide-downloads { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-tip { position: static; }
  .account-settings-grid { grid-template-columns: 1fr; }
  .account-setting-card { padding: 18px; }
  .copy-row { min-width: 0; }
  .copy-row input { width: 100%; }
  .icon-text-button, .soft-button, .ghost-button, .danger-button,
  .plan .soft-button, .order-actions .soft-button, .order-actions .ghost-button { min-height: 44px; }
}

@media (max-width: 420px) {
  .app-release-actions { grid-template-columns: 1fr; width: 210px; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 42px; }
  .hero-note span + span::before { margin-inline: 7px; }
  .window-sidebar { display: none; }
  .window-body { grid-template-columns: minmax(0,1fr); }
  .window-content { width: 100%; }
  .app-primary { min-height: 470px; }
  .platform-links > a { grid-template-columns: 42px 1fr auto; }
  .dashboard-content { padding-inline: 10px; }
  .overview-primary, .overview-referral, .cabinet-panel { padding: 15px; }
  .tariff-grid { margin-inline: -15px; padding-inline: calc(50% - 75px); }
  .quick-action { grid-template-columns: 40px minmax(0,1fr) 44px; padding: 14px; }
  .profile-avatar { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* Landing account and mobile navigation */
.landing-account {
  position: relative;
  display: flex;
  justify-self: end;
  align-items: center;
  min-width: 0;
}
.site-header .header-login {
  display: inline-flex;
}
.landing-profile {
  position: relative;
}
.landing-profile-trigger {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  min-width: 178px;
  min-height: 52px;
  padding: 6px 10px 6px 7px;
  border: 1px solid var(--site-line);
  border-radius: 15px;
  color: var(--site-ink);
  background: rgba(255,255,255,.86);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.landing-profile-trigger:hover,
.landing-profile-trigger[aria-expanded="true"] {
  border-color: #cfc2f3;
  background: #fff;
  box-shadow: 0 12px 28px rgba(53,33,89,.1);
}
.landing-user-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 12px;
  color: #fff;
  font-family: "Uni Sans", sans-serif;
  font-size: 15px;
  background: linear-gradient(145deg,#8f6af0,#6840cf);
}
.landing-user-avatar.is-large {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  font-size: 19px;
}
.landing-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.landing-user-meta {
  display: grid;
  min-width: 0;
  text-align: left;
}
.landing-user-meta strong,
.landing-user-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.landing-user-meta strong {
  font-family: "Uni Sans",sans-serif;
  font-size: 13px;
  line-height: 1.15;
}
.landing-user-meta small {
  margin-top: 3px;
  color: var(--site-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}
.profile-chevron {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform .2s var(--ease-out);
}
.landing-profile-trigger[aria-expanded="true"] .profile-chevron {
  transform: rotate(180deg);
}
.landing-profile-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 80;
  width: 260px;
  padding: 8px;
  visibility: hidden;
  border: 1px solid var(--site-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 24px 55px rgba(26,17,42,.18);
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  transform-origin: top right;
  transition: opacity .18s ease, transform .22s var(--ease-out), visibility .22s;
}
.landing-profile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
}
.profile-menu-heading {
  display: grid;
  gap: 3px;
  padding: 9px 10px 11px;
  border-bottom: 1px solid var(--site-line);
}
.profile-menu-heading span {
  color: var(--site-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.profile-menu-heading strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.landing-profile-menu a,
.landing-profile-menu button {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 10px;
  border: 0;
  border-radius: 11px;
  color: var(--site-ink);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  background: transparent;
}
.landing-profile-menu a:hover,
.landing-profile-menu button:hover {
  color: var(--site-accent);
  background: var(--site-soft);
}
.landing-profile-menu svg,
.landing-drawer svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.landing-profile-menu button {
  margin-top: 2px;
  color: #b64059;
}
.landing-drawer,
.landing-drawer-scrim {
  display: none;
}
body.landing-drawer-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 44px minmax(0,1fr) auto;
    gap: 8px;
  }
  .site-header .menu-toggle {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }
  .site-header > .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }
  .site-header > .brand {
    gap: 5px;
    min-width: 0;
    font-size: 13px;
    letter-spacing: -.02em;
  }
  .site-header > .brand img {
    width: 30px;
    height: 30px;
  }
  .site-header > .brand span {
    display: inline;
    white-space: nowrap;
  }
  .landing-account {
    grid-column: 3;
    grid-row: 1;
  }
  .site-header .header-login {
    min-height: 44px;
    padding: 0 13px;
  }
  .site-header .header-login span {
    display: inline;
  }
  .site-header .header-login svg {
    display: none;
  }
  .site-nav {
    display: none !important;
  }
  .landing-profile-trigger {
    grid-template-columns: 34px minmax(0,1fr);
    gap: 8px;
    min-width: 116px;
    max-width: 142px;
    min-height: 44px;
    padding: 4px 8px 4px 5px;
    border-radius: 12px;
  }
  .landing-profile-trigger .profile-chevron {
    display: none;
  }
  .landing-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .landing-user-meta strong {
    font-size: 11px;
  }
  .landing-user-meta small {
    font-size: 8px;
  }
  .landing-profile-menu {
    right: -2px;
    width: min(270px,calc(100vw - 28px));
  }
  .landing-drawer-scrim {
    position: fixed;
    inset: 0;
    z-index: 69;
    display: block;
    visibility: hidden;
    pointer-events: none;
    background: rgba(18,13,28,.52);
    opacity: 0;
    transition: opacity .2s ease, visibility .2s;
  }
  .landing-drawer-scrim.is-visible {
    visibility: visible;
    pointer-events: auto;
    opacity: var(--scrim-opacity,1);
  }
  .landing-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    width: min(88vw,340px);
    height: 100dvh;
    padding: calc(14px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border-right: 1px solid var(--site-line);
    background: #fff;
    box-shadow: 24px 0 60px rgba(28,18,45,.22);
    transform: translate3d(calc(-100% + var(--drawer-drag-x,0px)),0,0);
    transition: transform .24s var(--ease-out);
  }
  .landing-drawer.is-open {
    transform: translate3d(var(--drawer-drag-x,0px),0,0);
  }
  .landing-drawer.is-dragging {
    transition: none;
  }
  .landing-drawer-head {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 0 12px 4px;
    border-bottom: 1px solid var(--site-line);
  }
  .landing-drawer-head .brand {
    font-size: 17px;
  }
  .landing-drawer-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid var(--site-line);
    border-radius: 12px;
    background: #fff;
  }
  .landing-drawer-close svg {
    width: 20px;
  }
  .landing-drawer-login {
    display: grid;
    grid-template-columns: minmax(0,1fr) 24px;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #d9cef6;
    border-radius: 16px;
    color: var(--site-accent);
    text-decoration: none;
    background: #f8f5ff;
  }
  .landing-drawer-login span {
    display: grid;
    gap: 3px;
  }
  .landing-drawer-login small,
  .landing-drawer-profile small {
    color: var(--site-muted);
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .landing-drawer-login strong {
    color: var(--site-ink);
    font-size: 13px;
  }
  .landing-drawer-profile {
    display: grid;
    grid-template-columns: 52px minmax(0,1fr);
    align-items: center;
    gap: 12px;
    min-height: 82px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--site-line);
    border-radius: 17px;
    background: #faf9fc;
  }
  .landing-drawer-profile > span:last-child {
    display: grid;
    min-width: 0;
    gap: 2px;
  }
  .landing-drawer-profile strong,
  .landing-drawer-profile em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .landing-drawer-profile strong {
    font-family: "Uni Sans",sans-serif;
    font-size: 16px;
  }
  .landing-drawer-profile em {
    color: var(--site-accent);
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .05em;
  }
  .landing-drawer-nav {
    display: grid;
    gap: 3px;
    margin-top: 15px;
  }
  .landing-drawer-label {
    margin: 12px 8px 5px;
    color: #9a94a8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  .landing-drawer-nav a {
    display: grid;
    grid-template-columns: 23px minmax(0,1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 12px;
    color: #5d586c;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
  }
  .landing-drawer-nav a:hover,
  .landing-drawer-nav a:active {
    color: var(--site-accent);
    background: var(--site-soft);
  }
  .landing-drawer-nav i {
    font-style: normal;
  }
  .landing-drawer-docs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin: 14px 8px 0;
    padding-top: 14px;
    border-top: 1px solid var(--site-line);
  }
  .landing-drawer-docs a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: var(--site-muted);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
  }
  .landing-drawer-logout {
    width: 100%;
    min-height: 48px;
    margin-top: auto;
    padding: 0 14px;
    border: 1px solid #f0d4db;
    border-radius: 13px;
    color: #b64059;
    font-weight: 800;
    background: #fff8fa;
  }
}

@media (max-width: 360px) {
  .site-header {
    grid-template-columns: 44px minmax(34px,1fr) auto;
    width: calc(100% - 12px);
  }
  .landing-profile-trigger {
    min-width: 108px;
    max-width: 118px;
  }
  .site-header .header-login {
    padding-inline: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-profile-menu,
  .landing-drawer,
  .landing-drawer-scrim {
    transition: none;
  }
}

/* Theme controls and dark palette */
.site-theme-toggle,
.drawer-theme-toggle,
.sidebar-theme-toggle {
  color: var(--site-muted);
  border: 1px solid var(--site-line);
  background: var(--site-surface);
  cursor: pointer;
}
.site-theme-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-right: 8px;
  border-radius: 13px;
}
.site-theme-toggle:hover { color: var(--site-accent); border-color: #cfc2ee; }
.site-theme-toggle svg,
.drawer-theme-toggle svg,
.sidebar-theme-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-moon { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
.drawer-theme-toggle,
.sidebar-theme-toggle {
  display: grid;
  grid-template-columns: 28px minmax(0,1fr) 34px;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  padding: 0 11px;
  border-radius: 12px;
  color: var(--site-muted);
  text-align: left;
}
.drawer-theme-toggle > span,
.sidebar-theme-toggle > span { display: grid; place-items: center; color: var(--site-accent); }
.drawer-theme-toggle strong,
.sidebar-theme-toggle strong { color: var(--site-ink); font-size: 11px; }
.drawer-theme-toggle i,
.sidebar-theme-toggle i { width: 32px; height: 18px; border-radius: 10px; background: var(--site-line); box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.drawer-theme-toggle i::after,
.sidebar-theme-toggle i::after { display: block; width: 14px; height: 14px; margin: 2px; border-radius: 50%; background: var(--site-surface); content: ""; transition: transform .18s ease; }
:root[data-theme="dark"] .drawer-theme-toggle i,
:root[data-theme="dark"] .sidebar-theme-toggle i { background: var(--site-accent); }
:root[data-theme="dark"] .drawer-theme-toggle i::after,
:root[data-theme="dark"] .sidebar-theme-toggle i::after { transform: translateX(14px); }
.sidebar-theme-toggle { margin: auto 0 8px; }
.sidebar-theme-toggle + .sidebar-logout { margin-top: 0; }
.quick-action > a svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0c0a14;
  --sidebar: #110e1b;
  --surface: #171320;
  --purple: #a783ff;
  --purple-hover: #b496ff;
  --purple-soft: #2a2041;
  --purple-faint: #211a31;
  --ink: #f5f1ff;
  --muted: #aaa2bc;
  --line: #342d45;
  --green: #42d99b;
  --green-soft: #153d31;
  --danger: #ff6b84;
  --mint: #62d9ae;
  --shadow: 0 30px 70px rgba(0,0,0,.34);
  --site-bg: #0c0a14;
  --site-surface: #171320;
  --site-soft: #241c38;
  --site-soft-strong: #302348;
  --site-ink: #f5f1ff;
  --site-muted: #aaa2bc;
  --site-line: #342d45;
  --site-accent: #a783ff;
  --site-accent-dark: #9169f5;
  --site-success: #42d99b;
  --site-danger: #ff6b84;
  --site-shadow: 0 18px 55px rgba(0,0,0,.34);
}
:root[data-theme="dark"] body::before { background-image: linear-gradient(rgba(167,131,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(167,131,255,.055) 1px,transparent 1px); }
:root[data-theme="dark"] .site-header { border-color: rgba(65,55,85,.92); background: rgba(23,19,32,.9); box-shadow: 0 14px 44px rgba(0,0,0,.28); }
:root[data-theme="dark"] .site-nav a { color: #b8b0c8; }
:root[data-theme="dark"] .header-login,
:root[data-theme="dark"] .button-secondary,
:root[data-theme="dark"] .product-window,
:root[data-theme="dark"] .window-bar,
:root[data-theme="dark"] .app-primary,
:root[data-theme="dark"] .happ-downloads,
:root[data-theme="dark"] .platform-card,
:root[data-theme="dark"] .platform-links > a,
:root[data-theme="dark"] .auth-shell,
:root[data-theme="dark"] .auth-tabs button.is-active,
:root[data-theme="dark"] .dashboard-sidebar,
:root[data-theme="dark"] .cabinet-support,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .icon-text-button,
:root[data-theme="dark"] .copy-row input,
:root[data-theme="dark"] .overview-referral,
:root[data-theme="dark"] .plan.tariff-card,
:root[data-theme="dark"] .plan.tariff-card .tariff-select,
:root[data-theme="dark"] .payment-method,
:root[data-theme="dark"] .account-setting-card,
:root[data-theme="dark"] .guide-downloads a,
:root[data-theme="dark"] .mobile-menu-button,
:root[data-theme="dark"] .drawer-close-button,
:root[data-theme="dark"] .landing-profile-menu,
:root[data-theme="dark"] .landing-drawer,
:root[data-theme="dark"] .landing-drawer-close { background: var(--site-surface); color: var(--site-ink); }
:root[data-theme="dark"] .hero::after { background: #241a39; opacity: .78; }
:root[data-theme="dark"] .app-label { color: var(--site-accent); background: var(--site-soft); }
:root[data-theme="dark"] .app-primary::after { border-color: rgba(167,131,255,.22); }
:root[data-theme="dark"] .product-window { box-shadow: 0 38px 84px rgba(0,0,0,.4); }
:root[data-theme="dark"] .window-sidebar,
:root[data-theme="dark"] .auth-close,
:root[data-theme="dark"] .auth-tabs,
:root[data-theme="dark"] .sidebar-profile,
:root[data-theme="dark"] .kv,
:root[data-theme="dark"] .checkout-placeholder,
:root[data-theme="dark"] .payment-next,
:root[data-theme="dark"] .landing-drawer-profile { background: #13101c; }
:root[data-theme="dark"] .window-content,
:root[data-theme="dark"] .dashboard { background: var(--site-bg); }
:root[data-theme="dark"] .mock-status span { background: #13101c; }
:root[data-theme="dark"] .floating-status { background: rgba(23,19,32,.96); box-shadow: 0 18px 46px rgba(0,0,0,.34); }
:root[data-theme="dark"] .benefit-list article,
:root[data-theme="dark"] .setup-grid,
:root[data-theme="dark"] .pricing-list { border-color: var(--site-line); }
:root[data-theme="dark"] .benefit-list article:hover,
:root[data-theme="dark"] .platform-links > a:hover,
:root[data-theme="dark"] .price-row:hover,
:root[data-theme="dark"] .payment-method:hover { background: #1c1728; }
:root[data-theme="dark"] .price-row.featured,
:root[data-theme="dark"] .tariff-card.is-featured,
:root[data-theme="dark"] .tariff-card.is-selected,
:root[data-theme="dark"] .payment-method.is-selected,
:root[data-theme="dark"] .link-block,
:root[data-theme="dark"] .telegram-auth-button,
:root[data-theme="dark"] .landing-drawer-login { background: #241c38; border-color: #46365f; }
:root[data-theme="dark"] .auth-shell input,
:root[data-theme="dark"] .account-setting-card input,
:root[data-theme="dark"] .account-setting-card textarea { color: var(--site-ink); background: #100d18; border-color: var(--site-line); }
:root[data-theme="dark"] .auth-tabs { background: #100d18; }
:root[data-theme="dark"] .dashboard-content { background: var(--site-bg); }
:root[data-theme="dark"] .cabinet-page-header { border-color: rgba(52,45,69,.95); background: rgba(12,10,20,.9); }
:root[data-theme="dark"] .sidebar-link { color: #b8b0c8; }
:root[data-theme="dark"] .sidebar-link:hover { background: #211a31; }
:root[data-theme="dark"] .sidebar-link.is-active { background: #2a2041; }
:root[data-theme="dark"] .sidebar-logout { color: #b8b0c8; background: var(--site-surface); }
:root[data-theme="dark"] .sidebar-logout:hover,
:root[data-theme="dark"] .landing-drawer-logout { color: #ff8ba0; border-color: #55313e; background: #25151c; }
:root[data-theme="dark"] .badge { color: #c0b8cf; background: #292334; }
:root[data-theme="dark"] .badge.good { color: #58e0aa; background: #153d31; }
:root[data-theme="dark"] .badge.warn { color: #f2c56b; background: #3a2c12; }
:root[data-theme="dark"] .badge.bad { color: #ff879a; background: #3d1e28; }
:root[data-theme="dark"] .checkout-status { color: #bdb5ca; background: #292334; }
:root[data-theme="dark"] .final-cta .button { background: #fff; color: #6540c7; }
:root[data-theme="dark"] .toast { color: var(--site-ink); background: #221b31; border-color: var(--site-line); }
:root[data-theme="dark"] .landing-profile-trigger { color: var(--site-ink); background: rgba(23,19,32,.9); }
:root[data-theme="dark"] .landing-profile-trigger:hover,
:root[data-theme="dark"] .landing-profile-trigger[aria-expanded="true"] { background: #1c1728; }
:root[data-theme="dark"] .mobile-cabinet-bar { background: rgba(23,19,32,.95); }

@media (max-width: 760px) {
  .desktop-theme-toggle { display: none; }
  .drawer-theme-toggle { margin: 10px 0; }
}

/* Faithful Windows app preview — version text is populated from the public release manifest. */
.hero-product {
  min-height: 520px;
  display: grid;
  align-items: center;
}
.product-window.app-preview {
  position: relative;
  top: auto;
  right: auto;
  width: min(100%, 650px);
  aspect-ratio: 600 / 440;
  margin-left: auto;
  overflow: hidden;
  border: 1px solid #342d45;
  border-radius: 18px;
  color: #f5f1ff;
  background: #0c0a14;
  box-shadow: 0 34px 74px rgba(24,16,40,.28);
  font-family: "Segoe UI", Arial, sans-serif;
  transform: none;
  transition: box-shadow .22s ease;
}
.product-window.app-preview:hover { box-shadow: 0 38px 82px rgba(24,16,40,.34); }
.app-preview .window-bar {
  height: 9.55%;
  min-height: 0;
  padding: 0 14px;
  border-bottom: 1px solid #342d45;
  color: #f5f1ff;
  background: #171320;
}
.app-preview .window-brand { gap: 8px; font-size: 12px; font-weight: 600; }
.app-preview .window-controls { align-items: center; gap: 22px; }
.app-preview .window-controls i { width: 12px; background: #aaa2bc; }
.app-preview .window-controls i:last-child { width: 12px; height: 12px; background: linear-gradient(45deg,transparent 45%,#aaa2bc 46%,#aaa2bc 54%,transparent 55%),linear-gradient(-45deg,transparent 45%,#aaa2bc 46%,#aaa2bc 54%,transparent 55%); }
.app-preview .window-body {
  display: grid;
  grid-template-columns: 25.67% 1fr;
  height: 90.45%;
  min-height: 0;
}
.app-preview .window-sidebar {
  position: relative;
  display: flex;
  width: auto;
  padding: 8px 10px 12px;
  border-right: 1px solid #342d45;
  color: #f5f1ff;
  background: #110e1b;
}
.app-preview .window-logo { min-height: 56px; margin: 0 8px 4px; gap: 9px; font-size: 15px; }
.app-preview-nav { display: grid; gap: 5px; }
.app-preview .mock-nav {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 11px;
  color: #f5f1ff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.app-preview .mock-nav svg { flex: 0 0 17px; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.app-preview .mock-nav.active { color: #a783ff; background: #2a2041; }
.app-preview-sidebar-footer { display: grid; margin: auto 8px 0; color: #f5f1ff; font-size: 10px; }
.app-preview-sidebar-footer > small { margin-top: 3px; color: #aaa2bc; font-size: 8px; }
.app-preview-theme { display: grid; grid-template-columns: minmax(0,1fr) 34px; align-items: center; gap: 7px; margin-bottom: 10px; }
.app-preview-theme span { display: grid; }
.app-preview-theme b { font-size: 9px; }
.app-preview-theme small { margin-top: 2px; color: #aaa2bc; font-size: 7px; }
.app-preview-theme i { position: relative; width: 32px; height: 18px; border-radius: 10px; background: #a783ff; }
.app-preview-theme i::after { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; content: ""; }
.app-preview .window-content {
  display: grid;
  grid-template-rows: 52fr 170fr 78fr 64fr;
  padding: 14px 20px;
  color: #f5f1ff;
  background: #0c0a14;
}
.app-preview-heading { display: block; }
.app-preview .mock-title { display: block; color: #f5f1ff; font-family: "Segoe UI", Arial, sans-serif; font-size: 22px; font-weight: 700; line-height: 1.1; }
.app-preview .mock-subtitle { display: block; margin-top: 3px; color: #aaa2bc; font-size: 10.5px; }
.app-preview .connection-row {
  display: grid;
  grid-template-columns: 145px 1fr;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.app-preview .connection-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 122px;
  height: 122px;
  border: 0;
  border-radius: 50%;
  background: #153d31;
  box-shadow: inset 0 0 0 8px #0c0a14, inset 0 0 0 9px #342d45, inset 0 0 0 17px #171320, inset 0 0 0 19px #42d99b;
}
.app-preview .connection-orb::before {
  position: absolute;
  inset: 8px;
  border: 1px solid #342d45;
  border-top-color: #42d99b;
  border-radius: 50%;
  content: "";
  animation: spin 7s linear infinite;
}
.app-preview .connection-orb svg { width: 28px; height: 28px; fill: none; stroke: #42d99b; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-preview .connection-copy { display: flex; align-items: stretch; min-width: 0; }
.app-preview .connection-copy strong { color: #42d99b; font-family: "Segoe UI", Arial, sans-serif; font-size: 20px; line-height: 1.05; }
.app-preview .connection-copy > span { margin-top: 4px; color: #aaa2bc; font-size: 10px; }
.app-preview .connection-copy > i { display: grid; place-items: center; min-height: 40px; margin-top: 11px; padding: 0 16px; border: 1px solid #a783ff; border-radius: 11px; color: #a783ff; font-size: 11px; font-style: normal; font-weight: 600; background: #171320; }
.app-preview-modes { display: grid; grid-template-columns: 1fr 1fr; margin-top: 7px; padding: 0; border-radius: 10px; background: #2a2041; }
.app-preview-modes b { display: grid; place-items: center; min-height: 30px; border-radius: 9px; color: #aaa2bc; font-size: 10px; font-weight: 600; }
.app-preview-modes b.is-selected { color: #fff; background: #a783ff; }
.app-preview .mock-status { display: grid; grid-template-columns: minmax(0,1fr) 134px; gap: 12px; margin: 8px 0 0; }
.app-preview .mock-status > span { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 11px 15px; border: 1px solid #342d45; border-radius: 14px; color: #aaa2bc; font-size: 9px; line-height: 1.25; background: #171320; }
.app-preview .mock-status b { margin-bottom: 4px; color: #f5f1ff; font-size: 11px; font-weight: 600; }
.app-preview .mock-status small { color: #aaa2bc; font-size: 8px; line-height: 1.35; }

@media (max-width: 760px) {
  .hero-product { min-height: 0; }
  .product-window.app-preview { width: 100%; border-radius: 13px; }
  .app-preview .window-bar { height: 9.55%; padding: 0 8px; }
  .app-preview .window-brand { gap: 5px; font-size: 7px; }
  .app-preview .window-brand img { width: 15px; height: 15px; }
  .app-preview .window-controls { gap: 12px; }
  .app-preview .window-controls i { width: 8px; }
  .app-preview .window-controls i:last-child { width: 8px; height: 8px; }
  .app-preview .window-sidebar { width: auto; padding: 4px 5px 6px; }
  .app-preview .window-logo { min-height: 38px; margin: 0 4px 2px; gap: 5px; }
  .app-preview .window-logo img { width: 23px; height: 23px; }
  .app-preview .window-logo strong { font-size: 9px; }
  .app-preview-nav { gap: 2px; }
  .app-preview .mock-nav { gap: 5px; min-height: 27px; padding: 0 6px; border-radius: 7px; font-size: 6px; }
  .app-preview .mock-nav svg { flex-basis: 10px; width: 10px; height: 10px; }
  .app-preview-sidebar-footer { margin-inline: 4px; font-size: 6px; }
  .app-preview-sidebar-footer > small { font-size: 5px; }
  .app-preview-theme { grid-template-columns: 1fr 20px; gap: 3px; margin-bottom: 5px; }
  .app-preview-theme b { font-size: 5.5px; }
  .app-preview-theme small { font-size: 4.5px; }
  .app-preview-theme i { width: 19px; height: 11px; }
  .app-preview-theme i::after { top: 1px; right: 1px; width: 9px; height: 9px; }
  .app-preview .window-content { padding: 8px 11px; }
  .app-preview .mock-title { font-size: 13px; }
  .app-preview .mock-subtitle { margin-top: 2px; font-size: 6px; }
  .app-preview .connection-row { gap: 5px; }
  .app-preview .connection-row { grid-template-columns: 83px 1fr; }
  .app-preview .connection-orb { width: 70px; height: 70px; box-shadow: inset 0 0 0 5px #0c0a14,inset 0 0 0 6px #342d45,inset 0 0 0 10px #171320,inset 0 0 0 11px #42d99b; }
  .app-preview .connection-orb::before { inset: 5px; }
  .app-preview .connection-orb svg { width: 17px; height: 17px; }
  .app-preview .connection-copy strong { font-size: 11px; }
  .app-preview .connection-copy > span { margin-top: 2px; font-size: 5.5px; }
  .app-preview .connection-copy > i { min-height: 23px; margin-top: 5px; padding: 0 6px; border-radius: 6px; font-size: 6px; }
  .app-preview-modes { margin-top: 4px; border-radius: 6px; }
  .app-preview-modes b { min-height: 18px; border-radius: 5px; font-size: 5.5px; }
  .app-preview .mock-status { grid-template-columns: minmax(0,1fr) 76px; gap: 6px; margin-top: 4px; }
  .app-preview .mock-status > span { padding: 5px 8px; border-radius: 8px; font-size: 5px; }
  .app-preview .mock-status b { margin-bottom: 2px; font-size: 6px; }
  .app-preview .mock-status small { font-size: 4.5px; }
}

/* Security workspace and compact device cards. */
.security-settings-grid { align-items: stretch; }
.security-settings-grid .account-setting-card {
  min-height: 430px;
  padding: 26px;
  border-radius: 18px;
  background: var(--site-surface);
}
.security-settings-grid .account-setting-card > div:first-child { margin-bottom: 24px; }
.security-card-heading { display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: center; gap: 14px; }
.security-card-heading h4 { margin: 0 0 4px; font-size: 20px; }
.security-card-heading p { max-width: 430px; }
.security-card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--site-accent);
  background: var(--site-soft);
}
.security-card-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.security-card-icon-telegram { color: #279ed9; background: #e9f6fc; }
.security-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: auto; }
.security-settings-grid .security-card-actions .button { width: auto; min-width: 190px; min-height: 46px; margin: 0; }
.telegram-setting { gap: 0; }
.telegram-actions { justify-content: flex-start; margin-top: 12px; }
.telegram-actions .button + .button { margin-top: 0; }
.profile-photo-setting {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--site-line);
}
.security-profile-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--site-accent) 24%, var(--site-line));
  border-radius: 50%;
  color: var(--site-accent);
  background: var(--site-soft);
  font-size: 16px;
  font-weight: 900;
}
.security-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.security-profile-avatar > span { line-height: 1; }
.profile-photo-setting > div { display: grid; gap: 4px; }
.profile-photo-setting strong { font-size: 13px; }
.profile-photo-setting small { color: var(--site-muted); font-size: 10px; }
.security-settings-grid .profile-photo-setting .button { width: auto; min-width: 124px; min-height: 44px; margin: 0; }

.devices {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}
.device.device-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border-color: var(--site-line);
  border-radius: 17px;
  background: var(--site-surface);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.device.device-card:hover { border-color: #cbbce9; box-shadow: 0 12px 30px rgba(40,25,70,.07); }
.device-card-head {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 17px;
  border-bottom: 1px solid var(--site-line);
}
.device-app-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--site-accent);
  background: var(--site-soft);
}
.device-app-icon img { width: 34px; height: 34px; object-fit: contain; }
.device-app-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.device-app-icon-windows { color: #168ceb; background: #eaf5ff; }
.device-app-icon-windows svg { fill: currentColor; stroke: none; }
.device-app-icon-android { color: #65b936; background: #eff9e9; }
.device-app-icon-v2raytun { color: #8a68e8; }
.device-app-icon-v2raytun svg { fill: none; }
.device-platform-mark {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--site-surface);
  border-radius: 7px;
  color: var(--site-accent);
  background: var(--site-soft);
}
.device-platform-mark svg { width: 12px; height: 12px; }
.device-platform-windows { color: #168ceb; }
.device-platform-windows svg { fill: currentColor; stroke: none; }
.device-platform-android { color: #65b936; }
.device-platform-android svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.device-platform-apple svg { fill: currentColor; stroke: none; }
.device-app-title { display: grid; min-width: 0; gap: 3px; }
.device-app-title small { color: var(--site-muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.device-app-title strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.device-state { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 9px; border-radius: 9px; color: var(--site-success); background: var(--green-soft); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.device-state i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(66,217,155,.12); }
.device-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; margin: 0; padding: 1px; background: var(--site-line); }
.device-details > div { min-width: 0; padding: 13px 16px; background: var(--site-surface); }
.device-details dt { color: var(--site-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.device-details dd { overflow: hidden; margin: 5px 0 0; color: var(--site-ink); font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.device-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; }
.device-card-footer > span { max-width: 260px; color: var(--site-muted); font-size: 9px; line-height: 1.45; }
.device-remove {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #ffd0d8;
  border-radius: 11px;
  color: var(--site-danger);
  background: #fff5f7;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.device-remove:hover { border-color: var(--site-danger); background: #ffedf1; }
.device-remove svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

:root[data-theme="dark"] .security-card-icon-telegram { color: #6cc7ee; background: #163344; }
:root[data-theme="dark"] .device.device-card:hover { border-color: #5b4778; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
:root[data-theme="dark"] .device-app-icon-windows { color: #63b5f7; background: #172c40; }
:root[data-theme="dark"] .device-app-icon-android { color: #91d66b; background: #20331c; }
:root[data-theme="dark"] .device-remove { border-color: #55313e; color: #ff8ba0; background: #25151c; }
:root[data-theme="dark"] .device-remove:hover { border-color: #ff6b84; background: #321923; }

@media (max-width: 900px) {
  .devices { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .security-settings-grid .account-setting-card { min-height: 0; padding: 18px; }
  .security-card-heading { grid-template-columns: 44px minmax(0,1fr); gap: 12px; }
  .security-card-icon { width: 44px; height: 44px; border-radius: 12px; }
  .security-card-heading h4 { font-size: 18px; }
  .security-card-actions { margin-top: 18px; }
  .security-settings-grid .security-card-actions .button { width: 100%; min-width: 0; min-height: 48px; }
  .profile-photo-setting { grid-template-columns: 44px minmax(0,1fr); margin-top: 22px; }
  .security-settings-grid .profile-photo-setting .button { grid-column: 1/-1; width: 100%; }
  .device-card-head { grid-template-columns: 46px minmax(0,1fr) auto; padding: 14px; }
  .device-app-icon { width: 46px; height: 46px; border-radius: 13px; }
  .device-state { padding-inline: 7px; font-size: 7px; }
  .device-details > div { padding: 12px; }
  .device-card-footer { align-items: stretch; flex-direction: column; }
  .device-card-footer > span { max-width: none; }
  .device-remove { width: 100%; min-height: 48px; }
}
