* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(180deg, #f7f8fc 0%, #eef2f8 100%);
  color: #172033;
}

body.modal-open {
  overflow: hidden;
}

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

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #172033;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  box-shadow: 0 8px 22px rgba(28, 42, 74, 0.04);
}

.nav-burger span {
  display: block;
  height: 2px;
  background: #172033;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-pills {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(23, 32, 51, 0.08);
  color: #44536f;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 8px 22px rgba(28, 42, 74, 0.04);
}

.nav-pill:hover {
  color: #172033;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(28, 42, 74, 0.08);
}

.nav-pill-with-badge {
  gap: 10px;
}

.nav-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dfff45 0%, #d1ff4d 100%);
  color: #172033;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(208, 255, 77, 0.26);
}

.nav-logout-form {
  margin: 0;
}

.nav-pill-icon {
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.nav-link-button {
  background: none;
  border: none;
  color: #4b5568;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.landing {
  overflow: hidden;
}

.hero-section {
  padding: 42px 0 34px;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(126, 211, 255, 0.24), transparent 28%),
    radial-gradient(circle at bottom right, rgba(143, 255, 200, 0.20), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(247,250,255,0.92));
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow:
    0 20px 60px rgba(28, 42, 74, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.hero-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 34px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(23, 32, 51, 0.08);
  color: #51607d;
  font-size: 14px;
  font-weight: 600;
}

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

.mini-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(23, 32, 51, 0.08);
  color: #3d4a62;
  font-size: 14px;
  font-weight: 600;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 34px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 18px 4px 18px 6px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #6a7891;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.8vw, 70px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #172033;
  max-width: 640px;
  word-break: break-word;
}

.hero-text {
  margin: 0;
  max-width: 580px;
  font-size: 20px;
  line-height: 1.6;
  color: #64728b;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-price-note {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 700;
  color: #25324b;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #172033;
  background: linear-gradient(135deg, #dfff45 0%, #d1ff4d 100%);
  box-shadow: 0 10px 28px rgba(208, 255, 77, 0.28);
}

.btn-secondary {
  color: #2b3850;
  background: rgba(255,255,255,0.88);
  border-color: rgba(23, 32, 51, 0.10);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.visual-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(246,249,255,0.96));
  border: 1px solid rgba(23, 32, 51, 0.08);
  box-shadow: 0 24px 70px rgba(28, 42, 74, 0.12);
}

.visual-card-main {
  padding: 22px;
}

.visual-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #47556f;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-green {
  background: #36d17f;
  box-shadow: 0 0 16px rgba(54, 209, 127, 0.55);
}

.nodes-marquee {
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
  margin: -10px 0;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.nodes-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 4px 0 4px 0;
  animation: marqueeScroll 16s linear infinite;
}

.nodes-track:hover {
  animation-play-state: paused;
}

.node-card {
  min-width: 190px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f5f8ff);
  border: 1px solid rgba(23, 32, 51, 0.08);
  box-shadow: 0 10px 26px rgba(27, 41, 69, 0.08);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.node-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(27, 41, 69, 0.12);
}

.node-card.active {
  background: linear-gradient(135deg, #effff4 0%, #faffdf 100%);
  border-color: rgba(177, 228, 65, 0.55);
}

.node-flag {
  font-size: 26px;
  margin-bottom: 12px;
}

.node-name {
  font-size: 24px;
  font-weight: 800;
  color: #172033;
  margin-bottom: 8px;
}

.node-meta {
  font-size: 14px;
  color: #697892;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.stat-card {
  min-height: 110px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(23, 32, 51, 0.08);
}

.stat-label {
  color: #70809a;
  font-size: 14px;
  margin-bottom: 10px;
}

.stat-value {
  color: #172033;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}

.floating-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.45;
  animation: floatGlow 5s ease-in-out infinite;
}

.glow-one {
  top: 32px;
  left: 8px;
  width: 150px;
  height: 150px;
  background: rgba(115, 228, 255, 0.34);
}

.glow-two {
  right: 6px;
  bottom: 38px;
  width: 170px;
  height: 170px;
  background: rgba(215, 255, 65, 0.30);
  animation-delay: 1.2s;
}

.advantages-section {
  padding: 28px 0 72px;
}

.section-head {
  margin-bottom: 26px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #172033;
}

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

.adv-card {
  min-height: 220px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(246,249,255,0.96));
  border: 1px solid rgba(23, 32, 51, 0.08);
  box-shadow: 0 18px 42px rgba(28, 42, 74, 0.08);
}

