/* =========================================================================
   graseko-lp.css – styly stránek služeb a landing pages (třídy gr-*)
   Načítá se po graseko.min.css (globální styly webu).

   Obsah souboru:
   A) Základ LP: hero obrázek, H1 za hero, typografie, kroky, FAQ, karty rolí
   B) Obecná tabulka .gr-table (dříve inline v hlavičce webu)
   C) Stránky služeb (Zelené fasády, Vertikální zahrady):
      - přebití globálních pravidel webu uvnitř .gr-page
      - komponenty: hero s panelem, fakta, přínosy, pásy, tabulky, parametry,
        přednosti, galerie, časová osa, rozcestník rolí, blok pro partnery,
        cena + poptávka, rozcestník kotev, závěrečný pás, povinná publicita
   ========================================================================= */

/* ===================== A) ZÁKLAD LP ===================== */
/* =========================
   Graseko – LP CSS
   ========================= */
.gr-page{
  padding-right: 12px;   /* klidně 8–16 px podle oka */
}
.gr-hero{
  margin: 0;
}

.gr-hero__img{
  display: block;
  width: 100%;
  height: auto !important;
}

/* Výchozí: desktop */
.gr-hero__img--mobile{ display: none; }

/* Mobil */
@media (max-width: 900px){
  .gr-hero__img--desktop{ display: none; }
  .gr-hero__img--mobile{ display: block; }
}
/* =========================================================
   LP: H1 schovat a zobrazit až za hero obrázkem
   Aktivuje se jen, když stránka obsahuje .gr-hero
   ========================================================= */

