@font-face { font-family: "Roboto"; src: url("Roboto-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("Roboto-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("Roboto-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --navy: #001f60;
  --navy-deep: #00143f;
  --yellow: #ffb600;
  --yellow-hover: #ffc62a;
  --green: #1f584b;
  --ink: #172033;
  --muted: #5f6876;
  --line: #dfe3e9;
  --surface: #f4f6f8;
  --white: #ffffff;
  --content: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "Roboto", Arial, sans-serif; line-height: 1.6; }
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, select { font: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; background: var(--yellow); color: var(--navy); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; z-index: 20; top: 0; left: 0; right: 0; min-height: 88px; padding: 18px clamp(20px, 4vw, 64px); display: grid; grid-template-columns: minmax(170px, 248px) 1fr auto; align-items: center; gap: 32px; background: rgba(255, 255, 255, .96); border-bottom: 1px solid rgba(0, 31, 96, .1); box-shadow: 0 8px 28px rgba(0, 20, 63, .06); backdrop-filter: blur(12px); }
.brand img { width: 220px; height: auto; }
.desktop-nav { display: flex; justify-content: center; gap: clamp(18px, 2.4vw, 38px); }
.desktop-nav a, .mobile-nav a { text-decoration: none; font-size: .94rem; font-weight: 500; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: var(--navy); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 7px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.language-control select { border: 0; background: transparent; color: var(--navy); padding: 9px 22px 9px 8px; cursor: pointer; font-weight: 700; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.menu-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--navy); }

.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 12px 24px; border: 2px solid var(--yellow); border-radius: 4px; background: var(--yellow); color: var(--navy-deep); font-weight: 700; text-decoration: none; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.button:hover, .button:focus-visible { background: var(--yellow-hover); border-color: var(--yellow-hover); transform: translateY(-2px); }
.button-small { min-height: 42px; padding: 8px 16px; font-size: .9rem; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 700; text-decoration: none; }
.text-link:hover, .text-link:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.light-link { color: var(--white); }

.hero { position: relative; min-height: clamp(650px, 78vh, 820px); padding: 150px max(24px, calc((100vw - var(--content)) / 2)) 92px; display: flex; align-items: center; overflow: hidden; background: var(--navy-deep); }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media { background-image: url("hero-skautlajn-40-60.webp"); background-size: cover; background-position: center center; transform: scale(1.01); }
.hero-shade { background: rgba(0, 20, 63, .58); }
.hero-content { position: relative; z-index: 2; width: min(720px, 52%); color: var(--white); }
.eyebrow, .section-kicker { margin: 0 0 18px; color: var(--yellow); font-size: .82rem; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.hero h1 { margin: 0 0 20px; font-size: clamp(4rem, 8vw, 7.5rem); line-height: .94; letter-spacing: 0; }
.hero-lead { margin: 0; max-width: 650px; font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.45; }
.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.scroll-cue { position: absolute; z-index: 3; bottom: 26px; left: 50%; width: 30px; height: 45px; border: 2px solid rgba(255,255,255,.72); border-radius: 18px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; top: 9px; left: 50%; width: 4px; height: 8px; border-radius: 4px; background: var(--yellow); transform: translateX(-50%); animation: scrollHint 1.8s infinite; }
@keyframes scrollHint { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 15px); } }

.section { padding: clamp(72px, 9vw, 128px) clamp(22px, 5vw, 72px); }
.section-inner { width: min(var(--content), 100%); margin: 0 auto; }
.section h2, .story h2, .join h2 { margin: 0; color: var(--navy); font-size: clamp(2.25rem, 4.5vw, 4.25rem); line-height: 1.08; letter-spacing: 0; }
.intro { background: var(--white); }
.intro-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(48px, 8vw, 110px); align-items: end; }
.intro-copy { padding-bottom: 6px; }
.intro-copy p { margin: 0 0 28px; color: var(--muted); font-size: 1.18rem; }

