:root {
  --bg: #F1F4FB;
  --bg-soft: #E8EBF5;
  --card: rgba(255, 255, 255, 0.82);
  --card-solid: #FFFFFF;
  --border: rgba(15, 23, 42, 0.09);
  --text: #0F172A;
  --muted: #64748B;
  --accent: #15803D;
  --accent-2: #166534;
  --cyan: #0284C7;
  --green: #16A34A;
  --danger: #DC2626;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.10);
  --radius: 8px;
  --container: 1180px;
  --header: 68px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(21, 128, 61, 0.07), transparent 36%),
    linear-gradient(225deg, rgba(2, 132, 199, 0.05), transparent 34%),
    var(--bg);
  color: var(--text);
  font-family: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

code {
  padding: 2px 6px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.045);
  color: var(--text);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: .92em;
}

button {
  cursor: pointer;
}

img,
svg {
  max-width: 100%;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 82%);
  pointer-events: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(241, 244, 251, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: none;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: var(--header);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(2, 132, 199, 0.16), rgba(22, 101, 52, 0.20));
  color: var(--cyan);
  font-size: 14px;
  box-shadow: 0 0 26px rgba(21, 128, 61, 0.14);
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-name {
  font-size: 17px;
}

.brand-badge {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav {
  justify-self: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  transition: color .2s ease, background .2s ease;
}

.nav-list a:hover,
.nav-list a.active,
.footer-links a:hover,
.text-link:hover {
  color: var(--text);
}

.nav-list a.active,
.nav-list a:hover {
  background: rgba(15, 23, 42, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.1;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 0 30px rgba(21, 128, 61, 0.22), 0 8px 28px rgba(15, 23, 42, 0.14);
}

.btn-primary:hover {
  box-shadow: 0 0 42px rgba(21, 128, 61, 0.34), 0 12px 36px rgba(15, 23, 42, 0.18);
}

.btn-secondary {
  border-color: var(--border);
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
}

.btn-soft {
  border-color: rgba(21, 128, 61, 0.30);
  background: rgba(21, 128, 61, 0.08);
  color: var(--accent);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: .58;
  transform: none;
  box-shadow: none;
}

.hero {
  padding: 84px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .78fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.08);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 760px;
  margin: 20px 0 18px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: .98;
  letter-spacing: 0;
}

.lead {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.connection-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.78)),
    var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: float-card 7s ease-in-out infinite;
}

.connection-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(2, 132, 199, 0.10), transparent 42%, rgba(21, 128, 61, 0.12));
  opacity: .68;
  pointer-events: none;
}

.connection-card > * {
  position: relative;
}

.terminal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
}

.terminal-title {
  color: var(--muted);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 13px;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: .75;
}

.terminal-body {
  padding: 24px 22px 8px;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 14px;
}

.info-row {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.info-row span:first-child {
  color: var(--muted);
}

.status {
  color: var(--green);
}

.connection-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px;
  padding: 16px;
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: 8px;
  background: rgba(22, 163, 74, 0.07);
}

.connection-note strong {
  display: block;
}

.connection-note span {
  color: var(--muted);
  font-size: 13px;
}

.mini-benefits {
  padding: 20px 0 54px;
}

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

.mini-item,
.card,
.price-card,
.service-card,
.checkout-card,
.document-box,
.instruction-card,
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(16px);
}

.mini-item {
  padding: 18px;
}

.mini-item strong {
  display: block;
  font-size: 18px;
}

.mini-item span,
.muted {
  color: var(--muted);
}

.section {
  padding: 72px 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-header h2,
.page-section h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: 22px;
  align-items: stretch;
}

.service-card,
.price-card,
.contact-card {
  padding: 28px;
}

.service-card h3,
.price-card h3,
.contact-card h3,
.instruction-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

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

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 20px;
}

