/* ════════════════════════════════════════════════════
   TESLA'S SLUŽABNIK — DESIGN SYSTEM
   Sebastian Press · Facsimile Edition
   ════════════════════════════════════════════════════ */

/* ── CUSTOM PROPERTIES ── */
:root {
    --ink:          #0e0c09;
    --ink-mid:      #1a1713;
    --ink-soft:     #2c2620;
    --parchment-light: #fbf6ea;
    --parchment:    #f4ead6;
    --parchment-mid:#e8dcc8;
    --parchment-dk: #d6c9b0;
    --parchment-deep: #b8a98c;
    --gold:         #c9a84c;
    --gold-light:   #e2c06a;
    --gold-dark:    #9a7930;
    --gold-faint:   rgba(201,168,76,0.15);
    --crimson:      #8b1c1c;
    --stone:        #4a4037;
    --stone-light:  #6b5d4f;
    --text:         #2a2018;
    --text-mid:     #4a3d2f;
    --text-light:   #7a6a58;

    --font-display: 'Cormorant Garamond', 'PT Serif', 'Palatino Linotype', Georgia, serif;
    --font-body:    'EB Garamond', 'PT Serif', Georgia, serif;
    --font-label:   'Cinzel', 'PT Serif', 'Trajan Pro', serif;

    --nav-h:        72px;
    --container:    1600px;
    --gap:          clamp(2rem, 5vw, 5rem);

    --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: clamp(1.25rem, 1.65vw, 1.35rem);
    line-height: 1.75;
    color: var(--text);
    background: var(--ink);
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
textarea, input, select { font-family: inherit; }

/* ── LANGUAGE SYSTEM ── */
/* !important so this always wins regardless of how specific a component's own
   display rule is (e.g. .form-group.has-error .field-error{display:block} would
   otherwise outrank this and show all three language spans at once on error) */
html[data-lang="sr-lat"] .sr-cyr,
html[data-lang="sr-lat"] .en      { display: none !important; }
html[data-lang="sr-cyr"] .sr-lat,
html[data-lang="sr-cyr"] .en      { display: none !important; }
html[data-lang="en"]     .sr-lat,
html[data-lang="en"]     .sr-cyr  { display: none !important; }

/* ── CONTAINER ── */
.container {
    width: min(var(--container), 100% - 3rem);
    margin-inline: auto;
}

/* ── TYPOGRAPHY HELPERS ── */
.section-eyebrow {
    font-family: var(--font-label);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.section-header { text-align: center; margin-bottom: var(--gap); }
.section-header.left-align { text-align: left; }
.section-header.light .section-eyebrow { color: var(--gold-light); }
.section-header.light h2 { color: var(--parchment); }
.section-header.light .section-lead { color: var(--parchment-mid); }

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 1rem;
}

.section-lead {
    font-size: clamp(1.25rem, 1.8vw, 1.5rem);
    color: var(--stone-light);
    max-width: 65ch;
    margin-inline: auto;
    font-style: italic;
}

/* ── BUTTONS ── */
.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.25rem;
    font-family: var(--font-label);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s var(--ease-out);
    border-radius: 0;
}

.btn-primary {
    background: var(--gold);
    color: var(--ink);
}
.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201,168,76,0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--parchment);
    border: 1px solid rgba(244,234,214,0.35);
}
.btn-ghost:hover {
    background: rgba(244,234,214,0.08);
    border-color: rgba(244,234,214,0.6);
}

/* ── IMAGE PLACEHOLDERS ── */
.img-placeholder {
    background: linear-gradient(135deg, var(--ink-soft) 0%, var(--stone) 100%);
    border: 1px solid rgba(201,168,76,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    aspect-ratio: 4/3;
}
.img-placeholder.small  { aspect-ratio: 4/3; }
.img-placeholder.medium { aspect-ratio: 3/4; }
.img-placeholder.large  { aspect-ratio: 16/9; }
.img-placeholder.dark-ph { background: var(--ink-mid); }

.ph-inner {
    padding: 2rem;
    color: var(--parchment-mid);
}
.ph-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--gold);
    opacity: 0.6;
}
.ph-inner p {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--parchment-dk);
    line-height: 1.5;
}
.ph-inner p em { color: var(--gold); font-style: normal; }
.ph-inner p small { font-size: 0.85rem; color: var(--parchment-deep); display: block; margin-top: 1rem; }

