/* =====================================================================
   AtmosBG — стилове
   Принцип: небето е единственият „силен“ елемент; всичко около него е тихо.
   ===================================================================== */

@font-face { font-family: "Geologica"; src: url("../fonts/geologica-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --air: #E7EDF0;          /* фон – въздух */
  --paper: #F7F9FA;        /* повдигнати повърхности */
  --paper-2: #EEF2F4;
  --ink: #142029;          /* основен текст */
  --ink-2: #4C5C69;        /* вторичен текст */
  --ink-3: #6F7E8A;
  --line: #CCD6DC;
  --line-2: #DDE4E8;
  --pine: #0E6656;         /* действие, връзки */
  --pine-ink: #0A5245;
  --pine-wash: #DCEDE8;
  --sun: #F2A93B;          /* слънце, акценти */
  --alert-2: #E8C232; --alert-3: #E8862C; --alert-4: #C9372C;
  --focus: #1C7CD6;
  --radius-l: 22px; --radius-m: 14px; --radius-s: 9px;
  --wrap: 1240px;
  --gutter: clamp(16px, 3.2vw, 32px);
  --f-display: "Geologica", "Onest", system-ui, sans-serif;
  --f-text: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-base: 18px;
  --wx-cloud: #D5DDE3; --wx-cloud-s: #AEBBC5; --wx-cloud-d: #8C9AA6;
  color-scheme: light;
}
:root[data-size="l"] { --fs-base: 20px; }
:root[data-size="xl"] { --fs-base: 22.5px; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --air: #0D151C; --paper: #141E27; --paper-2: #18242E; --ink: #E3EAEF; --ink-2: #A3B2BE; --ink-3: #82929F;
    --line: #26343F; --line-2: #1F2B35; --pine: #5CC4AE; --pine-ink: #7FD6C3; --pine-wash: #173A35;
    --wx-cloud: #C3CDD5; --wx-cloud-s: #8A99A5; --wx-cloud-d: #6E7D89; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --air: #0D151C; --paper: #141E27; --paper-2: #18242E; --ink: #E3EAEF; --ink-2: #A3B2BE; --ink-3: #82929F;
  --line: #26343F; --line-2: #1F2B35; --pine: #5CC4AE; --pine-ink: #7FD6C3; --pine-wash: #173A35;
  --wx-cloud: #C3CDD5; --wx-cloud-s: #8A99A5; --wx-cloud-d: #6E7D89; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--fs-base); -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body { margin: 0; background: var(--air); color: var(--ink); font: 400 1rem/1.55 var(--f-text); font-feature-settings: "tnum" 0; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--pine); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--pine-ink); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: .6em 1em; border-radius: 10px; }
.skip:focus { top: 12px; }
.muted { color: var(--ink-3); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
[data-temp], .now__temp, .day__temps, .mini-now__t { font-variant-numeric: tabular-nums; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; min-height: 52px; padding: .7em 1.25em; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; font-size: 1rem; }
.btn:hover { color: var(--paper); background: var(--pine-ink); }
.btn .ui { width: 22px; height: 22px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn--wide { width: 100%; justify-content: center; }
.iconbtn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); }
.iconbtn:hover { background: var(--paper-2); }
.iconbtn .ui { width: 24px; height: 24px; }
.linkbtn { border: 0; background: none; padding: .3em 0; color: var(--pine); text-decoration: underline; text-underline-offset: .2em; font-weight: 500; }
.chipbtn { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; padding: .45em 1em; border-radius: 999px; border: 1.5px solid currentColor; background: transparent; font-size: .9rem; font-weight: 500; }
.chipbtn .ui { width: 20px; height: 20px; }
.chipbtn[aria-pressed="true"] .ui { fill: var(--sun); color: var(--sun); }
.ui { width: 20px; height: 20px; flex: none; }
.ui--inline { display: inline-block; vertical-align: -4px; }

/* ---------- горна лента ---------- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--air) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line-2); }
.top__in { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(12px, 2.5vw, 32px); align-items: center; max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 38px; height: 38px; color: var(--ink); }
.brand__word { font: 700 1.3rem/1 var(--f-display); letter-spacing: -.02em; font-variation-settings: "SHRP" 40; }
.brand__word span { color: var(--pine); }
.top__tools { display: flex; align-items: center; gap: 4px; }
.langsw { display: inline-grid; place-items: center; min-width: 46px; height: 46px; border-radius: 50%; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.langsw:hover { background: var(--paper-2); color: var(--ink); }
.iconbtn--menu { display: none; }

.search { position: relative; max-width: 620px; width: 100%; justify-self: center; }
.search__input { width: 100%; height: 52px; padding: 0 9.5em 0 48px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .15s; }
.search__input::placeholder { color: var(--ink-3); }
.search__input:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 4px var(--pine-wash); }
.search__input::-webkit-search-cancel-button { display: none; }
.search__icon { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; color: var(--ink-3); pointer-events: none; }
.search__geo { position: absolute; right: 5px; top: 5px; height: 42px; display: inline-flex; align-items: center; gap: .4em; padding: 0 1em; border-radius: 999px; border: 0; background: var(--paper-2); color: var(--ink); font-size: .88rem; font-weight: 500; }
.search__geo:hover { background: var(--pine-wash); }
.search__list { position: absolute; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: 0 18px 40px -18px rgba(10, 30, 40, .35); max-height: min(70vh, 520px); overflow: auto; z-index: 60; }
.search__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; padding: .65em .9em; border-radius: 10px; cursor: pointer; }
.search__list li[aria-selected="true"], .search__list li:hover { background: var(--pine-wash); }
.search__list .s-n { font-weight: 600; }
.search__list .s-m { color: var(--ink-3); font-size: .85rem; text-align: right; }
.search__list .s-empty { color: var(--ink-2); cursor: default; }
.search__list mark { background: none; color: var(--pine); }

.mainnav { border-top: 1px solid var(--line-2); }
.mainnav__in { display: flex; gap: 4px; align-items: center; max-width: var(--wrap); margin: 0 auto; padding: 4px var(--gutter); overflow-x: auto; scrollbar-width: none; }
.mainnav__in::-webkit-scrollbar { display: none; }
.mainnav a { flex: none; padding: .5em .9em; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 500; white-space: nowrap; }
.mainnav a:hover { color: var(--ink); background: var(--paper-2); }
.mainnav a[aria-current="page"] { color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.mainnav__fav { display: flex; gap: 4px; margin-left: auto; padding-left: 12px; border-left: 1px solid var(--line); }
.mainnav__fav a { color: var(--ink); }
.mainnav__fav .fav-t { color: var(--ink-3); margin-left: .35em; }

/* ---------- небе (герой) ---------- */
.sky { position: relative; isolation: isolate; color: #102029; overflow: hidden; background: linear-gradient(#6FA9D8, #C9E1F0); }
.sky[data-tone="dark"] { color: #F1F6F9; background: linear-gradient(#0F1D33, #2B4060); }
.sky__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.sky__in { padding-top: clamp(14px, 2.5vw, 26px); padding-bottom: 8px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .2em .5em; margin: 0; padding: 0; list-style: none; font-size: .85rem; }
.crumbs li + li::before { content: "/"; margin-right: .5em; opacity: .5; }
.crumbs a { color: inherit; opacity: .85; }
.crumbs--plain { color: var(--ink-2); margin-bottom: 14px; }
.sky__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: end; margin-top: clamp(12px, 3vw, 34px); }
.sky__title { font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 600; font-variation-settings: "SHRP" 30; text-wrap: balance; }
.sky__where { margin-top: .35em; opacity: .85; font-size: .95rem; }
.now { margin-top: clamp(10px, 2vw, 24px); }
.now__when { font-size: .9rem; opacity: .85; min-height: 1.5em; }
.now__row { display: flex; align-items: center; gap: clamp(8px, 2vw, 24px); }
.now__temp { font: 200 clamp(6rem, 17vw, 12.5rem)/.86 var(--f-display); letter-spacing: -.055em; font-variation-settings: "SHRP" 60; margin-left: -.05em; }
.now .now__icon { width: clamp(84px, 12vw, 150px); height: auto; aspect-ratio: 1; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .12)); }
.now__cond { font: 500 clamp(1.25rem, 2.4vw, 1.7rem)/1.2 var(--f-display); margin-top: .3em; }
.now__feels { margin-top: .4em; font-size: 1rem; opacity: .92; display: flex; flex-wrap: wrap; gap: .3em 1.4em; }
.sky__side { padding-bottom: 6px; }
.sky__story { font: 400 clamp(1.08rem, 1.7vw, 1.3rem)/1.45 var(--f-text); max-width: 34ch; text-wrap: pretty; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin: 22px 0 0; }
.facts div { border-top: 1px solid color-mix(in srgb, currentColor 28%, transparent); padding-top: 8px; }
.facts dt { font-size: .82rem; opacity: .8; }
.facts dd { margin: 0; font: 500 1.2rem/1.3 var(--f-display); }
.facts__sub { font: 400 .85rem var(--f-text); opacity: .8; }
.sky__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.sky .chipbtn { color: inherit; border-color: color-mix(in srgb, currentColor 45%, transparent); background: color-mix(in srgb, currentColor 6%, transparent); }

/* лента с 48 часа */
.ribbon { margin-top: clamp(14px, 3vw, 30px); padding-bottom: 18px; }
.ribbon__head { display: flex; justify-content: space-between; align-items: center; gap: 1em; min-height: 32px; }
.ribbon__label { font-size: .82rem; opacity: .85; }
.sky .linkbtn { color: inherit; }
.ribbon__track { position: relative; height: 150px; border-radius: var(--radius-m); background: color-mix(in srgb, currentColor 7%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 16%, transparent); touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; margin-top: 6px; }
.ribbon__track:active { cursor: grabbing; }
.ribbon__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ribbon__cursor { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: currentColor; pointer-events: none; transition: left .12s ease-out; }
.ribbon__cursor span { position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; margin: -11px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sun) 35%, transparent); }
.ribbon__steps { display: none; justify-content: center; gap: 18px; margin-top: 10px; }
.stepbtn { width: 52px; height: 44px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, currentColor 40%, transparent); background: color-mix(in srgb, currentColor 6%, transparent); display: grid; place-items: center; }
.rb-t { font: 500 13px var(--f-display); fill: currentColor; }
.rb-h { font: 400 11.5px var(--f-text); fill: currentColor; opacity: .75; }
.rb-day { font: 600 12px var(--f-text); fill: currentColor; }
.rb-sep { stroke: currentColor; opacity: .25; stroke-dasharray: 2 3; }
.rb-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
.rb-rain { fill: #2F7FC8; opacity: .8; }
.sky[data-tone="dark"] .rb-rain { fill: #8CC4F2; }

/* предупреждение */
.alertbar { color: #1d1608; }
.alertbar--l2 { background: var(--alert-2); }
.alertbar--l3 { background: var(--alert-3); }
.alertbar--l4 { background: var(--alert-4); color: #fff; }
.alertbar__in { display: flex; align-items: center; gap: 12px; padding-block: 12px; flex-wrap: wrap; }
.alertbar__in p { flex: 1; min-width: 220px; }
.alertbar a { color: inherit; font-weight: 600; }
.alertbar__time { display: block; font-size: .9rem; opacity: .85; }

/* под-навигация */
.subnav { position: sticky; top: var(--top-h, 123px); z-index: 40; background: color-mix(in srgb, var(--air) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-2); }
.subnav__in { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding-block: 6px; }
.subnav__in::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: .45em .85em; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: .88rem; font-weight: 500; }
.subnav a:hover, .subnav a.is-on { color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- структура ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 3.5vw, 48px); padding-top: clamp(20px, 3vw, 36px); padding-bottom: 40px; }
.layout__side { display: flex; flex-direction: column; gap: 8px; }
.block { padding-block: clamp(18px, 2.6vw, 30px); }
.layout__main > .block + .block { border-top: 1px solid var(--line); }
.block__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; flex-wrap: wrap; margin-bottom: 14px; }
.block__top .block__h { margin-bottom: 0; }
.block__h { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-bottom: 14px; font-variation-settings: "SHRP" 20; }
.block__h3 { font: 600 1.1rem/1.3 var(--f-display); margin: 26px 0 12px; }
.block__note { color: var(--ink-3); font-size: .88rem; }
.block__more { font-weight: 500; font-size: .95rem; }
.srcnote { margin-top: 14px; color: var(--ink-3); font-size: .82rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; margin-top: .6em; }
.page-h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 600; font-variation-settings: "SHRP" 40; letter-spacing: -.025em; text-wrap: balance; }
.page-head { padding-top: clamp(20px, 3vw, 40px); padding-bottom: 6px; }

