/* Публичный сайт ArgHub (ARG-WEB-001, lib/site.js): лёгкий, без JS, сначала телефон, затем раскладка для компьютера.
   Стиль — брендбук ARG-BRAND-001 (docs/brand/reference-2026-09-28.webp): тёмно-синий #141A4A, градиент синий → фиолетовый → розовый,
   белые карточки со скруглением и мягкой тенью, компактные размеры. Sora — латиница; кириллица — Manrope (у Sora её нет); zh/ko — системный. */
:root {
  --navy: #141A4A; --blue: #3B6EF5; --violet: #8B5CF6; --pink: #F472B6; --coral: #F9867A; --orange: #FDBA74; --mint: #7EDDB8; --grey: #E6E8EE;
  --grad: linear-gradient(120deg, var(--blue) 0%, var(--violet) 55%, var(--pink) 100%);
  --bg: #F5F6FA; --card: #FFFFFF; --ink: #141A4A; --muted: #6B7090; --line: #E6E8EE; --soft: #EEF2FE; --accent: #3B6EF5;
  --shadow: 0 1px 2px rgba(20,26,74,.04), 0 8px 24px rgba(20,26,74,.07); --radius: 16px; --w: 1180px;
  --head: Sora, Manrope, system-ui, sans-serif; --text: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0B0F2E; --card: #151B4A; --ink: #F2F3FA; --muted: #A4A9CC; --line: rgba(255,255,255,.08); --soft: rgba(59,110,245,.16); --accent: #8FA8FF;
    --shadow: 0 1px 2px rgba(0,0,0,.25), 0 10px 28px rgba(0,0,0,.28); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); overflow-wrap: anywhere; text-wrap: balance; letter-spacing: -.015em; }