/* ── REVEAL ANIMATIONS ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ════════════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════════════ */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: rgba(14,12,9,0.97);
    backdrop-filter: blur(12px);
    transition: box-shadow 0.4s ease;
}

#nav.scrolled,
#nav.menu-open {
    box-shadow: 0 1px 0 rgba(201,168,76,0.15);
}

.nav-container {
    height: 100%;
    width: min(var(--container), 100% - 3rem);
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--parchment);
    letter-spacing: 0.03em;
    white-space: nowrap;
    margin-right: auto;
    transition: color 0.2s;
}
.nav-brand:hover { color: var(--gold-light); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    position: relative;
}
.nav-links li {
    display: flex;
    align-items: center;
}

/* Scroll-spy indicator: a single underline that slides between nav items
   as the active section changes (set via left/width in main.js), instead
   of each link's own ::after underline (hover-only) abruptly toggling.
   It's an <li> (valid <ul> child) but position:absolute removes it from
   the flex flow, so it doesn't consume .nav-links' gap or shift siblings. */
.nav-active-indicator {
    position: absolute;
    bottom: 0.2rem;
    height: 1px;
    background: var(--gold);
    opacity: 0;
    transition: left 0.35s var(--ease-out), width 0.35s var(--ease-out), opacity 0.2s;
    pointer-events: none;
    list-style: none;
}
.nav-links a.active { color: var(--parchment); }

.nav-links a {
    font-family: var(--font-label);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(244,234,214,0.75);
    padding: 0.5rem 0.9rem;
    line-height: 1;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0.2rem;
    left: 0.9rem;
    right: 0.9rem;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.25s var(--ease-out);
}
.nav-links a:hover { color: var(--parchment); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.nav-cta {
    color: var(--gold);
    border: 1px solid rgba(201,168,76,0.4);
    padding: 0.45rem 1.1rem;
}
.nav-links a.nav-cta:hover {
    background: var(--gold-faint);
    color: var(--gold-light);
    border-color: var(--gold);
}
.nav-links a.nav-cta::after { display: none; }

.font-size-control {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.nav-links li.nav-mobile-utils { display: none; }
.font-size-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    font-family: 'PT Serif', serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(244,234,214,0.7);
    border: 1px solid rgba(244,234,214,0.18);
    border-radius: 3px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.font-size-btn:hover {
    color: var(--gold-light);
    border-color: rgba(201,168,76,0.4);
    background: rgba(201,168,76,0.1);
}
.font-size-btn.font-size-dec { font-size: 0.65rem; }

.lang-dropdown {
    position: relative;
}
.lang-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'PT Serif', serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(244,234,214,0.7);
    padding: 0.4rem 0.55rem;
    border: 1px solid rgba(244,234,214,0.18);
    border-radius: 3px;
    transition: color 0.2s, border-color 0.2s;
}
.lang-dropdown-toggle:hover,
.lang-dropdown[data-open="true"] .lang-dropdown-toggle {
    color: var(--gold-light);
    border-color: rgba(201,168,76,0.4);
}
.lang-caret {
    transition: transform 0.2s var(--ease-out);
}
.lang-dropdown[data-open="true"] .lang-caret { transform: rotate(180deg); }

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 160px;
    background: var(--ink-mid);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 4px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    padding: 0.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out), visibility 0.18s;
    z-index: 50;
}
.lang-dropdown[data-open="true"] .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-option {
    font-family: 'PT Serif', serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 3px;
    transition: background 0.15s, color 0.15s;
}
.lang-option a {
    display: block;
    padding: 0.5rem 0.65rem;
    color: rgba(244,234,214,0.65);
    text-decoration: none;
}
.lang-option:hover { background: rgba(201,168,76,0.12); }
.lang-option:hover a { color: var(--gold-light); }
.lang-option.active a { color: var(--gold); }

