/* Страница «Teste auto în Moldova» на xandr.co: цвета и шрифт приложения («Ясный», Golos Text).
   Шрифт свой — страница не ходит к чужим серверам. Устроено как страница Zorko. */
@font-face {
  font-family: "Golos";
  src: url("/teste-auto/assets/fonts/GolosText-500.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Golos";
  src: url("/teste-auto/assets/fonts/GolosText-800.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #f2f4f8;
  --surface: #ffffff;
  --ink: #10131a;
  --muted: #586174;
  --accent: #1d4ed8;
  --rule: #d9dee8;
  --halo: #e6edfd;
  --shadow: #10131a1f;
  font-family: "Golos", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1015;
    --surface: #181c24;
    --ink: #eceff5;
    --muted: #8f97a8;
    --accent: #6b93ff;
    --rule: #252a35;
    --halo: #1c2849;
    --shadow: #00000066;
  }
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 88% 10%, var(--halo), transparent 52%),
    var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: .08em;
  text-underline-offset: .24em;
  overflow-wrap: anywhere;
}

a:hover { text-decoration-thickness: .15em; }

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
  border-radius: 2px;
}

.page {
  width: min(100% - clamp(2rem, 8vw, 8rem), 70rem);
  margin-inline: auto;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.site-header,
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 1.25rem;
  row-gap: .4rem;
  padding-block: 1.4rem;
  font-size: .95rem;
}

.site-header { border-bottom: 1px solid var(--rule); }
.site-header nav { display: flex; gap: 1.1rem; }

.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  margin-top: auto;
}

.wordmark {
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.03em;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 5rem);
}

.app-icon {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--shadow);
}

.platforms {
  margin: 1.4rem 0 .3rem;
  color: var(--muted);
  font-size: .95rem;
  letter-spacing: .02em;
}

h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.03em;
}

h1 span {
  display: block;
  margin-top: .45rem;
  font-size: .42em;
  letter-spacing: 0;
  color: var(--muted);
}

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  max-width: 32rem;
  margin: 1.3rem 0 0;
}

.stores { margin: 1.6rem 0 0; }

.store {
  display: inline-block;
  padding: .8rem 1.4rem;
  border-radius: 18px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 5px 0 var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}

.store:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--shadow); }
.store:active { transform: translateY(5px); box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .store { transition: none; }
}

.facts {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.facts li {
  background: var(--surface);
  border-radius: 18px;
  padding: .7rem 1.1rem;
  box-shadow: 0 5px 0 var(--shadow);
  min-width: 7.5rem;
}

.facts strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}

.facts span { color: var(--muted); font-size: .9rem; }

.shots {
  display: flex;
  justify-content: center;
  gap: clamp(.8rem, 2.5vw, 1.4rem);
}

.shots img {
  width: min(46%, 15rem);
  height: auto;
  border-radius: 26px;
  box-shadow: 0 10px 0 var(--shadow);
}

.shots img:last-child { margin-top: 2.5rem; }

.other-lang {
  border-top: 1px solid var(--rule);
  padding-block: 2.4rem;
  max-width: 44rem;
}

.other-lang h2 { margin: 0 0 .6rem; font-weight: 800; font-size: 1.5rem; }
.other-lang p { margin: 0 0 .6rem; }

/* Политика: обычный текст в колонку. */
.doc {
  max-width: 46rem;
  padding-block: 2.5rem;
  font-size: 1.05rem;
}

.doc h1 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); }
.doc h2 { font-weight: 800; font-size: 1.3rem; margin-top: 2.2rem; }
.doc .muted { color: var(--muted); }
.doc hr { border: 0; border-top: 1px solid var(--rule); margin: 3.5rem 0; }
.doc li { margin-bottom: .35rem; }

@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; }
  .shots img:last-child { margin-top: 1.5rem; }
}

/* Выбор языка: список ссылок в раскрывашке, без скриптов. */
.site-header nav { margin-left: auto; align-items: baseline; flex-wrap: wrap; justify-content: flex-end; row-gap: .4rem; }
.langs { position: relative; }
.langs summary {
  cursor: pointer;
  list-style: none;
  color: var(--accent);
  white-space: nowrap;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: " ▾"; }
.langs summary:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; border-radius: 2px; }
.langs ul {
  position: absolute;
  right: 0;
  top: calc(100% + .6rem);
  z-index: 10;
  margin: 0;
  padding: .5rem;
  list-style: none;
  columns: 2;
  column-gap: .5rem;
  width: max-content;
  max-width: calc(100vw - 2rem);
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--rule), 0 8px 0 var(--shadow);
}
.langs li a {
  display: block;
  padding: .3rem .7rem;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.langs li a:hover { background: var(--paper); }
.langs li a[aria-current] { color: var(--ink); background: var(--paper); }

@media (max-width: 26rem) {
  .facts { gap: .5rem; }
  .facts li { min-width: 0; flex: 1; padding: .6rem .75rem; }
}

.note {
  margin: 1.6rem 0 0;
  max-width: 32rem;
  color: var(--muted);
  font-size: .9rem;
}

.doc b, .doc strong { font-weight: 800; }
