@font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans-italic-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/ibm-plex-sans-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/ibm-plex-sans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('../fonts/unbounded-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('../fonts/unbounded-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* =========================================================
   Плесо Ломівське і Лівобережний — стилі сайту
   Кольори взяті з топографічних планів: калька, синій контур води,
   очерет, коричневі горизонталі.
   ========================================================= */
:root {
  --paper: #EEF2F4;      /* фон: калька */
  --surface: #FFFFFF;    /* панелі */
  --ink: #13263A;        /* основний текст */
  --ink-2: #4B5D6E;      /* другорядний текст */
  --line: #CDD7DF;       /* лінії і рамки */
  --water: #2456C7;      /* вода, посилання, активні елементи */
  --water-2: #1B43A3;    /* вода при наведенні */
  --water-soft: #DFE8FB;
  --reed: #2F6B4A;       /* очерет: позитивні статуси */
  --reed-soft: #DDEDE3;
  --contour: #B9773E;    /* горизонталі: позначки, чернетки */
  --contour-soft: #F6EADD;

  --font-display: 'Unbounded', 'Arial Black', sans-serif;
  --font-text: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--water); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--water-2); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--water); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { 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; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 6px; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border: 1.5px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 500; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--water); border-color: var(--water); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn svg { width: 16px; height: 16px; flex: none; }
.ext::after { content: ""; display: inline-block; width: .7em; height: .7em; margin-left: .35em; vertical-align: .05em;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 2h6v6M10 2 2 10' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 2h6v6M10 2 2 10' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- Шапка ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(238, 242, 244, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 500; font-size: 13px; line-height: 1.25; letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--water); }
.nav a[aria-current="page"] { border-bottom-color: var(--water); }
.nav .btn { padding: 9px 18px; font-size: 15px; border-bottom-width: 1.5px; }
.nav .btn:hover { color: #fff; }
.menu-btn { display: none; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .i-close { display: none; }
.menu-open .menu-btn .i-open { display: none; }
.menu-open .menu-btn .i-close { display: block; }
.mobile-menu { display: none; }
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-menu { border-top: 1px solid var(--line); background: var(--paper); }
  .menu-open .mobile-menu { display: block; }
  .mobile-menu ul { list-style: none; margin: 0; padding: 8px var(--gutter) 20px; }
  .mobile-menu li + li { border-top: 1px solid var(--line); }
  .mobile-menu a { display: block; padding: 14px 0; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 18px; }
  .mobile-menu a[aria-current="page"] { color: var(--water); }
  .mobile-menu small { display: block; font-weight: 400; font-size: 14px; color: var(--ink-2); }
}

/* ---------- Секції ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 48px; align-items: end; margin-bottom: 40px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); line-height: 1.15; letter-spacing: -.01em; }
.section-head p { color: var(--ink-2); max-width: 58ch; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Перший екран ---------- */
.hero { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(32px, 4vw, 48px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4.4vw, 58px); line-height: 1.1; letter-spacing: -.015em; max-width: 15em; }
.hero h1 .canal-name { white-space: nowrap; }
.hero-lead { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 54ch; }
.hero-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 48px; }
@media (max-width: 860px) { .hero-text { grid-template-columns: minmax(0, 1fr); } }
.hero-lead strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero h1 .canal-name { white-space: normal; } }