.lang-dropdown-footer .lang-dropdown-menu {
    top: auto;
    bottom: calc(100% + 0.5rem);
    right: 0;
}

.nav-utils {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--parchment);
    transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 4.5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -4.5px); }

/* ════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════ */
#hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--ink);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        url('../img/book/hero-bg.jpg') center 27%/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(14,12,9,0.88) 0%,
        rgba(14,12,9,0.74) 50%,
        rgba(14,12,9,0.92) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem;
    /* Widened from 900px so the longer Cyrillic .hero-subtitle phrase
       (falls back to the wider PT Serif — Cormorant Garamond has no
       Cyrillic glyphs) fits on one line instead of wrapping its last
       word ("Amerike") alone onto a second line on common desktop
       widths. Existing 1.5rem horizontal padding still protects narrow
       screens, so no extra min()/4rem-margin formula is needed here. */
    max-width: 1150px;
    animation: heroFadeIn 1.4s var(--ease-out) both;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
    font-family: var(--font-label);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
    animation: heroFadeIn 1.4s 0.1s var(--ease-out) both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8.5vw, 7.2rem);
    font-weight: 300;
    line-height: 0.95;
    color: var(--parchment);
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    animation: heroFadeIn 1.4s 0.2s var(--ease-out) both;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 300;
    font-style: italic;
    color: var(--parchment-mid);
    margin-bottom: 2.5rem;
    animation: heroFadeIn 1.4s 0.3s var(--ease-out) both;
}

.hero-facts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    animation: heroFadeIn 1.4s 0.4s var(--ease-out) both;
}

.hero-fact {
    text-align: center;
}
.fact-value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 500;
    color: var(--gold-light);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.fact-label {
    display: block;
    font-family: var(--font-label);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(244,234,214,0.5);
}

.hero-fact-div {
    color: var(--gold);
    opacity: 0.4;
    font-size: 0.75rem;
    margin-top: -0.5rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    animation: heroFadeIn 1.4s 0.5s var(--ease-out) both;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--gold));
    animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50%  { opacity: 1; }
    100% { opacity: 0; transform: scaleY(1); transform-origin: top; }
}

/* ════════════════════════════════════════════════════
   OPENING QUOTE
   ════════════════════════════════════════════════════ */
.quote-section {
    background: var(--parchment);
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.opening-quote {
    max-width: min(1000px, 100% - 4rem);
    margin-inline: auto;
    text-align: center;
}

.opening-quote blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    font-weight: 400;
    font-style: italic;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 2rem;
}
.opening-quote blockquote::before,
.opening-quote blockquote::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin-inline: auto;
}
.opening-quote blockquote::before { margin-bottom: 1.5rem; }
.opening-quote blockquote::after  { margin-top: 1.5rem; }

.opening-quote figcaption {
    font-family: var(--font-label);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--stone-light);
}

/* ════════════════════════════════════════════════════
   ABOUT THE BOOK
   ════════════════════════════════════════════════════ */
#book {
    background: var(--parchment-mid);
    padding: clamp(5rem, 10vw, 9rem) 0;
}

.book-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 5vw, 6rem);
    align-items: start;
}

.book-image-col .img-placeholder {
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
}
/* Two separate source photos (not one image cropped responsively) — portrait
   shown >1024px, landscape shown ≤1024px. Toggled below in RESPONSIVE. */
.book-image-col .book-ph-portrait { aspect-ratio: 9/16; }
.book-image-col .book-ph-landscape { aspect-ratio: 16/9; display: none; }
.book-image-col .img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.book-text-col p.lead {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    color: var(--text);
    margin-bottom: 1.5rem;
    font-weight: 400;
}
.book-text-col p.lead em { color: var(--crimson); font-style: italic; }
.book-text-col p {
    color: var(--text-mid);
    margin-bottom: 1.25rem;
}