.adv-card-highlight {
  background: linear-gradient(135deg, #f8ffdf 0%, #f6fff1 100%);
  border-color: rgba(181, 225, 74, 0.55);
}

.adv-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #effff2 0%, #f8ffe3 100%);
  font-size: 28px;
  margin-bottom: 18px;
}

.adv-card h3 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.15;
  color: #172033;
}

.adv-card p {
  margin: 0;
  color: #687792;
  font-size: 16px;
  line-height: 1.65;
}

.adv-card .btn {
  margin-top: 18px;
}

.adv-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.adv-platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f4ffd6 0%, #eaffc8 100%);
  border: 1px solid rgba(181, 225, 74, 0.55);
  color: #2b3850;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.flash {
  padding: 14px 18px;
  border-radius: 12px;
  margin: 20px 0;
  font-weight: 600;
}

.flash-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.flash-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.card {
  background: white;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  margin-top: 20px;
}

.form-card {
  max-width: 420px;
}

.form-card form .btn {
  margin-top: 10px;
}

.form-note {
  margin: 10px 0 18px;
  color: #687792;
  line-height: 1.6;
}

.form-link-row {
  margin-top: 16px;
}

.form-legal-note {
  margin-top: 14px;
  font-size: 12px;
  color: #64728b;
  line-height: 1.5;
}

.form-legal-note a {
  color: #2b3850;
  text-decoration: underline;
}

.toast-stack {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: calc(100% - 48px);
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(180, 50, 50, 0.25);
  box-shadow: 0 18px 40px rgba(28, 42, 74, 0.14);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

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

.toast.is-leaving {
  transform: translateX(120%);
  opacity: 0;
}

.toast-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #ffe8e8;
  color: #b6373a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
}

.toast-success {
  border-color: rgba(60, 160, 90, 0.28);
}

.toast-success .toast-icon {
  background: #e3f9ea;
  color: #2e7a4a;
}

.toast-body {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #2b3850;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.toast-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #6c7a98;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 720px) {
  .toast-stack {
    top: 12px;
    right: 12px;
    left: 12px;
    max-width: none;
  }

  .toast {
    min-width: 0;
    max-width: none;
  }
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-layer.is-open {
  display: block;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(8px);
}

.modal-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 24px;
}

.auth-modal {
  position: relative;
  display: none;
  width: min(100%, 440px);
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,249,255,0.98));
  border: 1px solid rgba(23, 32, 51, 0.08);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

.auth-modal.is-open {
  display: block;
}

.auth-modal h2 {
  margin: 0 0 10px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.06);
  color: #42516d;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.modal-submit {
  width: 100%;
  margin-top: 6px;
}

.modal-inline-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: #172033;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

form label {
  display: block;
  margin-top: 12px;
  margin-bottom: 6px;
}

form input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  box-sizing: border-box;
  margin-bottom: 10px;
  font-size: 16px;
  font-family: inherit;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.tariffs-page {
  padding: 36px 0 84px;
}

.tariffs-hero {
  padding-bottom: 18px;
}

.tariffs-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 30px;
  background:
    radial-gradient(circle at top left, rgba(126, 211, 255, 0.18), transparent 24%),
    radial-gradient(circle at bottom right, rgba(221, 255, 84, 0.16), transparent 26%),
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(247,250,255,0.92));
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow:
    0 20px 60px rgba(28, 42, 74, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.tariffs-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.tariffs-head h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #172033;
}

.tariffs-subtitle {
  max-width: 760px;
  margin: 18px 0 0;
  color: #66758f;
  font-size: 20px;
  line-height: 1.6;
}

.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.tariff-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(246,249,255,0.96));
  border: 1px solid rgba(23, 32, 51, 0.08);
  box-shadow: 0 18px 42px rgba(28, 42, 74, 0.08);
}

.tariff-card-featured {
  position: relative;
  background: linear-gradient(135deg, #faffde 0%, #f4fff7 100%);
  border-color: rgba(183, 226, 77, 0.48);
  box-shadow:
    0 22px 52px rgba(28, 42, 74, 0.10),
    0 0 0 1px rgba(212, 255, 61, 0.24);
}

.tariff-card-top h3 {
  margin: 16px 0 10px;
  font-size: 32px;
  line-height: 1.05;
  color: #172033;
}

.tariff-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tariff-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(23, 32, 51, 0.08);
  color: #5d6b84;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tariff-device-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(215, 255, 45, 0.16);
  border: 1px solid rgba(183, 226, 77, 0.42);
  color: #425128;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tariff-monthly {
  margin: 0;
  color: #66758f;
  font-size: 16px;
  line-height: 1.6;
}

