/* ============================================================
   GAGN — SDÍLENÝ PAGE-KIT (Záhlaví / hlavička)
   Jeden zdroj pravdy pro popisy produktů i obsahové stránky.
   Monochrom: text #2f2f2f · nadpisy #1a1a1a · akcent #727272
   tmavá/hover #262626 · plochy #f6f6f6 · linky #e6e6e6
   ============================================================ */

/* ---------- Sdílené tokeny ---------- */
.gagn-product, .gagn-page {
  --g-text: #2f2f2f;
  --g-head: #1a1a1a;
  --g-accent: #727272;
  --g-dark: #262626;
  --g-surface: #f6f6f6;
  --g-surface-2: #f0f0f0;
  --g-border: #e6e6e6;
  --g-radius: 14px;
  --g-card-shadow: 0 0 15px rgba(0,0,0,.05);
  width: 100%;
  max-width: none;
  margin: 0;
  font-family: inherit;
  color: var(--g-text);
  font-size: 16px;
  line-height: 1.65;
}
.gagn-product *, .gagn-page * { box-sizing: border-box; }
.gagn-product h2, .gagn-product h3, .gagn-product h4, .gagn-product p,
.gagn-page h2, .gagn-page h3, .gagn-page h4, .gagn-page p { margin-top: 0; }
.gagn-product h2, .gagn-page h2 { font-size: 32px; line-height: 1.2; margin-bottom: 18px; color: var(--g-head); }
.gagn-product h3, .gagn-page h3 { font-size: 24px; line-height: 1.3; margin-bottom: 18px; color: var(--g-head); }
.gagn-product h4, .gagn-page h4 { font-size: 18px; line-height: 1.25; margin: 0 0 8px 0; padding: 0; color: var(--g-head); }
.gagn-product p, .gagn-page p { margin-bottom: 13px; }
.gagn-product a, .gagn-page a { color: var(--g-accent); font-weight: 700; text-decoration: none; }
.gagn-product a:hover, .gagn-page a:hover { text-decoration: underline; }