.book-details {
    margin-top: 2.5rem;
    border-top: 1px solid var(--parchment-dk);
    padding-top: 1.5rem;
    display: grid;
    gap: 0;
}
.detail-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0.5rem 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(201,168,76,0.15);
}
dt {
    font-family: var(--font-label);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--stone-light);
    padding-top: 0.1rem;
}
dd {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--text);
}

/* ════════════════════════════════════════════════════
   BOOK CONTENTS
   ════════════════════════════════════════════════════ */
.contents-section {
    background: var(--ink);
    padding: clamp(5rem, 10vw, 9rem) 0;
}

.contents-section .section-header h2 { color: var(--parchment); }
.contents-section .section-eyebrow { color: var(--gold); }

.contents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.1);
}

.content-card {
    background: var(--ink-mid);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    transition: background 0.3s ease;
}
.content-card:hover { background: var(--ink-soft); }

.content-ornament {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--gold);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 1rem;
}

.content-card h3 {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 1.7vw, 1.5rem);
    font-weight: 500;
    color: var(--parchment);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.content-card p {
    font-size: 1.2rem;
    color: var(--parchment-deep);
    font-style: italic;
    line-height: 1.6;
}

/* ════════════════════════════════════════════════════
   HISTORY / TIMELINE
   ════════════════════════════════════════════════════ */
#history {
    background: var(--parchment);
    padding: clamp(5rem, 10vw, 9rem) 0;
}

.timeline {
    margin-top: var(--gap);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 100px 40px 1fr;
    gap: 0 1rem;
    padding-bottom: 4rem;
}

.timeline-year-col {
    text-align: right;
    padding-top: 0.2rem;
}
.timeline-year {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    font-weight: 600;
    color: var(--gold-dark);
    line-height: 1.3;
}

.timeline-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.tl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--parchment);
    box-shadow: 0 0 0 3px var(--gold);
    flex-shrink: 0;
    margin-top: 0.35rem;
    z-index: 1;
}
.tl-line {
    flex: 1;
    width: 1px;
    background: linear-gradient(to bottom, var(--gold) 0%, rgba(201,168,76,0.2) 100%);
    margin-top: 4px;
}
.tl-dot.last { box-shadow: 0 0 0 3px var(--gold), 0 0 12px rgba(201,168,76,0.4); }

.timeline-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.tl-image {
    margin: 0;
    width: 100%;
    cursor: pointer;
}
.tl-image .img-placeholder {
    aspect-ratio: 4/3;
    width: 100%;
}
.tl-image .img-placeholder .ph-icon { font-size: 1.5rem; margin-bottom: 0; }
.tl-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border: 1px solid rgba(201,168,76,0.2);
    transition: transform 0.6s var(--ease-out);
}
.tl-image:hover img { transform: scale(1.02); }
.tl-image figcaption {
    margin-top: 0.6rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-style: italic;
    line-height: 1.45;
    color: var(--stone);
    text-align: center;
}

.tl-text h3 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 1.95vw, 1.7rem);
    font-weight: 500;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}
.tl-text p {
    color: var(--text-mid);
    font-size: 1.25rem;
    line-height: 1.75;
}
.tl-text p strong { color: var(--crimson); font-weight: 600; }

/* ════════════════════════════════════════════════════
   HERITAGE PROJECT
   ════════════════════════════════════════════════════ */
#heritage {
    background: var(--ink);
    padding: clamp(5rem, 10vw, 9rem) 0;
}

.heritage-intro {
    max-width: min(1150px, 100% - 4rem);
    margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}
.heritage-intro p {
    color: var(--parchment-mid);
    margin-bottom: 1.25rem;
}
.heritage-intro p:last-child { margin-bottom: 0; }

.exhibition-callout {
    max-width: min(950px, 100% - 4rem);
    margin: 0 auto clamp(4rem, 7vw, 5.5rem);
    padding: clamp(2rem, 4vw, 3rem);
    text-align: center;
    background: rgba(201,168,76,0.05);
    border: 1px solid rgba(201,168,76,0.25);
}
.exhibition-tag {
    font-family: var(--font-label);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}
