/* Autobazar Soška – vzhled veřejné části webu */

:root {
    --navy: #0f2a4a;
    --navy-2: #173a63;
    --blue: #1f5fa8;
    --accent: #e8792b;
    --accent-dark: #c9631b;
    --text: #1d2733;
    --muted: #5d6b7a;
    --line: #e2e7ee;
    --bg: #f4f6f9;
    --white: #fff;
    --ok: #1d7a46;
    --danger: #b3261e;
    --radius: 10px;
    --shadow: 0 2px 10px rgba(15, 42, 74, .08);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.25; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.section { padding: 48px 0; }
.section-white { background: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.lead { font-size: 1.1rem; color: var(--muted); }

/* Tlačítka */
.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 12px 22px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s; text-align: center; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; border: 2px solid currentColor; color: #fff; padding: 10px 20px; }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-ghost { background: var(--white); color: var(--navy); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg); color: var(--navy); }
.btn-small { padding: 7px 14px; font-size: .9rem; }
.btn-block { display: block; width: 100%; }

/* Horní lišta a hlavička */
.topbar { background: var(--navy); color: #c9d6e6; font-size: .85rem; }
.topbar-in { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; margin-left: 16px; }
.topbar a:first-child { margin-left: 0; }
.header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
/* Logo: zjednodušená silueta auta zepředu */
.logo-mark { width: 54px; height: 41px; flex: none; display: block; }
.logo-mark .lm-body { fill: var(--navy); transition: fill .15s; }
.logo-mark .lm-light { fill: var(--accent); }
.logo:hover .lm-body { fill: var(--navy-2); }
/* Text loga je obrázek (písmo Russo One převedené na obrázek ve 3× rozlišení) */
.logo-text { display: block; height: 28px; width: auto; }
@media (max-width: 380px) { .logo-text { height: 23px; } }
.menu { display: flex; align-items: center; gap: 4px; }
.menu-list, .submenu { list-style: none; margin: 0; padding: 0; }
.menu-list { display: flex; align-items: center; gap: 4px; }
.menu-item { position: relative; }
.menu a { display: block; text-decoration: none; color: var(--text); font-weight: 600; padding: 8px 12px; border-radius: 6px; }
.menu a:hover, .menu a.active, .menu a.active-parent { color: var(--navy); background: var(--bg); }
.menu-list > .menu-item > a.active, .menu-list > .menu-item > a.active-parent { box-shadow: inset 0 -3px 0 var(--accent); border-radius: 6px 6px 0 0; }
.sub-toggle { display: none; }
/* Podmenu na počítači: rozbalí se po najetí myší nebo při ovládání klávesnicí */
@media (min-width: 901px) {
    .has-sub > a { padding-right: 26px; }
    .has-sub > a::after { content: ""; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); }
    .submenu { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--white); border-radius: 8px; box-shadow: 0 10px 28px rgba(15,42,74,.18); padding: 6px; z-index: 60; }
    .submenu .submenu { top: -6px; left: 100%; }
    .submenu.flip { left: auto; right: 0; }
    .submenu .submenu.flip { right: 100%; }
    .submenu .has-sub > a::after { transform: translateY(-50%) rotate(-45deg); }
    .submenu a { white-space: nowrap; font-weight: 500; }
    .menu-item:hover > .submenu, .menu-item:focus-within > .submenu { display: block; }
}
.menu .menu-call { background: var(--accent); color: #fff; margin-left: 8px; }
.menu .menu-call:hover { background: var(--accent-dark); color: #fff; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; box-shadow: 0 8px 16px rgba(0,0,0,.1); }
    .menu-open .menu { display: flex; }
    .menu { max-height: calc(100vh - 70px); overflow-y: auto; }
    .menu-list { flex-direction: column; align-items: stretch; gap: 0; }
    .menu-item { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
    .menu-item > a { flex: 1; padding: 12px; border-radius: 0; }
    .menu a.active { box-shadow: inset 3px 0 0 var(--accent); border-radius: 0; }
    .menu-list > .menu-item > a.active-parent { box-shadow: none; }
    .sub-toggle { display: block; width: 48px; border: 0; border-left: 1px solid var(--line); background: none; cursor: pointer; position: relative; }
    .sub-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border: solid var(--navy); border-width: 0 2px 2px 0; transform: translate(-50%, -70%) rotate(45deg); transition: transform .2s; }
    .menu-item.open > .sub-toggle::after { transform: translate(-50%, -30%) rotate(-135deg); }
    .submenu { display: none; width: 100%; padding-left: 16px; border-top: 1px solid var(--line); }
    .submenu .menu-item:last-child { border-bottom: 0; }
    .menu-item.open > .submenu { display: block; }
    .menu .menu-call { margin: 12px 0 0; text-align: center; border-radius: 8px; border: 0; }
    .topbar-in > span:first-child { display: none; }
    .topbar-contacts { width: 100%; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
    .topbar a { margin: 0; }
}

/* Úvodní pás */
/* Úvodní pás s fotkou (Mercedes, foto Dextar Studio / Unsplash, licence Unsplash) – vlevo ztmavené kvůli čitelnosti textu */
.hero {
    background:
        linear-gradient(90deg, rgba(10, 29, 51, .92) 0%, rgba(15, 42, 74, .78) 35%, rgba(15, 42, 74, .2) 62%, rgba(15, 42, 74, 0) 85%),
        #0f2a4a url("hero-mercedes.jpg?v=3") 80% 45% / cover no-repeat;
    color: #fff; padding: 80px 0 96px; position: relative; overflow: hidden;
}
@media (max-width: 760px) {
    .hero {
        background:
            linear-gradient(180deg, rgba(10, 29, 51, .8) 0%, rgba(15, 42, 74, .55) 55%, rgba(15, 42, 74, .85) 100%),
            #0f2a4a url("hero-mercedes-mobil.jpg?v=2") 49% 50% / cover no-repeat;
        padding: 48px 0 64px;
    }
}
.hero h1 { color: #fff; max-width: 760px; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.hero p { max-width: 640px; font-size: 1.15rem; color: #dbe5f1; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-facts { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 36px; position: relative; z-index: 1; }
.hero-facts div { font-size: .95rem; color: #dbe5f1; }
.hero-facts strong { display: block; font-size: 1.7rem; color: #fff; }

/* Rychlé hledání */
.quick-search { background: var(--white); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(15,42,74,.15); padding: 20px; margin-top: -36px; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: end; }
@media (max-width: 900px) { .quick-search { grid-template-columns: 1fr 1fr; } .quick-search .btn { grid-column: 1 / -1; } }
@media (max-width: 480px) { .quick-search { grid-template-columns: 1fr; } }

/* Formulářové prvky */
label.field { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--muted); }
select, input[type=text], input[type=number], input[type=email], input[type=password], input[type=tel], textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--text); padding: 10px 12px; border: 1px solid #c9d2de; border-radius: 8px; background: var(--white);
}
select:focus, input:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }

/* Karty aut */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15,42,74,.14); }
.card-img { position: relative; aspect-ratio: 3 / 2; background: #dfe5ec; display: block; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.no-photo { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .9rem; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 4px 10px; border-radius: 20px; }
.badge-sold { background: var(--danger); }
.card-sold .card-img img { filter: grayscale(.7); opacity: .8; }
.card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.08rem; margin-bottom: 8px; }
.card-title a { color: var(--navy); text-decoration: none; }
.card-title a:hover { color: var(--blue); }
.card-params { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.card-params li { background: var(--bg); color: var(--muted); font-size: .82rem; padding: 2px 8px; border-radius: 4px; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price { font-size: 1.3rem; font-weight: 800; color: var(--navy); white-space: nowrap; }

/* Výhody */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.feature { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-top: 4px solid var(--accent); }
.feature-icon { width: 44px; height: 44px; border-radius: 50%; background: #fdeee3; color: var(--accent-dark); display: grid; place-items: center; margin-bottom: 12px; }
.feature-icon svg { width: 24px; height: 24px; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }

.cta-band { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 4px; }
.cta-band p { margin: 0; color: #c9d6e6; }

/* Obsahové stránky */
.page-head { background: var(--navy); color: #fff; padding: 32px 0; }
.page-head h1 { color: #fff; margin: 0; }
.breadcrumb { font-size: .85rem; color: #aebfd3; margin-bottom: 6px; }
.breadcrumb a { color: #dbe5f1; text-decoration: none; }
.content { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 40px); }
.content-narrow { max-width: 820px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.contact-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.contact-box h2 { font-size: 1.15rem; }
.contact-box a { font-weight: 600; }
.map-embed { margin-top: 24px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #eef0ea; height: 440px; }
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; color: var(--muted); }
.map-placeholder p { max-width: 460px; margin: 0; }

/* Lišta cookies */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--navy); color: #dbe5f1; box-shadow: 0 -6px 24px rgba(0,0,0,.2); padding: 14px 0; }
.cookie-bar[hidden] { display: none; }
.cookie-bar-in { display: flex; align-items: center; gap: 20px; }
.cookie-bar p { margin: 0; font-size: .92rem; flex: 1; }
.cookie-bar strong { color: #fff; margin-right: 6px; }
.cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie-btn { min-width: 130px; }
.cookie-btn[data-cookie-choice="nezbytne"] { background: #fff; color: var(--navy); }
.cookie-btn[data-cookie-choice="nezbytne"]:hover { background: #e2e7ee; color: var(--navy); }
@media (max-width: 760px) {
    .cookie-bar-in { flex-direction: column; align-items: stretch; gap: 12px; }
    .cookie-actions .cookie-btn { flex: 1; min-width: 0; }
}
.footer-credit { text-align: right; font-size: .8rem; margin-top: 8px; }
.footer .footer-credit a { color: #8fa3bb; text-decoration: none; }
.footer .footer-credit a:hover { color: #fff; text-decoration: underline; }
.footer-link { background: none; border: 0; padding: 0; color: #aebfd3; font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; margin-top: 8px; }
.footer-link:hover { color: #fff; }
@media (max-width: 600px) { .map-embed { height: 340px; } }
.big-phone { font-size: 1.35rem; font-weight: 800; text-decoration: none; display: block; color: var(--navy); }

/* Text z redakčního systému (editor CKEditor) */
.cms { max-width: 860px; margin: 0 auto; font-size: 1.05rem; }
.cms-intro { margin-bottom: 24px; }
.cms::after { content: ""; display: table; clear: both; }
.cms > :first-child { margin-top: 0; }
.cms h2 { margin: 1.6em 0 .5em; }
.cms h3, .cms h4 { margin: 1.4em 0 .4em; }
.cms ul, .cms ol { padding-left: 1.4em; margin: 0 0 1em; }
.cms li { margin-bottom: .3em; }
.cms blockquote { margin: 1.5em 0; padding: 16px 20px; background: var(--bg); border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; }
.cms blockquote p:last-child { margin-bottom: 0; }
.cms hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.cms a { font-weight: 600; }
.cms img { border-radius: 8px; }
.cms figure { margin: 1.5em 0; }
.cms figure.image { display: table; clear: both; text-align: center; margin: 1.5em auto; }
.cms figure.image img { display: block; margin: 0 auto; max-width: 100%; min-width: 100%; }
.cms figure.image_resized { max-width: 100%; display: block; box-sizing: border-box; }
.cms figure.image_resized img { width: 100%; }
.cms figcaption { display: table-caption; caption-side: bottom; color: var(--muted); font-size: .9rem; padding-top: 6px; }
.cms .image-style-side, .cms .image-style-align-right { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.cms .image-style-align-left { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.cms .image-style-align-center, .cms .image-style-block-align-center { margin-left: auto; margin-right: auto; }
.cms .image-style-block-align-left { margin-left: 0; }
.cms .image-style-block-align-right { margin-right: 0; }
.cms .image-inline { display: inline-flex; max-width: 100%; vertical-align: middle; }
.cms figure.table { display: block; overflow-x: auto; margin: 1.5em 0; }
.cms table { width: 100%; border-collapse: collapse; }
.cms th, .cms td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.cms th { background: var(--bg); }
.cms figure.media { margin: 1.5em 0; }
.cms figure.media iframe, .cms figure.media > div { width: 100%; }
.cms iframe { max-width: 100%; border: 0; }
@media (max-width: 600px) {
    .cms .image-style-side, .cms .image-style-align-right, .cms .image-style-align-left { float: none; margin: 1em auto; max-width: 100%; }
}
/* Blok „Vítáme vás“ na úvodní stránce: odrážky jako zelené fajfky */
.welcome ul { list-style: none; padding: 0; margin: 0 0 1em; }
.welcome li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.welcome li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Nabídka vozů – filtr */
.listing { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.filter { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; position: sticky; top: 90px; display: grid; gap: 12px; }
.filter h2 { font-size: 1.1rem; margin: 0; }
.filter .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filter-reset { text-align: center; font-size: .9rem; }
.filter-toggle { display: none; }
.brand-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.brand-links a { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 6px 14px; text-decoration: none; color: var(--text); font-weight: 600; font-size: .92rem; }
.brand-links a span { color: var(--muted); font-weight: 400; }
.brand-links a:hover { border-color: var(--accent); color: var(--navy); }
.brand-links a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.brand-links a.active span { color: #c9d6e6; }
.listing-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.listing-bar select { width: auto; }
.empty { background: var(--white); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--muted); }
@media (max-width: 900px) {
    .listing { grid-template-columns: 1fr; }
    .filter { position: static; display: none; }
    .filter-open .filter { display: grid; }
    .filter-toggle { display: block; margin-bottom: 16px; }
}

/* Detail auta */
.detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }
.gallery-main { position: relative; aspect-ratio: 3 / 2; background: #dfe5ec; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-count { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: .85rem; padding: 3px 10px; border-radius: 20px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-top: 8px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; aspect-ratio: 3 / 2; background: none; }
.gallery-thumbs button.active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.price-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; position: sticky; top: 90px; }
.price-box .price { font-size: 2rem; display: block; margin: 4px 0 16px; }
.price-box .btn { margin-bottom: 10px; }
.price-label { color: var(--muted); font-size: .9rem; }
.params { width: 100%; border-collapse: collapse; margin: 16px 0; }
.params th, .params td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.params th { color: var(--muted); font-weight: 500; width: 50%; }
.params td { font-weight: 600; }
.block { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-top: 24px; }
.block h2 { font-size: 1.25rem; }
.equip { columns: 3 200px; column-gap: 24px; list-style: none; padding: 0; margin: 0; }
.equip li { break-inside: avoid; padding: 3px 0 3px 22px; position: relative; font-size: .95rem; }
.equip li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.equip-group { margin-bottom: 18px; }
.equip-group h3 { font-size: .95rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.note { white-space: pre-line; }
.sold-banner { background: #fdecea; color: var(--danger); border-radius: var(--radius); padding: 12px 16px; font-weight: 700; margin-bottom: 16px; }
.back-link { display: inline-block; margin-bottom: 16px; text-decoration: none; font-weight: 600; }

/* Zvětšené fotky (lightbox) */
.lightbox { position: fixed; inset: 0; background: rgba(5, 12, 22, .94); z-index: 100; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; border-radius: 4px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #c9d6e6; }

/* Patička */
.footer { background: var(--navy); color: #c9d6e6; margin-top: 48px; padding: 40px 0 24px; }
.footer h3 { color: #fff; font-size: 1rem; }
.footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }

/* Tisk detailu auta */
@media print {
    .topbar, .header, .footer, .gallery-thumbs, .price-box .btn, .back-link, .similar { display: none !important; }
    body { background: #fff; }
    .detail { grid-template-columns: 1fr; }
    .block, .price-box, .content { box-shadow: none; padding: 0; position: static; }
    .gallery-main { max-width: 60%; }
}
