:root {
  --card-bg: #ffefbc;
  --accent-gold: #f8d77a;
  --text-dark: #000000;
  --border-radius: 16px;
}

.services-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 1050px;
  margin: 0 auto;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ZÁKLADNÝ RIADOK */
.service-row {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  overflow: hidden; /* Dôležité pre vyrolovanie */
}

/* STAV PRI OTVORENÍ */
.service-row.is-open {
  background: #ffffff;
  border-color: var(--accent-gold);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.row-main {
  display: grid;
  grid-template-columns: 2.5fr 1.5fr 1fr;
  align-items: center;
  padding: 22px 30px;
  gap: 25px;
  cursor: pointer;
}

/* INFO STĹPEC */
.col-info .row-title { 
  margin: 0 0 6px 0; 
  font-size: 1.25rem; 
  font-weight: 800; 
  color: var(--text-dark);
}
.col-info .row-short { 
  margin: 0; 
  font-size: 0.95rem; 
  color: #444; 
  line-height: 1.4; 
}

/* VÝBER SUMY V STREDE */
.inline-toggles {
  display: flex;
  background: rgba(0,0,0,0.06);
  padding: 4px;
  border-radius: 12px;
}
.amt-option {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 5px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  border-radius: 9px;
  white-space: nowrap;
  transition: 0.2s;
  color: #555;
}
.amt-option.active {
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  color: #000;
}

/* CTA STĹPEC VPRAVO */
.col-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.row-main-btn {
  background: #f8d77a;
  color: black;
  border: none;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 800;
  cursor: pointer;
  font-size: 0.9rem;
  width: 100%;
  white-space: nowrap;
  transition: transform 0.2s, background 0.2s;
}
.row-main-btn:hover {
  background: #333;
  transform: translateY(-2px);
}

.details-link {
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: underline;
  color: #777;
  cursor: pointer;
}

/* VYROLOVANÝ OBSAH (ACCORDION) */
.row-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
}
.service-row.is-open .row-details {
  max-height: 1000px;
}
.details-content {
  padding: 30px;
  border-top: 1px solid #f0f0f0;
}

/* ŠTÝLY VO VNÚTRI */
.hs-custom-content h4 { margin: 25px 0 12px; font-size: 1.1rem; font-weight: 800; }
.benefits-list { list-style: none; padding: 0; margin: 0; }
.benefits-list li { position: relative; padding-left: 30px; margin-bottom: 10px; font-size: 1rem; }
.benefits-list li::before {
  content: ''; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px;
  background: url('https://bizpartnergroup.com/hubfs/check-gold-circle.png') no-repeat center/contain;
}

