/* Tyler VPN — warm terra & slate on cream
   Fonts: DM Serif Display (headings) + Karla (body)
   Axes: Hero A, Nav A, Cards A, Typo A, Buttons A, Sections A, Price B, FAQ B, Footer D, Anim A
*/

:root {
  --primary: #B45309;
  --primary-dark: #92400E;
  --accent: #155E75;
  --accent-dark: #0E4A5E;
  --bg: #FFFEF7;
  --bg-alt: #FEF3C7;
  --text: #292524;
  --text-muted: #57534E;
  --card-bg: #FFFFFF;
  --border: #E7E5E4;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(120, 53, 15, 0.06);
  --shadow-md: 0 8px 24px rgba(120, 53, 15, 0.10);
  --shadow-lg: 0 18px 44px rgba(120, 53, 15, 0.14);
  --container: 1180px;
  --transition: 0.28s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Karla', system-ui, -apple-system, sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.12rem; }

p { color: var(--text-muted); }
a { color: inherit; text-decoration: none; transition: color var(--transition); }

img { max-width: 100%; display: block; }

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

/* ---------- BUTTONS (rounded 10-12px) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 11px;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(180, 83, 9, 0.28);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(180, 83, 9, 0.36);
}

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

.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- HEADER (white sticky, shadow) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--text);
}
.logo img { width: 38px; height: 38px; }
.logo span { font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--text);
}
.nav-links a:not(.nav-cta):hover { color: var(--primary); }

.nav-links a.nav-cta {
  color: #000000;
  font-weight: 800;
  background: var(--bg-alt);
  padding: 10px 20px;
  border-radius: 10px;
  border: 2px solid var(--primary);
}
.nav-links a.nav-cta:hover {
  color: #000000;
  background: var(--primary);
  border-color: var(--primary);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  width: 26px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 78%;
  max-width: 340px;
  height: 100vh;
  background: #fff;
  z-index: 200;
  padding: 90px 30px 30px;
  transition: right 0.35s ease;
  box-shadow: -10px 0 32px rgba(0,0,0,0.13);
}
.mobile-nav.open { right: 0; }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.mobile-nav a {
  font-size: 1.1rem;
  font-weight: 600;
  display: block;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text);
}
.mobile-nav .btn { margin-top: 18px; }
.mobile-close {
  position: absolute;
  top: 22px;
  right: 22px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text);
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.overlay.active { opacity: 1; pointer-events: all; }

/* ---------- HERO (gradient + form-card overlay) ---------- */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 38%, #FCD34D 78%, #F59E0B 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(21, 94, 117, 0.18), transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(180, 83, 9, 0.20), transparent 70%);
  border-radius: 50%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 22px;
  border: 1px solid rgba(180, 83, 9, 0.15);
}
.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #16A34A;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
}

.hero h1 { margin-bottom: 22px; }
.hero p.lead {
  font-size: 1.13rem;
  margin-bottom: 32px;
  color: #44403C;
  max-width: 540px;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: #44403C;
  font-weight: 600;
}
.trust-item .dot {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
}

/* Hero form-card */
.hero-card {
  background: #fff;
  padding: 36px 32px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-card-tag {
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-card h3 {
  margin-bottom: 8px;
  font-size: 1.55rem;
}
.hero-card .small {
  color: var(--text-muted);
  margin-bottom: 22px;
  font-size: 0.94rem;
}
.hero-card-list {
  list-style: none;
  margin-bottom: 24px;
}
.hero-card-list li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.96rem;
}
.hero-card-list li:last-child { border-bottom: none; }
.hero-card-list span:last-child {
  font-weight: 700;
  color: var(--primary-dark);
}

/* ---------- STATS BAR ---------- */
.stats {
  background: var(--bg-alt);
  padding: 48px 0;
  border-top: 1px solid rgba(180, 83, 9, 0.10);
  border-bottom: 1px solid rgba(180, 83, 9, 0.10);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--primary-dark);
  display: block;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ---------- SECTION (alternating) ---------- */
section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ---------- FEATURES (shadow + hover lift) ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.feature-card {
  background: var(--card-bg);
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(180, 83, 9, 0.22);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--bg-alt), #FDE68A);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--primary-dark);
}
.feature-card h3 { margin-bottom: 11px; font-size: 1.22rem; }
.feature-card p { font-size: 0.97rem; }

/* ---------- PLATFORMS ---------- */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.platform-card {
  background: var(--card-bg);
  padding: 28px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all var(--transition);
}
.platform-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.platform-icon {
  width: 52px;
  height: 52px;
  border-radius: 11px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--primary-dark);
  flex-shrink: 0;
}
.platform-info h4 { margin-bottom: 2px; font-size: 1.05rem; }
.platform-info span { font-size: 0.85rem; color: var(--text-muted); }
.platform-card a { display: contents; }

