/* ==========================================================
   Multimediální katalog – Data Agentura INFOPHARM
   White & blue theme on top of Bootstrap 5
   ========================================================== */

:root {
    --blue: #009ee0;          /* brand blue (from original site) */
    --blue-600: #0083c4;
    --blue-700: #0a6aa8;
    --navy: #0a4d8c;
    --navy-900: #0b2a4a;
    --ice: #eef7fd;
    --ice-2: #f6fbff;
    --line: #d8e8f4;
    --text: #2b3a4a;
    --muted: #61738a;
    --white: #fff;

    --imos: #e13852;
    --imiks: #72bf44;
    --imap: #7847d1;
    --imev: #f5890b;

    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(10, 77, 140, .06), 0 2px 8px rgba(10, 77, 140, .06);
    --shadow: 0 6px 24px rgba(10, 77, 140, .10);
    --shadow-lg: 0 18px 50px rgba(10, 77, 140, .18);

    --bs-primary: var(--blue);
    --bs-primary-rgb: 0, 158, 224;
    --bs-link-color: var(--blue-700);
    --bs-link-color-rgb: 10, 106, 168;
    --bs-link-hover-color: var(--navy);
    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-color: var(--text);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--bs-body-font-family);
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { color: var(--navy-900); font-weight: 700; letter-spacing: -.01em; }
a { color: var(--blue-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }
img { max-width: 100%; }

.row { --bs-gutter-x: 2rem; }

@media (min-width: 1400px) {
    .container { max-width: 1280px; }
}

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: .55rem 1.25rem; transition: transform .15s, box-shadow .2s, background-color .2s; }
.btn-primary {
    --bs-btn-bg: var(--blue);
    --bs-btn-border-color: var(--blue);
    --bs-btn-hover-bg: var(--blue-700);
    --bs-btn-hover-border-color: var(--blue-700);
    --bs-btn-active-bg: var(--navy);
    --bs-btn-active-border-color: var(--navy);
    box-shadow: 0 4px 14px rgba(0, 158, 224, .3);
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: .8rem 1.7rem; font-size: 1rem; }
.btn-light { color: var(--navy); }

/* ---------- Top bar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--navy-900); min-width: 0; }
.brand img { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: var(--blue-700); font-weight: 500; font-size: .8rem; }
.topnav { display: flex; gap: .35rem; }
.topnav a {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .5rem .9rem; border-radius: 999px;
    color: var(--navy); font-weight: 600; font-size: .9rem; white-space: nowrap;
}
.topnav a:hover { background: var(--ice); color: var(--navy); }
@media (max-width: 860px) {
    .topnav a span { display: none; }
    .topnav a { padding: .55rem .75rem; font-size: 1.05rem; }
}
@media (max-width: 480px) {
    .brand-text strong { font-size: .8rem; white-space: normal; }
    .brand-text small { font-size: .72rem; }
    .brand img { height: 32px; }
}

/* ---------- Hero (home) ---------- */
.hero {
    position: relative; overflow: hidden;
    min-height: min(78vh, 720px);
    display: flex; align-items: center;
    background: var(--navy) url("../katalog/images/def-bg-dai.jpg") center / cover no-repeat;
    color: var(--white);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(11, 42, 74, .35) 0%, rgba(10, 77, 140, .55) 60%, rgba(10, 77, 140, .85) 100%),
        radial-gradient(ellipse at 20% 20%, rgba(0, 158, 224, .35), transparent 60%);
}
.hero-content { position: relative; text-align: center; padding: 6rem 1rem; }
.hero-logo { height: 96px; width: auto; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .35)); }
.hero h2 { color: var(--white); font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 800; margin: 1.5rem 0 .4rem; text-shadow: 0 2px 16px rgba(0, 0, 0, .3); }
.hero p { font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 300; letter-spacing: .12em; text-transform: uppercase; opacity: .95; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 2.5rem; }
.hero-scroll {
    position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%);
    color: var(--white); font-size: 1.4rem; opacity: .8; animation: bob 2s ease-in-out infinite;
}
.hero-scroll:hover { color: var(--white); opacity: 1; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ---------- Sub bar (sub pages) ---------- */
.subbar { background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 100%); }
.subbar .container { padding-top: .7rem; padding-bottom: .7rem; }
.back-link { color: rgba(255, 255, 255, .92); font-weight: 600; font-size: .9rem; }
.back-link:hover { color: var(--white); }
.back-link i { margin-right: .35rem; transition: transform .2s; }
.back-link:hover i { transform: translateX(-3px); }

