/* ==========================================================================
   Поехали VPN — landing styles
   Дизайн повторяет Flutter-приложение (lib/theme/tokens.dart):
   - Brand: #4CAF50 (green), Brand-soft: #E8F5E9
   - Bg: #F7F9F7 / Bg-elev: #FFFFFF
   - Ink: #1A2A1F (text), Ink-muted: #687873
   - Шрифты: Inter (UI), Nunito (заголовки)
   - Радиусы: 10 / 16 / 24 (sm / md / lg)
   ========================================================================== */

:root {
  --brand:        #4CAF50;
  --brand-ink:    #0B2F12;
  --brand-soft:   #E8F5E9;
  --brand-ring:   rgba(76, 175, 80, 0.18);
  --brand-hover:  #43a047;

  --bg:           #F7F9F7;
  --bg-elev:      #FFFFFF;
  --ink:          #1A2A1F;
  --ink-muted:    #687873;
  --ink-faint:    #A3ACA7;
  --line:         #E2E8E4;
  --line-strong:  #CDD4D0;

  --warn-soft:    #FFF4DE;
  --warn-ink:     #7A4A0E;
  --danger:       #D4462A;

  --radius-sm:    10px;
  --radius-md:    16px;
  --radius-lg:    24px;

  --shadow-sm:    0 1px 2px rgba(16, 24, 30, 0.04), 0 2px 6px rgba(16, 24, 30, 0.04);
  --shadow-md:    0 6px 20px rgba(16, 24, 30, 0.06), 0 2px 6px rgba(16, 24, 30, 0.04);
  --shadow-brand: 0 10px 28px rgba(76, 175, 80, 0.28);

  --max-w:        1120px;

  --font-ui:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-accent:  'Nunito', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }

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

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

/* ==== Header ==== */
.site-header {
  background: rgba(247, 249, 247, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  box-shadow: var(--shadow-brand);
  font-family: var(--font-accent);
}
.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav a {
  color: var(--ink-muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--ink); }

/* ==== Buttons ==== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font-ui);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
  background: var(--brand-hover);
  color: #fff;
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--bg-elev);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost {
  background: transparent;
  color: var(--brand);
}
.btn-ghost:hover {
  background: var(--brand-soft);
  color: var(--brand-hover);
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* ==== Hero ==== */
.hero {
  padding: 80px 0 64px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(76, 175, 80, 0.10), transparent 60%),
    var(--bg);
}
.hero-eyebrow {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand-ink);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-accent);
  font-size: 48px;
  line-height: 1.1;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero h1 .accent { color: var(--brand); }
.hero .lead {
  font-size: 18px;
  color: var(--ink-muted);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.55;
}
.hero .cta-row { justify-content: center; }

/* ==== Trust strip ==== */
.trust-strip {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.trust-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 500;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-item .ico {
  color: var(--brand);
  font-size: 16px;
}

/* ==== Section base ==== */
section {
  padding: 80px 0;
}
section.alt {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  text-align: center;
  margin-bottom: 44px;
}
.section-head h2 {
  font-family: var(--font-accent);
  font-size: 36px;
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-head p {
  color: var(--ink-muted);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
}

/* ==== Features grid ==== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s ease;
}
.feature-card:hover {
  border-color: var(--brand-ring);
  box-shadow: var(--shadow-md);
}
.feature-card .ico {
  width: 48px;
  height: 48px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-card .ico svg {
  width: 24px;
  height: 24px;
  display: block;
}
.feature-card h3 {
  font-family: var(--font-accent);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.feature-card p {
  color: var(--ink-muted);
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
}

/* ==== Pricing ==== */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.plan {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}
.plan:hover {
  border-color: var(--brand-ring);
  box-shadow: var(--shadow-md);
}
.plan.featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-brand);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 12.5px;
  padding: 5px 14px;
  border-radius: 100px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.plan h3 {
  font-family: var(--font-accent);
  margin: 0 0 6px;
  font-size: 19px;
  color: var(--ink);
  font-weight: 700;
}
.plan .price {
  font-family: var(--font-accent);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 12px 0 4px;
  color: var(--ink);
  line-height: 1;
}
.plan .price small {
  font-size: 15px;
  color: var(--ink-muted);
  font-weight: 500;
  font-family: var(--font-ui);
}
.plan .per-month {
  color: var(--ink-muted);
  font-size: 13.5px;
  margin: 0 0 20px;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  flex: 1;
}
.plan ul li {
  padding: 8px 0;
  font-size: 14.5px;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.plan ul li::before {
  content: '';
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--brand-soft);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234CAF50'%3E%3Cpath d='M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.pricing-loading,
.pricing-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-muted);
  font-size: 15px;
}
.pricing-error { color: var(--danger); }

