/* ============================================================
   EOFVPN — Business / Corporate page
   Темизация: индиго-палитра поверх styles.css
   Активируется классом body.theme-corporate
   ============================================================ */

body.theme-corporate {
  --brand: #5b8def;
  --brand-bright: #7aa3ff;
  --brand-deep: #3463d6;
  --brand-rgb: 91, 141, 239;
  --brand-bright-rgb: 122, 163, 255;
  --brand-deep-rgb: 52, 99, 214;

  --shadow-glow: 0 12px 40px rgba(91, 141, 239, .22);
  --border-brand: rgba(91, 141, 239, 0.32);
}

/* Фоновые блобы — заменим зелёный комплект на сине-индиго */
body.theme-corporate .blob-1 {
  background: radial-gradient(circle, var(--brand), transparent 70%);
}
body.theme-corporate .blob-2 {
  background: radial-gradient(circle, #6f3bd6, transparent 70%); /* фиолетовый акцент для глубины */
  opacity: .08;
}
body.theme-corporate .blob-3 {
  background: radial-gradient(circle, var(--brand-bright), transparent 70%);
  opacity: .10;
}

/* ============================================================
   Базовый отступ для секций бизнес-страницы
   (в основном styles.css класса .section нет — каждая секция
    задаёт свой padding; здесь нам нужен общий ритм)
   ============================================================ */
body.theme-corporate .section {
  padding: 90px 0;
  position: relative;
}
body.theme-corporate .section + .section {
  padding-top: 70px;
}
body.theme-corporate .section .section-head { margin-bottom: 48px; }

@media (max-width: 1024px) {
  body.theme-corporate .section { padding: 70px 0; }
  body.theme-corporate .section + .section { padding-top: 56px; }
  body.theme-corporate .section .section-head { margin-bottom: 36px; }
}
@media (max-width: 640px) {
  body.theme-corporate .section { padding: 56px 0; }
  body.theme-corporate .section + .section { padding-top: 44px; }
  body.theme-corporate .section .section-head { margin-bottom: 28px; }
}

/* ============================================================
   Hero для корпоративной страницы
   ============================================================ */
.hero-biz {
  padding: 100px 0 80px;
  position: relative;
}
.hero-biz .hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-biz .hero-title {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.06;
  letter-spacing: -1px;
  font-weight: 800;
  margin: 18px 0 18px;
  background: linear-gradient(180deg, #ffffff 0%, #cfd8ee 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: normal;
  text-wrap: balance;
}
.hero-biz .hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-biz .hero-title br { display: inline; }
.hero-biz .hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 580px;
  margin-bottom: 28px;
}
.hero-biz .hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), .10);
  border: 1px solid rgba(var(--brand-rgb), .28);
  color: var(--brand-bright);
  font-size: 13px; font-weight: 600;
  letter-spacing: .2px;
  max-width: 100%;
  white-space: normal;
  text-align: left;
}
.hero-biz .hero-pill > span:not(.dot) { min-width: 0; }
.hero-biz .hero-pill .dot { flex-shrink: 0; }
.hero-biz .hero-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-bright);
  box-shadow: 0 0 12px var(--brand-bright);
}
.hero-biz .hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 28px;
}
.hero-biz .hero-trust {
  display: flex; flex-wrap: wrap; gap: 18px 24px;
  color: var(--text-mute); font-size: 13px;
}
.hero-biz .hero-trust li {
  display: flex; align-items: center; gap: 8px;
  list-style: none;
}
.hero-biz .hero-trust li svg {
  width: 16px; height: 16px; color: var(--brand-bright);
  flex-shrink: 0;
}

/* ============================================================
   Hero diagram — центральный hub с лучами
   ============================================================ */
