/* ===========================================
   GALERIE ZLATÉ RYBKY
   Design must not compete with the art.
   =========================================== */

:root {
    --bg: #fbf7f0;          /* teplé krémové pozadí */
    --bg-soft: #f3e9d9;     /* pískové pro sekce */
    --bg-warm: #f7ede0;     /* mezitón */
    --ink: #2b2117;         /* teplá tmavě hnědá (ne studená černá) */
    --ink-soft: #6b5d4d;
    --ink-faint: #857459;   /* ztmaveno (bylo #a99b86 — špatně čitelné na krému) */
    --rule: #e7d9c4;        /* jemné teplé linky */
    --accent: #b8862f;      /* sytější zlatá */
    --accent-deep: #8a6e3c; /* tlumená zlatá (původní) */
    --accent-2: #c4663a;    /* teplý korál/terakota — hravý pop */
    --accent-2-soft: #f0d9cb;
    --gold-soft: #efe0c2;   /* světlé zlaté pozadí akcentů */

    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --gutter: clamp(20px, 4vw, 56px);
    --max:    1480px;
    --letter: 0.16em;
    --letter-wide: 0.32em;
    --radius: 10px;

    /* rybka — silueta pro mask (obarví se background-colorem) */
    --fish: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40'%3E%3Cpath d='M41 20C41 12 33 6 23 6S3 12 3 20s10 14 20 14 18-6 18-14z'/%3E%3Cpath d='M40 20l16-12-4 12 4 12z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; transition: color .35s ease; }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

::selection { background: rgba(196, 102, 58, 0.20); color: var(--ink); }

/* ===== Rybka — sdílená ozdoba (autorská kresba z brand balíčku) =====
   Kresbu NEpřebarvujeme (pravidlo značky) — vždy hotové SVG, na světlém
   podkladu varianta zelena. */
.fish-mark {
    display: inline-block;
    width: 30px;
    height: 19px;
    background: url("/assets/rybky/zelena/rybka-3.svg") center / contain no-repeat;
    flex: none;
}

/* ============= NAVIGATION ============= */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    /* brand zeleň — rámuje stránku spolu se zeleným pásem novinek dole */
    background: var(--zr-zelen, #194A47);
    transition: box-shadow .4s ease;
}
.site-nav.is-scrolled {
    box-shadow: 0 2px 14px rgba(20, 40, 38, 0.35);
}
.nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 22px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
/* logo v nav = reálný SVG artwork (sestava-lista), žádná fontová rekonstrukce */
.brand-img {
    display: block;
    height: 44px;
    width: auto;
}
@media (max-width: 760px) { .brand-img { height: 32px; } }
.site-nav nav ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    align-items: center;      /* ikonka FB v rovině s textovými položkami */
    gap: 36px;
}
.site-nav nav a {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #F7F1E8;
    transition: color .25s ease;
}
.site-nav nav a:hover { color: #FF6A5E; }
.site-nav nav a.nav-fb { color: #F7F1E8; }
.site-nav nav a.nav-fb:hover { color: #FF6A5E; }

.nav-burger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    min-width: 44px;    /* dotykový cíl ≥ 44×44 (Apple HIG) */
    min-height: 44px;
}
.nav-burger span {
    display: block;
    width: 24px;
    height: 1px;
    background: #F7F1E8;
    transition: transform .35s ease, opacity .35s ease;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 760px) {
    .site-nav nav {
        position: fixed;
        inset: 0;
        background: var(--zr-zelen, #194A47);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity .45s ease;
    }
    .site-nav nav.is-open {
        opacity: 1;
        pointer-events: auto;
    }
    .site-nav nav ul {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
    .site-nav nav a {
        font-family: var(--serif);
        font-size: 28px;
        text-transform: none;
        letter-spacing: 0;
        color: #F7F1E8;
    }
    .nav-burger { display: flex; position: relative; z-index: 60; }
}

/* ============= HERO ============= */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px var(--gutter) 80px;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 55% at 50% 38%, var(--bg-warm) 0%, rgba(247,237,224,0) 70%),
        linear-gradient(180deg, var(--gold-soft) 0%, var(--bg) 60%);
}
.hero-inner { max-width: 880px; position: relative; z-index: 2; }
.hero-eyebrow {
    margin: 26px 0 0;
    font-size: 12px;
    letter-spacing: var(--letter-wide);
    text-transform: uppercase;
    color: var(--accent-2);
}
/* Živé hejno na pozadí hera (hejno.js) — rybky uhýbají kurzoru.
   Na mobilech (≤760px) se hejno nespouští; tam plochu oživí statické rybky. */
.hero-hejno {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.42;
}
/* jemné světlé halo pod obsahem, ať logo a text zůstanou čitelné nad hejnem */
.hero-inner::before {
    content: "";
    position: absolute;
    inset: -6% -14%;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(251, 247, 240, 0.94) 55%, rgba(251, 247, 240, 0));
    pointer-events: none;
}
@media (max-width: 760px) {
    .hero::before, .hero::after {
        content: "";
        position: absolute;
        z-index: 1;
        background: center / contain no-repeat;
        opacity: 0.10;
        pointer-events: none;
    }
    .hero::before { width: 130px; height: 82px; left: -4%; top: 14%;
        background-image: url("/assets/rybky/zelena/rybka-1.svg"); animation: zIdle 10s ease-in-out infinite; }
    .hero::after  { width: 100px; height: 63px; right: -4%; bottom: 10%;
        background-image: url("/assets/rybky/zelena/rybka-5.svg"); animation: zBobSoft 7.5s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) { .hero::before, .hero::after { animation: none; } }
/* hejno rybek nad nadpisem */
.hero-fish {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 22px;
}
.hero-fish .hf {
    display: block;
    width: 56px;
    height: auto;
    animation: fish-swim 6.8s cubic-bezier(0.37, 0, 0.63, 1) infinite;
    transform-origin: 50% 60%;
    will-change: transform;
}
.hero-fish .hf-big { width: 88px; animation-duration: 8s; }
.hero-fish .hf:nth-child(1) { animation-delay: -2.3s; animation-duration: 6.2s; margin-bottom: 6px; }
.hero-fish .hf:nth-child(3) { animation-delay: -4.1s; animation-duration: 7.4s; margin-bottom: 10px; }
@keyframes fish-swim {
    0%   { transform: translateY(0)    rotate(0deg); }
    25%  { transform: translateY(-5px) rotate(-3deg); }
    50%  { transform: translateY(0)    rotate(0deg); }
    75%  { transform: translateY(3px)  rotate(2.5deg); }
    100% { transform: translateY(0)    rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) { .hero-fish .hf { animation: none; } }
.hero-title {
    margin: 0;
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(48px, 9vw, 128px);
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.hero-title .accent-word { color: var(--accent); font-style: italic; }
.hero-tagline {
    margin: 14px auto 0;
    max-width: 640px;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(21px, 2.7vw, 30px);
    color: var(--ink-soft);
    line-height: 1.5;
}
.hero-events {
    margin: 38px auto 0;
    max-width: 560px;
}
.hero-events-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 0 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: var(--letter-wide);
    text-transform: uppercase;
    color: var(--accent-deep);
}
.hero-events-title::before,
.hero-events-title::after {
    content: "";
    width: 30px;
    height: 1px;
    background: var(--accent-deep);
    opacity: 0.4;
}
.hero-events ul { list-style: none; margin: 0; padding: 0; }
.hero-events li {
    text-align: center;
    padding: 7px 0;
}
.hero-events li a.hero-events-link { text-decoration: none; }
.hero-events li a.hero-events-link:hover .hero-events-text,
.hero-events li a.hero-events-link:hover .hero-events-when { color: var(--accent-2); }
.hero-events-sep { margin: 0 10px; color: var(--accent); }
.hero-events-ext { margin-left: 7px; font-size: 14px; color: var(--accent-2); }
.hero-events-when {
    display: inline;
    font-family: "Amatic SC", var(--serif);   /* stejný font i velikost jako město */
    font-size: clamp(24px, 2.5vw, 30px);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--ink);
    line-height: 1.3;
}
.hero-events-text {
    display: inline;
    font-family: "Amatic SC", var(--serif);   /* font loga — velké, brandové */
    font-size: clamp(24px, 2.5vw, 30px);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--ink);
}
.hero-scroll {
    display: inline-block;
    margin-top: 40px;
    padding-bottom: 4px;
    font-size: 11px;
    letter-spacing: var(--letter-wide);
    text-transform: uppercase;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--rule);
}
.hero-scroll:hover { color: var(--accent); border-color: var(--accent); }

