/* Obsahové bloky z editoru (popisy zboží a kategorií, stránky, nabídkové listy).
   Sloupce se přeskládají samy: tablet 4 → 2, mobil → pod sebou (nebo „po dvou“, má-li blok třídu gbt-grid--pairs). */
.gbt-grid { display: grid; gap: 21px; margin: 16px 0; align-items: start; }
.gbt-grid > .gbt-col { min-width: 0; }
.gbt-grid > .gbt-col > :first-child { margin-top: 0; }
.gbt-grid > .gbt-col > :last-child { margin-bottom: 0; }
.gbt-grid-1 { grid-template-columns: 1fr; }
.gbt-grid-2 { grid-template-columns: repeat(2, 1fr); }
.gbt-grid-3 { grid-template-columns: repeat(3, 1fr); }
.gbt-grid-4 { grid-template-columns: repeat(4, 1fr); }
.gbt-grid-2-1 { grid-template-columns: 2fr 1fr; }
.gbt-grid-1-2 { grid-template-columns: 1fr 2fr; }
.gbt-grid-2-1-2 { grid-template-columns: 2fr 1fr 2fr; }
.gbt-grid-1-2-1 { grid-template-columns: 1fr 2fr 1fr; }
.gbt-grid-1-1-2 { grid-template-columns: 1fr 1fr 2fr; }
.gbt-grid-2-1-1 { grid-template-columns: 2fr 1fr 1fr; }
/* rozvržení převzatá ze starého systému (šířky Bootstrap 7+5, 5+7, 5+3+4 z 12) */
.gbt-grid-7-5 { grid-template-columns: 7fr 5fr; }
.gbt-grid-5-7 { grid-template-columns: 5fr 7fr; }
.gbt-grid-5-3-4 { grid-template-columns: 5fr 3fr 4fr; }
/* odstavce s odsazením ze starého systému (Bootstrap p-3, 250× v popisech zboží) – stejné odsazení jako na starém webu; prázdný odstavec tak drží mezeru (text pod logem) */
.p-3 { padding: 1rem; }
/* číslovaný seznam v bloku: místo i pro dvouciferná čísla (10., 11. …), jinak se u okraje bloku ořízla */
.gbt-col ol { padding-left: 2.2em; }
.gbt-col img { max-width: 100%; height: auto; }