h1 { font-size: 22px; font-weight: 700; line-height: 1.25; margin: 6px 0 8px; }
h2 { font-size: 17px; font-weight: 600; margin: 28px 0 12px; }
h2 a { color: inherit; }
p { margin: 0 0 12px; }
img { max-width: 100%; height: auto; }
.muted { color: var(--muted); } .small { font-size: 12.5px; }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 10px max(16px, calc((100% - var(--w)) / 2 + 16px));
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font: 700 18px/1 var(--head); letter-spacing: -.02em; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 26px; flex: none; }
.nav { display: none; gap: 4px; }
.nav a { color: var(--ink); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--soft); text-decoration: none; }
.lng { position: relative; }
.lng summary { list-style: none; cursor: pointer; font: 600 12.5px/1 var(--text); padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--card); }
.lng summary::-webkit-details-marker { display: none; }
.lng summary::after { content: "▾"; margin-left: 5px; color: var(--muted); }
.lng > div { position: absolute; right: 0; top: calc(100% + 6px); display: grid; grid-template-columns: repeat(2, 64px); gap: 2px; padding: 6px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.lng > div a, .lng > div b { padding: 7px 10px; border-radius: 8px; font-size: 13px; color: var(--ink); }
.lng > div b { background: var(--soft); color: var(--accent); }
.lng > div a:hover { background: var(--soft); text-decoration: none; }

main { max-width: var(--w); margin: 0 auto; padding: 10px 16px 40px; }
.crumbs { font-size: 12.5px; color: var(--muted); margin: 8px 0 6px; overflow-wrap: anywhere; }
.crumbs a { color: var(--muted); }
.lead { color: var(--muted); font-size: 14.5px; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 12px; padding: 0 18px; background: var(--grad); color: #fff;
  font: 600 14px/1.2 var(--text); text-align: center; box-shadow: 0 6px 18px rgba(139,92,246,.28); white-space: nowrap; }
.btn:hover { text-decoration: none; filter: brightness(1.07); }
.btn.ghost { background: var(--soft); color: var(--accent); box-shadow: none; }
.btn.light { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 10px; }
.cta { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.cta .btn { flex: 1 1 200px; }
.cta p { flex-basis: 100%; margin: 0; }

/* ---------- главная: герой ---------- */
.hero { position: relative; display: grid; gap: 18px; margin: 8px 0 6px; padding: 28px 20px 22px; border-radius: 22px; overflow: hidden; color: #fff; isolation: isolate;
  background: linear-gradient(100deg, rgba(20,26,74,.97) 0%, rgba(20,26,74,.86) 45%, rgba(20,26,74,.45) 100%), url(/img/hero-city.jpg) center 70% / cover, var(--navy); }
.hero::before { content: ""; position: absolute; z-index: -1; right: -70px; top: -90px; width: 260px; height: 260px; border-radius: 42% 58% 55% 45%; background: var(--grad); opacity: .55; filter: blur(8px); }
.hero::after { content: ""; position: absolute; z-index: -1; left: 40%; bottom: -120px; width: 220px; height: 220px; border-radius: 55% 45% 40% 60%; background: linear-gradient(120deg, var(--violet), var(--pink)); opacity: .25; filter: blur(30px); }
.kicker { display: inline-block; margin: 0 0 12px; padding: 6px 11px; border-radius: 99px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  font: 600 12px/1 var(--text); color: rgba(255,255,255,.9); }
.hero h1 { color: #fff; font-size: 28px; line-height: 1.12; letter-spacing: -.03em; margin: 0 0 10px; }
.hero .lead { color: rgba(255,255,255,.78); font-size: 14.5px; margin: 0 0 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.stats li { display: flex; flex-direction: column; }
.stats b { font: 700 18px/1.2 var(--head); color: #fff; }
.stats span { font-size: 12px; color: rgba(255,255,255,.65); }
.rate-card { display: grid; gap: 8px; align-self: end; padding: 16px 18px; border-radius: 18px; color: #fff; background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.rate-card:hover { text-decoration: none; background: rgba(255,255,255,.15); }
.rc-k { font: 600 12.5px/1 var(--text); color: rgba(255,255,255,.75); }
.rc-v { display: flex; gap: 22px; }
.rc-v > span { display: flex; flex-direction: column; }
.rc-v small { font-size: 11px; color: rgba(255,255,255,.6); }
.rc-v b { font: 700 26px/1.1 var(--head); letter-spacing: -.02em; }
.rc-f { font-size: 11px; color: rgba(255,255,255,.55); }
.rc-l { font: 600 13px/1 var(--text); color: #C9D6FF; }

/* ---------- плитки разделов: иконка на мягкой плитке, 4 в ряд на телефоне ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 8px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 3px 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); color: var(--ink); text-align: center; transition: transform .15s, border-color .15s; }
.tile:hover { text-decoration: none; transform: translateY(-2px); border-color: color-mix(in srgb, var(--violet) 40%, var(--line)); }
.tile .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: color-mix(in srgb, var(--c, var(--blue)) 13%, transparent); color: var(--c, var(--blue)); }
.tile .ic svg { width: 22px; height: 22px; }
.tile span:last-child { font: 600 11px/1.25 var(--text); overflow-wrap: normal; word-break: normal; hyphens: auto; -webkit-hyphens: auto; max-width: 100%; }
.ic-exchange, .ic-tourism { --c: var(--blue); } .ic-services, .ic-market { --c: var(--violet); } .ic-realty, .ic-parks { --c: #2FB98A; }
.ic-foodshops { --c: var(--coral); } .ic-leisuregrp { --c: #F59E0B; }

/* ---------- путеводитель на главной ---------- */
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec-h a { font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.gcards { display: grid; gap: 10px; }
.gcard { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 104px; padding: 16px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); overflow: hidden; }
.gcard::before { content: ""; position: absolute; right: -30px; top: -30px; width: 96px; height: 96px; border-radius: 45% 55% 50% 50%; opacity: .16; background: var(--grad); }
.gcard.g1::before { background: linear-gradient(120deg, var(--violet), var(--pink)); } .gcard.g2::before { background: linear-gradient(120deg, var(--mint), var(--blue)); }
.gcard.g3::before { background: linear-gradient(120deg, var(--orange), var(--coral)); }
.gcard b { font: 600 15px/1.3 var(--head); position: relative; }
.gcard span { font-size: 12px; color: var(--muted); }
.gcard:hover { text-decoration: none; border-color: color-mix(in srgb, var(--violet) 40%, var(--line)); }

/* ---------- нижний блок «Город в твоём кармане» ---------- */
.band { display: grid; gap: 14px; justify-items: start; margin-top: 36px; padding: 24px 20px; border-radius: 22px; color: #fff; overflow: hidden; position: relative; isolation: isolate;
  background: radial-gradient(120% 140% at 100% 0%, rgba(139,92,246,.55), transparent 55%), radial-gradient(90% 120% at 0% 100%, rgba(59,110,245,.45), transparent 60%), var(--navy); }
.band svg { width: 52px; height: 48px; }
.band h2 { color: #fff; margin: 0 0 6px; font-size: 20px; }
.band p { color: rgba(255,255,255,.78); margin: 0; max-width: 560px; }

/* ---------- списки и карточки ---------- */
.list { display: grid; gap: 8px; }
.card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); }
.card:hover { text-decoration: none; border-color: color-mix(in srgb, var(--violet) 40%, var(--line)); }
.card .pic img { display: block; border-radius: 12px; object-fit: cover; }
.card .txt { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.card b { font: 600 14.5px/1.3 var(--head); overflow-wrap: anywhere; }
.card .txt span { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 11px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-size: 12.5px; }
a.chip { color: var(--accent); }
a.chip:hover { text-decoration: none; background: var(--soft); }
.links { padding-left: 18px; } .links li { margin: 6px 0; }
.links li::marker { color: var(--violet); }

/* ---------- карточка бизнеса, места, объекта ---------- */
.head { display: flex; gap: 14px; align-items: center; }
.head img { border-radius: 16px; object-fit: cover; flex: none; }
.head h1 { margin: 0 0 2px; }
.head p { margin: 0; }
.promo { background: color-mix(in srgb, var(--orange) 16%, transparent); border: 1px solid color-mix(in srgb, var(--orange) 45%, transparent); border-radius: 12px; padding: 10px 12px; margin-top: 14px; }
.next-slot { margin-top: 10px; color: var(--muted); }
.desc { white-space: pre-line; overflow-wrap: anywhere; margin-top: 14px; }
.price { font: 700 20px var(--head); margin: 0 0 10px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.facts { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; gap: 8px 14px; margin: 16px 0; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.prices { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.prices td, .prices th { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prices tr:last-child td { border-bottom: 0; }
.prices th { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.prices td:last-child, .prices th:last-child { text-align: right; white-space: nowrap; }
.photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.photos figure { margin: 0; }
.photos figcaption { margin-top: 4px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.team { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.team li { display: flex; align-items: center; gap: 8px; }
.team img { border-radius: 50%; object-fit: cover; }
article p { font-size: 15.5px; line-height: 1.7; }

/* Языки мастера (ARG-SEO-005): «Говорит по-русски» — акцентный бейдж, остальные языки — кодами */
.lb { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.lb i { font-style: normal; font-size: 11.5px; line-height: 1; padding: 5px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); letter-spacing: .02em; }
.lb .lb-own { background: var(--soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--accent); font-weight: 600; letter-spacing: 0; }
.head .lb { margin: 6px 0 2px; }

/* ---------- подвал ---------- */
footer { margin-top: 24px; padding: 28px max(16px, calc((100% - var(--w)) / 2 + 16px)) 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; background: var(--card); }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }
.foot { display: grid; gap: 20px; margin-bottom: 18px; }
.foot-brand p { margin: 10px 0 0; }
.foot-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; }
.langs b, .langs a { margin-right: 8px; }
.langs b { color: var(--ink); }

/* ---------- планшет ---------- */
@media (min-width: 640px) {
  .gcards { grid-template-columns: repeat(2, 1fr); }
  .photos { grid-template-columns: repeat(3, 1fr); }
  .band { grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 28px 32px; }
}

/* ---------- компьютер ---------- */
@media (min-width: 960px) {
  .top { padding-top: 14px; padding-bottom: 14px; }
  .nav { display: flex; }
  .brand { font-size: 20px; } .brand svg { width: 32px; height: 30px; }
  main { padding: 16px 32px 56px; }
  h1 { font-size: 30px; } h2 { font-size: 21px; margin-top: 44px; margin-bottom: 16px; }
  .hero { grid-template-columns: 1fr 300px; align-items: end; gap: 40px; margin-top: 16px; padding: 72px 56px 56px; border-radius: 28px; }
  .hero::before { width: 460px; height: 460px; right: -120px; top: -160px; }
  .hero h1 { font-size: 52px; max-width: 640px; }
  .hero .lead { font-size: 17px; max-width: 540px; margin-bottom: 26px; }
  .hero-cta { margin-bottom: 34px; } .hero-cta .btn { min-height: 48px; padding: 0 24px; font-size: 15px; }
  .stats { gap: 36px; } .stats b { font-size: 24px; } .stats span { font-size: 13px; }
  .rate-card { padding: 22px; } .rc-v b { font-size: 32px; }
  .tiles { grid-template-columns: repeat(8, 1fr); gap: 14px; }
  .tile { padding: 20px 6px 16px; gap: 12px; }
  .tile .ic { width: 56px; height: 56px; border-radius: 18px; } .tile .ic svg { width: 26px; height: 26px; }
  .tile span:last-child { font-size: 13px; }
  .list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gcards { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .gcard { min-height: 132px; padding: 20px; } .gcard b { font-size: 16.5px; }
  .band { margin-top: 56px; padding: 40px 48px; border-radius: 28px; } .band h2 { font-size: 26px; } .band svg { width: 72px; height: 66px; }
  main:not(.home) > h1, main:not(.home) > .lead, article, .facts, .desc, .head, .cta, .prices { max-width: 860px; }
  .photos { grid-template-columns: repeat(4, 1fr); }
  .foot { grid-template-columns: 1.3fr 2fr 1fr; gap: 40px; }
  .foot-col { grid-template-columns: repeat(2, 1fr); } .foot-col:last-child { grid-template-columns: 1fr; align-content: start; }
}
@media (min-width: 1240px) { .list { grid-template-columns: repeat(3, 1fr); } }