.price-line strong {
  font-size: 32px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  padding: 24px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.card:hover,
.price-card:hover,
.service-card:hover,
.instruction-card:hover {
  transform: translateY(-4px);
  border-color: rgba(21, 128, 61, 0.35);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.card p,
.instruction-card p {
  margin: 0;
  color: var(--muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background:
    linear-gradient(180deg, rgba(21, 128, 61, 0.07), transparent 46%),
    var(--card);
}

.price-card .btn {
  margin-top: auto;
}

.price-card-featured {
  border-color: rgba(2, 132, 199, 0.30);
  box-shadow: 0 0 42px rgba(2, 132, 199, 0.08), 0 16px 52px rgba(15, 23, 42, 0.08);
}

.price {
  margin: 16px 0 4px;
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
}

.price small {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.terms-hint {
  margin-top: 18px;
  color: var(--muted);
  text-align: center;
}

.test-access-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid rgba(2, 132, 199, 0.20);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(2, 132, 199, 0.07), transparent 44%),
    rgba(15, 23, 42, 0.025);
}

.test-access-card h3 {
  margin: 14px 0 6px;
  font-size: 24px;
}

.test-access-card p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.text-link {
  color: var(--cyan);
  font-weight: 750;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.step {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.03);
}

.step-num {
  display: block;
  margin-bottom: 32px;
  color: var(--cyan);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
}

.step h3 {
  margin: 0 0 8px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

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

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 62px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-weight: 800;
}

.faq-question::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--cyan);
  font-size: 24px;
  line-height: 1;
}

.faq-item.is-open .faq-question::after {
  content: "−";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.contacts-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 18px;
}

.details-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.details-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  overflow-wrap: anywhere;
}

.details-row dt {
  color: var(--muted);
}

.details-row dd {
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 46px 0 26px;
  background: rgba(241, 244, 251, 0.88);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr .8fr .8fr 1fr;
  gap: 28px;
}

.footer-grid-legal {
  grid-template-columns: 1fr .72fr .9fr 1.28fr;
}

.footer-grid h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.footer-subtitle {
  margin-top: 18px !important;
}

.footer-grid p {
  margin: 0;
  color: var(--muted);
}

.footer-details {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-details p {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--muted);
}

.copyright {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  padding: 62px 0 34px;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 62px);
}

.page-section {
  padding: 38px 0 78px;
}

.legal-hero {
  max-width: 960px;
}

.legal-page {
  max-width: 960px;
}

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

.legal-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 26px;
  backdrop-filter: blur(16px);
}

.legal-card h2,
.legal-document h2 {
  margin-top: 0;
}

.legal-card h3 {
  margin: 24px 0 8px;
}

.legal-card p,
.legal-document p {
  color: var(--muted);
}

.legal-document-layout {
  max-width: none;
}

.instruction-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .58fr);
  gap: 32px;
  align-items: center;
}

.instruction-balance-card {
  animation: none;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .68fr);
  gap: 22px;
  align-items: start;
}

.checkout-card {
  padding: 28px;
  animation: fade-up .45s ease both;
}

.checkout-side-stack {
  display: grid;
  gap: 18px;
}

.checkout-extra-card p {
  color: var(--muted);
}

.checkout-links {
  margin-top: 16px;
}

.order-summary {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.summary-row span:first-child {
  color: var(--muted);
}

.form-field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-field label {
  font-weight: 800;
}

.form-field input {
  min-height: 50px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.90);
  color: var(--text);
  padding: 0 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.prepayment-box {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.03);
}

.prepayment-box h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.prepayment-box p {
  margin: 0 0 18px;
  color: var(--muted);
}

.form-field input:focus {
  border-color: rgba(2, 132, 199, 0.50);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.08);
}

.error-text {
  min-height: 0;
  max-height: 0;
  overflow: hidden;
  color: var(--danger);
  font-size: 14px;
  transition: max-height .2s ease, margin .2s ease;
}

.error-text:not(:empty) {
  max-height: 46px;
  margin-top: 2px;
}

.consent-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 14px;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.payment-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 22px;
  padding: 16px;
  border: 1px solid rgba(2, 132, 199, 0.22);
  border-radius: 8px;
  background: rgba(2, 132, 199, 0.06);
}

.payment-method span {
  color: var(--muted);
}

.checkout-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.tariff-hero {
  padding-bottom: 52px;
}

.tariff-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
  gap: 42px;
  align-items: center;
}

.tariff-formula-card {
  animation: none;
}

.tariff-builder-section {
  padding-top: 18px;
}

.tariff-builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .52fr);
  gap: 22px;
  align-items: start;
}

.tariff-builder-card,
.tariff-summary-card {
  display: grid;
  gap: 24px;
}

.tariff-builder-card h2,
.tariff-summary-card h2 {
  margin: -10px 0 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

.tariff-control {
  display: grid;
  gap: 12px;
}

.tariff-control-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.tariff-control-head label,
.tariff-control-head span:first-child {
  color: var(--text);
  font-weight: 850;
}

.tariff-control-head span:last-child {
  color: var(--muted);
  font-size: 14px;
}

.device-stepper {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 10px;
}

.device-stepper button,
.device-stepper input {
  min-height: 58px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.90);
  color: var(--text);
  text-align: center;
}

