:root {
  --orange: #ff7900;
  --orange-dark: #e8650a;
  --dark: #111113;
  --dark-2: #1f1f23;
  --light-card: #f1f1f3;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --muted-light: #b9b9c0;
  --muted-dark: #6b6b72;
  --radius: 16px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange-dark); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header — тёмная полоса как на Тильде */
.site-header {
  background: #2b2b2e;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px;
}
.logo { color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; }
.lang-nav a {
  color: #cfcfd4; text-decoration: none; margin-left: 16px;
  font-size: 14px; font-weight: 700;
}
.lang-nav a.active { color: var(--orange); }
.lang-nav a:hover { color: #fff; }

/* Полосы */
.band { width: 100%; }
.band-hero {
  background: linear-gradient(rgba(20,20,22,.38), rgba(20,20,22,.5)),
              url('/img/hero-bg.jpeg') center / cover no-repeat #3a3a3d;
  color: var(--text-light);
  padding: 56px 0 48px;
  text-align: center;
}
.band-hero .container {
  min-height: max(460px, calc(100svh - 170px));
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
}
.band-light { background: #fff; padding: 64px 0; }
.band-dark {
  background: linear-gradient(180deg, #2a2a2d 0%, #131315 100%);
  color: var(--text-light);
  padding: 64px 0;
}

/* Hero */
h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.15; margin-bottom: 16px; font-weight: 800; min-height: 2.3em; display: flex; align-items: center; justify-content: center; }
.updated { color: #e6e6ea; font-size: 14px; margin-bottom: 18px; opacity: .85; }
.answer { max-width: 680px; margin: 0 auto 30px; font-size: 18px; }
.answer strong { color: var(--orange); }

.code-row {
  display: flex; gap: 16px; justify-content: center; align-items: stretch;
  flex-wrap: wrap; margin-bottom: 10px;
}
.btn {
  display: inline-block; cursor: pointer;
  border-radius: 999px; padding: 16px 34px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  border: none; letter-spacing: .3px;
}
.btn-primary { background: var(--orange); color: #fff; white-space: nowrap; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-primary.copied { background: #2e9e5b; }
.answer { min-height: 6.4em; }
.code-pill {
  display: inline-flex; align-items: center;
  background: #fff; border: 2px dashed var(--orange);
  border-radius: 999px; padding: 12px 32px;
}
.code {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(18px, 3.5vw, 24px); font-weight: 800;
  letter-spacing: 1.5px; color: var(--orange-dark);
}
.copied-msg { display: block; color: #7CFC9A; font-weight: 700; margin-top: 6px; }

.store-links { margin-top: 18px; }
.store-links a { color: #d9d9de; font-size: 14px; margin: 0 10px; }
.store-links a:hover { color: #fff; }

/* Steps — светлые карточки в 3 колонки */
h2 { font-size: clamp(24px, 4vw, 34px); line-height: 1.25; margin-bottom: 10px; font-weight: 800; text-align: center; }
.steps-sub { color: var(--muted-dark); margin-bottom: 36px; text-align: center; font-size: 17px; }
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.step {
  background: var(--light-card); border-radius: var(--radius);
  padding: 28px 24px; text-align: left; position: relative;
  display: flex; flex-direction: column;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--orange); color: var(--orange-dark);
  font-weight: 800; font-size: 19px; margin-bottom: 14px;
}
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { font-size: 15px; color: #3c3c40; flex-grow: 1; }
.step strong { color: var(--orange-dark); }
.step img {
  width: 100%; max-width: 240px; height: auto; border-radius: 12px;
  margin: 18px auto 0; display: block;
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
}
.cta-repeat { text-align: center; margin-top: 36px; }

/* FAQ — тёмная секция */
.band-dark h2 { color: #fff; margin-bottom: 28px; }
.faq-item {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; margin-bottom: 10px; overflow: hidden;
  max-width: 820px; margin-left: auto; margin-right: auto;
}
.faq-item summary {
  cursor: pointer; padding: 17px 48px 17px 20px; font-weight: 600;
  list-style: none; position: relative; color: #fff;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%); color: var(--orange); font-size: 22px; font-weight: 400;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 20px 18px; color: var(--muted-light); font-size: 15px; }

/* Footer */
.site-footer {
  background: #000; text-align: center;
  padding: 26px 20px; color: #8a8a90; font-size: 13px;
}

/* Cookie bar */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #1f1f23; border-top: 1px solid #333;
  padding: 12px 20px; display: flex; gap: 16px;
  justify-content: center; align-items: center; font-size: 13px;
  color: #cfcfd4; z-index: 100;
}
.cookie-bar .btn { padding: 8px 22px; font-size: 13px; background: var(--orange); color: #fff; }
.cookie-bar[hidden] { display: none; }

/* Плавное появление hero */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.band-hero h1,
.band-hero .updated,
.band-hero .answer,
.band-hero .code-row {
  animation: fadeUp .6s ease-out both;
}
.band-hero .updated  { animation-delay: .12s; }
.band-hero .answer   { animation-delay: .22s; }
.band-hero .code-row { animation-delay: .34s; }

@media (prefers-reduced-motion: reduce) {
  .band-hero h1, .band-hero .updated, .band-hero .answer, .band-hero .code-row {
    animation: none;
  }
}

@media (max-width: 820px) {
  .steps-grid { grid-template-columns: 1fr; }
  .band-hero { padding: 44px 0 40px; }
}
