/* PGD Moravče, firefighter theme. Plain CSS, self-hosted fonts, no external requests. */

/* ---------- Fonts (Barlow, SIL Open Font License) ---------- */
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/barlow-condensed-latin-ext-700-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/barlow-condensed-latin-700-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:800;font-display:swap;src:url("../fonts/barlow-condensed-latin-ext-800-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:800;font-display:swap;src:url("../fonts/barlow-condensed-latin-800-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Barlow";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/barlow-latin-ext-400-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Barlow";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/barlow-latin-400-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Barlow";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/barlow-latin-ext-600-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Barlow";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/barlow-latin-600-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Barlow";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/barlow-latin-ext-700-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Barlow";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/barlow-latin-700-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ---------- Tokens ---------- */
:root {
  --red: #e01e26;
  --red-dark: #b3141b;
  --red-deep: #7a0d13;
  --flame: #ff7a1a;
  --hivis: #ffd400;
  --smoke: #1b1d22;
  --steel: #262a31;
  --steel-2: #343941;
  --ash: #eef0f3;
  --paper: #ffffff;
  --ink: #17191d;
  --ink-soft: #4a505a;
  --line: #d9dce1;

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1180px;
  --cut: 22px;
  --chamfer: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  --hazard: repeating-linear-gradient(-45deg, var(--hivis) 0 14px, var(--smoke) 14px 28px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body { margin: 0; font-family: var(--body); font-size: 1.15rem; line-height: 1.55; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); text-underline-offset: .18em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 2px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--hivis); color: var(--smoke); padding: .6rem 1rem; font-weight: 700; }
.skip:focus { left: 0; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 1; letter-spacing: .01em; margin: 0 0 .55em; }
h1 { font-size: clamp(2.9rem, 7.4vw, 5.4rem); }
h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h3 { font-size: 1.85rem; }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.prose { max-width: 66ch; }

/* icons (inline SVG sprite) */
.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.12em; }
h2 .ico { color: var(--red); margin-right: .22em; width: .9em; height: .9em; }
.band-dark h2 .ico, .band-red h2 .ico { color: var(--hivis); }

/* hazard tape accent under section headings */
.section h2::after { content: ""; display: block; width: 120px; height: 14px; margin-top: .4em; background: var(--hazard); }
.hero h1::after, .page-head h1::after { display: none; }