body.gr-h1-after-hero-active .pageArticleDetail > header {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.gr-h1-after-hero-active .gr-h1-after-hero {
  margin: 18px 0 10px;
}

/* „vizuální H1“ */
body.gr-h1-after-hero-active .gr-h1-visual {
  margin: 0;
  font-family: var(--template-headings-font, "Open Sans"), sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
}

/* Základní text LP */
.gr-page p,
.gr-page li {
  font-size: 18px;
  line-height: 2;
}
.gr-page h2{
  margin-top: 30px;
  margin-bottom: 18px;
}

.gr-page h3{
  margin-top: 30px;
  margin-bottom: 14px;
}
/*  spacing */
.gr-mb-18{ margin-bottom: 18px; }

/* ---------------------------------
   Steps (text + obrázek)
   --------------------------------- */
.gr-altsteps{
  width: 100%;
  max-width: none;
  margin: 0;                 /* žádné breakout */
  padding: 10px 0;           /* jen vertikální spacing */
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.gr-altstep{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 80px);
  flex-wrap: nowrap; 
}

.gr-altstep--reverse{
  flex-direction: row-reverse;
}

.gr-altstep__text,
.gr-altstep__img{
  flex: 0 0 calc(50% - (clamp(24px, 4vw, 80px) / 2)); /* půlka minus půl gapu */
  max-width: calc(50% - (clamp(24px, 4vw, 80px) / 2));
  min-width: 0;
}

.gr-altstep__img{
  display: flex;
  align-items: center;
  justify-content: center;
}

.gr-altstep__img img{
  max-width: 450px;
  height: auto !important;
  display: block;
}

/* Mobilní chování altsteps  */
@media (max-width: 900px){
  .gr-altsteps{
    padding: 5px 0;
    gap: 48px;
  }

  .gr-altstep,
  .gr-altstep--reverse{
    flex-direction: column;
    align-items: flex-start;
  }

  
 .gr-altstep__text,
  .gr-altstep__img{
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }
  
  .gr-altstep__img{
    max-width: 100%;
    justify-content: flex-start; 
  }
  .gr-altstep__img img{
    width: min(350px, 100%);
    max-width: 100%;
    height: auto !important;
  }
}

/* ---------------------------------
   Kroky spolupráce 
   --------------------------------- */
.gr-steps{ margin: 24px 0; }

.gr-steps__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gr-step{
  border: 2px solid #52AE32;
  border-radius: 26px;
  padding: 18px 18px 16px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.gr-step:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.gr-step__head{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.gr-step__badge{
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
  background: #52AE32;
  color: #111111;
}

.gr-step__title{
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: #111111;
}

.gr-step__text{
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #111111;
  opacity: .9;
}

@media (max-width: 740px){
  .gr-steps__grid{ grid-template-columns: 1fr; }
  .gr-step{ border-radius: 22px; }
}

/* ---------------------------------
   2sloupcový blok
   --------------------------------- */
.gr-2col{
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.gr-2col__img{
  flex: 0 0 25%;
  max-width: 25%;
}

.gr-2col__text{
  flex: 1;
  min-width: 0;
}

.gr-2col__img .gr-img{
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 999px;
}

@media (max-width: 768px){
  .gr-2col{ flex-direction: column; gap: 20px; }
  .gr-2col__img{ max-width: 100%; }
}

/* ---------------------------------
   CTA tlačítko
   --------------------------------- */
.btn.btn-conversion{
  background-color: #52ae32;
  border-color: #52ae32;
  transition-property: all;
}

/* ---------------------------------
   FAQ (details/summary)
   --------------------------------- */
.gr-faq details{
  border-bottom: 1px solid #e5e5e5;
  padding: 16px 0;
}

.gr-faq summary{
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  position: relative;
  padding-right: 32px;
}

/* odstranění default markeru */
.gr-faq summary::-webkit-details-marker{ display: none; }

/* vlastní zelená šipka */
.gr-faq summary::after{
  content: "›";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 26px;
  line-height: 1;
  color: #2e7d32;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
}

.gr-faq details[open] summary::after{ transform: rotate(90deg); }

.gr-faq details p{
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

/* =========================================================
   .gr-role-card – karta pro výběr řešení podle role.
   Inspirováno vzhledem .gr-step (zelený rámeček, zaoblení,
   hover), ale místo číslovaného kroku jde o celý řádek
   s otázkou vlevo a odkazem se šipkou vpravo.
   ========================================================= */
.gr-role-grid{
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0 40px;
}
.gr-role-card{
  border: 2px solid #52AE32;
  border-radius: 26px;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.gr-role-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
.gr-role-card__q{
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #111111;
  flex: 1 1 340px;
}
.gr-role-card__link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #52AE32;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
}
.gr-role-card__link::after{
  content: "→";
  transition: transform .15s ease;
}
.gr-role-card__link:hover::after{ transform: translateX(3px); }

@media (max-width: 700px){
  .gr-role-card{ flex-direction: column; align-items: flex-start; }
}

/* ===================== B) OBECNÁ TABULKA ===================== */
.gr-table{
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 16px;
}
.gr-table th,
.gr-table td{
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid #e5e5e5;
  vertical-align: top;
}
.gr-table th{
  color: #111111;
  font-weight: 700;
  border-bottom: 2px solid #52AE32;
}
.gr-table td:first-child{
  font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 600px){
  .gr-table, .gr-table thead, .gr-table tbody, .gr-table th, .gr-table td, .gr-table tr{
    display: block;
  }
  .gr-table thead{ display: none; }
  .gr-table td{ border-bottom: none; padding: 4px 0; }
  .gr-table tr{ margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #e5e5e5; }
  .gr-table td:first-child{ color: #52AE32; }
}

/* ===================== C) STRÁNKY SLUŽEB ===================== */
/* =========================================================
   Mezery mezi odstavci, seznamy a nadpisy
   (explicitně, aby nezáleželo na výchozím nastavení šablony)
   ========================================================= */
/* =========================================================
   Přebití globálních pravidel webu (graseko.min.css)
   - ".type-post #content p" vnucuje všem odstavcům zarovnání do bloku,
     mezeru 19 px a řádkování 150 % (má vyšší specificitu než .gr-page p)
   - ".btn" dělá všechna tlačítka průhledná s černým rámečkem a textem
   - H1 článků v sekci Co nabízíme je tam skrytý (display: none)
   ========================================================= */
body.in-co-nabizime.type-post:has(.gr-lead__panel) [itemprop="headline"]{ display: block; }
/* H1 jako střídmý název stránky nad fotkou; hlavním sdělením je věta v panelu hera */
body.in-co-nabizime.type-post:has(.gr-lead__panel) h1,
body.in-co-nabizime.type-post:has(.gr-lead__panel) [itemprop="headline"]{ margin: 0 0 18px !important; font-size: clamp(24px, 2.4vw, 30px) !important; font-weight: 700 !important; line-height: 1.2 !important; color: #27303C !important; }

/* Po přesunu H1 do panelu hera (skript v hlavičce): H1 je hlavní nadpis panelu, věta pod ním je podtitul.
   Než se H1 přesune, je skrytý, aby stránka neposkakovala. */
html.gr-js .pageArticleDetail:has(.gr-lead__panel) h1:not(.gr-lead__title){ visibility: hidden; }
body.gr-h1-in-lead.in-co-nabizime.type-post h1.gr-lead__title{ margin: 0 0 12px !important; font-size: clamp(26px, 2.6vw, 34px) !important; font-weight: 800 !important; line-height: 1.15 !important; color: #27303C !important; }
body.gr-h1-in-lead #content .gr-page .gr-lead__claim{ margin: 0 0 12px; font-size: 18px; font-weight: 600; line-height: 1.4; }

#content .gr-page p{ text-align: left; margin: 0 0 22px; line-height: 1.8; }
#content .gr-page .gr-lead__claim{ margin: 0 0 12px; line-height: 1.25; }
#content .gr-page .gr-lead__text{ margin: 0 0 22px; line-height: 1.6; }
#content .gr-page .gr-partner p{ margin: 0 0 20px; line-height: 1.6; }
#content .gr-page .gr-faq details p{ margin: 12px 0 0; line-height: 1.6; }

/* Hlavní tlačítka (btn-conversion): zelená výplň; tvar "bubliny" zůstává z webu.
   Druhotné tlačítko (gr-btn-ghost) používá výchozí vzhled webu: obrys, hover černá. */
.gr-page a.btn.btn-conversion,
.gr-page a.btn.btn-conversion:visited{ background-color: #52AE32 !important; border-color: #52AE32 !important; color: #fff !important; }
.gr-page a.btn.btn-conversion:hover,
.gr-page a.btn.btn-conversion:focus-visible{ background-color: #27303C !important; border-color: #27303C !important; color: #fff !important; }
.gr-page ul, .gr-page ol{ margin: 0 0 22px; }
.gr-page li + li{ margin-top: 4px; }
/* poslední prvek v bloku bez zbytečné mezery navíc */
.gr-page .gr-altstep__text > :last-child,
.gr-page .gr-split > div > :last-child,
.gr-page .gr-duo__price > :last-child,
.gr-page .gr-duo__form > :last-child,
.gr-page .gr-band__in > :last-child{ margin-bottom: 0; }

/* Pásy s pozadím přes celou šířku okna */
body:has(.gr-band){ overflow-x: clip; }

/* Pás: podbarvení přes celou šířku okna, text ve stejném sloupci jako zbytek stránky. */
.gr-page .gr-band{
  --gr-band-shift: 6px; /* kompenzace padding-right: 12px na .gr-page; doladit dle ostrého webu */
  margin-left: calc(50% - 50vw + var(--gr-band-shift));
  margin-right: calc(50% - 50vw - var(--gr-band-shift));
  padding: 56px max(0px, calc(50vw - 50% + var(--gr-band-shift))) 56px max(0px, calc(50vw - 50% - var(--gr-band-shift)));
  background: #F1F6EE;
}
.gr-page .gr-band--dark{ background: #27303C; color: #fff; margin-top: 56px; }
.gr-page .gr-band__in{ max-width: none; margin: 0; padding: 0; }
.gr-page .gr-band__in > h2:first-child{ margin-top: 0; }
.gr-page .gr-band .gr-altsteps{ padding: 0; }
.gr-page .gr-altsteps--after-band{ margin-top: 56px; }

/* Úvodní fotka s panelem ve tvaru "bubliny" */
.gr-page .gr-lead{
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  background: #27303C;
  margin-top: 8px;
}
.gr-page .gr-lead__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.gr-page .gr-lead__panel{
  position: relative;
  background: #fff;
  width: min(520px, 100%);
  padding: 38px 44px 36px 40px;
  border-radius: 110px 110px 110px 0;
}
.gr-page .gr-lead__claim{ margin: 0 0 12px; font-size: 28px; line-height: 1.25; font-weight: 800; color: #27303C; }
.gr-page .gr-lead__text{ margin: 0 0 22px; font-size: 17px; line-height: 1.6; color: #333; }
.gr-page .gr-lead__actions{ display: flex; flex-wrap: wrap; gap: 12px; }

/* Rozcestník kotev na začátku stránky (odkazy jako text, ne tlačítka) */
html:has(.gr-toc){ scroll-behavior: auto; }
@media (prefers-reduced-motion: no-preference){ html:has(.gr-toc){ scroll-behavior: smooth; } }
.gr-page .gr-toc{
  --gr-toc-top: 0px; /* když je na webu pevná hlavička, sem dát její výšku */
  position: sticky; top: var(--gr-toc-top); z-index: 10;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px;
  margin: 26px 0 0; padding: 16px 0;
  border-top: 1px solid #dfe5db; border-bottom: 1px solid #dfe5db;
  background: #fff; box-shadow: 0 0 0 100vmax #fff; clip-path: inset(0 -100vmax);
  font-size: 16px; line-height: 1.4;
}
/* nadpis po kliknutí na kotvu nezůstane pod rozcestníkem */
.gr-page a[id]{ scroll-margin-top: 90px; }
.gr-page .gr-toc__label{ font-weight: 700; color: #27303C; }
.gr-page .gr-toc a{ color: #27303C; font-weight: 600; text-decoration: underline; text-decoration-color: #52AE32; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.gr-page .gr-toc a:hover{ color: #2e7d32; }

/* Pás klíčových faktů */
.gr-page .gr-facts{ list-style: none; margin: 44px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.gr-page .gr-facts li{ padding: 6px 22px; border-left: 3px solid #52AE32; font-size: 15px; line-height: 1.35; color: #4a5260; }
.gr-page .gr-facts strong{ display: block; font-size: 32px; font-weight: 800; line-height: 1.15; color: #27303C; margin-bottom: 4px; }

/* Dva sloupce: text + odrážky se symbolem */
.gr-page .gr-split{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; margin: 30px 0 20px; }
.gr-page .gr-split h2{ margin-top: 0; font-size: 30px; line-height: 1.2; font-weight: 800; }
.gr-page .gr-ticks{ list-style: none; margin: 0; padding: 0; }
.gr-page .gr-ticks li{ position: relative; padding: 14px 0 14px 44px; border-bottom: 1px solid #dfe5db; font-size: 18px; line-height: 1.55; }
.gr-page .gr-ticks li:first-child{ border-top: 1px solid #dfe5db; }
.gr-page .gr-ticks li::before{
  content: "✓";
  position: absolute; left: 0; top: 15px;
  width: 28px; height: 28px; border-radius: 50%;
  background: #52AE32; color: #fff;
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Tabulka komponent */
.gr-page .gr-table{ width: 100%; border-collapse: collapse; margin: 16px 0 8px; font-size: 16px; }
.gr-page .gr-table th, .gr-page .gr-table td{ text-align: left; padding: 12px 14px; border-bottom: 1px solid #dfe5db; vertical-align: top; line-height: 1.5; }
.gr-page .gr-table th{ font-weight: 700; border-bottom: 2px solid #52AE32; }
.gr-page .gr-table td:first-child{ font-weight: 700; white-space: nowrap; }

/* Technické parametry */
.gr-page .gr-specs{ list-style: none; margin: 14px 0 0; padding: 0; columns: 2; column-gap: 44px; }
.gr-page .gr-specs li{ position: relative; break-inside: avoid; padding: 11px 0 11px 24px; border-bottom: 1px solid #cfd8c9; font-size: 16px; line-height: 1.5; }
.gr-page .gr-specs li::before{ content: ""; position: absolute; left: 4px; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: #52AE32; }

/* Přednosti systému: seznam s jednou větou u každé přednosti */
.gr-page .gr-benefits{ list-style: none; margin: 22px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 36px; }
.gr-page .gr-benefits li{ margin: 0; padding: 18px 0 22px; border-top: 2px solid #dfe5db; font-size: 16px; line-height: 1.55; }
.gr-page .gr-benefits strong{ display: block; margin-bottom: 6px; font-size: 18px; line-height: 1.3; font-weight: 700; color: #27303C; }
.gr-page .gr-benefits span{ display: block; color: #4a5260; }

/* Galerie referencí: pevný poměr 4:3 */
.gr-page .gr-gallery{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 24px 0 8px; }
.gr-page .gr-gallery figure{ margin: 0; }
.gr-page .gr-gallery__img{ width: 100%; aspect-ratio: 4 / 3; height: auto !important; object-fit: cover; object-position: center; border-radius: 14px; display: block; }
.gr-page .gr-gallery figcaption{ font-size: 15px; line-height: 1.5; color: #4a5260; margin-top: 10px; }

/* ---------------------------------------------------------
   Jak spolupráce probíhá: časová osa (bez rámečků a bez
   hoveru, aby nepůsobila jako klikací prvek)
   --------------------------------------------------------- */
.gr-page .gr-process{ list-style: none; margin: 28px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; }
.gr-page .gr-process li{ position: relative; padding: 0; font-size: 16px; line-height: 1.6; }
.gr-page .gr-process__num{
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: 50%; background: #52AE32; color: #fff;
  font-size: 17px; font-weight: 800; line-height: 1;
}
.gr-page .gr-process li:not(:last-child)::after{
  content: ""; position: absolute; top: 19px; left: 52px; right: -16px;
  height: 2px; background: #cfd8c9;
}
.gr-page .gr-process__title{ display: block; margin-bottom: 6px; font-size: 18px; line-height: 1.3; font-weight: 700; color: #111; }
.gr-page .gr-process__text{ display: block; color: #333; }

/* ---------------------------------------------------------
   Rozcestník podle role: celá karta je odkaz
   --------------------------------------------------------- */
.gr-page .gr-paths{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 20px 0 44px; }
.gr-page a.gr-path{
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px 28px 22px;
  border: 2px solid #52AE32; border-radius: 26px;
  background: #fff; color: #111; text-decoration: none;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.gr-page a.gr-path:hover,
.gr-page a.gr-path:focus-visible{ background: #F1F6EE; box-shadow: 0 10px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.gr-page .gr-path__who{ display: block; font-size: 22px; line-height: 1.25; font-weight: 800; color: #27303C; }
.gr-page .gr-path__q{ display: block; font-size: 16px; line-height: 1.55; color: #333; }
.gr-page .gr-path__go{
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 16px; border-top: 1px solid #dfe5db;
  font-size: 15px; font-weight: 700; color: #2e7d32;
}
.gr-page .gr-path__go::after{
  content: "→"; flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 50%;
  background: #52AE32; color: #fff; font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.gr-page a.gr-path:hover .gr-path__go::after{ transform: translateX(4px); }

/* Blok pro nábor realizátorů */
.gr-page .gr-partner{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; background: #27303C; color: #fff; border-radius: 26px; padding: 36px 40px; margin: 0 0 44px; }
.gr-page .gr-partner__title{ margin: 0 0 12px; color: #fff; font-size: 26px; line-height: 1.25; font-weight: 800; }
.gr-page .gr-partner p{ margin: 0 0 20px; color: #e6ebe3; font-size: 17px; line-height: 1.6; }
.gr-page .gr-partner__list{ list-style: none; margin: 0; padding: 0; }
.gr-page .gr-partner__list li{ position: relative; margin: 0; padding: 12px 0 12px 36px; border-bottom: 1px solid rgba(255,255,255,.18); font-size: 16px; line-height: 1.5; color: #fff; }
.gr-page .gr-partner__list li:first-child{ border-top: 1px solid rgba(255,255,255,.18); }
.gr-page .gr-partner__list li::before{ content: "✓"; position: absolute; left: 0; top: 13px; width: 22px; height: 22px; border-radius: 50%; background: #52AE32; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Tlačítko v tmavém bloku: vlastní barvy včetně hoveru (šablona ho jinak přebarví na tmavou, splyne s pozadím) */
.gr-page .gr-partner a.btn.btn-conversion,
.gr-page .gr-partner a.btn.btn-conversion:visited{ background-color: #52AE32 !important; border-color: #52AE32 !important; color: #fff !important; }
.gr-page .gr-partner a.btn.btn-conversion:hover,
.gr-page .gr-partner a.btn.btn-conversion:focus-visible{ background-color: #fff !important; border-color: #fff !important; color: #27303C !important; }

/* ---------------------------------------------------------
   Cena (vlevo) a poptávka (vpravo)
   --------------------------------------------------------- */
.gr-page .gr-duo{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: stretch; margin-top: 30px; }
.gr-page .gr-duo__price{ display: flex; flex-direction: column; }
.gr-page .gr-duo h2{ margin-top: 0; }
/* Formulář nesmí přetéct panel ani stránku (šířka polí, captcha, dlouhé texty) */
.gr-page .gr-duo > *{ min-width: 0; }
.gr-page .gr-duo__form{ background: #F1F6EE; border-radius: 24px; padding: 32px 34px; overflow-x: auto; overflow-wrap: anywhere; }
.gr-page .gr-duo__form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),
.gr-page .gr-duo__form textarea,
.gr-page .gr-duo__form select{ width: 100%; max-width: 100%; box-sizing: border-box; }
.gr-page .gr-duo__form iframe,
.gr-page .gr-duo__form img,
.gr-page .gr-duo__form table{ max-width: 100%; }
/* fotka vyplní zbytek výšky levého sloupce (výška sloupce = výška formuláře), min. 200 px */
.gr-page .gr-duo__img{ display: block; width: 100%; flex: 1 1 0; min-height: 200px; height: 0 !important; aspect-ratio: auto; max-width: none; object-fit: cover; object-position: center; border-radius: 14px; margin-top: 8px; }

/* Tmavý závěrečný pás */
.gr-page .gr-band--dark h2{ color: #fff; font-size: 32px; font-weight: 800; }
.gr-page .gr-band--dark p{ color: #e6ebe3; max-width: 640px; }
.gr-cta__actions{ display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; margin-top: 22px; }
.gr-page .gr-cta__link{ color: #fff; font-weight: 700; font-size: 20px; text-decoration: none; border-bottom: 2px solid #52AE32; }

/* Povinná publicita projektu (EU / MPO) – obrázek se nesmí ořezávat ani upravovat */
.gr-page .gr-project{ margin: 48px 0 0; border: 1px solid #dfe5db; border-radius: 14px; overflow: hidden; background: #fff; }
.gr-page .gr-project img{ display: block; width: 100%; height: auto !important; max-width: 100%; }

/* Kulaté fotky (truhlík, závlaha): vždy kruh, fotka vyplní celou plochu */
.gr-page .gr-altstep__img .gr-circle{ width: 100%; max-width: 450px; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; }
.gr-page .gr-altstep__img .gr-circle img{ display: block; width: 100%; max-width: none; height: 100% !important; object-fit: cover; object-position: center; }

/* Volitelné: posun výřezu, když se ořízne důležitá část fotky */
.gr-page img.gr-pos-top{ object-position: center top; }
.gr-page img.gr-pos-bottom{ object-position: center bottom; }
.gr-page img.gr-pos-left{ object-position: left center; }
.gr-page img.gr-pos-right{ object-position: right center; }

/* Focus pro klávesnici */
.gr-page a:focus-visible, .gr-faq summary:focus-visible{ outline: 3px solid #52AE32; outline-offset: 3px; }

/* Mobil */
@media (max-width: 1000px){
  .gr-page .gr-paths{ grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px){
  .gr-page .gr-facts{ grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .gr-page .gr-altstep__img .gr-circle{ max-width: 350px; }
  .gr-page .gr-benefits{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px){
  .gr-page .gr-split, .gr-page .gr-duo, .gr-page .gr-partner{ grid-template-columns: minmax(0, 1fr); }
  .gr-page .gr-partner{ padding: 28px 24px; }
  .gr-page .gr-gallery{ grid-template-columns: 1fr; }
  .gr-page .gr-duo__form{ padding: 22px 16px; }
  .gr-page .gr-duo__img{ flex: none; min-height: 0; height: auto !important; aspect-ratio: 4 / 3; }

  .gr-page .gr-process{ grid-template-columns: 1fr; gap: 0; }
  .gr-page .gr-process li{ padding: 0 0 26px 58px; min-height: 40px; }
  .gr-page .gr-process__num{ position: absolute; left: 0; top: 0; margin: 0; }
  .gr-page .gr-process li:not(:last-child)::after{ left: 19px; right: auto; top: 46px; bottom: 6px; width: 2px; height: auto; }
}
@media (max-width: 820px){
  .gr-page .gr-toc{ flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; gap: 0 24px; padding: 12px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .gr-page .gr-toc::-webkit-scrollbar{ display: none; }
  .gr-page .gr-toc > *{ flex: 0 0 auto; }
  .gr-page a[id]{ scroll-margin-top: 70px; }
}
@media (max-width: 760px){
  .gr-page .gr-lead{ min-height: 0; flex-direction: column; align-items: stretch; border-radius: 0; overflow: visible; background: none; }
  .gr-page .gr-lead__img{ position: static; height: 260px !important; border-radius: 14px; }
  .gr-page .gr-lead__panel{ width: auto; margin: -56px 12px 0 0; padding: 28px 28px 28px 26px; border-radius: 56px 56px 56px 0; }
  .gr-page .gr-lead__claim{ font-size: 23px; }
  .gr-page .gr-specs{ columns: 1; }
}
@media (max-width: 600px){
  .gr-page .gr-table, .gr-page .gr-table thead, .gr-page .gr-table tbody,
  .gr-page .gr-table th, .gr-page .gr-table td, .gr-page .gr-table tr{ display: block; }
  .gr-page .gr-table thead{ display: none; }
  .gr-page .gr-table td{ border-bottom: none; padding: 3px 0; }
  .gr-page .gr-table tr{ margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #dfe5db; }
  .gr-page .gr-table td:first-child{ color: #52AE32; white-space: normal; }
  .gr-page a.gr-path{ padding: 22px 22px 18px; }
}
@media (max-width: 480px){
  .gr-page .gr-facts{ grid-template-columns: minmax(0, 1fr); }
  .gr-page .gr-benefits{ grid-template-columns: minmax(0, 1fr); }
}
