/* ============================================================
   KATALOGS — shop-like, dense, contact always visible.
   No footer.php of its own: the shared footer is simply recoloured.
   ============================================================ */
[data-theme="katalogs"]{
    --bg:#ffffff; --bg-alt:#f3f5f8; --panel:#ffffff;
    --ink:#13294b; --ink-2:#1d3a66; --text:#28364d; --muted:#6b778a;
    --line:rgba(19,41,75,.12);
    --brand:#2e8b57; --brand-2:#38a169; --spruce:#e6f3ec; --accent:#2e8b57;
    --slat-dark:rgba(19,41,75,.92);
    --font-display:'Archivo', -apple-system, sans-serif;
    --font-body:'Archivo', -apple-system, sans-serif;
    --radius:10px; --radius-sm:8px;
    --shadow:0 8px 24px rgba(19,41,75,.10); --shadow-sm:0 2px 8px rgba(19,41,75,.08);
}
[data-theme="katalogs"] body{ background:var(--bg); color:var(--text); font-family:var(--font-body); }
[data-theme="katalogs"] h1, [data-theme="katalogs"] h2, [data-theme="katalogs"] h3{ font-weight:800; letter-spacing:-.02em; color:var(--ink); }

.kt-in{ max-width:1280px; margin:0 auto; padding:0 clamp(14px,3vw,32px); }

/* ---------------- header: two rows ---------------- */
.kt-head{ position:sticky; top:0; z-index:50; background:#fff; box-shadow:0 1px 0 var(--line); }
.kt-top .kt-in{ display:flex; align-items:center; gap:18px; padding-top:12px; padding-bottom:12px; }
.kt-logo{ flex:1 1 auto; min-width:0; text-decoration:none; color:var(--ink); }
.kt-logo img{ height:42px; width:auto; display:block; }
.kt-logo b{ font-size:clamp(1rem,2.2vw,1.35rem); font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:block; }
.kt-phone{ flex:0 0 auto; display:flex; align-items:center; gap:8px; color:var(--ink); text-decoration:none; font-weight:700; }
.kt-phone svg{ color:var(--brand); }
.kt-wa{ flex:0 0 auto; background:var(--brand); color:#fff; padding:9px 16px; border-radius:99px; font-weight:700; font-size:.88rem; text-decoration:none; }
.kt-lang{ flex:0 0 auto; display:flex; gap:2px; }
.kt-lang a{ font-size:.74rem; font-weight:700; color:var(--muted); padding:4px 6px; border-radius:6px; text-decoration:none; }
.kt-lang a.on{ background:var(--bg-alt); color:var(--ink); }

.kt-bar{ background:var(--ink); }
.kt-bar .kt-in{ display:flex; gap:4px; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.kt-bar .kt-in::-webkit-scrollbar{ display:none; }
.kt-bar a{ flex:0 0 auto; color:rgba(255,255,255,.82); text-decoration:none; font-weight:600; font-size:.9rem;
           padding:12px 14px; white-space:nowrap; border-bottom:3px solid transparent; }
.kt-bar a:hover, .kt-bar a.on{ color:#fff; border-bottom-color:var(--brand-2); }

/* ---------------- banner ---------------- */
.kt-banner{ background:var(--ink) center/cover no-repeat; position:relative; }
.kt-banner::before{ content:''; position:absolute; inset:0; background:linear-gradient(90deg, rgba(19,41,75,.88) 0%, rgba(19,41,75,.35) 70%, rgba(19,41,75,.15) 100%); }
.kt-banner .kt-in{ position:relative; padding-top:clamp(40px,7vw,90px); padding-bottom:clamp(40px,7vw,90px); }
.kt-banner-box{ max-width:560px; color:#fff; }
.kt-tag{ display:inline-block; background:rgba(255,255,255,.14); color:#fff; font-size:.76rem; font-weight:700; padding:5px 10px; border-radius:99px; margin-bottom:14px; }
.kt-banner h1{ color:#fff; font-size:clamp(1.9rem,4.4vw,3.2rem); line-height:1.08; margin:0 0 12px; }
.kt-banner p{ color:rgba(255,255,255,.85); margin:0; font-size:1.05rem; }
.kt-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:22px; }
.kt-btn{ background:var(--brand); color:#fff; padding:13px 20px; border-radius:var(--radius); font-weight:700; text-decoration:none; }
.kt-btn-light{ background:#fff; color:var(--ink); }

/* ---------------- sections ---------------- */
.kt-sec{ padding:clamp(36px,6vw,72px) 0; }
.kt-sec-alt{ background:var(--bg-alt); }
.kt-head2{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom:20px; }
.kt-head2 h2{ font-size:clamp(1.4rem,2.6vw,2rem); margin:0; }
.kt-head2 a{ color:var(--brand); font-weight:700; text-decoration:none; }

.kt-tiles{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.kt-tile{ position:relative; display:flex; flex-direction:column; background:#fff; border:1px solid var(--line);
          border-radius:var(--radius); overflow:hidden; text-decoration:none; color:var(--ink); transition:box-shadow .15s, transform .15s; }
.kt-tile:hover{ box-shadow:var(--shadow); transform:translateY(-2px); }
.kt-tile-img{ aspect-ratio:4/3; background:var(--bg-alt); display:block; }
.kt-tile-img img{ width:100%; height:100%; object-fit:cover; display:block; }
.kt-tile-name{ padding:12px 14px; font-weight:700; }
.kt-count{ position:absolute; top:10px; right:10px; background:#fff; color:var(--ink); font-weight:800; font-size:.8rem;
           min-width:28px; height:28px; border-radius:99px; display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-sm); }

.kt-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.kt-grid .pcard{ position:relative; display:flex; flex-direction:column; height:auto; background:#fff; border:1px solid var(--line);
                 border-radius:var(--radius); overflow:hidden; box-shadow:none; text-decoration:none; }
.kt-grid .pcard img{ aspect-ratio:1/1; width:100%; height:auto; object-fit:cover; }
.kt-grid .pcard-info{ position:static; background:none; padding:10px 12px 12px; color:var(--ink); }
.kt-grid .pcard-info h3{ font-size:.95rem; font-weight:700; line-height:1.3; color:var(--ink); margin:0; }
.kt-grid .pcard-meta{ color:var(--muted); font-size:.8rem; }
.kt-grid .pcard-price{ top:10px; left:10px; right:auto; background:var(--brand); color:#fff; border-radius:6px; font-weight:800; }

/* the shared footer, recoloured */
[data-theme="katalogs"] .cta-band{ background:var(--brand); }
[data-theme="katalogs"] .footer{ background:var(--ink); }

@media (max-width: 980px){
    .kt-tiles, .kt-grid{ grid-template-columns:repeat(2,1fr); }
    .kt-phone span{ display:none; }            /* icon only, still tappable */
}
@media (max-width: 520px){
    .kt-wa{ display:none; }                    /* in the bottom bar already */
    .kt-lang a:not(.on){ display:none; }
}