.exhibition-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 500;
    color: var(--parchment);
    line-height: 1.3;
    margin-bottom: 1rem;
}
.exhibition-subtitle {
    display: block;
    font-style: italic;
    color: var(--parchment-deep);
    font-size: 1.2rem;
    line-height: 1.7;
}

.heritage-components-tag {
    text-align: center;
    margin-bottom: 1.5rem;
}

.heritage-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: clamp(4rem, 7vw, 5.5rem);
}

.heritage-why {
    max-width: min(1050px, 100% - 4rem);
    margin: 0 auto;
    text-align: center;
}
.heritage-why h3 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 500;
    color: var(--parchment);
    margin-bottom: 2.5rem;
}
.heritage-why p {
    color: var(--parchment-mid);
    margin-bottom: 1.25rem;
}

.heritage-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 4vw, 3rem);
    text-align: left;
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.heritage-why-block {
    position: relative;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(201,168,76,0.3);
}
.heritage-why-num {
    position: absolute;
    top: -1rem;
    left: 0;
    background: var(--ink);
    padding-right: 0.75rem;
    font-family: var(--font-label);
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: var(--gold);
}
.heritage-why p.heritage-why-label {
    font-family: var(--font-label);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 0.9rem;
}
.heritage-why-block p:not(.heritage-why-label) {
    font-size: 1.2rem;
    line-height: 1.65;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .heritage-why-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.heritage-why .heritage-slogan {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.35rem, 2.2vw, 1.65rem);
    color: var(--gold);
    margin: 2rem 0;
}
.heritage-cta { margin-top: 0.5rem; }

/* ════════════════════════════════════════════════════
   FACSIMILE EDITION
   ════════════════════════════════════════════════════ */
.edition-section {
    position: relative;
    background: var(--ink-mid);
    padding: clamp(5rem, 10vw, 9rem) 0;
    overflow: hidden;
}

.edition-bg {
    position: absolute;
    inset: 0;
    background: url('../img/edition/edition-bg.jpg') center/cover no-repeat;
    opacity: 0.25;
}
.edition-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        var(--ink-mid) 0%,
        transparent 30%,
        transparent 70%,
        var(--ink-mid) 100%
    );
}

.edition-container { position: relative; z-index: 1; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 0;
}

.feature-card {
    background: rgba(244,234,214,0.04);
    border: 1px solid rgba(201,168,76,0.15);
    padding: clamp(1.5rem, 2.5vw, 2rem);
    transition: all 0.35s var(--ease-out);
}
.feature-card:hover {
    background: rgba(244,234,214,0.07);
    border-color: rgba(201,168,76,0.35);
    transform: translateY(-4px);
}

.feature-num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    color: var(--gold);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}
.feature-card h3 {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1.5vw, 1.35rem);
    font-weight: 500;
    color: var(--parchment);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.feature-card p {
    font-size: 1.1rem;
    color: var(--parchment-deep);
    line-height: 1.65;
}

/* ════════════════════════════════════════════════════
   GALLERY
   ════════════════════════════════════════════════════ */
#gallery {
    background: var(--ink);
    padding: clamp(5rem, 10vw, 9rem) 0;
}

#gallery .section-header h2 { color: var(--parchment); }
#gallery .section-eyebrow { color: var(--gold); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 0.5rem;
}

.gallery-item.gallery-main {
    grid-column: 1 / -1;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.gallery-item:hover .gallery-ph::after {
    opacity: 0.4;
}

.gallery-ph {
    position: relative;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--ink-soft) 0%, #2a2018 100%);
    border: 1px solid rgba(201,168,76,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.6s var(--ease-out);
}

/* Two separate source photos for the main gallery image (not one image
   cropped responsively) — wide 21:9 shown >768px, narrower 16:9 shown
   ≤768px. Toggled below in RESPONSIVE. */
.gallery-item.gallery-main .gallery-ph-wide { aspect-ratio: 21/9; }
.gallery-item.gallery-main .gallery-ph-narrow { aspect-ratio: 16/9; display: none; }

.gallery-ph:hover { transform: scale(1.02); }

.gallery-ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-ph .ph-inner {
    z-index: 1;
    text-align: center;
}
.gallery-ph .ph-inner p {
    font-size: 1.05rem;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.85rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 65%, transparent 100%);
    font-family: var(--font-label);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--parchment-mid);
    text-shadow: 0 1px 2px rgba(0,0,0,0.95), 0 0 8px rgba(0,0,0,0.9), 0 2px 12px rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* ── GALLERY LIGHTBOX ── */
