/* =====================================================================
   GS 2026-11 (pripomienky 2. časť) — obsahové bloky z editora + mobil
   Načítava sa v layoute za style.css a v admin editore (editor-content.css).
   ===================================================================== */

/* ---------- Stĺpce (Bloky → 2 / 3 stĺpce, obrázok + text) ---------- */
.gs-cols { display: grid; gap: 28px; margin: 24px 0; align-items: start; clear: both; }
.gs-cols-2 { grid-template-columns: 1fr 1fr; }
.gs-cols-3 { grid-template-columns: repeat(3, 1fr); }
.gs-cols-13 { grid-template-columns: 1fr 2fr; }
.gs-cols > .gs-col { min-width: 0; }
.gs-cols > .gs-col > :first-child { margin-top: 0 !important; }
.gs-cols > .gs-col > :last-child { margin-bottom: 0 !important; }
.gs-cols img { max-width: 100%; height: auto; border-radius: 10px; float: none !important; margin: 0 !important; }
.gs-media-text { align-items: center; }
.gs-media-text .gs-col-media img { width: 100%; display: block; }
@media (max-width: 768px) {
    .gs-cols-2, .gs-cols-3, .gs-cols-13 { grid-template-columns: 1fr; gap: 18px; }
}
@media (min-width: 769px) and (max-width: 992px) {
    .gs-cols-3 { grid-template-columns: 1fr 1fr; }
}

/* ---------- Galéria v texte (tlačidlo „Galéria“ v editore) ---------- */
.gs-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; clear: both; }
.gs-gallery a, .gs-gallery > img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #f1f3f7; }
.gs-gallery img { width: 100% !important; height: 100% !important; object-fit: cover; margin: 0 !important; float: none !important; border-radius: 0; transition: transform .25s ease; }
.gs-gallery a:hover img { transform: scale(1.04); }
@media (max-width: 576px) { .gs-gallery { grid-template-columns: 1fr 1fr; gap: 8px; } }