/* ============= PRUH DĚL (pod hero, jemně se posouvá) ============= */
.dila-strip {
    width: 100%;
    overflow: hidden;
    background: var(--bg-soft);
    border-top: 3px solid var(--accent);
    border-bottom: 3px solid var(--accent);
}
.dila-track {
    display: flex;
    gap: 12px;
    width: max-content;
    padding: 14px 6px;
    animation: dila-scroll 70s linear infinite;
}
.dila-strip:hover .dila-track { animation-play-state: paused; }
.dila-frame {
    flex: none;
    height: clamp(170px, 24vw, 280px);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-warm);
    box-shadow: 0 2px 6px rgba(43,33,23,0.08);
}
.dila-frame img {
    height: 100%;
    width: auto;
    display: block;
}
@keyframes dila-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============= SECTION ============= */
.section {
    padding: 96px var(--gutter);
    max-width: var(--max);
    margin: 0 auto;
}
.section-head {
    text-align: center;
    margin-bottom: 56px;
}
.section-head h2,
.section h2,
.page-head h1 {
    font-family: "Amatic SC", var(--serif);   /* font loga — Regular, ať není moc silný */
    font-weight: 400;
    font-size: clamp(54px, 10vw, 78px);        /* větší, Amatic je opticky úzký (mobil) */
    line-height: 1;
    letter-spacing: 0.02em;
    margin: 10px 0 0;
}
.eyebrow {
    margin: 0;
    /* text kickeru se nezobrazuje (zůstává pro čtečky) — viditelná je jen rybka */
    font-size: 0;
    letter-spacing: 0;
    color: var(--accent-2);
    display: inline-flex;
    align-items: center;
}
.eyebrow::before {
    content: "";
    width: 65px;
    height: 41px;
    background: url("/assets/rybky/zelena/rybka-5.svg") center / contain no-repeat;
    animation: fish-sway 5.6s cubic-bezier(0.37, 0, 0.63, 1) infinite;
    transform-origin: 55% 55%;
    will-change: transform;
}
/* Každá sekce má svou rybku a SVŮJ druh pohybu (animace z brand knihovny
   rybky-animace.css — tělové smyčky, pomalé, dle pravidel značky). */
#o-galerii   .eyebrow::before { background-image: url("/assets/rybky/zelena/rybka-1.svg");
    animation: zIdle 7s ease-in-out infinite; }                    /* pluje na místě */
#zakladatele .eyebrow::before { background-image: url("/assets/rybky/zelena/rybka-2.svg");
    animation: zTailWag 3.8s ease-in-out infinite; }               /* vrtí ocasem */
#sbirka      .eyebrow::before { background-image: url("/assets/rybky/zelena/rybka-4.svg");
    animation: zBob 4.6s ease-in-out infinite; }                   /* houpe se */
#spratele    .eyebrow::before { background-image: url("/assets/rybky/zelena/rybka-6.svg");
    animation: zFlipTurn 9s ease-in-out infinite; }                /* občas se otočí */
#kontakt     .eyebrow::before { background-image: url("/assets/rybky/zelena/rybka-7.svg");
    animation: zUpstream 7.5s ease-in-out infinite; }              /* pluje proti proudu */
.newsletter  .eyebrow::before { background-image: url("/assets/rybky/zelena/rybka-8.svg");
    animation: zBreathe 4.8s ease-in-out infinite; }               /* dýchá */
.page-head   .eyebrow::before { background-image: url("/assets/rybky/zelena/rybka-4.svg");
    animation: zIdle 6.4s ease-in-out infinite; }
/* jemné plavání na místě — plynulé kyvadlo (symetrické fáze, sinusový easing),
   pomalé a s náklonem do ±4° dle pravidel značky */