.hero-diagram {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin: 0 auto;
}
.hero-diagram .glow {
  position: absolute; inset: 12%;
  background: radial-gradient(closest-side, rgba(var(--brand-rgb), .35), transparent 70%);
  filter: blur(50px);
  z-index: 0;
}
.hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 130px; height: 130px;
  border-radius: 32px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(var(--brand-rgb), .22), rgba(var(--brand-deep-rgb), .12));
  border: 1px solid rgba(var(--brand-bright-rgb), .35);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, .45),
    0 0 0 1px rgba(var(--brand-bright-rgb), .12) inset,
    0 0 80px rgba(var(--brand-rgb), .35);
  z-index: 2;
  animation: hubPulse 4s ease-in-out infinite;
}
.hub::before {
  content: "";
  position: absolute; inset: -8px;
  border-radius: 36px;
  border: 1px dashed rgba(var(--brand-bright-rgb), .25);
  animation: spin 30s linear infinite;
}
.hub-logo { width: 64px; height: 64px; display: block; }

@keyframes hubPulse {
  0%, 100% { box-shadow: 0 22px 50px rgba(0, 0, 0, .45), 0 0 0 1px rgba(var(--brand-bright-rgb), .12) inset, 0 0 80px rgba(var(--brand-rgb), .35); }
  50%      { box-shadow: 0 22px 50px rgba(0, 0, 0, .45), 0 0 0 1px rgba(var(--brand-bright-rgb), .18) inset, 0 0 110px rgba(var(--brand-rgb), .55); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.node {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(15, 20, 27, .85);
  border: 1px solid rgba(var(--brand-bright-rgb), .22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .45);
  font-size: 12.5px; font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  z-index: 3;
}
.node .ico {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(var(--brand-rgb), .14);
  color: var(--brand-bright);
}
.node .ico svg { width: 14px; height: 14px; }
.node small { display: block; color: var(--text-mute); font-weight: 500; font-size: 11px; margin-top: 1px; }

.node-1 { top: 4%;  left: 8%;  animation: nodeFloat 7s ease-in-out infinite; }
.node-2 { top: 8%;  right: 4%; animation: nodeFloat 8s ease-in-out -1.5s infinite; }
.node-3 { bottom: 22%; left: -2%; animation: nodeFloat 9s ease-in-out -3s infinite; }
.node-4 { bottom: 6%; right: 2%; animation: nodeFloat 7.5s ease-in-out -2.2s infinite; }
.node-5 { bottom: -2%; left: 38%; animation: nodeFloat 8.5s ease-in-out -4s infinite; }

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

.diag-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}
.diag-svg .line {
  fill: none;
  stroke: rgba(var(--brand-bright-rgb), .35);
  stroke-width: 1.4;
  stroke-dasharray: 4 6;
  animation: dash 4s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -100; } }

/* ============================================================
   KPI / Stats strip
   ============================================================ */
