/* Общий стиль семьи сайтов GoLets (goletshome.app, golets.app; docs/test-matrices/
   home-site.md). Тот же тёмно-синий текст и системный шрифт, что у витрин
   goletsgo.app (tool/showcase/style.css); цвет сайта — --accent (у GoLetsHome —
   индиго раздела, home_section.dart). Без сторонних шрифтов и скриптов:
   страница не обращается к другим сайтам, пока человек сам не нажмёт
   «Показать на карте». */
:root {
  color-scheme: only light;
  --accent: #0F172A;
  --accent-soft: #E2E8F0;
  --ink: #0F172A;
  --ink-soft: #475569;
  --line: rgba(15, 23, 42, 0.12);
  --page: #F8FAFC;
  --card: #FFFFFF;
  --warn-bg: #FDECEA;
  --warn-ink: #8C1D18;
  /* Шапка и полоса главной: у GoLetsHome — цвет фона значка (вариант Б,
     решение пользователя 2026-11-03), как оранжевая полоса GoLetsGo. */
  --band: #FFFFFF;
  --band-line: var(--line);
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2 { text-wrap: balance; overflow-wrap: anywhere; }
.wrap { max-width: 760px; margin-inline: auto; padding-inline: 16px; }

/* ---------- Шапка ---------- */
.top { background: var(--band); border-bottom: 1px solid var(--band-line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-block: 8px; min-height: 60px; }
/* Шильдик как в приложении (SectionBrandText): «GoLets» чёрный на всех
   сайтах, вторая часть — цвет сайта; звезда — чёрная, как на значке. */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -0.01em; text-decoration: none; color: #000; }
.brand .mark span { color: var(--accent); }
/* 40 px — как на витринах goletsgo.app (вариант В, решение пользователя
   2026-11-04): у тонкой наклонной линии меньше «ступенек», чем при 34 px. */
.star { flex: none; width: 40px; height: 40px; }
/* Языки — значок 🌐 и меню, как на витринах goletsgo.app (tool/showcase):
   <details> без скрипта, ссылки на все языки остаются в коде страницы. */
.langs { position: relative; }
.langs summary {
  list-style: none; cursor: pointer; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary svg { width: 32px; height: 32px; fill: var(--ink); }
.langs summary:hover, .langs[open] summary { background: rgba(255, 255, 255, 0.55); }
.langs ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; min-width: 170px;
  list-style: none; margin: 0; padding: 6px; border-radius: 14px;
  background: var(--card); box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
}
.langs a, .langs span[aria-current] {
  display: block; padding: 9px 12px; border-radius: 9px; font-size: 15px; text-decoration: none;
}
.langs a:hover { background: var(--accent-soft); }
.langs span[aria-current] { background: var(--ink); color: #fff; font-weight: 700; }
/* ---------- Главная (home-site.md S10): раскладка витрин goletsgo.app ---------- */
.band { background: var(--band); }
.band .top { background: transparent; }
.band .wrap, main > .wrap { max-width: 1080px; }
.hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; padding-block: 24px 8px; }
.eyebrow { margin: 0 0 10px; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.hero h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; margin: 0; color: #000; }
.lead { font-size: 18px; margin: 16px 0 4px; max-width: 34em; }
.hero .actions { margin: 20px 0 14px; }
.hero .actions .btn { flex: 0 1 auto; }
/* Значок Google Play — как у витрин goletsgo.app (tool/showcase/style.css):
   line-height 0 (без зазора строки под картинкой), тень, внизу крупнее. */
.play-badge {
  display: inline-block; line-height: 0; border-radius: 8px;
  filter: drop-shadow(0 2px 5px rgba(15, 23, 42, 0.17));
  transition: filter .15s ease, transform .15s ease;
}
.play-badge:hover { filter: drop-shadow(0 8px 17px rgba(15, 23, 42, 0.21)); transform: translateY(-2px); }
.play-badge img { height: 49px; width: auto; }
.final .play-badge img { height: 62px; }
@media (prefers-reduced-motion: reduce) { .play-badge, .play-badge:hover { transition: none; transform: none; } }
.hero-note { margin: 10px 0 0; font-size: 14px; color: var(--ink-soft); }
/* Справа — телефон с картой GoLetsHome (tool/auth_mockup, SCENES=home),
   зеркально телефону витрин GoLetsGo. */
.hero-art img { width: 100%; height: auto; }
/* «Скоро в приложении» — пока раздел не включён в приложении (HOME_APP_LIVE). */
.btn-soon { background: var(--accent-soft); color: var(--accent); border-color: transparent; cursor: default; }
.types { padding-block: 16px 32px; }
.types h2, .latest h2, .how h2, .safety h2, .final h2 { font-size: 26px; font-weight: 800; margin: 0 0 16px; }
.types h2 { font-size: 18px; margin-bottom: 12px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chips li { background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 15px; }
.latest, .how, .safety { padding-block: 40px 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; }
.card img, .card-empty { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-empty { display: grid; place-items: center; background: var(--band); }
.card-empty .star { width: 56px; height: 56px; opacity: 0.35; }
.card-body { display: block; padding: 10px 14px 14px; }
.card-price, .card-title { display: block; }
.card-price { font-weight: 800; font-size: 18px; }
.card-title { margin-top: 2px; overflow-wrap: anywhere; }
.card:hover { border-color: var(--accent); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li, .safety-grid li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; }
.steps h3, .safety-grid h3 { font-size: 18px; margin: 10px 0 6px; }
.steps p, .safety-grid p { margin: 0; color: var(--ink-soft); }
/* Под «Как это работает»: объявление видно во всём мире (home-site.md S10). */
.worldwide { margin: 16px 0 0; padding: 14px 18px; border-radius: 16px; background: var(--accent-soft); color: var(--ink); font-weight: 600; font-size: 17px; }
.safety-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.safety-grid li { display: flex; gap: 14px; align-items: flex-start; }
.safety-grid h3 { margin-top: 0; }
.safety-emoji { font-size: 26px; line-height: 1; }
.final { text-align: center; padding-block: 48px 40px; }
.final .actions { justify-content: center; }
.final .actions .btn { flex: 0 1 auto; }
.trademark { font-size: 12px; margin-top: 14px; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 8px 10px 10px; }
  .card-price { font-size: 16px; }
  .card-title { font-size: 14px; }
  .steps, .safety-grid { grid-template-columns: 1fr; }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 14px; border: 2px solid var(--accent);
  font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; text-align: center; cursor: pointer;
  overflow-wrap: anywhere;
}
.btn-main { background: var(--accent); color: #fff; }
.btn-ghost { background: var(--card); color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.actions .btn { flex: 1 1 220px; }

/* ---------- Объявление ---------- */
main { padding-block: 16px 32px; }
/* Фото целиком на нейтральном фоне (home-listings.md Н1–Н3). */
.gallery { position: relative; margin: 0 0 8px; }
.gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  border-radius: 12px; scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track a { flex: 0 0 100%; scroll-snap-align: center; }
/* Поля вокруг фото — фирменный цвет полосы сайта (у goletshome.app — фон
   значка, #E3EDF7), как пустые карточки (решение пользователя 2026-11-04). */
.gallery-track img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain;
  background: var(--band);
}
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9); color: var(--ink); font-size: 28px; line-height: 1;
  cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.gallery-nav.prev { left: 8px; }
.gallery-nav.next { right: 8px; }
.gallery-nav:disabled { opacity: 0.35; cursor: default; }
.gallery-count {
  position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 12px;
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 13px;
}
.thumbs { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 16px; padding-bottom: 2px; }
.thumbs button {
  flex: 0 0 64px; width: 64px; height: 64px; padding: 0; border: 2px solid transparent;
  border-radius: 8px; background: none; cursor: pointer; overflow: hidden;
}
.thumbs button[aria-current="true"] { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; }
/* Просмотр фото поверх страницы (home-listings.md Н10): весь экран, тёмный
   фон, фото целиком; кнопки — как у галереи. */
.viewer {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: #000; color: #fff; overflow: hidden;
}
.viewer::backdrop { background: #000; }
.viewer-track {
  display: flex; width: 100%; height: 100%; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.viewer-track::-webkit-scrollbar { display: none; }
.viewer-track img {
  flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center;
}
.viewer-nav, .viewer-close {
  position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9); color: var(--ink); font-size: 30px; line-height: 1;
  cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.viewer-nav { top: 50%; transform: translateY(-50%); }
.viewer-nav.prev { left: 12px; }
.viewer-nav.next { right: 12px; }
.viewer-nav:disabled { opacity: 0.35; cursor: default; }
.viewer-close { top: 12px; right: 12px; }
.viewer-count {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  padding: 2px 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.55); font-size: 14px;
}
.price { font-size: 26px; font-weight: 800; margin: 0; overflow-wrap: anywhere; }
.approx, .muted { color: var(--ink-soft); margin: 0; }
.note { margin: 4px 0 0; overflow-wrap: anywhere; }
.title { font-size: 20px; font-weight: 600; margin: 8px 0 12px; }
.facts { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; text-align: end; overflow-wrap: anywhere; }
h2 { font-size: 16px; margin: 20px 0 4px; }
.description { white-space: pre-line; overflow-wrap: anywhere; margin: 0; }
.place { margin: 16px 0 0; }
.credit { font-size: 12px; color: var(--ink-soft); margin: 0; }
.map { margin: 12px 0 0; }
.map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 12px; }
/* «Поделиться» справа от цены — копирует ссылку без языка (home-listings.md Н5). */
.price-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 12px; }
.share { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin-left: auto; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
  border: 2px solid var(--accent); border-radius: 999px; background: var(--card); color: var(--accent);
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.share-btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.share-done { font-size: 13px; color: var(--ink-soft); }
.report { margin: 28px 0 4px; }
.report a { color: var(--ink-soft); }
.warn { background: var(--warn-bg); color: var(--warn-ink); border-radius: 12px; padding: 12px 14px; margin: 20px 0 0; }
.message { text-align: center; padding-block: 48px; }
.message h1 { font-size: 22px; }

/* ---------- Общие страницы golets.app (условия, политика…, S21) ---------- */
.legal { max-width: 720px; padding-block: 32px 56px; line-height: 1.6; }
.legal h1 { font-size: 28px; margin: 0 0 6px; }
.legal .updated { color: var(--ink-soft); font-size: 14px; margin: 0 0 28px; }
.legal h2 { font-size: 19px; margin: 32px 0 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal p, .legal li { color: var(--ink-soft); font-size: 15px; overflow-wrap: anywhere; }
.legal strong { color: var(--ink); }
.legal ul, .legal ol { padding-left: 20px; }
.legal table { border-collapse: collapse; width: 100%; margin: 8px 0 16px; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); vertical-align: top; }
.legal th { color: var(--ink); width: 110px; }
.legal .card { overflow: visible; border-radius: 12px; padding: 20px 24px; margin: 16px 0; }
.legal .button {
  display: inline-block; margin-top: 8px; padding: 12px 20px; border-radius: 14px;
  background: var(--accent); color: #fff; font-weight: 700; text-decoration: none;
}

/* ---------- Подвал ---------- */
.foot { border-top: 1px solid var(--line); background: var(--card); font-size: 13px; color: var(--ink-soft); }
.foot .wrap { padding-block: 20px; text-align: center; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 10px; }
.foot a { color: var(--ink); }