/* ---------- Таймлапс ---------- */
.timelapse { margin: clamp(28px, 4vw, 44px) 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.tl-screen { position: relative; aspect-ratio: 16 / 9; background: #0f1d2b; }
.tl-screen video { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.tl-controls { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 16px 22px 6px; }
.tl-play { width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.tl-play:hover { background: var(--water); }
.tl-play svg { width: 20px; height: 20px; }
.tl-play .i-play { display: none; margin-left: 3px; }
.timelapse.is-paused .tl-play .i-play { display: block; }
.timelapse.is-paused .tl-play .i-pause { display: none; }
.tl-track { position: relative; height: 32px; }
.tl-ticks { position: absolute; inset: 0; pointer-events: none; }
.tl-ticks span { position: absolute; top: 50%; width: 2px; height: 18px; margin-top: -9px; background: var(--contour); border-radius: 1px; }
.tl-range { --p: 0%; position: relative; width: 100%; height: 32px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; touch-action: none; }
.tl-range:focus { outline: none; }
.tl-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--water) var(--p), var(--line) var(--p)); }
.tl-range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
.tl-range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--water); }
.tl-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 5px solid var(--water); box-shadow: 0 1px 4px rgba(19, 38, 58, .3); cursor: grab; }
.tl-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 5px solid var(--water); box-shadow: 0 1px 4px rgba(19, 38, 58, .3); cursor: grab; }
.tl-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(36, 86, 199, .3); }
.tl-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px rgba(36, 86, 199, .3); }
.tl-time { min-width: 96px; text-align: right; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.tl-chapters { list-style: none; margin: 0; padding: 6px 12px 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.tl-chapter { display: flex; flex-direction: column; justify-content: flex-start; width: 100%; height: 100%; text-align: left; padding: 12px 12px 14px; border: 0; border-top: 3px solid transparent; border-radius: 0; background: transparent; cursor: pointer; color: var(--ink-2); }
.tl-chapter:hover { color: var(--ink); background: var(--paper); }
.tl-chapter { transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.tl-chapter[aria-current="true"] { color: var(--ink); border-top-color: var(--water); background: var(--paper); }
.tl-chapter[aria-current="true"] .tl-chapter-title { color: var(--ink); }
.tl-ticks .tl-seg { position: absolute; top: 50%; height: 16px; margin-top: -8px; border-radius: 8px; background: rgba(36, 86, 199, .16); transition: left .25s ease, width .25s ease; }
@media (prefers-reduced-motion: reduce) { .tl-chapter, .tl-ticks .tl-seg { transition: none; } }
.tl-chapter-when { display: block; font-size: 13px; font-weight: 500; color: var(--contour); }
.tl-chapter-title { display: block; font-weight: 600; font-size: 16px; line-height: 1.3; margin-top: 2px; }
.tl-chapter-text { display: block; font-size: 14px; line-height: 1.45; margin-top: 4px; }
@media (max-width: 860px) {
  .tl-controls { gap: 12px; padding: 12px 14px 4px; }
  .tl-time { min-width: 0; font-size: 13px; }
  .tl-chapters { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 8px 10px; }
  .tl-chapters li { flex: 0 0 78%; scroll-snap-align: start; }
}

/* ---------- Об'єкти (картки з реєстру) ---------- */
.objects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .objects { grid-template-columns: 1fr; } }
.object { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; }
.object-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.object h3 { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.object-latin { color: var(--ink-2); margin-top: 4px; }
.object-shape { width: 72px; height: 48px; flex: none; color: var(--water); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--water-soft); color: var(--water-2); }
.tag--ok { background: var(--reed-soft); color: var(--reed); }
.facts { margin: 22px 0 24px; display: grid; grid-template-columns: max-content 1fr; }
.facts dt, .facts dd { margin: 0; padding: 10px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--ink-2); padding-right: 24px; font-size: 15px; }
.facts dd { font-weight: 500; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.facts .big { font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: .02em; }
.object-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 460px) { .facts { grid-template-columns: 1fr; } .facts dd { border-top: 0; padding-top: 0; } .facts dt { padding-bottom: 2px; } }

/* кнопка «Скопіювати» */
.copy { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-2); cursor: pointer; flex: none; }
.copy:hover { color: var(--water); border-color: var(--water); }
.copy svg { width: 15px; height: 15px; }
.copy .i-done { display: none; color: var(--reed); }
.copy.is-done .i-copy { display: none; }
.copy.is-done .i-done { display: block; }
.copy-tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 4px 10px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.copy.is-done .copy-tip { opacity: 1; }
.copy--dark { background: transparent; border-color: rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .8); }
.copy--dark:hover { color: #fff; border-color: #fff; }
.copy--dark .i-done { color: #8FE0AE; }

/* ---------- Мета ---------- */
.aims-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 64px; }
.aims-grid h2 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); line-height: 1.15; }
.statement { margin-top: 28px; padding-left: 20px; border-left: 3px solid var(--reed); font-size: 20px; line-height: 1.5; color: var(--ink); max-width: 30ch; }
.aims { list-style: none; margin: 0; padding: 0; }
.aims li { position: relative; padding: 18px 0 18px 40px; border-top: 1px solid var(--line); }
.aims li:last-child { border-bottom: 1px solid var(--line); }
.aims li::before { content: ""; position: absolute; left: 0; top: 30px; width: 24px; height: 4px; border-radius: 2px; background: var(--water); }
@media (max-width: 860px) { .aims-grid { grid-template-columns: 1fr; } .statement { max-width: none; } }

