/* GO!Stroll — palette of the app (app/src/main/java/ru/gostroll/app/ui/Theme.kt). */
:root {
  --neva: #0F1C2E;
  --neva-soft: #1C2C42;
  --gold: #B8892B;
  --gold-bright: #D8AB48;
  --gold-ink: #8A6413;
  --on-gold: #23180A;
  --bg: #F7F5F1;
  --surface: #FFFFFF;
  --surface-alt: #EFECE6;
  --border: #E0DBD2;
  --text: #16202E;
  --muted: #5D6875;
  --focus: #1967D2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10161F;
    --surface: #18212E;
    --surface-alt: #1F2937;
    --border: #2B3644;
    --text: #E7ECF3;
    --muted: #9AA7B6;
    --gold-ink: #E8C273;
    --focus: #8AB4F8;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold-ink); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
/* «конфиденциальности» at 30 px is wider than a 390 px phone: smaller there, hyphenated if still too long. */
h1 { font-size: clamp(26px, 6.5vw, 46px); overflow-wrap: break-word; hyphens: auto; }
/* Comfortable line: ~70 characters. */
main p, main li, .foot p { max-width: 70ch; }
h2 { font-size: clamp(24px, 4vw, 32px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--surface); padding: 10px 14px; }
.skip:focus { left: 8px; }

/* Sticky bar: the way home and to the sections from the middle of the page. */
.top { position: sticky; top: 0; z-index: 5; background: var(--neva); color: #fff; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 19px;
  text-decoration: none; min-height: 44px; }
.brand img { border-radius: 10px; }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { color: #fff; text-decoration: none; padding: 10px; min-height: 44px; display: inline-flex; align-items: center; }
.top nav a:hover { text-decoration: underline; }
@media (max-width: 560px) { .top nav a:not(:last-child) { display: none; } }

.hero { padding: 40px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-img { border-radius: 28%; box-shadow: 0 12px 40px rgba(15, 28, 46, .18); justify-self: center; width: min(100%, 380px); }
.kicker { color: var(--gold-ink); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; margin-bottom: .4em; }
.lead { font-size: 19px; color: var(--text); }
.note { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) {
  .hero { padding-top: 24px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img { order: -1; width: 180px; }
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px;
  border-radius: 12px; background: var(--gold); color: var(--on-gold); font-weight: 700; text-decoration: none;
  border: 2px solid var(--gold); }
.btn:hover { background: var(--gold-bright); border-color: var(--gold-bright); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-alt); border-color: var(--border); }

.band { background: var(--surface-alt); padding: 44px 0; }
.features, .download { padding: 44px 16px; }
.steps, .cards, .cities, .install { padding: 0; margin: 0; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; counter-increment: s; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--neva); color: #fff; font-weight: 700; margin-bottom: 10px; }
.cards { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cards li { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--gold); border-radius: 12px; padding: 18px 20px; }
.cards p, .steps p { margin: 0; }
.cities { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.cities li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; }
.install { padding-left: 1.3em; margin-bottom: 1em; max-width: 70ch; }
.install li { margin-bottom: .5em; }
@media (max-width: 760px) {
  .steps, .cards { grid-template-columns: 1fr; }
}

.text { padding-top: 32px; padding-bottom: 48px; max-width: 760px; }
.text h2 { margin-top: 1.4em; font-size: 24px; }

/* Back to the top from anywhere on the page; a plain link, no script. */
.totop { position: fixed; right: 16px; bottom: 16px; z-index: 6; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--neva); color: #fff; text-decoration: none; font-size: 22px;
  box-shadow: 0 4px 14px rgba(15, 28, 46, .3); }
.totop:hover { background: var(--neva-soft); text-decoration: none; }
/* Bottom padding: the last link of the page stays clear of .totop. */
.foot { background: var(--neva); color: #D5DCE6; padding: 28px 0 80px; font-size: 15px; }
.foot a { color: var(--gold-bright); display: inline-block; min-height: 24px; }
.foot-row p { margin: 0 0 .5em; }