.tariff-monthly span {
  color: #4f5e7a;
  font-weight: 700;
}

.tariff-price-wrap {
  margin-top: 22px;
}

.tariff-price-wrap-inline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

.tariff-old-price {
  margin: 0;
  color: #90a0b8;
  font-size: 20px;
  font-weight: 700;
  text-decoration: line-through;
}

.price {
  margin: 0;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #172033;
}

.tariff-features {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.tariff-features li {
  position: relative;
  padding-left: 26px;
  color: #5f6d8b;
  line-height: 1.6;
}

.tariff-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d9ff2b 0%, #aef75f 100%);
  box-shadow: 0 0 0 6px rgba(217, 255, 43, 0.12);
}

.tariff-features-pill-item {
  padding-left: 0 !important;
}

.tariff-features-pill-item::before {
  display: none;
}

.tariff-device-pill-list {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.tariff-form {
  margin-top: auto;
  padding-top: 26px;
}

.tariff-picker-layer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.tariff-picker-layer.is-open {
  display: block;
}

.connect-layer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.connect-layer.is-open {
  display: block;
}

.connect-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(10px);
}

.connect-modal {
  position: relative;
  width: min(100% - 32px, 1080px);
  margin: 6vh auto 24px;
}

.connect-modal .install-shell {
  padding: 40px;
}

.connect-modal .modal-close {
  z-index: 2;
}

@media (max-width: 720px) {
  .connect-modal {
    margin: 16px auto 16px;
    width: calc(100% - 16px);
  }

  .connect-modal .install-shell {
    padding: 22px 18px;
    border-radius: 22px;
  }
}

.tariff-picker-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(10px);
}

.tariff-picker-modal {
  position: relative;
  width: min(100% - 32px, 580px);
  margin: 12vh auto 24px;
  padding: 30px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,249,255,0.98));
  border: 1px solid rgba(255,255,255,0.92);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
}

.tariff-picker-modal h2 {
  margin: 0 0 14px;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #172033;
}

.tariff-picker-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(126, 211, 255, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(221, 255, 84, 0.12), transparent 28%),
    rgba(255,255,255,0.86);
  border: 1px solid rgba(23, 32, 51, 0.08);
}

.tariff-picker-copy p {
  margin: 0;
}

.tariff-picker-included {
  color: #172033;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.tariff-picker-hint {
  margin-top: 8px !important;
  color: #66758f;
  line-height: 1.6;
}

.tariff-picker-price-box {
  flex-shrink: 0;
  text-align: right;
}

.tariff-picker-price-box span {
  display: block;
  color: #66758f;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tariff-picker-price-box strong {
  display: block;
  margin-top: 8px;
  color: #172033;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.tariff-device-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
}

.tariff-stepper-btn {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(23, 32, 51, 0.10);
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  color: #172033;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.tariff-stepper-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tariff-stepper-value {
  min-width: 180px;
  padding: 14px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(23, 32, 51, 0.08);
  text-align: center;
}

.tariff-stepper-value span {
  display: block;
  color: #172033;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.tariff-stepper-value small {
  display: block;
  margin-top: 6px;
  color: #66758f;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tariff-picker-form {
  display: inline-flex;
}

.muted {
  color: #6b7280;
}

.dashboard-page {
  padding: 36px 0 84px;
}

.dashboard-hero {
  padding-bottom: 26px;
}

.dashboard-shell,
.install-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 30px;
  background:
    radial-gradient(circle at top left, rgba(126, 211, 255, 0.18), transparent 24%),
    radial-gradient(circle at bottom right, rgba(221, 255, 84, 0.14), transparent 24%),
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(247,250,255,0.92));
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow:
    0 20px 60px rgba(28, 42, 74, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.dashboard-head h1,
.install-toolbar h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #172033;
}

.dashboard-subtitle {
  margin: 18px 0 0;
  color: #66758f;
  font-size: 20px;
  line-height: 1.6;
}

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

.dashboard-card {
  min-height: 240px;
  min-width: 0;
  padding: 28px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(246,249,255,0.96));
  border: 1px solid rgba(23, 32, 51, 0.08);
  box-shadow: 0 18px 42px rgba(28, 42, 74, 0.08);
}