@keyframes fish-sway {
    0%   { transform: translateY(0)      rotate(0deg); }
    25%  { transform: translateY(-2.5px) rotate(-4deg); }
    50%  { transform: translateY(0)      rotate(0deg); }
    75%  { transform: translateY(2px)    rotate(3deg); }
    100% { transform: translateY(0)      rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) { .eyebrow::before { animation: none; } }
.section-head .eyebrow { justify-content: center; }

/* Rybka u nadpisu Kontakt — plave a občas vesele poskočí a otočí se */
.contact .eyebrow::before {
    transform-origin: 60% 50%;
    animation: kontakt-fish 3.6s ease-in-out infinite;
}
.contact .section-head:hover .eyebrow::before {
    animation-duration: 1.1s;   /* po najetí myší plave splašeně */
}
@keyframes kontakt-fish {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    8%   { transform: translateY(-3px) rotate(-14deg); }
    18%  { transform: translateY(0) rotate(0deg); }
    28%  { transform: translateY(3px) rotate(12deg); }
    38%  { transform: translateY(0) rotate(0deg); }
    /* veselý poskok a otočka */
    52%  { transform: translateY(-7px) rotate(-18deg) scale(1.18); }
    62%  { transform: translateY(-8px) rotateY(180deg) rotate(8deg) scale(1.18); }
    74%  { transform: translateY(0) rotateY(180deg) rotate(0deg); }
    86%  { transform: translateY(-2px) rotateY(180deg) rotate(-8deg); }
    96%  { transform: translateY(0) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
    .contact .eyebrow::before { animation: none; }
}
.dim {
    margin: 8px 0 0;
    color: var(--ink-faint);
    font-size: 13px;
    letter-spacing: 0.02em;
}

/* ============= YEAR TABS ============= */
.year-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
    margin-bottom: 48px;
}
.year-tab {
    padding: 8px 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: var(--letter);
    color: var(--ink-soft);
    border-radius: 100px;
    transition: color .3s ease, background .3s ease;
}
.year-tab:hover { color: var(--ink); }
.year-tab.is-active {
    background: var(--ink);
    color: var(--bg);
}
.tab-count {
    margin-left: 6px;
    opacity: 0.5;
    font-size: 10px;
}

/* ============= MASONRY ============= */
.masonry {
    width: 100%;
}
.masonry .tile {
    display: block;
    break-inside: avoid;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-soft);
    box-shadow: 0 1px 2px rgba(43,33,23,0.04);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .9s ease, transform .9s ease, box-shadow .4s ease;
}
.masonry .tile.is-visible {
    opacity: 1;
    transform: none;
}
.masonry .tile img {
    width: 100%;
    height: auto;
    transition: transform 1s ease;
}
.masonry .tile:hover {
    box-shadow: 0 10px 28px rgba(43,33,23,0.16);
}
.masonry .tile:hover img {
    transform: scale(1.05);
}
.tile-meta {
    position: absolute;
    inset: auto 0 0 0;
    padding: 18px 16px 14px;
    font-size: 11px;
    letter-spacing: var(--letter);
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(180deg, transparent 0%, rgba(74,46,26,0.78) 100%);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .4s ease, transform .4s ease;
}
.masonry .tile:hover .tile-meta { opacity: 1; transform: none; }

.empty-state {
    text-align: center;
    padding: 80px 0;
    color: var(--ink-faint);
    font-style: italic;
    font-family: var(--serif);
    font-size: 20px;
}

/* ============= ABOUT ============= */
.about {
    background: var(--bg-soft);
    max-width: none;
}
.about-grid {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(320px, 1.25fr) 2fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}
/* fotka větší, s lehkou zlatou linkou (jako oddělovače webu) */
.about-portrait { display: inline-block; max-width: 600px; }
.about-portrait img {
    width: 100%;
    border: 1px solid var(--accent);
    outline: 1px solid rgba(184, 134, 47, 0.35);
    outline-offset: 6px;
    border-radius: 2px;
    box-shadow: 0 12px 30px rgba(43,33,23,0.12);
    display: block;
}
.about-text h2 { margin-top: 8px; }
.about-text p {
    font-family: var(--serif);
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.8;
    color: var(--ink);
    margin: 0 0 1em;
}
@media (max-width: 760px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-portrait { display: flex; justify-content: center; }
}

/* ============= CONTACT ============= */
.contact {
    background: var(--bg-soft);
    max-width: none;
    padding: 96px var(--gutter) 110px;
}
.contact .section-head { margin-bottom: 44px; }
.contact-inner { max-width: 760px; margin: 0 auto; }  /* generic — používá i stránka Autoři */

.contact-card {
    max-width: 960px;
    margin: 0 auto;
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(43,33,23,0.10);
    overflow: hidden;
}
.contact-card-top {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
}
.contact-map {
    position: relative;
    border-top: 1px solid var(--rule);
    line-height: 0;
}
.contact-map iframe {
    width: 100%;
    height: 320px;
    border: 0;
    display: block;
    pointer-events: none;        /* mapa je jen náhled — nezoomuje a netáhne se scrollem */
    /* ztlumení palety do teplého sepia tónu, ať ladí s krémovou */
    filter: grayscale(0.28) sepia(0.32) saturate(0.62) brightness(1.05) contrast(0.9);
    transition: filter .4s ease;
}
/* klikací překryv — otevře plnou mapu v nové záložce */
.contact-map-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: pointer;
}
.contact-map:hover iframe {
    /* po najetí myší plná barva (lepší orientace při hledání cesty) */
    filter: none;
}
.contact-col { padding: clamp(28px, 3.6vw, 46px); }
.contact-col--hours {
    background: var(--bg-warm);
    border-left: 1px solid var(--rule);
}
.ccol-title {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 22px;
    color: var(--ink);
}
.contact-address {
    font-family: var(--serif);
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 500;
    line-height: 1.32;
    color: var(--ink);
    margin: 0 0 12px;
}
.map-link {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--accent);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease;
}
.map-link:hover { border-bottom-color: var(--accent); }

.contact-rows {
    margin-top: 28px;
    padding-top: 8px;
    border-top: 1px solid var(--rule);
    display: flex;
    flex-direction: column;
}
.crow {
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: baseline;
    gap: 4px 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--rule);
}
.crow:last-child { border-bottom: 0; }
.crow-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: var(--letter);
    text-transform: uppercase;
    color: var(--ink-soft);
}
.crow-val {
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 500;
    color: var(--ink);
}
a.crow-val:hover { color: var(--accent); }
.crow-phones { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.crow-phones a { font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--ink); }
.crow-phones a:hover { color: var(--accent); }
@media (max-width: 420px) {
    .crow { grid-template-columns: 1fr; gap: 2px; }
}

.hours-note {
    margin: 22px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink-soft);
}

/* tlačítko „Uložit kontakt do telefonu" (vCard) — decentní, neruší kartu */
.vcard-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 24px;
    padding: 11px 20px;
    background: transparent;
    color: var(--ink);
    font-weight: 500;
    border: 1px solid rgba(43, 33, 23, 0.30);
    border-radius: 100px;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.vcard-btn .fish-mark { width: 22px; height: 14px; }
