/* ==========================================================================
   Polet Nova Gorica – stylesheet
   ========================================================================== */

:root {
  --navy-950: #071526;
  --navy-900: #0b2340;
  --navy-800: #10325a;
  --sky-600: #1a6fb0;
  --sky-500: #2389d4;
  --sky-100: #e4f1fb;
  --orange: #ef8a3d;
  --orange-dark: #d8712a;
  --sun: #f6c400;
  --leaf: #a7c93b;

  --bg: #f5f8fb;
  --surface: #ffffff;
  --text: #1a2838;
  --muted: #5b6b7d;
  --line: #dde5ee;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(11, 35, 64, .06), 0 8px 24px rgba(11, 35, 64, .08);
  --shadow-lg: 0 20px 50px rgba(11, 35, 64, .18);
  --max: 1180px;
  --header-h: 72px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy-900); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 40px, 780px); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--orange); color: #fff; padding: 8px 14px; z-index: 1000; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy-950); color: #b9c8d8; font-size: .85rem; }
.topbar .container { display: flex; gap: 22px; justify-content: flex-end; align-items: center; min-height: 36px; flex-wrap: wrap; }
.topbar a { color: #dbe6f1; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--sun); }
.topbar svg { width: 15px; height: 15px; fill: currentColor; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 35, 64, .96);
  backdrop-filter: saturate(140%) blur(8px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { height: 50px; width: auto; }
.nav-toggle {
  display: none; background: none; border: 0; color: #fff; padding: 10px; cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; stroke: currentColor; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.main-nav a, .main-nav .dd-btn {
  display: block; color: #e6eef7; text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 10px 14px; border-radius: 8px; background: none; border: 0; font-family: inherit; cursor: pointer;
}
.main-nav a:hover, .main-nav .dd-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.main-nav a[aria-current="page"], .main-nav .has-dd.active > .dd-btn { color: var(--sun); }
.dd-btn::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.has-dd { position: relative; }
.dropdown {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 200px;
  background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.has-dd:hover .dropdown, .has-dd:focus-within .dropdown, .has-dd.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { color: var(--text); font-weight: 550; }
.dropdown a:hover { background: var(--sky-100); color: var(--navy-900); }
.dropdown a[aria-current="page"] { color: var(--orange-dark); }

@media (max-width: 600px) { .topbar .container { justify-content: center; gap: 16px; } .topbar a.fb-link { display: none; } }
@media (max-width: 960px) {
  /* backdrop-filter would trap the fixed menu panel inside the header, so it is off on mobile */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--navy-900); }
  .nav-toggle { display: block; }
  .nav-toggle .icon-close { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: inline; }
  .main-nav {
    position: fixed; top: var(--nav-top, var(--header-h)); left: 0; right: 0; bottom: 0; z-index: 99;
    background: var(--navy-900); border-top: 1px solid rgba(255,255,255,.08);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s; overflow-y: auto;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 16px 20px 40px; gap: 4px; }
  .main-nav a, .main-nav .dd-btn { font-size: 1.1rem; padding: 14px 12px; width: 100%; text-align: left; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; box-shadow: none; padding: 0 0 0 16px; display: none; }
  .has-dd.open .dropdown { display: block; }
  .dropdown a { color: #c9d7e6; }
  .dropdown a:hover { background: rgba(255,255,255,.08); color: #fff; }
  html.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  min-height: min(82vh, 720px); display: grid; align-items: end;
  background: var(--navy-900);
}
.hero-slides, .hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slides img { object-fit: cover; opacity: 0; transition: opacity 1.4s ease, transform 8s ease; transform: scale(1.06); }
.hero-slides img.active { opacity: 1; transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,21,38,.6) 0%, rgba(7,21,38,.2) 55%, transparent 100%),
    linear-gradient(180deg, rgba(7,21,38,.15) 0%, rgba(7,21,38,.25) 45%, rgba(7,21,38,.85) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 120px 0 72px; }
.hero h1 { color: #fff; max-width: 14ch; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 46ch; color: #e8f0f8; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 12px;
}
.hero .eyebrow { color: var(--sun); }
.hero-dots { position: absolute; z-index: 3; right: 24px; bottom: 28px; display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; }
.hero-dots button.active { background: var(--sun); width: 26px; border-radius: 6px; }

.page-hero {
  position: relative; color: #fff; background: var(--navy-900) center/cover no-repeat; overflow: hidden;
}
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(7,21,38,.88) 0%, rgba(7,21,38,.55) 60%, rgba(7,21,38,.35) 100%); }
.page-hero .container { position: relative; z-index: 1; padding: 88px 0 72px; }
.page-hero h1 { color: #fff; margin-bottom: .25em; }
.page-hero p { color: #dbe6f1; font-size: 1.15rem; max-width: 56ch; margin: 0; }
.page-hero .eyebrow { color: var(--sun); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, transform .15s, box-shadow .15s; font-family: inherit;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(239,138,61,.35); }
.btn-primary:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy-900); }
.btn-outline { border-color: var(--sky-600); color: var(--sky-600); background: transparent; }
.btn-outline:hover { background: var(--sky-600); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--navy-900); color: #dbe6f1; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p { color: #b9c8d8; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .section { padding: 64px 0; } }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.reverse > :first-child { order: 0; } }
.rounded-img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line);
}
.card-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.card-body p { color: var(--muted); }
.card-body .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.card-media { aspect-ratio: 16/10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.card { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
a.card:hover .card-media img { transform: scale(1.05); }

.feature .icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
}
.feature .icon svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.orange { background: var(--orange); }
.icon.sun { background: #e0b100; }
.icon.leaf { background: #86a82a; }
.icon.sky { background: var(--sky-500); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat strong { display: block; font-size: clamp(2.2rem, 4vw, 3rem); color: var(--sun); font-weight: 800; line-height: 1.1; }
.stat span { color: #b9c8d8; font-size: .95rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 32px; } }

/* ---------- Courses ---------- */
.course { position: relative; }
.course .tag { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: 6px; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .38em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sky-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a6fb0' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; margin: 0; }
.pill-list li { background: var(--sky-100); color: var(--navy-800); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .95rem; }

.callout {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800)); color: #dbe6f1; border-radius: var(--radius);
  padding: 40px; position: relative; overflow: hidden;
}
.callout h2, .callout h3 { color: #fff; }
.callout::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(246,196,0,.35), transparent 70%);
}

/* ---------- Info list ---------- */
.info-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 0; }
.info-list dt { color: var(--muted); font-weight: 600; }
.info-list dd { margin: 0; font-weight: 600; word-break: break-word; }
@media (max-width: 480px) { .info-list { grid-template-columns: 1fr; gap: 2px; } .info-list dd { margin-bottom: 10px; } }

.doc-link {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text); font-weight: 600; background: var(--surface); transition: border-color .15s, background .15s;
}
.doc-link:hover { border-color: var(--sky-500); background: var(--sky-100); color: var(--navy-900); }
.doc-link svg { width: 26px; height: 26px; flex: none; fill: #d4483b; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form textarea, .form select {
  font: inherit; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid #c8d4e1; background: #fff; color: var(--text);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--sky-500); box-shadow: 0 0 0 3px rgba(35,137,212,.2); }
.form textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.section-dark .form label { color: #dbe6f1; }
.section-dark .form-note { color: #9fb2c6; }

/* ---------- Articles ---------- */
.post-meta { color: var(--muted); font-size: .92rem; display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.article { background: var(--surface); padding: clamp(24px, 5vw, 56px); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: -60px; position: relative; z-index: 2; }
.article p { font-size: 1.07rem; }
.article figure { margin: 32px 0; }
.article figure img { border-radius: var(--radius-sm); margin-inline: auto; }
.article figcaption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 8px; }
.article h2 { font-size: 1.5rem; margin-top: 1.6em; }
.author { display: flex; align-items: center; gap: 14px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 700; }
.author .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 800; }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 20px 0; }
.results div { background: var(--bg); border-radius: var(--radius-sm); padding: 16px 18px; border: 1px solid var(--line); }
.results h3 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: 8px; }
.results ol { margin: 0; padding-left: 20px; }
.back-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; text-decoration: none; margin-top: 28px; }

