/* Сайт «Пересборки». Светлый и спокойный; сначала телефон, потом широкий экран.
   Цвета и отступы — только через переменные: модули подрядчиков берут их же.
   Тема (01.12.2026): светлая, тёмная или как в системе (по умолчанию). Выбор — html[data-theme]
   (ставит static/theme.js до отрисовки); «системная» — атрибута нет, решает prefers-color-scheme. */
:root {
  color-scheme: light dark;
  --bg: #ffffff; --band: #f5f5f7; --ink: #1d1d1f; --mute: #6e6e73; --line: #d2d2d7;
  --accent: #0b6bcb; --accent-ink: #ffffff; --ok: #2e7d32; --warn: #b85c00; --bad: #c62828;
  --radius: 14px; --gap: 20px; --wrap: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* объём: блики, тени, градиенты клавиш и панелей */
  --hl: #ffffff; --shade: rgba(29, 42, 58, 0.08); --shade-2: rgba(29, 42, 58, 0.16); --shade-in: rgba(29, 42, 58, 0.22);
  --top-a: #ffffff; --top-b: #f1f3f6; --top-line: #c9ced6;
  --nav-a: #dfe3e9; --nav-b: #eceff3; --key-a: #ffffff; --key-b: #eef1f5; --key-press-a: #e3e7ec; --key-press-b: #f3f5f8;
  --ghost-a: #ffffff; --ghost-b: #e9edf2; --input-line: #c2c8d0; --input-bg: #ffffff;
  --card-a: #ffffff; --card-b: #fafbfc;
  --dop-line: #9fc3ea; --dop-b: #f1f7fe; --metka-bg: #e8f1fb; --metka-ink: #0a559f;
  --akciya-line: #f0c27a; --akciya-b: #fff8ec; --akciya-metka: #fff0d6;
  --warn-bg: #fff4e5; --warn-line: #f0c98b;
  --banner-line: #cfd6df; --banner-bg: #eef2f7; --tags: #7d8794; --tags-wide: #98a2af; --bar-other: #c9ced6;
  --cookie-bg: #1d1d1f; --cookie-ink: #ffffff;
}
/* Тёмная палитра: та же раскладка, объём — тенями, а не белыми бликами. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121316; --band: #1b1d21; --ink: #ececef; --mute: #a1a1aa; --line: #34373e;
  --accent: #4ea1ff; --accent-ink: #ffffff; --ok: #5cc06a; --warn: #f0a24a; --bad: #ff6b6b;
  --hl: rgba(255, 255, 255, 0.06); --shade: rgba(0, 0, 0, 0.35); --shade-2: rgba(0, 0, 0, 0.45); --shade-in: rgba(0, 0, 0, 0.55);
  --top-a: #1d1f24; --top-b: #16181c; --top-line: #2c2f36;
  --nav-a: #101114; --nav-b: #17191d; --key-a: #2a2d34; --key-b: #23262c; --key-press-a: #15171a; --key-press-b: #1d1f23;
  --ghost-a: #2a2d34; --ghost-b: #202328; --input-line: #3b3f47; --input-bg: #17191d;
  --card-a: #1d1f24; --card-b: #191b1f;
  --dop-line: #2d4f75; --dop-b: #16202c; --metka-bg: #1c3149; --metka-ink: #8cc4ff;
  --akciya-line: #6b5124; --akciya-b: #221b10; --akciya-metka: #3a2c12;
  --warn-bg: #2a2013; --warn-line: #6b5124;
  --banner-line: #2c2f36; --banner-bg: #1b1d21; --tags: #7b8390; --tags-wide: #6c7480; --bar-other: #4a4e57;
  --cookie-bg: #2a2d34; --cookie-ink: #ececef;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 var(--font); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: 34px; }
h2 { font-size: 28px; }
h3 { font-size: 19px; }
p { margin: 0 0 12px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
section { padding: 48px 0; scroll-margin-top: 64px; }
.band { background: var(--band); }
.sub { color: var(--mute); font-size: 19px; margin-bottom: 24px; }
.fine { color: var(--mute); font-size: 13px; }
.center { text-align: center; margin-top: 28px; }

.top { position: sticky; top: 0; z-index: 10; background: linear-gradient(var(--top-a), var(--top-b)); border-bottom: 1px solid var(--top-line); box-shadow: 0 1px 0 var(--hl) inset, 0 2px 6px var(--shade); }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.brand { font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; margin-right: auto; }
/* Меню — утопленная панель с выпуклыми клавишами */
.nav { display: none; gap: 2px; font-size: 14px; padding: 3px; border-radius: 12px; background: linear-gradient(var(--nav-a), var(--nav-b)); box-shadow: inset 0 1px 3px var(--shade-in), 0 1px 0 var(--hl); }
.nav a { color: var(--ink); text-decoration: none; padding: 7px 13px; border-radius: 9px; border: 1px solid transparent; }
.nav a:hover { background: linear-gradient(var(--key-a), var(--key-b)); border-color: var(--top-line); box-shadow: 0 1px 2px var(--shade-2), inset 0 1px 0 var(--hl); }
.nav a:active { background: linear-gradient(var(--key-press-a), var(--key-press-b)); box-shadow: inset 0 1px 3px var(--shade-in); }