/* сега – следващите часове */
.nowcast__text { font-size: 1.1rem; }
.nowcast__bars { display: flex; align-items: flex-end; gap: 4px; height: 64px; margin-top: 14px; }
.nowcast__bars span { flex: 1; min-height: 3px; border-radius: 4px 4px 2px 2px; background: #3A86C8; position: relative; }
.nowcast__bars span.dry { background: var(--line); }
.nowcast__bars i { position: absolute; top: calc(100% + 6px); left: 0; font: normal .72rem var(--f-text); color: var(--ink-3); white-space: nowrap; }
.nowcast { padding-bottom: 40px; }

/* части на деня */
.parts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.parts__title { font: 600 1.1rem var(--f-display); margin-bottom: 8px; }
.parts__title span { font-weight: 400; color: var(--ink-3); font-family: var(--f-text); font-size: .9rem; }
.parts__list { list-style: none; margin: 0; padding: 0; }
.parts__list li { display: grid; grid-template-columns: 5.6em 36px 2.9em 1fr; grid-template-areas: "s i t c" "s i t w"; align-items: center; column-gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-2); }
.parts__slot { grid-area: s; color: var(--ink-2); font-size: .92rem; }
.parts__list .wx { grid-area: i; }
.parts__t { grid-area: t; font: 500 1.35rem var(--f-display); }
.parts__c { grid-area: c; font-size: .93rem; }
.parts__w { grid-area: w; font-size: .82rem; color: var(--ink-3); }