/* ---------- Розділи (зміст) ---------- */
.toc { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.toc a { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) 140px 24px; gap: 8px 32px; align-items: baseline; padding: 22px 8px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.toc a:hover { background: var(--surface); }
.toc a:hover .toc-title { color: var(--water); }
.toc-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.25; }
.toc-text { color: var(--ink-2); }
.toc-arrow { width: 20px; height: 20px; color: var(--ink-2); align-self: center; }
@media (max-width: 760px) {
  .toc a { grid-template-columns: 1fr auto; }
  .toc-text { grid-column: 1 / -1; grid-row: 2; }
  .toc-status { grid-column: 1; grid-row: 3; }
  .toc-arrow { grid-column: 2; grid-row: 1; }
}
.status { display: inline-block; justify-self: start; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }
.status--ready { background: var(--reed-soft); color: var(--reed); border-color: transparent; }
.status--draft { background: var(--contour-soft); color: #8A5527; border-color: transparent; }

/* ---------- Підвал / контакти ---------- */
.site-foot { background: var(--ink); color: #D6DEE6; }
.site-foot a { color: #fff; }
.foot-main { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 40px; padding-block: clamp(48px, 7vw, 88px); }
.site-foot h2 { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); color: #fff; line-height: 1.2; }
.site-foot h3 { font-size: 15px; font-weight: 500; color: #9FB0C1; margin-bottom: 12px; }
.foot-lead { margin-top: 12px; color: #B9C6D3; max-width: 44ch; }
.email-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.email-link { font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 2.2vw, 26px); color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); -webkit-user-drag: none; }
.email-link:hover { color: #fff; border-bottom-color: #fff; }
.site-foot .btn { margin-top: 22px; background: #fff; border-color: #fff; color: var(--ink); }
.site-foot .btn:hover { background: #8FB2FF; border-color: #8FB2FF; color: var(--ink); }
.foot-list { list-style: none; margin: 0; padding: 0; }
.foot-list li + li { margin-top: 8px; }
.foot-list a { text-decoration: none; -webkit-user-drag: none; }
.foot-list a:hover { text-decoration: underline; }
.foot-bottom { position: relative; padding-block: 20px; font-size: 14px; color: #8C9DAE; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
@media (max-width: 860px) { .foot-main { grid-template-columns: 1fr 1fr; } .foot-main > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-main { grid-template-columns: 1fr; } }

/* ---------- Внутрішні сторінки ---------- */
.page-head { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.crumbs { font-size: 15px; color: var(--ink-2); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--water); }
.page-head h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.8vw, 48px); line-height: 1.12; letter-spacing: -.01em; }
.page-lead { margin-top: 14px; font-size: 19px; color: var(--ink-2); max-width: 56ch; }
.page-body { padding-block: clamp(36px, 5vw, 64px); }
.prose { max-width: 70ch; }
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(21px, 2.2vw, 26px); line-height: 1.25; margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 1.2em; }
.wide { margin-block: 32px; }

/* чернетка: блок, який треба замінити своїм вмістом */
.draft { border: 1.5px dashed var(--contour); border-radius: var(--radius); background: var(--contour-soft); padding: 18px 20px; color: #6E4520; font-size: 16px; }
.draft + .draft { margin-top: 16px; }
.draft strong { display: block; color: #8A5527; font-weight: 600; margin-bottom: 4px; }
.draft--media { display: grid; place-items: center; text-align: center; aspect-ratio: 16 / 7; }

/* хронологія */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.timeline li { position: relative; display: grid; grid-template-columns: 170px 1fr; gap: 8px 32px; padding: 0 0 36px 28px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 12px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 3px solid var(--water); }
.timeline .when { font-family: var(--font-display); font-weight: 500; font-size: 17px; line-height: 1.4; }
.timeline h2 { font-size: 19px; font-weight: 600; line-height: 1.35; }
.timeline p { color: var(--ink-2); margin-top: 6px; }
.timeline .is-draft::after { border-color: var(--contour); }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; } }

/* документи */
.docs { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.docs th, .docs td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.docs th { font-size: 14px; font-weight: 500; color: var(--ink-2); background: var(--paper); }
.docs tr:last-child td { border-bottom: 0; }
.docs .file { white-space: nowrap; }
.docs .is-draft td { color: #8A5527; background: var(--contour-soft); }
@media (max-width: 700px) {
  .docs thead { display: none; }
  .docs, .docs tbody, .docs tr, .docs td { display: block; width: 100%; }
  .docs tr { border-bottom: 1px solid var(--line); }
  .docs td { border: 0; padding: 4px 16px; }
  .docs td:first-child { padding-top: 14px; }
  .docs td:last-child { padding-bottom: 14px; }
  .docs td::before { content: attr(data-label); display: block; font-size: 13px; color: var(--ink-2); }
}

/* картографія: знімки з реєстру */
.plates { display: grid; gap: 40px; }
.plate { margin: 0; }
.plate-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 14px; }
.plate-head h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2.2vw, 26px); }
.plate-link { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.plate-link img { width: 100%; height: auto; }
.plate figcaption { margin-top: 10px; font-size: 15px; color: var(--ink-2); }

/* ---------- Вікно з формою ---------- */
body.modal-open { overflow: hidden; }
.modal { width: calc(100% - 32px); max-width: 520px; max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(19, 38, 58, .35); overflow: auto; }
.modal::backdrop { background: rgba(19, 38, 58, .6); }
.modal-form { position: relative; padding: 32px 30px 28px; }
.modal h2 { font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.25; padding-right: 40px; }
.modal-sub { margin: 8px 0 22px; color: var(--ink-2); font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--paper); color: var(--ink); }
.modal-close svg { width: 20px; height: 20px; }
.field { display: block; margin-bottom: 16px; }
.field-label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.field input, .field textarea { display: block; width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--water); background: #fff; box-shadow: 0 0 0 3px rgba(36, 86, 199, .18); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #C0392B; background: #FDF1EF; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-status { margin-bottom: 14px; font-size: 15px; }
.form-status:empty { display: none; }
.form-status.is-error { color: #A93226; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form-done { text-align: center; padding: 8px 0 0; }
.form-done p { margin: 14px 0 22px; color: var(--ink-2); }
.form-done svg { width: 52px; height: 52px; margin: 0 auto; color: var(--reed); }
@media (max-width: 480px) { .modal-form { padding: 28px 20px 22px; } .form-actions .btn { width: 100%; justify-content: center; } }
[hidden] { display: none !important; }
.form-mailto { font-weight: 500; }
.foot-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(255, 255, 255, .12); }
/* короткі сторінки: підвал притиснутий донизу */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
a[data-selectable] { -webkit-user-select: text; user-select: text; -webkit-user-drag: none; }
@media (max-width: 960px) { .menu-open .mobile-menu { max-height: calc(100vh - 69px); max-height: calc(100dvh - 69px); overflow-y: auto; overscroll-behavior: contain; } }

/* =========================================================
   Версія 2: блоки доказів
   ========================================================= */

/* Було → стало: таблиця порівняння */
.versus { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.versus th, .versus td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.versus thead th { font-size: 14px; font-weight: 500; color: var(--ink-2); background: var(--paper); }
.versus thead th.was { color: #8A5527; }
.versus thead th.now { color: var(--water-2); }
.versus tbody th { font-weight: 500; color: var(--ink-2); width: 22%; }
.versus td.was { background: var(--contour-soft); color: #6E4520; }
.versus td.now { background: var(--water-soft); color: var(--ink); font-weight: 500; }
.versus .src { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--ink-2); }
.versus tr:last-child th, .versus tr:last-child td { border-bottom: 0; }
@media (max-width: 700px) {
  .versus thead { display: none; }
  .versus, .versus tbody, .versus tr, .versus th, .versus td { display: block; width: 100%; }
  .versus tr { border-bottom: 1px solid var(--line); }
  .versus tbody th { width: 100%; padding-bottom: 6px; border: 0; color: var(--ink); }
  .versus td { border: 0; padding: 8px 18px; }
  .versus td::before { content: attr(data-label); display: block; font-size: 12px; color: var(--ink-2); }
  .versus td:last-child { padding-bottom: 16px; }
}

/* Реєстр доказів на головній (не картки, а рядки) */
.proofs { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.proofs li { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 8px 32px; padding: 22px 8px; border-bottom: 1px solid var(--line); }
.proof-who { font-weight: 600; line-height: 1.35; }
.proof-who small { display: block; font-weight: 400; color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.proof-what { max-width: 68ch; }
.proof-what q { quotes: "«" "»"; }
.proof-what a { font-size: 15px; }
@media (max-width: 700px) { .proofs li { grid-template-columns: 1fr; } }

.more-link { display: inline-block; margin-top: 24px; font-weight: 500; }

/* Пояснення-вставка */
.note { border-left: 3px solid var(--water); background: var(--surface); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); max-width: 70ch; }
.note--law { border-left-color: var(--reed); }
.note p + p { margin-top: 8px; }
.small { font-size: 15px; color: var(--ink-2); }

/* Кроки історії: послідовність, тому нумеровані */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 20px; padding-bottom: 48px; }
.steps > li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 2px solid var(--water); color: var(--water-2); font-family: var(--font-display); font-weight: 500; font-size: 16px; position: relative; z-index: 1; }
.steps > li::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.step-when { font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--contour); margin-top: 8px; }
.step-body h3 { font-size: 21px; font-weight: 600; line-height: 1.3; margin: 4px 0 10px; }
.step-body > p { max-width: 68ch; }
.step-body > p + p { margin-top: 10px; }
.step-src { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 600px) { .steps > li { grid-template-columns: 44px minmax(0, 1fr); gap: 0 12px; } .steps > li::before { width: 34px; height: 34px; font-size: 14px; } .steps > li::after { left: 16px; top: 34px; } }

/* Ілюстрації */
.fig { margin: 20px 0 0; }
.fig img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.fig figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-2); max-width: 75ch; }
.fig-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.fig-pair .fig { margin: 0; }
.fig-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.fig-row .fig { margin: 0; }
@media (max-width: 760px) { .fig-pair, .fig-row { grid-template-columns: 1fr; } }
.fig a { display: block; }
.fig--paper img { background: #fff; }

/* Перегортання знімків (машина часу) */
.flip { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.flip-stage { position: relative; background: #0f1d2b; }
.flip-stage img { display: block; width: 100%; height: auto; }
.flip-stage img[hidden] { display: none !important; }
.flip-bar { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 14px; padding: 12px 18px; }
.flip-btn { width: 40px; height: 40px; padding: 0; border: 1.5px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.flip-btn:hover { background: var(--ink); color: #fff; }
.flip-btn svg { width: 18px; height: 18px; }
.flip-btn .i-pause { display: none; }
.flip.is-playing .flip-play .i-play { display: none; }
.flip.is-playing .flip-play .i-pause { display: block; }
.flip-range { --p: 0%; width: 100%; height: 28px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.flip-range:focus { outline: none; }
.flip-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--water) var(--p), var(--line) var(--p)); }
.flip-range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
.flip-range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--water); }
.flip-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 5px solid var(--water); cursor: grab; }
.flip-range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 5px solid var(--water); cursor: grab; }
.flip-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(36, 86, 199, .3); }
.flip-date { font-family: var(--font-display); font-weight: 500; font-size: 18px; min-width: 7.5em; text-align: right; }
.flip-caption { padding: 0 18px 14px; font-size: 15px; color: var(--ink-2); min-height: 2.4em; }
@media (max-width: 600px) { .flip-bar { gap: 10px; padding: 10px 12px; } .flip-date { font-size: 15px; min-width: 0; } }