.lightbox {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
    touch-action: none;
    overscroll-behavior: none;
}
.lightbox[data-open="true"] { opacity: 1; visibility: visible; }

.lightbox-stage {
    position: relative;
    width: min(90vw, 1100px);
    max-height: 84vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    touch-action: none;
    overscroll-behavior: none;
}

.lightbox-frame-wrap {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.lightbox-frame {
    width: 100%;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-frame .gallery-item { cursor: default; }
.lightbox-frame .gallery-caption { display: none; }
.lightbox-frame .tl-image { cursor: default; }
.lightbox-frame .tl-image figcaption { display: none; }

.lightbox-caption {
    margin-top: 1.25rem;
    text-align: center;
    font-family: var(--font-label);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--parchment-mid);
}
.lightbox-counter {
    margin-top: 0.5rem;
    font-family: var(--font-label);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: rgba(244,234,214,0.4);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--parchment);
    background: rgba(244,234,214,0.06);
    border: 1px solid rgba(244,234,214,0.18);
    border-radius: 50%;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(201,168,76,0.18);
    border-color: var(--gold);
    color: var(--gold-light);
}
.lightbox-close { top: -56px; right: 0; }
.lightbox-prev { left: -64px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -64px; top: 50%; transform: translateY(-50%); }

@media (max-width: 1024px) {
    .lightbox-close {
        top: -46px;
        right: 0;
        width: 36px;
        height: 36px;
    }
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        background: rgba(14,12,9,0.55);
        border: 1.5px solid rgba(244,234,214,0.6);
        box-shadow: 0 2px 10px rgba(0,0,0,0.35);
        opacity: 1;
    }
    .lightbox-prev:active,
    .lightbox-next:active {
        background: rgba(201,168,76,0.3);
        border-color: var(--gold);
    }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
}

/* ════════════════════════════════════════════════════
   PRENUMERACIJA
   ════════════════════════════════════════════════════ */
.prenumeracija-section {
    background: var(--parchment);
    padding: clamp(5rem, 10vw, 9rem) 0;
}

.prenumeracija-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}

.prenu-price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.prenu-price .price-amount {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 500;
    color: var(--crimson);
}
.prenu-price .price-label {
    font-family: var(--font-label);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stone);
}

.prenu-lead {
    font-size: clamp(1.25rem, 1.65vw, 1.35rem);
    color: var(--text-mid);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.fundraising-bar {
    margin-bottom: 2.5rem;
    padding: 1.5rem 1.75rem;
    background: var(--parchment-mid);
    border: 1px solid var(--parchment-dk);
}
.fundraising-labels {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-family: var(--font-label);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 0.75rem;
}
.fundraising-raised-amount,
.fundraising-goal-amount {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}
.fundraising-raised-amount { color: var(--crimson); }
.fundraising-goal-amount { color: var(--text); }
.fundraising-track {
    width: 100%;
    height: 10px;
    background: rgba(201,168,76,0.2);
    border-radius: 999px;
    overflow: hidden;
}
.fundraising-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 999px;
    transition: width 1.4s var(--ease-out);
}

.benefits {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.benefit {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.benefit-mark {
    color: var(--gold);
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}
.benefit strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.15rem;
}
.benefit p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin: 0;
}

.form-card {
    background: var(--ink);
    padding: clamp(2rem, 4vw, 3rem);
    border-top: 3px solid var(--gold);
}

.form-card h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--parchment);
    margin-bottom: 0.5rem;
}
.form-card .form-note {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--parchment-mid);
    margin-bottom: 1.75rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-family: var(--font-label);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--parchment-mid);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(244,234,214,0.06);
    border: 1px solid rgba(201,168,76,0.2);
    color: var(--parchment);
    padding: 0.8rem 1rem;
    font-size: 1.15rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: rgba(244,234,214,0.09);
}

