/* ITS4You static pages - spolocne komponenty pre stranky prevedene z Elementora (import.php --convert).
   Dizajn: its4you-design (jediny akcent #0088CC, Open Sans, bez gradientov, karty 12px, tlacidla 10px).
   Stranky s vlastnym HTML widgetom maju svoje CSS - tieto triedy pouzivaju len prevedene stranky. */

.its-section {
  padding: 64px 0;
  background: #ffffff;
  color: #34404d;
}

.its-section--alt {
  background: #f5f7fa;
}

.its-section--hero {
  padding: 56px 0 48px;
}

.its-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* typografia */
.its-section h1,
.its-section h2,
.its-section h3,
.its-section h4 {
  margin: 0 0 14px;
  color: #0d1117;
  line-height: 1.25;
}

.its-section h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800;
}

.its-section h2 {
  margin-top: 8px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
}

.its-section h3 {
  font-size: 20px;
  font-weight: 600;
}

.its-section h4,
.its-section h5,
.its-section h6 {
  font-size: 17px;
  font-weight: 600;
}

.its-section * + h2 {
  margin-top: 36px;
}

/* nadpis sekcie + podnadpis centrovane (its4you-design: centred H2 + subtitle); hero ostava vlavo */
.its-section:not(.its-section--hero) > .its-container > h2,
.its-section:not(.its-section--hero) > .its-container > .its-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.its-subtitle {
  max-width: 760px;
  margin: -4px 0 24px;
  color: #5a6776;
  font-size: 17px;
  line-height: 1.6;
}

.its-section * + h3 {
  margin-top: 24px;
}

.its-text {
  max-width: 860px;
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.7;
}

.its-text p {
  margin: 0 0 12px;
}

.its-section--hero .its-text {
  font-size: 18px;
  color: #5a6776;
}

/* farba odkazov len v textoch prevodnika - nie v html widgetoch s vlastnymi tlacidlami */
.its-text a,
.its-list a,
.its-faq__a a,
.its-subtitle a {
  color: #0077b5;
}

/* tlacidla */
.its-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 8px;
}

.its-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid #0088cc;
  border-radius: 10px;
  background: #0088cc;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s cubic-bezier(.2, 0, .2, 1), color .15s cubic-bezier(.2, 0, .2, 1);
}

.its-btn:hover {
  background: #0077b5;
  border-color: #0077b5;
  color: #ffffff;
}

.its-actions .its-btn + .its-btn {
  background: #ffffff;
  color: #0088cc;
}

.its-actions .its-btn + .its-btn:hover {
  background: #0088cc;
  color: #ffffff;
}

.its-btn:focus-visible {
  outline: 2px solid #0088cc;
  outline-offset: 2px;
}

/* stlpce */
.its-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 28px;
  align-items: start;
  margin: 8px 0 16px;
}

.its-cols--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 40px;
}

.its-cols--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.its-cols--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 20px;
}

/* Elementor grid s pevnym poctom stlpcov (2-3) - ako vo WP, na mobile pod sebou */
.its-cols--fixed {
  grid-template-columns: repeat(var(--its-cols, 2), minmax(0, 1fr));
}

@media (max-width: 640px) {
  .its-cols--fixed {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* husta mriezka kariet (Elementor grid 3+ stlpcov) */
.its-cols--grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  gap: 16px;
  align-items: stretch;
}

.its-col > :last-child {
  margin-bottom: 0;
}

/* obrazok */
.its-figure {
  margin: 0 0 16px;
}

.its-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* zoznam */
.its-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.its-list li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 26px;
  line-height: 1.6;
}

.its-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #0088cc;
}

.its-list--plain li {
  padding-left: 0;
}

.its-list--plain li::before {
  display: none;
}

/* karty (image-box, icon-box) */
.its-card {
  height: 100%;
  padding: 24px;
  border: 1px solid #e2e6ec;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(13, 17, 23, .04), 0 4px 12px rgba(13, 17, 23, .05);
}

.its-card img {
  display: block;
  max-width: 96px;
  height: auto;
  margin: 0 0 14px;
}

.its-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

