:root {
  --bg: #f3f7f4;
  --bg-deep: #e7f0ea;
  --ink: #10231c;
  --muted: #5d7268;
  --line: rgba(16, 35, 28, 0.1);
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #ffffff;
  --teal: #0f6b5c;
  --mint: #2fbf8a;
  --mint-2: #1aa97a;
  --sand: #d8efe4;
  --danger: #c23b3b;
  --ok: #1b8a5a;
  --warn: #b7811a;
  --shadow: 0 24px 60px rgba(16, 45, 34, 0.12);
  --radius: 22px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Syne", "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  height: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #c9f0dd 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #b7e4f0 0%, transparent 50%),
    linear-gradient(180deg, #f7fbf8 0%, var(--bg) 40%, #eef5f0 100%);
  min-height: 100%;
  min-height: 100dvh;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}
body.is-cabinet {
  background:
    radial-gradient(900px 420px at 0% 0%, #ccefe0 0%, transparent 50%),
    linear-gradient(180deg, #f5faf7, #eef4f0);
}
body > main {
  flex: 1 0 auto;
  width: 100%;
}
body > .flashes {
  flex: 0 0 auto;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16,35,28,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,35,28,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 20%, black 20%, transparent 75%);
  z-index: -1;
}

.container { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(243, 247, 244, 0.78);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.35rem;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, #163d34, #0f6b5c 55%, #2fbf8a);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 10px 24px rgba(15,107,92,.28);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 9px 8px 10px 9px;
  border: 2.5px solid #dff8ec;
  border-left: 0;
  border-bottom: 0;
  transform: rotate(45deg);
  border-radius: 2px;
}
.brand-text span { color: var(--teal); }
.nav { display: flex; gap: 1.1rem; margin-left: auto; }
.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: .95rem;
  position: relative;
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--mint));
  border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: .65rem; }