.biz-kpi {
  padding: 60px 0 40px;
}
.biz-kpi .kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.kpi-card {
  padding: 22px 22px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(var(--brand-bright-rgb), .18), transparent 50%);
  pointer-events: none;
  opacity: .8;
}
.kpi-card > * { position: relative; z-index: 1; }
.kpi-card .num {
  font-size: 36px; font-weight: 800;
  background: linear-gradient(180deg, var(--brand-bright), var(--brand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}
.kpi-card .lbl { color: var(--text-dim); font-size: 13px; margin-top: 4px; }
.kpi-card .desc { color: var(--text-mute); font-size: 12.5px; margin-top: 8px; line-height: 1.5; }

/* ============================================================
   Use-cases (Сценарии)
   ============================================================ */
.uc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.uc-card {
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card));
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease;
}
.uc-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--brand-rgb), .28);
}
.uc-card::after {
  content: "";
  position: absolute;
  width: 240px; height: 240px;
  right: -60px; top: -60px;
  background: radial-gradient(circle, rgba(var(--brand-rgb), .14), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.uc-card > * { position: relative; z-index: 1; }
.uc-ico {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(var(--brand-rgb), .22), rgba(var(--brand-rgb), .06));
  border: 1px solid rgba(var(--brand-rgb), .28);
  color: var(--brand-bright);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.uc-ico svg { width: 22px; height: 22px; }
.uc-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.uc-card p { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }

/* ============================================================
   Возможности (features grid 3x2)
   ============================================================ */
.biz-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.biz-feat {
  padding: 24px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.biz-feat:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--brand-rgb), .28);
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card));
}
.biz-feat-ico {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(var(--brand-rgb), .12);
  border: 1px solid rgba(var(--brand-rgb), .22);
  color: var(--brand-bright);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.biz-feat-ico svg { width: 20px; height: 20px; }
.biz-feat h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.biz-feat p { color: var(--text-dim); font-size: 13.5px; line-height: 1.55; }

/* ============================================================
   Безопасность — split row
   ============================================================ */
.sec-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 36px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(var(--brand-rgb), .10), transparent 60%),
    var(--bg-card);
  border: 1px solid rgba(var(--brand-rgb), .18);
  position: relative;
  overflow: hidden;
}
.sec-split::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  right: -200px; top: -200px;
  background: radial-gradient(circle, rgba(var(--brand-rgb), .14), transparent 70%);
  pointer-events: none;
}
.sec-split > * { position: relative; z-index: 1; }
.sec-list { display: flex; flex-direction: column; gap: 14px; }
.sec-list li {
  list-style: none;
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14.5px; color: var(--text-dim); line-height: 1.55;
}
.sec-list li strong { color: var(--text); display: block; margin-bottom: 2px; font-weight: 700; }
.sec-check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(var(--brand-rgb), .35);
}
.sec-check svg { width: 14px; height: 14px; }

.sec-shield {
  position: relative;
  width: 100%; aspect-ratio: 1 / 1; max-width: 360px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.sec-shield .ring {
  position: absolute; inset: 8%;
  border-radius: 50%;
  border: 1px dashed rgba(var(--brand-bright-rgb), .25);
  animation: spin 24s linear infinite;
}
.sec-shield .ring2 {
  position: absolute; inset: 22%;
  border-radius: 50%;
  border: 1px dashed rgba(var(--brand-bright-rgb), .35);
  animation: spin 16s linear reverse infinite;
}
.sec-shield .core {
  width: 130px; height: 130px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(var(--brand-rgb), .25), rgba(var(--brand-deep-rgb), .15));
  border: 1px solid rgba(var(--brand-bright-rgb), .35);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-bright);
  box-shadow: 0 0 80px rgba(var(--brand-rgb), .35), inset 0 0 0 1px rgba(255, 255, 255, .06);
  z-index: 2;
}
.sec-shield .core svg { width: 56px; height: 56px; }

/* ============================================================
   Принципы работы (нумерованные карточки)
   ============================================================ */
.princ-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.princ-card {
  position: relative;
  padding: 28px 26px 26px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.princ-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(var(--brand-rgb), .08), transparent 55%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.princ-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--brand-rgb), .3);
}
.princ-card:hover::before { opacity: 1; }
.princ-num {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.5px;
  line-height: 1;
  color: transparent;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
}
.princ-num::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-bright), transparent);
}
.princ-card h4 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin: 14px 0 10px;
  color: var(--text);
  position: relative;
}
.princ-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-mute);
  margin: 0;
  position: relative;
}

/* ============================================================
   Tiers — описательные планы (без цен)
   ============================================================ */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tier-card {
  padding: 28px 26px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}