/* ==========================================================
   HOME – timeline
   ========================================================== */
.main-bg, .dif-bg { position: relative; margin: 0; }
.main-bg { background: var(--white); }
.dif-bg { background: linear-gradient(135deg, var(--navy) 0%, var(--blue-700) 55%, var(--blue) 100%); color: var(--white); }
.main-bg > .col-12, .dif-bg > .col-12 { padding: 0; position: relative; z-index: 1; }

.prologue, .prologue-dif {
    position: absolute; top: 0; right: 0; height: 100%; width: 32vw; max-width: 520px;
    background-position: right center; background-repeat: no-repeat; background-attachment: fixed; background-size: auto;
    padding: 0; z-index: 0;
    -webkit-mask-image: linear-gradient(to left, #000 55%, transparent);
    mask-image: linear-gradient(to left, #000 55%, transparent);
}
.prologue { background-image: url("../katalog/images/img1.jpg"); opacity: .9; }
.prologue-dif { background-image: url("../katalog/images/img2.jpg"); opacity: .55; mix-blend-mode: luminosity; }
@media (max-width: 1100px) { .prologue, .prologue-dif { display: none; } }

.container-fluid .row { padding: 0 0 3rem; }
.example-split > div { width: 100%; max-width: 820px; }
@media (min-width: 1100px) { .example-split > div { max-width: 66%; } }

.timeline { list-style: none; margin: 0; padding: 0; width: 100%; line-height: 1.5; }
.timeline-item { position: relative; padding-left: 44px; }
.timeline-info {
    font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--blue-700); margin: 0 0 .5rem; white-space: nowrap;
}
.dif-bg .timeline-info { color: rgba(255, 255, 255, .8); }

.timeline-marker, .timeline-marker-dif { position: absolute; top: 0; bottom: 0; left: 0; width: 18px; }
.timeline-marker::before, .timeline-marker-dif::before {
    content: ""; position: absolute; top: 3px; left: 0; width: 18px; height: 18px; border-radius: 50%;
    background: var(--blue); box-shadow: 0 0 0 5px rgba(0, 158, 224, .15);
    transition: transform .25s, background .25s;
}
.timeline-marker::after, .timeline-marker-dif::after {
    content: ""; position: absolute; top: 28px; bottom: 0; left: 8px; width: 2px;
    background: linear-gradient(var(--line), var(--line));
}
.timeline-marker-dif::before { background: var(--white); box-shadow: 0 0 0 5px rgba(255, 255, 255, .2); }
.dif-bg .timeline-marker::after, .timeline-marker-dif::after { background: rgba(255, 255, 255, .35); }
.timeline-item:last-child .timeline-marker::after,
.timeline-item:last-child .timeline-marker-dif::after { content: none; }
.timeline-item:not(.period):hover .timeline-marker::before,
.timeline-item:not(.period):hover .timeline-marker-dif::before { transform: scale(1.25); }

.timeline-content { padding-bottom: 2rem; }
.timeline-item:not(.period) .timeline-content {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.25rem 1.5rem; margin-bottom: 1.75rem; box-shadow: var(--shadow-sm);
    transition: box-shadow .25s, transform .25s;
}
.timeline-item:not(.period):hover .timeline-content { box-shadow: var(--shadow); transform: translateY(-2px); }
.dif-bg .timeline-item:not(.period) .timeline-content {
    background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: var(--white);
    box-shadow: none; backdrop-filter: blur(4px);
}
.dif-bg .timeline-item:not(.period):hover .timeline-content { background: rgba(255, 255, 255, .16); }
.timeline-content p { margin-bottom: .75rem; }
.timeline-content p:last-child { margin-bottom: 0; }
.timeline-content .btn { margin-top: .4rem; font-size: .85rem; padding: .4rem 1.1rem; }
.dif-bg .timeline-content .btn-primary {
    --bs-btn-bg: var(--white); --bs-btn-color: var(--navy); --bs-btn-border-color: var(--white);
    --bs-btn-hover-bg: var(--ice); --bs-btn-hover-color: var(--navy); --bs-btn-hover-border-color: var(--ice);
    box-shadow: none;
}

h3.timeline-title { font-size: 1.15rem; margin-bottom: .45rem; color: var(--navy-900); }
h3.timeline-title-dif { font-size: 1.15rem; margin-bottom: .45rem; color: var(--white); }

/* year headings */
.period { padding-left: 44px; }
.period .timeline-info { display: none; }
.period .timeline-marker::before, .dif-bg .period .timeline-marker::before {
    width: 18px; height: auto; top: 0; bottom: 30px; border-radius: 0; background: transparent; box-shadow: none;
    border-top: 2px solid var(--line); border-bottom: 2px solid var(--line);
}
.dif-bg .period .timeline-marker::before { border-color: rgba(255, 255, 255, .35); }
.period .timeline-marker::after { height: 30px; top: auto; }
.period .timeline-content { padding: 3.5rem 0 2.5rem; }
.period .timeline-title {
    display: inline-block; margin: 0; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1;
    background: linear-gradient(90deg, var(--navy), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dif-bg h2.timeline-title-dif { background: none; color: var(--white); -webkit-text-fill-color: var(--white); }

.video-youtube { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-sm); margin-top: 1rem; }
.collapse .card, .collapse .card-body { background: transparent; border: 0; padding: 0; color: inherit; }

/* ==========================================================
   SUB PAGES
   ========================================================== */
.subpage { padding-top: 3rem; padding-bottom: 3rem; position: relative; }
.subpage > .row:first-child h1 {
    text-align: center; font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: .5rem;
    background: linear-gradient(90deg, var(--navy), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.subpage > .row:first-child h1::after {
    content: ""; display: block; width: 64px; height: 4px; margin: 1rem auto 0; border-radius: 4px;
    background: var(--blue);
}
.subpage h5 { text-align: center; color: var(--muted); font-weight: 400; }
.subpage h5 b { color: var(--blue-700); }
.subpage h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }

.subpage-content { margin-top: 1.5rem; text-align: justify; hyphens: auto; color: var(--text); }
.subpage-content b { color: var(--navy-900); }
.pharmapa-page { margin-top: 2rem; }
.pharmapa-page iframe {
    width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0;
    border-radius: var(--radius); box-shadow: var(--shadow); background: var(--ice);
}
.subpage-content .col-md-6, .subpage-content .col-md-8, .subpage-content .col-md-4, .subpage-content .col-md-12 { margin-bottom: 1rem; }

/* images */
.subpage-content img { border-radius: var(--radius-sm); }
.js-smartPhoto { display: inline-block; position: relative; cursor: zoom-in; border-radius: var(--radius-sm); }
.js-smartPhoto img { transition: transform .35s ease, box-shadow .35s ease; }
.js-smartPhoto:hover img { transform: scale(1.02); box-shadow: var(--shadow); }

.dsp-graph { text-align: center !important; }
.dsp-graph img { width: 90%; }
.dsp-scheme { margin-top: 2rem; }
.dsp-skica { margin: 1.5rem 0; }
.dsp-skica img { width: 100%; }

.subpage-content-text { margin-top: 2rem; }
.motto {
    margin: 0 auto 1.25rem; max-width: 320px; text-align: center; color: var(--white);
    background: linear-gradient(135deg, var(--navy), var(--blue)); padding: 1rem 1.25rem;
    border-radius: var(--radius); font-weight: 700; box-shadow: var(--shadow);
}

/* info boxes */
.sub-dif-bg, .sub-dif-bg-pharmapa {
    text-align: left; margin: 2rem auto 0; padding: 1.5rem 1.75rem;
    background: var(--ice-2); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text);
}
.sub-dif-bg-pharmapa { margin-top: 0; }
.sub-dif-bg h3, .sub-dif-bg-pharmapa h3 { text-align: center; margin: .25rem 0 1.25rem; font-size: 1.25rem; color: var(--navy); }

/* lists */
.dsp-categ { padding-left: 1.2rem; }
.dsp-categ li { margin-top: .5rem; color: var(--blue); }
.dsp-categ li::marker { color: var(--blue); }
.dsp-categ li span { color: var(--navy-900); font-weight: 600; }
.dsp-categ ul { padding-left: 1.3rem; color: var(--text); }
.dsp-categ ul li { color: var(--text); margin-top: .25rem; }
.dsp-categ ul li::marker { color: var(--blue); }
.imos li::marker { color: var(--imos) !important; }
.imiks li::marker { color: var(--imiks) !important; }
.imap li::marker { color: var(--imap) !important; }
.imev li::marker { color: var(--imev) !important; }

.imos-button, .imiks-multilanguage-button {
    margin: 1.75rem auto; padding: 1rem 1.25rem; text-align: center; font-weight: 700;
    color: var(--white); border-radius: var(--radius); max-width: 380px; box-shadow: var(--shadow);
    background: linear-gradient(135deg, var(--navy), var(--blue));
}
.imiks-multilanguage-button { max-width: none; font-size: 1.1rem; }

.imos-logo { text-align: center; }
.imos-logo img { margin: auto; max-height: 350px; border-radius: 0; }

.sw-benefits h2 { text-align: center; margin-top: 2.5rem; }
.sw-benefits h3 { text-align: left !important; }
.sw-benefits .benefits-for { margin-top: 2rem; text-align: center; }
.sw-benefits .benefits-for img { border-radius: 0; }
.about-product { margin-top: 2.5rem; }

.adresses { text-align: center; margin: 3rem 0 1.25rem; }
.adresses h2 { color: var(--navy); }
.contact-video iframe, .company-video iframe {
    width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); box-shadow: var(--shadow);
}
.subpage-content iframe[src*="google.com/maps"] { border-radius: var(--radius); box-shadow: var(--shadow); }

/* galleries */
.gallery-images { text-align: center; }
.gallery-images .col-md-2 img, .gallery-images .col-md-4 img, .gallery-images .col-md-6 img, .gallery-images .col-md-8 img { width: 100%; }
.gallery-images .col-md-12 img { max-width: 80%; margin: 2rem 0; }
.gallery-title h2 { margin-top: 4rem; text-align: center; }

.main-gallery {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; text-align: center;
}
.main-gallery .js-smartPhoto { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ice); }
.main-gallery img { width: 100%; height: 100%; object-fit: cover; padding: 0; border-radius: 0; }
.main-gallery .js-smartPhoto:hover img { transform: scale(1.05); box-shadow: none; }