.vcard-btn:hover {
    color: var(--accent-deep);
    border-color: var(--accent);
    background: var(--gold-soft);
}
@media (max-width: 720px) {
    .contact-card-top { grid-template-columns: 1fr; }
    .contact-col--hours { border-left: 0; border-top: 1px solid var(--rule); }
    .contact-map iframe { height: 260px; }
}

/* ============= EXHIBITION ============= */
.page-head {
    max-width: calc(1080px + 2 * var(--gutter));  /* vnitřní obsah 1080 = zarovnáno s fotkou/biem */
    margin: 0 auto;
    padding: 132px var(--gutter) 22px;            /* menší mezera k biografii */
}
.back-link {
    display: inline-block;
    margin-bottom: 32px;
    font-size: 11px;
    letter-spacing: var(--letter-wide);
    text-transform: uppercase;
    color: var(--ink-faint);
}
.back-link:hover { color: var(--accent); }

/* ============= FOOTER ============= */
.site-foot {
    background: var(--bg-soft);
    border-top: 1px solid var(--rule);
    margin-top: 0;
}
.foot-top {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(48px, 6vw, 80px) var(--gutter) clamp(36px, 4vw, 56px);
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: clamp(28px, 4vw, 64px);
}
.foot-brand { max-width: 360px; }
.foot-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-size: 23px;
    color: var(--ink);
    margin-bottom: 14px;
}
.foot-name .fish-mark { width: 28px; height: 18px; }
.foot-name:hover { color: var(--accent); }
.foot-tagline {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ink-soft);
    margin: 0 0 20px;
}
.foot-social { display: flex; gap: 18px; }
.foot-social a {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: var(--letter);
    color: var(--accent-deep);
    border-bottom: 1px solid var(--rule);
    padding-bottom: 2px;
}
.foot-social a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.foot-h {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: var(--letter);
    text-transform: uppercase;
    color: var(--accent-deep);
    margin: 0 0 16px;
}
/* Jednotný řádkový rytmus footer sloupců — ať řádky sedí ve stejné rovině napříč */
.foot-col .foot-link,
.foot-addr {
    display: block;
    font-size: 15px;
    line-height: 1.9;
    color: var(--ink-soft);
    margin: 0;
}
a.foot-link:hover { color: var(--accent); }
.foot-addr { margin-bottom: 0; }
.foot-col .map-link { line-height: 1.9; margin: 0; }

.foot-hours {
    list-style: none;
    margin: 0;
    padding: 0;
}
.foot-hours li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--ink-soft);
    padding: 0;
}
.foot-hours li span:first-child { color: var(--ink); }

.foot-bottom {
    max-width: var(--max);
    margin: 0 auto;
    padding: 22px var(--gutter);
    border-top: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: var(--letter-wide);
    color: var(--ink-faint);
}
.foot-bottom a { color: var(--ink-faint); }
.foot-bottom a:hover { color: var(--accent); }

@media (max-width: 880px) {
    .foot-top { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
    .foot-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 520px) {
    .foot-top { grid-template-columns: 1fr; }
    .foot-bottom { justify-content: center; text-align: center; }
}

/* ============= GLIGHTBOX OVERRIDES ============= */
.glightbox-clean .gslide-description { background: transparent; }
.glightbox-clean .gdesc-inner { padding: 16px 20px; }
.glightbox-clean .gslide-title {
    font-family: var(--serif);
    font-weight: 400;
}
.glightbox-clean .gnext, .glightbox-clean .gprev, .glightbox-clean .gclose {
    background: transparent;
}
.gbtn svg { fill: #fff; }

/* ============= CATEGORY TABS (galerie) ============= */
.cat-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
    margin-bottom: 48px;
}
.cat-tab {
    padding: 9px 18px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--letter);
    color: var(--ink);
    background: transparent;
    border: 1px solid rgba(43, 33, 23, 0.30);
    border-radius: 100px;
    transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.cat-tab:hover {
    border-color: var(--ink);
    background: var(--gold-soft);
    transform: translateY(-2px);
}
.cat-tab.is-active {
    background: var(--zr-zelen, #194A47);
    border-color: var(--zr-zelen, #194A47);
    color: #F7F1E8;
    box-shadow: 0 4px 14px rgba(25, 74, 71, 0.30);
}
.cat-tab.is-active:hover { background: var(--zr-zelen, #194A47); transform: translateY(-2px); }
.tab-count { margin-left: 6px; opacity: .75; font-size: 11px; }

/* ============= OTEVÍRACÍ DOBA (v kontaktní kartě) ============= */
.hours-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hours-list li {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 500;
}
.hours-list li:last-child { border-bottom: 0; }
.hours-day { color: var(--ink); }
.hours-time { color: var(--ink); }

/* ============= AUTOŘI — teaser na home ============= */
.author-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 4vw, 48px);
    max-width: 980px;
    margin: 0 auto;
}
.author-card { text-align: center; }
.author-card-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-soft);
}
.author-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.author-card h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 24px;
    margin: 0 0 6px;
}
.author-role {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: var(--letter);
    color: var(--ink-faint);
    margin: 0;
}
/* ===== Zakladatelé — větší klikací karty na home ===== */
.founder-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 4vw, 56px);
    max-width: 1080px;
    margin: 0 auto;
}
.founder-card {
    display: block;
    text-align: center;
    padding: 30px 22px 26px;
    border: 1px solid var(--rule);
    border-radius: 18px;
    background: var(--bg);
    box-shadow: 0 10px 30px rgba(43,33,23,0.06);
    color: inherit;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.founder-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(43,33,23,0.14);
    border-color: var(--gold-soft);
    color: inherit;
}
.founder-card-photo {
    width: clamp(180px, 22vw, 230px);
    height: clamp(180px, 22vw, 230px);
    margin: 0 auto 22px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-soft);
    border: 3px solid var(--gold-soft);
}
.founder-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.founder-card:hover .founder-card-photo img { transform: scale(1.05); }
.founder-card-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.founder-card-noimg .fish-mark { width: 56px; height: 35px; }
.founder-card h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(24px, 2.4vw, 30px);
    margin: 0 0 6px;
}
.founder-card .author-role { margin-bottom: 14px; }
.founder-card-cta {
    display: inline-block;
    font-size: 11px;
    letter-spacing: var(--letter);
    text-transform: uppercase;
    color: var(--accent-deep);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, color .25s ease;
}
.founder-card:hover .founder-card-cta { border-bottom-color: var(--accent); color: var(--accent); }
@media (max-width: 760px) {
    .founder-cards { grid-template-columns: 1fr; gap: 32px; max-width: 360px; }
}