/* ==== How it works ==== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.step {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
}
.step-num {
  font-family: var(--font-accent);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 16px;
}
.step h3 {
  font-family: var(--font-accent);
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 700;
}
.step p {
  color: var(--ink-muted);
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

/* ==== Payment methods ==== */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.pm-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pm-card .pm-title {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
}
.pm-card .pm-desc {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ==== FAQ ==== */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq details {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  padding: 18px 22px;
  transition: border-color 0.15s ease;
}
.faq details[open] { border-color: var(--brand-ring); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 22px;
  color: var(--ink-muted);
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: '−'; }
.faq details[open] summary { margin-bottom: 14px; }
.faq p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ==== Footer ==== */
.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  color: var(--ink-muted);
  font-size: 13.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 30px;
}
.footer-grid h4 {
  margin: 0 0 14px;
  font-family: var(--font-accent);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-weight: 700;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-grid li { padding: 4px 0; }
.footer-grid a {
  color: var(--ink-muted);
  transition: color 0.15s ease;
}
.footer-grid a:hover { color: var(--ink); }
.footer-tagline {
  color: var(--ink-muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 8px 0 0;
  max-width: 320px;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.footer-reqs {
  font-family: var(--font-ui);
  color: var(--ink-faint);
}
.footer-reqs span {
  margin-right: 14px;
  white-space: nowrap;
}

/* ==== Legal pages ==== */
.legal {
  padding: 70px 0;
  max-width: 820px;
  margin: 0 auto;
}
.legal h1 {
  font-family: var(--font-accent);
  font-size: 38px;
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.legal .meta {
  color: var(--ink-muted);
  font-size: 14px;
  margin: 0 0 40px;
}
.legal h2 {
  font-family: var(--font-accent);
  font-size: 24px;
  margin: 36px 0 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.legal h3 {
  font-family: var(--font-accent);
  font-size: 18px;
  margin: 24px 0 10px;
  font-weight: 700;
  color: var(--ink);
}
.legal p, .legal li {
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.75;
}
.legal ul, .legal ol { padding-left: 24px; }
.legal .placeholder {
  background: var(--warn-soft);
  border: 1px dashed rgba(232, 164, 74, 0.5);
  border-radius: 4px;
  padding: 0 6px;
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13px;
  color: var(--warn-ink);
  font-weight: 500;
}
.legal table {
  border-collapse: collapse;
  margin: 22px 0;
  width: 100%;
  background: var(--bg-elev);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.legal table td, .legal table th {
  border: 1px solid var(--line);
  padding: 12px 16px;
  text-align: left;
  font-size: 14.5px;
  color: var(--ink);
  vertical-align: top;
}
.legal table th {
  background: var(--bg);
  font-weight: 700;
  font-family: var(--font-accent);
  letter-spacing: -0.01em;
}

.legal-toc {
  background: var(--brand-soft);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 32px;
}
.legal-toc strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-accent);
  color: var(--brand-ink);
}

/* ==== Cookies banner ==== */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  z-index: 100;
  box-shadow: var(--shadow-md);
  font-size: 13.5px;
}
.cookie-banner.shown { display: flex; }
.cookie-banner a { color: var(--brand-soft); }
.cookie-banner button {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  font-family: var(--font-ui);
}
.cookie-banner button:hover { background: var(--brand-hover); }

/* ==== Responsive ==== */
@media (max-width: 900px) {
  .features, .pricing { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 56px 0 44px; }
  .hero h1 { font-size: 32px; }
  .hero .lead { font-size: 16px; }
  section { padding: 56px 0; }
  .section-head h2 { font-size: 26px; }
  .section-head p { font-size: 15px; }
  .features, .pricing, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav { display: none; }
  .legal { padding: 50px 0; }
  .legal h1 { font-size: 28px; }
  .legal h2 { font-size: 20px; }
}
