/* Shared presentation for the existing PHP routes and catalogue publishers. */
html { scroll-padding-top: 90px; }
body { font-size: 16px; letter-spacing: 0; }
.site-header { background: #fff7fb; border-bottom: 1px solid var(--line); }
.site-header .top-bar { padding-left: 16px; padding-right: 16px; }
.site-header .logo { flex-shrink: 0; letter-spacing: 0; }
.site-header .nav-underline { display: none; }
.site-wrapper > .site-header .site-wrapper { padding-left: 0; padding-right: 0; }
.site-header .nav-link { border-radius: 6px; }
.site-header .mobile-menu-panel { margin: 0 auto; max-width: 1128px; }
.logo, h1, h2, h3, h4, .nav-link { overflow-wrap: anywhere; }
h1 { font-size: 2rem; line-height: 1.25; margin: 0 0 24px; }
h2 { font-size: 1.5rem; line-height: 1.3; margin: 28px 0 16px; }
h3 { font-size: 1.2rem; line-height: 1.4; margin: 24px 0 12px; }
p { margin: 0 0 16px; }
img { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.main { padding: 24px 0 40px; }
.row, .clearfix { display: flow-root; }
.clear { clear: both; }
.center { text-align: center; }
.main .col-md-9 { float: left; width: calc(100% - 282px); min-width: 0; }
.main .sidebar { float: right; width: 250px; margin: 0 0 24px 30px; font-size: .9rem; }
.main .product-page { background: transparent; border: 0; padding: 0; }
.main .product-page > .row { padding: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; list-style: none; gap: 8px; margin: 0 0 24px; padding: 0; color: var(--muted); font-size: .9rem; }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--muted); }
.sidebar .list-group-item { list-style: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sidebar .list-group-item > a { font-weight: 700; }
.sidebar .dropdown-menu { display: block; list-style: none; padding: 8px 0 0; margin: 0; }
.sidebar .dropdown-menu a { display: block; padding: 6px 0; }
.related-catalogs { border-top: 2px solid var(--accent); border-bottom: 1px solid var(--line); }
.related-catalogs summary { min-height: 44px; padding: 10px 0; color: var(--accent-dark); font-weight: 700; cursor: pointer; }
.sidebar .fa { display: none; }
.article-body { max-width: 78ch; font-size: 1.05rem; }
.article-body p { line-height: 1.75; }
.article-body img { max-height: 480px; max-width: min(100%, 380px); object-fit: contain; }
.article-body img[style*="float"] { max-width: 42%; margin: 0 20px 12px 0; }
.article-body h2, .article-body h3 { clear: both; }
.article-body ul { padding-left: 24px; }
.article-body .blog > h1 { font-size: 1.5rem; margin: 0 0 24px; }
.sidebar-products { padding: 24px 0; border-bottom: 1px solid var(--line); }
.sidebar-products .item { display: flow-root; }
.sidebar-products .item > a:has(img) { float: left; width: 190px; margin: 0 24px 16px 0; }
.sidebar-products .item img { display: block; width: 190px; height: 230px; object-fit: contain; background: white; }
.sidebar-products .item h2, .sidebar-products .item h3 { font-size: 1.25rem; margin: 0 0 12px; }
.sidebar-products hr { display: none; }
.catalog { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.catalog > h2, .catalog > h3, .catalog > div[style*="clear"], .catalog > .clear, .catalog > .dop-catalog { width: 100%; }
.catalog > .clear:empty, .catalog > div[style*="clear"]:empty { display: none; }
.catalog > a.clear, .catalog > div:has(> a[id]), .catalog > div:has(> a:not(.year_archive) > img) { clear: none; width: calc((100% - 36px) / 3); }
.catalog > a.clear { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-weight: 600; text-align: center; }
.catalog img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: contain; margin-top: 8px; }
.catalog .dop-catalog img { max-width: 340px; margin: 0 auto; }
.year_archive_div { display: inline-flex; }
.year_archive { display: block; border: 1px solid var(--line); background: white; padding: 8px 12px; border-radius: 6px; }
.catalog-cover { display: block; width: 100%; height: auto; aspect-ratio: 360 / 510; object-fit: contain; background: white; }
.catalog-icon { object-fit: contain; }
.table-content { width: 100%; table-layout: fixed; border-collapse: collapse; }
.table-content td { vertical-align: top; padding: 10px; overflow-wrap: anywhere; }
.table-content img { width: 100px; }
.gallery { min-width: 0; }
.demo-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.demo-gallery > a { display: block; min-width: 0; background: white; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.demo-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 360 / 510; object-fit: contain; }
.fotorama:not(.fotorama--ready) { min-height: 480px; display: block; }
.fotorama:not(.fotorama--ready) > a { display: none; }
.fotorama:not(.fotorama--ready) > a:first-child { display: block; }
.fotorama:has(.fotorama__wrap) { min-height: 0; }
.fotorama img { max-width: none; }
.fotorama__stage { background: white; }
.fotorama__thumb-border { border-color: var(--accent); }
.pswp { z-index: 10000; }
.pswp img { max-width: none; }
.pswp button { border-radius: 0; }
.btn { display: inline-block; min-height: 44px; padding: 10px 14px; background: white; border: 1px solid var(--line); border-radius: 6px; color: var(--accent-dark); margin: 6px 4px; }
.steps-block { clear: both; margin: 24px 0 0; padding: 24px 0; background: #fff0f9; border-top: 1px solid var(--line); }
.steps-block .row { display: flex; flex-wrap: wrap; gap: 24px; align-items: start; }
.steps-block .steps-block-col { flex: 1 1 220px; min-width: 0; }
.steps-block h4 { margin: 0 0 6px; font-size: 1rem; color: var(--accent-dark); }
.steps-block em { font-style: normal; color: var(--muted); font-size: .9rem; }
.steps-block .fa { display: none; }
.site-footer { clear: both; background: #f9e6f2; border-top: 1px solid var(--line); margin-top: 30px; padding: 30px 0; }
.site-footer .footer-heading { font-size: 1.15rem; margin: 0 0 14px; }
.site-footer nav { justify-content: flex-start; gap: 14px 24px; font-size: .95rem; }
.site-footer .country { margin: 22px 0; }
.site-footer .country img { width: 28px; height: 20px; object-fit: cover; margin-right: 12px; }
.site-footer .footer-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.site-footer .footer-meta p { margin: 0; }
@media (max-width: 800px) {
    .main .col-md-9 { float: none; width: 100%; }
    .main .sidebar { float: none; width: 100%; margin: 0 0 20px; }
    .main .row > .sidebar { margin-top: 24px; }
    .article-body { max-width: none; }
}
@media (max-width: 680px) {
    .container { padding: 0 12px; }
    .site-header .logo { font-size: 1.3rem; }
    h1 { font-size: 1.65rem; }
    h2 { font-size: 1.35rem; }
    .main { padding-top: 20px; }
    .breadcrumb { margin-bottom: 18px; }
    .sidebar-products .item > a:has(img) { width: 112px; margin-right: 16px; }
    .sidebar-products .item img { width: 112px; height: 150px; }
    .sidebar-products .item h2, .sidebar-products .item h3 { font-size: 1.1rem; }
    .catalog > a.clear, .catalog > div:has(> a[id]), .catalog > div:has(> a:not(.year_archive) > img) { width: calc((100% - 18px) / 2); }
    .demo-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .table-content td { padding: 5px; font-size: .82rem; }
    .table-content h3 { font-size: .9rem; }
    .fotorama:not(:has(.fotorama__wrap)) { min-height: 360px; }
}