/* ---------- Gallery ---------- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.album { cursor: pointer; text-align: left; padding: 0; font: inherit; }
.album .card-media { aspect-ratio: 4/3; position: relative; }
.album .count { position: absolute; right: 12px; bottom: 12px; background: rgba(7,21,38,.75); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.album .card-body { padding: 18px 20px 22px; }
.album .card-body h3 { margin-bottom: 4px; font-size: 1.1rem; }
.album .card-body p { margin: 0; font-size: .92rem; }
.album time { color: var(--orange-dark); font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.lightbox {
  position: fixed; inset: 0; z-index: 500; background: rgba(4, 12, 22, .95); display: none;
  grid-template-rows: auto 1fr auto; color: #fff;
}
.lightbox.open { display: grid; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; gap: 16px; }
.lb-top h3 { color: #fff; margin: 0; font-size: 1.05rem; }
.lb-top span { color: #9fb2c6; font-size: .9rem; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 70px; }
.lb-stage img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 6px; }
.lb-btn {
  background: rgba(255,255,255,.1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; display: grid; place-items: center; font-size: 1.6rem; line-height: 1;
}
.lb-btn:hover { background: var(--orange); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 20px 18px; }
.lb-thumbs button { flex: none; width: 78px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; opacity: .55; background: none; }
.lb-thumbs button.active { border-color: var(--sun); opacity: 1; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .lb-stage { padding: 0 8px; } .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; } }

/* ---------- Video ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 26px; }
.yt { position: relative; aspect-ratio: 16/9; background: #000 center/cover no-repeat; border: 0; padding: 0; width: 100%; cursor: pointer; display: block; }
.yt::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55)); transition: background .2s; }
.yt::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%,-50%);
  border-radius: 14px; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/28px no-repeat;
  box-shadow: 0 6px 20px rgba(0,0,0,.4); transition: transform .2s;
}
.yt:hover::after { transform: translate(-50%,-50%) scale(1.1); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt.playing::before, .yt.playing::after { display: none; }
.video-card .card-body { padding: 16px 20px; }
.video-card h3 { margin: 0; font-size: 1.05rem; }

/* ---------- Weather ---------- */
.wx-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 860px) { .wx-grid { grid-template-columns: 1fr; } }
.wx-card .card-body { gap: 12px; }
.wx-card h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0; }
.wx-card h3 a { font-size: .82rem; font-weight: 600; white-space: nowrap; }
.wx-frame { background: #eef3f8; border-radius: var(--radius-sm); overflow: hidden; display: grid; place-items: center; min-height: 220px; }
.wx-frame img { width: 100%; height: auto; }
.wx-frame iframe { width: 100%; border: 0; display: block; }
.wx-steps { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.wx-steps button { background: var(--sky-100); color: var(--navy-900); border: 0; border-radius: 999px; padding: 8px 16px; font-weight: 700; cursor: pointer; font-family: inherit; }
.wx-steps button:hover:not(:disabled) { background: var(--sky-500); color: #fff; }
.wx-steps button:disabled { opacity: .4; cursor: default; }
.wx-steps output { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .92rem; }
.wx-missing { color: var(--muted); padding: 30px; text-align: center; font-size: .95rem; }
.wx-wide { grid-column: 1 / -1; }
.link-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.link-tiles a { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--navy-900); font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.link-tiles a:hover { border-color: var(--sky-500); background: var(--sky-100); }
.link-tiles small { display: block; color: var(--muted); font-weight: 500; }

/* ---------- Quiz ---------- */
.quiz-layout { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; }
@media (max-width: 900px) { .quiz-layout { grid-template-columns: 1fr; } }
.quiz-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
@media (max-width: 900px) { .quiz-side { position: static; } }
.quiz-side h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 8px; }
.set-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.set-list button {
  width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer;
  font: inherit; font-size: .93rem; color: var(--text); display: flex; justify-content: space-between; gap: 10px; line-height: 1.35;
}
.set-list button:hover { background: var(--sky-100); }
.set-list button.active { background: var(--navy-900); color: #fff; }
.set-list button small { opacity: .65; font-variant-numeric: tabular-nums; }
.quiz-tabs { display: flex; gap: 6px; background: var(--sky-100); padding: 5px; border-radius: 999px; margin-bottom: 14px; }
.quiz-tabs button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 999px; font-weight: 700; cursor: pointer; font-family: inherit; color: var(--navy-800); }
.quiz-tabs button.active { background: #fff; box-shadow: var(--shadow); }
.quiz-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.quiz-head h2 { font-size: 1.5rem; margin: 0; }
.score { display: flex; gap: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.score .ok { color: #1f8a4c; } .score .bad { color: #c63b2f; }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 26px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--sky-500), var(--leaf)); width: 0; transition: width .3s; }
.question { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; }
.question legend { font-weight: 700; margin-bottom: 12px; padding: 0; font-size: 1.02rem; color: var(--navy-900); }
.question fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.option {
  display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid transparent; margin-bottom: 6px; transition: background .12s;
}
.option:hover { background: var(--bg); }
.option input { margin-top: .35em; accent-color: var(--sky-600); flex: none; }
.option.correct { background: #e5f6ec; border-color: #9fd8b4; }
.option.wrong { background: #fdeceb; border-color: #f0b1ab; }
.option.reveal { border-color: #9fd8b4; border-style: dashed; }
.quiz-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9fb2c6; padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #cfdbe8; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.footer-logo { height: 54px; width: auto; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.social a:hover { background: var(--orange); }
.social svg { width: 18px; height: 18px; fill: #fff; }

/* ---------- Misc ---------- */
.map { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.js .reveal-up { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal-up.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal-up { opacity: 1; transform: none; }
}

/* ---------- Webcams ---------- */
.cam-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 680px) { .cam-grid { grid-template-columns: 1fr; } }
.cam { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.cam:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.cam-media { position: relative; aspect-ratio: 16/9; background: var(--navy-900); overflow: hidden; }
.cam-media img { width: 100%; height: 100%; object-fit: cover; }
.cam-live {
  position: absolute; left: 12px; top: 12px; background: rgba(7,21,38,.78); color: #fff; font-size: .75rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px 5px 22px; border-radius: 999px;
}
.cam-live::before { content: ""; position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 3px rgba(255,77,77,.3); }
.cam-off { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #b9c8d8; font-size: .92rem; padding: 20px; }
.cam-body { padding: 14px 18px 16px; }
.cam-body h3 { margin: 0 0 2px; font-size: 1.05rem; }
.cam-body p { margin: 0; color: var(--muted); font-size: .9rem; }
.cam-windy:hover { transform: none; box-shadow: var(--shadow); }
.cam-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cam-windy .cam-body p a { font-weight: 700; white-space: nowrap; }