/* Галерея фото */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.gallery .fig { margin: 0; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Цитата з документа */
.quote { margin: 20px 0 0; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); max-width: 72ch; }
.quote p { font-size: 19px; line-height: 1.5; }
.quote cite { display: block; margin-top: 10px; font-style: normal; font-size: 14px; color: var(--ink-2); }

/* Параметри */
.params { width: 100%; max-width: 820px; border-collapse: collapse; margin-top: 16px; }
.params th, .params td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.params thead th { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.params td { font-weight: 500; }
.params td small { display: block; font-weight: 400; color: var(--ink-2); font-size: 13px; }

/* Відео в тексті */
.video { margin-top: 20px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.video video { width: 100%; height: auto; }

/* Мітка версії */
.version, .site-stat { font-variant-numeric: tabular-nums; }
.site-stat[hidden] { display: none; }

/* Сторінки з широким контентом */
.page-body .wrap > .prose + .wide, .page-body .prose + .fig { margin-top: 24px; }
.block + .block { margin-top: clamp(48px, 6vw, 80px); }
.block > h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; margin-bottom: 14px; }
.block > p { max-width: 70ch; }
.block > p + p { margin-top: 12px; }
.toc-inline { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 15px; }
.plate-head h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(19px, 2vw, 24px); }
.law li { padding-left: 40px; }
.docs td strong { font-weight: 600; }
.fig--narrow { max-width: 620px; }
[id] { scroll-margin-top: 88px; }
.docs tr:target td { background: var(--water-soft); }