/* ===== Spřátelení autoři na home ===== */
.friends-home .friend-cards { max-width: var(--max); margin-left: auto; margin-right: auto; }

/* ===== Podstránka zakladatele ===== */
.author-role--lg { font-size: 13px; color: var(--accent-deep); margin-top: 8px; }
.author-intro { padding-top: 20px; }         /* navazuje na hlavičku, žádná obří mezera */
.author-intro-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
    max-width: 1080px;
    margin: 0 auto;
}
.author-intro-photo {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-soft);
    box-shadow: 0 14px 40px rgba(43,33,23,0.10);
    position: sticky;
    top: 100px;
}
.author-intro-grid--nophoto { grid-template-columns: 1fr; max-width: 760px; }
.author-intro-photo img { width: 100%; display: block; }
.author-intro-text > p { font-size: 17px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 18px; text-align: left; }
/* === Výstavy — horizontální dynamická timeline ============================= */
.exh-section {
    --exh-pad: clamp(24px, calc((100vw - 1040px) / 2), 200px);
    --exh-axis: 70px;            /* svislá pozice osy uvnitř .exh-viewport (JS ji upřesní) */
    max-width: none; margin: 0 auto; padding: 56px 0 8px;
}
.exh-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    margin: 0 0 38px; padding: 0 max(var(--gutter), var(--exh-pad));
}
.exh-title {
    margin: 0; font-family: "Amatic SC", var(--serif); font-weight: 700;
    font-size: clamp(30px, 4vw, 40px); line-height: 1; color: var(--ink);
}
.exh-hint { font-size: 11px; letter-spacing: var(--letter); text-transform: uppercase; color: var(--ink-faint); margin: 0; white-space: nowrap; }

.exh-viewport { position: relative; }

.exh-timeline {
    overflow-x: auto; overflow-y: hidden;
    /* bez scroll-snap — plynulý posun kvůli lupě a klidnému autoposunu */
    -webkit-overflow-scrolling: touch;
    padding: 6px 0 16px; cursor: grab;
    scrollbar-width: none;
    /* fade na OBOU krajích → osa mizí „do ztracena" vlevo i vpravo */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 84px, #000 calc(100% - 84px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 84px, #000 calc(100% - 84px), transparent 100%);
}
.exh-timeline::-webkit-scrollbar { height: 0; }
.exh-timeline.is-dragging { cursor: grabbing; }
.exh-timeline:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.exh-track {
    position: relative; display: flex; gap: clamp(26px, 3.5vw, 52px);
    width: max-content;
    /* přesah osy vlevo i vpravo za krajní uzly (osa pokračuje „do nikam") */
    padding: 0 clamp(80px, 14vw, 240px) 0 max(var(--gutter), var(--exh-pad));
}
/* zlatá osa napříč body — fade na obou koncích, přesahuje krajní uzly */
.exh-track::before {
    content: ""; position: absolute;
    left: calc(-1 * clamp(120px, 20vw, 360px)); right: 0; top: 64px; height: 2px;
    background: linear-gradient(90deg,
        transparent 0, var(--accent-deep) clamp(120px, 20vw, 360px),
        var(--accent) 70%, transparent 100%);
    opacity: .6;
}

.exh-node {
    position: relative; flex: 0 0 auto; min-width: 188px; max-width: 300px;
    display: grid; grid-template-rows: 54px 22px auto; align-content: start;
    transform-origin: 7px 65px;                       /* škáluj kolem bodu na ose */
    /* lupa: --s (0–1 blízkost středu) řídí zvětšení; JS ji nastavuje za scrollu */
    --s: 0;
    transform: translateY(var(--rise, 14px)) scale(calc(1 + 0.16 * var(--s)));
    opacity: calc(0.55 + 0.45 * var(--in, 0));
    transition: transform .35s ease, opacity .5s ease;
}
.exh-node.is-in { --rise: 0px; --in: 1; }

.exh-year {
    align-self: end; margin: 0;
    font-family: "Amatic SC", var(--serif); font-weight: 700; font-size: 42px; line-height: 1;
    color: var(--accent-deep); transition: color .25s ease;
}
.exh-dot {
    align-self: center; justify-self: start; margin: 0;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--accent); border: 3px solid var(--bg);
    box-shadow: 0 0 0 1px var(--accent-deep); position: relative; z-index: 1;
    transition: transform .25s ease, background .25s ease;
}
.exh-places { list-style: none; margin: 6px 0 0; padding: 0; }
.exh-places li {
    font-family: var(--serif); font-size: 17.5px; line-height: 1.45; color: var(--ink); padding: 6px 0;
}
.exh-places li + li { border-top: 1px solid var(--rule); }

/* uzel nejblíž středu (lupa) — zvýrazni rok + bod */
.exh-node:hover .exh-dot,
.exh-node:focus-within .exh-dot,
.exh-node[data-focus] .exh-dot { transform: scale(1.4); background: var(--accent-2); }
.exh-node:hover .exh-year,
.exh-node:focus-within .exh-year,
.exh-node[data-focus] .exh-year { color: var(--accent-2); }

/* rybka plující po ose — autorská vyplněná rybka (plné tělo, osa neprosvítá) */
.exh-fish {
    position: absolute; left: 0; top: var(--exh-axis);
    width: 52px; height: 34px; margin-top: -17px;
    background: url("/assets/rybky/samot-plna/rybka-2.svg") center / contain no-repeat;
    transform: translateX(0) scaleX(1);
    will-change: transform; pointer-events: none; z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(43,33,23,0.14));
    animation: exhFishBob 2.6s ease-in-out infinite;
}
@keyframes exhFishBob {
    0%, 100% { margin-top: -17px; }
    50%      { margin-top: -22px; }
}

@media (prefers-reduced-motion: reduce) {
    .exh-node { --rise: 0px; --in: 1; transition: none; }
    .exh-fish { animation: none; }
}
@media (max-width: 760px) {
    .exh-section { padding-top: 40px; }
    .exh-year { font-size: 36px; }
    .exh-node { min-width: 166px; }
    .exh-fish { display: none; }                       /* na mobilu bez rybky (swipe je přirozený) */
}
.author-contact { background: var(--bg-soft); max-width: none; padding: 72px var(--gutter) 90px; }
.author-contact-rows { margin: 18px 0; font-family: var(--serif); font-size: 19px; color: var(--ink); }
.author-contact-rows p { margin: 4px 0; }
.author-contact-rows a:hover { color: var(--accent); }
@media (max-width: 760px) {
    .page-head { padding: 104px var(--gutter) 14px; }
    .author-intro { padding-top: 10px; padding-bottom: 40px; }
    .author-intro-grid { grid-template-columns: 1fr; }
    .author-intro-photo { position: static; max-width: 320px; margin: 0 auto; }
}

