/* OpenVPN — openvpn-24.lol
   Fonts: Pridi (serif headings) + Cabin (sans body)
   Palette: deep burnt orange + slate accent on warm cream
   Axes: Hero B (dark, split), Nav A (white sticky shadow), Cards A (shadow lift),
   Typo A (serif+sans), Buttons D (arrow), Sections A (alt), Price B (3 col),
   FAQ B (2 col open), Footer C (3 col + CTA above), Anim A (fade-up)
*/

:root {
  --primary: #9A3412;
  --primary-dark: #7C2D12;
  --primary-soft: #C2410C;
  --accent: #1E293B;
  --accent-2: #334155;
  --bg: #FFF7ED;
  --bg-alt: #FED7AA;
  --bg-deep: #0F172A;
  --bg-deep-2: #1E293B;
  --text: #1A1A2E;
  --text-muted: #525078;
  --card-bg: #FFFFFF;
  --border: #FED7AA;
  --border-strong: #FDBA74;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 6px rgba(154, 52, 18, 0.08);
  --shadow-md: 0 8px 22px rgba(30, 41, 59, 0.10);
  --shadow-lg: 0 18px 44px rgba(30, 41, 59, 0.18);
  --maxw: 1200px;
  --font-head: 'Pridi', Georgia, 'Times New Roman', serif;
  --font-body: 'Cabin', 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { color: var(--text); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Header (Nav A: white sticky + shadow) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFFF;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.07);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.32rem;
  color: var(--text);
}

.brand img { width: 38px; height: 38px; border-radius: 9px; }

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.97rem;
  position: relative;
}

.nav-links a:not(.nav-cta):hover { color: var(--primary); }

.nav-links a.nav-cta {
  background: var(--primary);
  color: #000000 !important;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: transform .2s ease, background .2s ease;
}

.nav-links a.nav-cta:hover {
  color: #000000 !important;
  background: var(--primary-soft);
  transform: translateY(-1px);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}

.burger span {
  display: block;
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--text);
  transition: transform .25s ease, top .25s ease, opacity .15s ease;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }

.burger.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- Mobile Nav ---------- */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #FFFFFF;
  padding: 16px 22px 20px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav.show { display: flex; }
.mobile-nav a {
  padding: 12px 0;
  color: var(--text);
  border-bottom: 1px dashed var(--border);
  font-weight: 500;
}
.mobile-nav a.nav-cta {
  background: var(--primary);
  color: #000;
  font-weight: 800;
  border-radius: 7px;
  text-align: center;
  margin-top: 10px;
  border-bottom: none;
  padding: 12px 18px;
}

/* ---------- Buttons (D: with arrow) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn .arrow {
  display: inline-block;
  width: 18px;
  height: 18px;
  position: relative;
  transition: transform .2s ease;
}
.btn .arrow::before {
  content: '';
  position: absolute;
  left: 1px; top: 50%;
  width: 14px; height: 2px;
  background: currentColor;
  transform: translateY(-50%);
}
.btn .arrow::after {
  content: '';
  position: absolute;
  right: 1px; top: 50%;
  width: 8px; height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--primary);
  color: #FFF7ED;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--primary-soft);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: #FFF7ED;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-ghost:hover {
  background: var(--accent);
  color: #FFF7ED;
  transform: translateY(-2px);
}

.btn-light {
  background: #FFF7ED;
  color: var(--accent);
}
.btn-light:hover {
  background: #FED7AA;
  color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- Hero (B: dark, content left, visual right) ---------- */
.hero {
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-deep-2) 60%, #2A1D14 100%);
  color: #F8FAFC;
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(154, 52, 18, 0.32) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(154, 52, 18, 0.18);
  color: #FED7AA;
  border: 1px solid rgba(254, 215, 170, 0.25);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: #FB923C;
  border-radius: 50%;
  box-shadow: 0 0 10px #FB923C;
}

