/* stanwatch — сайт. Эмалевая синяя табличка с номером дома, маркер на сербском тексте. */
:root {
  --plaster: #eef1f4;
  --sheet: #ffffff;
  --ink: #121a24;
  --ink-2: #4a5664;
  --line: #d6dce3;
  --enamel: #1c4b8e;
  --enamel-deep: #153a6f;
  --on-enamel: #ffffff;
  --marker: #ffe04a;
  --on-marker: #121a24;
  --yes: #1b7a4b;
  --no: #b5372e;
  --bubble: #ffffff;
  --bubble-shadow: 0 1px 0 rgba(18, 26, 36, .08), 0 12px 32px -12px rgba(18, 26, 36, .28);
  --tg-key: #e9eef4;
  --display: "Fira Sans Extra Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Golos Text", -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1140px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --plaster: #0c1219;
    --sheet: #141c26;
    --ink: #e8edf2;
    --ink-2: #97a4b2;
    --line: #253140;
    --enamel: #2a62b8;
    --enamel-deep: #1c4b8e;
    --marker: #f3d43a;
    --yes: #4cc58a;
    --no: #ff7a6e;
    --bubble: #1b2531;
    --bubble-shadow: 0 1px 0 rgba(0, 0, 0, .4), 0 14px 36px -14px rgba(0, 0, 0, .8);
    --tg-key: #223042;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --plaster: #0c1219; --sheet: #141c26; --ink: #e8edf2; --ink-2: #97a4b2; --line: #253140;
  --enamel: #2a62b8; --enamel-deep: #1c4b8e; --marker: #f3d43a; --yes: #4cc58a; --no: #ff7a6e;
  --bubble: #1b2531; --tg-key: #223042; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  font-feature-settings: "tnum" 0;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--enamel); }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; border-radius: 4px; }
p, ul, dl, table, figure { margin: 0; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 10; background: var(--sheet); padding: 8px 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* --- табличка-эмаль --- */
.plate {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--enamel);
  color: var(--on-enamel);
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px var(--enamel), inset 0 0 0 4px rgba(255, 255, 255, .92), 0 1px 0 rgba(0, 0, 0, .12);
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: .01em;
}
.plate-logo { padding: 3px 9px 4px; font-size: 21px; line-height: 1; }

/* --- шапка --- */
.masthead { padding: 18px 0; }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.brand-rest { font-family: var(--display); font-weight: 600; font-size: 23px; line-height: 1; letter-spacing: .01em; }
.topnav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.topnav a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.topnav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 560px) { .topnav a:not(.btn) { display: none; } }