.teaser-cta { text-align: center; margin-top: 56px; }
.btn-line {
    display: inline-block;
    padding-bottom: 4px;
    font-size: 11px;
    letter-spacing: var(--letter-wide);
    text-transform: uppercase;
    color: var(--ink);
    border-bottom: 1px solid var(--accent);
}
.btn-line:hover { color: var(--accent); }
@media (max-width: 700px) {
    .author-cards { grid-template-columns: 1fr; gap: 40px; }
}

/* ============= STRÁNKA AUTOŘI ============= */
.page-lead {
    max-width: 720px;
    margin: 20px 0 0;
    font-family: var(--serif);
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.6;
    color: var(--ink-soft);
}
.page-lead-sm {
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.7;
    color: var(--ink-soft);
    margin: 0 0 32px;
}

.medailons {
    display: flex;
    flex-direction: column;
    gap: 64px;
    max-width: var(--max);
    margin: 0 auto;
}
.medailon {
    display: grid;
    grid-template-columns: minmax(200px, 320px) 1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}
.medailon:nth-child(even) { direction: rtl; }
.medailon:nth-child(even) .medailon-text { direction: ltr; }
.medailon:nth-child(even) .medailon-photo { direction: ltr; }
.medailon-photo {
    background: var(--bg-soft);
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 10px 28px rgba(43,33,23,0.12);
}
.medailon-photo img { width: 100%; height: 100%; object-fit: cover; }
.medailon-text h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(28px, 3.4vw, 40px);
    margin: 0 0 4px;
}
.medailon-text > p {
    font-family: var(--serif);
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.75;
    color: var(--ink);
    margin: 16px 0;
}
.tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 16px 0;
}
.tags li {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: var(--letter);
    color: var(--ink-soft);
    background: var(--bg-soft);
    padding: 5px 12px;
    border-radius: 100px;
}
.author-links { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 20px; }
.author-links a {
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--accent);
    border-bottom: 1px solid transparent;
}
.author-links a:hover { border-bottom-color: var(--accent); }
@media (max-width: 700px) {
    .medailon, .medailon:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
    .medailon-photo { max-height: 320px; }
}

.authors-friends { background: var(--bg-soft); max-width: none; }
.authors-friends > .section-head,
.authors-friends > .friends-group-title,
.authors-friends > .friend-cards { max-width: var(--max); margin-left: auto; margin-right: auto; }
.friends-group-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 26px;
    margin: 48px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rule);
}
.friend-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 16px;
}
.friend-card {
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.friend-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(43,33,23,0.12);
    border-color: var(--accent-2-soft);
}
.friend-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.friend-card:hover .friend-photo img { transform: scale(1.05); }
.friend-photo img { transition: transform .8s ease; }
.friend-photo img { width: 100%; height: 100%; object-fit: cover; }
.friend-body { padding: 22px 24px 26px; }
.friend-body h4 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 22px;
    margin: 0 0 4px;
}
.friend-field {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: var(--letter);
    color: var(--accent);
    margin: 0 0 12px;
}
.friend-note {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0 0 14px;
}

.authors-note { text-align: center; }
.authors-note .contact-inner { max-width: 720px; }
.pending-note {
    margin: 32px 0;
    font-size: 14px;
    line-height: 1.8;
    color: var(--ink-faint);
}
.pending-note .meta-label {
    font-size: 10px;
    letter-spacing: var(--letter-wide);
    text-transform: uppercase;
}

/* ============= REDUCED MOTION ============= */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
    .masonry .tile { opacity: 1; transform: none; }
}

/* ============= MOBILNÍ DOTYKOVÉ CÍLE ============= */
@media (max-width: 600px) {
    /* filtr kategorií — vyšší tlačítka pro pohodlný dotek */
    .cat-tab { padding: 12px 18px; }
    /* textové CTA odkazy — větší klikací plocha */
    .hero-scroll, .btn-line { padding: 14px 8px; }
    .map-link { padding: 8px 0; }
    /* telefony, e-mail v kontaktu */
    .crow-phones a, a.crow-val { padding: 4px 0; }
    /* patička — odkazy s prostorem na dotek */
    .foot-link { padding: 7px 0; }
    .foot-social a { display: inline-block; padding: 8px 0; }
    .foot-bottom a { display: inline-block; padding: 6px 2px; }
    .foot-nav a { padding: 7px 0; }
}