/* ---------- Box, medzera, štýly odsekov ---------- */
.gs-box { background: #f6f8fc; border-left: 4px solid #23419f; border-radius: 10px; padding: 16px 20px; margin: 24px 0; clear: both; }
.gs-box > :last-child { margin-bottom: 0 !important; }
.gs-spacer { height: 32px; line-height: 0; font-size: 0; clear: both; }
.gs-spacer-block { margin: 32px 0 !important; clear: both; }
p.gs-tight { margin-bottom: 0 !important; }
p.gs-spaced { margin-bottom: 1.6em !important; }
.gs-small { font-size: .875em; }

/* ---------- „Na tejto stránke“ — ručný blok vložený tlačidlom v editore ---------- */
.page-anchors { display: block; clear: both; background: #f6f8fc; border: 1px solid #e3e8f2; border-radius: 12px; padding: 14px 18px; margin: 0 0 32px !important; line-height: 1.6; }
p.page-anchors + p.page-anchors { margin-top: -20px !important; }
.page-anchors a { color: #23419f; text-decoration: none; font-weight: 600; }
.page-anchors a:hover { text-decoration: underline; }
.page-anchors .page-anchors-title { margin: 0 0 6px !important; }
.page-anchors ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.page-anchors li { margin: 0 0 4px !important; padding-left: 18px !important; position: relative; display: block !important; }
.page-anchors li::before { content: "›"; position: absolute; left: 4px; color: #f5b400; font-weight: 700; }

/* ---------- „Na tejto stránke“ — automatický blok (nastavenie stránky v admine) ---------- */
.gs-toc-wrap { clear: both; margin: 0 0 36px; }
.gs-toc { background: #f6f8fc; border: 1px solid #e3e8f2; border-radius: 14px; padding: 18px 22px; }
.gs-toc-title { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 700; color: #1a202c; margin: 0 0 10px; }
.gs-toc-title i { color: #23419f; }
.gs-toc ol, .gs-toc ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.gs-toc li { margin: 0 !important; padding: 0 !important; display: block !important; }
.gs-toc a { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; color: #23419f; font-weight: 600; text-decoration: none; line-height: 1.35; border-bottom: 1px dashed #dde3ee; }
.gs-toc li:last-child > a { border-bottom: 0; }
.gs-toc a::before { content: "›"; color: #f5b400; font-weight: 800; flex-shrink: 0; }
.gs-toc a:hover { color: #1a3280; text-decoration: underline; }
.gs-toc li.gs-toc-l3 > a { padding-left: 18px; font-weight: 500; font-size: .95em; }
/* vedľa seba (inline) */
.gs-toc--inline ol { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.gs-toc--inline a { border: 1px solid #d6deeb !important; background: #fff; border-radius: 999px; padding: 6px 14px; font-size: .92rem; }
.gs-toc--inline a::before { content: none; }
.gs-toc--inline li.gs-toc-l3 > a { padding-left: 14px; }
/* obrázok + obsah 50/50 */
.gs-toc-wrap--image { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.gs-toc-wrap--image-right .gs-toc-media { order: 2; }
.gs-toc-media img { width: 100%; height: auto; display: block; border-radius: 14px; margin: 0 !important; float: none !important; max-width: 100% !important; }
@media (max-width: 768px) {
    .gs-toc-wrap--image { grid-template-columns: 1fr; gap: 16px; }
    .gs-toc-wrap--image-right .gs-toc-media { order: 0; }
    .gs-toc { padding: 14px 16px; }
}
/* kotvy nech nezájdu pod sticky hlavičku */
.content-body [id], .article-body [id], .content-article [id], .section-content [id] { scroll-margin-top: 110px; }

/* ---------- Riadkovanie a medzery v texte (kompaktnejšie; v editore sa dá nastaviť aj vlastné) ---------- */
body .page-content .content-body,
body .produkty-main .content-body,
body .page-content .section-content,
body .generic-content .content-article,
body .article-content .article-body { line-height: 1.65; }
body .page-content .content-body p,
body .produkty-main .content-body p,
body .page-content .section-content p,
body .generic-content .content-article p,
body .article-content .article-body p { margin: 0 0 .85em; }
body .page-content .content-body li,
body .produkty-main .content-body li,
body .page-content .section-content li,
body .generic-content .content-article li,
body .article-content .article-body li { margin-bottom: .35em; }
body .page-content .content-body ul,
body .produkty-main .content-body ul,
body .page-content .section-content ul,
body .generic-content .content-article ul,
body .article-content .article-body ul,
body .page-content .content-body ol,
body .produkty-main .content-body ol,
body .page-content .section-content ol,
body .generic-content .content-article ol,
body .article-content .article-body ol { margin-top: .6em; margin-bottom: 1em; }
/* prázdne odseky (<p></p>) nezaberajú miesto; zámerné prázdne riadky (&nbsp;) ostávajú */
body .page-content .content-body p:empty,
body .produkty-main .content-body p:empty,
body .page-content .section-content p:empty,
body .generic-content .content-article p:empty,
body .article-content .article-body p:empty { display: none; }
/* riadkovanie nastavené v editore (inline style) sa prejaví aj vo vnorených odsekoch */
[style*="line-height"] > p, [style*="line-height"] > li { line-height: inherit; }

/* ---------- Galéria štruktúry (Médiá → Galéria) mimo katalógu ---------- */
.gs-structure-gallery-wrap { clear: both; margin-top: 32px; }

/* ---------- Sekcie (opakovateľné) ---------- */
.content-section + .content-section { margin-top: 8px; }

/* =====================================================================
   MOBIL — prekrývanie panelov
   ===================================================================== */
/* neaktívny slide nesmie zachytávať kliky (tlačidlá sú pod ním) */
.hero-slide { pointer-events: none; }
.hero-slide.active { pointer-events: auto; z-index: 1; }

@media (max-width: 768px) {
    /* hero sa prispôsobí výške obsahu: slidy v jednej bunke gridu namiesto absolútnej pozície */
    .hero { height: auto !important; min-height: 0 !important; }
    .hero-slider { display: grid; height: auto; }
    .hero-slide { position: relative !important; grid-area: 1 / 1; height: auto !important; }
    .hero-content { padding-top: 36px !important; padding-bottom: 64px; }
    .hero-tag { font-size: 12px; padding: 7px 14px; margin-bottom: 16px; }
    .hero p { font-size: 1.02rem; margin-bottom: 22px; }
    .hero-buttons { gap: 10px; }
    .hero-buttons .btn-lg { padding: 13px 18px; font-size: 1rem; }
    .hero-indicators { bottom: 22px; }
    .hero-bg-video { min-height: 100%; }
}
@media (max-width: 480px) {
    .hero h1, .hero .hero-headline { font-size: 1.75rem !important; }
}

/* tlačidlo „Späť nahor“ nad odznakom reCAPTCHA (vpravo dole) */
.back-to-top { bottom: 92px !important; }
@media (max-width: 768px) {
    .back-to-top { right: 16px !important; width: 44px; height: 44px; bottom: 86px !important; }
}

/* Servisný formulár: grid stĺpec nesmie byť širší ako displej (strana sa na mobile zmenšovala na 543 px) */
@media (max-width: 992px) {
    .service-form-section .container { grid-template-columns: minmax(0, 1fr) !important; }
    .service-form-section .container > * { min-width: 0; }
}
@media (max-width: 576px) {
    .service-form-section .device-categories { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .service-form-section .device-category { min-width: 0; }
    .service-form-section .device-category small { white-space: normal !important; }
}
/* Dlhá omrvinková navigácia (breadcrumb) v hlavičke e-shopu sa na mobile zalomí namiesto pretečenia */
@media (max-width: 768px) {
    .shop-hero .breadcrumb { flex-wrap: wrap; row-gap: 4px; }
    .shop-hero .breadcrumb > * { min-width: 0; overflow-wrap: anywhere; }
}