.dashboard-card-wide {
  grid-column: 1 / -1;
}

.dashboard-card-highlight {
  background: linear-gradient(135deg, #faffde 0%, #f4fff7 100%);
  border-color: rgba(183, 226, 77, 0.45);
}

.dashboard-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(23, 32, 51, 0.08);
  color: #5d6b84;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-card h3 {
  margin: 18px 0 12px;
  font-size: 34px;
  line-height: 1.05;
  color: #172033;
}

.dashboard-copy {
  margin: 0;
  color: #687792;
  font-size: 18px;
  line-height: 1.7;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.dashboard-metrics-single {
  grid-template-columns: 1fr;
}

.metric-box {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(23, 32, 51, 0.08);
}

.metric-box span {
  display: block;
  margin-bottom: 10px;
  color: #73839d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.metric-box strong {
  color: #172033;
  font-size: 20px;
  line-height: 1.4;
}

.metric-box .metric-link {
  display: block;
  font-size: 15px;
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.dashboard-referral-metrics {
  align-items: stretch;
}

.metric-box-bonus {
  background: linear-gradient(135deg, #faffde 0%, #f4fff7 100%);
  border-color: rgba(183, 226, 77, 0.45);
  box-shadow:
    0 18px 42px rgba(28, 42, 74, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  position: relative;
  overflow: hidden;
}

.metric-box-bonus::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(224, 255, 111, 0.28), transparent 42%),
    radial-gradient(circle at right center, rgba(190, 255, 225, 0.26), transparent 40%);
  pointer-events: none;
}

.metric-box-bonus span {
  color: #6f7d4a;
}

.metric-box-bonus strong {
  color: #172033;
}

.metric-box-link {
  margin-top: 14px;
}

.metric-box-link .metric-link-single {
  display: block;
  font-size: 18px;
  line-height: 1.5;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.metric-box-link + .dashboard-link-stack {
  margin-top: 14px;
}

.dashboard-actions-row,
.dashboard-link-stack,
.action-row,
.trial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.dashboard-empty-copy {
  margin-top: 22px;
}

.dashboard-warning-copy {
  margin-top: 18px;
  color: #9a5a2f;
}

.btn-danger-soft {
  color: #b64040;
  border-color: rgba(182, 64, 64, 0.18);
  background: rgba(255, 241, 241, 0.88);
}

.btn-danger-soft:hover {
  color: #a22d2d;
  border-color: rgba(182, 64, 64, 0.3);
  background: rgba(255, 234, 234, 0.96);
}

.hwid-device-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.hwid-device-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(23, 32, 51, 0.08);
  box-shadow: 0 14px 36px rgba(28, 42, 74, 0.06);
}

.hwid-device-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.hwid-device-head h4 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  color: #172033;
}

.hwid-device-head p {
  margin: 8px 0 0;
  color: #6e7d98;
  line-height: 1.6;
}

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

.hwid-field {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(248, 250, 255, 0.92);
  border: 1px solid rgba(23, 32, 51, 0.06);
}

.hwid-field span {
  display: block;
  margin-bottom: 8px;
  color: #73839d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hwid-field strong {
  display: block;
  color: #172033;
  line-height: 1.6;
  word-break: break-word;
}

.dashboard-actions-row,
.dashboard-link-stack {
  margin-top: 24px;
}

.subscription-url {
  margin: 0;
  color: #6f7e97;
  font-size: 16px;
  line-height: 1.7;
  word-break: break-all;
}

.dashboard-install {
  padding-top: 6px;
}

.install-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.device-select-wrap {
  min-width: 220px;
}

.device-select-label {
  display: block;
  margin-bottom: 8px;
  color: #6a7891;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.device-select {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(23, 32, 51, 0.10);
  background: rgba(255,255,255,0.88);
  color: #22314a;
  font: inherit;
}

.app-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.app-tab {
  min-height: 52px;
  padding: 0 20px;
  border-radius: 18px;
  border: 1px solid rgba(23, 32, 51, 0.10);
  background: rgba(255,255,255,0.82);
  color: #42516d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.app-tab:hover,
.app-tab.is-active {
  color: #172033;
  border-color: rgba(111, 222, 255, 0.55);
  background: linear-gradient(135deg, rgba(235, 252, 255, 0.98), rgba(246, 255, 218, 0.96));
  transform: translateY(-1px);
}

.install-card {
  margin-top: 24px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(246,249,255,0.96));
  border: 1px solid rgba(23, 32, 51, 0.08);
  box-shadow: 0 18px 42px rgba(28, 42, 74, 0.08);
}

.install-top-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.step-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(23, 32, 51, 0.08);
}

