:root {
  --bg: #030712;
  --bg-alt: #050b18;
  --bg-soft: #0b1220;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.12);
  --accent-strong: #16a34a;
  --accent-text: #bbf7d0;
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.3);
  --error: #f97373;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.65);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #052e16 0, #020617 45%, #000 100%);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Уже показывали прелоадер в этой вкладке — не мигать при переходах по сайту */
html.preloader-seen .preloader {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

.preloader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #052e16 0, #020617 45%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__inner {
  text-align: center;
  padding: 20px 24px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background-color: rgba(15, 23, 42, 0.96);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.preloader__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.preloader__logo-img {
  width: 88px;
  height: 88px;
  max-width: min(88px, 28vw);
  max-height: min(88px, 28vw);
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 32px rgba(34, 197, 94, 0.45);
}

.preloader__bar {
  width: 180px;
  height: 4px;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 1);
  border: 1px solid rgba(148, 163, 184, 0.6);
  overflow: hidden;
  margin: 0 auto 10px;
}

.preloader__bar-fill {
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, #4ade80, #22c55e, #16a34a);
  border-radius: inherit;
  animation: preloader-slide 1.2s ease-in-out infinite;
}

.preloader__text {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

@keyframes preloader-slide {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(40%);
  }
  100% {
    transform: translateX(120%);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* Header */

/* Размытие на ::before, не на самом .header — иначе fixed-панель nav
   привязывается к шапке (backdrop-filter у предка) и меню ломается на мобильных */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  isolation: isolate;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.6),
    transparent
  );
}

.header__inner {
  position: relative;
  z-index: 206;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

a.logo,
.logo--link {
  text-decoration: none;
  color: inherit;
}

.logo__img {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.35);
}

.logo__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.logo__title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo__subtitle {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.25;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.nav__link {
  padding: 6px 8px;
  border-radius: 999px;
  color: var(--text-muted);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav__link:hover {
  color: var(--text);
  background-color: rgba(15, 23, 42, 0.8);
}

.nav__link--accent {
  color: var(--accent-text);
}

.nav__cta--mobile {
  display: none;
}

/* Кнопка «бургер» (только мобильная) */
.nav-toggle {
  display: none;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.85);
  cursor: pointer;
  z-index: 220;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(74, 222, 128, 0.45);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent-text);
  transition: transform 0.25s ease, opacity 0.2s ease, margin 0.25s ease;
}

.nav-toggle--open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle--open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle--open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Затемнение при открытом меню */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 205;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  pointer-events: none;
}

.nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.menu-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.header__cta {
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #022c22;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.45);
  white-space: nowrap;
}

.header__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 35px rgba(34, 197, 94, 0.6);
}

a.header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #022c22;
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.45);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.7);
}

.btn--outline {
  border-color: rgba(148, 163, 184, 0.4);
  background-color: rgba(15, 23, 42, 0.85);
}

.btn--outline:hover {
  border-color: var(--accent);
  background-color: rgba(15, 23, 42, 1);
}

.btn--ghost {
  background-color: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.3);
  color: var(--text-muted);
}

.btn--ghost:hover {
  background-color: rgba(15, 23, 42, 1);
  color: var(--accent-text);
  border-color: var(--accent);
}

.btn--full {
  width: 100%;
}

/* Hero */

.hero {
  padding: 72px 0 48px;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

.hero__title {
  font-size: clamp(32px, 4vw, 40px);
  line-height: 1.1;
  margin: 0 0 14px;
}

.hero__title span {
  color: var(--accent);
}

.hero__subtitle {
  margin: 0 0 20px;
  color: var(--text-muted);
  max-width: 420px;
  font-size: 15px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.stat {
  padding: 10px 12px;
  border-radius: 18px;
  background: radial-gradient(circle at top, rgba(34, 197, 94, 0.3), #020617);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.stat__value {
  font-weight: 600;
  font-size: 17px;
}

.stat__label {
  font-size: 11px;
  color: var(--text-muted);
}

.hero__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 11px;
  color: var(--accent-text);
  background: rgba(15, 23, 42, 0.9);
}

.hero__card {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  width: 100%;
  max-width: 340px;
  padding: 18px 18px 16px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, #16a34a 0, #020617 40%);
  border: 1px solid rgba(74, 222, 128, 0.6);
  box-shadow: var(--shadow-soft);
}

.hero-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hero-card__title {
  font-size: 14px;
  font-weight: 600;
}

.hero-card__badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  font-size: 11px;
  color: var(--accent-text);
}

.hero-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--accent-text);
}