/* ============= NEWSLETTER (odběr novinek) ============= */
.newsletter {
    /* tmavě zelený brand pás (zeleň glazury) — jasně se oddělí od krémové stránky */
    background: var(--zr-zelen, #194A47);
    color: #F7F1E8;
    padding: clamp(64px, 8vw, 104px) var(--gutter);
    text-align: center;
}
.newsletter-inner { max-width: 620px; margin: 0 auto; }
.newsletter h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(40px, 5.4vw, 66px);
    margin: 10px 0 14px;
    color: #F7F1E8;
}
.newsletter .dim { margin: 0 auto 28px; max-width: 460px; color: rgba(247, 241, 232, 0.78); font-size: 15px; }
/* na tmavém podkladu VŽDY inverzní rybka (pravidlo značky) */
.newsletter .eyebrow::before {
    background-image: url("/assets/rybky/inverz/rybka-8.svg");
    animation: zBob 4.2s ease-in-out infinite;   /* viditelné houpání (zBreathe byl moc jemný) */
}
/* dekorační rybky v zelené ploše — u krajů, tlumené, ať nekonkurují textu */
.newsletter { position: relative; overflow: hidden; }
.newsletter-inner { position: relative; z-index: 2; }
.newsletter::before,
.newsletter::after {
    content: "";
    position: absolute;
    background: center / contain no-repeat;
    opacity: 0.17;
    pointer-events: none;
}
.newsletter::before {
    width: clamp(110px, 13vw, 190px);
    height: clamp(70px, 8.2vw, 120px);
    left: 6%;
    bottom: 14%;
    background-image: url("/assets/rybky/inverz/rybka-6.svg");
    animation: zIdle 9s ease-in-out infinite;
}
.newsletter::after {
    width: clamp(90px, 10vw, 150px);
    height: clamp(56px, 6.3vw, 95px);
    right: 7%;
    top: 16%;
    background-image: url("/assets/rybky/inverz/rybka-3.svg");
    animation: zBobSoft 7s ease-in-out infinite;
}
@media (max-width: 700px) {
    /* na mobilu by kolidovaly s obsahem — decentně do rohů */
    .newsletter::before { left: -3%; bottom: 4%; opacity: 0.12; }
    .newsletter::after  { right: -3%; top: 3%;  opacity: 0.12; }
}
@media (prefers-reduced-motion: reduce) {
    .newsletter::before, .newsletter::after, .newsletter .eyebrow::before { animation: none; }
}
.newsletter-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; flex-wrap: nowrap; }
.newsletter-form button { white-space: nowrap; flex: 0 0 auto; }
.newsletter-form input[type=email] {
    flex: 1 1 240px;
    padding: 14px 18px;
    border: 1px solid rgba(247, 241, 232, 0.35);
    background: #F7F1E8;
    color: var(--zr-zelen, #194A47);
    font-family: var(--sans);
    font-size: 16px;   /* min 16px — jinak iOS při fokusu zoomuje */
    color: var(--ink);
    border-radius: 100px;
}
.newsletter-form input[type=email]:focus { outline: none; border-color: #FF6A5E; }
.newsletter-form button {
    flex: 0 0 auto;
    padding: 14px 26px;
    background: #FF6A5E;   /* korál — akcent na tmavém podkladu (brand) */
    color: #194A47;
    font-weight: 600;
    border-radius: 100px;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background .25s ease, transform .25s ease;
}
.newsletter-form button:hover { background: #ff8177; transform: translateY(-1px); }
.nl-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.newsletter-msg { margin: 0 0 16px; font-size: 14px; color: rgba(247, 241, 232, 0.85); }
.newsletter-msg.is-ok { color: #9fd8b7; }
.newsletter-msg.is-err { color: #ffb0a8; }
@media (max-width: 480px) {
    .newsletter-form { flex-direction: column; }
    .newsletter-form input[type=email], .newsletter-form button { width: 100%; }
}

/* spřátelený autor — klikací karta na jeho podstránku */
.friend-card { color: inherit; }
.friend-cta {
    display: inline-block;
    margin-top: 12px;
    font-size: 11px;
    letter-spacing: var(--letter);
    text-transform: uppercase;
    color: var(--accent-deep);
    transition: color .25s ease;
}
.friend-card:hover .friend-cta { color: var(--accent); }

/* ================================================
   TYPOGRAFIE — zalamování a nezlomitelné prvky
   (doplňuje serverový helper typo() v helpers.php)
   ================================================ */
/* Nadpisy — rovnoměrné zalomení, poslední slovo nezůstane samo */
h1, h2, h3, h4, h5, h6 { text-wrap: balance; overflow-wrap: break-word; }
/* Odstavce — hezčí zalomení (eliminuje osamělá slova na řádku) */
p { text-wrap: pretty; }
p, li, dd, td, th, .friend-note, .author-role { overflow-wrap: break-word; }

/* Nikdy nezlomit: telefon, e-mail, datum/čas, dny, název firmy, utility .nowrap */
a[href^="tel"], a[href^="mailto"],
.crow-phones a, .hours-time, .hours-day,
.foot-hours span, .nowrap, .company-name, .phone, .date {
  white-space: nowrap;
}
a[href^="mailto"] { word-break: keep-all; }

/* Výpis jmen (spřátelení autoři) — klidná přehledná mřížka, jen jména */
.name-list {
    list-style: none;
    margin: 18px auto 0;
    padding: 34px 24px;
    max-width: 820px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px 40px;
    align-items: center;              /* buňky svisle na střed — řady drží linii */
    border-top: 1px solid var(--rule);
}
.name-list li {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink);
    text-align: center;
    text-wrap: balance;               /* dlouhá jména se zlomí vyváženě */
}
@media (max-width: 520px) {
    .name-list { grid-template-columns: 1fr; gap: 13px; padding: 26px 12px; }
}

/* ── Logo / logotyp — Amatic SC (font značky), jen na logo a velké nadpisy ── */
@font-face {
    font-family: "Amatic SC";
    src: url("/assets/fonts/AmaticSC-Bold.ttf") format("truetype");
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Amatic SC";
    src: url("/assets/fonts/AmaticSC-Regular.ttf") format("truetype");
    font-weight: 400; font-style: normal; font-display: swap;
}
:root { --zr-zelen: #194A47; --zr-cervena: #F50101; --zr-terakota: #A8552F; }
/* (logo v nav je SVG .brand-img — viz sekce NAVIGATION; Amatic SC k dispozici pro velké nadpisy) */

/* logo v patičce */
.foot-logo { display: block; height: 30px; width: auto; }

/* mikrointerakce: rybka na tlačítku vizitky plave při najetí */
.vcard-btn .fish-mark { transform-origin: 55% 55%; }
.vcard-btn:hover .fish-mark { animation: fish-sway 1.8s cubic-bezier(0.37, 0, 0.63, 1) infinite; }
@media (prefers-reduced-motion: reduce) { .vcard-btn:hover .fish-mark { animation: none; } }

/* Hero: animované logo (rám + rybky + nápis) */
.hero-logo { display: flex; justify-content: center; margin-bottom: 6px; }
.hero-logo svg, .hero-logo img {
    width: clamp(280px, 32vw, 400px);
    height: auto;
    display: block;
}
.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;
}

/* tiché plavání rybek v logu po dokončení nájezdu (navazuje z identity) */
@keyframes zr-logo-idle {
    0%   { transform: translateY(0)    rotate(0deg); }
    25%  { transform: translateY(-2px) rotate(-2.5deg); }
    50%  { transform: translateY(0)    rotate(0deg); }
    75%  { transform: translateY(1.5px) rotate(2deg); }
    100% { transform: translateY(0)    rotate(0deg); }
}

/* nadpis novinek stejným písmem jako ostatní sekce (font loga) */
.newsletter h2 {
    font-family: "Amatic SC", var(--serif);
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* šťouchnutí do rybky v logu kurzorem — rychlé zavrtění, návrat do plavání */
@keyframes zr-logo-poke {
    0%   { transform: translateY(0)    rotate(0deg)  scale(1); }
    22%  { transform: translateY(-4px) rotate(-8deg) scale(1.06); }
    48%  { transform: translateY(1px)  rotate(6deg)  scale(1.03); }
    72%  { transform: translateY(-1px) rotate(-3deg) scale(1.01); }
    100% { transform: translateY(0)    rotate(0deg)  scale(1); }
}

/* kicker = jen rybka; přebíjí kontextová pravidla typu .about-text p */
p.eyebrow { font-size: 0; letter-spacing: 0; }

/* další tiché rybky v zeleném pásu — různé velikosti, statické, u krajů */
.nl-fish { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.nl-fish span { position: absolute; background: center / contain no-repeat; opacity: 0.13; }
.nl-fish .nf1 { width: 200px; height: 126px; left: 16%; top: 8%;
    background-image: url("/assets/rybky/inverz/rybka-1.svg"); transform: rotate(-6deg); }
.nl-fish .nf2 { width: 90px;  height: 57px;  left: 4%;  top: 46%;
    background-image: url("/assets/rybky/inverz/rybka-4.svg"); transform: rotate(4deg); opacity: 0.10; }
.nl-fish .nf3 { width: 130px; height: 82px;  right: 20%; bottom: 10%;
    background-image: url("/assets/rybky/inverz/rybka-7.svg"); transform: rotate(5deg); }
.nl-fish .nf4 { width: 70px;  height: 44px;  right: 5%;  bottom: 42%;
    background-image: url("/assets/rybky/inverz/rybka-2.svg"); transform: rotate(-4deg); opacity: 0.10; }
.nl-fish .nf5 { width: 150px; height: 95px;  left: 30%;  bottom: 4%;
    background-image: url("/assets/rybky/inverz/rybka-5.svg"); transform: rotate(-3deg); opacity: 0.11; }
@media (max-width: 700px) {
    .nl-fish .nf1, .nl-fish .nf5 { display: none; }   /* na mobilu jen pár menších */
    .nl-fish span { opacity: 0.09; }
}

/* klik na "Ceramic Studio" v logu — bez fokusového obdélníku prohlížeče */
.hero-logo a, .hero-logo a:focus, .hero-logo a:focus-visible,
.hero-logo svg, .hero-logo svg:focus {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* Facebook v menu jako ikonka */
.site-nav nav a.nav-fb { display: inline-flex; align-items: center; justify-content: center; padding: 7px; margin: 0 -7px; }
@media (max-width: 760px) { .site-nav nav a.nav-fb { padding: 10px; margin: 0; min-width: 50px; min-height: 50px; } }

/* Přepínač jazyka CS · DE · EN */
/* Přepínač jazyka — dropdown s vlaječkou (odladěný) */
.nav-lang { position: relative; display: inline-flex; align-items: center; }
.lang-flag { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.10); flex: 0 0 auto; }
.lang-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(247,241,232,0.10); border: 1px solid rgba(247,241,232,0.20);
    color: #F7F1E8; padding: 6px 10px; border-radius: 100px; cursor: pointer;
    font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
    line-height: 1; transition: background .2s ease, border-color .2s ease;
}
.lang-btn:hover, .nav-lang.is-open .lang-btn { background: rgba(247,241,232,0.16); border-color: rgba(247,241,232,0.34); }
.lang-caret { opacity: 0.7; transition: transform .25s ease; }
.nav-lang.is-open .lang-caret { transform: rotate(180deg); }
.site-nav nav ul.lang-menu { display: block; gap: 0; }   /* přebít obecný .site-nav nav ul { flex } (specifita) */
.lang-menu {
    position: absolute; top: calc(100% + 12px); right: 0;
    min-width: 176px; margin: 0; padding: 6px; list-style: none;
    background: #F7F1E8; border-radius: 14px; box-shadow: 0 18px 46px rgba(20,19,15,0.30);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease; z-index: 60;
}
.lang-menu li { display: block; }
.nav-lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav nav ul.lang-menu a {
    display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px;
    color: #2b2117; font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0;
    transition: background .15s ease;
}
.site-nav nav ul.lang-menu a:hover { background: rgba(25,74,71,0.09); color: #2b2117; }
.site-nav nav ul.lang-menu a.is-active { color: #c4663a; font-weight: 600; }
.site-nav nav ul.lang-menu a.is-active::after { content: "✓"; margin-left: auto; font-size: 13px; }

.nav-fb-icon { display: block; }
@media (max-width: 760px) { .nav-fb-icon { width: 30px; height: 30px; } }

/* odrážky v bio autora / textu O galerii (rich_text) */
.author-intro-text ul, .about-text ul {
    margin: 14px 0;
    padding-left: 4px;
    list-style: none;
}
.author-intro-text li, .about-text li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 7px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-soft);
}
.about-text li { font-family: var(--serif); font-size: clamp(17px, 1.5vw, 20px); }
.author-intro-text li::before, .about-text li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}
.author-intro-text strong, .about-text strong { font-weight: 600; }

/* ---- Souhlas s cookies (Consent Mode v2) ---- */
.consent-banner {
    position: fixed;
    left: 50%;
    bottom: clamp(12px, 3vw, 28px);
    transform: translateX(-50%);
    z-index: 1200;
    width: min(720px, calc(100vw - 32px));
    background: var(--bg);
    color: var(--ink);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(43, 33, 23, 0.18);
    animation: consent-in 0.4s ease both;
}
.consent-banner[hidden] { display: none; }
@keyframes consent-in {
    from { opacity: 0; transform: translate(-50%, 16px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}
.consent-inner {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 28px);
    padding: clamp(16px, 2.4vw, 22px) clamp(18px, 2.6vw, 26px);
}
.consent-text {
    margin: 0;
    flex: 1 1 auto;
    font-family: var(--sans);
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--ink-soft);
}
.consent-actions {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}
.consent-btn {
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.consent-reject {
    background: transparent;
    color: var(--ink-soft);
    border-color: var(--rule);
}
.consent-reject:hover { border-color: var(--ink-faint); color: var(--ink); }
.consent-accept {
    background: var(--zr-zelen);
    color: #fbf7f0;
}
.consent-accept:hover { background: #12403d; }
@media (max-width: 560px) {
    .consent-inner { flex-direction: column; align-items: stretch; gap: 14px; }
    .consent-actions { justify-content: flex-end; }
}
.consent-link { color: var(--zr-zelen); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.consent-link:hover { color: #12403d; }

/* ---- Zásady cookies (legal stránka) ---- */
.legal {
    max-width: 720px;
    margin-inline: auto;
    font-family: var(--sans);
    color: var(--ink-soft);
}
.legal h2 {
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.6vw, 1.7rem);
    font-weight: 500;
    color: var(--ink);
    margin: 2.2em 0 0.6em;
}
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0 0 1em; line-height: 1.7; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal-link { color: var(--zr-zelen); text-decoration: underline; text-underline-offset: 2px; }
.legal-link:hover { color: #12403d; }
.legal-consent-reset { margin-top: 2.4em; }