.step-card + .step-card {
  margin-top: 18px;
}

.step-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #effff2 0%, #f7ffe1 100%);
  color: #172033;
  font-size: 24px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(23, 32, 51, 0.06);
}

.step-card h3 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.12;
  color: #172033;
}

.step-card p {
  margin: 0;
  color: #687792;
  font-size: 18px;
  line-height: 1.75;
}

.action-row {
  margin-top: 18px;
}

.trial-layer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.trial-layer.is-open {
  display: block;
}

.trial-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(10px);
}

.trial-modal {
  position: relative;
  width: min(100% - 32px, 520px);
  margin: 12vh auto 24px;
  padding: 30px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,249,255,0.98));
  border: 1px solid rgba(255,255,255,0.92);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
}

.trial-modal h2 {
  margin: 0 0 14px;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #172033;
}

.trial-actions {
  margin-top: 24px;
}

.logout-layer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.logout-layer.is-open {
  display: block;
}

.logout-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(10px);
}

.logout-modal {
  position: relative;
  width: min(100% - 32px, 520px);
  margin: 12vh auto 24px;
  padding: 30px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,249,255,0.98));
  border: 1px solid rgba(255,255,255,0.92);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
}

.logout-modal h2 {
  margin: 0 0 14px;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #172033;
}

.profile-modal {
  width: min(100% - 32px, 560px);
}

.profile-modal-flash {
  margin-top: 18px;
}

.profile-modal-form {
  margin-top: 20px;
}

.profile-modal-form label {
  display: block;
  margin-bottom: 10px;
  color: #2c3b57;
  font-weight: 700;
}

.profile-modal-form input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(23, 32, 51, 0.10);
  background: rgba(255,255,255,0.92);
  color: #22314a;
  font: inherit;
}

.profile-modal-form textarea {
  width: 100%;
  min-height: 140px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(23, 32, 51, 0.10);
  background: rgba(255,255,255,0.92);
  color: #22314a;
  resize: vertical;
  font: inherit;
}

.profile-modal-note {
  margin: 18px 0 0;
  color: #6b7897;
  line-height: 1.65;
}

.profile-modal-resend {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 32, 51, 0.08);
}

.profile-modal .btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.tickets-page {
  padding: 40px 0 72px;
}

.tickets-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.tickets-sidebar,
.ticket-thread-card {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(23, 32, 51, 0.08);
  box-shadow: 0 16px 40px rgba(28, 42, 74, 0.06);
}

.tickets-sidebar h3,
.ticket-thread-card h2,
.ticket-reply-box h3 {
  margin-top: 0;
}

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

.ticket-list-item {
  display: block;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(247, 250, 255, 0.92);
  border: 1px solid rgba(23, 32, 51, 0.08);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ticket-list-item:hover,
.ticket-list-item.is-active {
  transform: translateY(-1px);
  border-color: rgba(208, 255, 77, 0.7);
  box-shadow: 0 12px 28px rgba(28, 42, 74, 0.08);
}

.ticket-list-head,
.ticket-thread-head,
.ticket-message-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.ticket-list-item p {
  margin: 10px 0 0;
  color: #6e7d98;
}

.ticket-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(23, 32, 51, 0.08);
}

.ticket-status-open {
  color: #315dcb;
  background: rgba(237, 243, 255, 0.95);
}

.ticket-status-answered {
  color: #2c7d4e;
  background: rgba(235, 255, 243, 0.95);
}

.ticket-status-answered-read {
  color: #58708f;
  background: rgba(241, 245, 252, 0.95);
}

.ticket-status-closed {
  color: #7b5f2d;
  background: rgba(255, 248, 231, 0.95);
}

.ticket-thread {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.ticket-message {
  padding: 18px;
  border-radius: 22px;
  background: rgba(247, 250, 255, 0.92);
  border: 1px solid rgba(23, 32, 51, 0.08);
}

.ticket-message.is-admin {
  background: linear-gradient(135deg, rgba(245,255,211,0.65), rgba(245,250,255,0.92));
}

.ticket-message p {
  margin: 12px 0 0;
  line-height: 1.8;
  white-space: pre-wrap;
}

.ticket-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.ticket-attachment {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(23, 32, 51, 0.1);
  color: #42526d;
  font-weight: 600;
}

.ticket-thread-empty {
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
}

.ticket-modal {
  max-width: 760px;
}

.ticket-file-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.ticket-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(247, 250, 255, 0.92);
  border: 1px solid rgba(23, 32, 51, 0.08);
  color: #42526d;
}