/* Переключатель темы — маленькая утопленная панель с тремя клавишами, как меню */
.theme { display: flex; gap: 1px; padding: 2px; border-radius: 10px; background: linear-gradient(var(--nav-a), var(--nav-b)); box-shadow: inset 0 1px 3px var(--shade-in), 0 1px 0 var(--hl); }
.theme[hidden] { display: none !important; }
.theme button { display: grid; place-items: center; width: 28px; height: 26px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--mute); cursor: pointer; }
.theme svg { width: 16px; height: 16px; }
.theme button:hover { color: var(--ink); }
.theme button[aria-checked="true"] { color: var(--ink); background: linear-gradient(var(--key-a), var(--key-b)); border-color: var(--top-line); box-shadow: 0 1px 2px var(--shade-2), inset 0 1px 0 var(--hl); }
.theme button:focus-visible { outline: 3px solid rgba(78, 161, 255, 0.45); outline-offset: 1px; }
.top-cta { white-space: nowrap; }
.cta-short { display: none; }
@media (max-width: 420px) { .top-in { gap: 8px; } .top .btn-small { padding: 9px 12px; } .cta-long { display: none; } .cta-short { display: inline; } }

/* Кнопка — выпуклая клавиша: блик сверху, тень снизу, при нажатии утапливается */
.btn { display: inline-block; border: 1px solid #0a559f; border-radius: 12px; background: linear-gradient(#4aa3f5, #1977d8 55%, #0b62bd); color: var(--accent-ink); font: 600 17px/1 var(--font); padding: 15px 26px; cursor: pointer; text-decoration: none; text-align: center; text-shadow: 0 -1px 0 rgba(0, 48, 99, 0.45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(0, 48, 99, 0.25), 0 1px 0 var(--hl), 0 3px 8px rgba(11, 98, 189, 0.35); transition: transform 0.08s, box-shadow 0.08s; }
.btn:hover { background: linear-gradient(#5aaefa, #2382e2 55%, #0f6bca); }
.btn:active { transform: translateY(1px); background: linear-gradient(#0b62bd, #1977d8); box-shadow: inset 0 2px 5px rgba(0, 38, 80, 0.5), 0 1px 0 var(--hl); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-small { font-size: 14px; padding: 9px 15px; border-radius: 10px; }
.btn-ghost { border-color: var(--top-line); background: linear-gradient(var(--ghost-a), var(--ghost-b)); color: var(--ink); text-shadow: none; box-shadow: inset 0 1px 0 var(--hl), 0 1px 2px var(--shade-2); }
.btn-ghost:hover { background: linear-gradient(var(--ghost-a), var(--key-b)); }
.btn-ghost:active { background: linear-gradient(var(--key-press-a), var(--key-press-b)); box-shadow: inset 0 1px 3px var(--shade-in); }

input, textarea { width: 100%; font: 17px/1.3 var(--font); color: var(--ink); background: var(--input-bg); border: 1px solid var(--input-line); border-radius: 12px; padding: 14px 16px; box-shadow: inset 0 2px 4px var(--shade), 0 1px 0 var(--hl); }
input:focus, textarea:focus, .btn:focus-visible, summary:focus-visible { outline: 3px solid rgba(11, 107, 203, 0.35); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.hero { padding: 20px 0 48px; text-align: center; overflow-x: clip; }
.hero-lead { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.hero-text { color: var(--mute); max-width: 640px; margin: 0 auto 24px; }
.hero-note { color: var(--mute); font-size: 13px; margin-top: 12px; }
.check-form { display: grid; gap: 10px; max-width: 640px; margin: 0 auto; }

.result { max-width: 760px; margin: 28px auto 0; text-align: left; background: var(--band); border-radius: var(--radius); padding: 20px; }
.result-wait { margin: 0; text-align: center; color: var(--mute); }
.result-body { display: grid; gap: 20px; }
.score { justify-self: center; display: grid; place-items: center; align-content: center; width: 148px; height: 148px; border-radius: 50%; border: 8px solid var(--line); }
.score-num { font-size: 40px; font-weight: 700; line-height: 1; }
.score-of, .score-cap { font-size: 11px; color: var(--mute); }
.score-ok { border-color: var(--ok); }
.score-warn { border-color: var(--warn); }
.score-bad { border-color: var(--bad); }
.result-text h2 { font-size: 22px; overflow-wrap: anywhere; }
.problems { list-style: none; padding: 0; margin: 0 0 8px; }
.problems li { padding: 8px 0 8px 22px; position: relative; border-top: 1px solid var(--line); }
.problems li::before { content: ""; position: absolute; left: 0; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--warn); }
.problems .sev-high::before { background: var(--bad); }
.problems .sev-low::before { background: var(--mute); }
.result-more { color: var(--mute); font-size: 15px; margin: 0; }
.result-cta { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }

.grid2, .grid3, .grid-auto { display: grid; gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.card { background: linear-gradient(var(--card-a), var(--card-b)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: inset 0 1px 0 var(--hl), 0 2px 6px var(--shade); }
.card ul { margin: 0; padding-left: 18px; color: var(--mute); font-size: 15px; }
.price { font-size: 22px; font-weight: 700; }
.dop { display: grid; gap: 18px; margin-top: var(--gap); border-color: var(--dop-line); background: linear-gradient(var(--card-a), var(--dop-b)); }
.dop-metka { display: inline-block; margin: 0 0 8px; padding: 3px 10px; border-radius: 999px; background: var(--metka-bg); color: var(--metka-ink); font-size: 13px; font-weight: 600; }
.dop-cena { display: grid; gap: 12px; align-content: center; justify-items: start; }
.dop-cena .price { margin: 0; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 48px; line-height: 1.1; letter-spacing: -0.02em; }
.stat span { color: var(--mute); }
.reasons { margin-bottom: 36px; }
.reasons .card p { margin: 0; color: var(--mute); }
.steps { counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 12px; }
.srok { font-size: 24px; margin: 28px 0 4px; }

details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--mute); }

.forma { display: grid; gap: 14px; }
.forma label { display: grid; gap: 6px; font-size: 15px; color: var(--mute); }
.forma .check { grid-template-columns: 22px 1fr; align-items: start; gap: 10px; }
.forma .check input { width: 20px; height: 20px; margin: 2px 0 0; padding: 0; }
.msg { margin: 0; min-height: 1.5em; color: var(--bad); }
.msg-ok { color: var(--ok); }
.download { margin: 0; }

.foot { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--mute); }
.foot-in { display: grid; gap: 20px; }
.foot strong { color: var(--ink); }
.foot-nav { display: grid; gap: 6px; }
.foot a { color: var(--mute); }

.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; background: var(--cookie-bg); color: var(--cookie-ink); border-radius: var(--radius); padding: 16px; font-size: 14px; max-width: 560px; box-shadow: 0 6px 24px var(--shade-2); }
.cookie a { color: var(--cookie-ink); }
.cookie-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie .btn-ghost { color: var(--ink); }

.doc { padding: 40px 16px 56px; max-width: 760px; }
.doc h2 { font-size: 21px; margin-top: 28px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc td, .doc th { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius); padding: 12px 16px; }

@media (min-width: 720px) {
  h1 { font-size: 52px; }
  h2 { font-size: 36px; }
  section { padding: 72px 0; }
  .hero { padding: 28px 0 72px; }
  .nav { display: flex; }
  .check-form { grid-template-columns: 1fr auto; }
  .result-body { grid-template-columns: 148px 1fr; align-items: start; }
  .grid2 { grid-template-columns: 1fr 1fr; }
  .dop { grid-template-columns: 1fr auto; align-items: center; }
  .dop-cena { justify-items: end; text-align: right; }
  .grid3 { grid-template-columns: repeat(3, 1fr); }
  .grid-auto { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
  .foot-in { grid-template-columns: 1.2fr 1fr 1.4fr; }
}

/* ---------- Баннер: мультик «пересборка» (templates/_banner.html) ----------
   Ролик 21:9 обрезается до полосы: главное действие — в средней трети кадра. */
.banner { max-width: 1080px; margin: 0 auto 28px; border-radius: 22px; border: 1px solid var(--banner-line); box-shadow: inset 0 1px 0 var(--hl), 0 6px 18px var(--shade); overflow: hidden; line-height: 0; background: var(--banner-bg); aspect-ratio: 21 / 9; }
.banner-video { display: block; width: 100%; height: 100%; object-fit: cover; }
[data-theme="dark"] .banner-video, [data-theme="dark"] .banner-still::before, [data-theme="dark"] .banner-still::after { filter: brightness(0.82); }
/* Запасной вариант, когда браузер не запускает видео: два кадра сменяют друг друга со вспышкой. */
.banner-still { position: relative; }
.banner-still .banner-video { visibility: hidden; }
.banner-still::before, .banner-still::after { content: ""; position: absolute; inset: 0; background: center / cover no-repeat; }
.banner-still::before { background-image: url(banner/final.jpg); animation: still-new 14s ease-in-out infinite; }
.banner-still::after { background-image: url(banner/start.jpg); animation: still-old 14s ease-in-out infinite; }
@keyframes still-old {
  0%, 26% { opacity: 1; filter: none; transform: scale(1); }
  32% { opacity: 1; filter: brightness(1.9) saturate(0.6); transform: scale(1.03); }
  40%, 92% { opacity: 0; filter: brightness(2.4); transform: scale(1.06); }
  100% { opacity: 1; filter: none; transform: scale(1); }
}
@keyframes still-new {
  0%, 32% { filter: brightness(1.8); transform: scale(1.06); }
  44% { filter: none; transform: scale(1); }
  92%, 100% { filter: none; transform: scale(1.05); }
}
@media (min-width: 720px) { .banner { aspect-ratio: 8 / 3; } }
@media (max-width: 719px) { .banner { margin-bottom: 20px; border-radius: 16px; } }
/* ---------- Облако вопросов за полем ввода адреса ----------
   Только CSS: 16 мест. Каждый вопрос «подлетает» к зрителю — растёт из глубины, проявляется,
   проходит мимо и гаснет. Узкий экран — три строки над полем ввода; широкий — по бокам от него
   (8 мест, в каждом чередуются два вопроса). */
.hero-main { position: relative; }
.hero-main > :not(.tags) { position: relative; z-index: 1; }
.tags { list-style: none; margin: 4px auto 16px; padding: 0; position: relative; height: 5.6em; max-width: 640px; pointer-events: none; user-select: none; font-size: 16px; }
.tags li { position: absolute; left: 0; right: 0; margin: 0; color: var(--tags); font-weight: 600; line-height: 1.3; white-space: nowrap; opacity: 0; }
.tags li:nth-child(n+17) { display: none; }
.tags li:nth-child(3n+1) { top: 0; text-align: left; transform-origin: left center; }
.tags li:nth-child(3n+2) { top: 2.05em; text-align: right; transform-origin: right center; }
.tags li:nth-child(3n) { top: 4.1em; text-align: center; transform-origin: center; }
.tags li:nth-child(-n+3) { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .tags li, .tags li:nth-child(-n+3) { opacity: 0; animation: tag-zoom 27s linear infinite; }
  .tags li:nth-child(1) { animation-delay: -0.5s; } .tags li:nth-child(2) { animation-delay: -2s; }
  .tags li:nth-child(3) { animation-delay: -3.5s; } .tags li:nth-child(4) { animation-delay: -5s; }
  .tags li:nth-child(5) { animation-delay: -6.5s; } .tags li:nth-child(6) { animation-delay: -8s; }
  .tags li:nth-child(7) { animation-delay: -9.5s; } .tags li:nth-child(8) { animation-delay: -11s; }
  .tags li:nth-child(9) { animation-delay: -12.5s; } .tags li:nth-child(10) { animation-delay: -14s; }
  .tags li:nth-child(11) { animation-delay: -15.5s; } .tags li:nth-child(12) { animation-delay: -17s; }
  .tags li:nth-child(13) { animation-delay: -18.5s; } .tags li:nth-child(14) { animation-delay: -20s; }
  .tags li:nth-child(15) { animation-delay: -21.5s; } .tags li:nth-child(16) { animation-delay: -23s; }
}
/* В одной строке вопросы идут через 4,5 с, каждый виден 4,3 с — друг на друга не наезжают. */
@keyframes tag-zoom {
  0% { opacity: 0; transform: scale(0.45); }
  3% { opacity: 1; transform: scale(0.8); }
  12% { opacity: 1; transform: scale(1.04); }
  16%, 100% { opacity: 0; transform: scale(1.18); }
}

@media (min-width: 1100px) {
  .tags { position: absolute; inset: 0; z-index: 0; height: auto; max-width: none; margin: 0; font-size: 18px; }
  .tags li, .tags li:nth-child(n) { left: auto; right: auto; top: auto; width: 205px; white-space: normal; color: var(--tags-wide); }
  .tags li:nth-child(odd) { left: 0; text-align: left; transform-origin: left center; }
  .tags li:nth-child(even) { right: 0; text-align: right; transform-origin: right center; }
  .tags li:nth-child(8n+1), .tags li:nth-child(8n+2) { top: 34%; }
  .tags li:nth-child(8n+3), .tags li:nth-child(8n+4) { top: 52%; }
  .tags li:nth-child(8n+5), .tags li:nth-child(8n+6) { top: 70%; }
  .tags li:nth-child(8n+7), .tags li:nth-child(8n) { top: 88%; }
  .tags li:nth-child(n) { opacity: 0; }
  .tags li:nth-child(-n+8) { opacity: 0.85; }
}
@media (min-width: 1100px) and (prefers-reduced-motion: no-preference) {
  .tags li, .tags li:nth-child(-n+3), .tags li:nth-child(-n+8) { opacity: 0; animation: tag-fly 22s ease-in-out infinite; }
  .tags li:nth-child(1) { animation-delay: -1s; } .tags li:nth-child(2) { animation-delay: -6.5s; }
  .tags li:nth-child(3) { animation-delay: -15s; } .tags li:nth-child(4) { animation-delay: -3.5s; }
  .tags li:nth-child(5) { animation-delay: -9s; } .tags li:nth-child(6) { animation-delay: -18s; }
  .tags li:nth-child(7) { animation-delay: -12.5s; } .tags li:nth-child(8) { animation-delay: -20.5s; }
  .tags li:nth-child(9) { animation-delay: -12s; } .tags li:nth-child(10) { animation-delay: -17.5s; }
  .tags li:nth-child(11) { animation-delay: -4s; } .tags li:nth-child(12) { animation-delay: -14.5s; }
  .tags li:nth-child(13) { animation-delay: -20s; } .tags li:nth-child(14) { animation-delay: -7s; }
  .tags li:nth-child(15) { animation-delay: -1.5s; } .tags li:nth-child(16) { animation-delay: -9.5s; }
}
/* Половину цикла вопрос подлетает и виден, вторую половину место занимает его сосед. */
@keyframes tag-fly {
  0% { opacity: 0; transform: scale(0.4); }
  9% { opacity: 0.95; transform: scale(0.8); }
  34% { opacity: 0.95; transform: scale(1.08); }
  45%, 100% { opacity: 0; transform: scale(1.3); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Бегущая строка новостей на главной (27.10.2026) */
.ticker { display: flex; align-items: center; background: #1d1d1f; color: #fff; font-size: 14px; line-height: 1.3; overflow: hidden; }
.ticker-label { flex: none; background: var(--bad); font-weight: 700; padding: 8px 14px; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
.ticker-view { overflow: hidden; flex: 1; }
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; margin: 0; padding: 0; list-style: none; }
.ticker-list li { padding: 8px 0 8px 28px; white-space: nowrap; }
.ticker-list li::after { content: "•"; margin-left: 28px; color: #ff6b6b; }
.ticker a { color: #8cc8ff; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; width: auto; }
  .ticker-list { flex-wrap: wrap; } .ticker-list[aria-hidden] { display: none; }
  .ticker-list li { white-space: normal; }
}

/* Сравнение с рынком и акция (30.11.2026): полосы — SVG в масштабе цен, без style="" (CSP) */
.rynok { margin-top: var(--gap); background: var(--band); border-radius: var(--radius); padding: 24px; }
.rynok h3 { margin: 0 0 4px; font-size: 22px; }
.rynok .sub { font-size: 16px; margin-bottom: 16px; }
.rynok-row { display: grid; gap: 8px 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.rynok-name b { display: block; }
.rynok-name span { color: var(--mute); font-size: 14px; }
.rynok-bars { display: grid; grid-template-columns: 1fr; gap: 4px 12px; align-items: center; }
.rynok-bars .my { margin-bottom: 2px; }
.rynok-bars svg { width: 100%; height: 14px; display: block; }
.bar-studiya rect { fill: var(--bar-other); }
.bar-my rect { fill: var(--accent); }
.rynok-sum { font-size: 14px; color: var(--mute); white-space: nowrap; }
.rynok-sum.my { color: var(--ink); font-weight: 700; }
.rynok .fine { margin: 14px 0 0; }
.akciya { display: grid; gap: 18px; margin-top: var(--gap); border-color: var(--akciya-line); background: linear-gradient(var(--card-a), var(--akciya-b)); }
.akciya .dop-metka { background: var(--akciya-metka); color: var(--warn); }
.akciya-mest { margin: 0; font-size: 20px; font-weight: 700; color: var(--warn); }
@media (min-width: 720px) {
  .rynok-row { grid-template-columns: 240px 1fr; align-items: center; }
  .rynok-bars { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .akciya { grid-template-columns: 1fr auto; align-items: center; }
  .akciya .dop-cena { justify-items: end; text-align: right; }
}