.inner-select-btn {
  width: 100%;
  padding: 16px;
  background: var(--accent-gold);
  border: none;
  border-radius: 30px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 30px;
  font-size: 1rem;
  transition: background 0.2s;
}
.inner-select-btn:hover { background: #f0c54d; }

/* RESPONZIVITA */
@media (max-width: 900px) {
  .row-main { grid-template-columns: 1fr 1fr; }
  .col-amount { order: 3; grid-column: span 2; }
}
@media (max-width: 600px) {
  .row-main { grid-template-columns: 1fr; padding: 20px; gap: 15px; }
  .col-amount { grid-column: span 1; }
  .col-cta { align-items: stretch; }
  .col-info .row-title { font-size: 1.1rem; }
}
:root {
  --card-bg: #ffefbc;
  --accent-gold: #f8d77a;
}

.services-wrapper { 
  display: flex; 
  flex-direction: column; 
  gap: 15px; /* Väčšia medzera medzi riadkami */
  max-width: 1050px; 
  margin: 0 auto; 
  font-family: sans-serif; 
}

.service-row { 
  background: var(--card-bg); 
  border-radius: 12px; 
  transition: all 0.3s ease; 
  overflow: hidden; 
  border: 2px solid transparent; 
  position: relative; 
}

.service-row.is-open { 
  background: #fff; 
  border-color: var(--accent-gold); 
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}

/* Hlavný grid */
.row-main { 
  display: grid; 
  grid-template-columns: 2.5fr 1.5fr 1fr; 
  align-items: center; 
  padding: 25px 25px 25px; 
  gap: 20px; 
  cursor: pointer; 
  position: relative;
}

.row-title { margin: 0 0 8px; font-size: 1.15rem; font-weight: 800; color: #000; }
.row-short { margin: 0; font-size: 0.9rem; color: #333; line-height: 1.4; }

/* Výber sumy */
.inline-toggles { display: flex; background: rgba(0,0,0,0.06); padding: 4px; border-radius: 10px; gap: 2px; }
.amt-option { 
  flex: 1; border: none; background: transparent; padding: 12px 2px; 
  font-size: 0.75rem; font-weight: 800; cursor: pointer; border-radius: 7px; 
  transition: 0.2s; color: #555; display: flex; align-items: center; justify-content: center;
}
.amt-option.active { background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.15); color: #000; }

/* Tlačidlo Pokračovať */
.col-cta { display: flex; justify-content: center; align-items: center; }
.row-main-btn { 
    max-width: 200px; 
    width: 100%; /* Dôležité, aby button vyplnil priestor podla max-width */
    padding: 12px;
    font-size: 0.95rem;
    
    /* Tieto tri riadky vycentrujú text vo vnútri tlačidla */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    margin: 0 auto; /* Poistka pre vycentrovanie samotného tlačidla v rámci col-cta */
  }
.row-main-btn:hover { background: #000; color: #fff; transform: scale(1.05); }

/* Odkaz na detaily - Východiskové nastavenie (PC) */
.details-link { 
  /* Zrušíme absolútne poziciovanie, aby sa prvok správal ako text pod popisom */
  position: static; 
  transform: none;
  left: auto;
  bottom: auto;

  display: inline-flex; /* Zabezpečí, že zaberie len toľko miesta, koľko potrebuje */
  align-items: center; 
  gap: 4px;
  margin-top: 10px; /* Medzera pod popisom */
  
  font-size: 0.9rem; 
  font-weight: 700; 
  color: black; 
  text-decoration: none; 
  cursor: pointer;
  text-align: left;
}

.details-link::after { 
  content: '▾'; 
  transition: transform 0.3s ease; 
  display: inline-block; 
}

.service-row.is-open .details-link::after { 
  transform: rotate(180deg); 
}

/* Detaily po rozbalení */
.row-details { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.service-row.is-open .row-details { max-height: 1200px; }
.details-content { padding: 30px; border-top: 1px solid #f0f0f0; }

.hs-custom-content h4 { margin: 0 0 15px 0; font-size: 1.1rem; font-weight: 800; color: #000; }
.hs-custom-content h4:nth-of-type(2) { margin-top: 25px; }

/* CSP FIX: Zlatá fajka ako inline SVG (nehlási chybu) */
.benefits-list { list-style: none !important; padding: 0; margin: 0 0 25px 0; }
.benefits-list li { position: relative; padding-left: 30px; margin-bottom: 12px; font-size: 1rem; color: #333; }
.benefits-list li::before {
  content: ''; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px;
  /* Toto SVG nahrádza externý obrázok bizpartnergroup */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b58d1d'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.process-list { list-style: none; padding: 0; }
.process-list li { margin-bottom: 10px; font-size: 0.95rem; line-height: 1.4; }
.process-list b { color: #000; margin-right: 5px; }

/* --- DOPLNOK PRE PC (Vložte k ostatným štýlom) --- */

/* 1. Príprava stĺpca so sumami */
.col-amount {
  display: flex;
  flex-direction: column; /* Nadpis hore, prepínače pod ním */
  gap: 3px;              /* Medzera medzi nadpisom a prepínačmi */
  justify-content: center;
}
/* Kontajner slidera */
.slider-wrapper {
  width: 100%;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* 2. Kontajner pre text a sumu (vložíš do HTML) */
.slider-header {
    display: flex;
    justify-content: space-between; /* Rozdelí text naľavo a sumu napravo */
    align-items: baseline;
    width: 100%;
    margin-bottom: 8px;
}

.slider-label-text {
    font-size: 0.85rem;
    font-weight: 800;
    color: black;
    text-transform: none;
}

/* Zobrazenie aktuálnej sumy */
.slider-display {
  font-size: 1.2rem;
  font-weight: 900;
  color: #000;
  margin-bottom: 10px;
  background: #fff;
  padding: 4px 15px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border: 1px solid var(--accent-gold);
}

/* Základný vzhľad slidera */
.custom-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: rgba(0,0,0,0.1);
  border-radius: 5px;
  outline: none;
  margin: 15px 0;
}

/* Kontajner slidera - kompaktnejší */
.slider-wrapper {
  width: 100%;
  max-width: 350px; /* Obmedzená šírka na PC */
  margin: 0 auto;
  padding: 5px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Zobrazenie aktuálnej sumy - menšie a čistejšie */
.slider-display {
  font-size: 1.1rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 5px;
  background: #fff;
  padding: 2px 12px;
  border-radius: 15px;
  border: 1px solid var(--accent-gold);
}

/* Dráha slidera - tenšia */
.custom-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px; /* Tenšia čiara */
  background: rgba(0,0,0,0.1);
  border-radius: 2px;
  outline: none;
  margin: 12px 0;
}

/* Koliesko slidera - menšie */
.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;  /* Zmenšené z 24px */
  height: 18px; /* Zmenšené z 24px */
  background: #000;
  border: 2px solid black;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

/* Popisky pod sliderom - drobnejšie */
.slider-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.7rem;
  font-weight: 600;
  color: #888;
}

@media (max-width: 850px) {
  .slider-wrapper {
    max-width: 100%; /* Na mobile využije celú šírku */
  }
}

/* --- MOBILNÉ ZAROVNANIE (UHLADENÉ) --- */
@media (max-width: 850px) {

  .service-row {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    margin-bottom: 0 !important;
  }

  /* ❌ ZRUŠENÉ – rozbíjalo flex poradie */
  .row-main {
    display: block;
  }

  /* 1. TEXTY */
  .col-info {
    order: 1;
    padding: 20px 20px 8px 20px;
    width: 100%;
    text-align: left;
  }

  .row-title {
    font-size: 1.4rem !important;
    font-weight: 900;
    margin-bottom: 4px;
  }

  .row-short {
    font-size: 0.9rem;
  }

  /* 2. OTVORIŤ / ZAVRIEŤ – POD TEXTOM */
  .details-link {
    order: 2;
    position: static !important;   /* 🔥 kľúč */
    left: auto !important;
    transform: none !important;
    width: 100%;
    display: flex !important;
    justify-content: center;
    padding: 6px 0 !important;
    margin: 0 0 6px 0 !important;
    font-size: 0.9rem;
    font-weight: 800;
    color: black;
    cursor: pointer;
  }

  /* 3. ROZBALENÝ OBSAH */
  .row-details {
    order: 3;
    width: 100%;
    padding: 0 !important;
  }

  .details-content {
    padding: 5px 20px !important;
    margin: 0 !important;
  }

  .benefits-list {
    margin-bottom: 5px !important;
  }

  /* 4. SUMY */
  .col-amount {
    order: 4;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 5px 20px !important;
    margin: 0 !important;
  }

  .inline-toggles {
    width: 100%;
    max-width: 100%;
  }

  /* 5. CTA */
  .col-cta {
    order: 5;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 5px 20px 15px 20px !important;
    margin: 0 !important;
  }

  .row-main-btn {
    width: 100%;
    padding: 12px;
    margin: 0 !important;
  }
}
@media (max-width: 850px) {

  .row-main {
    display: contents;
  }

  .col-info {
    display: flex;
    flex-direction: column;
  }

  .details-link {
    position: static !important;
    left: auto !important;
    transform: none !important;
    margin-top: 6px;
    align-self: center;
  }
}
@media (max-width: 850px) {
  .service-row {
    display: flex;
    flex-direction: column;
  }

  .col-info, .details-link, .row-details, .col-amount, .col-cta {
    width: 100%;
  }

  .col-info { text-align: left; padding: 20px; }
  .details-link { display: flex; justify-content: center; padding: 6px 0; cursor: pointer; }
}
@media (max-width: 850px) {
/* 1. Základný stav - sumy sú transparentné */
.amt-option {
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  background-color: transparent !important; /* Základ je priehľadný */
  color: black !important;                /* Text musí byť biely, aby ho bolo vidieť na pozadí */
  -webkit-tap-highlight-color: transparent;
  font-weight: 800 !important;
  transform: scale(1);
}

/* 2. Dynamika pri zatlačení (pocit kliknutia) */
.amt-option:active {
  transform: scale(0.92);
}

/* 3. KONEČNÝ STAV - Len označená suma je biela */
.amt-option.active {
  background-color: #ffffff !important; /* Vybratá suma sa zmení na bielu */
  border-color: #ffffff !important;
  color: #000000 !important;             /* Text na bielej musí byť čierny */
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* 4. Ochrana pred šedým hoverom z iných kódov */
.amt-option:hover {
  background-color: transparent !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.8) !important; /* Pri hoveri len trochu zvýrazníme okraj */
}

/* Ak je aktívna (biela), pri hoveri tak aj zostane */
.amt-option.active:hover {
  background-color: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
}

/* 5. Úprava pre mobil (vypnutie hover efektov) */
@media (hover: none) {
  .amt-option:hover:not(.active) {
    background-color: transparent !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
  }
}
@media (max-width: 850px) {
  /* Hlavná karta zostáva žltá */
  .service-row {
    background: var(--card-bg) !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Rozbaľovacia sekcia (Texty: Výhody a Postup) - JEDINÁ BUDE BIELA */
  .row-details {
    order: 3 !important;
    background-color: #ffffff !important; /* Biela len tu */
    width: 100% !important;
  }

  .details-content {
    padding: 20px !important;
  }

  /* Horná časť (Názov a popis) - ZOSTÁVA ŽLTÁ */
  .col-info {
    order: 1 !important;
    background-color: transparent !important;
    padding: 20px 20px 20px 20px !important;
  }

  /* Tlačidlo Zobraziť/Zatvoriť - ZOSTÁVA ŽLTÉ */
  .details-link {
    order: 2 !important;
    background-color: transparent !important;
    margin: 5px auto 10px auto !important;
  }


  /* Spodná sekcia (Tlačidlo Pokračovať) - ZOSTÁVA ŽLTÁ */
  .col-cta {
    order: 5 !important;
    background-color: transparent !important;
    padding: 5px 20px 20px 20px !important;
  }

  /* Fix pre sumy: keďže sú na žltom, vrátime im biely aktívny stav */
  .amt-option.active {
    background-color: #ffffff !important;
    border: 2px solid #000 !important;
    color: #000 !important;
  }
}
/* --- MOBILNÉ ÚPRAVY (iba od 850px nižšie) --- */
@media (max-width: 850px) {
  
  /* 1. Hlavná karta pod sebou */
  .service-row {
    display: flex;
    flex-direction: column;
  }
     /* 1. Skryjeme kalkulačku (slider) v zavretom stave */
  .service-row:not(.is-open) .col-amount {
    display: none !important;
  }

  /* 2. Skryjeme tlačidlo Kontaktovať v zavretom stave */
  .service-row:not(.is-open) .row-main-btn {
    display: none !important;
  }

  /* 3. Upravíme padding col-cta, aby v zavretom stave nezaberala miesto */
  .service-row:not(.is-open) .col-cta {
    padding-bottom: 10px !important;
  }

  /* 4. Keď je karta otvorená, všetko zobrazíme v správnom poradí */
  .service-row.is-open .col-amount {
    display: flex !important;
    order: 4; /* Pod detaily */
  }

  .service-row.is-open .col-cta {
    display: flex !important;
    order: 5; /* Na úplný spodok */
  }

  .service-row.is-open .row-main-btn {
    display: flex !important;
  }

  /* 5. Estetická úprava: Zmenšíme medzeru pod textom v zavretom stave */
  .col-info {
    padding-bottom: 5px !important;
  }
}