.device-stepper button {
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 850;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.device-stepper button:hover {
  border-color: rgba(21, 128, 61, 0.35);
  background: rgba(21, 128, 61, 0.08);
  transform: translateY(-1px);
}

.device-stepper input {
  padding: 0 14px;
  font-size: 28px;
  font-weight: 900;
  outline: none;
  -moz-appearance: textfield;
}

.device-stepper input::-webkit-outer-spin-button,
.device-stepper input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.period-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.period-options.period-options-compact {
  width: min(100%, 704px);
  margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.period-option {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  text-align: left;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.period-option:hover {
  border-color: rgba(21, 128, 61, 0.28);
  transform: translateY(-1px);
}

.period-option.is-selected {
  border-color: rgba(21, 128, 61, 0.42);
  background: rgba(21, 128, 61, 0.10);
  box-shadow: 0 12px 30px rgba(21, 128, 61, 0.10);
}

.period-option strong {
  font-size: 15px;
}

.period-option span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.tariff-hint-box {
  padding: 20px;
  border: 1px solid rgba(2, 132, 199, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(2, 132, 199, 0.07), transparent 52%),
    rgba(15, 23, 42, 0.025);
}

.tariff-hint-box h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.tariff-hint-box p {
  margin: 0;
  color: var(--muted);
}

.tariff-price-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 22px 0 6px;
}

.tariff-price-main span {
  font-size: clamp(48px, 8vw, 68px);
  font-weight: 950;
  line-height: .9;
}

.tariff-price-main small {
  color: var(--muted);
  font-size: 16px;
  font-weight: 750;
}

.tariff-checkout-link {
  width: 100%;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  width: min(100%, 420px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-solid);
  padding: 24px;
  box-shadow: var(--shadow);
}

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

.modal-dialog p {
  margin: 0 0 20px;
  color: var(--muted);
}

.status-main {
  min-height: calc(100vh - var(--header) - 120px);
  display: grid;
  align-items: center;
  padding: 72px 0;
}

.status-shell {
  display: grid;
  place-items: center;
}

.status-card {
  width: min(100%, 720px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(21, 128, 61, 0.08), transparent 42%),
    var(--card);
  box-shadow: var(--shadow);
  padding: clamp(26px, 5vw, 46px);
  text-align: center;
  backdrop-filter: blur(18px);
}

.status-card-success {
  border-color: rgba(22, 163, 74, 0.24);
  background:
    linear-gradient(135deg, rgba(22, 163, 74, 0.08), transparent 42%),
    var(--card);
}

.status-card-fail {
  border-color: rgba(220, 38, 38, 0.24);
  background:
    linear-gradient(135deg, rgba(220, 38, 38, 0.08), transparent 42%),
    var(--card);
}

.status-code {
  margin: 18px auto 10px;
  color: var(--cyan);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: clamp(54px, 12vw, 112px);
  font-weight: 900;
  line-height: 1;
}

.status-card h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
}

.status-card p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
}

.status-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.document-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.document-layout > * {
  min-width: 0;
}

.toc {
  position: sticky;
  top: 92px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.03);
  padding: 16px;
  overflow-wrap: anywhere;
}

.toc h2 {
  margin: 0 0 10px;
  font-size: 15px;
}

.toc a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 14px;
}

.toc a:hover {
  color: var(--text);
}

.document-box {
  width: 100%;
  max-width: 920px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.92);
  overflow-wrap: anywhere;
}

.document-box h2 {
  margin: 34px 0 12px;
  font-size: 24px;
}

.document-box h2:first-child {
  margin-top: 0;
}

.document-box p,
.document-box li {
  color: rgba(15, 23, 42, 0.72);
}

.document-box ul {
  padding-left: 20px;
}

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

.guide-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}

.instruction-section {
  padding: 58px 0 0;
}

.instruction-section-first {
  padding-top: 0;
}