.wx { width: 40px; height: 40px; }
.wx--s { width: 30px; height: 30px; }
.wx--m { width: 40px; height: 40px; }
.wx--l { width: 64px; height: 64px; }

/* 16 дни */
.days { list-style: none; margin: 0; padding: 0; border-radius: var(--radius-l); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.day + .day { border-top: 1px solid var(--line-2); }
.day__btn { width: 100%; display: grid; grid-template-columns: 7.6em 44px minmax(0, 1fr) 5.6em 5.2em 190px 20px; align-items: center; gap: 12px; padding: 12px 16px; border: 0; background: none; text-align: left; min-height: 64px; }
.day__btn:hover { background: var(--paper-2); }
.day--today .day__btn { background: color-mix(in srgb, var(--pine-wash) 55%, transparent); }
.day__name { font-weight: 600; display: flex; flex-direction: column; line-height: 1.2; }
.day--weekend .day__name { color: var(--pine-ink); }
.day__date { font-weight: 400; color: var(--ink-3); font-size: .82rem; }
.day__cond { font-size: .93rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day__rain, .day__wind { display: inline-flex; align-items: center; gap: 4px; font-size: .88rem; color: var(--ink-3); flex-wrap: wrap; }
.day__rain .ui, .day__wind .ui { width: 16px; height: 16px; }
.day__rain.is-wet { color: #2C74B6; font-weight: 600; }
:root[data-theme="dark"] .day__rain.is-wet { color: #8CC4F2; }
.day__mm { width: 100%; font-weight: 400; font-size: .78rem; padding-left: 20px; }
.day__temps { display: grid; grid-template-columns: 2.6em 1fr 2.6em; align-items: center; gap: 8px; }
.day__min { color: var(--ink-3); text-align: right; }
.day__max { font-weight: 600; font-size: 1.08rem; }
.range { position: relative; height: 8px; border-radius: 99px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.range__bar { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.range__now { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 2.5px var(--ink); }
.day__chev { width: 20px; height: 20px; color: var(--ink-3); transition: transform .2s; }
.day__btn[aria-expanded="true"] .day__chev { transform: rotate(180deg); }
.day__more { padding: 4px 16px 18px; }
.hours { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(74px, 1fr); overflow-x: auto; gap: 2px; padding-bottom: 6px; scrollbar-width: thin; }
.hours__c { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; background: var(--paper-2); text-align: center; font-size: .85rem; }
.hours__h { color: var(--ink-3); }
.hours__t { font: 600 1.05rem var(--f-display); }
.hours__p { color: #2C74B6; font-size: .78rem; min-height: 1.2em; }
.hours__w { color: var(--ink-3); font-size: .78rem; }
.hours__c .wx { width: 34px; height: 34px; }

/* инструменти */
.instr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.instr__cell { margin: 0; padding: 18px; border-radius: var(--radius-m); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); display: flex; flex-direction: column; gap: 8px; }
.instr__cell figcaption { font-size: .86rem; color: var(--ink-2); font-weight: 500; }
.instr__cell--wind { grid-row: span 3; align-items: flex-start; }
.instr__cell--wind .compass { width: min(100%, 240px); margin-block: 10px 16px; }
.instr__cell--wind .instr__big { margin-top: auto; }
.instr__big { font: 400 2rem/1.1 var(--f-display); letter-spacing: -.02em; }
.instr__unit { font: 400 .85rem var(--f-text); color: var(--ink-3); letter-spacing: 0; }
.instr__sub { font-size: .9rem; color: var(--ink-2); }
.compass { width: min(100%, 210px); align-self: center; margin: 4px 0 6px; }
.compass__ring { fill: var(--paper-2); stroke: var(--line); stroke-width: 1; }
.compass__tick { stroke: var(--ink-3); stroke-width: 1.2; }
.compass__lbl { font: 600 9px var(--f-text); fill: var(--ink-2); text-anchor: middle; }
.compass__needle { transform-origin: 60px 60px; transition: transform .6s cubic-bezier(.3, 1.4, .5, 1); fill: var(--pine); }
.meter { height: 8px; border-radius: 99px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--pine); border-radius: 99px; }
.meter--s { display: inline-block; width: 70px; height: 6px; vertical-align: middle; margin-right: 8px; }
.uvscale { position: relative; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #6BBF6A 0 27%, #F1D04A 27% 54%, #F09A3E 54% 72%, #DA4D3F 72% 100%); }
.uvscale span { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 2.5px var(--ink); }

/* въздух */
.airq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.airq__main { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: var(--radius-l); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); }
.airq__num { font: 300 3.4rem/1 var(--f-display); min-width: 2ch; }
.airq__word { font: 600 1.25rem var(--f-display); }
.airq__hint { font-size: .82rem; color: var(--ink-3); }
.airq--l1 .airq__num, .airq--l2 .airq__num { color: #2E8B57; }
.airq--l3 .airq__num { color: #C49A12; }
.airq--l4 .airq__num { color: #D46A1F; }
.airq--l5 .airq__num, .airq--l6 .airq__num { color: #C0392B; }
.airq__list { margin: 0; display: grid; gap: 8px; }
.airq__list div { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line-2); padding-bottom: 6px; }
.airq__list dt { font-weight: 600; }
.airq__list dd { margin: 0; display: flex; align-items: center; font-size: .92rem; color: var(--ink-2); }
.pollen { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pollen__i { display: flex; gap: .6em; align-items: baseline; padding: .5em .9em; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); }
.pollen__lv { font-size: .85rem; color: var(--ink-3); }
.pollen--l2 .pollen__lv { color: #C47A12; font-weight: 600; }
.pollen--l3 .pollen__lv { color: #C0392B; font-weight: 600; }

/* здраве */
.health { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bio, .wear { padding: 20px; border-radius: var(--radius-l); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); display: flex; flex-direction: column; gap: 8px; }
.bio__k { font-size: .86rem; color: var(--ink-2); font-weight: 500; }
.bio__v { font: 600 1.4rem var(--f-display); }
.bio--l0 .bio__v { color: #2E8B57; } .bio--l1 .bio__v { color: #B08A10; } .bio--l2 .bio__v { color: #D46A1F; } .bio--l3 .bio__v { color: #C0392B; }
.bio__scale { display: flex; gap: 4px; }
.bio__scale span { flex: 1; height: 6px; border-radius: 9px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.bio--l0 .on { background: #2E8B57; } .bio--l1 .on { background: #D9AE1E; } .bio--l2 .on { background: #E07B2A; } .bio--l3 .on { background: #C0392B; }
.ai-out { padding: 12px 14px; border-radius: 12px; background: var(--pine-wash); }
.acts { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.act { display: grid; grid-template-columns: minmax(9em, 1.2fr) minmax(90px, 1fr) 7.5em minmax(10em, 1.2fr); align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.act__name { font-weight: 500; }
.act__bar { height: 8px; border-radius: 99px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; display: block; }
.act__bar span { display: block; height: 100%; border-radius: 99px; background: var(--ink-3); }
.act--l3 .act__bar span { background: #2E8B57; } .act--l2 .act__bar span { background: #6BAA4A; } .act--l1 .act__bar span { background: #D9AE1E; } .act--l0 .act__bar span { background: #C9705A; }
.act__word { font-weight: 600; font-size: .95rem; }
.act__when { color: var(--ink-3); font-size: .88rem; }

/* карта */
.mapbox { position: relative; border-radius: var(--radius-l); overflow: hidden; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.mapbox__map { height: clamp(320px, 52vw, 480px); }
.mapbox--tall .mapbox__map { height: clamp(380px, 60vw, 600px); }
.mapbox__ctrl { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 500; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.mapbox__ctrl button { pointer-events: auto; min-height: 40px; padding: .4em .9em; border-radius: 999px; border: 0; background: var(--paper); color: var(--ink); font-size: .86rem; font-weight: 500; box-shadow: 0 2px 10px -3px rgba(0, 0, 0, .3); }
.mapbox__ctrl button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.mapbox__ctrl--col { position: static; flex-direction: row; }
.mapbox__time { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 500; display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--paper); box-shadow: 0 2px 12px -3px rgba(0, 0, 0, .35); }
.mapbox__time input { flex: 1; accent-color: var(--pine); }
.mapbox__time output { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 3.2em; }
.mapbox__time .iconbtn { width: 40px; height: 40px; background: var(--ink); color: var(--paper); }
.leaflet-container { font: inherit; background: var(--paper-2); }
/* спокойна подложка в тона на сайта; в тъмен режим – обърнати цветове */
.base-tiles { filter: grayscale(.85) contrast(.92) brightness(1.04); }
:root[data-theme="dark"] .base-tiles { filter: grayscale(1) invert(1) contrast(.85) brightness(.9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .base-tiles { filter: grayscale(1) invert(1) contrast(.85) brightness(.9); } }
.leaflet-container a.mtag, .leaflet-container a.mtag:hover { text-decoration: none; color: var(--ink); }
.leaflet-container a.mtag--peak, .leaflet-container a.mtag--peak:hover { color: var(--paper); }
.leaflet-control-attribution { font-size: 10px; }
.mtag { display: inline-flex; align-items: center; gap: 2px; padding: 2px 7px 2px 3px; border-radius: 99px; background: var(--paper); color: var(--ink); font: 600 13px var(--f-display); box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .35); white-space: nowrap; }
.mtag svg { width: 22px; height: 22px; max-width: none; flex: none; }
.mtag--peak { background: var(--ink); color: var(--paper); }
.mtag-icon { background: none; border: 0; }
.mpop b { display: block; font: 600 1.05rem var(--f-display); }
.mpop .row { display: flex; gap: 10px; margin-top: 6px; font-size: .85rem; }

/* слънце и луна */
.astro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.astro__sun, .astro__moon { padding: 20px; border-radius: var(--radius-l); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); }
.astro__moon { display: flex; flex-direction: column; gap: 12px; }
.sunarc { width: 100%; max-width: 420px; margin: 0 auto 6px; overflow: visible; }
.sunarc__path { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 4 5; }
.sunarc__done { fill: none; stroke: var(--sun); stroke-width: 3; }
.sunarc__horizon { stroke: var(--ink-3); stroke-width: 1.5; }
.sunarc__sun { fill: var(--sun); }
.astro__list { margin: 0; display: grid; gap: 0; }
.astro__list div { display: flex; justify-content: space-between; gap: 1em; padding: 8px 0; border-top: 1px solid var(--line-2); }
.astro__list dt { color: var(--ink-2); }
.astro__list dd { margin: 0; font-weight: 600; text-align: right; }
.moon { width: 110px; height: 110px; align-self: center; margin: 8px 0 14px; }
.moon__dark { fill: #2A3946; }
.moon__lit { fill: #EDE3C6; }

/* море */
.seabox { display: grid; grid-template-columns: 180px 1fr; gap: 20px 28px; padding: 20px; border-radius: var(--radius-l); background: linear-gradient(160deg, color-mix(in srgb, #3D8FC0 18%, var(--paper)), var(--paper)); box-shadow: inset 0 0 0 1px var(--line-2); }
.seabox__big .instr__big { font-size: 3.2rem; font-weight: 300; }
.seadays { grid-column: 1 / -1; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; font-size: .85rem; }
.seadays li { display: grid; gap: 4px; justify-items: center; }
.seadays__bar { width: 18px; height: 54px; border-radius: 6px; background: linear-gradient(to top, #3D8FC0 var(--h), var(--paper-2) var(--h)); box-shadow: inset 0 0 0 1px var(--line-2); }

/* климат */
.clim { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; align-items: center; }
.clim__facts { margin: 0; }
.clim__chart { width: 100%; height: auto; }
.clim__bar { fill: var(--line); }
.clim__bar.hi { fill: #E0854B; }
.clim__norm { stroke: var(--ink-2); stroke-dasharray: 4 4; }
.clim__now { fill: var(--pine); }
.clim__lbl { font: 11px var(--f-text); fill: var(--ink-3); }

/* въпроси */
.faq__i { border-top: 1px solid var(--line); }
.faq__i:last-child { border-bottom: 1px solid var(--line); }
.faq__i summary { cursor: pointer; padding: 16px 36px 16px 0; font-weight: 600; list-style: none; position: relative; }
.faq__i summary::-webkit-details-marker { display: none; }
.faq__i summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq__i[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__i p { padding: 0 0 18px; color: var(--ink-2); max-width: 70ch; }

/* странична колона */
.placelist { list-style: none; margin: 0; padding: 0; }
.placelist a { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 11px 4px; border-top: 1px solid var(--line-2); color: var(--ink); text-decoration: none; min-height: 52px; }
.placelist li:first-child a { border-top: 0; }
.placelist a:hover { background: var(--paper); }
.placelist__n { font-weight: 500; }
.placelist__km { color: var(--ink-3); font-size: .82rem; margin-left: .6em; font-weight: 400; }
.placelist__t { min-width: 4.5em; display: flex; justify-content: flex-end; }
.mini-now { display: inline-flex; align-items: center; gap: 4px; }
.mini-now__t { font: 500 1.08rem var(--f-display); min-width: 2.2em; text-align: right; }
.mini-now--empty { width: 4em; height: 1em; }
.quakes { list-style: none; margin: 0; padding: 0; }
.quakes li { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); }
.quakes li:first-child { border-top: 0; }
.quakes li > span:nth-child(2) { display: flex; flex-direction: column; }
.quakes__where { font-weight: 500; }
.quakes__mag { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 600 .95rem var(--f-display); background: var(--paper-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.quakes__mag--m { box-shadow: inset 0 0 0 2px #E0A040; }
.quakes__mag--h { background: #C9372C; color: #fff; box-shadow: none; }
.quakes__src { font-size: .82rem; }
.quakes--table li { grid-template-columns: 46px 1fr auto; }
.news__list { list-style: none; margin: 0 0 12px; padding: 0; }
.news__list a { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-2); text-decoration: none; color: var(--ink); align-items: start; }
.news__list li:first-child a { border-top: 0; }
.news__list img { width: 88px; height: 66px; object-fit: cover; border-radius: 10px; background: var(--paper-2); }
.news__list a > span { display: flex; flex-direction: column; gap: 2px; }
.news__t { font-weight: 500; line-height: 1.35; }
.news__list a:hover .news__t { color: var(--pine); }
.news__list--grid { display: grid; grid-template-columns: 1fr; }

/* списъци с места */
.places-index { padding-bottom: 30px; }
.places-index__group { padding-block: 20px; border-top: 1px solid var(--line); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags a { display: inline-block; padding: .45em .85em; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); text-decoration: none; font-size: .92rem; }
.tags a:hover { box-shadow: inset 0 0 0 1.5px var(--pine); color: var(--pine-ink); }
.tags a.is-town { font-weight: 600; }
.tags--s a { font-size: .86rem; padding: .35em .75em; }

/* ---------- начална страница ---------- */
.hero-bg { background: radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, #9FC9E6 45%, var(--air)), var(--air) 70%); }
.hero-bg__in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(20px, 3vw, 40px); }
.hero-bg__h1 { font: 600 clamp(2.4rem, 5.6vw, 4.2rem)/1 var(--f-display); letter-spacing: -.035em; font-variation-settings: "SHRP" 50; }
.hero-bg__date { margin-top: .6em; color: var(--ink-2); font-size: 1.05rem; }
.hero-bg__lead { margin-top: 1.2em; font-size: 1.15rem; line-height: 1.6; max-width: 36ch; }
.hero-bg__t { font: 600 1.1em var(--f-display); }
.hero-bg__mine { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-bg__ask { font-weight: 600; margin-bottom: 12px; }
.hero-bg__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.myplaces { margin-top: 22px; }
.myplaces__h { font-weight: 600; margin-bottom: 8px; }
.myplaces__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.myplaces__list a { display: inline-flex; gap: .5em; align-items: center; padding: .5em 1em; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; font-weight: 500; min-height: 46px; }
.myplaces__list .fav-t { font: 600 1rem var(--f-display); color: var(--pine-ink); }
.bgmap { margin: 0; }
.bgmap__svg { width: 100%; height: auto; overflow: visible; }
.bgmap__prov use { fill: transparent; stroke: color-mix(in srgb, var(--paper) 85%, transparent); stroke-width: .9; transition: fill .15s; }
.bgmap__prov a:hover use, .bgmap__prov a:focus use { fill: rgba(255, 255, 255, .22); stroke: var(--ink); stroke-width: 1.4; }
.bgmap__img { opacity: .95; }
.bgmap__pt circle { fill: var(--ink); }
.bgmap__pt:not(:has(text)) circle { r: 1.5; opacity: .7; }
.bgmap__pt text { font: 600 9.5px var(--f-display); fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: color-mix(in srgb, var(--paper) 80%, transparent); stroke-width: 2.6px; stroke-linejoin: round; }
.bgmap__pt.is-peak circle { fill: var(--paper); stroke: var(--ink); stroke-width: .8; }
.bgmap__pt:hover text { fill: var(--pine-ink); }
.bgmap__cap { font-size: .82rem; color: var(--ink-3); margin-top: 6px; text-align: right; }

.ctable { border-radius: var(--radius-l); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; display: grid; grid-template-columns: repeat(2, 1fr); }
.ctable__row { display: grid; grid-template-columns: minmax(0, 1.3fr) 6em 1fr 1fr; align-items: center; gap: 8px; padding: 10px 16px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line-2); min-height: 56px; }
.ctable__row:nth-child(2n) { border-left: 1px solid var(--line-2); }
.ctable__row:hover { background: var(--paper-2); }
.ctable__row--head { font-size: .8rem; color: var(--ink-3); border-top: 0; min-height: 0; padding-block: 10px; }
.ctable__row--head2 { border-left: 1px solid var(--line-2); }
.ctable__name { font-weight: 600; }
.ctable__d { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.ctable__d .sep { color: var(--ink-3); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px); }
.warnlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.warn { display: flex; flex-wrap: wrap; gap: .4em 1em; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--paper); box-shadow: inset 4px 0 0 var(--alert-2), inset 0 0 0 1px var(--line-2); }
.warn--l3 { box-shadow: inset 4px 0 0 var(--alert-3), inset 0 0 0 1px var(--line-2); }
.warn--l4 { box-shadow: inset 4px 0 0 var(--alert-4), inset 0 0 0 1px var(--line-2); }
.warn__lvl { font-weight: 700; }
.tags--regions a { font-size: .95rem; }
.cols { columns: 2 320px; column-gap: 40px; color: var(--ink-2); }
.cols p { margin-bottom: 1em; break-inside: avoid; }

/* регион */
.region-hero { padding-top: clamp(20px, 3vw, 40px); }
.region-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.capital { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "k k" "n n" "now c"; gap: 4px 16px; align-items: center; margin-top: 24px; padding: 20px; border-radius: var(--radius-l); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); text-decoration: none; max-width: 440px; }
.capital:hover { box-shadow: inset 0 0 0 1.5px var(--pine); color: var(--ink); }
.capital__k { grid-area: k; font-size: .85rem; color: var(--ink-3); }
.capital__n { grid-area: n; font: 600 1.5rem var(--f-display); }
.capital__now { grid-area: now; display: flex; align-items: center; gap: 6px; }
.capital__t { font: 300 3rem/1 var(--f-display); letter-spacing: -.03em; }
.capital__c { grid-area: c; color: var(--ink-2); }
.region-hero .warn { margin-top: 10px; }
.regmap { margin: 0; }
.regmap__svg { width: 100%; height: auto; max-height: 520px; }
.regmap__muns path { stroke: var(--paper); stroke-width: .25; opacity: .9; transition: opacity .15s; }
.regmap__muns a:hover path { opacity: 1; stroke: var(--ink); stroke-width: .5; }
.regmap__dots circle { fill: var(--ink); opacity: .28; }
.regmap__lbl circle { fill: var(--ink); }
.regmap__lbl text { font: 600 2.6px var(--f-display); text-anchor: middle; fill: var(--ink); paint-order: stroke; stroke: rgba(255, 255, 255, .75); stroke-width: .7px; }
.muns { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }
.mun { padding: 14px 16px; border-radius: var(--radius-m); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); }
.mun__head { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; }
.mun__name { font-weight: 600; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.mun__name:hover { color: var(--pine); }
.mun__sub { font-weight: 400; color: var(--ink-3); font-size: .82rem; }
.mun__day { color: var(--ink-3); font-size: .9rem; }
.mun__more summary { cursor: pointer; margin-top: 10px; color: var(--pine); font-weight: 500; font-size: .92rem; }
.mun__more .tags { margin-top: 10px; }

/* таблици море / планини */
.seatable, .mtable { border-radius: var(--radius-l); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.seatable__row, .mtable__row { display: grid; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line-2); color: var(--ink); text-decoration: none; min-height: 58px; }
.seatable__row { grid-template-columns: minmax(0, 1.4fr) 6em 6em 5em minmax(0, 1.2fr); }
.mtable__row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 1.4fr) 7em 6em 7em; }
.seatable__row:hover, .mtable__row:hover { background: var(--paper-2); }
.seatable__row--head, .mtable__row--head { border-top: 0; font-size: .8rem; color: var(--ink-3); min-height: 0; }
.seatable__n, .mtable__row > .mtable__n { font-weight: 600; display: flex; flex-direction: column; align-items: flex-start; }
.mtable__row > span { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.mtable__n .muted { font-weight: 400; font-size: .82rem; }
.seatable__w { display: inline-flex; align-items: center; gap: 8px; font: 600 1.15rem var(--f-display); }
.seatable__s { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; font-size: .9rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* предупреждения */
.warnmap-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.warnmap { margin: 0; }
.warnmap svg { width: 100%; height: auto; }
.wl { stroke: var(--paper); stroke-width: 1; }
.wl--1 { fill: color-mix(in srgb, #4E9C6A 55%, var(--paper)); } .wl--2 { fill: var(--alert-2); } .wl--3 { fill: var(--alert-3); } .wl--4 { fill: var(--alert-4); }
.warnmap__key { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-2); margin-top: 8px; }
.wl-key { width: 14px; height: 14px; border-radius: 4px; display: inline-block; margin-left: 8px; }
.wl-key.wl--1 { background: color-mix(in srgb, #4E9C6A 55%, var(--paper)); } .wl-key.wl--2 { background: var(--alert-2); } .wl-key.wl--3 { background: var(--alert-3); } .wl-key.wl--4 { background: var(--alert-4); }

/* цял екран карта */
.page-map .foot { display: none; }
.fullmap { position: relative; height: calc(100dvh - 112px); min-height: 460px; }
.fullmap__map { position: absolute; inset: 0; }
.fullmap__panel { position: absolute; top: 12px; left: 12px; z-index: 500; max-width: min(560px, calc(100% - 24px)); display: flex; flex-direction: column; gap: 8px; }
.fullmap__hint { align-self: flex-start; padding: .45em .9em; border-radius: 999px; background: color-mix(in srgb, var(--paper) 92%, transparent); font-size: .85rem; box-shadow: 0 2px 10px -3px rgba(0, 0, 0, .3); }
.mapbox__time--full { left: 50%; right: auto; translate: -50% 0; width: min(560px, calc(100% - 24px)); bottom: 20px; }
.legend { align-self: flex-start; padding: 8px 12px; border-radius: 12px; background: var(--paper); font-size: .8rem; box-shadow: 0 2px 10px -3px rgba(0, 0, 0, .3); }
.legend__bar { width: 200px; height: 10px; border-radius: 99px; margin: 4px 0 2px; }
.legend__ends { display: flex; justify-content: space-between; color: var(--ink-3); }

/* други */
.choose__list { list-style: none; margin: 18px 0 30px; padding: 0; display: grid; gap: 8px; }
.choose__list a { display: flex; flex-direction: column; padding: 14px 18px; border-radius: var(--radius-m); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); text-decoration: none; }
.choose__list a:hover { box-shadow: inset 0 0 0 1.5px var(--pine); }
.choose__n { font: 600 1.15rem var(--f-display); }
.choose { padding-top: 30px; padding-bottom: 40px; }
.choose .block__h { margin-top: 28px; }
.empty-state { padding-block: 60px; }
.empty-state p { margin-top: 1em; }
.prose { padding-top: 30px; padding-bottom: 50px; }
.prose h2 { font-size: 1.4rem; margin: 1.6em 0 .5em; }
.prose p, .prose li { color: var(--ink-2); max-width: 68ch; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.code { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); padding: 14px; border-radius: 12px; overflow-x: auto; font-size: .8rem; white-space: pre-wrap; word-break: break-all; cursor: copy; }
.embed-preview { border: 0; border-radius: 14px; margin: 14px 0; max-width: 100%; }
.lazy-slot { min-height: 90px; }

/* долна част */
.foot { margin-top: 40px; background: var(--paper); border-top: 1px solid var(--line-2); }
.foot__in { max-width: var(--wrap); margin: 0 auto; padding: 40px var(--gutter) 20px; display: grid; grid-template-columns: 1.1fr 2fr 1fr; gap: 32px; }
.foot__title { font: 700 1.3rem var(--f-display); margin-bottom: 8px; }
.foot__brand p:last-child { color: var(--ink-2); font-size: .92rem; }
.foot__h { font-weight: 600; margin-bottom: 10px; }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot__regions { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 14px; }
.foot__col a { color: var(--ink-2); text-decoration: none; font-size: .9rem; line-height: 1.9; }
.foot__col a:hover { color: var(--pine); text-decoration: underline; }
.foot__credits { max-width: var(--wrap); margin: 0 auto; padding: 16px var(--gutter) 30px; font-size: .78rem; color: var(--ink-3); border-top: 1px solid var(--line-2); }
.foot__credits a { color: inherit; }

/* диалози */
.sheet { border: 0; padding: 0; border-radius: var(--radius-l); background: var(--paper); color: var(--ink); width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); }
.sheet::backdrop { background: rgba(8, 18, 26, .45); backdrop-filter: blur(3px); }
.sheet__in { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 16px; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; }
.sheet__head h2, .sheet__title { font: 600 1.35rem var(--f-display); }
.seg { border: 0; margin: 0; padding: 0; }
.seg legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; flex: 1 1 auto; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: flex; justify-content: center; align-items: center; min-height: 48px; padding: .4em 1em; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); text-align: center; }
.seg input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.sheet--menu { margin-right: 0; margin-top: 0; height: 100dvh; max-height: 100dvh; border-radius: var(--radius-l) 0 0 var(--radius-l); }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font: 500 1.15rem var(--f-display); }
.menu-list a[aria-current="page"] { color: var(--pine); }
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 90; padding: .8em 1.3em; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 500; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }

/* ---------- адаптивност ---------- */
@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .layout__side { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 32px; }
  .day__btn { grid-template-columns: 7.4em 40px minmax(0, 1fr) 5.4em 180px 20px; }
  .day__wind { display: none; }
  .ctable { grid-template-columns: 1fr; }
  .ctable__row:nth-child(2n) { border-left: 0; }
  .ctable__row--head2 { display: none; }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  html { scroll-padding-top: 170px; }
  .top__in { grid-template-columns: auto 1fr; row-gap: 8px; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .top__tools { justify-self: end; }
  .mainnav { display: none; }
  .iconbtn--menu { display: inline-grid; }
  .subnav { top: 128px; }
  .sky__grid { grid-template-columns: 1fr; align-items: start; }
  .sky__story { max-width: none; }
  .ribbon__steps { display: flex; }
  .parts, .health, .astro, .airq, .duo, .region-hero__grid, .hero-bg__in, .warnmap-wrap, .clim { grid-template-columns: 1fr; }
  .instr { grid-template-columns: 1fr 1fr; }
  .instr__cell--wind { grid-column: 1 / -1; grid-row: auto; display: grid; grid-template-columns: 150px 1fr; grid-template-areas: "c c" "s b" "s t"; column-gap: 18px; }
  .instr__cell--wind figcaption { grid-area: c; }
  .instr__cell--wind .compass { grid-area: s; }
  .instr__cell--wind .instr__big { grid-area: b; align-self: end; }
  .instr__cell--wind .instr__sub { grid-area: t; align-self: start; }
  .day__btn { grid-template-columns: 5.7em 34px minmax(0, 1fr) 118px 16px; gap: 6px; padding: 10px 10px 10px 12px; }
  .day__btn .wx { width: 34px; height: 34px; }
  .day__cond, .day__wind { display: none; }
  .day__rain { grid-column: 3; grid-row: 1; flex-wrap: nowrap; white-space: nowrap; font-size: .82rem; }
  .day__mm { width: auto; padding-left: 4px; }
  .day__temps { grid-template-columns: 2.1em 1fr 2.3em; gap: 5px; }
  .act { grid-template-columns: 1fr auto; grid-template-areas: "n w" "b b" "t t"; gap: 6px 12px; }
  .act__name { grid-area: n; } .act__word { grid-area: w; } .act__bar { grid-area: b; } .act__when { grid-area: t; }
  .seatable__row { grid-template-columns: minmax(0, 1fr) 5em 5.4em; }
  .seatable__row > :nth-child(4), .seatable__row > :nth-child(5) { display: none; }
  .mtable__row { grid-template-columns: minmax(0, 1fr) auto; }
  .mtable__row > :nth-child(n+3) { display: none; }
  .mtable__row > :nth-child(3) { display: inline-flex; grid-column: 1 / -1; font-size: .88rem; color: var(--ink-2); }
  .mtable__row--head { display: none; }
  .foot__regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fullmap { height: calc(100dvh - 128px); }
}
@media (max-width: 560px) {
  :root { --fs-base: 17px; }
  :root[data-size="l"] { --fs-base: 19px; }
  :root[data-size="xl"] { --fs-base: 21px; }
  .brand__word { font-size: 1.15rem; }
  .search__input { padding-right: 3.6em; }
  .search__geo span { display: none; }
  .search__geo { width: 42px; padding: 0; justify-content: center; }
  .facts { gap: 10px 18px; }
  .now__temp { font-size: clamp(5.6rem, 30vw, 8rem); }
  .instr { grid-template-columns: 1fr; }
  .instr__cell--wind { grid-template-columns: 120px 1fr; }
  .parts__list li { grid-template-columns: 5.6em 34px 2.8em 1fr; }
  .parts__list .wx { width: 34px; height: 34px; }
  .ctable__row { grid-template-columns: minmax(0, 1fr) 5.4em 1fr; }
  .ctable__row > :nth-child(4) { display: none; }
  .seabox { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr; }
  .muns { grid-template-columns: 1fr; }
  .quakes--table li { grid-template-columns: 46px 1fr; }
  .bgmap__pt text { font-size: 13px; stroke-width: 3px; }
  .bgmap__pt circle { r: 3; }
  .quakes--table .quakes__src { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .top, .subnav, .ribbon, .mapbox, .foot, .sky__actions, .sheet { display: none !important; }
  .sky { background: none !important; color: #000 !important; }
  .sky__canvas { display: none; }
}