.ticket-file-remove {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 241, 241, 0.95);
  color: #b64040;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.ticket-reply-box {
  margin-top: 24px;
}

.site-footer {
  margin-top: 56px;
  padding: 0 0 40px;
}

.site-footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border: 1px solid rgba(26, 37, 66, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(221, 255, 55, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 60px rgba(71, 89, 122, 0.08);
}

.site-footer-brand {
  max-width: 520px;
}

.site-footer-logo {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #1c2947;
  text-decoration: none;
}

.site-footer-copy {
  margin: 12px 0 0;
  color: #6b7897;
  line-height: 1.6;
}

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

.site-footer-nav a {
  color: #425173;
  font-weight: 600;
  text-decoration: none;
}

.site-footer-nav a:hover {
  color: #1c2947;
}

.legal-page {
  padding: 0 0 40px;
}

.legal-hero {
  padding: 36px 0 24px;
}

.legal-hero-shell {
  padding: 36px 40px;
  border: 1px solid rgba(26, 37, 66, 0.08);
  border-radius: 36px;
  background:
    radial-gradient(circle at top left, rgba(221, 255, 55, 0.18), transparent 28%),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 80px rgba(71, 89, 122, 0.08);
}

.legal-hero-shell h1 {
  margin: 8px 0 14px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: #1c2947;
}

.legal-lead {
  max-width: 760px;
  margin: 0;
  color: #647293;
  font-size: 1.05rem;
  line-height: 1.7;
}

.legal-section .container {
  display: grid;
  gap: 18px;
}

.legal-card {
  padding: 28px 30px;
  border: 1px solid rgba(26, 37, 66, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 48px rgba(71, 89, 122, 0.07);
}

.legal-card h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  color: #1c2947;
}

.payment-page {
  padding: 36px 0 56px;
}

.payment-shell {
  padding: 36px 40px;
  border: 1px solid rgba(26, 37, 66, 0.08);
  border-radius: 36px;
  background:
    radial-gradient(circle at top left, rgba(221, 255, 55, 0.18), transparent 28%),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 80px rgba(71, 89, 122, 0.08);
}

.payment-shell h1 {
  margin: 8px 0 14px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: #1c2947;
}

.payment-lead {
  max-width: 760px;
  margin: 0;
  color: #647293;
  font-size: 1.05rem;
  line-height: 1.7;
}

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

.payment-card {
  padding: 24px 26px;
  border: 1px solid rgba(26, 37, 66, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 48px rgba(71, 89, 122, 0.07);
}

.payment-card strong {
  display: block;
  margin-top: 8px;
  color: #172033;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.payment-label {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(23, 32, 51, 0.08);
  color: #5d6b84;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.legal-card p {
  margin: 0 0 12px;
  color: #5d6b8b;
  line-height: 1.7;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes floatGlow {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-14px) scale(1.05);
  }
}

@media (max-width: 1080px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-head,
  .install-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

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

  .dashboard-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 967px) {
  .header-inner {
    min-height: 74px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    position: relative;
  }

  .nav-burger {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(23, 32, 51, 0.08);
    box-shadow: 0 18px 42px rgba(28, 42, 74, 0.12);
    z-index: 30;
  }

  .nav.is-open {
    display: flex;
  }

  .nav-pill {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-pill-icon {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 100%);
  }

  .hero-shell {
    padding: 18px;
    border-radius: 24px;
  }

  .tariffs-shell {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .tariffs-head h1 {
    font-size: 40px;
  }

  .tariffs-subtitle {
    font-size: 17px;
  }

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

  .tariff-card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .tariff-card-meta {
    flex-wrap: wrap;
  }


  .tariff-card-top h3 {
    font-size: 26px;
  }

  .tariff-picker-modal {
    margin-top: 8vh;
    padding: 24px 20px;
    border-radius: 24px;
  }

  .tariff-picker-modal h2 {
    font-size: 32px;
  }

  .tariff-picker-summary {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }

  .tariff-picker-price-box {
    text-align: left;
  }

  .tariff-picker-price-box strong {
    font-size: 34px;
  }

  .tariff-device-stepper {
    gap: 12px;
  }

  .tariff-stepper-btn {
    width: 52px;
    height: 52px;
  }

  .tariff-stepper-value {
    min-width: 0;
    flex: 1;
  }

  .payment-shell {
    padding: 26px 20px;
    border-radius: 24px;
  }

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

  .payment-card strong {
    font-size: 24px;
  }

  .hero-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

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

  .stats-grid,
  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .node-card {
    min-width: 165px;
  }

  .adv-card h3 {
    font-size: 22px;
  }

  .dashboard-page {
    padding: 24px 0 56px;
  }

  .dashboard-shell,
  .install-shell {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .dashboard-head h1,
  .install-toolbar h2,
  .trial-modal h2 {
    font-size: 34px;
  }

  .dashboard-subtitle,
  .dashboard-copy,
  .step-card p {
    font-size: 17px;
  }

  .dashboard-card,
  .install-card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .dashboard-card h3,
  .step-card h3 {
    font-size: 24px;
  }

  .dashboard-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .tickets-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ticket-thread-head,
  .ticket-list-head,
  .ticket-message-meta {
    flex-direction: column;
  }

  .hwid-device-head {
    flex-direction: column;
  }

  .hwid-device-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 16px;
  }

  .step-icon {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  .app-tabs {
    gap: 10px;
  }

  .site-footer-inner {
    flex-direction: column;
    padding: 24px;
  }

  .site-footer-nav {
    justify-content: flex-start;
  }

  .legal-hero-shell,
  .legal-card {
    padding: 24px;
  }

  .app-tab,
  .device-select {
    width: 100%;
  }

  .trial-modal {
    margin-top: 8vh;
    padding: 24px 18px;
    border-radius: 24px;
  }

  .modal-shell {
    padding: 16px;
  }

  .auth-modal {
    padding: 24px 20px;
    border-radius: 22px;
  }
}

.stats-page {
  padding-bottom: 80px;
}

.stats-filter-bar {
  margin-bottom: 24px;
  padding: 18px 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(23, 32, 51, 0.08);
  box-shadow: 0 12px 28px rgba(28, 42, 74, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stats-filter-bar-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.stats-filter-bar-title .eyebrow {
  margin: 0 0 2px;
}

.stats-filter-bar-title h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.stats-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stats-preset {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(23, 32, 51, 0.12);
  background: #fff;
  color: #44536f;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.stats-preset:hover {
  background: rgba(91, 108, 255, 0.08);
  border-color: rgba(91, 108, 255, 0.35);
  color: #2733a8;
}

.stats-preset--active,
.stats-preset--active:hover {
  background: #172033;
  border-color: #172033;
  color: #fff;
}

.stats-filter {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.stats-filter-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #677590;
}

.stats-filter .btn {
  min-height: 44px;
  height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 15px;
}

.stats-filter input[type="date"] {
  width: auto;
  margin: 0;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(23, 32, 51, 0.12);
  background: #fff;
  color: #172033;
  font-family: inherit;
  font-size: 15px;
  flex: 0 0 auto;
}

.stats-filter input[type="date"]:focus {
  outline: 2px solid rgba(91, 108, 255, 0.35);
  outline-offset: 1px;
}

.stats-section {
  margin-top: 36px;
  padding: 28px 28px 24px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(23, 32, 51, 0.06);
  box-shadow: 0 14px 34px rgba(28, 42, 74, 0.05);
}

.stats-section-title {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.stats-section .dashboard-copy {
  margin-bottom: 18px;
}

.stats-funnel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.stats-funnel-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7f8fc 0%, #eef2f8 100%);
  border: 1px solid rgba(23, 32, 51, 0.05);
}

.stats-funnel-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #677590;
}

.stats-funnel-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #172033;
}

.stats-funnel-meta {
  font-size: 13px;
  color: #5f6d8b;
}

.stats-overall-rate {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 12px;
  row-gap: 4px;
  margin: 22px 0 0;
  padding: 14px 22px;
  background: linear-gradient(135deg, rgba(91, 108, 255, 0.1) 0%, rgba(34, 193, 195, 0.06) 100%);
  border-left: 4px solid #5b6cff;
  border-radius: 14px;
  font-size: 15px;
  color: #2733a8;
}

.stats-overall-rate strong {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1d258f;
}

.stats-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  padding: 32px 38px;
  border-radius: 24px;
  background: linear-gradient(135deg, #5b6cff 0%, #7c3aed 55%, #22c1c3 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  box-shadow: 0 24px 48px rgba(91, 108, 255, 0.22);
}

.stats-hero::before {
  content: '';
  position: absolute;
  top: -45%;
  right: -10%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.stats-hero-main {
  position: relative;
  z-index: 1;
}

.stats-hero-label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.stats-hero-value {
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stats-hero-meta {
  margin: 12px 0 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
}

.stats-hero-side {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.94);
}

.stats-funnel-step--final {
  background: linear-gradient(135deg, #172033 0%, #2733a8 100%);
  border-color: transparent;
}

.stats-funnel-step--final .stats-funnel-label,
.stats-funnel-step--final .stats-funnel-meta {
  color: rgba(255, 255, 255, 0.82);
}

.stats-funnel-step--final .stats-funnel-value {
  color: #fff;
}

.stats-card--primary {
  border-left: 4px solid #5b6cff;
  background: linear-gradient(180deg, rgba(91, 108, 255, 0.07) 0%, rgba(91, 108, 255, 0.02) 100%);
}

.stats-card--primary .stats-card-value {
  color: #2733a8;
}

.stats-card--muted {
  background: #f5f7fb;
  border-color: rgba(23, 32, 51, 0.04);
}

.stats-card--muted .stats-card-value {
  color: #b3bcd0;
}

.stats-card--muted .stats-card-label {
  color: #9aa6bf;
}

.stats-card--muted .stats-card-meta {
  color: #9aa6bf;
}

.stats-card--alert {
  border-left: 4px solid #f43f5e;
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.08) 0%, rgba(244, 63, 94, 0.02) 100%);
}

.stats-card--alert .stats-card-value {
  color: #b91c2c;
}

@media (max-width: 720px) {
  .stats-hero {
    padding: 24px 22px;
  }
  .stats-hero-value {
    font-size: 54px;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.stats-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(23, 32, 51, 0.08);
}

.stats-card-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #677590;
}

.stats-card-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #172033;
}

.stats-card-meta {
  font-size: 12px;
  color: #6c7a98;
  line-height: 1.4;
}

.stats-chart-wrap {
  position: relative;
  width: 100%;
  height: 320px;
  margin-top: 12px;
}

.stats-table-wrap {
  margin-top: 22px;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(23, 32, 51, 0.06);
}

.stats-table-title {
  margin: 22px 0 10px;
  font-size: 16px;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
}

.stats-table th,
.stats-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(23, 32, 51, 0.06);
  vertical-align: middle;
}

.stats-table th {
  background: #f7f8fc;
  color: #44536f;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stats-table tbody tr:hover {
  background: rgba(91, 108, 255, 0.04);
}

.stats-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  background: #f7f8fc;
  padding: 2px 6px;
  border-radius: 6px;
}

