/* QuestWalk — базовые стили.
   Основная вёрстка — во встроенных стилях разметки (перенесена 1:1 из макета).
   Цвет акцента меняется в одном месте: --accent. */

:root {
  --accent: #FF5B22;   /* оранжевый акцент */
  --ink: #10241D;      /* основной тёмный */
  --ground: #EEF2EC;   /* фон страницы */
  --paper: #FBFCFA;    /* белые блоки */
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
}

section { scroll-margin-top: 16px; }

img, svg { max-width: 100%; }

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-inline-start: -6px; /* Компенсирует прозрачное поле слева у логотипа. */
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 100px;
  height: auto;
}

.brand-logo--footer { width: 96px; }

.brand-accent { color: var(--accent); }

.where-intro {
  display: grid;
  gap: 16px;
}

.where-illustration {
  display: block;
  justify-self: center;
  width: min(100%, 260px);
  height: auto;
}

@media (min-width: 800px) {
  .where-intro {
    position: relative;
    padding-inline-end: min(38%, 358px);
  }

  .where-illustration {
    position: absolute;
    inset-inline-end: 0;
    inset-block-end: -30px;
    width: min(34%, 310px);
  }
}

a { color: var(--ink); }
a:hover { color: #3A5A4E; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Окно Android: RuStore или APK */
.android-dialog {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  margin: auto;
  padding: 24px;
  border: 0;
  border-radius: 28px;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Golos Text', system-ui, sans-serif;
  line-height: 1.4;
  box-shadow: 0 32px 64px -24px rgba(16, 36, 29, 0.45);
}

.android-dialog::backdrop { background: rgba(16, 36, 29, 0.55); }

.android-dialog[open] {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.android-dialog__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.android-dialog__head h2 {
  flex: 1 1 auto;
  margin: 0;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.android-dialog__close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin: -8px -8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.android-dialog__option {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 18px;
  box-sizing: border-box;
  border-radius: 20px;
  border: 2px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
}

.android-dialog__option--main {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.android-dialog__option:hover { color: inherit; opacity: 0.92; }
.android-dialog__option--main:hover { color: var(--paper); }

.android-dialog__text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.android-dialog__title { font-weight: 600; font-size: 17px; }
.android-dialog__hint { font-size: 14px; opacity: 0.75; }

.android-dialog__note {
  margin: 4px 0 0;
  font-size: 14px;
  color: #4A5A53;
}
