/* ==========================================================================
   Stolárstvo Marián Murín – redizajn 2026
   Teplý, prírodný vizuál: papierové pozadie, smrekovo-zelená, dubový akcent.
   ========================================================================== */

:root {
    --paper: #f7f3ec;
    --paper-2: #efe8dc;
    --surface: #ffffff;
    --ink: #1e231f;
    --ink-2: #3a413b;
    --muted: #6b716b;
    --line: #e3dacb;
    --forest: #2b4433;
    --forest-2: #36563f;
    --forest-ink: #e9efe7;
    --oak: #a8702f;
    --oak-2: #8d5c24;
    --oak-soft: #f3e6d3;

    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(30, 35, 31, .06), 0 8px 24px rgba(30, 35, 31, .06);
    --shadow-lg: 0 18px 50px rgba(30, 35, 31, .14);
    --wrap: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
    --section: clamp(64px, 9vw, 120px);
}

/* ---------- Základ ---------- */
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--oak-2); }
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.015em;
    line-height: 1.12;
    margin: 0 0 .5em;
    font-variation-settings: "opsz" 96;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; font-variation-settings: "opsz" 36; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--oak); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * .6) 0; }
.section--alt { background: var(--paper-2); }
.section--white { background: var(--surface); }

.eyebrow {
    display: inline-flex; align-items: center; gap: .6em;
    font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--oak-2); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 38em; }
.muted { color: var(--muted); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 18em; }
.section-head p { margin: .75rem 0 0; color: var(--muted); max-width: 36em; }

