/* ============================================================
   Bebra Net — публичная витрина VPN
   Тёмная технологичная тема, без внешних шрифтов и CDN
   ============================================================ */

:root {
  --bg-deep: #070b10;
  --bg: #0c1218;
  --bg-elevated: #121a22;
  --bg-soft: #17222c;
  --line: rgba(184, 206, 198, 0.14);
  --line-strong: rgba(184, 206, 198, 0.28);
  --text: #e7eee9;
  --text-muted: #9aaca3;
  --text-faint: #6f8078;
  --accent: #7ec8b8;
  --accent-strong: #5fb39f;
  --accent-soft: rgba(126, 200, 184, 0.12);
  --accent-glow: rgba(126, 200, 184, 0.22);
  --danger-soft: #c9a27a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --container: 1120px;
  --header-h: 72px;
  --font:
    "Segoe UI Variable Text",
    "Segoe UI",
    "SF Pro Text",
    "Helvetica Neue",
    sans-serif;
  --font-display:
    "Segoe UI Variable Display",
    "Segoe UI",
    "SF Pro Display",
    "Helvetica Neue",
    sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

a:hover {
  color: #a7ddd0;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible,
.accordion__trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section--tight {
  padding: 4rem 0;
}

.section__header {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section__eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.section__lead {
  font-size: 1.05rem;
}

/* Atmosphere */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(126, 200, 184, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(90, 130, 150, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(126, 200, 184, 0.06), transparent 55%),
    linear-gradient(180deg, #0a1016 0%, var(--bg-deep) 40%, #080c10 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(184, 206, 198, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 206, 198, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 85%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(7, 11, 16, 0.55);
  backdrop-filter: blur(14px);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 11, 16, 0.88);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.1rem;
}

.brand:hover {
  color: var(--text);
  opacity: 0.92;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background:
    linear-gradient(145deg, rgba(126, 200, 184, 0.28), rgba(126, 200, 184, 0.05)),
    var(--bg-elevated);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand__mark svg {
  width: 18px;
  height: 18px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-cta {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  color: #06110e;
  background: linear-gradient(180deg, #95d6c6 0%, var(--accent) 100%);
  box-shadow: 0 10px 28px var(--accent-glow);
}

.btn--primary:hover {
  color: #06110e;
  background: linear-gradient(180deg, #a8e0d2 0%, #8fd0c0 100%);
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(184, 206, 198, 0.4);
}

.btn--full {
  width: 100%;
}

/* Hero */
.hero {
  padding: 3.5rem 0 4.5rem;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-bottom: 1.1rem;
  background: linear-gradient(120deg, #f2f7f4 20%, #9fd4c5 75%, #7ec8b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__title {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 600;
  max-width: 20ch;
  margin-bottom: 1rem;
}

.hero__subtitle {
  max-width: 36rem;
  font-size: 1.08rem;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.hero__note {
  font-size: 0.92rem;
  color: var(--text-faint);
}

.hero__visual {
  position: relative;
  min-height: 280px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(126, 200, 184, 0.1), transparent 45%),
    linear-gradient(340deg, rgba(40, 70, 85, 0.35), var(--bg-elevated));
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(126, 200, 184, 0.18), transparent 35%),
    radial-gradient(circle at 75% 65%, rgba(150, 180, 170, 0.12), transparent 30%);
}

.hero__panel {
  position: absolute;
  inset: 1.25rem;
  display: grid;
  gap: 0.85rem;
  align-content: center;
}

.hero__stat {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(7, 11, 16, 0.55);
  backdrop-filter: blur(8px);
}

.hero__stat strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.hero__stat span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.feature {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.feature:hover {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--accent-soft), transparent);
}

.feature__icon {
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(126, 200, 184, 0.22);
}

.feature__icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.feature p {
  margin: 0;
  font-size: 0.96rem;
}

/* Plans */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.35rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.plan-card:hover {
  border-color: var(--line-strong);
}

.plan-card--featured {
  border-color: rgba(126, 200, 184, 0.45);
  background:
    linear-gradient(180deg, rgba(126, 200, 184, 0.1), transparent 40%),
    var(--bg-elevated);
  box-shadow: 0 0 0 1px rgba(126, 200, 184, 0.08), var(--shadow);
}

.plan-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0a1613;
  background: var(--accent);
}

.plan-card__name {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
  padding-right: 5rem;
}

.plan-card__price {
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
}

.plan-card__monthly {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  color: var(--text-faint);
}

.plan-card__features {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.4rem;
  flex: 1;
}

.plan-card__feature {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.plan-card__check {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--accent-soft);
  border: 1px solid rgba(126, 200, 184, 0.35);
  position: relative;
}

.plan-card__check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 5px;
  height: 8px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.plan-card__cta {
  margin-top: auto;
}

.plans-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-faint);
}

/* Accordion */
.accordion {
  display: grid;
  gap: 0.75rem;
}

.accordion__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 26, 34, 0.72);
  overflow: hidden;
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  text-align: left;
  color: var(--text);
  font-weight: 600;
}

.accordion__trigger:hover {
  background: rgba(255, 255, 255, 0.02);
}

.accordion__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.25s var(--ease), background 0.2s;
}

.accordion__item.is-open .accordion__icon {
  transform: rotate(45deg);
  background: var(--accent-soft);
}

.accordion__panel {
  display: none;
  padding: 0 1.2rem 1.2rem;
  color: var(--text-muted);
}

.accordion__item.is-open .accordion__panel {
  display: block;
}

.accordion__panel ol,
.accordion__panel ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.accordion__panel li {
  margin: 0;
}

.platform-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.platform-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* CTA */
.cta-band {
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(ellipse 70% 80% at 0% 50%, rgba(126, 200, 184, 0.14), transparent 55%),
    linear-gradient(135deg, #121a22, #0e161d 55%, #142028);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.cta-band p {
  margin: 0;
  max-width: 36rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  background: rgba(0, 0, 0, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-brand {
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.footer-warning {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(201, 162, 122, 0.28);
  background: rgba(201, 162, 122, 0.08);
  color: #d9c2a8;
  font-size: 0.9rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.88rem;
}

/* Privacy page */
.legal-page {
  padding: 3rem 0 4rem;
}

.legal-page article {
  max-width: 46rem;
}

.legal-page h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
}

.legal-page ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
  display: grid;
  gap: 0.4rem;
}

.back-link {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent);
}

/* Reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal="delay-1"] {
  transition-delay: 0.08s;
}

[data-reveal="delay-2"] {
  transition-delay: 0.16s;
}

[data-reveal="delay-3"] {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .plan-card:hover {
    transform: none;
  }
}

/* Responsive */
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }

  .header-cta {
    display: inline-flex;
  }

  .cta-band {
    grid-template-columns: 1.4fr auto;
  }
}

@media (max-width: 900px) {
  .features-grid,
  .plans-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
    background: rgba(7, 11, 16, 0.96);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.9rem 1rem;
    border-radius: 10px;
    border: 1px solid transparent;
  }

  .site-nav a:hover {
    border-color: var(--line);
  }

  .hero {
    min-height: auto;
    padding-top: 2.25rem;
  }

  .hero__visual {
    min-height: 240px;
  }
}

@media (min-width: 700px) and (max-width: 900px) {
  .features-grid,
  .plans-grid {
    grid-template-columns: 1fr 1fr;
  }

  .plans-grid .plan-card--featured {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .hero__actions,
  .cta-band__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .plan-card__price {
    font-size: 1.75rem;
  }
}