.edu-gallery img { margin-bottom: 1.5rem; }
.edu-centrum { text-align: center; }
.edu-centrum img { width: 85% !important; }
.iso img.iso2 { margin-top: 1.25rem; }

/* carousels */
.carousel { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--ice-2); }
.carousel-item img { display: block; width: 100%; border-radius: 0; }
.carousel-item .js-smartPhoto { display: block; border-radius: 0; }
.carousel-item .js-smartPhoto:hover img { transform: none; box-shadow: none; }
.carousel-indicators { list-style: none; margin-bottom: .75rem; }
.carousel-indicators [data-bs-target] {
    width: 10px; height: 10px; border-radius: 50%; border: 0; margin: 0 4px;
    background-color: var(--blue); opacity: .35; box-shadow: 0 0 0 2px rgba(255, 255, 255, .8);
}
.carousel-indicators .active { opacity: 1; }
.carousel-control-prev, .carousel-control-next { width: 12%; opacity: 1; }
.carousel-control-prev-icon, .carousel-control-next-icon {
    width: 44px; height: 44px; border-radius: 50%; background-size: 45%;
    background-color: rgba(10, 77, 140, .75); box-shadow: var(--shadow-sm); transition: background-color .2s, transform .2s;
}
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon { background-color: var(--blue); transform: scale(1.08); }
.katalog-carousel { margin: auto; text-align: center; max-width: 650px; }
.katalog-carousel-wide { margin: auto; text-align: center; width: 100%; }
.frpo-carousel { border: 1px solid var(--line); background: var(--white); }