.tier-card:hover { transform: translateY(-3px); border-color: rgba(var(--brand-rgb), .3); }
.tier-card.highlight {
  border-color: rgba(var(--brand-bright-rgb), .35);
  background:
    linear-gradient(180deg, rgba(var(--brand-rgb), .10), transparent 50%),
    var(--bg-card);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .35), 0 0 0 1px rgba(var(--brand-rgb), .14) inset;
}
.tier-tag {
  display: inline-flex; align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
  color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 14px;
}
.tier-name {
  font-size: 22px; font-weight: 800; color: var(--text);
  margin-bottom: 8px;
}
.tier-desc {
  font-size: 13.5px; color: var(--text-mute);
  line-height: 1.55; margin-bottom: 18px;
}
.tier-features {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 22px; flex: 1;
}
.tier-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-dim); line-height: 1.45;
}
.tier-features .check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 6px;
  background: rgba(var(--brand-rgb), .14);
  color: var(--brand-bright);
  display: flex; align-items: center; justify-content: center;
}
.tier-features .check svg { width: 12px; height: 12px; }
.tier-cta { margin-top: auto; }

/* ============================================================
   FAQ (использует <details>)
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color .25s ease;
}
.faq-item[open] { border-color: rgba(var(--brand-rgb), .3); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 15px; font-weight: 600; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 12px; height: 12px;
  border-right: 2px solid var(--brand-bright);
  border-bottom: 2px solid var(--brand-bright);
  transform: rotate(45deg);
  transition: transform .3s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item .faq-body {
  padding: 0 22px 20px;
  font-size: 14px; color: var(--text-dim); line-height: 1.6;
}

/* ============================================================
   Final CTA block
   ============================================================ */
.biz-cta {
  margin: 40px auto 0;
  max-width: 1080px;
  padding: 44px 40px;
  border-radius: 24px;
  background:
    radial-gradient(700px 400px at 90% -20%, rgba(var(--brand-rgb), .18), transparent 60%),
    linear-gradient(180deg, rgba(var(--brand-deep-rgb), .14), rgba(15, 20, 27, .9) 70%);
  border: 1px solid rgba(var(--brand-rgb), .28);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.biz-cta h3 {
  font-size: 30px; font-weight: 800; margin-bottom: 12px;
  letter-spacing: -.6px;
  background: linear-gradient(180deg, #fff, #cfd8ee);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.biz-cta p { color: var(--text-dim); font-size: 16px; max-width: 640px; margin: 0 auto 24px; line-height: 1.55; }
.biz-cta .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1024px) {
  .hero-biz .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-diagram { max-width: 420px; }
  .biz-kpi .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .biz-features-grid { grid-template-columns: repeat(2, 1fr); }
  .princ-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-grid { grid-template-columns: 1fr; }
  .sec-split { grid-template-columns: 1fr; padding: 28px; }
  .sec-shield { max-width: 280px; }
}

@media (max-width: 768px) {
  .hero-biz { padding: 80px 0 60px; }
  .uc-grid { grid-template-columns: 1fr; }
  .biz-features-grid { grid-template-columns: 1fr; }
  .princ-grid { grid-template-columns: 1fr; gap: 14px; }
  .princ-card { padding: 22px 22px 20px; }
  .hero-diagram { max-width: 360px; }
  .node { font-size: 11.5px; padding: 9px 11px; }
  .node .ico { width: 22px; height: 22px; }
  .biz-cta { padding: 32px 22px; }
  .biz-cta h3 { font-size: 24px; }
  .kpi-card .num { font-size: 30px; }
}

@media (max-width: 480px) {
  .biz-kpi .kpi-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi-card { padding: 16px 16px; }
  .hero-diagram { max-width: 300px; }
  .hub { width: 100px; height: 100px; }
  .hub-logo { width: 50px; height: 50px; }
  .node small { display: none; }
  .hero-biz .hero-title { font-size: 32px; line-height: 1.08; letter-spacing: -.8px; }
  .hero-biz .hero-sub { font-size: 15.5px; }
  .hero-biz .hero-pill { font-size: 12px; padding: 7px 12px; }
  .hero-biz .hero-cta .btn { flex: 1 1 0; min-width: 140px; }
  .biz-cta h3 { font-size: 22px; }
  .tier-card { padding: 22px 20px; }
}