.instruction-switcher {
  display: flex;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  gap: 8px;
  margin: 0 0 24px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.instruction-switch {
  min-width: 150px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.1;
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.instruction-switch:hover {
  border-color: rgba(21, 128, 61, 0.22);
  color: var(--text);
}

.instruction-switch.active {
  border-color: rgba(21, 128, 61, 0.26);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 26px rgba(21, 128, 61, 0.20);
}

.guide-panel {
  display: block;
}

.guide-panel[hidden] {
  display: none;
}

.guide-steps {
  display: grid;
  gap: 18px;
}

.guide-step {
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 18px;
  backdrop-filter: blur(16px);
  transition: transform .2s ease, border-color .2s ease;
}

.guide-steps-compact .guide-step:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
}

.guide-steps-compact .guide-step:nth-child(even) .screenshot-frame {
  order: 2;
}

.guide-step-no-media,
.guide-steps-compact .guide-step-no-media:nth-child(even) {
  grid-template-columns: 1fr;
}

.guide-step:hover {
  transform: translateY(-4px);
  border-color: rgba(21, 128, 61, 0.35);
}

.guide-step h3 {
  margin: 8px 0 8px;
  font-size: 24px;
}

.guide-step p {
  margin: 0;
  color: var(--muted);
}

.screenshot-frame {
  position: relative;
  overflow: hidden;
  width: min(100%, 280px);
  margin: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #F8FAFC;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

.screenshot-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
}

.screen-mask {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 6px;
  background: rgba(248, 250, 252, 0.96);
  color: var(--text);
  font-size: clamp(11px, 3vw, 14px);
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.screen-callout {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 2px solid rgba(2, 132, 199, 0.86);
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.12);
  color: var(--text);
  font-weight: 900;
  box-shadow: 0 0 0 6px rgba(2, 132, 199, 0.12), 0 0 28px rgba(2, 132, 199, 0.32);
  pointer-events: none;
}

.callout-plus {
  top: 6.8%;
  right: 5.5%;
  width: 36px;
  height: 36px;
  font-size: 26px;
}

.mask-profile-label {
  top: 12.5%;
  left: 18%;
  right: 8%;
  height: 8%;
}

.mask-manual-name {
  top: 34%;
  left: 4%;
  right: 4%;
  height: 7%;
}

.mask-manual-url {
  top: 43.5%;
  left: 4%;
  right: 4%;
  height: 7%;
}

.ios-guide-grid,
.guide-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.important-note {
  border: 1px solid rgba(2, 132, 199, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(2, 132, 199, 0.07), transparent 44%),
    rgba(15, 23, 42, 0.02);
  padding: 26px;
}

.important-note h2 {
  margin: 14px 0 10px;
  font-size: clamp(26px, 3vw, 38px);
}

.important-note p {
  max-width: 920px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.instruction-card {
  padding: 22px;
  transition: transform .2s ease, border-color .2s ease;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 18px;
  padding: 0 10px;
  border: 1px solid rgba(21, 128, 61, 0.28);
  border-radius: 999px;
  background: rgba(21, 128, 61, 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.instruction-card .btn {
  width: 100%;
  margin-top: 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

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

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1440px) {
  :root {
    --container: 1240px;
  }
}

@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .main-nav {
    position: fixed;
    top: var(--header);
    left: 0;
    right: 0;
    z-index: 49;
    max-height: calc(100vh - var(--header));
    overflow: auto;
    border-bottom: 1px solid var(--border);
    background: #EEF1F9;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .24s ease, opacity .24s ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    display: grid;
    width: min(100%, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0 22px;
  }

  .nav-list a {
    min-height: 48px;
    padding: 0 14px;
  }

  .menu-toggle {
    display: block;
  }

  .hero-grid,
  .split-grid,
  .checkout-layout,
  .tariff-hero-grid,
  .tariff-builder-layout,
  .instruction-hero-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 767px) {
  :root {
    --header: 66px;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .hero {
    padding-top: 52px;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .lead {
    font-size: 17px;
  }

  .hero-actions,
  .section-actions {
    display: grid;
  }

  .hero-actions .btn,
  .section-actions .btn,
  .status-actions .btn,
  .checkout-side-stack .btn,
  .plan-btn {
    width: 100%;
    min-height: 50px;
  }

  .header-actions .btn {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
    width: auto;
  }

  .mini-grid,
  .features-grid,
  .steps-grid,
  .pricing-grid,
  .period-options,
  .footer-grid,
  .contacts-grid,
  .instructions-grid,
  .guide-intro-grid,
  .ios-guide-grid,
  .guide-note-grid {
    grid-template-columns: 1fr;
  }

  .guide-step {
    grid-template-columns: 1fr;
  }

  .instruction-switcher {
    width: 100%;
  }

  .instruction-switch {
    flex: 1 1 100%;
    width: 100%;
  }

  .guide-steps-compact .guide-step:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .guide-steps-compact .guide-step:nth-child(even) .screenshot-frame {
    order: 0;
  }

  .screenshot-frame {
    width: min(100%, 260px);
    justify-self: center;
  }

  .section {
    padding: 54px 0;
  }

  .service-card,
  .price-card,
  .contact-card,
  .checkout-card,
  .document-box {
    padding: 22px;
  }

  .info-row {
    grid-template-columns: 98px 1fr;
    gap: 10px;
    font-size: 12px;
  }

  .terminal-body {
    padding: 18px 16px 6px;
  }

  .connection-note {
    display: grid;
  }

  .details-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .document-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .document-box {
    font-size: 15px;
  }

  .price {
    font-size: 50px;
  }

  .summary-row,
  .payment-method,
  .test-access-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .test-access-card .btn {
    width: 100%;
  }
}

@media (max-width: 374px) {
  .brand-name {
    font-size: 15px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .section-header h2,
  .page-section h2 {
    font-size: 29px;
  }
}

/* ── btn-ghost ─────────────────────────────────────────────────────────────── */

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}

.btn-ghost:hover {
  border-color: rgba(15, 23, 42, 0.25);
  color: var(--text);
}

/* ── Promo field ─────────────────────────────────────────────────────────────── */

.promo-input-row {
  display: flex;
  gap: 8px;
}

.promo-input-row input {
  flex: 1;
}

.btn-sm {
  padding: 8px 16px;
  font-size: .9em;
}

.promo-feedback {
  margin-top: 6px;
  font-size: .88em;
  min-height: 18px;
}

.promo-feedback.ok {
  color: var(--green);
}

.promo-feedback.err {
  color: var(--danger);
}

.promo-discount-row strong {
  color: var(--green);
}

.text-green {
  color: var(--green) !important;
}

/* ── Cabinet status card ─────────────────────────────────────────────────────── */

.cab-status-card {
  padding: 20px 24px;
}

.cab-status-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.cab-status-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cab-email {
  font-size: 1.05em;
  font-weight: 600;
  word-break: break-all;
}

.cab-id {
  font-size: .82em;
}

.cab-id code {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 1em;
  color: var(--muted);
}

/* ── Cabinet layout ──────────────────────────────────────────────────────────── */

.cabinet-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  max-width: 720px;
}

@media (min-width: 720px) {
  .cabinet-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.cabinet-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.cabinet-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: .95em;
}

.cabinet-row span:first-child {
  color: var(--muted);
  white-space: nowrap;
}

/* ── Status pill ─────────────────────────────────────────────────────────────── */

.status-pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 100px;
  font-size: .82em;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.status-pill.active {
  background: rgba(22, 163, 74, 0.12);
  color: var(--green);
}

.status-pill.expired {
  background: rgba(220, 38, 38, 0.10);
  color: var(--danger);
}

.status-pill.pending {
  background: rgba(15, 23, 42, 0.06);
  color: var(--muted);
}

/* ── VPN key box ─────────────────────────────────────────────────────────────── */

.vpn-key-box {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.vpn-key-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: .8em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vpn-key-hint {
  margin-top: 8px;
  font-size: .85em;
  color: var(--green);
  min-height: 20px;
}

/* ── Plan selector (cabinet) ─────────────────────────────────────────────────── */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.plan-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  text-align: center;
}

.plan-btn:hover {
  background: rgba(15, 23, 42, 0.07);
  border-color: rgba(15, 23, 42, 0.20);
}

.plan-btn.is-selected {
  border-color: var(--accent);
  background: rgba(21, 128, 61, 0.10);
}

.plan-btn-title {
  font-size: .88em;
  font-weight: 600;
}

.plan-btn-price {
  font-size: .82em;
  color: var(--muted);
}

.plan-btn.is-selected .plan-btn-price {
  color: var(--accent);
}

/* ── Cabinet spinner ─────────────────────────────────────────────────────────── */

.cabinet-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Pricing: old price + discount badge ─────────────────────────────────────── */

.price-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin-bottom: 4px;
}

.price-old {
  color: var(--muted);
  font-size: 20px;
  font-weight: 700;
  text-decoration: line-through;
  margin: 4px 0 0;
  opacity: .7;
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(21, 128, 61, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
}