/* ---------- WHY-TYLER text block ---------- */
.why-tyler {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.why-text h2 { margin-bottom: 18px; }
.why-text p { margin-bottom: 16px; font-size: 1.02rem; }
.why-list {
  list-style: none;
  margin-top: 22px;
}
.why-list li {
  padding: 12px 0 12px 30px;
  position: relative;
  font-size: 0.98rem;
  color: var(--text);
}
.why-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  border: 4px solid var(--bg-alt);
}
.why-visual {
  background: linear-gradient(160deg, #fff, #FEF3C7);
  border-radius: 22px;
  padding: 38px 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.why-quote {
  font-family: 'DM Serif Display', serif;
  font-size: 1.55rem;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 20px;
  position: relative;
  padding-top: 14px;
}
.why-quote::before {
  content: '“';
  position: absolute;
  top: -22px;
  left: -8px;
  font-size: 4.5rem;
  color: var(--primary);
  font-family: 'DM Serif Display', serif;
}
.why-author {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---------- USE CASES ---------- */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.usecase {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.usecase:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.usecase-tag {
  display: inline-block;
  background: rgba(21, 94, 117, 0.10);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.usecase h3 { margin-bottom: 10px; font-size: 1.25rem; }
.usecase p { font-size: 0.97rem; }

/* ---------- PRICING (3 cols, no ₽) ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.price-card {
  background: #fff;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  transition: all var(--transition);
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.price-card.featured {
  background: linear-gradient(165deg, #fff, #FEF3C7);
  border-color: var(--primary);
  border-width: 2px;
  transform: translateY(-8px);
}
.price-card.featured:hover { transform: translateY(-12px); }
.price-flag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 5px 16px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
}
.price-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.price-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  min-height: 44px;
}
.price-features {
  list-style: none;
  margin-bottom: 28px;
  text-align: left;
}
.price-features li {
  padding: 9px 0 9px 26px;
  font-size: 0.94rem;
  position: relative;
  color: var(--text);
  border-bottom: 1px dashed var(--border);
}
.price-features li:last-child { border-bottom: none; }
.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 9px;
  color: var(--primary);
  font-weight: 700;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #92400E 60%, #155E75 130%);
  padding: 72px 0;
  color: #fff;
  text-align: center;
  border-radius: 0;
}
.cta-banner h2 {
  color: #fff;
  margin-bottom: 14px;
}
.cta-banner p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 28px;
}
.cta-banner .btn-primary {
  background: #fff;
  color: var(--primary);
}
.cta-banner .btn-primary:hover {
  background: var(--bg-alt);
  color: var(--primary-dark);
}

/* ---------- FAQ (2 col open grid) ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 30px;
}
.faq-item {
  background: #fff;
  padding: 26px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
}
.faq-item h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
  font-family: 'DM Serif Display', serif;
}
.faq-item p {
  font-size: 0.96rem;
  line-height: 1.65;
}

/* ---------- FOOTER (two-level) ---------- */
.site-footer {
  background: #1C1917;
  color: #D6D3D1;
  padding-top: 60px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid #44403C;
}
.footer-col h4 {
  color: #fff;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: #D6D3D1;
  font-size: 0.94rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: #FCD34D; }
.footer-brand .logo span { color: #fff; }
.footer-brand p { font-size: 0.93rem; margin-top: 14px; color: #A8A29E; }

.footer-bottom {
  padding: 22px 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.86rem;
  color: #A8A29E;
}
.footer-bottom .small-en { color: #78716C; font-size: 0.82rem; }

/* ---------- Animations (fade-up) ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Instruction page ---------- */
.instr-hero {
  background: linear-gradient(140deg, #FEF3C7 0%, #FDE68A 60%, #FCD34D 100%);
  padding: 70px 0 60px;
  text-align: center;
}
.instr-hero h1 { margin-bottom: 14px; }
.instr-hero p { font-size: 1.1rem; max-width: 600px; margin: 0 auto; color: #44403C; }
.steps-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 880px;
  margin: 0 auto;
}
.step {
  background: #fff;
  padding: 38px 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 26px;
  align-items: start;
}
.step-num {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--primary), #92400E);
  color: #fff;
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(180,83,9,0.30);
}
.step h3 { font-size: 1.45rem; margin-bottom: 12px; }
.step p { margin-bottom: 14px; font-size: 1rem; }
.step .btn { margin-top: 8px; }
.after-pay {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  margin-top: 36px;
}
.after-pay h2 { margin-bottom: 14px; }
.after-pay p { margin-bottom: 16px; font-size: 1rem; }
.platforms-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.platforms-mini .platform-card {
  background: #fff;
  padding: 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .why-tyler { grid-template-columns: 1fr; gap: 44px; }
  .features-grid, .platforms-grid, .price-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .usecases-grid, .faq-grid { grid-template-columns: 1fr; }
  .platforms-mini { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  section { padding: 60px 0; }
  .nav-links { display: none; }
  .burger { display: flex; }
  .hero { padding: 56px 0 70px; }
  .hero-card { padding: 28px 22px; }
  .features-grid, .platforms-grid, .price-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { transform: translateY(0); }
  .step { grid-template-columns: 1fr; gap: 16px; }
  .step-num { width: 60px; height: 60px; font-size: 1.6rem; }
  .footer-top { grid-template-columns: 1fr; }
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.7rem; }
  .btn { padding: 13px 22px; font-size: 0.96rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; }
}