/* ---------- Header: dark bar, crest, 112 ---------- */
.site-head { background: var(--smoke); color: #fff; border-bottom: 6px solid var(--red); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.brand-link { display: inline-flex; align-items: center; gap: 1.1rem; text-decoration: none; color: #fff; }
.brand-crest { height: 82px; width: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.2rem, 5vw, 3.3rem); line-height: .95; letter-spacing: .02em; }
.brand-sub { font-size: 1rem; color: #b8bdc6; margin-top: .25rem; }
@media (max-width: 640px) { .brand-crest { height: 54px; } .brand-sub { display: none; } }

.sos { display: inline-flex; align-items: center; gap: .65rem; padding: .55rem 1.1rem .55rem .95rem; background: var(--red); color: #fff; text-decoration: none; clip-path: var(--chamfer); --cut: 12px; font-family: var(--display); text-transform: uppercase; font-weight: 800; line-height: 1; white-space: nowrap; }
.sos:hover { background: var(--red-dark); color: #fff; }
.sos small { display: block; font-size: .85rem; letter-spacing: .06em; opacity: .9; }
.sos b { font-size: 2.5rem; letter-spacing: .02em; }
.beacon { width: .85rem; height: .85rem; border-radius: 50%; background: var(--hivis); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .beacon { animation: beacon 1.5s ease-out infinite; }
  @keyframes beacon { 0% { box-shadow: 0 0 0 0 rgba(255,212,0,.75); } 70%, 100% { box-shadow: 0 0 0 .8rem rgba(255,212,0,0); } }
}
@media (max-width: 420px) { .sos small { display: none; } .sos b { font-size: 1.7rem; } }

/* ---------- Navigation: light bar ---------- */
.mainnav { background: var(--red); position: sticky; top: 0; z-index: 50; box-shadow: 0 3px 0 var(--smoke); }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; }
.mainnav a { display: block; padding: .9rem .74rem; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .03em; line-height: 1.2; }
.mainnav a:hover { background: var(--red-dark); color: #fff; }
.mainnav a[aria-current="page"] { background: var(--hivis); color: var(--smoke); }
.mainnav a:focus-visible { outline-color: #fff; outline-offset: -3px; }
.menu-btn { display: none; width: 100%; text-align: left; padding: .8rem 0; background: none; border: 0; color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.menu-btn::after { content: "+"; float: right; font-size: 1.6rem; line-height: 1; }
.menu-btn[aria-expanded="true"]::after { content: "–"; }
@media (max-width: 1199px) {
  .menu-btn { display: block; }
  .mainnav ul { display: none; flex-direction: column; padding-bottom: .6rem; }
  .mainnav ul.open { display: flex; }
  .mainnav a { padding: .65rem .8rem; }
}
.hazard { height: 18px; background: var(--hazard); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(100deg, rgba(27,29,34,.95) 0%, rgba(27,29,34,.80) 40%, rgba(179,20,27,.72) 100%),
    url("../img/vozila/man11.jpg") center 38% / cover no-repeat,
    var(--smoke); }
.hero .wrap { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center; padding-block: clamp(3rem, 8vw, 5.5rem) clamp(3.5rem, 8vw, 6rem); }
.hero h1 { font-size: clamp(3rem, 7vw, 5.6rem); margin-bottom: .22em; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.motto { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.3rem, 4.4vw, 3.4rem); line-height: 1; color: var(--hivis); margin: 0 0 .9rem; }
.hero .lead { font-size: clamp(1.25rem, 2.2vw, 1.55rem); max-width: 30ch; margin-bottom: 1.8rem; color: #e8eaee; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0; }

.crest-plate { background: #fff; width: clamp(210px, 25vw, 320px); padding: 1.3rem 1.4rem 1.1rem; clip-path: var(--chamfer); --cut: 34px; border-bottom: 14px solid var(--red); }
.crest-plate img { width: 100%; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .crest-plate { display: none; } }

.hero-flames { display: none; }

/* buttons: chamfered like equipment plates */
.btn { display: inline-block; padding: .95rem 1.8rem; font-family: var(--display); font-weight: 800; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .04em; line-height: 1.1; text-decoration: none; border: 0; clip-path: var(--chamfer); --cut: 11px; cursor: pointer; }
.btn-primary { background: var(--hivis); color: var(--smoke); }
.btn-primary:hover { background: #fff; color: var(--smoke); }
.btn-ghost { background: rgba(255,255,255,.2); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--red-dark); }
.btn-solid { background: var(--red); color: #fff; }
.btn-solid:hover { background: var(--red-dark); color: #fff; }
.btn-line { background: var(--ash); color: var(--smoke); }
.btn-line:hover { background: var(--smoke); color: #fff; }
.hero .btn:focus-visible { outline-color: #fff; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(2.8rem, 6vw, 4.8rem); }
.section.tint { background: var(--ash); }
.band-dark { background: var(--smoke); color: #fff; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px); }
.band-red { background: var(--red); color: #fff; background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.07) 0 2px, transparent 2px 14px); }
.band-dark a, .band-red a { color: #fff; }
.band-dark a:hover, .band-red a:hover { color: var(--hivis); }
.split { display: grid; gap: 2.5rem 4rem; grid-template-columns: 1fr; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } }

/* page header on inner pages */
.page-head { position: relative; overflow: hidden; background: var(--smoke); color: #fff; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px); }
.page-head .wrap { padding-block: clamp(2rem, 5vw, 3.4rem); position: relative; z-index: 1; }
.page-head h1 { margin-bottom: .15em; font-size: clamp(2.8rem, 6.6vw, 4.8rem); }
.page-head h1.long { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 22em; }
.page-head p { margin: 0; color: #d3d6dc; font-size: 1.35rem; }
.head-ico { position: absolute; right: max(1rem, calc((100% - var(--wrap)) / 2)); top: 50%; transform: translateY(-50%); height: 210%; width: auto; aspect-ratio: 1; color: var(--red); opacity: .8; fill: none; stroke: currentColor; stroke-width: .9; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
@media (max-width: 640px) { .head-ico { display: none; } }

/* ---------- Quick link tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: .7rem; height: 100%; padding: 1.1rem .9rem .9rem; text-align: center; text-decoration: none; color: var(--smoke); background: var(--ash); clip-path: var(--chamfer); --cut: 14px; border-top: 8px solid var(--red); }
.tile:hover { background: var(--smoke); color: #fff; border-top-color: var(--hivis); }
.tile img { max-height: 68px; width: auto; object-fit: contain; background: transparent; }
.tile span { font-family: var(--display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; line-height: 1.1; letter-spacing: .02em; }
.section.tint .tile { background: var(--paper); }
.quick { padding-block: 2.8rem 3.2rem; }

/* ---------- Call cards (contacts) ---------- */
.callgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.callcard { background: var(--steel); clip-path: var(--chamfer); padding: 1.6rem 1.5rem 1.5rem; border-top: 8px solid var(--red); display: grid; gap: .1rem; align-content: start; }
.callcard .ico { width: 3rem; height: 3rem; color: var(--hivis); margin-bottom: .5rem; stroke-width: 1.5; }
.callcard .role { color: #b8bdc6; font-size: 1rem; }
.callcard strong { font-family: var(--display); font-weight: 800; font-size: 1.95rem; text-transform: uppercase; line-height: 1.05; letter-spacing: .01em; }
.callcard a { font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1.2; color: var(--hivis); text-decoration: none; margin-top: .3rem; }
.callcard a:hover { color: #fff; }

/* ---------- Memorial ---------- */
.memorial-intro { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: 1fr; align-items: start; margin-bottom: 2.2rem; }
@media (min-width: 760px) { .memorial-intro { grid-template-columns: 230px 1fr; } }
.memorial-intro img { width: 100%; clip-path: var(--chamfer); --cut: 22px; }
.facts-line { margin: 0 0 1em; padding: 0; list-style: none; display: grid; gap: .5rem; max-width: 66ch; }
.facts-line li { padding-left: 1.5rem; position: relative; }
.facts-line li::before { content: ""; position: absolute; left: 0; top: .5em; width: .75rem; height: .75rem; background: var(--red); transform: rotate(45deg); }
.table-wrap { overflow-x: auto; background: var(--paper); clip-path: var(--chamfer); --cut: 20px; box-shadow: inset 0 0 0 2px var(--smoke); }
table { border-collapse: collapse; width: 100%; min-width: 640px; }
th, td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--smoke); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 0; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: var(--ash); }
tbody th { font-family: var(--display); font-weight: 800; font-size: 1.4rem; text-transform: uppercase; white-space: nowrap; color: var(--red-dark); }
.table-note { margin: 1rem 0 0; color: var(--ink-soft); }

/* ---------- News ---------- */
.news { display: grid; gap: 2.2rem; }
.news-item { display: grid; gap: 1rem 1.9rem; grid-template-columns: 1fr; align-items: start; padding-bottom: 2.2rem; border-bottom: 2px solid var(--line); }
.news-item:last-child { border-bottom: 0; padding-bottom: 0; }
@media (min-width: 720px) { .news-item.has-img { grid-template-columns: 300px 1fr; } }
.news-item figure { margin: 0; }
.news-item figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ash); clip-path: var(--chamfer); --cut: 22px; }
.news-item h3 { margin-bottom: .2em; }
.date { display: inline-block; background: var(--smoke); color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: .05em; text-transform: uppercase; padding: .1rem .65rem; margin-bottom: .7rem; }
details.older { margin-top: 2.2rem; border-top: 2px solid var(--line); padding-top: 1rem; }
details summary { cursor: pointer; font-family: var(--display); font-weight: 800; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .03em; padding: .4rem 0; }
details summary:hover { color: var(--red); }

/* ---------- Intervention cards ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.card { display: block; height: 100%; text-decoration: none; color: var(--ink); background: var(--ash); clip-path: var(--chamfer); --cut: 18px; }
.card:hover { background: var(--smoke); color: #fff; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--steel-2); }
.card-body { padding: .9rem 1.05rem 1.15rem; }
.card-body strong { display: inline-block; background: var(--red); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.4rem; letter-spacing: .04em; padding: .1rem .6rem; text-transform: uppercase; margin-bottom: .4rem; }
.card-body span { display: block; font-size: 1rem; line-height: 1.35; }
.more-link { margin-top: 1.8rem; }

/* ---------- Feature band (defibrillator, contact) ---------- */
.feature { display: grid; gap: 2rem 3.2rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 760px) { .feature { grid-template-columns: minmax(0, 440px) 1fr; } }
.feature img { width: 100%; clip-path: var(--chamfer); --cut: 30px; }
.band-red .feature p { font-size: 1.25rem; }
.band-red .btn-line { background: #fff; color: var(--red-dark); }
.band-red .btn-line:hover { background: var(--smoke); color: #fff; }

/* ---------- Facts, map, villages ---------- */
.facts { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 0 0 2.6rem; }
.facts div { background: var(--ash); padding: 1rem 1.3rem 1.1rem; border-left: 12px solid var(--red); clip-path: var(--chamfer); --cut: 14px; }
.section.tint .facts div { background: var(--paper); }
.facts dt { font-size: 1rem; color: var(--ink-soft); }
.facts dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1.1; text-transform: uppercase; }
.map { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 760px) { .map { grid-template-columns: 300px 1fr; } }
.map img { width: 100%; clip-path: var(--chamfer); --cut: 20px; }
.villages { columns: 3 200px; column-gap: 2rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.villages li { break-inside: avoid; padding: .14rem 0; }
.zveza { list-style: none; margin: 0 0 1rem; padding: 0; max-width: 42rem; }
.zveza li { padding: .75rem 0 .75rem 1.3rem; border-top: 2px solid var(--line); position: relative; }
.zveza li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: .65rem; height: .65rem; background: var(--red); transform: rotate(45deg); }
.zveza li:last-child { border-bottom: 2px solid var(--line); }
.zveza strong { color: var(--red-dark); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6.4rem; top: .4rem; bottom: .4rem; width: 9px; margin-left: -2px; background: var(--hazard); }
.timeline li { position: relative; display: grid; grid-template-columns: 6.4rem 1fr; gap: 0 2.2rem; padding-bottom: 2.3rem; }
.timeline li::after { content: ""; position: absolute; left: calc(6.4rem - 7px); top: .55rem; width: 20px; height: 20px; background: var(--red); border: 4px solid var(--paper); transform: rotate(45deg); }
.timeline .year { font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--red); text-align: right; padding-right: 1rem; }
.timeline .body { max-width: 66ch; padding-left: .6rem; }
.timeline figure { margin: .4rem 0 1rem; }
.timeline figure img { max-height: 380px; width: auto; clip-path: var(--chamfer); --cut: 20px; }
@media (max-width: 560px) {
  .timeline::before { left: .5rem; }
  .timeline li { grid-template-columns: 1fr; padding-left: 2rem; }
  .timeline li::after { left: 0; top: .5rem; }
  .timeline .year { text-align: left; padding: 0; margin-bottom: .3rem; }
  .timeline .body { padding-left: 0; }
}

/* ---------- Vehicles ---------- */
.pills { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.pills a { display: inline-block; padding: .45rem 1.1rem; background: var(--smoke); color: #fff; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; clip-path: var(--chamfer); --cut: 9px; }
.pills a:hover { background: var(--red); color: #fff; }
.vehicle { padding-block: clamp(2.4rem, 5vw, 3.6rem); border-top: 2px solid var(--line); scroll-margin-top: 4.5rem; }
.vehicle:first-of-type { border-top: 0; }
.vehicle .type { color: var(--ink-soft); font-size: 1.2rem; margin-bottom: 1.1rem; }
.spec { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0 0 1.5rem; }
.spec div { background: var(--ash); border-left: 12px solid var(--red); padding: .55rem 1.1rem .6rem 1rem; clip-path: var(--chamfer); --cut: 12px; }
.spec dt { font-size: .95rem; color: var(--ink-soft); }
.spec dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.75rem; line-height: 1.15; text-transform: uppercase; }
.gallery { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gallery figure { margin: 0; }
.gallery a { display: block; overflow: hidden; clip-path: var(--chamfer); --cut: 16px; background: var(--smoke); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ash); transition: transform .25s ease, opacity .25s; }
.gallery a:hover img { transform: scale(1.05); opacity: .9; }
.gallery figcaption { font-size: .98rem; line-height: 1.3; color: var(--ink-soft); margin-top: .4rem; }
details.equip { background: var(--ash); clip-path: var(--chamfer); --cut: 16px; }
details.equip summary { list-style: none; background: var(--smoke); color: #fff; padding: .85rem 1.2rem; font-size: 1.45rem; display: flex; justify-content: space-between; align-items: center; }
details.equip summary::-webkit-details-marker { display: none; }
details.equip summary::after { content: "+"; color: var(--hivis); font-size: 2rem; line-height: 1; }
details.equip[open] summary::after { content: "–"; }
details.equip summary:hover { color: var(--hivis); }
.equip-grid { display: grid; gap: 1.4rem 2.2rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); padding: 1.4rem 1.4rem 1.6rem; }
.equip-grid ul { margin: 0; padding-left: 1.15rem; font-size: 1.02rem; line-height: 1.45; }
.equip-grid li { padding-block: .1rem; }
.equip-grid li::marker { color: var(--red); }
.inline-figure { margin: 1.6rem 0 0; max-width: 480px; }
.inline-figure img { clip-path: var(--chamfer); --cut: 22px; }

/* ---------- Training numbers ---------- */
.lead-stat { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.lead-stat strong { font-family: var(--display); font-weight: 800; font-size: clamp(6rem, 14vw, 10rem); line-height: .85; color: var(--red); }
.lead-stat span { font-family: var(--display); font-weight: 800; font-size: 1.9rem; text-transform: uppercase; max-width: 10ch; line-height: 1; }
.skills { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.skills li { display: grid; grid-template-columns: 4.2rem 1fr; align-items: center; gap: .9rem; padding: .8rem 1.1rem .8rem .8rem; background: var(--ash); clip-path: var(--chamfer); --cut: 16px; border-left: 12px solid var(--red); line-height: 1.25; }
.skills b { font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--red); text-align: right; }
.two-col { display: grid; gap: 2rem 3rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .two-col { grid-template-columns: 1fr minmax(0, 400px); } }
.two-col img { width: 100%; clip-path: var(--chamfer); --cut: 26px; }
.two-col figcaption { color: var(--ink-soft); margin-top: .6rem; }
.two-col figure { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--smoke); color: #cfd3da; border-top: 18px solid transparent; border-image: var(--hazard) 18; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.4rem 3rem; justify-content: space-between; align-items: center; padding-block: 2.2rem; }
.foot-brand { display: flex; align-items: center; gap: 1.2rem; }
.foot-brand img { height: 78px; width: auto; flex: none; }
.site-footer strong { display: block; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 2.3rem; line-height: 1; color: #fff; margin-bottom: .2rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--hivis); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; font-family: var(--display); font-weight: 800; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Lightbox ---------- */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(10,10,12,.9); }
dialog.lightbox figure { margin: 0; text-align: center; }
dialog.lightbox img { max-width: 94vw; max-height: 84vh; width: auto; margin-inline: auto; background: #000; }
dialog.lightbox figcaption { color: #fff; margin-top: .7rem; }
dialog.lightbox button { position: fixed; background: var(--red); color: #fff; border: 0; cursor: pointer; width: 3.1rem; height: 3.1rem; font-size: 1.9rem; line-height: 1; }
dialog.lightbox button:hover { background: var(--hivis); color: var(--smoke); }
dialog.lightbox button:focus-visible { outline-color: #fff; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
dialog.lightbox.single .lb-prev, dialog.lightbox.single .lb-next { display: none; }

/* ---------- Other page types ---------- */
.notice { border-left: 8px solid var(--hivis); background: var(--smoke); color: #fff; padding: 1.1rem 1.4rem; clip-path: var(--chamfer); --cut: 16px; margin: 0 0 2rem; max-width: 70ch; }
.notice strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .03em; color: var(--hivis); }
.notice a { color: #fff; }
.notice p:last-child { margin-bottom: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }

.years { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.years a { display: block; padding: 1.2rem 1.4rem 1.3rem; background: var(--ash); text-decoration: none; color: var(--ink); clip-path: var(--chamfer); --cut: 18px; border-top: 10px solid var(--red); }
.years a:hover { background: var(--smoke); color: #fff; border-top-color: var(--hivis); }
.years b { display: block; font-family: var(--display); font-weight: 800; font-size: 3.8rem; line-height: 1; color: var(--red); }
.years a:hover b { color: var(--hivis); }
.years span { font-size: 1rem; }

.events { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.event a { display: grid; grid-template-columns: 150px 1fr; gap: 1.3rem; align-items: stretch; background: var(--ash); text-decoration: none; color: var(--ink); clip-path: var(--chamfer); --cut: 18px; border-left: 12px solid var(--red); }
.event a:hover { background: var(--smoke); color: #fff; }
.event img { width: 100%; height: 100%; min-height: 105px; object-fit: cover; background: var(--steel-2); }
.event .txt { padding: .85rem 1.2rem .9rem 0; }
.event .when { display: block; font-family: var(--display); font-weight: 800; font-size: 1.8rem; line-height: 1.1; color: var(--red); text-transform: uppercase; }
.event a:hover .when { color: var(--hivis); }
.event .what { display: block; margin: .2rem 0 .35rem; font-weight: 700; }
.event .who { display: block; font-size: 1rem; color: var(--ink-soft); }
.event a:hover .who { color: #c9ccd2; }
@media (max-width: 560px) { .event a { grid-template-columns: 96px 1fr; gap: .9rem; } .event .txt { padding-right: .8rem; } }

.albums { list-style: none; margin: 0 0 2.8rem; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.albums .card-body span { margin: 0; font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.year-block { scroll-margin-top: 4.5rem; }
.event-block { padding-block: 1.8rem; border-top: 2px solid var(--line); }
.event-block:first-of-type { border-top: 0; padding-top: 0; }
.event-block .gallery { margin-bottom: 0; }

.info { margin: 0; display: grid; gap: 0; max-width: 36rem; }
.info > div { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: .9rem 0; border-top: 2px solid var(--line); }
.info > div:last-child { border-bottom: 2px solid var(--line); }
.info dt { color: var(--ink-soft); }
.info dd { margin: 0; font-weight: 700; }
@media (max-width: 480px) { .info > div { grid-template-columns: 1fr; gap: .1rem; } }
address { font-style: normal; border-left: 12px solid var(--red); padding-left: 1.1rem; margin: 0 0 1.4rem; font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1.15; text-transform: uppercase; }
.steps { max-width: 62ch; padding-left: 1.5rem; }
.steps li { padding: .3rem 0 .3rem .4rem; }
.steps li::marker { font-family: var(--display); font-weight: 800; font-size: 1.3em; color: var(--red); }

/* albums: embedded videos, counters */
.video { position: relative; aspect-ratio: 16 / 9; max-width: 880px; margin: 0 0 1.6rem; background: var(--smoke); clip-path: var(--chamfer); --cut: 24px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.photo-count { color: var(--ink-soft); margin: 0 0 1.6rem; font-weight: 600; }
.section h3 { margin-top: 1.4em; }
.section .prose + h3 { margin-top: 1.6em; }

/* news archive */
.archive { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1rem; max-width: 980px; }
.arch-item { display: grid; grid-template-columns: 160px 1fr; background: var(--ash); clip-path: var(--chamfer); --cut: 18px; border-left: 12px solid var(--red); }
.arch-item.no-img { grid-template-columns: 1fr; }
.arch-img a, .arch-img { display: block; height: 100%; }
.arch-img img { width: 100%; height: 100%; min-height: 120px; object-fit: cover; background: var(--steel-2); }
.arch-item.tiny .arch-img { display: flex; align-items: center; justify-content: center; background: var(--steel-2); }
.arch-item.tiny .arch-img a { display: flex; align-items: center; justify-content: center; height: auto; }
.arch-item.tiny .arch-img img { width: auto; height: auto; min-height: 0; max-width: 100%; object-fit: none; }
.arch-body { padding: 1rem 1.5rem 1.15rem; }
.arch-body h3 { font-size: 1.7rem; margin: 0 0 .3em; }
.arch-body p { margin: 0 0 .55em; }
.arch-body p:last-child { margin-bottom: 0; }
.arch-item.big { grid-template-columns: 1fr; padding: 1rem 1.5rem 1.4rem; }
.arch-item.big h3 { font-size: 1.7rem; margin: 0 0 .6em; }
.arch-item.big .arch-img img { max-width: 560px; height: auto; min-height: 0; clip-path: var(--chamfer); --cut: 20px; }
@media (max-width: 560px) { .arch-item { grid-template-columns: 100px 1fr; } .arch-body { padding: .9rem 1rem 1rem; } }

/* date chips (pozivniki) */
.dates { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); max-width: 880px; }
.dates li { background: var(--smoke); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.5rem; padding: .55rem 1rem; clip-path: var(--chamfer); --cut: 12px; border-left: 8px solid var(--hivis); }

/* admin */
body.admin { background: var(--ash); }
.admin-bar { background: var(--smoke); color: #fff; border-bottom: 6px solid var(--red); }
.admin-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; flex-wrap: wrap; }
.admin-logout { display: flex; align-items: center; gap: 1.3rem; margin: 0; }
.admin-logout a { color: #fff; font-weight: 600; }
.admin-logout .btn { padding: .55rem 1.2rem; font-size: 1.2rem; }
.admin-wrap { width: min(100% - 2.5rem, 880px); margin: 2rem auto 4rem; display: grid; gap: 1.6rem; }
.panel { background: #fff; padding: 1.8rem 2rem 2rem; clip-path: var(--chamfer); --cut: 22px; border-top: 8px solid var(--red); }
.panel h1, .panel h2 { font-size: 2.2rem; margin-bottom: .7em; }
.panel h1::after, .panel h2::after { display: none; }
.panel-login { width: min(100%, 480px); margin-inline: auto; }
.field { display: block; margin: 0 0 1.2rem; }
.field > span { display: block; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .03em; margin-bottom: .3rem; }
.input { width: 100%; padding: .7rem .85rem; font: inherit; border: 2px solid var(--smoke); background: #fff; color: var(--ink); border-radius: 0; }
.input:focus { outline: 3px solid var(--flame); outline-offset: 1px; }
textarea.input { resize: vertical; min-height: 9rem; }
.field-short .input { max-width: 20rem; }
.hint { display: block; color: var(--ink-soft); font-size: .98rem; margin-top: .35rem; }
.msg { padding: .9rem 1.2rem; margin: 0; font-weight: 600; border-left: 8px solid; }
.msg-ok { background: #e4f5e8; border-color: #1a7f37; }
.msg-error { background: #fde8e8; border-color: var(--red); }

/* admin v2 */
.admin-list { list-style: none; margin: 0; padding: 0; }
.admin-list li { display: grid; grid-template-columns: 10.5rem 1fr auto; gap: .3rem 1rem; padding: .8rem 0; border-top: 2px solid var(--line); align-items: center; }
.admin-list li.is-hidden .t, .admin-list li.is-hidden .d { color: var(--ink-soft); text-decoration: line-through; }
.admin-list .d { color: var(--ink-soft); }
.admin-list .t { font-weight: 700; overflow-wrap: anywhere; }
.admin-list .b { font-family: var(--display); font-weight: 800; text-transform: uppercase; padding: .1rem .7rem; font-size: 1.05rem; }
.b-front { background: var(--hivis); color: var(--smoke); }
.b-old { background: var(--smoke); color: #fff; }
.b-hidden { background: #fff; color: var(--red-dark); box-shadow: inset 0 0 0 2px var(--red); }
.acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.act { display: inline-block; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.05rem; letter-spacing: .03em; padding: .25rem .9rem; background: var(--ash); color: var(--smoke); border: 0; text-decoration: none; cursor: pointer; line-height: 1.3; }
.act:hover { background: var(--smoke); color: #fff; }
.act-danger { background: #fde8e8; color: var(--red-dark); }
.act-danger:hover { background: var(--red); color: #fff; }
form.inline { display: inline; margin: 0; }
form.confirm { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.pager { display: flex; gap: .4rem; flex-wrap: wrap; margin: 1.2rem 0 0; font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.pager a, .pager strong { padding: .1rem .75rem; background: var(--ash); text-decoration: none; color: var(--smoke); }
.pager strong { background: var(--smoke); color: #fff; }
.adm-thumb { max-width: 220px; max-height: 160px; width: auto; height: auto; display: block; margin: .4rem 0 .6rem; }
.field.check { display: flex; align-items: center; gap: .6rem; }
.field.check > span { display: inline; margin: 0; font-size: 1.1rem; }
label.check { display: inline-flex; align-items: center; gap: .6rem; }
label.check span { display: inline; font-family: var(--body); font-weight: 600; text-transform: none; font-size: 1rem; letter-spacing: 0; }
input[type="checkbox"] { width: 1.2rem; height: 1.2rem; accent-color: var(--red); }
.msg-warn { background: #fff4d6; border-color: var(--hivis); }
.panel h2 small { font-size: .55em; color: var(--ink-soft); font-family: var(--body); font-weight: 600; text-transform: none; }
.btn-solid + .btn-line, .btn-line + .btn-line, form.confirm .btn { margin: 0; }
@media (max-width: 560px) { .admin-list li { grid-template-columns: 1fr auto; } .admin-list .d { grid-column: 1 / -1; } .panel { padding: 1.4rem 1.2rem 1.6rem; } }

/* admin users */
.admin-logout .who { color: #d3d6dc; font-size: .95rem; }
.msg-secret { background: #fff4d6; border-color: var(--hivis); }
.msg-secret .cred { font-size: 1.15rem; line-height: 1.9; }
.msg-secret code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; background: #fff; padding: .15rem .55rem; border: 2px solid var(--smoke); font-size: 1.2rem; user-select: all; overflow-wrap: anywhere; }
.users-list { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.users-list li { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; padding: .8rem 0; border-top: 2px solid var(--line); align-items: center; }
.users-list .t { font-weight: 700; font-size: 1.1rem; }
.users-list .d { color: var(--ink-soft); }
.users-list .acts { grid-column: 1 / -1; }
.panel h3.sub { font-size: 1.5rem; margin: 1.6rem 0 .8rem; }
