/* Yandex 中文下载页 — brand: #FC3F1D */
:root {
  --yandex-red: #fc3f1d;
  --yandex-red-deep: #e03514;
  --yandex-red-soft: #ffe8e3;
  --ink: #1a1a1a;
  --ink-muted: #5c5c5c;
  --ink-faint: #8a8a8a;
  --surface: #f7f5f3;
  --surface-2: #ffffff;
  --line: rgba(26, 26, 26, 0.08);
  --shadow: 0 24px 60px rgba(252, 63, 29, 0.12);
  --radius: 18px;
  --font-display: "Sora", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Sora", system-ui, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1.25rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.nav-links a:hover {
  color: var(--yandex-red);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--yandex-red);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.25s ease, background 0.25s ease;
}

.nav-cta:hover {
  background: var(--yandex-red-deep);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.4rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 7.5rem 0 4.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 50% at 88% 42%, rgba(252, 63, 29, 0.14), transparent 60%),
    radial-gradient(ellipse 45% 40% at 8% 70%, rgba(252, 63, 29, 0.07), transparent 55%),
    linear-gradient(135deg, #fff9f6 0%, #f5f1ed 48%, #ece7e1 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.hero-content {
  max-width: 480px;
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-visual {
  position: relative;
  min-width: 0;
  animation: riseIn 1s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
  box-shadow:
    0 4px 8px rgba(26, 26, 26, 0.04),
    0 24px 48px rgba(26, 26, 26, 0.12);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.hero-brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 8px 28px rgba(252, 63, 29, 0.25);
  animation: brandPulse 3.2s ease-in-out infinite;
}

@keyframes brandPulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(252, 63, 29, 0.25); }
  50% { box-shadow: 0 10px 36px rgba(252, 63, 29, 0.4); }
}

.hero-brand-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--yandex-red);
  line-height: 1;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ink);
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  color: var(--ink-muted);
  max-width: 34em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.25rem;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.65rem;
  border-radius: 999px;
  background: var(--yandex-red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 32px rgba(252, 63, 29, 0.35);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.btn-download:hover {
  background: var(--yandex-red-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(252, 63, 29, 0.42);
}

.btn-download svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  font-weight: 600;
  color: var(--ink-muted);
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
  border-color: var(--yandex-red);
  color: var(--yandex-red);
}

.cta-meta {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* —— Sections —— */
section {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 560px;
  margin-bottom: 2.75rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

/* Features — no cards as default, use open layout */
.features {
  background: var(--surface-2);
  position: relative;
}

.features::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 100% 0%, rgba(252, 63, 29, 0.06), transparent 60%);
  pointer-events: none;
}

.feature-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1.25rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--yandex-red-soft);
  color: var(--yandex-red);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-item h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-item p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 48em;
}

/* Highlight strip */
.highlight {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, #1a1a1a 0%, #2a1814 55%, #3d1f18 100%);
  color: #fff;
  padding: 4.5rem 0;
}

.highlight::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 63, 29, 0.45), transparent 65%);
  pointer-events: none;
}

.highlight-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.highlight h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.highlight p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 34em;
}

.highlight .btn-download {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.stat {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--yandex-red);
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.stat span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 0.5rem;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--yandex-red);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.step p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* FAQ */
.faq {
  background: var(--surface-2);
}

.faq-list {
  max-width: 720px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 2rem 1.25rem 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  color: var(--yandex-red);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 1.25rem;
  color: var(--ink-muted);
  padding-right: 2rem;
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding: 5rem 0 5.5rem;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(252, 63, 29, 0.12), transparent 55%),
    var(--surface);
}

.final-cta .brand-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
}

.final-cta h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.final-cta p {
  margin: 0 auto 1.75rem;
  color: var(--ink-muted);
  max-width: 28em;
}

.final-cta .cta-row {
  justify-content: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  background: var(--surface-2);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--ink-faint);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a:hover {
  color: var(--yandex-red);
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .highlight-inner {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .nav-links {
    display: none;
  }

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 1.25rem;
    right: 1.25rem;
    background: #fff;
    padding: 1.25rem;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    align-items: flex-start;
    gap: 1rem;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding: 6.5rem 0 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-visual img {
    aspect-ratio: 16 / 11;
  }

  .feature-item {
    grid-template-columns: 64px 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.75rem, var(--max));
  }

  .hero-brand-name {
    font-size: 2.1rem;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .btn-download {
    width: 100%;
    justify-content: center;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-ghost {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