/* ---------- Bloky / mřížka ---------- */
.gagn-block {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 34px;
  align-items: stretch;
  padding: 34px 0;
  border-bottom: 1px solid var(--g-border);
}
.gagn-hero { padding-top: 10px; }
.gagn-text { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.gagn-text.full { display: block; max-width: none; }
.gagn-image { width: 100%; min-height: 260px; border-radius: var(--g-radius); overflow: hidden; background: var(--g-surface-2); }
.gagn-image img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* ---------- Výhody (grid dlaždic) ---------- */
.gagn-design-section { display: block; text-align: center; }
.gagn-use-section { display: block; }
.gagn-design-section .gagn-text,
.gagn-design-section .gagn-text.full,
.gagn-design-section h3,
.gagn-design-section .gagn-grid,
.gagn-design-section .gagn-grid > div { text-align: center; }
.gagn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.gagn-grid > div { padding: 18px; background: #fff; box-shadow: var(--g-card-shadow); border-radius: 12px; }

/* ---------- Dvousloupec (instalace + parametry) ---------- */
.gagn-columns { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 34px 0; border-bottom: 1px solid var(--g-border); }
.gagn-panel { background: #fff; box-shadow: var(--g-card-shadow); border-radius: var(--g-radius); padding: 26px; }
.gagn-panel ul { margin: 0; padding-left: 20px; }
.gagn-panel li { margin-bottom: 8px; }

/* ---------- Use-cards (kde vyniknou) ---------- */
.gagn-use-section,
.gagn-use-section .gagn-text,
.gagn-use-section .gagn-text.full,
.gagn-use-section h3,
.gagn-use-section .gagn-use-grid,
.gagn-use-section .gagn-use-card { text-align: center; }
.gagn-use-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gagn-use-card { background: #fff; box-shadow: var(--g-card-shadow); border-radius: var(--g-radius); padding: 24px 22px; }
.gagn-use-icon { width: 46px; height: 46px; margin: 0 auto 14px auto; border-radius: 50%; background: #fff; border: 1px solid var(--g-border); display: flex; align-items: center; justify-content: center; color: var(--g-accent); font-size: 24px; font-weight: 700; }
.gagn-use-card p { margin: 0; }

/* ---------- Kontaktní pruh ---------- */
.gagn-contact { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--g-border); }
.gagn-contact strong { font-size: 18px; }
.gagn-contact a { font-size: 21px; white-space: nowrap; }

/* ---------- Vzorek ---------- */
.gagn-sample { grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr); gap: 34px; padding: 34px 0; }
.gagn-sample .gagn-image { min-height: 300px; max-height: 340px; }
.gagn-sample .gagn-text h2 { font-size: 32px; margin-bottom: 18px; }
.gagn-sample .gagn-text p { margin-bottom: 18px; }

/* ---------- Tlačítko (primární CTA) ---------- */
.gagn-button { display: inline-block; align-self: flex-start; margin-top: 4px; padding: 13px 26px; border-radius: 999px; background: var(--g-dark); color: #fff !important; font-size: 14px; font-weight: 800; letter-spacing: .02em; border: 1px solid var(--g-dark); transition: background .15s, border-color .15s; }
.gagn-button:hover { text-decoration: none !important; background: #000; border-color: #000; }
.gagn-button.secondary { background: #fff; color: var(--g-dark) !important; border-color: var(--g-border); }
.gagn-button.secondary:hover { background: var(--g-surface); border-color: #cfcfcf; }

/* ---------- Showroomy ---------- */
.gagn-showrooms { grid-template-columns: minmax(260px, 0.32fr) minmax(0, 0.68fr); align-items: stretch; border-bottom: none; }
.gagn-showrooms .gagn-image { min-height: 100%; height: 100%; align-self: stretch; }
.gagn-showrooms .gagn-image img { height: 100%; object-fit: cover; }
.gagn-showrooms .gagn-text { display: block; justify-content: flex-start; }
.gagn-showrooms .gagn-text h2 { margin-bottom: 14px; }
.gagn-showrooms .gagn-text > p { margin-bottom: 14px; }
.gagn-showroom-grid { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; margin-top: 0; }
.gagn-showroom { min-width: 0; height: 100%; align-self: stretch; background: #fff; box-shadow: var(--g-card-shadow); border-radius: var(--g-radius); padding: 14px 16px 16px; font-size: 14px; line-height: 1.5; display: flex; flex-direction: column; }
.gagn-showroom h4 { font-size: 16px; line-height: 1.25; margin: 0 0 8px 0; padding: 0; }
.gagn-showroom p { margin: 0 0 9px 0; }
.gagn-showroom p:last-child { margin-bottom: 0; }
.gagn-showroom a { word-break: break-word; }

/* ============================================================
   OBECNÁ PRIMITIVA PRO OBSAHOVÉ STRÁNKY
   (velkoobchod / showroom / vzorky) — .gagn-page
   ============================================================ */
.gagn-page { display: block; }
.gagn-page .gagn-wrap { max-width: none; margin: 0; }
.gagn-eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--g-accent); margin-bottom: 14px; }
.gagn-lead { font-size: 19px; line-height: 1.6; color: #444; margin-bottom: 22px; }
.gagn-section { padding: 48px 0; border-bottom: 1px solid var(--g-border); }
.gagn-section:last-child { border-bottom: none; }
.gagn-section-title { text-align: center; margin-bottom: 8px; }
.gagn-section-sub { text-align: center; color: #6b6b6b; max-width: 680px; margin: 0 auto 34px auto; }
.gagn-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.gagn-cta-row .gagn-button { align-self: auto; margin-top: 0; }

/* Karty (auto-fit, vzdušné) */
.gagn-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.gagn-card { background: #fff; box-shadow: var(--g-card-shadow); border-radius: var(--g-radius); padding: 28px 26px; }
.gagn-card.soft { background: #fff; }
.gagn-card h3, .gagn-card h4 { margin-bottom: 10px; }
.gagn-card p:last-child { margin-bottom: 0; }
.gagn-card-num { font-size: 30px; font-weight: 800; color: var(--g-accent); line-height: 1; margin-bottom: 14px; }

/* Odrážkový seznam se zaškrtnutím (vzdušný, bez boxů) */
.gagn-check { list-style: none; margin: 0; padding: 0; }
.gagn-check li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.gagn-check li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--g-accent); font-weight: 800; }

/* Chips (USP — jemné, ne krabice) */
.gagn-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0 0; padding: 0; list-style: none; }
.gagn-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border: 1px solid var(--g-border); border-radius: 999px; font-size: 14px; font-weight: 600; color: #444; background: #fff; }

/* FAQ (vzdušný seznam Q&A, jemné dělící linky, bez boxů) */
.gagn-faq { border-top: 1px solid var(--g-border); }
.gagn-faq-item { padding: 22px 0; border-bottom: 1px solid var(--g-border); }
.gagn-faq-item h3 { font-size: 18px; margin: 0 0 8px 0; }
.gagn-faq-item p { margin: 0; color: #555; }

/* Cenový/údajový pruh */
.gagn-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; text-align: center; }
.gagn-stat { padding: 8px; }
.gagn-stat-num { font-size: 34px; font-weight: 800; color: var(--g-head); line-height: 1; margin-bottom: 6px; }
.gagn-stat-label { font-size: 14px; color: #6b6b6b; }

/* Split banner (obrázek + text) — používá .gagn-block */
.gagn-page .gagn-block { border-bottom: 1px solid var(--g-border); }
.gagn-page .gagn-block:last-child { border-bottom: none; }

/* Fotogalerie + lightbox (showroom) */
.gagn-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gagn-gallery img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; cursor: pointer; display: block; transition: transform .2s, box-shadow .2s; }
.gagn-gallery img:hover { transform: scale(1.02); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.gagn-lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.85); align-items: center; justify-content: center; }
.gagn-lightbox.open { display: flex; }
.gagn-lightbox img { max-width: 90%; max-height: 88%; border-radius: 8px; }
.gagn-lightbox .gagn-lb-close { position: absolute; top: 18px; right: 26px; font-size: 42px; line-height: 1; color: #fff; cursor: pointer; font-weight: 300; }
.gagn-map { width: 100%; border: 0; border-radius: var(--g-radius); overflow: hidden; }
@media (max-width: 991px) { .gagn-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gagn-gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Responsivita ---------- */
@media (max-width: 1199px) {
  .gagn-showrooms { grid-template-columns: 1fr; }
  .gagn-showrooms .gagn-image { height: auto; min-height: 0; }
  .gagn-showrooms .gagn-image img { height: auto; }
}
@media (max-width: 991px) {
  .gagn-block, .gagn-sample, .gagn-columns, .gagn-grid, .gagn-use-grid { grid-template-columns: 1fr; }
  .gagn-image { min-height: 320px; }
  .gagn-showroom-grid { grid-template-columns: 1fr; }
  .gagn-sample .gagn-image { max-height: none; }
  .gagn-showroom { height: auto; }
}
@media (max-width: 767px) {
  .gagn-product, .gagn-page { font-size: 15px; }
  .gagn-product h2, .gagn-page h2 { font-size: 26px; }
  .gagn-product h3, .gagn-page h3 { font-size: 21px; }
  .gagn-block, .gagn-columns, .gagn-sample, .gagn-section { padding: 26px 0; }
  .gagn-panel, .gagn-grid > div, .gagn-use-card, .gagn-card { padding: 20px; }
  .gagn-image, .gagn-showrooms .gagn-image { min-height: 0; height: auto; }
  .gagn-image img { height: auto; }
  .gagn-sample .gagn-image { min-height: 0; height: auto; }
  .gagn-contact { flex-direction: column; align-items: flex-start; }
  .gagn-contact a { white-space: normal; }
  .gagn-lead { font-size: 17px; }
}

/* ============================================================
   NANITE THEME — monochrom overridy (mimo .gagn scope)
   ============================================================ */
.availability, .availability *,
.address-box .title, .address-box a, .address-box a:hover { color: #727272 !important; }
.samples-cta a { background: #262626 !important; border-color: #262626 !important; color: #fff !important; }
.samples-cta a:hover, .btn-vytazek:hover { background: #000 !important; border-color: #000 !important; color: #fff !important; }
.type-page [style*="e6f4e6"] { background-color: #f2f2f2 !important; }

/* Podstránky: obsah na střed (Nanite) */
.type-page .pageArticleDetail { margin-left: auto !important; margin-right: auto !important; }
.type-page .pageArticleDetail > * { margin-left: auto !important; margin-right: auto !important; }

/* Homepage recenze: oprava překryvu textu */
#hodnoceni_vytazek .vote-content,
.hodnoceni_vytazek_not_main .vote-content { line-height: 1.5 !important; height: auto !important; }

/* Legacy popisy (panely s embedovaným zeleným style blokem) — sjednotit na mono.
   :not(.secondary) — ať override nepřebije bílé sekundární tlačítko */
.gagn-product a { color: #727272 !important; }
.gagn-use-icon { color: #727272 !important; }
.gagn-button:not(.secondary) { background: #262626 !important; border-color: #262626 !important; color: #fff !important; }
.gagn-button:not(.secondary):hover { background: #000 !important; border-color: #000 !important; }
.gagn-button.secondary { background: #fff !important; border-color: #e6e6e6 !important; color: #262626 !important; }
.gagn-button.secondary:hover { background: #f6f6f6 !important; border-color: #cfcfcf !important; }

/* ============================================================
   PŘENOS z live Záhlaví (ručně přidaná pravidla — zachovat)
   ============================================================ */
/* Telefon místo e-mailu v kontaktech Nanite */
.top-navigation-contacts a.project-phone { display: inline-flex !important; align-items: center; gap: 6px; }
.top-navigation-contacts a.project-email { display: none !important; }

/* Šířka článků */
article { max-width: 1400px; }

/* Tlačítko recenzí */
.btn-default.btn-vytazek { color: #fff !important; border-color: #262626 !important; background-color: #262626 !important; }
.btn-default.btn-vytazek:hover { color: #fff !important; border-color: #000 !important; background-color: #000 !important; }

/* Karty recenzí */
#hodnoceni_vytazek .vote-wrap { margin: 0 5px 10px; width: calc(33.333% - 30px); background: #fff; border: none; padding: 24px; box-shadow: 0 0 15px rgba(0,0,0,.05); }
.content .vote-wrap { margin: 0 5px; margin-bottom: 10px !important; background: #fff; border: none; padding: 24px; box-shadow: 0 0 15px rgba(0,0,0,.05); }

/* Odkazy v showroom kartách čitelně tmavé */
.gagn-showroom a { color: #262626 !important; }