.hero h1 {
  color: #FFF7ED;
  margin-bottom: 22px;
}
.hero h1 span { color: #FB923C; }

.hero-desc {
  font-size: 1.1rem;
  color: #CBD5E1;
  margin-bottom: 30px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 26px;
  font-size: 0.9rem;
  color: #94A3B8;
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-trust span::before {
  content: '';
  width: 14px; height: 14px;
  border: 2px solid #FB923C;
  border-right: none;
  border-top: none;
  transform: rotate(-45deg);
  margin-bottom: 3px;
}

/* Hero visual — protocol diagram */
.hero-visual {
  position: relative;
  max-width: 460px;
  margin-left: auto;
}

.diagram {
  position: relative;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(254, 215, 170, 0.18);
  border-radius: 22px;
  padding: 32px;
  backdrop-filter: blur(6px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 18px 22px;
  min-height: 420px;
  align-items: center;
}

.diagram-node {
  background: rgba(154, 52, 18, 0.22);
  border: 1.5px solid #FB923C;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #FFF7ED;
  font-family: var(--font-body);
  text-align: center;
  line-height: 1.3;
  position: relative;
  z-index: 2;
}
.node-1 { grid-column: 1; grid-row: 1; }
.node-2 { grid-column: 2; grid-row: 1; background: rgba(30, 41, 59, 0.6); border-color: #94A3B8; }
.node-4 { grid-column: 1; grid-row: 3; background: rgba(30, 41, 59, 0.6); border-color: #94A3B8; }
.node-5 { grid-column: 2; grid-row: 3; }

.diagram svg {
  position: absolute;
  inset: 32px;
  width: calc(100% - 64px);
  height: calc(100% - 64px);
  z-index: 0;
  pointer-events: none;
}

.diagram-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  z-index: 2;
  background: var(--primary);
  color: #FFF7ED;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

/* ---------- Stats bar ---------- */
.stats {
  background: var(--card-bg);
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- Section base ---------- */
section { padding: 76px 0; }
.section-light { background: var(--bg); }
.section-alt { background: var(--card-bg); }
.section-warm { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }

.section-head {
  text-align: center;
  margin-bottom: 48px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-head .eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 12px;
}
.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 14px;
}

/* ---------- Features (Cards A: shadow + hover lift) ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feat-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid transparent;
}
.feat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.feat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #FFF7ED;
}
.feat-icon svg { width: 28px; height: 28px; }
.feat-card h3 { margin-bottom: 10px; }
.feat-card p { color: var(--text-muted); font-size: 0.97rem; }

/* ---------- Platforms ---------- */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.plat-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.plat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.plat-icon {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.plat-icon svg { width: 28px; height: 28px; }
.plat-card h4 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
}
.plat-card p { color: var(--text-muted); font-size: 0.9rem; flex: 1; }
.plat-link {
  margin-top: 8px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.plat-link::after { content: '→'; transition: transform .2s; }
.plat-link:hover::after { transform: translateX(3px); }

/* ---------- Why OpenVPN — text block ---------- */
.why-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.why-text h2 { margin-bottom: 18px; }
.why-text p { color: var(--text); margin-bottom: 14px; line-height: 1.75; }
.why-text strong { color: var(--primary-dark); font-weight: 700; }

.why-side {
  background: var(--accent);
  color: #FFF7ED;
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  box-shadow: var(--shadow-md);
}
.why-side h3 { color: #FB923C; margin-bottom: 18px; font-family: var(--font-head); }
.why-side ul { list-style: none; }
.why-side li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(254, 215, 170, 0.14);
  color: #E2E8F0;
  display: flex;
  gap: 12px;
}
.why-side li:last-child { border: none; }
.why-side li::before {
  content: '◆';
  color: #FB923C;
  font-size: 0.7rem;
  margin-top: 6px;
}

/* ---------- Use cases ---------- */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.uc-card {
  background: var(--card-bg);
  padding: 26px;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.uc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.uc-card h4 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.uc-card p { color: var(--text-muted); font-size: 0.96rem; }

/* ---------- Pricing (B: 3 columns, descriptors only) ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.price-card.featured {
  border: 2px solid var(--primary);
  position: relative;
}
.price-card.featured::before {
  content: 'Чаще всего выбирают';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #FFF7ED;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  white-space: nowrap;
}
.price-card h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.price-tag {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
  margin: 14px 0 8px;
}
.price-tag small { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.price-card .price-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 18px; }
.price-card ul { list-style: none; margin: 16px 0 24px; }
.price-card li {
  padding: 8px 0;
  color: var(--text);
  font-size: 0.94rem;
  display: flex;
  gap: 8px;
}
.price-card li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 800;
}
.price-card .btn { width: 100%; justify-content: center; margin-top: auto; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #FFF7ED;
  text-align: center;
  padding: 64px 28px;
  border-radius: var(--radius-lg);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.cta-banner::before, .cta-banner::after {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255, 247, 237, 0.06);
  pointer-events: none;
}
.cta-banner::before { top: -100px; left: -100px; }
.cta-banner::after { bottom: -130px; right: -100px; }
.cta-banner h2 { color: #FFF7ED; position: relative; }
.cta-banner p { color: #FED7AA; margin: 14px 0 26px; position: relative; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-light { position: relative; }

/* ---------- FAQ (B: 2-column, all open) ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.faq-item h4 {
  font-family: var(--font-head);
  font-size: 1.08rem;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 600;
}
.faq-item p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* ---------- Footer (C: 3 columns + CTA above) ---------- */
.site-footer {
  background: var(--accent);
  color: #CBD5E1;
  padding: 70px 0 28px;
  margin-top: 80px;
}
.foot-pre-cta {
  background: var(--bg);
  padding: 56px 0 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 44px;
}
.foot-col h5 {
  font-family: var(--font-head);
  color: #FFF7ED;
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 9px; }
.foot-col a { color: #94A3B8; font-size: 0.93rem; }
.foot-col a:hover { color: #FB923C; }
.foot-brand p {
  color: #94A3B8;
  margin-top: 14px;
  font-size: 0.94rem;
  max-width: 420px;
}
.foot-brand .brand { color: #FFF7ED; }

.foot-bottom {
  border-top: 1px solid rgba(254, 215, 170, 0.14);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.86rem;
  color: #64748B;
}

/* ---------- Instruktsiya ---------- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 880px;
  margin: 0 auto;
}
.step {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 36px;
  border-left: 6px solid var(--primary);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 26px;
  align-items: start;
}
.step-num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.step h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.step p { color: var(--text); line-height: 1.7; margin-bottom: 12px; }
.step .btn { margin-top: 8px; }

.after-pay {
  background: var(--accent);
  color: #FFF7ED;
  padding: 56px 36px;
  border-radius: var(--radius-lg);
  margin-top: 44px;
}
.after-pay h2 { color: #FB923C; margin-bottom: 14px; }
.after-pay p { color: #CBD5E1; margin-bottom: 26px; }
.after-pay .platforms-grid .plat-card {
  background: rgba(255, 247, 237, 0.05);
  border-color: rgba(254, 215, 170, 0.2);
}
.after-pay .plat-card h4 { color: #FFF7ED; }
.after-pay .plat-card p { color: #94A3B8; }
.after-pay .plat-icon { background: rgba(154, 52, 18, 0.3); color: #FB923C; }
.after-pay .plat-link { color: #FB923C; }

/* ---------- Anim A: fade-up ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero-visual { margin: 0 auto; max-width: 380px; }
  .why-block { grid-template-columns: 1fr; gap: 30px; }
  .features-grid, .platforms-grid, .price-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid, .usecases-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .burger { display: block; }
  section { padding: 56px 0; }
  .hero { padding: 56px 0 64px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .features-grid, .platforms-grid, .price-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .foot-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; padding: 26px; gap: 14px; }
  .step-num { font-size: 2.4rem; }
  .cta-banner { padding: 48px 22px; }
  .after-pay { padding: 38px 22px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.55rem; }
}
