:root {
    --cyan: #08a9dc;
    --cyan-dark: #007da9;
    --cyan-deep: #006b92;
    --cyan-pale: #e9f8fd;
    --ink: #102237;
    --line: #d8e6ec;
    --paper: #fff;
    --page: #f5f9fb;
    --shadow: 0 8px 24px rgba(16, 57, 79, .12);
    --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; color: var(--ink); background: var(--page); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.5; }
a { color: var(--cyan-deep); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
a:focus-visible, summary:focus-visible { outline: 3px solid #f5be2e; outline-offset: 3px; }

.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; padding: .75rem 1rem; color: #fff; background: var(--ink); border-radius: .35rem; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.container { width: min(100% - 2rem, 1200px); margin-inline: auto; }

.site-header { background: var(--paper); box-shadow: 0 4px 16px rgba(19, 65, 89, .08); }
.masthead { min-height: 250px; padding: 1.1rem 1rem 1.25rem; display: flex; flex-direction: column; align-items: center; justify-content: center; background-image: linear-gradient(rgba(255, 255, 255, .18), rgba(255, 255, 255, .18)), url("../images/subotica-skyline.webp"); background-position: center bottom; background-size: auto 100%; background-repeat: no-repeat; }
.site-logo { width: min(76vw, 360px); height: auto; display: block; }
.tagline { width: min(92%, 560px); margin: .9rem 0 0; display: flex; align-items: center; gap: .8rem; color: var(--ink); font-size: clamp(.9rem, 3.8vw, 1.15rem); font-weight: 750; text-align: center; }
.tagline::before, .tagline::after { content: ""; height: 2px; flex: 1; background: var(--cyan); }
.tagline span { flex: none; }

.nav-shell { position: relative; background: var(--cyan); }
.nav-shell summary { min-height: 48px; padding: .75rem 1rem; color: #fff; font-weight: 750; text-align: center; cursor: pointer; list-style: none; }
.nav-shell summary::-webkit-details-marker { display: none; }
.nav-shell summary::after { content: "☰"; margin-left: .65rem; font-size: 1.15rem; }
.nav-shell[open] summary::after { content: "×"; }
.primary-nav { display: grid; background: var(--cyan-dark); }
.nav-shell:not([open]) .primary-nav { display: none; }
.primary-nav a { min-height: 48px; padding: .7rem 1rem; display: grid; place-items: center; color: #fff; font-weight: 750; text-decoration: none; border-top: 1px solid rgba(255, 255, 255, .22); }
.primary-nav a:hover, .primary-nav a:focus-visible { color: #fff; background: var(--cyan-deep); }
.desktop-nav { display: none; }

main { background: linear-gradient(#fff 0, var(--page) 34rem); }
.quick-contacts { padding-block: 2rem; display: grid; gap: 1rem; }
.contact-card { min-width: 0; padding: 1.25rem; display: flex; align-items: flex-start; gap: 1rem; background: var(--paper); border: 1px solid #e5eef2; border-bottom: 4px solid var(--cyan); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-card > div:last-child { min-width: 0; }
.contact-card h2 { margin: 0 0 .75rem; font-size: 1.25rem; line-height: 1.2; }
.icon-box { width: 3rem; height: 3rem; flex: 0 0 3rem; display: grid; place-items: center; color: #fff; background: var(--cyan); border-radius: .7rem; }
.icon-box svg { width: 1.7rem; height: 1.7rem; fill: currentColor; }
.contact-line { margin: .35rem 0; display: flex; align-items: baseline; gap: .55rem; }
.contact-line > span { width: 1.1rem; flex: 0 0 1.1rem; color: var(--cyan-dark); font-size: 1.08rem; font-weight: 700; line-height: 1; text-align: center; }
.contact-line a { min-width: 0; overflow-wrap: anywhere; }
.contact-line a { text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }

.content-sections { padding-bottom: 1.9rem; }
.section-block { padding: .85rem 0 1.45rem; scroll-margin-top: 1rem; }
.section-title { margin: 0 0 1.2rem; display: flex; align-items: center; gap: .8rem; font-size: clamp(1.75rem, 5vw, 2.35rem); line-height: 1.1; }
.section-title::after { content: ""; height: 2px; flex: 1; background: var(--cyan); }
.publisher-grid, .editorial-grid { display: grid; gap: 1.25rem; }
.identity-panel, .person-panel { min-width: 0; padding: .8rem .35rem; display: flex; align-items: flex-start; gap: 1rem; }
.line-icon { width: 2.8rem; height: 2.8rem; flex: 0 0 2.8rem; display: grid; place-items: center; color: var(--cyan); }
.line-icon svg { width: 2.3rem; height: 2.3rem; fill: currentColor; }
.identity-panel h3, .person-panel h3 { margin: 0; font-size: 1.25rem; line-height: 1.25; }
.identity-panel p { margin: .5rem 0 0; }
.person-panel .role { margin: 0 0 .1rem; color: var(--cyan-deep); font-weight: 750; }
.person-panel h3 span { font-size: .95rem; font-weight: 650; }

.journalists { margin-top: 1rem; padding: 1.15rem; background: linear-gradient(110deg, var(--cyan-pale), #dff4fb); border-radius: var(--radius); }
.journalists-heading { display: flex; gap: .8rem; align-items: flex-start; }
.journalists h3 { margin: 0; color: var(--cyan-deep); font-size: 1.25rem; }
.journalists p { margin: .2rem 0 0; }
.journalists ul { margin: 1rem 0 0; padding-left: 1.25rem; display: grid; gap: .35rem; }
.service-grid { padding: .4rem 0 1.9rem; display: grid; gap: 1rem; }
.service-card { scroll-margin-top: 1rem; }

.site-footer { color: #fff; background: linear-gradient(120deg, var(--cyan-dark), var(--cyan-deep)); }
.footer-inner { min-height: 120px; padding-block: 1.5rem; display: grid; gap: 1.25rem; align-items: center; }
.footer-inner strong, .footer-inner span { display: block; }
.footer-inner p { margin: 0; }

@media (min-width: 640px) {
    .container { width: min(100% - 3rem, 1200px); }
    .quick-contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick-contacts .contact-card:last-child { grid-column: 1 / -1; }
    .publisher-grid, .editorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .publisher-grid > :nth-child(2), .editorial-grid > :nth-child(2) { border-left: 1px solid var(--line); padding-left: 1.5rem; }
    .journalists ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-inner { grid-template-columns: 1fr auto; }
}

@media (min-width: 900px) {
    .masthead { min-height: 330px; padding-top: 1.25rem; background-image: linear-gradient(to right, #fff 0, rgba(255, 255, 255, .82) 4%, transparent 14%, transparent 86%, rgba(255, 255, 255, .82) 96%, #fff 100%), linear-gradient(rgba(255, 255, 255, .18), rgba(255, 255, 255, .18)), url("../images/subotica-skyline.webp"); background-size: 100% 100%, 100% 100%, min(calc(100% - 3rem), 1200px) 100%; }
    .site-logo { width: min(42vw, 380px); }
    .tagline { margin-top: .8rem; font-size: 1.25rem; }
    .nav-shell summary { display: none; }
    .nav-shell { display: none; }
    .desktop-nav { width: 100%; padding-inline: max(1rem, calc((100% - 960px) / 2)); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--cyan-dark); }
    .desktop-nav a { min-height: 58px; padding: .7rem 1rem; display: grid; place-items: center; color: #fff; font-size: 1.12rem; font-weight: 750; text-decoration: none; }
    .desktop-nav a:hover, .desktop-nav a:focus-visible { color: #fff; background: var(--cyan-deep); }
    .quick-contacts { padding-block: 2.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
    .quick-contacts .contact-card:last-child { grid-column: auto; }
    .contact-card { padding: 1.35rem; }
    .content-sections { padding-bottom: 2.2rem; }
    .section-block { padding-block: 1.05rem 1.65rem; }
    .publisher-grid { grid-template-columns: 1.15fr 1fr; }
    .journalists { padding: 1.2rem 1.45rem; }
    .journalists ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