.price-total {
    margin-top: 0.6rem;
    font-family: var(--font-label);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--parchment-mid);
}
.price-total-amount {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold-light);
}

.field-error {
    display: none;
    font-size: 0.9rem;
    color: #e05050;
    margin-top: 0.35rem;
}
.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #e05050;
}
.form-group.has-error .field-error { display: block; }

.btn-submit {
    width: 100%;
    background: var(--gold);
    color: var(--ink);
    padding: 1rem 2rem;
    font-family: var(--font-label);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all 0.3s var(--ease-out);
    margin-top: 0.5rem;
}
.btn-submit:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(201,168,76,0.3);
}

.form-success {
    text-align: center;
    padding: 2rem;
    color: var(--parchment);
}
.form-success.hidden { display: none; }

.success-ornament {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}
.form-success h4 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: var(--parchment);
}
.form-success p {
    color: var(--parchment-deep);
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.7;
}

/* ════════════════════════════════════════════════════
   PARTNERS
   ════════════════════════════════════════════════════ */
.partners-section {
    background: var(--parchment-light);
    border-top: 1px solid var(--parchment-dk);
    border-bottom: 1px solid var(--parchment-dk);
    padding: clamp(3.5rem, 6vw, 5rem) 0 clamp(5rem, 9vw, 7rem);
}

.partners-label {
    text-align: center;
    font-family: var(--font-label);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 2rem;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

/* Grayscale by default, full color on hover — works as-is for the Lorem Ipsum
   text placeholders below, and will automatically grayscale/reveal real
   partner logo images too once <img> tags replace .partner-logo-ph (same
   placeholder-swap convention as the rest of the site). */
.partner-logo {
    filter: grayscale(1);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.partner-logo:hover,
.partner-logo:focus-visible {
    filter: grayscale(0);
    opacity: 1;
}
.partner-logo-ph {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    padding: 1.5rem 2.5rem;
    border: 1px solid currentColor;
    white-space: nowrap;
}
.partner-logo:nth-child(odd) .partner-logo-ph { color: var(--gold-dark); }
.partner-logo:nth-child(even) .partner-logo-ph { color: var(--crimson); }

/* ════════════════════════════════════════════════════
   PUBLISHER
   ════════════════════════════════════════════════════ */
.publisher-section {
    background: var(--parchment-mid);
    padding: clamp(3rem, 6vw, 5rem) 0;
    border-top: 1px solid var(--parchment-dk);
}

.publisher-wrapper {
    display: flex;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}

.publisher-logo {
    flex-shrink: 0;
    transition: border-color 0.2s, opacity 0.2s;
}
.publisher-logo:hover { opacity: 0.85; }
.publisher-logo-ph {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--stone);
    letter-spacing: 0.05em;
    padding: 1.5rem 2rem;
    border: 1px solid var(--parchment-dk);
    min-width: 200px;
    text-align: center;
    transition: border-color 0.2s;
}
.publisher-logo:hover .publisher-logo-ph { border-color: var(--gold-dark); }

.publisher-text .publisher-label {
    font-family: var(--font-label);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 0.5rem;
}
.publisher-text h3 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.75rem;
}
.publisher-text p {
    color: var(--text-mid);
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 60ch;
}

/* ════════════════════════════════════════════════════
   SHARE
   ════════════════════════════════════════════════════ */
.share-section {
    background: var(--ink);
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
    text-align: center;
}
.share-section .section-header { margin-bottom: 2rem; }
.share-section .section-lead { font-style: normal; font-size: clamp(1.05rem, 1.5vw, 1.2rem); }

.share-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: var(--parchment);
    background: rgba(244,234,214,0.06);
    border: 1px solid rgba(244,234,214,0.18);
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.share-link svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.share-link:hover,
.share-link:focus-visible {
    background: rgba(201,168,76,0.18);
    border-color: var(--gold);
    color: var(--gold-light);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .share-link { width: 42px; height: 42px; }
    .share-link svg { width: 17px; height: 17px; }
}

