/*
Theme Name: PBNGO
Theme URI: https://pbngo.ru
Author: PBNGO
Description: Профессиональная тема для PBN-сервиса
Version: 1.0.0
Text Domain: pbngo
*/

/* ── VARIABLES ──────────────────────────────────────────────── */
:root {
  --bg:        #0a0c10;
  --bg2:       #0f1219;
  --bg3:       #151820;
  --surface:   #1a1e28;
  --border:    rgba(255,255,255,0.07);
  --accent:    #00d4ff;
  --accent2:   #7c3aed;
  --green:     #00e87a;
  --text:      #e8eaf0;
  --muted:     #6b7280;
  --radius:    12px;
  --radius-lg: 20px;
  --font:      'Unbounded', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --shadow:    0 8px 32px rgba(0,212,255,0.08);
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;600;700;900&family=Manrope:wght@400;500;600&display=swap');

/* ── CONTAINER ──────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--sm  { padding: 8px 16px;  font-size: 14px; }
.btn--lg  { padding: 14px 28px; font-size: 16px; }
.btn--xl  { padding: 18px 40px; font-size: 18px; }
.btn--full { width: 100%; justify-content: center; }

.btn--primary {
  background: var(--accent);
  color: #000;
}
.btn--primary:hover {
  background: #22e0ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,212,255,0.35);
}

.btn--outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
}

/* ── SECTION HEADER ─────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  background: rgba(0,212,255,0.1);
  color: var(--accent);
  border: 1px solid rgba(0,212,255,0.2);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-header h2 {
  font-family: var(--font);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}
.section-header p {
  color: var(--muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
}

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,12,16,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}
.logo-icon {
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}
.logo-text strong { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--text); }

.header__cta { margin-left: 8px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
  text-align: center;
}
.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero__bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0,212,255,0.12) 0%, transparent 70%);
}
.hero .container { position: relative; z-index: 1; }

.hero__badge {
  display: inline-block;
  background: rgba(0,232,122,0.1);
  color: var(--green);
  border: 1px solid rgba(0,232,122,0.25);
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}
.hero__title {
  font-family: var(--font);
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero__accent {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 36px;
  animation: fadeUp 0.6s 0.2s ease both;
}
.hero__cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeUp 0.6s 0.3s ease both;
}
.hero__stats {
  display: flex;
  gap: 0;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 480px;
  margin: 0 auto;
  animation: fadeUp 0.6s 0.4s ease both;
}
.hero__stat {
  flex: 1;
  padding: 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.hero__stat:last-child { border-right: none; }
.hero__stat span {
  display: block;
  font-family: var(--font);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}
.hero__stat em {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
  margin-top: 2px;
}

/* ── NICHES ─────────────────────────────────────────────────── */
.niches {
  padding: 96px 0;
  background: var(--bg2);
}
.niches__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.niche-card {
  display: block;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s ease;
  overflow: hidden;
}
.niche-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.niche-card:hover {
  border-color: rgba(0,212,255,0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.niche-card:hover::before { transform: scaleX(1); }
.niche-card__tag {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(0,212,255,0.12);
  color: var(--accent);
  border: 1px solid rgba(0,212,255,0.2);
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}
.niche-card__icon {
  font-size: 36px;
  margin-bottom: 16px;
  line-height: 1;
}
.niche-card h3 {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.niche-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.niche-card__arrow {
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.2s;
}
.niche-card:hover .niche-card__arrow { transform: translateX(4px); }

/* ── TARIFFS ────────────────────────────────────────────────── */
.tariffs {
  padding: 96px 0;
  background: var(--bg);
}
.tariffs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.tariff-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: all 0.25s ease;
}
.tariff-card--popular {
  border-color: rgba(0,212,255,0.35);
  background: linear-gradient(160deg, rgba(0,212,255,0.05) 0%, var(--surface) 60%);
  transform: scale(1.03);
  box-shadow: 0 0 0 1px rgba(0,212,255,0.15), var(--shadow);
}
.tariff-card__badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.tariff-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.tariff-card__name {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 700;
}
.tariff-card__count {
  font-size: 13px;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  padding: 4px 12px;
  border-radius: 100px;
}
.tariff-card__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.price-val {
  font-family: var(--font);
  font-size: 42px;
  font-weight: 900;
  color: var(--accent);
}
.price-old {
  font-size: 18px;
  color: var(--muted);
  text-decoration: line-through;
}
.tariff-card__per {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.tariff-card__desc {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.tariff-card__features {
  margin-bottom: 28px;
}
.tariff-card__features li {
  font-size: 14px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.tariff-card__features li:last-child { border-bottom: none; }

.tariffs__note {
  text-align: center;
  margin-top: 32px;
  color: var(--muted);
  font-size: 15px;
}
.tariffs__note a {
  color: var(--accent);
  border-bottom: 1px solid rgba(0,212,255,0.3);
  transition: border-color 0.2s;
}
.tariffs__note a:hover { border-color: var(--accent); }

/* ── HOW IT WORKS ───────────────────────────────────────────── */
.howto {
  padding: 96px 0;
  background: var(--bg2);
}
.howto__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.howto__steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 80px; right: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
  opacity: 0.3;
}
.howto__step { text-align: center; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 auto 20px;
}
.howto__step h3 {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}
.howto__step p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq { padding: 96px 0; background: var(--bg); }
.faq__list {
  max-width: 760px;
  margin: 0 auto;
}
.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  padding: 22px 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s;
}
.faq__q:hover { color: var(--accent); }
.faq__arrow {
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq__q[aria-expanded="true"] .faq__arrow { transform: rotate(45deg); }
.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}
.faq__a p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  padding-bottom: 20px;
}

/* ── FINAL CTA ──────────────────────────────────────────────── */
.cta-final {
  padding: 96px 0;
  text-align: center;
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 100%, rgba(124,58,237,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-final .container { position: relative; z-index: 1; }
.cta-final h2 {
  font-family: var(--font);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-final p {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 36px;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); }
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
}
.footer__brand .site-logo { margin-bottom: 16px; }
.footer__brand p { color: var(--muted); font-size: 14px; margin-bottom: 20px; max-width: 280px; }
.tg-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  transition: opacity 0.2s;
}
.tg-link:hover { opacity: 0.8; }
.footer__links h4 {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}
.footer__links ul li { margin-bottom: 10px; }
.footer__links ul li a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s;
}
.footer__links ul li a:hover { color: var(--text); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.footer__bottom a { color: var(--accent); }

/* ── NICHE PAGE TEMPLATE ────────────────────────────────────── */
.niche-hero {
  padding: 80px 0 60px;
  text-align: center;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.niche-hero h1 {
  font-family: var(--font);
  font-size: clamp(28px, 5vw, 50px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.niche-hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 32px;
}
.niche-content {
  padding: 80px 0;
}
.niche-content h2 {
  font-family: var(--font);
  font-size: 26px;
  font-weight: 700;
  margin: 48px 0 16px;
}
.niche-content p { color: var(--muted); margin-bottom: 16px; line-height: 1.75; }
.niche-content ul li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  margin-bottom: 10px;
}
.niche-content ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .niches__grid { grid-template-columns: repeat(2, 1fr); }
  .tariffs__grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .tariff-card--popular { transform: none; }
  .howto__steps { grid-template-columns: repeat(2, 1fr); }
  .howto__steps::before { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .site-nav, .header__cta { display: none; }
  .burger { display: flex; }
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 68px 0 0;
    background: var(--bg);
    padding: 32px 24px;
    gap: 20px;
    z-index: 99;
  }
  .site-nav.is-open a { font-size: 20px; }
  .site-nav.is-open + .header__cta { display: none; }
  .niches__grid { grid-template-columns: 1fr; }
  .howto__steps { grid-template-columns: 1fr; }
  .hero__stats { flex-direction: column; max-width: 240px; }
  .hero__stat { border-right: none; border-bottom: 1px solid var(--border); }
  .hero__stat:last-child { border-bottom: none; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom .container { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 64px 0 56px; }
  .hero__cta-group { flex-direction: column; align-items: center; }
  .btn--lg { width: 100%; justify-content: center; max-width: 300px; }
  .niches, .tariffs, .howto, .faq, .cta-final { padding: 64px 0; }
}