/* ---------- Tlačidlá ---------- */
.btn-ui {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    padding: .9em 1.5em; border-radius: 999px; border: 1px solid transparent;
    font: 600 .95rem/1.2 var(--font-body); letter-spacing: .01em;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn-ui:active { transform: translateY(1px); }
.btn-ui--primary { background: var(--forest); color: #fff; }
.btn-ui--primary:hover { background: var(--forest-2); color: #fff; }
.btn-ui--oak { background: var(--oak); color: #fff; }
.btn-ui--oak:hover { background: var(--oak-2); color: #fff; }
.btn-ui--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ui--ghost:hover { background: var(--ink); color: #fff; }
.btn-ui--light { background: #fff; color: var(--forest); }
.btn-ui--light:hover { background: var(--oak-soft); color: var(--forest); }
.btn-ui--sm { padding: .6em 1.1em; font-size: .88rem; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .45em; }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Hlavička ---------- */
.topbar { background: var(--forest); color: var(--forest-ink); font-size: .84rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--oak-soft); }
.topbar__links { display: flex; gap: 24px; }
.topbar i { opacity: .7; margin-right: .35em; }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(247, 243, 236, .92); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: auto; }
.brand__name { font-family: var(--font-display); font-size: 1.35rem; line-height: 1; letter-spacing: -.01em; font-weight: 500; }
.brand__sub { display: block; font-family: var(--font-body); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 5px; font-weight: 600; }
.brand:hover { color: var(--ink); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav__link {
    position: relative; display: inline-flex; align-items: center; gap: .35em;
    padding: .6em .9em; color: var(--ink-2); font-weight: 600; font-size: .95rem; text-decoration: none; border-radius: 999px;
}
.site-nav__link:hover, .site-nav__link.is-active { color: var(--ink); background: var(--paper-2); }
.site-nav__link i { font-size: .7em; opacity: .6; }
.site-nav__cta { margin-left: 12px; }

.has-mega { position: relative; }
.mega {
    position: absolute; left: 50%; top: calc(100% + 10px); transform: translate(-50%, 6px);
    width: min(760px, 90vw); padding: 22px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 18px;
    opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega a { display: flex; justify-content: space-between; gap: 8px; padding: .5em .65em; border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 500; }
.mega a:hover { background: var(--paper); color: var(--ink); }
.mega a small { color: var(--muted); font-size: .8rem; }
.mega__all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 12px; }
.mega__all a { justify-content: flex-start; font-weight: 700; color: var(--forest); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 50%; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 991px) {
    .topbar__place { display: none; }
    .topbar__inner { justify-content: center; }
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: fixed; inset: 0 0 0 auto; top: 0; width: min(380px, 100%); height: 100dvh;
        flex-direction: column; align-items: stretch; gap: 2px; padding: 96px 20px 24px;
        background: var(--paper); overflow-y: auto; visibility: hidden;
        transform: translateX(100%); transition: transform .28s ease, visibility 0s linear .28s; z-index: -1;
    }
    .nav-open .site-nav { transform: none; visibility: visible; box-shadow: var(--shadow-lg); transition: transform .28s ease; }
    .site-nav__link { font-size: 1.1rem; padding: .8em 1em; border-radius: var(--radius-sm); }
    .site-nav__link i { display: none; }
    .site-nav__cta { margin: 16px 0 0; }
    .mega { position: static; transform: none; opacity: 1; visibility: visible; width: auto; box-shadow: none; border: 0; padding: 0 0 8px 12px; grid-template-columns: 1fr 1fr; background: transparent; }
    .mega::before { display: none; }
    .mega__all { display: none; }
    .nav-backdrop { position: fixed; inset: 0; background: rgba(20, 24, 21, .4); z-index: 999; opacity: 0; visibility: hidden; transition: opacity .25s; }
    .nav-open .nav-backdrop { opacity: 1; visibility: visible; }
    body.nav-open { overflow: hidden; }
}
@media (max-width: 575px) {
    .topbar__mail { display: none; }
    .brand__name { font-size: 1.15rem; }
    .brand__sub { display: none; }
}

/* ---------- Hero ---------- */
.hero-x { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.hero-x__grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-x h1 { margin-bottom: .45em; }
.hero-x h1 em { font-style: italic; color: var(--forest); font-weight: 400; }
.hero-x__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 40px; }
.hero-x__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-x__facts strong { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; line-height: 1; color: var(--forest); margin-bottom: 6px; }
.hero-x__facts span { font-size: .87rem; color: var(--muted); line-height: 1.35; display: block; }
.hero-x__media { position: relative; }
.hero-x__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lg); }
.hero-x__badge {
    position: absolute; left: -28px; bottom: 32px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 16px 20px; display: flex; gap: 14px; align-items: center; max-width: 290px;
}
.hero-x__badge i { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--oak-soft); color: var(--oak-2); font-size: 1.1rem; }
.hero-x__badge strong { display: block; font-size: .95rem; line-height: 1.25; }
.hero-x__badge span { font-size: .82rem; color: var(--muted); }
@media (max-width: 991px) {
    .hero-x__grid { grid-template-columns: 1fr; }
    .hero-x__media { order: -1; }
    .hero-x__badge { left: 16px; bottom: -24px; }
    .hero-x__media { margin-bottom: 16px; }
}
@media (max-width: 575px) {
    .hero-x__facts { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .hero-x__facts strong { font-size: 1.45rem; }
    .hero-x__facts span { font-size: .78rem; }
    .hero-x__actions .btn-ui { flex: 1 1 100%; }
}

/* ---------- Pás výhod ---------- */
.usp { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.usp__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.usp__item { display: flex; gap: 14px; align-items: flex-start; padding: 26px 22px; }
.usp__item + .usp__item { border-left: 1px solid var(--line); }
.usp__item i { color: var(--oak); font-size: 1.3rem; margin-top: 3px; width: 24px; text-align: center; }
.usp__item strong { display: block; font-size: .98rem; }
.usp__item span { display: block; font-size: .86rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 991px) {
    .usp__grid { grid-template-columns: 1fr 1fr; }
    .usp__item:nth-child(3) { border-left: 0; }
    .usp__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 575px) {
    .usp__grid { grid-template-columns: 1fr; }
    .usp__item + .usp__item { border-left: 0; border-top: 1px solid var(--line); }
    .usp__item { padding: 18px 4px; }
}

/* ---------- Karty kategórií ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); }
.cat-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); text-decoration: none; color: #fff; aspect-ratio: 4 / 5; isolation: isolate; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; z-index: -2; }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 24, 21, 0) 40%, rgba(20, 24, 21, .78) 100%); z-index: -1; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.cat-card h3 { color: #fff; margin: 0; font-size: 1.3rem; }
.cat-card small { display: block; font-size: .8rem; opacity: .8; margin-top: 4px; font-family: var(--font-body); }
.cat-card__arrow { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); transition: background .2s; }
.cat-card:hover .cat-card__arrow { background: var(--oak); }
.cat-card--wide { grid-column: span 2; aspect-ratio: auto; }
.cat-card--empty { display: grid; place-items: center; color: var(--forest); }
.cat-card--empty::after { display: none; }
.cat-card--empty img.cat-card__icon { position: static; width: 72px; height: 72px; object-fit: contain; opacity: .55; z-index: 0; }
.cat-card--empty .cat-card__body { color: var(--ink); }
.cat-card--empty h3 { color: var(--ink); }
.cat-card--empty .cat-card__arrow { background: var(--surface); }
@media (max-width: 991px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } .cat-card--wide { grid-column: span 2; aspect-ratio: 16 / 10; } }
@media (max-width: 420px) { .cat-card h3 { font-size: 1.05rem; } .cat-card__body { padding: 14px; } .cat-card__arrow { display: none; } }

/* ---------- Príbeh / O nás ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.story__media { position: relative; }
.story__media img { border-radius: 22px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.story__media img + img { position: absolute; width: 48%; aspect-ratio: 1; right: -24px; bottom: -32px; border: 8px solid var(--paper-2); border-radius: 18px; box-shadow: var(--shadow-lg); }
.story__list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 18px; }
.story__list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.story__list b { display: block; }
.story__list span { color: var(--muted); font-size: .95rem; }
.story__num { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--oak); color: var(--oak-2); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.05rem; }
@media (max-width: 991px) {
    .story { grid-template-columns: 1fr; }
    .story__media { margin-right: 24px; margin-bottom: 24px; }
    .story__media img { aspect-ratio: 4 / 3; }
}

/* ---------- Produktové karty ---------- */
.p-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 32px) clamp(14px, 2vw, 24px); }
.p-grid--3 { grid-template-columns: repeat(3, 1fr); }
.p-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.p-card__img { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.p-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.p-card:hover .p-card__img img { transform: scale(1.04); }
.p-card__tag { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .92); color: var(--ink-2); font-size: .74rem; font-weight: 700; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px; }
.p-card__body { padding: 14px 2px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.p-card h3 { font-size: 1.15rem; margin: 0; }
.p-card:hover h3 { color: var(--forest); }
.p-card__price { font-size: .88rem; color: var(--muted); white-space: nowrap; }
.p-card__price b { color: var(--ink); font-size: 1.02rem; }
.p-card__price--ask { color: var(--oak-2); font-weight: 600; }
@media (max-width: 1100px) { .p-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) {
    .p-grid, .p-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .p-card__body { flex-direction: column; gap: 2px; }
    .p-card h3 { font-size: 1.02rem; }
}

/* ---------- Postup ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { padding: 28px 28px 8px 0; position: relative; }
.step::before {
    counter-increment: step; content: "0" counter(step);
    display: block; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--oak); margin-bottom: 18px; font-weight: 400;
}
.step::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 991px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 12px; } }
@media (max-width: 575px) { .steps { grid-template-columns: 1fr; } .step { padding-right: 0; } }

/* ---------- Služby ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: box-shadow .25s, transform .25s; }
.svc:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: var(--ink); }
.svc img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.svc__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.svc__body p { color: var(--muted); font-size: .95rem; flex: 1; }
.svc__body .link-arrow { color: var(--forest); }
@media (max-width: 991px) { .svc-grid { grid-template-columns: 1fr; } .svc { flex-direction: row; } .svc img { width: 40%; aspect-ratio: auto; } }
@media (max-width: 575px) { .svc { flex-direction: column; } .svc img { width: 100%; aspect-ratio: 16 / 9; } }

.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.svc-row + .svc-row { margin-top: var(--section); }
.svc-row img { border-radius: 22px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-row--rev .svc-row__media { order: 2; }
.svc-row ul { padding: 0; list-style: none; margin: 20px 0 28px; display: grid; gap: 10px; }
.svc-row li { display: flex; gap: 12px; align-items: baseline; }
.svc-row li i { color: var(--oak); font-size: .85rem; }
@media (max-width: 991px) { .svc-row { grid-template-columns: 1fr; } .svc-row--rev .svc-row__media { order: 0; } }

/* ---------- CTA pás ---------- */
.cta-band { background: var(--forest); color: var(--forest-ink); border-radius: 26px; padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 0 0 40px rgba(255, 255, 255, .03), 0 0 0 80px rgba(255, 255, 255, .02); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(233, 239, 231, .82); margin: 0; }
.cta-band__actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; position: relative; z-index: 1; }
.cta-band__phone { color: #fff; font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); text-decoration: none; }
.cta-band__phone:hover { color: var(--oak-soft); }
@media (max-width: 767px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Záhlavie podstránky ---------- */
.page-head { padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-bottom: .3em; }
.page-head .lead { margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 4px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: .5em 1em; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); text-decoration: none; font-size: .88rem; font-weight: 600; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--forest); border-color: var(--forest); color: #fff; }

.empty { text-align: center; padding: 64px 16px; color: var(--muted); }

/* ---------- Detail produktu ---------- */
.pd { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.pd__main { border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); cursor: zoom-in; aspect-ratio: 4 / 3; }
.pd__main img { width: 100%; height: 100%; object-fit: contain; }
.pd__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.pd__thumbs img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 10px; cursor: zoom-in; border: 1px solid var(--line); transition: opacity .2s; }
.pd__thumbs img:hover { opacity: .8; }
.pd__info { position: sticky; top: 104px; }
.pd__info h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
.pd__price { display: flex; align-items: baseline; gap: 10px; padding: 18px 0; margin: 8px 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pd__price small { color: var(--muted); }
.pd__price strong { font-family: var(--font-display); font-size: 2.1rem; font-weight: 500; line-height: 1; }
.pd__price .ask { font-family: var(--font-display); font-size: 1.5rem; color: var(--oak-2); }
.pd__feats { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.pd__feats li { display: flex; gap: 12px; align-items: baseline; color: var(--ink-2); }
.pd__feats i { color: var(--oak); width: 18px; text-align: center; }
.pd__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pd__note { margin-top: 18px; font-size: .88rem; color: var(--muted); }
.pd__desc { max-width: 760px; }
.pd__desc img { border-radius: var(--radius-sm); margin: 1em 0; }
/* popisy z WYSIWYG editora obsahujú inline štýly – zjednotíme ich s webom */
.pd__desc * { font-family: var(--font-body) !important; background: transparent !important; color: inherit !important; font-size: inherit !important; letter-spacing: normal !important; }
.pd__desc h2 { font-family: var(--font-display) !important; font-size: clamp(1.9rem, 3.6vw, 2.9rem) !important; }
.pd__desc .eyebrow { font-size: .78rem !important; color: var(--oak-2) !important; }
.pd__desc p { margin: 0 0 .9em; }
.pd__desc table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.pd__desc td, .pd__desc th { border-bottom: 1px solid var(--line); padding: 8px 6px; }
@media (max-width: 991px) { .pd { grid-template-columns: 1fr; } .pd__info { position: static; } }
@media (max-width: 575px) { .pd__thumbs { grid-template-columns: repeat(4, 1fr); } .pd__actions .btn-ui { flex: 1 1 100%; } }

/* ---------- Kontakt ---------- */
.reach { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.reach__card {
    display: flex; flex-direction: column; gap: 6px; padding: clamp(28px, 4vw, 44px);
    background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
    text-decoration: none; color: var(--ink); transition: box-shadow .25s, transform .25s, border-color .25s;
}
.reach__card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; color: var(--ink); }
.reach__card > i { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--oak-soft); color: var(--oak-2); font-size: 1.3rem; margin-bottom: 18px; }
.reach__label { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.reach__value { font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.15; overflow-wrap: anywhere; }
.reach__go { margin-top: 18px; font-weight: 700; color: var(--forest); display: inline-flex; align-items: center; gap: .45em; }
.reach__go i { transition: transform .2s; }
.reach__card:hover .reach__go i { transform: translateX(4px); }
.reach__more { list-style: none; padding: 0; margin: clamp(28px, 4vw, 40px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.reach__more li { display: flex; gap: 14px; align-items: flex-start; }
.reach__more li > i { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--oak-2); font-size: .9rem; }
.reach__more b { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.reach__more a { font-weight: 600; color: var(--ink); text-decoration: none; }
.reach__more a:hover { color: var(--forest); }
.map { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }
@media (max-width: 991px) { .reach__more { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .reach { grid-template-columns: 1fr; } }
@media (max-width: 575px) { .reach__more { grid-template-columns: 1fr; } .map iframe { height: 300px; } }

/* ---------- Pätička ---------- */
.site-footer { background: #1b2a20; color: rgba(233, 239, 231, .72); padding: clamp(56px, 7vw, 88px) 0 28px; margin-top: var(--section); font-size: .95rem; }
.site-footer a { color: rgba(233, 239, 231, .86); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.site-footer .brand__sub { color: rgba(233, 239, 231, .55); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer__social { display: flex; gap: 10px; margin-top: 22px; }
.site-footer__social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; }
.site-footer__social a:hover { background: var(--oak); border-color: var(--oak); }
.site-footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
@media (max-width: 991px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .site-footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Flash správy ---------- */
.flashes { position: fixed; right: 16px; top: 96px; z-index: 10001; max-width: min(400px, calc(100vw - 32px)); display: grid; gap: 8px; }
.flashes .alert { border-radius: 12px; border: 0; box-shadow: var(--shadow-lg); font-weight: 600; margin: 0; }

/* ---------- Animácia pri scrollovaní ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
    .reveal.is-in { opacity: 1; transform: none; }
}

@media (max-width: 991px) {
    /* backdrop-filter by vytvoril containing block pre fixed menu */
    .site-header { backdrop-filter: none; background: var(--paper); }
}

.map { position: relative; }
.map__open { position: absolute; right: 14px; top: 14px; z-index: 1; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .88rem; padding: .6em 1em; border-radius: 999px; box-shadow: var(--shadow); }
.map__open:hover { color: var(--forest); }

/* ---------- Mobil: kompaktnejšia („oddialená“) mierka celého webu ---------- */
@media (max-width: 575px) {
    html { font-size: 14px; }
    body { font-size: 14.5px; line-height: 1.6; }
    :root { --section: 48px; --gutter: 16px; --radius: 12px; }
    h1 { font-size: 1.95rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.12rem; }
    .lead { font-size: 1rem; }
    .eyebrow { font-size: .7rem; margin-bottom: .6rem; }
    .btn-ui { padding: .75em 1.2em; font-size: .9rem; }

    .topbar { font-size: .78rem; }
    .topbar__inner { min-height: 32px; }
    .site-header__inner { min-height: 60px; }
    .brand img { width: 24px; }
    .brand__name { font-size: 1.05rem; }
    .nav-toggle { width: 38px; height: 38px; }
    .site-nav { padding-top: 76px; }
    .site-nav__link { font-size: 1rem; padding: .65em .9em; }
    .mega a { font-size: .88rem; padding: .4em .5em; }

    .hero-x { padding: 20px 0 40px; }
    .hero-x__grid { gap: 22px; }
    .hero-x__media img { border-radius: 16px; aspect-ratio: 16 / 11; }
    .hero-x__badge { padding: 10px 14px; gap: 10px; left: 12px; bottom: -18px; }
    .hero-x__badge i { width: 34px; height: 34px; font-size: .9rem; }
    .hero-x__badge strong { font-size: .85rem; }
    .hero-x__badge span { font-size: .74rem; }
    .hero-x__actions { margin: 20px 0 26px; gap: 8px; }
    .hero-x__facts { padding-top: 18px; }
    .hero-x__facts strong { font-size: 1.3rem; }

    .usp__item { padding: 12px 0; gap: 12px; }
    .usp__item i { font-size: 1.05rem; }
    .usp__item strong { font-size: .92rem; }
    .usp__item span { font-size: .8rem; }

    .section-head { margin-bottom: 22px; gap: 12px; }
    .cat-grid { gap: 10px; }
    .cat-card__body { padding: 12px; }
    .cat-card h3 { font-size: 1rem; }
    .p-grid, .p-grid--3 { gap: 18px 10px; }
    .p-card__body { padding-top: 8px; }
    .p-card h3 { font-size: .95rem; }
    .p-card__price { font-size: .8rem; }
    .p-card__tag { font-size: .66rem; top: 8px; left: 8px; padding: 3px 8px; }

    .story__media img { border-radius: 16px; }
    .story__media img + img { border-width: 5px; right: -12px; bottom: -20px; }
    .story__list { gap: 14px; margin: 20px 0 24px; }
    .story__list li { grid-template-columns: 36px 1fr; gap: 12px; }
    .story__num { width: 36px; height: 36px; font-size: .9rem; }

    .step { padding-top: 20px; }
    .step::before { font-size: 2rem; margin-bottom: 10px; }
    .svc__body { padding: 16px 18px 20px; }
    .svc-row img { border-radius: 16px; }
    .cta-band { border-radius: 18px; padding: 28px 22px; gap: 20px; }

    .page-head { padding: 22px 0 22px; }
    .page-head h1 { font-size: 1.85rem; }
    .crumbs { font-size: .78rem; margin-bottom: 10px; }
    .chips { padding-top: 14px; }
    .chip { font-size: .8rem; }

    .pd__main { border-radius: 14px; }
    .pd__thumbs { gap: 6px; }
    .pd__info h1 { font-size: 1.9rem; }
    .pd__price { padding: 12px 0; margin-bottom: 14px; }
    .pd__price strong { font-size: 1.6rem; }

    .reach__card { padding: 22px; border-radius: 16px; }
    .reach__card > i { width: 44px; height: 44px; font-size: 1.05rem; margin-bottom: 12px; }
    .reach__value { font-size: 1.4rem; }
    .reach__go { margin-top: 10px; }
    .reach__more { gap: 14px; }
    .map { border-radius: 14px; }
    .map__open { font-size: .8rem; right: 10px; top: 10px; }

    .site-footer { font-size: .88rem; padding-top: 44px; }
    .site-footer__grid { gap: 26px; }
    .site-footer__bottom { margin-top: 32px; }
}

/* fotky spracované cez bin/process-photos.py majú pozadie #f4efe7 – karty ho preberajú */
.p-card__img, .pd__main--studio { background: #f4efe7; }
.pd__main--studio { border-color: transparent; }
.pd__main--studio img { object-fit: cover; }

/* ---------- Prihlásenie do administrácie ---------- */
.login-card { max-width: 420px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(28px, 5vw, 44px); box-shadow: var(--shadow); text-align: center; }
.login-card > img { margin: 0 auto 14px; }
.login-card h1 { font-size: 2rem; margin-bottom: .2em; }
.login-card form { text-align: left; margin-top: 24px; }
.login-field { margin-bottom: 16px; }
.login-field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; color: var(--ink-2); }
.login-card .form-control { border: 1px solid var(--line); background: var(--paper); border-radius: 10px !important; padding: .75em 1em; font-size: 1rem; }
.login-card .form-control:focus { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(43, 68, 51, .12); background: #fff; }
.login-card .btn-ui { margin-top: 8px; width: 100%; }
.login-back { display: inline-flex; gap: .4em; align-items: center; margin-top: 20px; font-size: .9rem; text-decoration: none; color: var(--muted); }

.link-btn { background: none; border: 0; padding: 0; color: rgba(233, 239, 231, .86); font: inherit; cursor: pointer; }
.link-btn:hover { color: #fff; }
.price-note { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 12px 18px; border-radius: 12px; background: var(--oak-soft); margin: 4px 0 24px; }
.price-note strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; color: var(--oak-2); line-height: 1; }
.price-note span { color: var(--ink-2); font-size: .92rem; }