.balance-chip {
  background: #dff5ea;
  color: var(--teal);
  font-weight: 700;
  padding: .45rem .8rem;
  border-radius: 999px;
  font-size: .9rem;
}
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--ink); border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 0;
  border-radius: 14px;
  padding: .8rem 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #0f6b5c, #1aa97a 70%, #35c992);
  color: #fff;
  box-shadow: 0 12px 28px rgba(15,107,92,.28);
}
.btn-primary:hover { box-shadow: 0 16px 34px rgba(15,107,92,.34); }
.btn-ghost {
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-danger { background: #f8e4e4; color: var(--danger); }
.btn-sm { padding: .5rem .8rem; border-radius: 11px; font-size: .88rem; }
.btn-lg { padding: .95rem 1.2rem; border-radius: 16px; font-size: 1rem; }
.btn-xl { padding: 1.05rem 1.45rem; border-radius: 18px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.home-page { width: 100%; }
.hero {
  padding: 4.5rem 0 3rem;
  min-height: calc(100vh - 76px);
}
.hero-xl {
  padding: 5.5rem 0 4rem;
  position: relative;
}
.hero-xl::before {
  content: "";
  position: absolute;
  inset: 8% 5% auto auto;
  width: min(480px, 50vw);
  height: min(480px, 50vw);
  background: radial-gradient(circle, rgba(47,191,138,.22), transparent 68%);
  pointer-events: none;
  filter: blur(10px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--teal);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .82rem;
  margin-bottom: 1.15rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(47,191,138,.12);
  border: 1px solid rgba(15,107,92,.12);
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 6.2vw, 5.4rem);
  line-height: .98;
  letter-spacing: -0.045em;
  margin: 0 0 1.25rem;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #0f6b5c, #1dbf84 55%, #47d6a3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.9rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2rem; }
.hero-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--muted);
  font-weight: 600;
  font-size: .92rem;
}
.hero-meta strong { color: var(--ink); display: block; font-size: 1.15rem; }
.hero-meta-xl {
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-meta-xl > div {
  min-width: 140px;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(16,45,34,.05);
}
.hero-meta-xl strong {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -.03em;
  margin-bottom: .15rem;
}
.hero-meta-xl span { font-size: .9rem; color: var(--muted); }

.hero-visual {
  position: relative;
  min-height: 540px;
  border-radius: 40px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(15,107,92,.94), rgba(12,40,35,.9) 55%, rgba(18,58,48,.92)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Ccircle cx='10' cy='10' r='1.4' fill='rgba(255,255,255,.18)'/%3E%3C/svg%3E");
  box-shadow: 0 30px 80px rgba(15,107,92,.28);
  animation: floaty 7s ease-in-out infinite;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 30%, rgba(47,191,138,.55), transparent 35%),
    radial-gradient(circle at 70% 70%, rgba(120,210,255,.28), transparent 40%);
  animation: pulse 5.5s ease-in-out infinite;
}
.hero-glow-ball {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  top: 28%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(158,240,200,.55), transparent 70%);
  filter: blur(4px);
}
.hero-panel {
  position: absolute;
  inset: auto 1.5rem 1.5rem 1.5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 1.4rem 1.45rem;
  color: #f4fff9;
}
.hero-panel-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: .55rem;
}
.hero-panel h3 {
  margin: 0 0 .45rem;
  font-family: var(--display);
  font-size: 1.65rem;
  letter-spacing: -.03em;
}
.hero-panel p { margin: 0; opacity: .88; font-size: 1.02rem; line-height: 1.45; }
.orbit {
  position: absolute;
  width: 240px; height: 240px;
  border: 1px dashed rgba(255,255,255,.25);
  border-radius: 50%;
  top: 16%; left: 50%;
  transform: translateX(-50%);
  animation: spin 18s linear infinite;
}
.orbit-2 {
  width: 340px;
  height: 340px;
  top: 8%;
  animation-duration: 28s;
  animation-direction: reverse;
  opacity: .55;
}
.orbit span {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #9ef0c8;
  top: -7px; left: calc(50% - 7px);
  box-shadow: 0 0 0 8px rgba(158,240,200,.15);
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse {
  0%, 100% { opacity: .85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: rise .7s ease both; }
.reveal-delay-1 { animation-delay: .12s; }
.reveal-delay-2 { animation-delay: .24s; }

.section { padding: 5.5rem 0; }
.section-benefits { padding: 3rem 0 5.5rem; }
.section-tariffs { padding: 5.5rem 0 6rem; }
.section-devices { padding: 2rem 0 5.5rem; }
.section-howto { padding: 2rem 0 5.5rem; }
.section-faq { padding: 2rem 0 5rem; }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.benefit-card {
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.7rem 1.4rem;
  min-height: 230px;
  box-shadow: 0 14px 36px rgba(16,45,34,.05);
}
.benefit-ico {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--teal);
  margin-bottom: 1rem;
  letter-spacing: -.03em;
}
.benefit-card h3 {
  margin: 0 0 .55rem;
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: -.02em;
}
.benefit-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.devices-band {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 2rem;
  align-items: center;
  padding: 2.8rem;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(15,107,92,.96), rgba(26,169,122,.88)),
    var(--teal);
  color: #f4fff9;
  box-shadow: var(--shadow);
  min-height: 280px;
}
.devices-band h2 {
  margin: 0 0 .8rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -.03em;
}
.devices-band > div > p {
  margin: 0 0 1.2rem;
  opacity: .9;
  font-size: 1.08rem;
  max-width: 34rem;
  line-height: 1.5;
}
.devices-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .55rem;
  font-weight: 700;
}
.devices-list li::before {
  content: "✓ ";
  color: #9ef0c8;
}
.devices-stat {
  text-align: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 28px;
  padding: 2rem 1.5rem;
}
.devices-stat strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(4rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: -.05em;
}
.devices-stat span {
  display: block;
  margin-top: .6rem;
  opacity: .85;
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: .85rem;
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.15rem 1.35rem;
  box-shadow: 0 10px 28px rgba(16,45,34,.04);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 1.05rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  margin: .75rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.section-head-center {
  justify-content: center;
  text-align: center;
  margin-bottom: 2.4rem;
}
.section-head-center p { margin-left: auto; margin-right: auto; }
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  letter-spacing: -0.035em;
  margin: 0;
}
.section-head p { margin: .55rem 0 0; color: var(--muted); max-width: 36rem; font-size: 1.05rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

.feature, .card, .panel, .stat, .tariff, .proxy-card, .auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(16,45,34,.05);
}
.feature, .panel, .stat, .proxy-card, .auth-card, .card { padding: 1.35rem; }
.feature h3, .panel h3 { margin: .2rem 0 .45rem; font-family: var(--display); letter-spacing: -.02em; }
.feature p, .muted { color: var(--muted); }
.feature-ico {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #dff7eb, #c8efe0);
  color: var(--teal);
  font-weight: 800;
  margin-bottom: .7rem;
}