/* tables */
.ples-table { text-align: left !important; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.ples-table thead { text-align: center !important; }
.ples-table .table-dark, .ples-table .table-dark th { --bs-table-bg: var(--navy); --bs-table-color: #fff; border-color: var(--navy); }
.table > :not(caption) > * > * { padding: .7rem .9rem; }
.table-responsive-auto { overflow-x: auto; }

/* before / after slider */
.before-after h2 { text-align: center; margin: 2.5rem 0 1.25rem; }
.beforeAfter {
    position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    user-select: none; touch-action: pan-y; background: var(--ice);
}
.beforeAfter img { display: block; width: 100%; border-radius: 0; pointer-events: none; }
.beforeAfter .ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.beforeAfter .ba-before img { height: 100%; object-fit: cover; object-position: left top; }
.beforeAfter .ba-handle {
    position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px;
    background: var(--white); box-shadow: 0 0 12px rgba(0, 0, 0, .35); pointer-events: none;
}
.beforeAfter .ba-handle::after {
    content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
    background: var(--blue); color: var(--white); font-size: 1.4rem; font-weight: 700; border: 3px solid var(--white);
    box-shadow: var(--shadow);
}
.beforeAfter .ba-label {
    position: absolute; top: 1rem; padding: .25rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; background: rgba(11, 42, 74, .75); color: var(--white); pointer-events: none;
}
.beforeAfter .ba-label-before { left: 1rem; }
.beforeAfter .ba-label-after { right: 1rem; }
.beforeAfter input[type=range] {
    position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0;
}

/* ---------- Price / contact band ---------- */
.section.imap-price {
    position: relative; text-align: center; color: var(--white);
    background-color: var(--navy);
    background-image: linear-gradient(135deg, rgba(11, 42, 74, .88), rgba(0, 131, 196, .78)), url("../katalog/images/imap/bg.jpg");
    background-position: center; background-size: cover; background-attachment: fixed;
    padding: 4.5rem 1rem;
}
.section.imev-price { background-image: linear-gradient(135deg, rgba(11, 42, 74, .88), rgba(0, 131, 196, .78)), url("../katalog/images/imev/bg.jpg"); }
.section.imiks-price { background-image: linear-gradient(135deg, rgba(11, 42, 74, .88), rgba(0, 131, 196, .78)), url("../katalog/images/imiks/bg.jpg"); }
.section.imos-price { background-image: linear-gradient(135deg, rgba(11, 42, 74, .88), rgba(0, 131, 196, .78)), url("../katalog/images/imos/bg.jpg"); }
.section .fixed { max-width: 960px; margin: 0 auto; }
.imap-price h2 { color: var(--white); font-weight: 400; font-size: clamp(1.2rem, 2.4vw, 1.6rem); line-height: 1.45; }
.imap-price .product-price {
    display: inline-block; margin-top: 1.5rem; padding: .5rem 1.75rem; border-radius: 999px;
    font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3);
}
.imap-price .product-benefits { margin: 1.25rem 0; line-height: 2; }
.imap-price i.fas { font-size: 1.05rem; }
.imap-price .product-contact { font-size: 1.15rem; font-weight: 600; margin-top: 1rem; }
.imap-price .product-contact-fapo {
    display: flex; align-items: center; justify-content: center; gap: 1.25rem; flex-wrap: wrap;
    margin: 1.75rem auto 0;
}
.imap-price .contact-photo {
    width: 110px; height: 110px; border-radius: 50%; flex: none;
    background: var(--white) url("../katalog/images/imap/fapo.jpg") center / cover no-repeat;
    border: 4px solid rgba(255, 255, 255, .85); box-shadow: var(--shadow-lg);
}
.imap-price .contact-info { text-align: left; }
.imap-price .contact-info span { font-weight: 300; }
.imap-price .contact-name { font-size: 1.25rem; font-weight: 700 !important; }
.imap-price .contact-position { font-style: italic; opacity: .9; }
.imap-price .contact-contacts { margin-top: .6rem; }
.imap-price .contact-contacts i { width: 1.4rem; }
.imap-price .contact-contacts a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; }
.imap-price .contact-contacts a:hover { text-decoration-color: var(--white); }

