:root {
  --ink: #11243a;
  --muted: #63758a;
  --line: rgba(46, 92, 128, .12);
  --blue: #1689e9;
  --cyan: #38c7d9;
  --surface: rgba(255, 255, 255, .72);
  --shadow: 0 24px 70px rgba(40, 104, 150, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: linear-gradient(180deg, #f7fcff 0%, #fff 38%, #f5fbff 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.hidden { display: none !important; }
.ambient { position: fixed; border-radius: 999px; filter: blur(10px); pointer-events: none; z-index: -1; }
.ambient-one { width: 480px; height: 480px; top: -180px; right: -120px; background: rgba(64, 201, 220, .16); }
.ambient-two { width: 420px; height: 420px; top: 520px; left: -220px; background: rgba(57, 142, 235, .1); }

.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 760; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 30px; display: flex; align-items: center; justify-content: center; gap: 3px; }
.brand-mark i { display: block; width: 4px; border-radius: 9px; background: linear-gradient(180deg, var(--cyan), var(--blue)); }
.brand-mark i:nth-child(1), .brand-mark i:nth-child(4) { height: 13px; }
.brand-mark i:nth-child(2) { height: 25px; }
.brand-mark i:nth-child(3) { height: 19px; }
.nav { display: flex; align-items: center; gap: 30px; color: #4f6378; font-size: 14px; }
.nav a:hover { color: var(--blue); }

.button { border: 0; border-radius: 999px; min-height: 46px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-weight: 680; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:disabled { opacity: .55; cursor: default; transform: none; }
.button-primary { color: #fff; background: linear-gradient(135deg, #1689e9, #31b9d4); box-shadow: 0 14px 34px rgba(22, 137, 233, .24); }
.button-primary:hover { box-shadow: 0 18px 40px rgba(22, 137, 233, .3); }
.button-soft { color: #1678c9; background: rgba(225, 244, 255, .82); }
.button-ghost { min-height: 40px; padding-inline: 18px; color: #27435d; background: rgba(255,255,255,.68); border: 1px solid var(--line); }
.full { width: 100%; }

.hero { min-height: 660px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; padding-block: 70px 90px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #3381ba; font-size: 12px; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #35c7a0; box-shadow: 0 0 0 5px rgba(53,199,160,.11); }
h1 { margin: 22px 0; font-size: clamp(48px, 6.1vw, 82px); line-height: .99; letter-spacing: -.065em; font-weight: 760; }
h1 em { color: #258fce; font-style: normal; font-weight: 560; }
.hero-copy > p { max-width: 610px; margin: 0; color: var(--muted); font-size: 19px; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.trust-row { display: flex; gap: 24px; margin-top: 32px; color: #6e8092; font-size: 13px; }
.trust-row span::before { content: "✓"; color: #23ac91; margin-right: 7px; font-weight: 800; }

.hero-visual { min-height: 500px; position: relative; display: grid; place-items: center; }
.glass { background: var(--surface); border: 1px solid rgba(255,255,255,.86); box-shadow: var(--shadow); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.connection-card { width: min(420px, 92%); border-radius: 32px; padding: 30px; position: relative; z-index: 2; }
.connection-head, .card-top { display: flex; align-items: center; justify-content: space-between; }
.mini-label { color: #7b8ca0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.status-pill { padding: 7px 12px; border-radius: 999px; color: #198c75; background: rgba(45, 199, 161, .12); font-size: 12px; font-weight: 750; }
.route { display: flex; align-items: center; gap: 14px; margin: 44px 0; }
.route-point, .route-node { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; font-weight: 760; }
.route-point { background: #edf5fa; color: #5d7084; }
.route-node { color: white; background: linear-gradient(135deg, #1a8ee9, #43cbd4); box-shadow: 0 10px 30px rgba(24,146,221,.3); }
.route-line { flex: 1; height: 2px; background: #d9e7ef; position: relative; overflow: hidden; }
.route-line i { position: absolute; inset-block: 0; width: 45%; background: linear-gradient(90deg, transparent, #37bfd3, transparent); animation: travel 2.2s linear infinite; }
@keyframes travel { from { left: -45%; } to { left: 100%; } }
.connection-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.connection-metrics div { padding: 14px 8px; border-radius: 18px; background: rgba(238,247,252,.8); text-align: center; }
.connection-metrics strong, .connection-metrics span { display: block; }
.connection-metrics strong { font-size: 18px; }
.connection-metrics span { color: #7b8ca0; font-size: 11px; }
.orbit { position: absolute; border: 1px solid rgba(40,153,215,.12); border-radius: 50%; }
.orbit-one { width: 490px; height: 490px; }
.orbit-two { width: 350px; height: 350px; border-style: dashed; animation: rotate 25s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
.float-card { position: absolute; z-index: 3; min-width: 145px; padding: 15px 17px; border-radius: 18px; background: rgba(255,255,255,.86); box-shadow: 0 18px 45px rgba(54,103,138,.14); }
.float-card span, .float-card strong { display: block; }
.float-card span { color: #8795a5; font-size: 11px; }
.float-card strong { margin-top: 2px; color: #1d876f; font-size: 14px; }
.float-card-one { right: -5px; top: 78px; }
.float-card-two { left: 5px; bottom: 72px; }

.section { padding-block: 96px; }
.section-heading { max-width: 650px; margin: 0 auto 42px; text-align: center; }
.section-heading.compact { margin-bottom: 56px; }
h2 { margin: 12px 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.06; letter-spacing: -.045em; }
.section-heading p { color: var(--muted); margin: 0; }
.duration-tabs { width: fit-content; margin: 0 auto 34px; padding: 5px; display: flex; gap: 4px; border-radius: 999px; background: #edf6fb; }
.duration-tabs button { border: 0; border-radius: 999px; padding: 10px 17px; background: transparent; color: #6a7d90; cursor: pointer; font-weight: 650; }
.duration-tabs button.active { color: #1d78b9; background: #fff; box-shadow: 0 6px 20px rgba(38,102,146,.1); }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan-card { padding: 30px; border-radius: 28px; background: rgba(255,255,255,.84); border: 1px solid var(--line); box-shadow: 0 14px 45px rgba(55,105,140,.07); position: relative; overflow: hidden; }
.plan-card.featured { border-color: rgba(34,158,217,.3); box-shadow: 0 24px 60px rgba(42,139,199,.14); transform: translateY(-8px); }
.plan-card.featured::after { content: "Популярный"; position: absolute; top: 16px; right: -32px; width: 120px; padding: 5px; transform: rotate(38deg); color: #fff; background: #2ba8d7; text-align: center; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.plan-card h3 { margin: 4px 0 18px; font-size: 22px; }
.plan-price { display: flex; align-items: baseline; gap: 7px; margin-bottom: 22px; }
.plan-price strong { font-size: 40px; letter-spacing: -.04em; }
.plan-price span { color: var(--muted); }
.plan-features { list-style: none; padding: 0; margin: 0 0 28px; color: #5f7387; }
.plan-features li { padding: 8px 0; }
.plan-features li::before { content: "✓"; color: #22ae91; margin-right: 9px; font-weight: 800; }
.plan-card .button { width: 100%; }
.skeleton-card { height: 340px; border-radius: 28px; background: linear-gradient(90deg,#eef6fa,#f8fcfe,#eef6fa); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.how { padding-top: 56px; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.steps article { padding: 30px; border-top: 1px solid #cfe1ec; }
.steps article > span { color: #42aaca; font: 700 12px ui-monospace, monospace; }
.steps h3 { margin: 22px 0 8px; font-size: 20px; }
.steps p { margin: 0; color: var(--muted); }

.dashboard-section { padding-block: 100px; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 34px; }
.dashboard-heading h2 { margin-bottom: 0; }
.dashboard-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 18px; }
.account-card { border-radius: 28px; padding: 28px; }
.account-card.wide { grid-row: span 2; }
.subscription-main { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 35px 0; }
.subscription-main > div { padding: 18px; border-radius: 18px; background: rgba(237,247,252,.78); }
.subscription-main strong, .subscription-main span { display: block; }
.subscription-main strong { margin-top: 7px; font-size: 19px; }
.account-email { display: block; margin: 15px 0 6px; overflow-wrap: anywhere; font-size: 18px; }
.account-card p { color: var(--muted); font-size: 13px; }
.key-value { margin: 14px 0; padding: 13px; border-radius: 13px; color: #63778b; background: rgba(235,245,250,.85); font: 12px/1.5 ui-monospace, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.key-actions { display: flex; gap: 8px; }

.footer { padding-block: 45px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.modal { width: min(440px, calc(100% - 28px)); padding: 34px; border: 1px solid rgba(255,255,255,.85); border-radius: 28px; color: var(--ink); background: rgba(250,253,255,.96); box-shadow: 0 30px 100px rgba(21,66,99,.28); }
.modal::backdrop { background: rgba(20,45,67,.3); backdrop-filter: blur(8px); }
.modal-close { position: absolute; right: 18px; top: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #edf6fa; color: #5c7184; cursor: pointer; font-size: 25px; }
.modal h2 { margin: 10px 0; font-size: 34px; }
.modal-copy p { margin: 0 0 26px; color: var(--muted); }
.modal form { display: grid; gap: 15px; }
.modal label { display: grid; gap: 7px; color: #557087; font-size: 13px; font-weight: 650; }
.modal input { width: 100%; height: 50px; border: 1px solid #dbe8f0; border-radius: 15px; padding: 0 15px; outline: none; color: var(--ink); background: #fff; }
.modal input:focus { border-color: #54aede; box-shadow: 0 0 0 4px rgba(84,174,222,.1); }
.form-error { min-height: 20px; color: #d65262; font-size: 13px; }
.switch-auth { display: block; margin: 18px auto 0; border: 0; background: transparent; color: #2d86c5; cursor: pointer; }
.payment-methods { display: grid; gap: 10px; }
.payment-method { width: 100%; min-height: 62px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #dbe8f0; border-radius: 17px; color: var(--ink); background: #fff; cursor: pointer; text-align: left; }
.payment-method:hover { border-color: #63b4df; box-shadow: 0 9px 24px rgba(42,126,178,.1); }
.payment-method span { color: var(--muted); font-size: 12px; }
.payment-method strong { display: block; font-size: 14px; }
.payment-method b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 28px; transform: translate(-50%, 30px); padding: 12px 18px; border-radius: 999px; color: #fff; background: #183d57; box-shadow: 0 15px 40px rgba(20,55,80,.25); opacity: 0; pointer-events: none; transition: .25s ease; font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 50px; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions, .trust-row { justify-content: center; }
  .hero-visual { min-height: 450px; }
  .plans-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .plan-card.featured { transform: none; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .account-card.wide { grid-row: auto; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 24px, 1180px); }
  .topbar { height: 72px; }
  .nav > a { display: none; }
  .hero { min-height: auto; gap: 20px; padding-block: 55px 45px; }
  h1 { font-size: 48px; }
  .hero-copy > p { font-size: 16px; }
  .trust-row { flex-wrap: wrap; gap: 8px 16px; }
  .hero-visual { min-height: 390px; }
  .orbit-one { width: 370px; height: 370px; }
  .orbit-two { width: 290px; height: 290px; }
  .connection-card { padding: 22px; }
  .float-card-one { right: 0; top: 42px; }
  .float-card-two { left: 0; bottom: 36px; }
  .section { padding-block: 68px; }
  .duration-tabs { max-width: 100%; overflow-x: auto; }
  .duration-tabs button { white-space: nowrap; }
  .steps { grid-template-columns: 1fr; }
  .subscription-main { grid-template-columns: 1fr; }
  .dashboard-heading { align-items: center; }
  .footer { flex-direction: column; gap: 12px; text-align: center; }
}

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