.tariffs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .85rem; }
.tariffs-xl {
  gap: 1rem;
  align-items: stretch;
}
.tariff {
  padding: 1.2rem;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  position: relative;
  overflow: hidden;
}
.tariff-xl {
  padding: 2rem 1.55rem 1.55rem;
  border-radius: 28px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(16,45,34,.07);
}
.tariff-xl .btn { margin-top: auto; }
.tariff:hover { transform: translateY(-6px); border-color: rgba(15,107,92,.35); box-shadow: 0 22px 50px rgba(16,45,34,.12); }
.tariff.popular {
  background: linear-gradient(180deg, #123d34, #0f6b5c 70%, #14856f);
  color: #f3fffa;
  border-color: transparent;
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 28px 60px rgba(15,107,92,.28);
}
.tariff.popular:hover { transform: translateY(-12px) scale(1.03); }
.tariff.popular .muted, .tariff.popular .price-note { color: rgba(243,255,250,.72); }
.tariff .badge {
  position: absolute;
  top: 14px; right: 14px;
  background: #9ef0c8;
  color: #0d3d32;
  font-size: .78rem;
  font-weight: 800;
  padding: .35rem .65rem;
  border-radius: 999px;
}
.tariff h3 { margin: 0 0 .6rem; font-size: 1.05rem; }
.tariff-xl h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}
.tariff .price {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: .2rem;
}
.tariff-xl .price {
  font-size: clamp(2.1rem, 2.5vw, 2.7rem);
  margin: .2rem 0 .35rem;
}
.price-note { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.tariff-xl .price-note { font-size: .92rem; margin-bottom: 1.25rem; }
.discount {
  display: inline-block;
  background: rgba(47,191,138,.16);
  color: var(--teal);
  font-weight: 700;
  font-size: .78rem;
  padding: .2rem .5rem;
  border-radius: 999px;
  margin-bottom: .8rem;
}
.discount-empty {
  background: rgba(16,35,28,.06);
  color: var(--muted);
}
.tariff.popular .discount { background: rgba(255,255,255,.14); color: #dff8ec; }

.steps { counter-reset: step; display: grid; gap: .9rem; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  background: rgba(255,255,255,.65);
  border: 1px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.howto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.howto-card {
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 16px 40px rgba(16,45,34,.06);
  min-height: 210px;
  transition: transform .2s ease;
}
.howto-card:hover { transform: translateY(-4px); }
.howto-num {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--teal);
  margin-bottom: .9rem;
}
.howto-card h3 {
  margin: 0 0 .55rem;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -.02em;
}
.howto-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.45;
}

.cta-band {
  margin: 1rem 0 3rem;
  padding: 2.2rem;
  border-radius: 30px;
  background:
    linear-gradient(120deg, rgba(15,107,92,.95), rgba(26,169,122,.9)),
    var(--teal);
  color: #f4fff9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  box-shadow: var(--shadow);
}
.cta-band-xl {
  margin: 0 0 3.5rem;
  padding: 2.6rem 2.4rem;
  border-radius: 34px;
}
.cta-band h2 { margin: 0 0 .4rem; font-family: var(--display); letter-spacing: -.03em; }
.cta-band-xl h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-band p { margin: 0; opacity: .85; }
.cta-band-xl p { font-size: 1.05rem; }
.cta-band .btn-primary {
  background: #fff;
  color: #0f6b5c;
  box-shadow: none;
}

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: rgba(247, 251, 248, 0.92);
  backdrop-filter: blur(10px);
  height: 56px;
}
.footer-bar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
}
.footer-brand {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  font-size: 1rem;
}
.footer-brand span { color: var(--teal); }
.footer-copy { white-space: nowrap; }
.footer-mail {
  color: var(--teal);
  font-weight: 700;
  white-space: nowrap;
}
.small { font-size: .88rem; }