/* ---------- v4 ---------- */
a { -webkit-user-drag: none; }
.points { margin-top: 14px; }
.points li { margin-bottom: 10px; }
.points li:last-child { margin-bottom: 0; }
.registry td, .registry th { overflow-wrap: anywhere; }
@media (max-width: 520px) { .registry th, .registry td { padding: 8px 6px; font-size: 13px; } }
.block h3 { font-size: 19px; margin: 22px 0 10px; }
.registry td strong { color: var(--ink); }
.links { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.links a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; border: 1px solid var(--line, rgba(19,38,58,.14)); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; }
.links a:hover { border-color: var(--water); }
.links a:focus-visible { outline: 3px solid var(--water); outline-offset: 2px; }
.link-src { font-size: 13px; font-weight: 600; color: var(--contour); }
.link-title { font-size: 16px; line-height: 1.4; }
.link-url { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.fig-pair > .draft { align-self: start; }

/* ---------- v6 ---------- */
.hero-aka { margin-top: 14px; font-size: 15px; color: var(--ink-2); max-width: 60ch; }

/* ---------- Пошук ---------- */
.search-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.search-btn:hover { border-color: var(--water); color: var(--water); }
.search-btn svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 960px) { .search-btn { width: 44px; height: 44px; padding: 0; justify-content: center; border-color: var(--ink); background: transparent; } .search-btn-text { display: none; } .search-btn svg { width: 20px; height: 20px; } }
.modal--search { max-width: 720px; margin-top: 8vh; max-height: 84vh; }
.search-box { position: relative; padding: 28px 28px 22px; }
.search-form input { display: block; width: 100%; margin-top: 16px; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; font-size: 17px; }
.search-form input:focus { outline: none; border-color: var(--water); background: #fff; box-shadow: 0 0 0 3px rgba(36, 86, 199, .18); }
.search-status { margin: 12px 2px 4px; min-height: 1.4em; font-size: 14px; color: var(--ink-2); }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results li + li { border-top: 1px solid var(--line); }
.search-results a { display: block; padding: 12px 10px; margin: 0 -10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.search-results a:hover, .search-results a:focus-visible { background: var(--paper); }
.sr-where { display: block; font-weight: 600; font-size: 15px; color: var(--water); }
.sr-text { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.sr-text mark { background: rgba(185, 119, 62, .22); color: var(--ink); border-radius: 2px; padding: 0 1px; }
@media (max-width: 480px) { .modal--search { margin-top: 16px; } .search-box { padding: 24px 18px 18px; } }

/* v12: перелік відповідей про баланс */
.bal-list { list-style: none; padding: 0; margin: 18px 0 22px; border-top: 1px solid var(--line); }
.bal-list li { border-bottom: 1px solid var(--line); }
.bal-list a { display: grid; grid-template-columns: 15.5em 1fr; gap: 4px 18px; padding: 11px 0; color: inherit; text-decoration: none; }
.bal-list a:hover { color: var(--water); }
.bal-date { font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 640px) { .bal-list a { grid-template-columns: 1fr; } }

/* v12: хронологія */
.chrono { list-style: none; margin: 28px 0 0; padding: 0; border-left: 2px solid var(--line); }
.chrono-item { position: relative; display: grid; grid-template-columns: 11.5em minmax(0, 1fr); gap: 4px 24px; padding: 0 0 28px 24px; }
.chrono-item::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--water); }
.chrono-date { font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--water-2); font-variant-numeric: tabular-nums; padding-top: 2px; }
.chrono-body h3 { font-size: 18px; margin: 0 0 4px; }
.chrono-body p { max-width: 68ch; }
.chrono-body .step-src { margin-top: 6px; }
@media (max-width: 700px) { .chrono-item { grid-template-columns: 1fr; } }