/* --- кнопки --- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--enamel); color: var(--on-enamel);
  border-radius: 10px; padding: 11px 18px;
  font: 600 16px/1.2 var(--body); text-decoration: none;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--enamel-deep); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 8px 14px; font-size: 15px; }
.btn-big { padding: 16px 24px; font-size: 18px; border-radius: 12px; }
.btn-invert { background: var(--sheet); color: var(--enamel); }
.btn-invert:hover { background: var(--marker); color: var(--on-marker); }
.tg-icon { width: 22px; height: 22px; fill: currentColor; flex: none; }
.link-quiet { color: var(--ink-2); font-weight: 500; }

/* --- первый экран --- */
.hero { padding: 28px 0 72px; }
.hero-grid { display: grid; gap: 48px; }
@media (min-width: 960px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: start; }
}
.hero-title {
  margin: 0 0 24px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(46px, 8.6vw, 98px);
  line-height: .92;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.lede { max-width: 34em; font-size: clamp(17px, 1.6vw, 19px); color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }
.channel { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.channel a { color: var(--ink); font-weight: 500; }
.hero-note { margin-top: 16px; font-size: 15px; color: var(--ink-2); }
.proof { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 30em; font-size: 16px; }
.proof-num { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; color: var(--enamel); margin-right: 2px; }

/* --- образец: объявление → карточка --- */
.specimen { position: relative; display: grid; gap: 0; }
/* объявление — как бумажка «Izdaje se» на двери подъезда: чуть косо, на скотче */
.oglas {
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 26px 24px 24px;
  font-size: 16px; line-height: 1.7;
  transform: rotate(-1.2deg);
  box-shadow: 0 1px 0 rgba(18, 26, 36, .06), 0 10px 24px -16px rgba(18, 26, 36, .35);
}
.oglas::before {
  content: ""; position: absolute; top: -11px; left: 50%;
  width: 92px; height: 24px; margin-left: -46px;
  background: rgba(255, 236, 160, .55);
  border-left: 1px dashed rgba(0, 0, 0, .06); border-right: 1px dashed rgba(0, 0, 0, .06);
  transform: rotate(2.5deg);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .oglas::before { background: rgba(255, 236, 160, .22); } }
.oglas-kicker { font-size: 13px; color: var(--ink-2); }
.oglas-title { margin: 2px 0 10px; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.1; }
.oglas-text { color: var(--ink); }
.hl {
  color: inherit;
  padding: 0 .12em;
  margin: 0 -.06em;
  border-radius: .2em .35em .25em .3em;
  background: linear-gradient(100deg, transparent 0, var(--marker) .3em, var(--marker) calc(100% - .3em), transparent 100%) no-repeat 0 60% / 100% 78%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hl { color: var(--on-marker); } }
:root[data-theme="dark"] .hl { color: var(--on-marker); }
.hl::after, .ref {
  font: 700 11px/1 var(--body);
  vertical-align: super;
  margin-left: 2px;
  color: var(--enamel);
}
.hl-1::after { content: "1"; } .hl-2::after { content: "2"; } .hl-3::after { content: "3"; }
.reads {
  display: flex; align-items: center; justify-content: center;
  height: 56px;
  font-size: 13px; color: var(--ink-2);
}
.reads span { position: relative; padding: 2px 10px; background: var(--plaster); }
.reads::before { content: ""; position: absolute; left: 50%; height: 56px; border-left: 2px dashed var(--line); }
.bubble {
  position: relative;
  background: var(--bubble);
  border-radius: 18px 18px 18px 6px;
  box-shadow: var(--bubble-shadow);
  padding: 16px 18px 12px;
  font-size: 15.5px; line-height: 1.5;
  margin-right: 8%;
}
@media (min-width: 960px) { .bubble { margin-left: 6%; margin-right: 0; } }
.bubble-price { font-size: 16px; }
.bubble-price b { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: .01em; }
.bubble-meta { color: var(--ink-2); font-size: 14.5px; margin-bottom: 10px; }
.bubble-facts { list-style: none; padding: 0; display: grid; gap: 7px; }
.f { display: grid; grid-template-columns: 22px 1fr; gap: 6px; align-items: start; }
.f-ic { font-size: 15px; line-height: 1.5; }
.f-q {
  display: inline-grid; place-items: center; width: 16px; height: 16px; margin-top: 3px;
  border-radius: 4px; background: var(--ink-2); color: var(--sheet); font: 700 11px/1 var(--body);
}
.f q {
  display: block; quotes: "«" "»";
  font-size: 13.5px; color: var(--ink-2);
}
.f q::before { content: open-quote; } .f q::after { content: close-quote; }
.better { display: block; font-style: normal; font-size: 14px; color: var(--yes); font-weight: 600; }
.better::before { content: "↳ "; color: var(--ink-2); font-weight: 400; }
.bubble-why { margin-top: 10px; font-size: 14.5px; }
.kb { display: grid; grid-template-columns: 1fr 1.6fr .5fr .5fr; gap: 4px; margin: 12px -10px -4px; }
.kb span {
  text-align: center; font-size: 13.5px; font-weight: 500;
  background: var(--tg-key); border-radius: 8px; padding: 8px 4px; color: var(--enamel);
}
.specimen-cap { margin-top: 18px; font-size: 13.5px; color: var(--ink-2); }

/* одна сцена при загрузке: маркер проходит по цитатам, факты в карточке проявляются следом */
@media (prefers-reduced-motion: no-preference) {
  .hl { animation: mark .5s cubic-bezier(.25, 1, .5, 1) both; }
  .hl-1 { animation-delay: .35s; } .hl-2 { animation-delay: .8s; } .hl-3 { animation-delay: 1.25s; }
  .f { animation: settle .45s ease-out both; }
  .f-1 { animation-delay: .7s; } .f-2 { animation-delay: 1.15s; } .f-3 { animation-delay: 1.6s; } .f-4 { animation-delay: 1.9s; }
  .better { animation: settle .45s ease-out 2.1s both; }
}
@keyframes mark { from { background-size: 0% 78%; } to { background-size: 100% 78%; } }
@keyframes settle { from { opacity: .18; } to { opacity: 1; } }

/* --- секции --- */
.section { padding: 72px 0; }
.section-alt { background: var(--sheet); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .section { padding: 104px 0; } }
.h2 {
  margin: 0 0 18px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(34px, 5vw, 56px); line-height: .98; letter-spacing: -.005em;
  max-width: 16em; text-wrap: balance;
}
.h3 { margin: 0 0 12px; font: 600 20px/1.3 var(--body); }
.section-lede { max-width: 38em; color: var(--ink-2); font-size: 18px; margin-bottom: 40px; }

.verbs { display: grid; gap: 40px; margin-top: 40px; }
@media (min-width: 860px) { .verbs { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.verb { border-top: 4px solid var(--enamel); padding-top: 18px; }
.verb-title { margin: 0 0 18px; font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; color: var(--enamel); }
.feat dt { font-weight: 600; margin-top: 18px; }
.feat dt:first-child { margin-top: 0; }
.feat dd { margin: 4px 0 0; color: var(--ink-2); font-size: 16px; }

/* сравнение */
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.compare thead th { font: 600 14px/1.2 var(--body); color: var(--ink-2); padding-top: 0; }
.compare thead th.us { color: var(--enamel); }
.compare tbody th { font-weight: 600; width: 28%; }
.compare td { color: var(--ink-2); width: 30%; }
.compare td.us { color: var(--ink); font-weight: 500; width: 42%; }
.compare tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 720px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto !important; }
  .compare tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare th, .compare td { border: 0; padding: 2px 0; }
  .compare tbody th { margin-bottom: 6px; }
  .compare td::before { content: attr(data-l) ": "; font-weight: 600; color: var(--ink-2); }
  .compare td.us::before { color: var(--enamel); }
}

/* медианы */
.medians { width: 100%; max-width: 760px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.medians th, .medians td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); text-align: left; }
.medians thead th { font: 600 14px/1.2 var(--body); color: var(--ink-2); }
.medians tbody th { font-weight: 600; }
.medians .n { text-align: right; white-space: nowrap; }
.medians td.muted { color: var(--ink-2); font-size: 15px; }
.medians .latin { display: block; font-weight: 400; font-size: 13px; color: var(--ink-2); }
.medians tr.suburb th a { font-weight: 500; }
.district-links { list-style: none; padding: 0; margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.district-links a {
  display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--sheet); text-decoration: none; font-size: 15px;
  transition: border-color .15s ease, color .15s ease;
}
.district-links a:hover { border-color: var(--enamel); color: var(--enamel); }

/* тарифы */
.plans { display: grid; gap: 16px; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px 24px;
  background: var(--plaster);
}
.plan-accent { background: var(--enamel); color: var(--on-enamel); border-color: var(--enamel); }
.plan-name { margin: 0; font: 600 18px/1.2 var(--body); }
.plan-price { margin-top: 14px; font-family: var(--display); font-weight: 800; line-height: 1; }
.plan-price b { font-size: 54px; letter-spacing: -.01em; }
.star { font-size: 30px; color: #f2b01e; vertical-align: 6px; }
.plan-period { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.plan-accent .plan-period { color: rgba(255, 255, 255, .78); }
.plan-feats { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 8px; font-size: 15px; }
.plan-feats li { padding-left: 18px; position: relative; }
.plan-feats li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: currentColor; opacity: .5; }
.packs-note { margin-top: 24px; max-width: 44em; font-size: 14.5px; color: var(--ink-2); }

/* вопросы */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 18px 0; font-weight: 600; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  font: 400 26px/1 var(--body); color: var(--enamel);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; max-width: 40em; color: var(--ink-2); }

/* финал */
.final { background: var(--enamel); color: var(--on-enamel); padding: 72px 0; }
.final-inner { display: grid; gap: 28px; justify-items: start; }
.final-title { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5.4vw, 60px); line-height: .98; max-width: 14em; text-wrap: balance; }