/* karta s ikonou vlavo (image-box position left) - kompaktny riadok bez ramu */
.its-card--inline {
  display: flex;
  align-items: center;
  gap: 14px;
  height: auto;
  padding: 8px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.its-card--inline img {
  flex: 0 0 auto;
  width: 44px;
  max-width: 44px;
  margin: 0;
}

.its-card--inline h3 {
  margin: 0 0 2px;
  font-size: 15px;
}

.its-card--inline p {
  font-size: 13px;
}

/* karta s ikonou (image-box) - centrovana ako vo WP */
.its-card--center {
  text-align: center;
}

.its-card--center img {
  max-width: 120px;
  margin: 0 auto 12px;
}

.its-card--center h3 {
  font-size: 16px;
}

.its-card--center p {
  font-size: 14px;
}

.its-card h3 a {
  color: #0d1117;
  text-decoration: none;
}

.its-card p {
  margin: 0;
  color: #5a6776;
  line-height: 1.6;
}

/* eyebrow nad nadpisom (porto_ultimate_heading: "STEP 1") */
.its-eyebrow {
  margin: 0 0 6px;
  color: #0088cc;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* statistiky (porto_stat_counter) */
.its-stat {
  text-align: center;
}

.its-stat strong {
  display: block;
  color: #0088cc;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.1;
}

.its-stat span {
  display: block;
  margin-top: 6px;
  color: #5a6776;
  font-size: 15px;
}

/* prepinac obsahu (xpro-content-toggle), JS: components.js */
.its-toggle__switch {
  display: flex;
  flex-wrap: wrap; /* viac zaloziek (nested-tabs) sa zalomi */
  justify-content: center;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 24px;
  padding: 4px;
  border: 1px solid #e2e6ec;
  border-radius: 24px;
  background: #f5f7fa;
}

.its-toggle__switch button {
  min-height: 36px;
  padding: 6px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #34404d;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.its-toggle__switch button[aria-selected="true"] {
  background: #0088cc;
  color: #ffffff;
}

.its-toggle__panel[hidden] {
  display: none;
}

/* cenova karta (price-table) */
.its-price {
  position: relative;
  height: 100%;
  padding: 28px 24px;
  border: 1px solid #e2e6ec;
  border-top: 4px solid #0088cc;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(13, 17, 23, .04), 0 4px 12px rgba(13, 17, 23, .05);
  text-align: center;
}

.its-price h3 {
  margin: 0 0 4px;
}

.its-price__sub {
  margin: 0 0 16px;
  color: #5a6776;
  font-size: 14px;
}

.its-price__amount {
  margin: 0 0 18px;
  color: #5a6776;
}

.its-price__amount strong {
  color: #0d1117;
  font-size: 40px;
  font-weight: 700;
}

.its-price .its-list {
  display: inline-block;
  text-align: left;
}

.its-price .its-actions {
  justify-content: center;
}

.its-price__note {
  margin: 8px 0 0;
  color: #5a6776;
  font-size: 13px;
}

.its-price__ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #0088cc;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

/* modalne okno (Popup Maker), JS: components.js */
.its-modal {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100% - 48px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(13, 17, 23, .25);
}

.its-modal:focus,
.its-modal:focus-visible {
  outline: none;
}

/* sablona ma vlastnu kartu aj krizik -> okno bez vlastneho ramu */
.its-modal--own-close {
  background: transparent;
  box-shadow: none;
}

.its-modal--own-close .its-modal__body {
  padding: 0;
}

.its-modal--own-close > .its-modal__close {
  display: none;
}

.its-modal::backdrop {
  background: rgba(13, 17, 23, .55);
}

.its-modal__body {
  padding: 32px 28px 24px;
}

.its-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #5a6776;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* referencie (testimonial-carousel) */
.its-quote {
  height: 100%;
  margin: 0;
  padding: 22px 24px;
  border: 1px solid #e2e6ec;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(13, 17, 23, .04), 0 4px 12px rgba(13, 17, 23, .05);
}

.its-quote blockquote {
  margin: 0 0 12px;
  color: #34404d;
  font-style: italic;
  line-height: 1.65;
}

.its-quote figcaption {
  color: #0d1117;
  font-weight: 600;
  font-size: 14px;
}

/* slider referencii (ako Elementor testimonial-carousel): jedna naraz, sipky, bodky, autoplay.
   Bez JS: vodorovne rolovanie so snap (swipe na mobile). JS: components.js [data-its-slider] */
.its-slider {
  position: relative;
  max-width: 920px;
  margin: 24px auto 0;
  padding: 0 52px;
}

.its-slider__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.its-slider__track::-webkit-scrollbar {
  display: none;
}

.its-slider__slide {
  flex: 0 0 100%;
  margin: 0;
  padding: 8px 4px;
  scroll-snap-align: center;
  text-align: center;
}

.its-slider__slide blockquote {
  margin: 0 0 14px;
  color: #34404d;
  font-size: 17px;
  font-style: italic;
  line-height: 1.7;
}

.its-slider__slide figcaption {
  color: #0088cc;
  font-weight: 700;
  font-size: 14px;
}

.its-slider__prev,
.its-slider__next {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #dfeaf1;
  border-radius: 50%;
  background: #ffffff;
  color: #0088cc;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 4px 12px rgba(32, 55, 76, .08);
}

.its-slider__prev { left: 0; }
.its-slider__next { right: 0; }

.its-slider__prev:hover,
.its-slider__next:hover {
  border-color: #0088cc;
}

.its-slider__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin-top: 12px;
}

/* klikacia plocha 24x24 (mobil), bodka 10x10 */
.its-slider__dots button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.its-slider__dots button::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c9d6df;
}

.its-slider__dots button[aria-current="true"]::before {
  background: #0088cc;
}

.its-slider:not(.is-ready) .its-slider__prev,
.its-slider:not(.is-ready) .its-slider__next {
  display: none;
}

@media (max-width: 640px) {
  .its-slider { padding: 0; }
  .its-slider__prev, .its-slider__next { display: none; }
  .its-slider__slide blockquote { font-size: 16px; }
}

/* FAQ */
.its-faq {
  max-width: 860px;
  margin: 0 0 12px;
  border: 1px solid #e2e6ec;
  border-radius: 12px;
  background: #ffffff;
}

.its-faq summary {
  position: relative;
  padding: 16px 48px 16px 20px;
  color: #0d1117;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.its-faq summary::-webkit-details-marker {
  display: none;
}

.its-faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #0088cc;
  font-size: 22px;
  font-weight: 400;
}

.its-faq[open] summary::after {
  content: "\2212";
}

.its-faq__a {
  padding: 0 20px 16px;
  line-height: 1.7;
  /* siroke tabulky (porovnanie balikov) sa na mobile posuvaju vo vnutri, nepretecu stranku */
  overflow-x: auto;
}

.its-faq__a p {
  margin: 0 0 10px;
}

@media (max-width: 640px) {
  .its-section {
    padding: 44px 0;
  }

  .its-container {
    padding: 0 16px;
  }

  .its-actions .its-btn {
    flex: 1 1 100%;
  }
}
