/* ==========================================================================
   romanbarton.cz – vzhled veřejné části
   Vychází z dema v .temp/romanbarton.cz (dist/site.css).
   default.css se načítá před tímto souborem a zůstává beze změny.
   ========================================================================== */

:root {
    --orange: #ce8c2c;
    --orange-light: #dda34c;
    --orange-dark: #875818;
    --ink: #242b29;
    --ink-soft: #3d4743;
    --paper: #fff;
    --muted: #55615d;
    --line: #e2e6e1;
    --soft: #f2f5f2;
    --serif: Georgia, 'Times New Roman', serif;
    --sans: Arial, Helvetica, sans-serif;
    --wrap: 1280px;
    --gutter: 56px;
    --head-h: 82px;
}

/* --- Základ --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.7; }
a { color: inherit; text-underline-offset: 5px; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: #edc995; color: var(--ink); }
:focus-visible { outline: 3px solid #8b5914; outline-offset: 5px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.2; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

.wrap { max-width: var(--wrap); margin: auto; padding-inline: var(--gutter); }
.skip { position: fixed; top: -100px; left: 10px; z-index: 100; background: #fff; padding: 10px; }
.skip:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* --- Tlačítka ------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 25px; background: var(--orange); color: var(--ink);
    border: 1px solid var(--orange); border-radius: 7px; cursor: pointer;
    text-decoration: none; font-size: 15px; font-weight: 600; line-height: 1.35;
    transition: background .2s, transform .2s;
}
.btn:hover { background: var(--orange-light); transform: translateY(-2px); }
.btn.outline { background: transparent; border-color: #a5b0aa; }
.btn.outline:hover { background: var(--soft); }
.btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.dark:hover { background: var(--ink-soft); border-color: var(--ink-soft); }

.eyebrow {
    display: block; text-transform: uppercase; letter-spacing: 2px; font-size: 12px;
    font-weight: 600; line-height: 1.6; color: var(--muted); margin-bottom: 25px;
}

/* --- Hlavička a navigace -------------------------------------------------- */
.header { position: sticky; top: 0; z-index: 30; background: #fffffff2; backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.head { display: flex; align-items: center; justify-content: space-between; gap: 26px; min-height: var(--head-h); }
.brand { text-decoration: none; line-height: 1.1; font-family: var(--serif); font-weight: 400; font-size: 29px; letter-spacing: -1.2px; }
.brand small { display: block; font-family: var(--sans); font-size: 12px; line-height: 1.7; letter-spacing: 0; margin-top: 4px; color: var(--muted); }
.brand-dot { color: var(--orange); }
.head > .btn.outline { border-color: var(--orange); color: #805214; background: #fff; flex-shrink: 0; }

.nav { margin-left: auto; }
.nav-list { display: flex; gap: 28px; align-items: center; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.nav-list li { position: relative; }
.nav-list a { display: block; text-decoration: none; padding-block: 10px; }
.nav-list a:hover, .nav-list .active > a { color: var(--orange-dark); }
.nav-list > .active > a { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.nav-list .dropdown-toggle::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }

/* podmenu */
.nav-sub { list-style: none; margin: 0; padding: 10px 0; }
@media (min-width: 1001px) {
    .nav-sub {
        position: absolute; top: 100%; left: -18px; min-width: 230px; z-index: 40;
        background: #fff; border: 1px solid var(--line); border-radius: 8px;
        box-shadow: 0 12px 25px #242b2914; visibility: hidden; opacity: 0;
        transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
    }
    .nav-list li:hover > .nav-sub, .nav-list li:focus-within > .nav-sub { visibility: visible; opacity: 1; transform: none; }
    .nav-sub a { padding: 7px 18px; }
    .nav-sub .nav-sub { top: -11px; left: 100%; }
    .nav-cta { display: none !important; }
}

.nav-toggle { display: none; align-items: center; gap: 10px; background: none; border: 0; padding: 10px; cursor: pointer; font-size: 14px; }
.nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after { display: block; width: 20px; height: 2px; background: var(--orange-dark); transition: transform .2s, background .2s; }
.nav-toggle-icon { position: relative; }
.nav-toggle-icon::before, .nav-toggle-icon::after { content: ''; position: absolute; left: 0; }
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }
.nav-open .nav-toggle-icon { background: transparent; }
.nav-open .nav-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* --- Hlavička podstránky -------------------------------------------------- */
.page-head { padding-block: 64px 48px; border-bottom: 1px solid var(--line); margin-bottom: 50px; }
.page-head h1 { font-family: var(--serif); font-weight: 400; line-height: 1.12; font-size: clamp(40px, 5.5vw, 70px); letter-spacing: -2px; max-width: 950px; margin: 0; }
.page-head .eyebrow { margin-bottom: 18px; }
.page-head .subtitle { max-width: 700px; font-size: 20px; color: var(--muted); margin: 20px 0 0; }

.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: '/'; padding-inline: 10px; color: #a5b0aa; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--orange-dark); }

/* --- Obsah stránky (text z administrace) ---------------------------------- */
.page-body { padding-bottom: 80px; }
.prose { max-width: 800px; margin: 0 auto; font-size: 18px; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { line-height: 1.25; letter-spacing: -.6px; margin: 48px 0 22px; }
.prose h2 { font-size: 34px; }
.prose h3 { font-size: 27px; }
.prose h4 { font-size: 22px; }
.prose p { margin: 0 0 23px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 23px; }
.prose li { margin-bottom: 10px; }
.prose a { color: var(--orange-dark); }
.prose a.btn { color: var(--ink); }
.prose a.btn.dark { color: #fff; }
.prose img { border-radius: 10px; }
.prose p > img, .prose figure img { margin: 32px 0; }
.prose figure { margin: 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: -20px; }
.prose blockquote { border-left: 3px solid var(--orange); padding-left: 25px; margin: 35px 0; }
.prose iframe { max-width: 100%; border: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 23px; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; }
.prose .lead, .prose .subtitle { font-size: 21px; color: var(--muted); }

/* široké prvky uvnitř textu – vyjedou z úzkého sloupce na šířku stránky */
.prose .wide, .prose .price-list, .prose .contact-layout, .prose .about-layout, .prose .article-grid {
    width: min(calc(var(--wrap) - 2 * var(--gutter)), calc(100vw - 2 * var(--gutter)));
    margin-left: 50%; transform: translateX(-50%);
}

/* výpisy (kategorie stránek, hledání…) využijí celou šířku */
/* výpis kategorie má body-novinka-kategorie-N jako první třídu; detail stránky ji má až jako druhou */
body[class^="body-novinka-kategorie-"] .prose, .body-hledej .prose { max-width: none; }
/* úvodní text kategorie nad kartami ve šířce běžného textu */
body[class^="body-novinka-kategorie-"] .prose > :is(p, h2, h3, ul, ol, blockquote, img, figure) { max-width: 800px; }
body[class^="body-novinka-kategorie-"] .prose > img { margin-bottom: 30px; }

/* --- Úvodní stránka ------------------------------------------------------- */
.hero-band { background: var(--orange); }
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 58px; align-items: center; padding-block: 40px; }
.hero:not(:has(.portrait-wrap)) { grid-template-columns: 1fr; padding-block: 80px; }
.hero h1 { font-family: var(--serif); font-size: clamp(78px, 7.8vw, 112px); font-weight: 400; line-height: .95; letter-spacing: -4.8px; margin: 0 0 28px; color: #1e241f; }
.hero h1 em { font-style: italic; color: inherit; }
.hero-text p { font-size: 19px; line-height: 1.45; margin: 0 0 24px; }
.hero-text p:first-child { font-size: 27px; line-height: 1.5; margin-bottom: 12px; }
.hero .location { color: var(--ink); font-size: 14px; margin: 16px 0 0; letter-spacing: .3px; }
.portrait-wrap { position: relative; z-index: 1; }
.portrait { width: 100%; height: 510px; object-fit: cover; object-position: center 38%; border-radius: 8px; }
.portrait-caption { position: absolute; bottom: 20px; left: -36px; background: var(--ink); color: #fff; padding: 16px 24px; border-radius: 6px; line-height: 1.45; box-shadow: 0 4px 16px #242b2912; }
.portrait-caption b { display: block; font-size: 22px; font-weight: 400; }
.portrait-caption span { font-size: 13px; color: #d3ddd6; }

.facts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; text-align: center; padding-block: 18px; font-size: 14px; border-bottom: 1px solid var(--line); }
.facts b, .facts strong { font-weight: 600; }
.facts-text { display: contents; }
.facts-text > * { margin: 0; border-left: 1px solid var(--line); }

.home-intro { padding: 54px 0 20px; }
.intro-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; margin-bottom: 34px; }
.intro-grid h2 { font-size: clamp(48px, 5.2vw, 72px); line-height: 1.03; letter-spacing: -2.7px; margin: 0; }
.intro-grid > div { border-left: 1px solid var(--line); padding-left: 30px; }
.intro-grid p { line-height: 1.6; margin: 0 0 18px; }
.intro-grid p:last-child { margin-bottom: 0; }

.approaches { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 30px; border-top: 1px solid #d6b88d; }
.approach { padding: 22px 0 16px; }
.approach + .approach { border-left: 1px solid var(--line); padding-left: 28px; }
.approach .number { display: block; font-size: 15px; font-weight: 600; line-height: 1.2; margin-bottom: 22px; color: #8b5914; }
.approach .number::after { content: ''; display: block; background: #d6b88d; width: 22px; height: 1px; margin-top: 12px; }
.approach h3 { font-size: 29px; line-height: 1.3; letter-spacing: -.8px; margin: 0 0 16px; }
.approach h3 a { text-decoration: none; }
.approach h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.approach p { font-size: 16px; line-height: 1.65; color: var(--muted); margin: 0; }

.home-content { padding-block: 40px; }

.story { background: var(--ink); color: #fff; display: grid; grid-template-columns: 1fr 1fr; min-height: 540px; }
.story:not(:has(.story-img)) { grid-template-columns: 1fr; min-height: 0; }
.story-img { width: 100%; height: 100%; min-height: 540px; object-fit: cover; object-position: 58% center; }
.story-copy { padding: 55px 54px; max-width: 680px; align-self: center; }
.story .eyebrow { color: #e9bd7c; margin-bottom: 26px; }
.story h2 { font-size: 43px; line-height: 1.18; letter-spacing: -1.5px; margin: 0 0 24px; }
.story p { color: #d7ded8; font-size: 16px; }
.story a { color: #edc88e; }

.section { padding-block: 88px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 42px; }
.section-head h2 { font-size: 43px; line-height: 1.14; letter-spacing: -1.5px; margin: 0; }
.section-head .eyebrow { margin-bottom: 13px; }
.home-references { padding-block: 65px 45px; }

.quotes { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 36px; }
.quote { margin: 0; border-left: 1px solid #cbd4cd; padding: 0 0 0 24px; }
.quote:first-child { border-color: var(--orange); }
.quote .mark { font-family: var(--serif); font-size: 54px; color: var(--orange); line-height: .8; display: block; margin-bottom: 20px; }
.quote p { font-family: var(--serif); font-size: 24px; line-height: 1.5; margin: 0 0 22px; }
.quote cite { font-size: 13px; font-style: normal; color: var(--muted); }
.quote-note { font-size: 12px; color: var(--muted); margin: 32px 0 0; }
.quote-note p { margin: 0; }

.first-steps { background: var(--orange); overflow: hidden; }
.steps-grid { display: grid; grid-template-columns: .85fr 1.15fr 1fr; gap: 38px; align-items: center; min-height: 275px; padding-block: 35px; }
.steps-grid:not(:has(.steps-photo)) { grid-template-columns: .85fr 2.15fr; }
.steps-grid h2 { font-size: 68px; line-height: 1.02; letter-spacing: -2.4px; margin: 0; }
.steps-copy { border-left: 1px solid #876127; padding-left: 30px; }
.steps-copy p { font-size: 15px; line-height: 1.5; margin: 0 0 12px; }
.steps-copy strong, .steps-copy b { font-weight: 600; }
.steps-copy .btn { margin-top: 8px; }
.steps-photo { width: 100%; height: 275px; object-fit: cover; object-position: 40% 55%; border-radius: 7px; }

/* --- Komponenty pro obsah vkládaný v administraci ------------------------- */
.price-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 50px; }
.price-card { border: 1px solid var(--line); border-radius: 12px; padding: 30px; }
.price-card:first-child { border-top: 4px solid var(--orange); }
.price-card h2 { font-size: 27px; line-height: 1.3; min-height: 70px; margin: 15px 0; }
.price { font-size: 34px; font-family: var(--serif); margin: 24px 0; }
.price-card p { font-size: 15px; color: var(--muted); }
.price-card .eyebrow { margin-bottom: 0; }

.contact-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 90px; margin-bottom: 40px; }
.contact-email { display: block; font-family: var(--serif); font-size: clamp(25px, 3.5vw, 42px); letter-spacing: -1px; margin: 28px 0 12px; color: #885a1b; }
.contact-phone { display: inline-block; font-size: 23px; margin-bottom: 18px; }
.contact-card { background: var(--soft); padding: 34px; border-radius: 12px; }
.contact-card h2 { font-size: 30px; margin-top: 0; }
.contact-card .btn { margin-top: 20px; }

.about-layout { display: grid; grid-template-columns: 330px 1fr; gap: 70px; align-items: start; }
.about-side { position: sticky; top: 130px; }
.about-side img { width: 100%; border-radius: 150px 150px 10px 10px; margin: 0; }
.about-side .location { font-size: 13px; color: var(--muted); margin-top: 20px; }
.about-layout h2:first-child { margin-top: 0; }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 50px; }
.article-card { display: block; padding: 27px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; transition: border-color .2s, transform .2s; }
.prose .article-card { color: inherit; }
.article-card:hover { border-color: var(--orange); transform: translateY(-4px); }
.article-card time { font-size: 13px; color: var(--muted); }
.article-date { font-size: 14px; color: var(--muted); margin-bottom: 30px; }
.article-card h2 { font-size: 27px; line-height: 1.3; letter-spacing: -.5px; margin: 18px 0; }
.article-card p { font-size: 15px; color: var(--muted); margin-bottom: 0; }
.article-card img { display: block; width: 100%; aspect-ratio: 5 / 3; object-fit: cover; border-radius: 6px; margin: 0 0 20px; }

.client-reference { padding: 32px; margin: 30px 0; background: var(--soft); border-radius: 10px; }
.client-reference p:last-child { font-weight: 600; margin-bottom: 0; }
.reading-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 25px; padding-top: 25px; border-top: 1px solid var(--line); margin-top: 50px; font-size: 15px; }
.notice { padding: 22px 26px; background: var(--soft); border-left: 3px solid var(--orange); border-radius: 0 8px 8px 0; margin: 30px 0; }

/* --- Patička -------------------------------------------------------------- */
.footer { background: var(--ink); color: #eff3ee; padding: 56px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 2fr; gap: 50px; }
.footer .brand { font-size: 32px; letter-spacing: -1px; }
.footer p, .footer a { font-size: 14px; }
.footer p { color: #c3cec7; }
.footer-links { columns: 2; column-gap: 50px; }
.footer-links a { display: block; text-decoration: none; padding-block: 4px; break-inside: avoid; }
.footer-links a:hover { text-decoration: underline; }
.legal { border-top: 1px solid #54605b; margin-top: 35px; padding-top: 22px; color: #c3cec7; font-size: 12px; line-height: 1.7; }
.legal p { margin: 0; font-size: 12px; }
.legal a { font-size: 12px; }

/* --- Cookie lišta a tlačítko nahoru (přebíjí default.css) ----------------- */
.eu-cookies { background: var(--ink); color: #eff3ee; font-size: 14px; padding: 14px 20px; z-index: 50; }
.eu-cookies button { background: var(--orange); color: var(--ink); border: 0; border-radius: 6px; padding: 8px 16px; margin: 0 0 0 14px; font-weight: 600; cursor: pointer; }
#totop a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 4px 16px #242b2929; }
#totop a:hover { background: var(--orange); color: var(--ink); }
#totop svg { width: 18px; height: 18px; }

/* --- Moduly redakčního systému (náhrada tříd Bootstrapu) ----------------- */
.container { max-width: var(--wrap); margin: auto; }
.row { display: flex; flex-wrap: wrap; margin-inline: -12px; }
.row > * { padding-inline: 12px; flex: 0 0 100%; max-width: 100%; }
.row.no-gutters { margin-inline: 0; }
.row.no-gutters > * { padding-inline: 0; }
.col, .col-xl { flex: 1 0 0% !important; }
.col-4 { flex: 0 0 33.333% !important; max-width: 33.333% !important; }
.col-6 { flex: 0 0 50% !important; max-width: 50% !important; }
.col-8 { flex: 0 0 66.666% !important; max-width: 66.666% !important; }
@media (min-width: 576px) {
    .col-sm-4 { flex: 0 0 33.333% !important; max-width: 33.333% !important; }
    .col-sm-6 { flex: 0 0 50% !important; max-width: 50% !important; }
    .col-sm-8 { flex: 0 0 66.666% !important; max-width: 66.666% !important; }
    .offset-sm-2 { margin-left: 16.666%; }
    .offset-sm-6 { margin-left: 50%; }
}
@media (min-width: 768px) {
    .col-md-3 { flex: 0 0 25% !important; max-width: 25% !important; }
    .col-md-4 { flex: 0 0 33.333% !important; max-width: 33.333% !important; }
    .col-md-6 { flex: 0 0 50% !important; max-width: 50% !important; }
}
@media (min-width: 992px) {
    .col-lg-3 { flex: 0 0 25% !important; max-width: 25% !important; }
    .col-lg-4 { flex: 0 0 33.333% !important; max-width: 33.333% !important; }
    .col-lg-5 { flex: 0 0 41.666% !important; max-width: 41.666% !important; }
    .offset-lg-3 { margin-left: 25%; }
}

/* formuláře */
.form-group { margin-bottom: 18px; }
.form-group.row { align-items: center; }
.col-form-label, .control-label { display: block; font-size: 15px; font-weight: 600; padding-block: 8px; }
.form-control, .input-control, .control-input input, .control-input textarea, .control-input select {
    display: block; width: 100%; padding: 12px 14px; background: #fff;
    border: 1px solid #c8d0ca; border-radius: 7px; font-size: 16px; line-height: 1.5;
    transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .input-control:focus, .control-input input:focus, .control-input textarea:focus {
    outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px #ce8c2c33;
}
textarea.form-control { min-height: 140px; resize: vertical; }
.prose input[type="checkbox"], .prose input[type="radio"] { accent-color: var(--orange); width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
.btn-primary { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-outline-light { background: transparent; border-color: #a5b0aa; color: inherit; }
/* zpravodaj - odhlášení, výběr jazyka a kategorií */
.btn-outline-danger { background: transparent; border-color: #b3412e; color: #b3412e; }
.btn-outline-danger:hover { background: #fbefec; }
.custom-control-inline { display: inline-flex; margin-right: 24px; }
.custom-checkbox input, .custom-radio input { accent-color: var(--orange); }
.mt-4 { margin-top: 24px; }

/* hlášky */
.alert { position: relative; padding: 16px 22px; margin-bottom: 24px; border-radius: 8px; border-left: 3px solid var(--orange); background: var(--soft); font-size: 16px; }
.alert-success { border-left-color: #4f8a5b; background: #eef6ef; }
.alert-danger { border-left-color: #b3412e; background: #fbefec; }
.alert .close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; }

/* karty, záložky, galerie, přílohy */
.card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.card.border-0 { border: 0; }
.card-img-top, .card-img { width: 100%; object-fit: cover; margin: 0 !important; border-radius: 0 !important; }
.card-body { padding: 22px; flex: 1; }
.card-title { font-size: 22px; margin: 0 0 10px; }
.card-title a { text-decoration: none; }
.card-text { font-size: 15px; color: var(--muted); }
.row > * > .card { margin-bottom: 24px; }

.nav-tabs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0 !important; margin: 0 0 30px; border-bottom: 1px solid var(--line); }
.nav-tabs .nav-item { margin: 0; }
.nav-tabs .nav-link { display: block; padding: 10px 16px; font-size: 15px; text-decoration: none; color: var(--muted) !important; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nav-tabs .nav-link:hover { color: var(--ink) !important; }
.nav-tabs .nav-link.active { color: var(--ink) !important; border-bottom-color: var(--orange); }

.gallery .row > * { margin-bottom: 24px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; border-radius: 8px; }
.attachment { padding: 22px 26px; background: var(--soft); border-radius: 10px; margin-bottom: 40px; }
.attachment li { margin-bottom: 6px; }
.back a { font-size: 15px; }

/* pomocné třídy používané v šablonách modulů */
.list-unstyled { list-style: none; padding-left: 0 !important; }
.d-flex { display: flex; }
.d-block { display: block; }
.flex-column { flex-direction: column; }
.justify-content-between { justify-content: space-between; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-danger, .red { color: #b3412e; }
.text-dark { color: var(--ink); }
.bg-transparent { background: transparent; }
.rounded { border-radius: 8px; }
.rounded-0 { border-radius: 0; }
.border-0 { border: 0; }
.shadow { box-shadow: 0 8px 24px #242b2912; }
.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: 16px !important; }
.mb-5 { margin-bottom: 48px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-5 { margin-top: 48px !important; }
.my-3 { margin-block: 16px !important; }
.py-5 { padding-block: 48px !important; }
.clearfix::after { content: ''; display: table; clear: both; }
@media (min-width: 768px) { .mt-md-4 { margin-top: 24px !important; } }

/* --- Responzivita --------------------------------------------------------- */
@media (min-width: 1500px) {
    :root { --wrap: 1390px; }
    .hero { gap: 80px; }
    .hero h1 { font-size: 125px; }
    .portrait { height: 565px; }
}

@media (max-width: 1100px) {
    :root { --gutter: 32px; }
    .nav-list { gap: 18px; font-size: 13px; }
    .head > .btn { display: none; }
    .hero { gap: 45px; }
    .hero h1 { font-size: clamp(65px, 8vw, 88px); }
    .portrait { height: 460px; }
    .hero-text p:first-child { font-size: 22px; }
    .intro-grid { gap: 25px; }
    .story-copy { padding: 38px 32px; }
    .story h2 { font-size: 35px; }
    .approach h3 { font-size: 25px; }
    .quotes { gap: 24px; }
    .quote p { font-size: 21px; }
    .steps-grid { grid-template-columns: .8fr 1.1fr .8fr; gap: 25px; }
    .steps-grid h2 { font-size: 53px; }
    .steps-copy { padding-left: 22px; }
    .about-layout { gap: 45px; grid-template-columns: 280px 1fr; }
    .contact-layout { gap: 45px; }
}

/* mobilní menu */
@media (max-width: 1000px) {
    .nav-toggle { display: inline-flex; margin-left: auto; }
    .nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        max-height: calc(100vh - var(--head-h)); overflow-y: auto;
        background: #fff; border-bottom: 1px solid var(--line);
        padding: 12px var(--gutter) 24px; box-shadow: 0 12px 25px #242b2912;
    }
    .nav-open .nav { display: block; }
    .nav-list { display: block; font-size: 16px; }
    .nav-list > li { border-bottom: 1px solid var(--line); }
    .nav-list a { padding-block: 12px; }
    .nav-sub { padding: 0 0 10px 18px; }
    .nav-sub a { padding-block: 7px; font-size: 15px; }
    .nav-list .dropdown-toggle::after { display: none; }
    .nav-cta { display: flex !important; margin-top: 18px; }
}

@media (min-width: 761px) and (max-width: 950px) {
    .hero h1 { font-size: 62px; }
    .portrait { height: 470px; }
    .brand { font-size: 25px; }
    .article-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    :root { --gutter: 24px; --head-h: 76px; }
    body { font-size: 16px; }
    .brand { font-size: 26px; }
    .brand small { font-size: 11px; }

    .page-head { padding-block: 40px 30px; margin-bottom: 35px; }
    .page-head h1 { font-size: 46px; letter-spacing: -1.5px; overflow-wrap: break-word; }
    .page-head .subtitle { font-size: 18px; }
    .prose { font-size: 17px; }
    .prose h2 { font-size: 31px; margin-top: 37px; }
    .page-body { padding-bottom: 50px; }

    .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 32px 28px; }
    .hero h1 { font-size: clamp(64px, 14.5vw, 102px); letter-spacing: -3.7px; margin-bottom: 20px; }
    .hero-text p:first-child { font-size: 23px; line-height: 1.3; }
    .hero-text p { font-size: 17px; }
    .hero .location { font-size: 13px; }
    .portrait-wrap { max-width: 430px; margin-inline: auto; width: 100%; }
    .portrait { height: auto; aspect-ratio: 1.06; object-position: center 35%; border-radius: 7px; }
    .portrait-caption { left: 12px; bottom: 12px; padding: 12px 18px; }
    .portrait-caption b { font-size: 20px; }
    .portrait-caption span { font-size: 12px; }

    .facts { grid-auto-flow: row; gap: 9px; }
    .facts-text > * { border-left: 0; }

    .home-intro { padding: 36px 0 22px; }
    .intro-grid { grid-template-columns: 1fr; gap: 24px; margin-bottom: 30px; }
    .intro-grid h2 { font-size: 54px; letter-spacing: -2px; }
    .intro-grid > div { padding: 0; border: 0; }
    .intro-grid p { font-size: 16px; }

    .approaches { grid-auto-flow: row; gap: 0; }
    .approach { padding: 24px 0; border-bottom: 1px solid var(--line); }
    .approach:last-child { border-bottom: 0; }
    .approach + .approach { border-left: 0; padding-left: 0; }
    .approach .number { margin-bottom: 17px; }
    .approach h3 { font-size: 30px; }

    .story { grid-template-columns: 1fr; min-height: 0; }
    .story-img { height: 350px; min-height: 0; }
    .story-copy { padding: 38px 24px; }
    .story h2 { font-size: 37px; letter-spacing: -1px; }

    .section { padding-block: 56px; }
    .section-head { display: block; margin-bottom: 32px; }
    .section-head h2 { font-size: 37px; }
    .section-head > a { display: inline-block; margin-top: 16px; font-size: 15px; }
    .home-references { padding-block: 42px 32px; }
    .quotes { grid-template-columns: 1fr; gap: 32px; }
    .quote p { font-size: 23px; }
    .quote .mark { margin-bottom: 12px; }
    .quote { padding-left: 20px; }

    .steps-grid, .steps-grid:not(:has(.steps-photo)) { grid-template-columns: 1fr; gap: 24px; padding-block: 30px; }
    .steps-grid h2 { font-size: 56px; letter-spacing: -1.8px; }
    .steps-copy { border: 0; padding: 0; }
    .steps-copy p { font-size: 16px; max-width: 500px; }
    .steps-photo { height: 200px; object-position: center 57%; border-radius: 6px; }

    .price-list, .article-grid, .contact-layout, .about-layout { grid-template-columns: 1fr; gap: 30px; }
    .price-card h2 { min-height: 0; }
    .price-card, .article-card, .contact-card { padding: 25px; }
    .contact-email { font-size: 30px; overflow-wrap: anywhere; }
    .about-side { position: static; max-width: 270px; margin: auto; }
    .client-reference { padding: 22px; }

    .footer { padding-top: 40px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-links { column-gap: 24px; }

    .form-group .text-right { text-align: left; }
    .eu-cookies button { margin: 10px 0 0; }
}

@media (max-width: 360px) {
    .hero h1 { font-size: 58px; letter-spacing: -3px; }
    .hero-text p:first-child { font-size: 21px; }
    .brand { font-size: 23px; }
    .intro-grid h2 { font-size: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