/* ════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════ */
#footer {
    background: var(--ink);
    border-top: 1px solid rgba(201,168,76,0.15);
    padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(201,168,76,0.1);
}

.footer-publisher-logo {
    display: block;
    width: min(100%, 420px);
    margin-bottom: 1.5rem;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.footer-publisher-logo:hover { opacity: 1; }
.footer-publisher-logo img {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--parchment);
    margin-bottom: 0.25rem;
}
.footer-subtitle {
    font-family: var(--font-label);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.footer-year-note {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--parchment-deep);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: right;
}
.footer-nav a {
    font-family: var(--font-label);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(244,234,214,0.5);
    transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 1.05rem;
    color: rgba(244,234,214,0.35);
}

.footer-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.lang-dropdown-footer .lang-dropdown-toggle {
    font-size: 0.78rem;
    padding: 0.3rem 0.5rem;
    color: rgba(244,234,214,0.45);
}

/* ════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .book-intro {
        grid-template-columns: 1fr;
    }
    .book-image-col .img-placeholder {
        position: static;
    }
    .book-image-col .book-ph-portrait { display: none; }
    .book-image-col .book-ph-landscape { display: block; }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .timeline-body {
        grid-template-columns: 140px 1fr;
    }
}

@media (max-width: 1150px) {
    /* Nav mobile — switches to hamburger well before nav items
       would overflow/wrap (Cyrillic labels need ~970px; this keeps
       a safety margin across all three languages and scrollbar widths) */
    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: rgba(14,12,9,0.98);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0 2rem;
        gap: 0;
        border-top: 1px solid rgba(201,168,76,0.15);
    }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(201,168,76,0.06);
    }
    .nav-links a::after { display: none; }
    .nav-active-indicator { display: none; }
    .nav-cta-li {
        text-align: left;
        padding: 1rem 1.5rem 0;
    }
    .nav-links a.nav-cta {
        display: inline-block;
        width: auto;
        margin: 0;
        padding: 0.6rem 1.5rem;
    }
    .nav-links li.nav-mobile-utils {
        display: flex;
        justify-content: flex-start;
        padding: 0 1.5rem 1.25rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid rgba(201,168,76,0.15);
    }
    .nav-utils .font-size-control { display: none; }
    .nav-toggle { display: flex; }
    .nav-container { gap: 0.6rem; }
    .nav-brand {
        font-size: 1.3rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .nav-utils { margin-left: auto; flex-shrink: 0; }
}

@media (max-width: 768px) {
    /* Hero */
    .hero-facts { gap: 1rem; flex-wrap: wrap; }
    .hero-actions { gap: 0.75rem; }

    /* Contents */
    .contents-grid { grid-template-columns: 1fr; }

    /* Timeline */
    .timeline-item {
        grid-template-columns: 70px 28px 1fr;
    }
    .timeline-body {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    /* Image stacks above text (source order) on small screens, capped so a
       4:3 box stays a tasteful size instead of stretching edge-to-edge */
    .tl-image { max-width: 420px; margin: 0 auto; }

    /* Features */
    .features-grid { grid-template-columns: 1fr; }

    /* Gallery */
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item.gallery-main .gallery-ph-wide { display: none; }
    .gallery-item.gallery-main .gallery-ph-narrow { display: flex; }

    /* Prenumeracija */
    .prenumeracija-wrapper { grid-template-columns: 1fr; }

    /* Publisher */
    .publisher-wrapper { flex-direction: column; text-align: center; }
    .publisher-text p { margin-inline: auto; }

    /* Footer */
    .footer-top { flex-direction: column; }
    .footer-nav { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    :root { --nav-h: 60px; }

    .hero-title { font-size: clamp(2.4rem, 13vw, 3.4rem); }
    .hero-facts { display: none; }

    .timeline-item { grid-template-columns: 60px 24px 1fr; }
    .timeline-year { font-size: 0.95rem; }

    .contents-grid { gap: 0; }
    .content-card { padding: 1.25rem; }

    .form-card { padding: 1.5rem; }
}
