/* ══════════════════════════════════════════════
   PUBLIC WEBSITE
   ══════════════════════════════════════════════ */

.header {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 2rem; background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
}
.header .logo { display: flex; align-items: center; gap: 0.6rem; }
.header .logo img { height: 28px; }
.header .logo-text { font-size: var(--font-size-base); font-weight: 700; color: var(--text); }
.header nav { display: flex; align-items: center; gap: 4px; }
.header nav a {
  color: var(--text-muted);
  font-size: var(--font-size-base);
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  transition: background 0.13s, color 0.13s;
}
.header nav a:hover  { background: var(--surface-3); color: var(--text); }
.header nav a.active { background: var(--accent-dim); color: var(--accent); }
.burger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: var(--font-size-large);
  transition: background 0.13s, color 0.13s;
}
.burger:hover { background: var(--surface-3); color: var(--text); }

/* ── Public footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.85rem;
  font-size: 0.82rem; color: var(--text-faint);
}
.footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer nav a { color: var(--text-muted); }
.footer nav a:hover { color: var(--text); }

.main { flex: 1; }

/* ── Hero ── */
.hero {
  padding: 5rem 2rem 4rem;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(var(--font-size-xlarge), 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.1rem;
  color: var(--text);
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: var(--font-size-base);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }

/* ── Features ── */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 2rem 3rem;
}
.feature-card { background: var(--surface); padding: 1.75rem 1.6rem; transition: background 0.13s; }
.feature-card:hover { background: var(--surface-2); }
.feature-icon { font-size: 1.75rem; margin-bottom: 0.85rem; display: block; }
.feature-card h3 { font-size: var(--font-size-base); font-weight: 700; margin-bottom: 0.45rem; color: var(--text); }
.feature-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ── Stats strip ── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 2rem 3rem;
}
.stat-card {
  background: var(--surface);
  padding: 1.6rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  display: flex; flex-direction: column; align-items: center;
  transition: background 0.13s;
}
.stat-card:hover { background: var(--surface-2); }
.stat-card img { width: 32px; height: 32px; margin-bottom: 0.7rem; opacity: 0.7; }
.stat-card .num { font-size: var(--font-size-xlarge); font-weight: 800; color: var(--accent); letter-spacing: -0.03em; line-height: 1; }
.stat-card .label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-top: 0.35rem; }

/* ── FAQ ── */
.faq { padding: 0 2rem 3rem; max-width: 820px; margin: 0 auto; }
.faq h2 { font-size: var(--font-size-large); font-weight: 800; letter-spacing: -0.02em; margin-bottom: var(--section-margin); }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 0.5rem; overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; background: var(--surface); border: none; color: var(--text);
  font-size: 0.95rem; font-weight: 600; padding: 1.1rem 1.3rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; transition: background 0.13s;
}
.faq-question::after { content: '+'; color: var(--accent); font-size: 1.2rem; font-weight: 300; flex-shrink: 0; }
.faq-question:hover { background: var(--surface-2); }
.faq-item.active .faq-question { background: var(--surface-2); }
.faq-item.active .faq-question::after { content: '−'; }
.faq-answer { display: none; padding: 0 1.3rem 1.1rem; background: var(--surface-2); font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.faq-item.active .faq-answer { display: block; }

/* ── Opinions section (public index) ── */
.opinions { padding: 0 2rem 4rem; }
.opinions h2 { font-size: var(--font-size-large); font-weight: 800; letter-spacing: -0.02em; margin-bottom: var(--section-margin); text-align: center; }
.opinion-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; max-width: 1100px; margin: 0 auto; }
.opinion-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.3rem 1.4rem; }
.opinion-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.55rem; }
.opinion-sender { font-size: 0.92rem; font-weight: 700; color: var(--text); }
.opinion-stars { display: flex; gap: 2px; }
.opinion-star { width: 15px; height: 15px; }
.opinion-body { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

/* ── Offer cards ── */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  padding: 0 2rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}
.offer-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem; display: flex; flex-direction: column; gap: 0.7rem;
  transition: border-color 0.15s;
}
.offer-card:hover { border-color: var(--border-2); }
.offer-card.featured { border-color: var(--accent); }
.offer-card h2 { font-size: var(--font-size-base); font-weight: 800; color: var(--text); margin: 0; }
.offer-card > p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }
.offer-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.offer-card ul li { font-size: 0.88rem; color: var(--text-muted); padding-left: 1.1rem; position: relative; }
.offer-card ul li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-size: 0.75rem; top: 0.1rem; }
.offer-price { margin-top: auto; padding-top: 0.85rem; border-top: 1px solid var(--border); }
.offer-price .price-main { font-size: var(--font-size-large); font-weight: 800; color: var(--accent); }
.offer-price .price-setup { font-size: 0.82rem; color: var(--text-faint); margin-top: 0.15rem; }
.offer-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ── About ── */
.about-section { padding: 2.5rem 2rem; max-width: 820px; margin: 0 auto; border-bottom: 1px solid var(--border); }
.about-section:last-child { border-bottom: none; }
.about-section h2 { font-size: var(--font-size-large); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.85rem; color: var(--text); }
.about-section p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.75; }