.activities { background: var(--surface); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 64px; align-items: end; margin-bottom: 56px; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.activity-list { border-top: 1px solid #cfd5dd; }
.activity-row { display: grid; grid-template-columns: 80px 1fr 52px; gap: 28px; align-items: center; padding: 34px 0; border-bottom: 1px solid #cfd5dd; }
.activity-number { color: var(--green); font-size: .88rem; font-weight: 700; }
.activity-row h3 { margin: 0 0 7px; color: var(--navy); font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.activity-row p { max-width: 760px; margin: 0; color: var(--muted); }
.round-link { display: inline-grid; width: 48px; height: 48px; place-items: center; border: 2px solid var(--navy); border-radius: 50%; color: var(--navy); font-size: 1.4rem; font-weight: 700; text-decoration: none; transition: background .2s ease, color .2s ease, transform .2s ease; }
.round-link:hover, .round-link:focus-visible { background: var(--navy); color: var(--white); transform: translateX(3px); }
.round-link.small { width: 40px; height: 40px; font-size: 1.1rem; }

.story { display: grid; grid-template-columns: 1fr 1fr; min-height: 690px; background: var(--green); color: var(--white); }
.story-image { min-height: 520px; }
.story-image img { width: 100%; height: 100%; object-fit: cover; }
.story-copy { padding: clamp(60px, 8vw, 120px); display: flex; flex-direction: column; justify-content: center; }
.story h2 { color: var(--white); }
.story-copy > p:not(.section-kicker) { margin: 26px 0 44px; max-width: 620px; color: rgba(255,255,255,.82); font-size: 1.12rem; }
.principles { display: grid; gap: 20px; }
.principles div { display: grid; grid-template-columns: minmax(120px, .42fr) 1fr; gap: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.28); }
.principles strong { color: var(--yellow); }
.principles span { color: rgba(255,255,255,.82); }

.news { background: var(--white); }
.news-heading { align-items: end; }
.news-heading > a { justify-self: end; }
.news-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; }
.news-featured, .news-item { border: 1px solid var(--line); border-radius: 8px; background: var(--white); overflow: hidden; }
.news-featured { display: grid; grid-template-columns: 1fr 1fr; min-height: 440px; }
.news-image { min-height: 300px; background-size: cover; background-position: center; }
.news-image-primary { background-image: url("community.jpg"); }
.news-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.news-meta { display: flex; gap: 18px; color: var(--muted); font-size: .78rem; font-weight: 500; text-transform: uppercase; }
.news-meta span { color: var(--green); font-weight: 700; }
.news h3 { margin: 16px 0 12px; color: var(--navy); font-size: clamp(1.55rem, 2.6vw, 2.3rem); line-height: 1.15; }
.news p { margin: 0 0 25px; color: var(--muted); }
.news-list { display: grid; gap: 20px; }
.news-item { position: relative; display: block; padding: 30px 76px 30px 30px; color: inherit; text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.news-item .round-link { position: absolute; right: 24px; bottom: 24px; }
.news-item h3 { font-size: 1.55rem; }
.news-item:hover { transform: translateY(-4px); border-color: #c5ccd6; box-shadow: 0 16px 34px rgba(0, 33, 92, .1); }
.news-item:hover .round-link, .news-item:focus-visible .round-link { background: var(--navy); color: var(--white); transform: translateX(3px); }

.join { color: var(--white); background-color: var(--navy); background-image: url("rope-pattern.png"); background-size: cover; background-blend-mode: multiply; }
.join-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(50px, 9vw, 130px); align-items: center; }
.join h2 { color: var(--white); }
.join-grid > div:last-child > p { margin: 0 0 32px; color: rgba(255,255,255,.82); font-size: 1.18rem; }
.yellow { color: var(--yellow); }
.join-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

.site-footer { padding: 58px clamp(22px, 5vw, 72px) 24px; color: var(--ink); background: var(--surface); }
.footer-main, .footer-bottom { width: min(var(--content), 100%); margin: 0 auto; }
.footer-main { display: grid; grid-template-columns: 260px 1fr auto; gap: 50px; align-items: start; }
.footer-logo { width: 230px; }
.footer-main p { max-width: 480px; margin: 0; color: var(--muted); }
.footer-links { display: grid; gap: 10px; }
.footer-links a, .footer-bottom a { color: var(--navy); text-decoration: none; }
.footer-links a:hover, .footer-bottom a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 46px; padding-top: 20px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

.home-news { grid-template-columns: repeat(3, 1fr); }
.content-page.section { padding-top: clamp(180px, 9vw, 210px); min-height: 70vh; }
.content-page h1 { max-width: 900px; margin: 0 0 36px; color: var(--navy); font-size: clamp(2.8rem, 6vw, 5.5rem); line-height: 1.02; }
.article-inner { width: min(880px, 100%); margin: 0 auto; }
.standard-page .article-inner { width: min(1120px, 100%); }
.page-heading { position: relative; margin-bottom: clamp(48px, 7vw, 84px); padding: 0 0 38px 32px; border-left: 6px solid var(--yellow); border-bottom: 1px solid var(--line); }
.page-heading .section-kicker { margin-bottom: 12px; }
.page-heading h1 { margin-bottom: 0; }
.article-inner > .text-link:first-child { margin-bottom: 44px; }
.article-back { min-height: 32px; }
.article-date { margin: 20px 0 10px; color: var(--muted); }
.article-hero { width: 100%; max-height: 560px; margin: 36px 0; object-fit: cover; border-radius: 6px; }
.prose { color: #313b4d; font-size: 1.08rem; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin: 2.4em 0 .65em; font-size: clamp(1.75rem, 3vw, 2.55rem); }
.prose h3 { margin: 2em 0 .5em; color: var(--navy); font-size: 1.45rem; }
.prose h2[id], .prose h3[id], .prose h4[id] { scroll-margin-top: 32px; }
.prose p, .prose li { max-width: 75ch; }
.prose a { color: var(--navy); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.standard-page .prose { font-size: 1.12rem; line-height: 1.75; }
.standard-page .prose > h2, .standard-page .prose > h3 { margin: clamp(64px, 8vw, 96px) 0 28px; padding: 0 0 20px; border-bottom: 4px solid var(--yellow); color: var(--navy); font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.12; }
.standard-page .prose > h2:first-child, .standard-page .prose > h3:first-child { margin-top: 0; }
.page-o-projektu-skautlajn .prose > p { max-width: none; margin: 0; padding: 21px 0; border-bottom: 1px solid var(--line); }
.page-o-projektu-skautlajn .prose > p > strong:first-child { color: var(--navy); }
.page-o-projektu-skautlajn .prose > ol { margin: 28px 0 64px; padding: 28px 28px 28px 52px; border-left: 5px solid var(--green); background: var(--surface); }
.page-o-projektu-skautlajn .prose > ol > li { margin: 0 0 20px; padding-left: 8px; }

.activity-catalogue .article-inner { width: min(1240px, 100%); }
.activity-page-lead { max-width: 920px; margin-bottom: 88px; padding: 28px 32px; border-left: 6px solid var(--yellow); background: #fff8df; font-size: 1.2rem; }
.activity-page-lead p { max-width: none; margin: 0; }
.activity-chapter { margin: 0 0 112px; }
.activity-chapter > h3 { margin: 0 0 24px !important; padding: 0 0 22px !important; border-bottom: 5px solid var(--yellow) !important; color: var(--navy); font-size: clamp(2.5rem, 4.5vw, 4.2rem) !important; line-height: 1.05; }
.activity-chapter > h3 + p { max-width: 900px; margin: 0 0 42px; color: var(--muted); font-size: 1.18rem; }
.activity-entries { display: grid; gap: 28px; }
.activity-entry { display: grid; grid-template-columns: minmax(230px, 300px) 1fr; column-gap: clamp(30px, 5vw, 68px); padding: clamp(28px, 4vw, 46px); border-top: 4px solid var(--green); border-radius: 6px; background: var(--surface); }
.activity-entry > h4 { grid-column: 1 / -1; margin: 0 0 26px; color: var(--navy); font-size: clamp(1.55rem, 2.5vw, 2.15rem); line-height: 1.18; }
.activity-entry > p, .activity-entry > ul, .activity-entry > ol, .activity-entry > blockquote { grid-column: 2; max-width: none; margin: 0 0 18px; }
.activity-entry > h4 + p { grid-column: 1; grid-row: 2 / span 20; margin: 0; padding-right: 28px; border-right: 1px solid #cfd5dd; color: var(--muted); font-size: .95rem; line-height: 1.65; }
.activity-description-label { color: var(--green); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.news-detail { padding-bottom: clamp(80px, 9vw, 128px); }
.news-detail .article-inner { width: min(960px, 100%); }
.news-detail .article-back { margin-bottom: clamp(42px, 5vw, 64px); }
.news-detail .article-heading { margin-bottom: 44px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.news-detail .article-date { margin: 0 0 16px; font-size: .95rem; font-weight: 500; }
.news-detail h1 { max-width: 18ch; margin: 0; font-size: clamp(2.75rem, 4vw, 4.5rem); line-height: 1.06; }
.news-detail .prose { width: min(760px, 100%); font-size: 1.12rem; line-height: 1.75; }
.translation-note { margin: 0 0 28px; padding: 14px 18px; border-left: 4px solid var(--yellow); background: #fff8df; color: #594600; }
.filters { display: flex; gap: 10px; margin: 38px 0 54px; flex-wrap: wrap; }
.filter { padding: 8px 14px; border: 1px solid var(--line); border-radius: 4px; color: var(--navy); font-weight: 700; text-decoration: none; }
.filter:hover, .filter.active { border-color: var(--navy); background: var(--navy); color: var(--white); }
.news-archive { display: grid; gap: 0; border-top: 1px solid var(--line); }
.news-card { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: 38px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.news-card-image { min-height: 230px; overflow: hidden; border-radius: 6px; }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.news-card-image:hover img { transform: scale(1.025); }
.news-card time { color: var(--muted); font-size: .85rem; }
.news-card h2 { margin: 10px 0 12px; font-size: clamp(1.65rem, 3vw, 2.5rem); }
.news-card h2 a { color: var(--navy); text-decoration: none; }
.news-card p { color: var(--muted); }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

@media (min-width: 1680px) {
  :root { --content: 1480px; }
  .site-header { padding-left: max(64px, calc((100vw - var(--content)) / 2)); padding-right: max(64px, calc((100vw - var(--content)) / 2)); }
  .hero-content { width: min(760px, 48%); }
  .section { padding-top: 104px; padding-bottom: 104px; }
  .intro-grid { grid-template-columns: 1.12fr .88fr; gap: 96px; }
  .intro-copy p { font-size: 1.24rem; }
  .activity-row { grid-template-columns: 96px 1fr 52px; }
}

@media (max-width: 1040px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav { position: absolute; top: 88px; left: 0; right: 0; padding: 24px; background: var(--white); border-bottom: 1px solid var(--line); }
  .mobile-nav:not([hidden]) { display: grid; gap: 20px; }
  .news-featured { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-column: 2; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 96px; }
  .site-header { min-height: 76px; padding: 14px 18px; gap: 12px; }
  .brand img { width: 155px; }
  .header-actions { gap: 4px; }
  .header-actions > .button { display: none; }
  .language-control select { padding-right: 8px; }
  .mobile-nav { top: 76px; height: calc(100vh - 76px); align-content: start; padding: 36px 24px; }
  .mobile-nav a { font-size: 1.25rem; }
  .hero { min-height: 710px; padding: 130px 22px 82px; align-items: flex-end; }
  .hero-media { background-position: 58% center; }
  .hero-shade { background: rgba(0, 20, 63, .72); }
  .hero-content { width: 100%; }
  .hero h1 { font-size: clamp(3.6rem, 18vw, 5.2rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .intro-grid, .section-heading, .story, .news-grid, .join-grid, .footer-main { grid-template-columns: 1fr; }
  .section-heading { gap: 24px; margin-bottom: 36px; }
  .activity-row { grid-template-columns: 42px 1fr; gap: 16px; }
  .activity-row .round-link { grid-column: 2; }
  .story-image { min-height: 390px; }
  .story-copy { padding: 64px 24px; }
  .principles div { grid-template-columns: 1fr; gap: 4px; }
  .news-heading > a { justify-self: start; }
  .news-featured { min-height: 0; }
  .news-image { min-height: 260px; }
  .footer-links { grid-column: auto; }
  .footer-main { gap: 30px; }
  .home-news { grid-template-columns: 1fr; }
  .content-page.section { padding-top: 124px; }
  .page-heading { margin-bottom: 42px; padding: 0 0 26px 18px; border-left-width: 4px; }
  .standard-page .prose { font-size: 1.04rem; }
  .standard-page .prose > h2, .standard-page .prose > h3 { margin-top: 56px; font-size: 2rem; }
  .activity-page-lead { margin-bottom: 62px; padding: 22px 20px; font-size: 1.06rem; }
  .activity-chapter { margin-bottom: 82px; }
  .activity-chapter > h3 { font-size: 2.65rem !important; }
  .activity-entry { grid-template-columns: 1fr; padding: 26px 22px; }
  .activity-entry > h4, .activity-entry > p, .activity-entry > ul, .activity-entry > ol, .activity-entry > blockquote, .activity-entry > h4 + p { grid-column: 1; grid-row: auto; }
  .activity-entry > h4 + p { margin-bottom: 24px; padding: 0 0 22px; border-right: 0; border-bottom: 1px solid #cfd5dd; }
  .news-detail .article-back { margin-bottom: 34px; }
  .news-detail .article-heading { margin-bottom: 32px; padding-bottom: 28px; }
  .news-detail h1 { font-size: clamp(2.4rem, 12vw, 3.5rem); }
  .news-card { grid-template-columns: 1fr; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