.stats-empty {
  margin: 8px 0 0;
  padding: 18px;
  text-align: center;
  color: #6c7a98;
  background: #f7f8fc;
  border-radius: 14px;
}

.stats-chart-wrap--short {
  height: 240px;
}

.stats-chart-wrap--pie {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats-pies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 12px;
}

.stats-pie-card {
  padding: 18px 18px 12px;
  border-radius: 18px;
  border: 1px solid rgba(23, 32, 51, 0.06);
  background: #fff;
}

.stats-pie-title {
  margin: 0 0 8px;
  font-size: 15px;
  color: #44536f;
  text-align: center;
}

.stats-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.stats-compare-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f7f8fc 0%, #eef2f8 100%);
  border: 1px solid rgba(23, 32, 51, 0.05);
}

.stats-compare-col--accent {
  background: linear-gradient(160deg, rgba(91, 108, 255, 0.16) 0%, rgba(34, 193, 195, 0.18) 100%);
  border-color: rgba(91, 108, 255, 0.25);
}

.stats-compare-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #677590;
}

.stats-compare-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #172033;
}

.stats-compare-meta {
  font-size: 13px;
  color: #5f6d8b;
}

.stats-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 420px;
}

.stats-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(91, 108, 255, 0.1);
  border: 1px solid rgba(91, 108, 255, 0.2);
  color: #2733a8;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.stats-muted {
  color: #8c97b1;
  font-size: 13px;
}

.stats-dates {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}

.btn-small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

@media (max-width: 720px) {
  .stats-section {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .stats-funnel-value,
  .stats-card-value {
    font-size: 22px;
  }

  .stats-chart-wrap {
    height: 260px;
  }
}