/* v12: інтерактивна карта */
.map-wrap { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.map { height: min(72vh, 640px); min-height: 380px; }
.map-legend { list-style: none; padding: 0; margin: 14px 0 6px; display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 15px; }
.map-legend li { display: flex; align-items: center; gap: 10px; }
.lg { width: 26px; height: 14px; border-radius: 3px; display: inline-block; }
.lg--canal { background: rgba(36, 86, 199, .6); border: 2px solid #7FB0FF; }
.lg--buf { background: rgba(255, 178, 91, .3); border: 2px dashed #E0902F; }
.leaflet-container { font-family: var(--font-text); }

/* v12: англійська сторінка */
.en-facts { margin: 14px 0 0 1.1em; max-width: 75ch; }
.en-facts li + li { margin-top: 10px; }

/* v13: історичні шари на карті */
.hist-ctl { background: #fff; padding: 8px 10px; border-radius: 6px; box-shadow: 0 1px 5px rgba(0,0,0,.35); font: 13px/1.3 var(--font-text); display: grid; gap: 6px; min-width: 170px; }
.hist-ctl label { font-weight: 600; color: var(--ink); }
.hist-ctl select { font: inherit; padding: 3px 4px; }
.hist-ctl input[type=range] { width: 100%; }

/* v13: питання й відповіді */
.faq { border-bottom: 1px solid var(--line); max-width: 78ch; }
.faq:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--water); font-size: 22px; line-height: 1; }
.faq[open] summary::after { content: "−"; }
.faq-a { padding: 0 0 18px; }
.faq-a p { max-width: 72ch; }

/* v13: новини на головній */
.news { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.news a { display: grid; gap: 6px; height: 100%; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; }
.news a:hover { border-color: var(--water); }
.news-date { font-size: 14px; color: var(--water-2); font-variant-numeric: tabular-nums; }
.news-title { font-weight: 600; font-size: 18px; }
.news-text { color: var(--ink-2); font-size: 15px; }

/* v13: форми */
.zv-form, .rep-form { display: grid; gap: 14px; max-width: 640px; margin-top: 20px; }
.zv-form label, .rep-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.zv-form input, .zv-form select, .rep-form input, .rep-form select, .rep-form textarea { font: 400 16px/1.4 var(--font-text); padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.zv-form input:focus, .rep-form :is(input, select, textarea):focus { outline: 2px solid var(--water); outline-offset: 1px; }
.rep-form .rep-ok { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.rep-form .rep-ok input { margin-top: 4px; }
.rep-hp { position: absolute; left: -9999px; }
.rep-status { min-height: 1.4em; font-weight: 600; color: var(--reed); }
.zv-out { margin-top: 24px; max-width: 760px; }
.zv-text { white-space: pre-wrap; font: 15px/1.55 var(--font-text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.zv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.foto-points { margin: 10px 0 12px 1.2em; max-width: 70ch; }
.foto-points li + li { margin-top: 6px; }
@media print {
  body:has(.zv-text) * { visibility: hidden; }
  body:has(.zv-text) .zv-text, body:has(.zv-text) .zv-text * { visibility: visible; }
  .zv-text { position: absolute; left: 0; top: 0; border: 0; padding: 0; font-size: 13pt; }
}
.lg--forest { background: rgba(63, 162, 94, .25); border: 2.5px solid #1E7A3C; }
.lg--parcel { background: #8a99a6; border: 1.5px solid #fff; outline: 1px solid #8a99a6; }
.cad-toggle { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 12px; padding: 8px 14px; border: 1px solid #c9d3dc; border-radius: 8px; background: #fff; font-weight: 600; cursor: pointer; }
.cad-toggle input { width: 18px; height: 18px; accent-color: #1E7A3C; margin: 0; }

.leaflet-container path.leaflet-interactive:focus { outline: none; }
.leaflet-container .leaflet-pane svg { max-width: none !important; max-height: none !important; }
.h-alert { color: #C62828; }
.cad-tip { font-weight: 600; }
.txt-alert { color: #C62828; font-weight: 700; }
.t-blue { color: #1D4ED8; font-weight: 700; }
.t-orange { color: #E36A00; font-weight: 700; }
.block a.t-kopan { color: #8E24AA; font-weight: 800; background: #F6E8FB; padding: 0 5px; border-radius: 5px; text-decoration: underline dotted; text-underline-offset: 3px; }
.block a.t-kopan:hover, .block a.t-kopan:focus-visible { color: #fff; background: #8E24AA; text-decoration: none; }
a.gl { color: inherit; text-decoration: underline dotted 1.5px; text-decoration-color: #1D4ED8; text-underline-offset: 3px; }
a.gl:hover, a.gl:focus-visible { color: #1D4ED8; text-decoration-style: solid; }
.gl-pop { position: absolute; z-index: 2000; max-width: 340px; padding: 10px 12px; border-radius: 8px; background: #102A43; color: #fff; font-size: 14px; line-height: 1.45; box-shadow: 0 6px 20px rgba(16, 42, 67, .28); pointer-events: none; }
.gl-pop strong { display: block; margin-bottom: 4px; font-size: 15px; }
.gl-pop span { display: block; }
.gl-pop em { display: block; margin-top: 6px; font-style: normal; font-size: 12.5px; color: #B9D3F0; }
#terminy h3, #smuha { scroll-margin-top: 90px; }
#terminy h3:target { background: #FFF3C4; box-shadow: 0 0 0 6px #FFF3C4; border-radius: 4px; }
.gl-pop b.pop-alert { color: #FF8A80; font-weight: 700; }
#terminy h3.gl-target { background: #FFF3C4; box-shadow: 0 0 0 6px #FFF3C4; border-radius: 4px; }

/* ---- 13.4: фільм на головній і «Як ще називають» ---- */
.film-text h2 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 16px; }
.film-text p { color: var(--ink-2); margin: 0 0 10px; max-width: 46ch; }
.film-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 40px; align-items: center; }
@media (max-width: 900px) { .film-grid { grid-template-columns: 1fr; gap: 20px; } }
.yt-lite { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--ink); box-shadow: 0 18px 40px rgba(19, 38, 58, .18); }
.yt-lite img, .yt-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }
.yt-link { position: absolute; inset: 0; display: block; }
.yt-play { position: absolute; left: 74%; top: 50%; width: 76px; height: 54px; transform: translate(-50%, -50%); background: #E52D27; border-radius: 14px; transition: transform .15s ease; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.yt-play::after { content: ''; position: absolute; left: 31px; top: 16px; border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; }
.yt-link:hover .yt-play, .yt-link:focus-visible .yt-play { transform: translate(-50%, -50%) scale(1.08); }
.yt-link:focus-visible { outline: 3px solid var(--water); outline-offset: -3px; }
.yt-dur { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .78); color: #fff; font-size: 14px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.names { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 0; }
.names > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.names dt { font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.names dd { margin: 0; color: var(--ink-2); }
.hero-aka a { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .yt-play { transition: none; } }

/* 13.5: кнопка повернення після переходу до визначення терміна */
.gl-back { position: fixed; left: 16px; bottom: 16px; z-index: 1500; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #102A43; color: #fff; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; box-shadow: 0 6px 20px rgba(16, 42, 67, .28); }
.gl-back:hover, .gl-back:focus-visible { background: #1D4ED8; color: #fff; }
@media print { .gl-back { display: none; } }
