/* ===========================================================================
   Wprov - základní vzhled veřejného webu. Součást enginu, neupravuje se.

   Web si vzhled přizpůsobí vlastním souborem v assets/ (config theme.styles),
   nejjednodušeji přepsáním proměnných:

       :root { --accent: #b45309; --font: Georgia, serif; }

   Kdo chce úplně vlastní styly, vypne tenhle soubor (theme.base_css = false).
   =========================================================================== */

:root {
    --accent: #0d6efd;
    --accent-dark: #0a4fb8;
    --accent-text: #fff;
    --text: #1f2937;
    --muted: #64748b;
    --bg: #fff;
    --bg-soft: #f4f7fb;
    --border: #e2e8f0;
    --header-bg: #fff;
    --footer-bg: #0b2545;
    --footer-text: #cbd5e1;
    --radius: 10px;
    --container: 1180px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { line-height: 1.25; margin: 1.6em 0 .6em; }
h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: .4em; }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
h3 { font-size: 1.2rem; }
p, ul, ol, table, blockquote { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* --- hlavička a menu ---------------------------------------------------- */
.header { background: var(--header-bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
/* Kotvy (/kontakt/#poptavka) nesmí zajet pod připnutou hlavičku: rezerva = její
   výška, kterou změří site/base.js (--header-height); bez skriptu odhad. */
html { scroll-padding-top: calc(var(--header-height, 90px) + 16px); }
.header__inner { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.logo { font-weight: 800; font-size: 1.3rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.logo img { display: block; max-height: 52px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav .is-active > a { background: var(--bg-soft); color: var(--accent); }
/* Podmenu: rozbalí se najetím myší nebo klávesnicí. */
.nav li { position: relative; }
.nav .nav__sub {
    display: none; position: absolute; top: 100%; left: 0; z-index: 30; min-width: 220px; padding: 6px;
    flex-direction: column; gap: 0; background: var(--header-bg); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}
.nav li:hover > .nav__sub, .nav li:focus-within > .nav__sub { display: flex; }
.nav .nav__sub a { white-space: nowrap; }
.nav__caret { display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .6; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--header-bg); border-bottom: 1px solid var(--border); padding: 8px 20px 16px; }
    .nav.is-open { display: block; }
    .nav ul { flex-direction: column; }
    /* Na mobilu je podmenu vidět rovnou, odsazené pod svou položkou. */
    .nav .nav__sub { display: flex; position: static; min-width: 0; padding: 0 0 4px 16px; border: 0; box-shadow: none; background: none; }
    .nav__caret { display: none; }
}

/* --- obsah --------------------------------------------------------------- */
.main { padding: 32px 0 56px; min-height: 50vh; }
.wysiwyg table { border-collapse: collapse; width: 100%; }
.wysiwyg th, .wysiwyg td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.wysiwyg blockquote { border-left: 4px solid var(--accent); padding: 4px 0 4px 16px; color: var(--muted); }

.button, .btn { display: inline-block; padding: 10px 20px; border-radius: 8px; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-text); font-weight: 600; text-decoration: none; cursor: pointer; font: inherit; }
.button:hover, .btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--accent-text); }
.button--secondary { background: transparent; color: var(--accent); }

.notice { padding: 12px 16px; border-radius: var(--radius); margin: 0 0 1em; }
.notice--ok { background: #e8f7ee; color: #14532d; }
.notice--error { background: #fdecec; color: #7f1d1d; }

/* --- formuláře ----------------------------------------------------------- */
.inquiry { display: grid; gap: 14px; }
.inquiry__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.inquiry__field { margin: 0; display: grid; gap: 4px; }
.inquiry__field label { font-weight: 600; font-size: .95rem; }
.inquiry__field label span { color: #dc2626; }
.inquiry input, .inquiry select, .inquiry textarea { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font: inherit; }
.inquiry input:focus, .inquiry select:focus, .inquiry textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.inquiry__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.inquiry__note, .inquiry__hint { color: var(--muted); font-size: .9rem; margin: 0; }
.inquiry input[type="file"] { padding: 8px; background: var(--bg); }
.inquiry input[type="checkbox"] { width: auto; padding: 0; accent-color: var(--accent); }
.inquiry__check { align-self: end; }
.inquiry__check label { display: flex; gap: 8px; align-items: center; min-height: 44px; font-weight: 400; }

/* --- patička ------------------------------------------------------------- */
.footer { background: var(--footer-bg); color: var(--footer-text); padding: 32px 0; font-size: .95rem; }
.footer a { color: #fff; }
.footer__inner { display: grid; gap: 12px; }
.footer__contact { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__contact strong { color: #fff; }
.footer__note, .footer__copy { margin: 0; }
.footer__copy { opacity: .7; font-size: .85rem; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .9rem; }
.credit { margin: 0; padding: 12px 16px 14px; background: var(--footer-bg); color: var(--footer-text); border-top: 1px solid rgba(255, 255, 255, .1); text-align: center; font-size: .875rem; }
.credit a { color: inherit; text-decoration: none; }
.credit__by strong { color: #fff; font-weight: 700; }
.credit__by:hover strong { text-decoration: underline; }
.credit span { margin: 0 8px; opacity: .5; }
.credit__consent { padding: 0; border: 0; background: none; color: inherit; font: inherit; opacity: .75; cursor: pointer; }
.credit__consent:hover { opacity: 1; text-decoration: underline; }

/* --- pevné bloky (Nastavení → Pevné bloky) -----------------------------
   Vlastní HTML správce: obal nemá žádný vzhled (odsazení, pozadí), ten
   určuje vložený kód. Třídy slot--… slouží jen k cílení z CSS webu. */
/* Bok vedle obsahu; pásy uvnitř obsahu pak nejdou přes celou šířku okna. */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.has-sidebar .band { margin-left: 0; margin-right: 0; padding-left: 24px; padding-right: 24px; border-radius: var(--radius); }
.has-sidebar .main > .container > .with-sidebar > .with-sidebar__content > .page > .block:first-child.band { margin-top: 0; }
@media (max-width: 860px) { .with-sidebar { grid-template-columns: 1fr; } }

/* --- bloky obsahu stránky ------------------------------------------------- */
.block { margin: 0 0 2.4rem; }
.block-title { margin-top: 0; }
.block-intro { color: var(--muted); max-width: 70ch; }

/* Pás přes celou šířku okna - sekce úvodní strany a podobně. */
.band { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: clamp(32px, 5vw, 64px) calc(50vw - 50%); }
.band > :first-child { margin-top: 0; }
.band > :last-child { margin-bottom: 0; }
.band--light { background: var(--bg-soft); }
.band--accent { background: var(--accent); color: var(--accent-text); }
.band--dark { background: var(--footer-bg); color: #e2e8f0; }
.band--accent a:not(.button), .band--dark a:not(.button) { color: inherit; }
.band--accent h2, .band--accent h3, .band--dark h2, .band--dark h3 { color: inherit; }
.band--accent .button { background: #fff; border-color: #fff; color: var(--accent-dark); }
.band--accent .button--secondary, .band--dark .button--secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.main > .container > .page > .block:first-child.band { margin-top: -32px; }

/* úvodní pás */
.hero { position: relative; display: grid; align-items: center; min-height: clamp(260px, 42vw, 520px); border-radius: var(--radius); overflow: hidden; }
/* Úvodní pás uvnitř pásu: obrázek a ztmavení přes celou šířku okna,
   text zůstává zarovnaný s obsahem stránky. */
.band:has(> .hero) { position: relative; padding-top: 0; padding-bottom: 0; }
.band > .hero { position: static; border-radius: 0; }
.band > .hero .hero__content { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(40px, 7vw, 96px); }
.hero--image { color: #fff; }
.hero__bg { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--hero-max, 1920px); height: 100%; object-fit: cover; }
/* Širší okno než fotka (nad 1920 px): fotka zůstane uprostřed a její okraje
   se krátce zprůhlední do pozadí pásu - web ho nastaví podle barev okrajů
   fotky proměnnou --hero-bg (barva nebo přechod). */
.band:has(> .hero--image) { background: var(--hero-bg, var(--footer-bg)); }
@media (min-width: 1921px) {
    .band > .hero--image .hero__bg { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
}
.hero--image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 20, 40, .78), rgba(8, 20, 40, .25)); }
.hero__content { position: relative; z-index: 1; max-width: 680px; padding: clamp(20px, 4vw, 48px) 0; }
.hero--image .hero__content { padding-left: clamp(20px, 4vw, 48px); }
.band .hero--image .hero__content { padding-left: 0; }
.hero__title { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.12; margin: 0 0 .5em; color: inherit; }
.hero__text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); opacity: .92; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.hero--image .button--secondary { color: #fff; border-color: rgba(255,255,255,.85); }

/* výhody / karty */
.features { display: grid; gap: 20px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.features--1 { --cols: 1; gap: 12px; } .features--2 { --cols: 2; } .features--3 { --cols: 3; } .features--4 { --cols: 4; }
.feature { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); }
.feature__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--bg-soft); color: var(--accent); margin-bottom: 10px; }
.feature__icon .icon { width: 26px; height: 26px; }
.feature__title { margin: 0 0 6px; font-size: 1.15rem; }
.feature__title a { color: inherit; text-decoration: none; }
.feature__title a:hover { color: var(--accent); }
.feature p { margin: 0; color: var(--muted); }
/* dlaždice s odkazem: klikací celá (odkaz nadpisu ji překryje), barevný nadpis se šipkou, zvedne se */
.feature--link { position: relative; border-bottom: 3px solid var(--accent); transition: border-color .15s, box-shadow .15s, transform .15s; }
.feature--link:hover { border-color: var(--accent); box-shadow: 0 8px 22px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.feature--link .feature__title a { color: var(--accent); }
/* Podbarvení a rámeček v barvě webu - .features před třídou, ať to styl webu u .feature nepřebije. */
.features .feature--link { background: color-mix(in srgb, var(--accent) 6%, var(--card, #fff)); border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
    border-bottom: 3px solid var(--accent); }
.features .feature--link:hover { border-color: var(--accent); }

/* Jeden sloupec = řádky pod sebou: ikona, text, u odkazu kulaté tlačítko se šipkou vpravo. */
.features--1 .feature { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; align-items: center; }
.features--1 .feature__icon { grid-row: span 2; margin: 0; }
.features--1 .feature--link { padding-right: 84px; }
.features--1 .feature--link .feature__arrow { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
    width: 44px; height: 44px; margin: 0; border-radius: 50%; background: var(--accent); color: #fff; font-size: 1.3rem; line-height: 1; }
.features--1 .feature--link:hover .feature__arrow { transform: translate(3px, -50%); }
@media (max-width: 640px) {
    .features--1 .feature { grid-template-columns: minmax(0, 1fr); }
    .features--1 .feature__icon { display: none; }
    .features--1 .feature--link { padding-right: 66px; }
    .features--1 .feature--link .feature__arrow { right: 16px; width: 38px; height: 38px; }
}
.feature__link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.feature__arrow { display: inline-block; margin-left: .3em; transition: transform .15s; }
.feature--link:hover .feature__arrow { transform: translateX(3px); }

/* postup: očíslované kroky v řadě (na mobilu pod sebou) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); counter-reset: step; }
.steps--1 { --cols: 1; } .steps--2 { --cols: 2; } .steps--3 { --cols: 3; } .steps--4 { --cols: 4; } .steps--5 { --cols: 5; }
.step { position: relative; counter-increment: step; padding-top: 58px; }
.step::before {
    content: counter(step); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 44px; height: 44px;
    border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 800; font-size: 1.2rem;
}
.step:not(:last-child)::after { content: ''; position: absolute; top: 22px; left: 54px; right: -10px; height: 2px; background: var(--border); }
.step__title { margin: 0 0 6px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); }

/* čísla */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin: 0; text-align: center; }
.stat__value { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.1; color: var(--accent); }
.band--accent .stat__value, .band--dark .stat__value { color: inherit; }
.stat__label { margin: 4px 0 0; color: var(--muted); }
.band--accent .stat__label, .band--dark .stat__label { color: inherit; opacity: .85; }

/* výzva k akci */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px; border-radius: var(--radius); background: var(--bg-soft); }
.band .cta { padding: 0; background: none; }
.cta h2 { margin: 0 0 4px; }
.cta p { margin: 0; }

/* sloupce, obrázek s textem */
.columns { display: grid; gap: 28px; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
.columns--2 { --cols: 2; } .columns--3 { --cols: 3; }
.media-text { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.media-text--right .media-text__image { order: 2; }
.media-text__image { width: 100%; height: auto; border-radius: var(--radius); }
.media-text__body h2 { margin-top: 0; }
.block-image img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.block-image--content img { width: auto; max-width: 100%; }
.block-image figcaption { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.block-image { margin: 0; }
.block-heading__subtitle { color: var(--muted); font-size: 1.1rem; margin-top: -.4em; }
.block-button--center { text-align: center; }

/* tabulka, kontakt, otevírací doba */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table tr.is-highlight { background: var(--highlight-soft, #fff4cc); font-weight: 700; }
.data-table th, .data-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.data-table thead th { background: var(--bg-soft); }
.contact-card__list { display: grid; gap: 8px; margin: 0 0 1em; }
.contact-card__list div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.contact-card__list dt { color: var(--muted); }
.contact-card__list dd { margin: 0; font-weight: 600; }
.hours__table { border-collapse: collapse; min-width: min(100%, 360px); }
.hours__table th, .hours__table td { padding: 7px 14px 7px 0; border-bottom: 1px solid var(--border); text-align: left; }
.hours__table th { font-weight: 500; }
.hours__table .is-today { font-weight: 700; color: var(--accent); }
.hours__note { color: var(--muted); margin-top: 10px; }
.icon { width: 1.15em; height: 1.15em; vertical-align: -.2em; }

/* časté dotazy */
.faq { display: grid; gap: 10px; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); }
.faq__item summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; position: relative; padding-right: 44px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); }
.faq__item[open] summary::after { content: '\2212'; }
.faq__answer { padding: 0 18px 16px; color: var(--muted); }

/* video, oddělovač */
.embed { position: relative; aspect-ratio: 16 / 9; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.embed__title { color: var(--muted); font-size: .9rem; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 0; }
.divider--space { height: 24px; }

@media (max-width: 860px) {
    .steps { --cols: 1 !important; gap: 0; }
    .step { padding: 0 0 22px 60px; min-height: 44px; }
    .step:not(:last-child)::after { top: 50px; bottom: 4px; left: 21px; right: auto; width: 2px; height: auto; }
    .features--3, .features--4 { --cols: 2; }
    .columns--3 { --cols: 1; }
    .media-text { grid-template-columns: 1fr; }
    .media-text--right .media-text__image { order: 0; }
}
@media (max-width: 560px) {
    .features, .columns { --cols: 1 !important; }
    .contact-card__list div { grid-template-columns: 1fr; gap: 0; }
}

/* --- souhlas s cookies (partial/consent.php) -------------------------------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; display: flex; justify-content: center; }
.consent[hidden] { display: none; }
.consent__inner { width: 100%; max-width: 760px; padding: 20px 22px; background: var(--card, #fff); color: var(--text); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0, 0, 0, .18); }
.consent__title { margin: 0 0 6px; font-weight: 700; font-size: 1.1rem; color: var(--ink, inherit); }
.consent__text { margin: 0 0 14px; font-size: .95rem; }
.consent__id { margin: -6px 0 14px; font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* Obě tlačítka stejně výrazná - odmítnout musí jít stejně snadno jako souhlasit. */
.consent__button { flex: 1 1 160px; justify-content: center; text-align: center; }
.consent-placeholder { padding: 18px 20px; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); }
.consent-placeholder .button { margin-left: 8px; }

/* --- potvrzení o odeslání formuláře (site/base.js) - okno přes celou stránku --- */
.form-modal { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 20px; background: rgba(15, 23, 30, .6); }
.form-modal__box { width: 100%; max-width: 480px; padding: 32px 28px 26px; text-align: center; background: var(--card, #fff); color: var(--text);
    border-radius: var(--radius, 12px); box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.form-modal__icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: #e8f7ee; position: relative; }
.form-modal__icon::after { content: ''; position: absolute; left: 22px; top: 18px; width: 18px; height: 10px; border-left: 4px solid #16804a;
    border-bottom: 4px solid #16804a; transform: rotate(-45deg); }
.form-modal__text .notice { margin: 0 0 20px; padding: 0; background: none; color: inherit; font-size: 1.1rem; line-height: 1.5; }
.form-modal__close { min-width: 160px; justify-content: center; }

/* --- vyjíždějící zpráva (wprov.toast v site/base.js) --- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 1200; max-width: min(520px, calc(100vw - 32px)); padding: 14px 20px;
    border-radius: var(--radius, 10px); background: var(--ink, #1f2933); color: #fff; font-size: .98rem; line-height: 1.45;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .25); cursor: pointer; opacity: 0; transform: translate(-50%, 24px);
    transition: opacity .25s, transform .25s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast--error { background: var(--toast-error, #b42318); }
.toast--ok { background: var(--toast-ok, #16804a); }