/* ── Contact form ── */
.contact-wrap { display: flex; justify-content: center; align-items: flex-start; padding: 3rem 2rem; }
.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2.25rem 2rem;
  width: 100%; max-width: 520px; box-shadow: var(--shadow-sm);
}
.contact-card h1 { font-size: var(--header-mini); font-weight: 800; margin-bottom: 1.5rem; }

/* ── Privacy ── */
.privacy { max-width: 820px; margin: 0 auto; padding: 2.5rem 2rem; }
.privacy h1 { font-size: var(--font-size-large); font-weight: 800; margin-bottom: 0.5rem; }
.privacy h2 { font-size: var(--font-size-base); font-weight: 700; margin: 1.75rem 0 0.5rem; color: var(--text); }
.privacy p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 0.75rem; }
.privacy ul { list-style: disc; padding-left: 1.5rem; display: flex; flex-direction: column; gap: 0.35rem; }
.privacy ul li { font-size: 0.92rem; color: var(--text-muted); }
.privacy-langs { display: flex; gap: 0.5rem; margin-bottom: 2rem; }

/* ── Misc ── */
.offer-section { padding: 0 2rem 3rem; }
.hero--compact { padding-bottom: 1.5rem; }
.contact-card .form-group label { color: var(--text-muted); }
.contact-card .form-group input,
.contact-card .form-group textarea { background: var(--surface-2); }
.content-narrow {
  flex: 1;
  padding: 2rem;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 721px) and (max-width: 1100px) {
  .main { padding: 1.4rem; }
  .features, .stats, .faq, .opinions, .offer-grid {
    padding-left: 1.4rem; padding-right: 1.4rem; margin-left: 0; margin-right: 0;
  }
  .hero { padding-left: 1.4rem; padding-right: 1.4rem; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .header {
    padding: 0 1.1rem;
    height: var(--header-h);
    flex-wrap: nowrap;
  }
  .burger { display: flex; align-items: center; }
  .header nav {
    display: none; position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 0.6rem 1.1rem 0.9rem;
    gap: 2px; z-index: 199; box-shadow: var(--shadow);
  }
  .header nav.open { display: flex; }
  .header nav a { padding: 0.65rem 0.85rem; font-size: 0.92rem; }

  .main { padding: 0; }
  .content-narrow { padding: 1.25rem; }

  .hero { padding: 2.5rem 1.25rem 2rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .features { grid-template-columns: 1fr; margin: 0 0 2rem; }
  .feature-card { padding: 1.4rem; }

  .stats { grid-template-columns: 1fr; margin: 0 0 2rem; }
  .stat-card { padding: 1.25rem; }
  .stat-card .num { font-size: 1.75rem; }

  .faq { padding: 0 1.25rem 2.5rem; }
  .faq h2 { font-size: var(--header-mini); }
  .faq-question { font-size: 0.9rem; padding: 0.9rem 1rem; }
  .faq-answer { padding: 0 1rem 0.9rem; font-size: 0.88rem; }

  .opinions { padding: 0 1.25rem 3rem; }
  .opinions h2 { font-size: var(--header-mini); }
  .opinion-grid { grid-template-columns: 1fr; }

  .offer-grid { grid-template-columns: 1fr; padding: 0 1.25rem 2.5rem; }
  .offer-actions { flex-direction: column; }
  .offer-actions .btn { justify-content: center; }

  .about-section { padding: 1.75rem 1.25rem; }
  .about-section h2 { font-size: var(--header-mini); }

  .contact-wrap { padding: 1.75rem 1.25rem; }
  .contact-card { padding: 1.6rem 1.25rem; }

  .privacy { padding: 1.75rem 1.25rem; }
  .privacy h1 { font-size: 1.3rem; }

  .footer { flex-direction: column; align-items: flex-start; gap: 0.65rem; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 1.5rem; }
  .features { margin: 0 0 1.5rem; }
  .stats { margin: 0 0 1.5rem; }
  .header { padding: 0 0.85rem; }
}

/* ══════════════════════════════════════════════
   PAGE TRANSITIONS (View Transitions API)
   Chrome 126+ / Safari 18.2+. Other browsers just
   navigate normally — no animation, nothing breaks.
   ══════════════════════════════════════════════ */

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
}

.header {
  view-transition-name: site-nav;
}
::view-transition-old(site-nav),
::view-transition-new(site-nav) {
  animation: none;
}

.main {
  view-transition-name: page-content;
}

@keyframes page-slide-out {
  to { transform: translateX(-32px); opacity: 0; }
}
@keyframes page-slide-in {
  from { transform: translateX(32px); opacity: 0; }
}

::view-transition-old(page-content) {
  animation: 0.26s cubic-bezier(0.4, 0, 0.2, 1) both page-slide-out;
}
::view-transition-new(page-content) {
  animation: 0.26s cubic-bezier(0.4, 0, 0.2, 1) both page-slide-in;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(page-content),
  ::view-transition-new(page-content) {
    animation: none;
  }
}