.hero-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
}

.hero-card__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background-color: var(--accent-text);
  margin-top: 4px;
}

/* Sections */

.section {
  padding: 40px 0;
}

.section--alt {
  background: radial-gradient(circle at top, rgba(22, 163, 74, 0.18), #020617);
}

.section__header {
  text-align: center;
  margin-bottom: 26px;
}

.section__header h2 {
  font-size: 24px;
  margin: 0 0 8px;
}

.section__header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* Demo block */

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: flex-start;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.step {
  padding: 12px 14px;
  border-radius: 14px;
  background-color: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.step h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.step p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.demo-card {
  padding: 16px 16px 14px;
  border-radius: var(--radius-lg);
  background-color: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.7);
}

.demo-card__circle {
  width: 140px;
  height: 140px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: radial-gradient(circle at top, #22c55e, #16a34a, #052e16);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-size: 13px;
  font-weight: 500;
  color: #052e16;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(34, 197, 94, 0.8);
  position: relative;
  overflow: hidden;
}

.demo-card__circle::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  border: 1px dashed rgba(22, 101, 52, 0.7);
}

.demo-card__circle.is-holding {
  transform: scale(0.98);
  box-shadow: 0 0 40px rgba(74, 222, 128, 1);
}

.demo-card__hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.demo-key {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background-color: var(--bg-soft);
  border: 1px solid rgba(148, 163, 184, 0.6);
  margin-bottom: 10px;
}

.demo-key__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.demo-key__label {
  font-size: 12px;
}

.demo-key__tag {
  font-size: 11px;
  color: var(--accent-text);
}

.demo-key__value {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  background-color: #020617;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-key__copy {
  font-size: 12px;
  padding-inline: 10px;
}

.demo-card__details {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.demo-card__details li {
  margin-bottom: 4px;
}

.demo-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.link {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.demo-card__timer {
  color: var(--text-muted);
}

/* Tariffs */

.tariffs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tariff-card {
  padding: 16px 14px;
  border-radius: 18px;
  background-color: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tariff-card--featured {
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.4);
  position: relative;
}

.tariff-card__badge {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background-color: var(--accent-soft);
  color: var(--accent-text);
  font-size: 11px;
}

.tariff-card h3 {
  margin: 0;
  font-size: 16px;
}

.tariff-card__price {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 600;
}

.tariff-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.tariff-card__list li {
  margin-bottom: 4px;
}

/* Partners */

.partners-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: flex-start;
}

.partners-info h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 18px;
}

.partners-info p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  font-size: 13px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.checklist li::before {
  content: "✓";
  color: var(--accent);
  font-size: 13px;
}

.partners-calculators {
  display: grid;
  gap: 14px;
}

.partner-card {
  padding: 14px 14px 12px;
  border-radius: 16px;
  background-color: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.partner-card h4 {
  margin: 0 0 4px;
  font-size: 15px;
}

.partner-card__subtitle {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  margin-bottom: 6px;
}

.partner-result {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed rgba(148, 163, 184, 0.5);
}

.partner-result__row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 2px;
}

.partner-result__note {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--text-muted);
}

/* Benefits */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}

.benefit-card {
  padding: 14px 14px 12px;
  border-radius: 16px;
  background-color: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.benefit-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.benefit-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Telegram MTProxy page */

.page-proxy .proxy-main {
  padding-top: 8px;
  padding-bottom: 32px;
}

.proxy-hero {
  padding-bottom: 4px;
}

.proxy-breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.proxy-breadcrumb a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.proxy-breadcrumb span {
  margin: 0 6px;
  opacity: 0.6;
}

.proxy-title {
  font-size: clamp(26px, 4vw, 34px);
  margin: 0 0 14px;
  line-height: 1.15;
}

.proxy-lead {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.6;
}

.proxy-how {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
  max-width: 560px;
}

@media (min-width: 640px) {
  .proxy-how {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

.proxy-how__step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.proxy-how__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.35), rgba(22, 163, 74, 0.2));
  color: var(--accent-text);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.proxy-how__text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  padding-top: 2px;
}