.flashes { margin-top: 1rem; display: grid; gap: .55rem; }
.flash {
  padding: .85rem 1rem;
  border-radius: 14px;
  font-weight: 600;
}
.flash-success { background: #dff7ea; color: var(--ok); }
.flash-error { background: #fde8e8; color: var(--danger); }
.flash-info { background: #e7f3ff; color: #1d5f97; }

.auth-wrap {
  display: grid;
  place-items: center;
  padding: 2rem 0;
  flex: 1 0 auto;
}
.auth-card { width: min(460px, 100%); }
.auth-card h1 {
  margin: 0 0 .4rem;
  font-family: var(--display);
  letter-spacing: -.03em;
}
.form-row { display: grid; gap: .4rem; margin-bottom: .95rem; }
.form-row label { font-weight: 700; font-size: .9rem; }
.form-row input, .form-row select, .form-row textarea,
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: .85rem 1rem;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-row input:focus, .field input:focus, .field select:focus {
  border-color: rgba(15,107,92,.45);
  box-shadow: 0 0 0 4px rgba(47,191,138,.15);
}
.form-hint { font-size: .85rem; color: var(--muted); }
.auth-switch { margin-top: 1rem; color: var(--muted); }
.auth-switch a { color: var(--teal); font-weight: 700; }

.cabinet-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 1.2rem;
  padding: 1.4rem 0 1.5rem;
}
.side {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 1rem;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.side a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .75rem .85rem;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: .25rem;
}
.side a:hover, .side a.active {
  background: #e7f6ef;
  color: var(--teal);
}
.side .logout { margin-top: .6rem; color: var(--danger); }

.page-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.page-title h1 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: -.03em;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; margin-bottom: 1.1rem; }
.stat .label { color: var(--muted); font-weight: 600; font-size: .88rem; }
.stat .value {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-top: .25rem;
}

.table-wrap { overflow: auto; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: .94rem; }
th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; background: #f7fbf8; }
tr:last-child td { border-bottom: 0; }

.badge-soft {
  display: inline-flex;
  align-items: center;
  padding: .22rem .55rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
}
.badge-ok { background: #dff7ea; color: var(--ok); }
.badge-bad { background: #fde8e8; color: var(--danger); }
.badge-warn { background: #fff3d8; color: var(--warn); }
.badge-info { background: #e7f3ff; color: #1d5f97; }

.buy-layout { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.buy-form-single { display: grid; gap: 1rem; }

.pay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.15rem 1.35rem;
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(16,45,34,.06);
  position: sticky;
  bottom: 12px;
  z-index: 20;
}
.pay-bar-total {
  font-size: 1.05rem;
  font-weight: 700;
}
.pay-bar-total strong {
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: -.03em;
  color: var(--teal);
}
.pay-bar-meta { font-size: .9rem; margin-top: .2rem; }
.pay-bar-actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.pay-bar-actions .btn { min-width: 140px; }
.countries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .65rem;
  max-height: 380px;
  overflow: auto;
  padding-right: .2rem;
}
.country-opt {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: .85rem .9rem;
  cursor: pointer;
  text-align: left;
  transition: .15s ease;
  display: grid;
  gap: .35rem;
}
.country-opt:hover, .country-opt.active {
  border-color: rgba(15,107,92,.4);
  background: #eefaf4;
  box-shadow: 0 0 0 3px rgba(47,191,138,.12);
}
.country-opt.is-soldout {
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(.3);
}
.country-opt strong { display: block; font-size: .95rem; }
.country-opt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.country-opt-code {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--muted);
  background: #f0f5f2;
  padding: .15rem .4rem;
  border-radius: 999px;
}
.country-stock {
  color: var(--teal);
  font-size: .82rem;
  font-weight: 700;
}
.country-stock.zero { color: var(--danger); }
.flag-img {
  display: inline-block;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
  object-fit: cover;
  vertical-align: middle;
}
.summary-country {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.period-grid { display: grid; gap: .5rem; }
.period-opt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: .8rem 1rem;
  cursor: pointer;
}
.period-opt.active {
  border-color: rgba(15,107,92,.45);
  background: #eefaf4;
}
.summary-box {
  position: sticky;
  top: 96px;
  background: linear-gradient(180deg, #123d34, #0f6b5c);
  color: #f4fff9;
  border-radius: 24px;
  padding: 1.35rem;
}
.summary-box .muted { color: rgba(244,255,249,.72); }
.summary-row {
  display: flex;
  justify-content: space-between;
  margin: .55rem 0;
  font-weight: 600;
}
.summary-total {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 800;
  margin: .8rem 0 1rem;
}

.proxy-list { display: grid; gap: .8rem; }
.proxy-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}
.proxy-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: .45rem 0; }
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86rem;
  background: #f0f7f3;
  padding: .45rem .65rem;
  border-radius: 10px;
  word-break: break-all;
}
.proxy-actions { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: end; }

.admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.inline-form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: end; }
.inline-form .field { flex: 1; min-width: 140px; }
.inline-form label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: .3rem; }

.empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
}

.amount-chips { display:flex; gap:.5rem; flex-wrap:wrap; margin-bottom:1rem; }

@media (max-width: 980px) {
  .container { width: min(1160px, calc(100% - 1.25rem)); }
  .hero, .hero-grid, .buy-layout, .cabinet-shell, .admin-grid, .stats, .tariffs, .howto-grid, .benefits-grid, .devices-band, .grid-3, .grid-2, .cta-band {
    grid-template-columns: 1fr;
  }
  .pay-bar {
    flex-direction: column;
    align-items: stretch;
    bottom: 8px;
  }
  .pay-bar-actions { width: 100%; }
  .pay-bar-actions .btn { flex: 1; min-width: 0; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .tariff.popular { transform: none; }
  .tariff.popular:hover { transform: translateY(-4px); }
  .site-footer, .footer-bar { height: 52px; }
  .footer-bar { font-size: .8rem; gap: .6rem; }
  .footer-copy { overflow: hidden; text-overflow: ellipsis; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .tariffs { grid-template-columns: repeat(2, 1fr); }
  .header-inner { min-height: 64px; gap: .7rem; }
  .brand { font-size: 1.15rem; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(247,251,248,.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.2rem 1.2rem;
    z-index: 50;
  }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header-actions .btn-ghost { display: none; }
  .header-actions .btn-primary { padding: .65rem .9rem; font-size: .9rem; }
  .side {
    position: static;
    display: flex;
    gap: .4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: .65rem;
    border-radius: 18px;
  }
  .side a {
    white-space: nowrap;
    margin: 0;
    padding: .65rem .85rem;
    font-size: .88rem;
  }
  .side .logout { margin-top: 0; }
  .proxy-card { grid-template-columns: 1fr; }
  .proxy-actions { justify-content: stretch; }
  .proxy-actions .btn { flex: 1; }
  .hero, .hero-xl { min-height: auto; padding: 1.8rem 0 2.2rem; }
  .hero-grid { gap: 1.4rem; }
  .hero h1 { font-size: clamp(2.35rem, 10vw, 3.2rem); }
  .hero-lead { font-size: 1.05rem; }
  .hero-meta, .hero-meta-xl { flex-wrap: wrap; gap: .75rem; }
  .hero-meta-xl > div { min-width: calc(50% - .5rem); flex: 1; }
  .hero-visual { min-height: 300px; border-radius: 28px; }
  .howto-card { min-height: 0; }
  .tariff-xl { min-height: 0; }
  .section, .section-tariffs, .section-benefits, .section-devices, .section-howto, .section-faq { padding: 2.8rem 0; }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit-card, .devices-band { min-height: 0; }
  .devices-band { padding: 1.6rem; }
  .section { padding: 2.4rem 0; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 1.4rem; border-radius: 22px; }
  .summary-box { position: static; }
  .countries { max-height: none; grid-template-columns: repeat(2, 1fr); }
  .page-title { flex-direction: column; align-items: flex-start; }
  .inline-form { flex-direction: column; align-items: stretch; }
  .table-wrap { border-radius: 14px; }
  .auth-wrap { padding: 1.2rem 0 2rem; min-height: 0; }
}
@media (max-width: 560px) {
  .tariffs, .stats { grid-template-columns: 1fr; }
  .header-actions .balance-chip { display: none; }
  .countries { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .country-opt { padding: .7rem; }
  .btn { width: auto; }
  .hero-cta .btn { flex: 1; }
  .hero-cta { width: 100%; }
  th, td { padding: .75rem .7rem; font-size: .86rem; }
}