/* zvýrazněný box (upozornění, akce, výhody) */
.gbt-box { background: #eef4f4; border-left: 3.5px solid #2d80ba; border-radius: 3.5px; padding: 12px 16px; margin: 14px 0; }
.gbt-box > :first-child { margin-top: 0; } .gbt-box > :last-child { margin-bottom: 0; }

/* video vložené z YouTube se přizpůsobí šířce */
.gbt-video { position: relative; aspect-ratio: 16 / 9; margin: 14px 0; }
.gbt-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 1000px) {
  .gbt-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gbt-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .gbt-grid { grid-template-columns: 1fr; gap: 14px; }
  .gbt-grid.gbt-grid--pairs { grid-template-columns: repeat(2, 1fr); }
}
@media print {
  .gbt-grid-3, .gbt-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Děkovná stránka – kroky „Co bude dál“ (číslování automaticky) a dlaždice k dalšímu nákupu; vkládá se z editoru v adminu prodejny */
.thanks__timeline { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: krok; text-align: left; }
.thanks__timeline li { position: relative; border: 1px solid var(--line, #e8efef); border-radius: 8px; padding: 16px 16px 16px 58px; background: #fff; font-size: 13.5px; line-height: 1.45; color: var(--link, #4d5968); counter-increment: krok; }
.thanks__timeline li::before { content: counter(krok); position: absolute; left: 16px; top: 15px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--main, #2d80ba); color: var(--main, #2d80ba); font-weight: 700; display: grid; place-items: center; background: #fff; box-sizing: border-box; }
.thanks__timeline li strong { display: block; font-size: 16px; margin-bottom: 3px; color: var(--dark, #3c4243); }
.thanks__timeline li strong + br { display: none; }
.thanks__timeline li:first-child { border-color: var(--main-light, #69bae5); background: color-mix(in srgb, var(--main, #2d80ba) 6%, #fff); }
.thanks__timeline li:first-child::before { background: var(--main, #2d80ba); color: #fff; }
.thanks__promo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 22px 0 8px; }
.promo-tile { display: block; text-align: left; padding: 18px 20px 18px 92px; position: relative; min-height: 96px; border-radius: 8px; color: #fff !important; text-decoration: none !important;
  background: linear-gradient(135deg, var(--main, #2d80ba) 0%, var(--main-dark, #2a6c9a) 100%); box-shadow: 0 6px 18px color-mix(in srgb, var(--main, #2d80ba) 28%, transparent); transition: transform .15s, box-shadow .15s; }
.promo-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px color-mix(in srgb, var(--main, #2d80ba) 38%, transparent); }
.promo-tile::before { content: ""; position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; background-color: rgba(255,255,255,.18); background-repeat: no-repeat; background-position: center; background-size: 30px 30px; }
.promo-tile--truck::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h11v9H3zM14 10h4l3 3v3h-7z'/%3E%3Ccircle cx='7' cy='18' r='1.6'/%3E%3Ccircle cx='17' cy='18' r='1.6'/%3E%3C/svg%3E"); }
.promo-tile--star::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.6 5.4 5.9.8-4.3 4.1 1 5.9L12 16.4 6.8 19.2l1-5.9L3.5 9.2l5.9-.8z'/%3E%3C/svg%3E"); }
.promo-tile--store::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l1.5-5h15L21 9M3 9v11h18V9M3 9h18M9 20v-6h6v6'/%3E%3C/svg%3E"); }
.promo-tile--phone::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 005 5L15 13l5 2v4a2 2 0 01-2 2A16 16 0 013 6a2 2 0 012-2z'/%3E%3C/svg%3E"); }
.promo-tile strong, .promo-tile span, .promo-tile em { display: block; min-width: 0; }
.promo-tile strong { font-size: 18px; line-height: 1.2; }
.promo-tile span { font-size: 14px; line-height: 1.4; opacity: .92; margin-top: 3px; }
.promo-tile em { display: inline-block; font-style: normal; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; margin-top: 8px; color: #fff; background: var(--cta, #ff831e); border-radius: 4px; padding: 5px 10px; }
@media (max-width: 700px) { .thanks__timeline, .thanks__promo { grid-template-columns: 1fr; } }

/* ---- Články o značkách (CTM, COYNCO …): úvodní pás se značkou, karty, číslované kroky, galerie strojů, kontakt dovozce.
   Barvy podle motivu e-shopu (--main / --cta), sloupce se na mobilu skládají pod sebe. */
.gbt-brand { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center; background: var(--bg-soft, #eef4f4); border-radius: 10px; padding: 26px 30px; margin: 6px 0 26px; border-left: 5px solid var(--main, #2d80ba); }
.gbt-brand__logo { background: #fff; border-radius: 8px; padding: 18px; display: grid; place-items: center; min-height: 110px; }
.gbt-brand__logo img { max-width: 100%; max-height: 100px; height: auto; width: auto; }
.gbt-brand__claim { font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--dark, #3c4243); margin: 0 0 8px; }
.gbt-brand__text { margin: 0; line-height: 1.6; }
.gbt-brand__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.gbt-brand__tags li { background: #fff; border: 1px solid var(--line, #e8efef); border-radius: 999px; padding: 3px 11px; font-size: 13px; font-weight: 600; color: var(--main-dark, #2a6c9a); }

ol.gbt-steps, ul.gbt-cards, ul.gbt-checks, ul.gbt-brand__tags { padding-left: 0; margin-left: 0; }
.gbt-brand__tags > li, .gbt-cards > li, .gbt-checks > li, .gbt-steps > li { list-style: none; margin-left: 0; }
.gbt-h { position: relative; padding-left: 14px; margin: 30px 0 12px; font-size: 21px; }
.gbt-h::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 2px; background: var(--cta, #ff831e); }
.gbt-lead { font-size: 16px; line-height: 1.6; margin: 0 0 14px; }

.gbt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 14px 0 8px; padding: 0; list-style: none; }
.gbt-card { border: 1px solid var(--line, #e8efef); border-radius: 10px; padding: 16px 18px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.gbt-card > :first-child { margin-top: 0; } .gbt-card > :last-child { margin-bottom: 0; }
.gbt-card__title { display: block; font-weight: 700; font-size: 16px; color: var(--dark, #3c4243); margin-bottom: 4px; }
.gbt-card__ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--promo, #d5e2ea); color: var(--main-dark, #2a6c9a); font-weight: 800; margin-bottom: 10px; }

.gbt-steps { list-style: none; counter-reset: gbtkrok; margin: 14px 0; padding: 0; display: grid; gap: 10px; }
.gbt-steps > li { counter-increment: gbtkrok; position: relative; padding: 12px 16px 12px 58px; border: 1px solid var(--line, #e8efef); border-radius: 8px; background: #fff; line-height: 1.45; }
.gbt-steps > li::before { content: counter(gbtkrok); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--main, #2d80ba); color: #fff; font-weight: 700; display: grid; place-items: center; }
.gbt-steps > li strong { color: var(--main-dark, #2a6c9a); }

.gbt-checks { list-style: none; margin: 12px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 22px; }
.gbt-checks--one { grid-template-columns: 1fr; }
.gbt-checks > li { position: relative; padding-left: 30px; line-height: 1.45; }
.gbt-checks > li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 21px; height: 21px; border-radius: 50%; background: var(--avail, #629f63); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }

.gbt-panel { background: var(--bg-soft, #eef4f4); border-radius: 10px; padding: 20px 22px; margin: 18px 0; }
.gbt-panel > :first-child { margin-top: 0; } .gbt-panel > :last-child { margin-bottom: 0; }

.gbt-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 16px 0; }
.gbt-gallery figure { margin: 0; background: #fff; border: 1px solid var(--line, #e8efef); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.gbt-gallery img { max-width: 100%; height: 170px; width: auto; object-fit: contain; }
.gbt-gallery figcaption { margin-top: 8px; font-size: 13px; font-weight: 600; text-align: center; color: var(--link, #4d5968); }
.gbt-gallery--photos img { height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 6px; width: 100%; }
.gbt-gallery--photos figure { padding: 0; border: 0; }
.gbt-wide-img { display: block; width: 100%; height: auto; border-radius: 10px; margin: 14px 0; }

.gbt-box--warn { background: #fff4ea; border-left-color: var(--cta, #ff831e); }

.gbt-importer { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 24px; align-items: center; border: 2px solid var(--main, #2d80ba); border-radius: 12px; padding: 20px 24px; margin: 28px 0 10px; }
.gbt-importer__badge { width: 64px; height: 64px; border-radius: 50%; background: var(--main, #2d80ba); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; text-align: center; line-height: 1.1; }
.gbt-importer__title { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: var(--dark, #3c4243); }
.gbt-importer p { margin: 0; line-height: 1.55; }
a.gbt-btn { display: inline-block; background: var(--cta, #ff831e); color: #fff !important; text-decoration: none !important; font-weight: 700; border-radius: 6px; padding: 11px 20px; white-space: nowrap; }
a.gbt-btn:hover { background: var(--cta-dark, #ea6f0b); }

@media (max-width: 700px) {
  .gbt-brand { grid-template-columns: 1fr; padding: 18px; gap: 16px; }
  .gbt-brand__claim { font-size: 19px; }
  .gbt-importer { grid-template-columns: 1fr; text-align: left; }
  .gbt-gallery { grid-template-columns: repeat(2, 1fr); }
  .gbt-gallery img { height: 130px; }
}

/* nadpisy v popisech přečíslované kvůli SEO (SafeHtml.Body) – vzhled podle původní úrovně */
.rich .gbt-h1 { font-size: 2em; margin: .67em 0; }
.rich .gbt-h2 { font-size: 1.5em; margin: .83em 0; }
.rich .gbt-h3 { font-size: 1.17em; margin: 1em 0; }
.rich .gbt-h4 { font-size: 1em; margin: 1.33em 0; }
.rich .gbt-h5 { font-size: .83em; margin: 1.67em 0; }
.rich .gbt-h6 { font-size: .67em; margin: 2.33em 0; }
