/* Сеть. — лендинг. Бренд: чёрный, белый гротеск, красная квадратная точка. */
:root {
  --bg: #000;
  --bg-2: #0b0b0c;
  --card: #111113;
  --line: #222226;
  --text: #fff;
  --muted: #a8a8b0;          /* 8.6:1 на чёрном */
  --red: #fb0103;            /* цвет точки из логотипа — только декор */
  --red-btn: #dc0500;        /* кнопки: белый текст 5.0:1 */
  --red-btn-hover: #f00c00;
  --radius: 14px;
  --display: 'Montserrat', 'Arial Black', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(16px, 5vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.center { text-align: center; margin-top: 40px; }
.red { color: var(--red); }
.nw { white-space: nowrap; }

/* точка бренда */
.dot { display: inline-block; width: .2em; height: .2em; background: var(--red); margin-left: .06em; vertical-align: baseline; }
.dot--xl { width: .19em; height: .19em; margin-left: .05em; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  background: var(--red-btn); color: #fff; text-decoration: none;
  font: 700 16px/1 var(--body); letter-spacing: .01em; cursor: pointer;
  border: 1px solid transparent;
  transition: background .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--red-btn-hover); box-shadow: 0 8px 30px rgba(251, 1, 3, .28); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }
.btn--ghost { background: transparent; border-color: #3a3a40; color: #fff; }
.btn--ghost:hover { background: #fff; color: #000; border-color: #fff; box-shadow: none; }
.ico { width: 20px; height: 20px; fill: currentColor; flex: none; }
.link-quiet { color: var(--muted); text-decoration: none; font-weight: 500; padding: 10px 6px; transition: color .2s; }
.link-quiet:hover { color: #fff; }

/* ---------- навигация ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(0, 0, 0, .72); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { font: 900 26px/1 var(--display); letter-spacing: -.03em; text-decoration: none; }
.brand--sm { font-size: 22px; }
.nav__links { display: none; gap: 28px; }
.nav__links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; transition: color .2s; }
.nav__links a:hover { color: #fff; }
.nav__cta { display: flex; align-items: center; gap: 6px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 112px 0 64px; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,.85) 100%); }
.hero__inner { position: relative; }
.hero__net { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 500; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(0,0,0,.5); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.hero__title { font: 900 clamp(88px, 26vw, 250px)/.86 var(--display); letter-spacing: -.035em; margin: 28px 0 14px -.04em; }
.hero__tagline { font: 800 clamp(24px, 5.2vw, 46px)/1.1 var(--display); letter-spacing: -.02em; max-width: 16ch; }
.hero__lead { color: #d4d4d8; font-size: clamp(16px, 2.1vw, 19px); max-width: 540px; margin-top: 20px; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.hero__actions--center { align-items: stretch; }
.hero__facts { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 560px; }
.hero__facts li { display: flex; flex-direction: column; gap: 2px; padding: 14px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(10,10,12,.6); }
.hero__facts b { font: 900 22px/1.1 var(--display); letter-spacing: -.02em; }
.hero__facts b.inf { font: 700 30px/22px var(--body); }
.hero__facts span { color: var(--muted); font-size: 13px; line-height: 1.3; }

/* Низкий экран ноутбука (окно ~650–760px): на 100% зуме кнопки уезжали под сгиб —
   ужимаем логотип и оффер, чтобы первый экран заканчивался на кнопках. */
@media (min-width: 900px) and (max-height: 760px) {
  .hero { padding-top: 96px; }
  .hero__title { font-size: clamp(88px, 19vh, 250px); margin-top: 18px; }
  .hero__tagline { font-size: clamp(24px, 4.6vh, 46px); }
  .hero__lead { margin-top: 14px; }
  .hero__actions { margin-top: 22px; }
  .hero__facts { margin-top: 26px; }
}

/* ---------- секции ---------- */
.section { padding: clamp(72px, 11vw, 128px) 0; }
.section--line { border-top: 1px solid var(--line); }
.kicker { color: var(--red); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.h2 { font: 900 clamp(34px, 7vw, 72px)/1 var(--display); letter-spacing: -.04em; max-width: 18ch; }
.sub { color: var(--muted); font-size: 17px; max-width: 640px; margin-top: 18px; }

.grid { display: grid; gap: 14px; margin-top: 44px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.card:hover { border-color: #3a3a40; transform: translateY(-2px); }
.card__ico { width: 30px; height: 30px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.card h3, .feature h3, .step h3 { font: 800 20px/1.25 var(--display); letter-spacing: -.01em; margin-bottom: 8px; }
.card p, .feature p, .step p { color: var(--muted); }

.feature { padding: 26px 0 8px; border-top: 1px solid var(--line); }
.feature__num { display: block; font: 800 14px/1 var(--display); color: var(--red); margin-bottom: 16px; letter-spacing: .04em; }

/* шаги */
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 14px; counter-reset: s; }
.step { display: flex; gap: 20px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step__n { flex: none; width: 48px; height: 48px; display: grid; place-items: center; background: #fff; color: #000; font: 900 22px/1 var(--display); border-radius: 12px; }
.step b { color: #fff; font-weight: 600; }

/* тарифы */
.plans { display: grid; gap: 14px; margin-top: 44px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px 24px; }
.plan--hot { border-color: var(--red); background: linear-gradient(180deg, #1a0707 0%, var(--card) 55%); box-shadow: 0 0 0 1px var(--red) inset, 0 20px 60px rgba(251,1,3,.12); }
.plan__badge { position: absolute; top: -12px; left: 24px; background: var(--red-btn); color: #fff; font: 700 12px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 7px 10px; border-radius: 8px; }
.plan__name { font: 800 18px/1.2 var(--display); color: #e4e4e7; }
.plan__price { margin-top: 14px; font: 900 22px/1 var(--display); color: #fff; }
.plan__price b { font-size: 58px; letter-spacing: -.045em; }
.plan__per { color: var(--muted); font-size: 15px; margin-top: 8px; }
.save { color: #4ade80; font-weight: 600; }
.plan__list { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; flex: 1; }
.plan__list li { position: relative; padding-left: 26px; color: #d4d4d8; }
.plan__list li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; background: var(--red); }
.pay { color: var(--muted); font-size: 15px; margin-top: 22px; max-width: 760px; }

/* FAQ */
.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 18px 0; font: 700 18px/1.35 var(--body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 14px; height: 14px; background:
  linear-gradient(var(--red), var(--red)) center/14px 2px no-repeat,
  linear-gradient(var(--red), var(--red)) center/2px 14px no-repeat; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 680px; }
.faq a { color: #fff; text-underline-offset: 3px; }

/* финальный CTA */
.final { border-top: 1px solid var(--line); padding: clamp(88px, 14vw, 160px) 0; background: radial-gradient(60% 70% at 50% 100%, rgba(251,1,3,.16) 0%, rgba(0,0,0,0) 70%); }
.final__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.final__title { font: 900 clamp(46px, 11vw, 132px)/.95 var(--display); letter-spacing: -.05em; }
.final__lead { color: #d4d4d8; font-size: clamp(17px, 2.4vw, 22px); margin-top: 18px; }
.final .hero__actions { width: 100%; max-width: 420px; }

/* футер */
.footer { border-top: 1px solid var(--line); padding: 36px 0 120px; }
.footer__row { display: flex; flex-direction: column; gap: 18px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__links a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.footer__links a:hover { color: #fff; }
.footer__copy { color: #71717a; font-size: 14px; }

/* липкая кнопка на мобиле */
.sticky {
  position: fixed; inset: auto 0 0; z-index: 40; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.92) 35%);
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.sticky.is-on { transform: translateY(0); }

/* появление при скролле */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* документы */
.doc { padding-top: 104px; padding-bottom: 72px; }
.doc h2 { font: 900 clamp(30px, 6vw, 48px)/1.05 var(--display); letter-spacing: -.03em; margin-bottom: 8px; }
.doc h2 + p { color: var(--muted); margin-bottom: 28px; }
.doc h3 { font: 800 20px/1.3 var(--display); margin: 32px 0 10px; }
.doc p, .doc li { color: #d4d4d8; font-size: 16px; line-height: 1.7; }
.doc p { margin: 0 0 10px; }
.doc ul { margin: 0 0 12px; padding-left: 22px; }
.doc li { margin-bottom: 4px; }
.doc a { color: #fff; text-underline-offset: 3px; }

/* поддержка */
.support__btn { margin-top: 20px; }

/* ---------- ≥ 640 ---------- */
/* ---------- виджет «Ваш IP» (ip.js, /api/ip) ---------- */
.ipcard { --tone: #ff5a52; --tone-bg: rgba(251,1,3,.10); --tone-line: rgba(251,1,3,.35);
  display: grid; gap: 10px; margin-top: 12px; max-width: 560px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(10,10,12,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ipcard[data-state="loading"] { --tone: var(--muted); --tone-bg: rgba(255,255,255,.04); --tone-line: var(--line); }
.ipcard[data-state="ours"] { --tone: #34d399; --tone-bg: rgba(52,211,153,.10); --tone-line: rgba(52,211,153,.35); }
.ipcard__who { display: flex; align-items: center; gap: 12px; padding: 2px 4px; min-width: 0; }
.ipcard__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #151518; }
.ipcard__icon svg, .ipcard__badge svg, .ipcard__arrow { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ipcard__icon svg { color: #fff; }
.ipcard__id { display: grid; gap: 2px; min-width: 0; }
.ipcard__label { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.ipcard__ip { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 2px; }
.ipcard__ip b { font: 800 clamp(22px, 5.4vw, 26px)/1.15 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ipcard[data-state="loading"] .ipcard__ip b { color: #3a3a40; }
.ipcard__geo { color: #d4d4d8; font-size: 15px; white-space: nowrap; }
.ipcard__status { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--tone-line); background: var(--tone-bg); color: #fff; text-decoration: none; transition: background .2s var(--ease), border-color .2s var(--ease); }
.ipcard__status:hover { background: color-mix(in srgb, var(--tone-bg) 100%, rgba(255,255,255,.06)); border-color: var(--tone); }
.ipcard__badge { flex: none; display: grid; color: var(--tone); }
.ipcard__badge .i-ok, .ipcard[data-state="ours"] .ipcard__badge .i-alert { display: none; }
.ipcard[data-state="ours"] .ipcard__badge .i-ok { display: block; }
.ipcard__text { display: grid; gap: 1px; flex: 1; min-width: 0; }
.ipcard__text b { font-weight: 700; font-size: 15px; color: var(--tone); }
.ipcard__text span { color: #c4c4cc; font-size: 13.5px; line-height: 1.35; }
.ipcard__arrow { flex: none; color: var(--tone); transition: transform .2s var(--ease); }
.ipcard__status:hover .ipcard__arrow { transform: translateX(3px); }
@media (min-width: 640px) {
  .ipcard { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; max-width: 760px; padding: 12px 12px 12px 14px; }
  .ipcard__who { padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ipcard__status, .ipcard__arrow { transition: none; }
}

@media (min-width: 640px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .hero__actions--center { justify-content: center; }
  .final .hero__actions { max-width: none; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
  .footer__row { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
}

/* ---------- ≥ 900 ---------- */
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .hero__tagline { max-width: 24ch; }
  .hero__bg img { object-position: 70% center; }
  .hero__bg::after { background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 42%, rgba(0,0,0,0) 70%), linear-gradient(180deg, rgba(0,0,0,0) 70%, #000 100%); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); column-gap: 40px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { flex-direction: column; padding: 30px; }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .plan--hot { transform: translateY(-10px); }
  .sticky { display: none; }
  .footer { padding-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.pay a { color: #fff; text-underline-offset: 3px; }
