/* Kalendár a kuchárska kniha na mieru (scripts/na-mieru.py, docs/na-mieru.md) – vzhľad D1, ktorý majiteľ vybral 8. 11. 2026: úvod ako stránka
   aplikácie, pod ním výber kalendára „na stene“ (formáty v skutočnom pomere veľkostí), ukážky strán, darčeky, pás pre firmy a otázky.
   Načítava sa iba na týchto stránkach; triedy majú predponu nm-, farby a písmo berú z :root v styl.css. */
.nm { overflow-x: clip; }
.nm .eyebrow { font: 700 .78rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.nm-sec { padding: 76px 0; }
.nm-sv { background: var(--surface); }
.nm h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 12px; }
.nm-perex { max-width: 46em; color: var(--text-2); font-size: 1.12rem; margin: 0 0 34px; text-wrap: pretty; }
.nm-i { width: 24px; height: 24px; flex: none; }
.nm-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.nm-2.nm-1 { grid-template-columns: minmax(0, 1fr); }
.nm-uzke { max-width: 880px; }
.nm-pozn { font-size: .9rem; color: var(--muted); margin: 10px 0 0; }
.nm-l { font: 700 .76rem var(--sans); letter-spacing: .11em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }

/* úvod */
.nm-hero { background: linear-gradient(180deg, #fbefe9 0%, #fdf7f4 62%, #fff 100%); padding: 22px 0 70px; border-bottom: 1px solid var(--line); }
.nm-hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 60px; align-items: center; margin-top: 30px; }
.nm-hero h1 { margin: 0 0 18px; font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.07; }
.nm-lead { font-size: 1.2rem; line-height: 1.6; color: var(--text-2); margin: 0 0 24px; max-width: 36em; text-wrap: pretty; }
.nm-cena { margin: 0 0 24px; }
.nm-cena p { margin: 0; }
.nm-suma { font: 600 2.5rem/1 var(--serif); color: var(--heading); margin-right: 12px; }
.nm-cena-p { color: var(--muted); font-size: .98rem; }
.nm-stav-riadok { margin-top: 14px !important; }
.nm-odznak { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px 7px 11px; border-radius: 999px; background: #eaf4ec; color: #22603a; font-weight: 600; font-size: .93rem; }
.nm-odznak.nm-skoro { background: var(--surface-2); color: var(--text-2); }
.nm-odznak .nm-i { width: 19px; height: 19px; }
.nm-akcie { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 14px; }
.nm-akcie .nm-i { width: 20px; height: 20px; }
.nm-cta2 .nm-i { color: var(--accent); }
.nm-hero-pozn { font-size: .92rem; color: var(--muted); margin: 0; max-width: 34em; }
.nm-vis .nm-kal { max-width: 500px; margin-left: auto; transform: rotate(1.2deg); }

/* otvorený kalendár: hore recept, dole mesiac, drôt Wire-O v strede */
.nm-kal { margin: 0; position: relative; }
.nm-kal-list { position: relative; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 22px 44px -24px rgba(40, 24, 12, .5); }
.nm-kal-list img { width: 100%; height: auto; display: block; }
.nm-kal-drot { position: relative; z-index: 2; height: 16px; margin: -8px 3.5%; border-radius: 3px;
  background: repeating-linear-gradient(90deg, transparent 0 5px, #3d3d3d 5px 6.5px, #a6a6a6 6.5px 7.5px, #3d3d3d 7.5px 9px, transparent 9px 10.5px, #3d3d3d 10.5px 12px, #a6a6a6 12px 13px, #3d3d3d 13px 14.5px, transparent 14.5px 21px); }
.nm-kal figcaption { margin-top: 14px; font-size: .86rem; color: var(--muted); text-align: center; }

/* kniha v úvode: obálka a strana s receptom */
.nm-kniha { position: relative; margin: 0 auto; height: 560px; max-width: 520px; }
.nm-kniha img { position: absolute; width: 60%; height: auto; border-radius: 3px; box-shadow: 0 30px 60px -28px rgba(40, 24, 12, .6); background: #fff; border: 1px solid var(--line); }
.nm-kniha .nm-kniha-z { right: 0; top: 44px; transform: rotate(4deg); }
.nm-kniha .nm-kniha-p { left: 2%; top: 0; transform: rotate(-3deg); }
.nm-kniha figcaption { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: .86rem; color: var(--muted); }
/* web bez ukážok knihy v jazyku: fotky jedál */
.nm-fotky { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 500px; margin-left: auto; }
.nm-fotky img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; box-shadow: var(--sh-2); }

.nm-fakty { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.nm-fakty li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); }
.nm-fakty .nm-i { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.nm-fakty strong { display: block; font-size: 1rem; color: var(--heading); line-height: 1.3; margin-bottom: 2px; }
.nm-fakty span { font-size: .92rem; color: var(--muted); line-height: 1.45; }
.nm-fakty-sek { padding: 0 0 22px; }
.nm-fakty-sek .nm-fakty { margin-top: 0; }

/* výber kalendára (karty formátov na stene) a väzby knihy */
.nm-vyber { padding-top: 64px; }
.nm-karty { list-style: none; margin: 0 0 34px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.nm-karty.nm-k2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; }
.nm-karty > li { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.nm-karty > li.on { border: 2px solid var(--accent); box-shadow: var(--sh-3); }
.nm-stena { height: 318px; display: flex; align-items: flex-end; justify-content: center; padding: 22px 12px 26px; background: linear-gradient(180deg, #f4efe8, #ebe4da); }
.nm-karty > li.off .nm-stena { filter: saturate(.75); }
.nm-obj { position: relative; }
.nm-obj img { display: block; width: 100%; height: auto; }
.nm-list img, .nm-stol img { box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 18px 34px -18px rgba(40, 24, 12, .55); background: #fff; }
.nm-otv .nm-kal-list { box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 18px 34px -18px rgba(40, 24, 12, .55); }
.nm-otv .nm-kal-drot { height: 8px; margin: -4px 4%; background: repeating-linear-gradient(90deg, transparent 0 2px, #3d3d3d 2px 3px, transparent 3px 4px, #3d3d3d 4px 5px, transparent 5px 8px); }
.nm-stol i { display: block; height: 16px; margin: 0 -4%; background: linear-gradient(180deg, #7a2b23, #5e1f19); border-radius: 0 0 4px 4px; }
.nm-k-txt { position: relative; padding: 18px 20px 20px; }
.nm-k-txt h3 { font-size: 1.2rem; margin: 0 0 4px; }
.nm-k-txt p { margin: 0; color: var(--muted); font-size: .92rem; }
.nm-k-txt .nm-k-cena { font: 600 1.6rem/1.2 var(--serif); color: var(--heading); margin: 10px 0; }
.nm-k-cena small { font: 400 .85rem var(--sans); color: var(--muted); }
.nm-karty > li.off .nm-k-txt h3, .nm-karty > li.off .nm-k-cena { color: var(--muted); }
.nm-ok { position: absolute; right: 16px; top: -18px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px #fff; }
.nm-ok .nm-i { width: 20px; height: 20px; stroke-width: 3; }
.nm-stav { display: inline-block; font: 700 .7rem/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.nm-stav.on { background: var(--accent); color: #fff; }
.nm-stav.off { background: var(--surface-2); color: var(--muted); }
.nm-ceny-k { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.nm-ceny-k li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; background: var(--surface); font-size: .95rem; }
.nm-ceny-k b { font-weight: 700; color: var(--heading); }
.nm-vzh ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.nm-vzh li { position: relative; display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.nm-vzh li.on { border: 2px solid var(--accent); background: #fffaf9; }
.nm-vzh img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); }
.nm-vzh li:not(.on) img { opacity: .75; }
.nm-vzh span { font-size: .88rem; color: var(--muted); line-height: 1.4; }
.nm-vzh b { display: block; color: var(--heading); font-size: 1.02rem; }
.nm-vzh em { position: absolute; right: 12px; top: 12px; font: 700 .64rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); padding: 5px 8px; border-radius: 999px; font-style: normal; }
.nm-vzh-pozn { margin: 10px 0 0; font-size: .86rem; color: var(--muted); }
.nm-suhrn { margin-top: 30px; display: flex; align-items: center; gap: 28px; padding: 18px 22px 18px 26px; border-radius: var(--r-lg); background: var(--heading); color: #fff; }
.nm-suhrn p { margin: 0; }
.nm-suhrn span { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #bdb7af; }
.nm-suhrn b { font-size: 1.1rem; }
.nm-suhrn-c { margin-left: auto !important; font: 600 1.9rem/1.1 var(--serif); text-align: right; }
.nm-suhrn-c small { display: block; font: 400 .82rem var(--sans); color: #bdb7af; }
.nm-suhrn .btn.primary { min-height: 52px; padding: 10px 28px; }
.nm-suhrn .nm-i { width: 20px; height: 20px; }

/* ukážky strán */
.nm-gal { display: grid; gap: 26px; }
.nm-gal-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nm-gal-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nm-gal figure { margin: 0; }
.nm-gal img { width: 100%; height: auto; border-radius: 4px; box-shadow: var(--sh-2); border: 1px solid var(--line); background: #fff; }
.nm-gal figcaption { margin-top: 14px; font-size: .95rem; color: var(--text-2); line-height: 1.45; }
.nm-gal strong { display: block; color: var(--heading); font-size: 1.05rem; }

/* čo bude v kalendári / knihe */
.nm-zoznam { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 22px; }
.nm-zoznam li { display: flex; gap: 16px; }
.nm-zoznam .nm-i { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: #fff; color: var(--accent); border: 1px solid var(--line); }
.nm-zoznam h3 { font: 700 1.06rem/1.3 var(--sans); margin: 4px 0 4px; letter-spacing: 0; }
.nm-zoznam p { margin: 0; color: var(--text-2); font-size: .98rem; line-height: 1.55; }
.nm-mriezka { position: relative; margin: 0; }
.nm-mriezka img { width: 100%; height: auto; border-radius: 4px; box-shadow: var(--sh-3); border: 1px solid var(--line); background: #fff; }
.nm-pin { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; }
.nm-pin i { position: absolute; inset: 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .25); }
.nm-pin b { position: absolute; top: 50%; transform: translateY(-50%); white-space: nowrap; background: var(--heading); color: #fff; font: 600 .78rem/1 var(--sans); padding: 7px 11px; border-radius: 999px; box-shadow: var(--sh-2); }
.nm-pin-r b { left: 22px; }
.nm-pin-l b { right: 22px; }
.nm-dvojstrana { margin: 0; display: grid; grid-template-columns: 1fr 1fr; box-shadow: var(--sh-3); border-radius: 4px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.nm-dvojstrana img { width: 100%; height: auto; }
.nm-dvojstrana img:first-child { border-right: 1px solid var(--line); }

/* darček na každú príležitosť */
.nm-prilez { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.nm-prilez li { padding: 24px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); }
.nm-prilez .nm-i { width: 48px; height: 48px; padding: 12px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.nm-prilez h3 { font-size: 1.22rem; margin: 0 0 6px; }
.nm-prilez p { margin: 0; color: var(--text-2); font-size: .95rem; line-height: 1.55; }
.nm-prilez a { color: inherit; }

/* pre firmy */
.nm-firmy { background: #1b1918; color: #ecebe8; }
.nm-firmy h2 { color: #fff; }
.nm-firmy .eyebrow { color: #f4a397; }
.nm-firmy .nm-perex { color: #d0cbc4; }
.nm-firmy .nm-pozn { color: #a8a29a; }
.nm-firmy a:not(.btn) { color: #fff; }
.nm-check { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 11px; }
.nm-check li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.nm-check .nm-i { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--accent); color: #fff; margin-top: 1px; stroke-width: 3; }
.nm-firmy-obr { display: grid; gap: 20px; align-items: start; }
.nm-firmy-obr figure { margin: 0; position: relative; }
.nm-firmy-obr img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 26px 50px -26px rgba(0, 0, 0, .7); background: #fff; }
.nm-firmy-obr figcaption { margin-top: 10px; font-size: .88rem; opacity: .85; text-align: center; }
.nm-kniha-logo { max-width: 360px; margin: 0 auto !important; }
.nm-logo-pas { position: absolute; left: 50%; top: 58.4%; transform: translate(-50%, -50%); background: #fff; padding: 3px 12px; }
.nm-logo { display: inline-flex; align-items: center; gap: 7px; color: #7a2b23; }
.nm-logo b { font: 700 .58rem/1 var(--sans); border: 1.5px dashed #7a2b23; border-radius: 5px; padding: 6px 5px; }
.nm-logo span { font: 700 .7rem/1.1 var(--sans); text-align: left; }
.nm-logo small { display: block; font-weight: 400; font-size: .6rem; }

/* ako to funguje */
.nm-kroky { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.nm-kroky li { position: relative; }
.nm-cislo { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 1.2rem/1 var(--sans); margin-bottom: 18px; position: relative; z-index: 1; }
.nm-kroky li:not(:last-child)::after { content: ""; position: absolute; top: 25px; left: 66px; right: -10px; height: 2px; background: var(--line-2); }
.nm-kroky h3 { font-size: 1.18rem; margin: 0 0 6px; }
.nm-kroky p { margin: 0; color: var(--text-2); font-size: .97rem; line-height: 1.55; }

/* parametre a cena */
.nm-specs { width: 100%; border-collapse: collapse; font-size: 1rem; }
.nm-specs tr { border-bottom: 1px solid var(--line); }
.nm-specs th { text-align: left; width: 28%; padding: 15px 16px 15px 0; color: var(--muted); font-weight: 600; vertical-align: top; }
.nm-specs td { padding: 15px 0; }

/* krížový odkaz kalendár ↔ kniha */
.nm-kriz { display: grid; grid-template-columns: 180px 1fr; gap: 36px; align-items: center; padding: 30px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; box-shadow: var(--sh-2); max-width: 1000px; }
.nm-kriz:hover { color: inherit; border-color: var(--line-2); }
.nm-kriz img { width: 100%; height: auto; border-radius: 4px; box-shadow: var(--sh-2); aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.nm-kriz h2 { margin: 0 0 8px; }
.nm-kriz p { margin: 0 0 14px; color: var(--text-2); }
.nm-odkaz { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; }
.nm-odkaz .nm-i { width: 20px; height: 20px; }

/* časté otázky */
.nm-faq details { border-bottom: 1px solid var(--line); }
.nm-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font: 600 1.1rem/1.4 var(--sans); color: var(--heading); }
.nm-faq summary::-webkit-details-marker { display: none; }
.nm-faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent); }
.nm-faq details[open] summary::after { content: "–"; }
.nm-faq p { margin: 0 0 20px; color: var(--text-2); }

@media (max-width: 860px) {
  .nm-sec { padding: 50px 0; }
  .nm-2, .nm-hero-in { grid-template-columns: 1fr; gap: 34px; }
  .nm-hero { padding-bottom: 46px; }
  .nm-lead { font-size: 1.08rem; }
  .nm-suma { font-size: 2.1rem; }
  .nm-akcie .btn { width: 100%; }
  .nm-vis .nm-kal { max-width: 420px; margin: 0 auto; }
  .nm-fotky { margin: 0 auto; }
  .nm-kniha { height: 430px; }
  .nm-fakty { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 34px; }
  .nm-fakty li { flex-direction: column; gap: 10px; padding: 14px; }
  .nm-karty, .nm-karty.nm-k2 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .nm-stena { height: 200px; padding: 14px 8px 16px; }
  .nm-stena .nm-obj { transform: scale(.62); transform-origin: bottom center; }
  .nm-k-txt { padding: 14px 12px; }
  .nm-k-txt h3 { font-size: 1rem; }
  .nm-k-txt p { font-size: .8rem; }
  .nm-k-txt .nm-k-cena { font-size: 1.25rem; margin: 6px 0; }
  .nm-ceny-k li { font-size: .82rem; padding: 7px 8px; }
  .nm-ok { width: 28px; height: 28px; top: -14px; right: 10px; }
  .nm-vzh ul { grid-template-columns: 1fr; gap: 8px; }
  .nm-suhrn { flex-wrap: wrap; gap: 12px; padding: 18px; }
  .nm-suhrn-c { margin-left: 0 !important; text-align: left; }
  .nm-suhrn .btn { width: 100%; }
  .nm-gal-n3 { grid-template-columns: 1fr; }
  .nm-gal-n4 { grid-template-columns: 1fr 1fr; gap: 16px; }
  .nm-prilez { grid-template-columns: 1fr 1fr; gap: 10px; }
  .nm-prilez li { padding: 16px 14px; }
  .nm-prilez .nm-i { width: 42px; height: 42px; padding: 10px; margin-bottom: 10px; }
  .nm-prilez h3 { font-size: 1.08rem; }
  .nm-prilez p { font-size: .9rem; }
  .nm-pin b { font-size: .64rem; padding: 4px 7px; }
  .nm-pin-r b { left: 14px; }
  .nm-pin-l b { right: 14px; }
  .nm-pin { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
  .nm-kroky { grid-template-columns: 1fr; gap: 20px; }
  .nm-kroky li { display: grid; grid-template-columns: 50px 1fr; column-gap: 16px; }
  .nm-kroky li::after { display: none; }
  .nm-cislo { grid-row: span 2; margin: 0; }
  .nm-specs th { width: 36%; }
  .nm-kriz { grid-template-columns: 96px 1fr; gap: 18px; padding: 18px; }
  .nm-kriz h2 { font-size: 1.35rem; }
  .nm-kriz p { font-size: .95rem; }
}