@media (hover: none), (max-width: 900px) {
    .section.imap-price, .prologue, .prologue-dif { background-attachment: scroll; }
}

/* ---------- Overview of all pages (/katalog/qr) ---------- */
.qr-search {
    position: relative; max-width: 560px; margin: 2rem auto 0;
}
.qr-search i { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--blue-700); }
.qr-search input {
    width: 100%; padding: .85rem 1.1rem .85rem 2.8rem; border-radius: 999px;
    border: 1px solid var(--line); background: var(--ice-2); color: var(--text); font: inherit;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.qr-search input:focus { outline: none; background: var(--white); border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 158, 224, .15); }
.qr-empty { text-align: center; color: var(--muted); margin-top: 2rem; }
.qr-group { margin-top: 2.75rem; }
.qr-group h2 { font-size: 1.3rem; display: flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.qr-group h2 span {
    font-size: .75rem; font-weight: 700; color: var(--blue-700); background: var(--ice);
    border-radius: 999px; padding: .15rem .6rem;
}
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.qr-card {
    display: flex; flex-direction: column; overflow: hidden; color: var(--text);
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.qr-card:hover { color: var(--text); transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(0, 158, 224, .45); }
.qr-card[hidden] { display: none; }
.qr-thumb { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--ice); overflow: hidden; }
.qr-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.qr-thumb.contain img { object-fit: contain; padding: 1rem; }
.qr-card:hover .qr-thumb img { transform: scale(1.04); }
.qr-play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(0, 158, 224, .92); color: var(--white); box-shadow: var(--shadow);
}
.qr-play i { margin-left: 3px; }
.qr-body { display: flex; flex-direction: column; gap: .3rem; padding: .9rem 1.1rem 1.1rem; flex: 1; }
.qr-code {
    align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .08em;
    color: var(--white); background: linear-gradient(135deg, var(--navy), var(--blue)); border-radius: 6px; padding: .1rem .5rem;
}
.qr-title { font-weight: 600; color: var(--navy-900); line-height: 1.35; }
.qr-url { margin-top: auto; padding-top: .35rem; font-size: .78rem; color: var(--muted); font-family: ui-monospace, Consolas, monospace; }
.qr-note { margin-top: 2.5rem; text-align: center; color: var(--muted); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer {
    text-align: center; padding: 2rem 1rem; color: var(--muted); font-size: .9rem;
    background: var(--ice-2); border-top: 1px solid var(--line);
}
.heart {
    display: inline-block; position: relative; width: 11px; height: 11px; margin: 0 9px 0 7px;
    background: #ff0036; transform: rotate(45deg); animation: heart 1s linear infinite; vertical-align: -1px;
}
.heart::before, .heart::after { content: ""; position: absolute; width: 100%; height: 100%; background: #ff0036; border-radius: 50%; }
.heart::before { top: -50%; left: 0; }
.heart::after { left: -50%; top: 0; }
@keyframes heart {
    0%, 25%, 90%, 100% { transform: rotate(45deg) scale(1); }
    30%, 70% { transform: rotate(45deg) scale(1.2); }
    50% { transform: rotate(45deg) scale(1.1); }
}

/* ---------- Back to top ---------- */
.to-top {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1020; width: 46px; height: 46px; border-radius: 50%;
    border: 0; background: var(--blue); color: var(--white); box-shadow: var(--shadow);
    opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s, background .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--navy); }

/* ---------- Lightbox ---------- */
.lb {
    position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center;
    background: rgba(8, 26, 46, .94); padding: 3.5rem 4rem;
}
.lb.open { display: flex; animation: lbIn .2s ease; }
@keyframes lbIn { from { opacity: 0; } }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-img { max-width: 100%; max-height: calc(100vh - 9rem); object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb-caption { color: #e6f2fb; margin-top: .9rem; text-align: center; font-size: .95rem; min-height: 1.4em; }
.lb-btn {
    position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: var(--white);
    width: 48px; height: 48px; border-radius: 50%; font-size: 1.2rem; display: grid; place-items: center; transition: background .2s;
}
.lb-btn:hover { background: var(--blue); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 1.5rem; left: 1.5rem; color: rgba(255, 255, 255, .7); font-size: .85rem; font-weight: 600; }
.lb.single .lb-prev, .lb.single .lb-next, .lb.single .lb-count { display: none; }
@media (max-width: 640px) {
    .lb { padding: 3.5rem .5rem 4.5rem; }
    .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
    .lb-prev { left: calc(50% - 60px); }
    .lb-next { right: calc(50% - 60px); }
}

/* ---------- Small screens ---------- */
@media (max-width: 767px) {
    .subpage-content { text-align: left; }
    .timeline-item, .period { padding-left: 34px; }
    .timeline-item:not(.period) .timeline-content { padding: 1rem 1.1rem; }
    .dsp-graph img, .edu-centrum img { width: 100% !important; }
    .gallery-images .col-md-12 img { max-width: 100%; margin: 1rem 0; }
    .hero-content { padding: 4rem 1rem 5rem; }
    .hero-logo { height: 72px; }
}

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

@media print {
    .topbar, .subbar, .hero, .to-top, .carousel-control-prev, .carousel-control-next, .carousel-indicators { display: none !important; }
}
