/* ============================================
   vpnsf.ru — основные стили
   Палитра: #FFFFFF #B9B9B9 #000000 #007CFF
   Шрифт: SF Pro Rounded
   ============================================ */

:root {
  --white: #ffffff;
  --gray: #b9b9b9;
  --black: #000000;
  --blue: #007cff;
  --blue-dark: #0066d6;
  --bg-soft: #f5f6f8;
  --radius: 20px;
  --radius-sm: 14px;
  --max-width: 1160px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  --shadow-blue: 0 16px 40px rgba(0, 124, 255, 0.28);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img,
svg {
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--bg-soft);
  color: var(--black);
}

.btn-ghost:hover {
  background: #ebedf0;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 38px;
  font-size: 18px;
}

/* ---------- Хедер ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.logo__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue);
  display: grid;
  place-items: center;
}

.logo__mark svg {
  width: 22px;
  height: 22px;
}

.logo b {
  color: var(--blue);
  font-weight: 700;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo__tag {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0;
  color: var(--gray);
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav__links {
  display: flex;
  gap: 30px;
}

.nav__links a {
  font-weight: 500;
  font-size: 16px;
  color: #333;
  transition: color 0.15s ease;
}

.nav__links a:hover {
  color: var(--blue);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: 0.25s ease;
}

/* ---------- Секции ---------- */
.section {
  padding: 100px 0;
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  color: var(--blue);
  background: rgba(0, 124, 255, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section__title {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section__subtitle {
  margin-top: 16px;
  font-size: 18px;
  color: #5a5a5a;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 80px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 50px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  color: #444;
  background: var(--bg-soft);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero__badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #23c16b;
  box-shadow: 0 0 0 4px rgba(35, 193, 107, 0.18);
}

.hero__title {
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero__title .accent {
  color: var(--blue);
}

.hero__text {
  margin-top: 22px;
  font-size: 19px;
  color: #4f4f4f;
  max-width: 480px;
}

.hero__actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__stats {
  margin-top: 46px;
  display: flex;
  gap: 40px;
}

.hero__stat b {
  display: block;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.hero__stat span {
  font-size: 14px;
  color: var(--gray);
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
}

.hero__glow {
  position: absolute;
  inset: 12%;
  background: radial-gradient(circle, rgba(0, 124, 255, 0.35), transparent 62%);
  filter: blur(30px);
}

.hero__globe {
  position: relative;
  width: 78%;
  max-width: 420px;
  animation: float 6s ease-in-out infinite;
}

.hero__globe img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 124, 255, 0.25));
}

.hero__chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
}

.hero__chip small {
  display: block;
  font-weight: 500;
  font-size: 12px;
  color: var(--gray);
}

.hero__chip .ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(0, 124, 255, 0.1);
  color: var(--blue);
  font-size: 18px;
}

.hero__chip--1 {
  top: 12%;
  left: -4%;
  animation: float 5s ease-in-out infinite;
}

.hero__chip--2 {
  bottom: 14%;
  right: -2%;
  animation: float 5s ease-in-out infinite 1.5s;
}

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

/* ---------- Логотипы-полоска ---------- */
.marquee {
  padding: 34px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.marquee__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--gray);
  font-weight: 600;
  font-size: 18px;
}

.marquee__row span {
  opacity: 0.75;
}

/* ---------- Фичи ---------- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.feature__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(0, 124, 255, 0.1);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.feature__icon svg {
  width: 28px;
  height: 28px;
}

.feature h3 {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.feature p {
  font-size: 16px;
  color: #5a5a5a;
}

/* ---------- Тарифы ---------- */
.plans__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plan {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.plan--featured {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.plan__tag {
  position: absolute;
  top: 22px;
  right: 22px;
  font-weight: 600;
  font-size: 12px;
  color: var(--white);
  background: var(--blue);
  padding: 5px 12px;
  border-radius: 999px;
}

.plan__name {
  font-weight: 600;
  font-size: 20px;
}

.plan__desc {
  margin-top: 6px;
  font-size: 15px;
  color: #6a6a6a;
}

.plan--featured .plan__desc {
  color: var(--gray);
}

.plan__price {
  margin: 26px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan__price b {
  font-weight: 700;
  font-size: 46px;
  letter-spacing: -0.03em;
}

.plan__price span {
  color: var(--gray);
  font-size: 16px;
}

.plan__note {
  font-size: 14px;
  color: #6a6a6a;
  margin-bottom: 26px;
}

.plan--featured .plan__note {
  color: var(--gray);
}

.plan__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
  flex-grow: 1;
}

.plan__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.plan__list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--blue);
}

.plan--featured .plan__list svg {
  color: #4da3ff;
}

.plan .btn {
  width: 100%;
}

.plan--featured .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.plan--featured .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ---------- Как работает ---------- */
.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}

.step {
  text-align: left;
}

.step__num {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 20px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.step h3 {
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 8px;
}

.step p {
  color: #5a5a5a;
  font-size: 16px;
}

/* ---------- CTA-баннер ---------- */
.cta {
  padding: 80px 0;
}

.cta__box {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  border-radius: 32px;
  padding: 70px 40px;
  text-align: center;
  color: var(--white);
}

.cta__box::before {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  right: -120px;
  top: -180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 60%);
}

.cta__box h2 {
  position: relative;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.cta__box p {
  position: relative;
  margin: 16px auto 32px;
  max-width: 520px;
  font-size: 18px;
  opacity: 0.9;
}

.cta__box .btn {
  position: relative;
  background: var(--white);
  color: var(--blue);
}

.cta__box .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 780px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq__q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 19px;
  color: var(--black);
  text-align: left;
  padding: 26px 40px 26px 0;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq__q::after {
  content: '+';
  font-weight: 500;
  font-size: 28px;
  color: var(--blue);
  transition: transform 0.25s ease;
}

.faq__item.open .faq__q::after {
  transform: rotate(45deg);
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq__a p {
  padding: 0 0 26px;
  color: #5a5a5a;
  font-size: 16px;
}

/* ---------- Футер ---------- */
.footer {
  background: var(--bg-soft);
  padding: 70px 0 34px;
  margin-top: 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer__about {
  max-width: 300px;
}

.footer__about p {
  margin-top: 16px;
  color: #6a6a6a;
  font-size: 15px;
}

.footer__col h4 {
  font-weight: 600;
  font-size: 15px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.footer__col a {
  display: block;
  color: #333;
  font-size: 16px;
  margin-bottom: 12px;
  transition: color 0.15s ease;
}

.footer__col a:hover {
  color: var(--blue);
}

.footer__bottom {
  margin-top: 50px;
  padding-top: 26px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--gray);
  font-size: 14px;
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 380px; margin: 0 auto; }
  .features__grid,
  .plans__grid,
  .steps__grid { grid-template-columns: 1fr; }
  .plan--featured { order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }

  .nav__links,
  .nav .btn { display: none; }
  .nav__toggle { display: flex; }

  .nav.open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    gap: 18px;
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  .nav.open .btn {
    display: inline-flex;
    margin-top: 8px;
  }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero__stats { gap: 26px; }
  .hero__chip--1 { left: 0; }
  .hero__chip--2 { right: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta__box { padding: 50px 24px; }
}

/* ---------- Анимация появления ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__globe,
  .hero__chip { animation: none; }
  html { scroll-behavior: auto; }
}