.proxy-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.55;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
  border-left: 3px solid var(--accent);
}

.proxy-section {
  padding-top: 28px;
}

.proxy-section-head {
  margin-bottom: 20px;
  text-align: center;
}

.proxy-section-title {
  font-size: clamp(20px, 3vw, 22px);
  margin: 0 0 6px;
}

.proxy-section-sub {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.proxy-home-more {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.proxy-home-more:hover {
  color: #86efac;
}

.proxy-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .proxy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 1024px) {
  .proxy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 900px;
    margin: 0 auto;
  }
}

.proxy-card {
  padding: 20px 18px 18px;
  border-radius: 20px;
  background: linear-gradient(
    165deg,
    rgba(15, 23, 42, 0.98) 0%,
    rgba(15, 23, 42, 0.92) 100%
  );
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.proxy-card:hover {
  border-color: rgba(74, 222, 128, 0.45);
  box-shadow: 0 16px 48px rgba(34, 197, 94, 0.12);
}

.proxy-card__name {
  text-align: center;
  padding: 8px 0 4px;
}

.proxy-card__num {
  display: block;
  font-size: clamp(2.75rem, 10vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #86efac, #22c55e, #16a34a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.proxy-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Главная кнопка — максимальная зона нажатия */
.proxy-tg {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #052e16;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(34, 197, 94, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.proxy-tg:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(34, 197, 94, 0.55);
  color: #022c22;
}

.proxy-tg:active {
  transform: translateY(0);
}

.proxy-tg:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
}

.proxy-tg__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #052e16;
}

.proxy-tg__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.proxy-tg__title {
  font-size: clamp(17px, 4.5vw, 19px);
  line-height: 1.15;
  font-weight: 700;
}

.proxy-tg__hint {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.88;
}

.proxy-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.proxy-copy:hover {
  color: var(--accent-text);
  border-color: rgba(74, 222, 128, 0.5);
  background: rgba(15, 23, 42, 1);
}

.proxy-copy:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.proxy-copy__icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.proxy-copy--done {
  color: var(--accent-text);
  border-color: rgba(74, 222, 128, 0.6);
}

.proxy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(74, 222, 128, 0.5);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  max-width: calc(100vw - 32px);
  text-align: center;
}

.proxy-toast--visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Footer */

.footer {
  padding: 18px 0 24px;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: radial-gradient(circle at top, #052e16 0, #020617 45%, #000 100%);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer__brand {
  font-weight: 600;
  color: var(--accent-text);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer__links a {
  color: var(--text-muted);
}

.footer__links a:hover {
  color: var(--accent-text);
}

/* Responsive */

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  }

  .hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tariffs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  /* Шапка и контент не прилипают к краям экрана + учёт вырезов iPhone */
  .container {
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
  }

  .header__inner {
    align-items: center;
    flex-wrap: nowrap;
    position: relative;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .header__cta {
    display: none;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 88vw);
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: calc(56px + env(safe-area-inset-top, 0px)) 0
      calc(20px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.99) 0%,
      rgba(2, 6, 23, 0.98) 100%
    );
    border-left: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: -12px 0 48px rgba(0, 0, 0, 0.45);
    z-index: 210;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav.nav--open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    touch-action: pan-y;
  }

  .nav__link {
    padding: 16px 22px;
    border-radius: 0;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    color: var(--text);
  }

  .nav__link:hover {
    background: rgba(34, 197, 94, 0.08);
    color: var(--accent-text);
  }

  .nav__link--accent {
    color: var(--accent-text);
  }

  .nav__cta--mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 18px 8px;
    padding: 15px 20px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #022c22;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(34, 197, 94, 0.35);
  }

  .nav__cta--mobile:active {
    transform: scale(0.98);
  }

  .hero {
    padding-top: 52px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__card {
    order: -1;
    justify-content: flex-start;
  }

  .hero-card {
    max-width: 100%;
  }

  .demo-grid,
  .partners-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tariffs {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 380px) {
  .logo .logo__subtitle {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding-block: 32px;
  }
}