/* подвал */
.footer { padding: 56px 0 32px; font-size: 15px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr; } }
.footer-note { margin-top: 14px; max-width: 32em; color: var(--ink-2); }
.footer-links { display: grid; gap: 8px; align-content: start; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-base { margin-top: 36px; color: var(--ink-2); font-size: 13.5px; }

/* --- внутренние страницы --- */
.page { padding-top: 12px; padding-bottom: 88px; }
.crumbs { font-size: 14px; color: var(--ink-2); margin-bottom: 22px; }
.crumbs a { color: var(--ink-2); }
.district-title {
  margin: 0 0 10px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 7vw, 76px); line-height: .95; letter-spacing: -.01em;
  max-width: 15em; text-wrap: balance;
}
.district-title .sr { position: absolute; }
.district-stats { display: block; margin-top: 10px; font-size: clamp(22px, 3vw, 32px); font-weight: 600; line-height: 1.1; color: var(--ink-2); letter-spacing: 0; }
.district-latin { color: var(--ink-2); font-size: 15px; margin-bottom: 32px; }
.plates { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.plate-stat {
  flex: 1 1 150px; max-width: 260px;
  flex-direction: column; align-items: flex-start;
  padding: 16px 22px 14px; border-radius: 10px; min-width: 170px;
  box-shadow: inset 0 0 0 3px var(--enamel), inset 0 0 0 6px rgba(255, 255, 255, .92), 0 2px 0 rgba(0, 0, 0, .12);
}
.plate-stat b { font-size: 44px; line-height: 1; white-space: nowrap; }
.plate-stat span { font: 500 14px/1.3 var(--body); opacity: .88; margin-top: 4px; }
.nodata { color: var(--ink-2); margin: 0 0 40px; max-width: 36em; }
.district-body { display: grid; gap: 48px; }
@media (min-width: 960px) { .district-body { grid-template-columns: 1fr 1fr; gap: 64px; } }
.blurb p { margin-bottom: 14px; max-width: 36em; }
.recent-list { list-style: none; padding: 0; }
.recent-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.recent-list a { text-decoration: none; min-width: 0; }
.recent-list a:hover .r-title { text-decoration: underline; }
.r-title { display: block; font-weight: 500; overflow-wrap: anywhere; }
.r-meta { display: block; font-size: 14px; color: var(--ink-2); }
.r-price { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.recent-note { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.cta-box {
  margin: 64px 0; padding: 28px; border-radius: 16px;
  background: var(--sheet); border: 1px solid var(--line);
  display: grid; gap: 12px; justify-items: start; max-width: 760px;
}
.cta-box-title { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.02; }
.cta-box p:not(.cta-box-title) { color: var(--ink-2); }
.cta-box .btn { margin-top: 8px; }
.others-list { list-style: none; padding: 0; display: grid; gap: 0 32px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.others-list a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.others-list a:hover span:first-child { text-decoration: underline; }
.o-price { color: var(--ink-2); font-variant-numeric: tabular-nums; }

.legal { max-width: 780px; }
.legal-date { color: var(--ink-2); margin-bottom: 36px; }
.legal .h3 { margin-top: 36px; }
.legal p, .legal li { max-width: 40em; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; margin-bottom: 12px; }
.legal p + p { margin-top: 12px; }

.notfound { padding-top: 48px; }
.plate-404 { padding: 10px 26px 12px; font-size: 64px; line-height: 1; margin-bottom: 28px; border-radius: 10px; }
