/* ==========================================================
   NABÍDKA PRO MUZEA – landing page (needituje se z CMS)
   Klasické rozložení; vizuál: tmavý úvod s lidovým ornamentem,
   filmové perforace, ikony služeb, štítky kamer, vavříny.
   Typo: Source Serif 4 · Source Sans 3
   ========================================================== */

:root {
    --bg: #fbf8f2;
    --bg-alt: #f2ece2;
    --ink: #1c2a33;
    --text: #3a454b;
    --muted: #6b7479;
    --line: #ddd5c8;
    --accent: #a3271c;
    --accent-2: #7d1d15;
    --gold: #c99a45;
    --dark: #17232b;

    --f-serif: "Source Serif 4", "Georgia", serif;
    --f-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
    --gut: clamp(16px, 4vw, 40px);
    --ease: cubic-bezier(.2, .8, .2, 1);

    /* Vzor z rozet pro tmavé plochy */
    --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='%23ffffff' fill-opacity='.05'%3E%3Ccircle cx='32' cy='32' r='3'/%3E%3Cpath d='M32 14c3 4 3 8 0 12-3-4-3-8 0-12zM32 38c3 4 3 8 0 12-3-4-3-8 0-12zM14 32c4-3 8-3 12 0-4 3-8 3-12 0zM38 32c4-3 8-3 12 0-4 3-8 3-12 0z'/%3E%3Ccircle cx='0' cy='0' r='2'/%3E%3Ccircle cx='64' cy='0' r='2'/%3E%3Ccircle cx='0' cy='64' r='2'/%3E%3Ccircle cx='64' cy='64' r='2'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.nm { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-sans); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
.nm img { display: block; max-width: 100%; height: auto; }
.nm figure { margin: 0; }
.nm a { color: inherit; }
.nm a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.nm ::selection { background: var(--accent); color: #fff; }
.nm h1, .nm h2, .nm h3 { font-family: var(--f-serif); font-weight: 600; color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
.nm h2 { font-size: clamp(26px, 2.6vw, 34px); }
.nm h3 { font-size: 22px; }
.nm p { margin: 0 0 1em; }

.nm-wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gut); }
.nm-narrow { max-width: 820px; }
.nm-center { text-align: center; }

/* Nadpisy sekcí s ornamentální linkou */
.nm-section h2::after {
    content: ""; display: block; width: 72px; height: 10px; margin-top: 14px;
    background:
        radial-gradient(circle, var(--accent) 3.5px, transparent 4px) 0 50% / 10px 10px no-repeat,
        linear-gradient(var(--gold), var(--gold)) 16px 50% / 56px 2px no-repeat;
}
.nm-center h2::after { margin-left: auto; margin-right: auto; background:
        linear-gradient(var(--gold), var(--gold)) 0 50% / 26px 2px no-repeat,
        radial-gradient(circle, var(--gold) 3.5px, transparent 4px) 50% 50% / 10px 10px no-repeat,
        linear-gradient(var(--gold), var(--gold)) 100% 50% / 26px 2px no-repeat; }

/* ---------- Hlavička ---------- */
.nm-top { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 242, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nm-top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.nm-top__brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-serif); font-weight: 600; font-size: 20px; text-decoration: none; color: var(--ink) !important; }
.nm-top__brand svg { width: 22px; height: 22px; color: var(--accent); transition: rotate .6s var(--ease); }
.nm-top__brand:hover svg { rotate: 45deg; }
.nm-top__nav { display: flex; align-items: center; gap: 26px; font-size: 16px; }
.nm-top__nav a { position: relative; text-decoration: none; color: var(--muted); padding: 4px 0; }
.nm-top__nav a:not(.nm-top__cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .3s var(--ease); }
.nm-top__nav a:hover { color: var(--ink); }
.nm-top__nav a:hover::after { transform: scaleX(1); }
.nm-top__nav .nm-top__cta { padding: 7px 18px; border-radius: 999px; background: var(--accent); color: #fff; }
.nm-top__nav .nm-top__cta:hover { background: var(--accent-2); color: #fff; }
@media (max-width: 760px) { .nm-top__nav a:not(.nm-top__cta) { display: none; } }

/* ---------- Úvod ---------- */
.nm-hero {
    position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 110px);
    background: var(--pattern), radial-gradient(120% 90% at 85% 10%, #263845 0%, var(--dark) 60%);
    color: #d9e0e3;
}
.nm-hero::after { /* krajková hrana dole */
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 16px;
    background: radial-gradient(circle at 12px 16px, var(--bg) 9px, transparent 9.5px) 0 0 / 24px 16px repeat-x;
}
.nm-hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.nm-hero h1 { font-size: clamp(28px, 3.2vw, 42px); color: #fff; }
.nm-hero__rule { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; color: var(--gold); }
.nm-hero__rule::before, .nm-hero__rule::after { content: ""; height: 1px; width: 48px; background: currentColor; opacity: .6; }
.nm-hero__rule::before { display: none; }
.nm-hero__rule svg { width: 26px; height: 26px; }
.nm-hero__sub { font-size: clamp(19px, 1.6vw, 22px); color: #f0c98a; font-family: var(--f-serif); font-style: italic; margin: 0; }
.nm-hero__icons { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; }
.nm-hero__icons li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; font-size: 15px; color: #fff; background: rgba(255, 255, 255, .04); }
.nm-hero__icons svg { width: 20px; height: 20px; color: var(--gold); }

.nm-hero__img { position: relative; padding: 18px 0; background: #0d1418; border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); rotate: 1.5deg; }
.nm-hero__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.nm-perf { /* perforace filmového pásu */
    position: absolute; left: 10px; right: 10px; height: 18px;
    background: radial-gradient(closest-side, transparent 0, transparent 100%), repeating-linear-gradient(90deg, transparent 0 8px, #e9e2d4 8px 18px, transparent 18px 26px);
    -webkit-mask: linear-gradient(transparent 6px, #000 6px, #000 12px, transparent 12px); mask: linear-gradient(transparent 6px, #000 6px, #000 12px, transparent 12px);
    opacity: .85;
}
.nm-perf--top { top: 0; }
.nm-perf--bottom { bottom: 0; }
.nm-hero__rose { position: absolute; right: -22px; bottom: -26px; width: 84px; height: 84px; padding: 16px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); rotate: -1.5deg; animation: nm-spin 30s linear infinite; }
@keyframes nm-spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) {
    .nm-hero__in { grid-template-columns: 1fr; }
    .nm-hero__img { rotate: 0deg; }
    .nm-hero__rose { right: 10px; width: 64px; height: 64px; padding: 12px; }
}

/* ---------- Úvodní text ---------- */
.nm-intro { padding: clamp(48px, 7vw, 84px) 0; font-size: clamp(18px, 1.4vw, 20px); }
.nm-intro p:first-child { font-family: var(--f-serif); font-size: 1.18em; line-height: 1.55; color: var(--ink); }
.nm-intro p:first-child::first-letter {
    float: left; font-size: 3.4em; line-height: .9; padding: 6px 12px 0 0; color: var(--accent); font-weight: 600;
}
.nm-intro p:last-child { padding-left: 20px; border-left: 3px solid var(--gold); }

/* ---------- Sekce ---------- */
.nm-section { position: relative; padding: clamp(56px, 8vw, 100px) 0; }
.nm-section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nm-section--dark { overflow: hidden; background: var(--dark); color: #d8dee1; }
.nm-section--dark h2 { color: #fff; }
.nm-section--dark > .nm-wrap { position: relative; }
.nm-dark__bg { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; opacity: .18; filter: grayscale(1); }
.nm-section--dark::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--pattern), linear-gradient(180deg, rgba(23, 35, 43, .7), rgba(23, 35, 43, .92)); }
.nm-section--dark .nm-dark__bg { z-index: 0; }
.nm-section--dark .nm-dark__bg + .nm-wrap { z-index: 1; }

/* Karty služeb */
.nm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.nm-card {
    background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column;
    border-top: 4px solid var(--accent); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.nm-card:nth-child(2) { border-top-color: var(--gold); }
.nm-card:nth-child(3) { border-top-color: var(--ink); }
.nm-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(28, 42, 51, .45); }
.nm-card__img { position: relative; overflow: hidden; }
.nm-card__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s var(--ease); }
.nm-card:hover .nm-card__img img { transform: scale(1.05); }
.nm-card__img--web { background: #ece7de; padding-top: 22px; }
.nm-card__img--web img { object-position: top; }
.nm-card__bar { position: absolute; top: 0; left: 0; right: 0; height: 22px; display: flex; align-items: center; gap: 5px; padding-left: 10px; background: #e2dbcf; z-index: 1; }
.nm-card__bar i { width: 8px; height: 8px; border-radius: 50%; background: #c3b9a9; }
.nm-card__bar i:first-child { background: var(--accent); }
.nm-card__icon {
    position: absolute; left: 20px; bottom: -1px; translate: 0 50%; z-index: 2;
    width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
    background: var(--accent); color: #fff; border: 4px solid #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
}
.nm-card:nth-child(2) .nm-card__icon { background: var(--gold); }
.nm-card:nth-child(3) .nm-card__icon { background: var(--ink); }
.nm-card__icon svg { width: 24px; height: 24px; }
/* ikona přesahuje dolů, proto obal nesmí ořezávat; zoom roste nahoru a do stran (ořízne karta) */
.nm-card__img { overflow: visible; }
.nm-card__img img { transform-origin: 50% 100%; }
.nm-card__body { padding: 40px 24px 26px; }
.nm-card ul { margin: 0; padding: 0; list-style: none; }
.nm-card li { position: relative; padding: 8px 0 8px 24px; border-top: 1px dashed var(--line); font-size: 17px; line-height: 1.5; }
.nm-card li:first-child { border-top: 0; padding-top: 0; }
.nm-card li::before { /* kosočtverec jako výšivkový steh */
    content: ""; position: absolute; left: 4px; top: 16px; width: 8px; height: 8px;
    background: var(--accent); rotate: 45deg; box-shadow: 0 0 0 3px rgba(163, 39, 28, .14);
}
.nm-card li:first-child::before { top: 8px; }
.nm-card:nth-child(2) li::before { background: var(--gold); box-shadow: 0 0 0 3px rgba(201, 154, 69, .18); }
.nm-card p { font-size: 17px; line-height: 1.55; margin: 0; }
@media (max-width: 960px) { .nm-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .nm-cards { grid-template-columns: 1fr; } }

/* Text + obrázek */
.nm-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.nm-split--rev .nm-split__img { order: -1; }
.nm-split__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
@media (max-width: 860px) {
    .nm-split { grid-template-columns: 1fr; }
    .nm-split--rev .nm-split__img { order: 0; }
}

/* Tři kamery */
.nm-cams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nm-cams__main { grid-column: 1 / -1; }
.nm-cams figure { position: relative; overflow: hidden; border-radius: 6px; }
.nm-cams img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0; transition: transform .8s var(--ease); }
.nm-cams figure:hover img { transform: scale(1.04); }
.nm-cams figure::after { /* rohy hledáčku */
    content: ""; position: absolute; inset: 10px; pointer-events: none;
    background:
        linear-gradient(#fff, #fff) 0 0 / 16px 2px no-repeat, linear-gradient(#fff, #fff) 0 0 / 2px 16px no-repeat,
        linear-gradient(#fff, #fff) 100% 0 / 16px 2px no-repeat, linear-gradient(#fff, #fff) 100% 0 / 2px 16px no-repeat,
        linear-gradient(#fff, #fff) 0 100% / 16px 2px no-repeat, linear-gradient(#fff, #fff) 0 100% / 2px 16px no-repeat,
        linear-gradient(#fff, #fff) 100% 100% / 16px 2px no-repeat, linear-gradient(#fff, #fff) 100% 100% / 2px 16px no-repeat;
    opacity: .85;
}
.nm-cam {
    position: absolute; top: 18px; left: 20px; display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 8px; border-radius: 3px; background: rgba(0, 0, 0, .55); color: #fff;
    font-family: ui-monospace, "Consolas", monospace; font-size: 12px; letter-spacing: .06em;
}
.nm-cams__main .nm-cam { background: var(--accent); }
.nm-cam i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: nm-blink 1.4s steps(2, start) infinite; }
@keyframes nm-blink { to { opacity: .2; } }

/* Ocenění */
.nm-fests { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 22px; margin: 32px 0 0; padding: 0; }
.nm-fests li { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); }
.nm-fests svg { width: 22px; height: 44px; flex: none; }
.nm-fests__r { transform: scaleX(-1); }
.nm-fests span { font-family: var(--f-serif); font-size: 20px; color: #fff; padding: 0 4px; }

/* Výstupy */
.nm-outputs { margin: 0 0 1.2em; padding: 0; list-style: none; counter-reset: o; }
.nm-outputs li { counter-increment: o; display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px dashed var(--line); transition: padding .3s var(--ease), color .3s; }
.nm-outputs li:first-child { border-top: 1px dashed var(--line); }
.nm-outputs li:hover { padding-left: 6px; color: var(--ink); }
.nm-outputs li::before { content: counter(o); flex: 0 0 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--f-serif); font-size: 15px; font-weight: 600; translate: 0 -2px; box-shadow: 0 0 0 4px rgba(163, 39, 28, .12); }
.nm-note { color: var(--muted); font-size: 16px; font-style: italic; }
.nm-framed { position: relative; }
.nm-framed::before { /* posunutý rámeček za fotkou */
    content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1; border: 2px solid var(--gold); border-radius: 6px;
}
.nm-framed::after {
    content: ""; position: absolute; top: -16px; left: -16px; width: 90px; height: 90px; z-index: -1;
    background: radial-gradient(var(--accent) 2px, transparent 2.5px) 0 0 / 12px 12px; opacity: .5;
}
#vystupy { isolation: isolate; }
@media (max-width: 860px) {
    .nm-framed::before { inset: 12px -10px -12px 10px; }
    .nm-framed::after { left: -10px; }
}

/* Kontakt */
.nm-cta {
    position: relative; padding: clamp(48px, 7vw, 76px) 0;
    background: var(--pattern), linear-gradient(120deg, var(--accent-2), var(--accent));
}
.nm-cta::before { /* krajková hrana nahoře */
    content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 16px;
    background: radial-gradient(circle at 12px 0, var(--bg) 9px, transparent 9.5px) 0 0 / 24px 16px repeat-x;
}
.nm-cta__in { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.nm-btn { display: inline-block; padding: 14px 30px; border-radius: 999px; text-decoration: none; font-weight: 600; border: 2px solid transparent; transition: background .3s, color .3s, transform .3s var(--ease); }
.nm-btn:hover { transform: translateY(-2px); }
.nm-btn--light { background: #fff; color: var(--accent) !important; }
.nm-btn--light:hover { background: var(--bg-alt); }
.nm-btn--ghost-light { color: #fff !important; border-color: rgba(255, 255, 255, .6); }
.nm-btn--ghost-light:hover { background: #fff; color: var(--accent) !important; }

.nm-foot { padding: 24px 0; background: var(--dark); font-size: 15px; color: rgba(255, 255, 255, .6); }
.nm-foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.nm-foot a { text-decoration: none; }
.nm-foot a:hover { color: #fff; }

/* ---------- Vyjetí při scrollu ---------- */
.nm-anim .nm-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.nm-anim .nm-reveal.is-in { opacity: 1; transform: none; }
.nm-anim .nm-cards .nm-reveal:nth-child(2) { transition-delay: .1s; }
.nm-anim .nm-cards .nm-reveal:nth-child(3) { transition-delay: .2s; }
.nm-anim .nm-split .nm-reveal + .nm-reveal { transition-delay: .12s; }
.nm-anim .nm-card.is-in:hover { transform: translateY(-6px); transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
    .nm *, .nm *::before, .nm *::after { animation: none !important; transition: none !important; }
}
