/* ==========================================================================
   Potlač tašiek – štýly podstránky (mojataska.sk/sk/potlac-tasiek)
   Všetko je pod triedou .pt-page a s predponou pt-, aby sa štýly
   nebili so štýlmi šablóny webu.
   Body zlomu: menší desktop do 1279 px, tablet do 899 px, mobil do 639 px, malý mobil do 379 px.
   ========================================================================== */

.pt-page {
  --pt-green: #97B43B;       /* hlavná zelená (tlačidlá, lišta, ikony) */
  --pt-lime: #B5D056;        /* limetková (čísla krokov, odrážky, zvýraznená karta) */
  --pt-grey: #ECECEC;        /* sivé boxy */
  --pt-grey-light: #F6F6F6;  /* sivé pozadie sekcií */
  --pt-line: #E5E5E5;
  --pt-text: #000000;
  --pt-text-soft: #3D3D3D;
  font-size: 16px;
  line-height: 1.55;
  color: var(--pt-text);
  background: #FFFFFF;
}

.pt-page *,
.pt-page *::before,
.pt-page *::after { box-sizing: border-box; }

/* Reset len vnútri stránky; :where() drží nízku váhu selektora, aby ho triedy nižšie prebili */
.pt-page :where(img) { max-width: 100%; height: auto; display: block; }
.pt-page :where(a) { color: inherit; }
.pt-page :where(h1, h2, h3, p, ul, ol, dl, dd, figure) { margin: 0; padding: 0; }
.pt-page :where(ul, ol) { list-style: none; }

/* obsah má šírku 1240 px + 24 px okraj z každej strany */
.pt-container { max-width: 1288px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.pt-nowrap { white-space: nowrap; }

/* ---------- Nadpisy a úvodné vety ---------- */
.pt-h2 { font-size: 38px; font-weight: 600; line-height: 1.15; }
.pt-h2--small { font-size: 30px; line-height: 1.2; }
.pt-h2--panel { font-size: 34px; }
.pt-lead { font-size: 18px; }
.pt-lead--small { font-size: 16px; }
.pt-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.pt-head--narrow { max-width: 760px; }
.pt-head--tight { gap: 6px; margin-bottom: 22px; }

/* ---------- Sekcie ---------- */
.pt-section { padding: 72px 0; }
.pt-section--grey { background: var(--pt-grey-light); }
.pt-section--compact { padding: 48px 0; }
#typy .pt-h2 { margin-bottom: 32px; }

/* ---------- Tlačidlá ---------- */
.pt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 10px; border: 2px solid var(--pt-green);
  font-weight: 600; text-decoration: none; text-align: center;
  transition: background-color .15s ease, border-color .15s ease;
}
.pt-page a.pt-btn--solid { background: var(--pt-green); color: #FFFFFF; }
.pt-page a.pt-btn--solid:hover { background: #86A131; border-color: #86A131; }
.pt-page a.pt-btn--outline { background: #FFFFFF; color: #000000; }
.pt-page a.pt-btn--outline:hover { background: #F3F7E4; }
.pt-btn--wide { width: 100%; }

/* ---------- Hero ---------- */
.pt-hero { position: relative; overflow: hidden; background: #FFFFFF; }
.pt-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.pt-hero__row {
  position: relative; display: flex; align-items: center; gap: 40px 56px;
  padding-top: 56px; padding-bottom: 48px;
}
.pt-hero__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pt-hero__media { flex: 1 1 420px; min-width: 0; }
.pt-hero__media img { width: 100%; }

.pt-h1 { display: flex; flex-direction: column; gap: 12px; font-weight: 600; }
.pt-eyebrow {
  align-self: flex-start; padding: 6px 16px; border-radius: 999px;
  background: var(--pt-green); color: #FFFFFF;
  font-size: 16px; font-weight: 600; letter-spacing: 0.04em; line-height: 1.5;
  text-transform: uppercase;
}
.pt-h1__main { font-size: 50px; font-weight: 600; line-height: 1.1; }
.pt-hero__lead { font-size: 20px; line-height: 1.4; max-width: 520px; }
.pt-hero__note { font-size: 16px; color: #2B2B2B; max-width: 520px; }

.pt-tiles { position: relative; display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 48px; }
.pt-tile {
  flex: 1 1 auto; display: flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 10px;
  background: #FFFFFF; border: 1px solid #D5E2A8; border-radius: 10px;
  box-shadow: 0 6px 18px rgba(70, 90, 20, 0.10);
}
.pt-tile__icon {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 8px; background: var(--pt-green);
  display: inline-flex; align-items: center; justify-content: center;
}
.pt-tile__text { font-size: 17px; font-weight: 600; line-height: 1.25; white-space: nowrap; }

/* ---------- Aké tašky vám potlačíme ---------- */
.pt-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pt-type {
  display: flex; flex-direction: column; text-align: center;
  padding: 14px 14px 18px; background: var(--pt-grey); border-radius: 12px; text-decoration: none;
  transition: box-shadow .15s ease;
}
.pt-type:hover { box-shadow: 0 0 0 2px var(--pt-green); }
.pt-type img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #FFFFFF; border-radius: 8px; margin-bottom: 12px; }
.pt-type__name { font-size: 20px; font-weight: 600; line-height: 1.25; }
.pt-type__sub { font-size: 14px; color: var(--pt-text-soft); margin-top: 2px; }

/* ---------- Ako prebieha potlač ---------- */
.pt-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pt-step { background: #FFFFFF; border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.pt-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 999px; background: var(--pt-lime);
  font-size: 26px; font-weight: 600;
}
.pt-step__title { font-size: 22px; font-weight: 600; line-height: 1.3; }

/* ---------- Technológie ---------- */
.pt-techs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pt-tech { display: flex; flex-direction: column; overflow: hidden; border: 2px solid var(--pt-grey); border-radius: 14px; }
.pt-tech__head { display: flex; flex-direction: column; padding: 16px 20px; background: var(--pt-grey); }
.pt-tech--top { border-color: var(--pt-lime); }
.pt-tech--top .pt-tech__head { background: var(--pt-lime); }
.pt-tech__label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.pt-tech__name { font-size: 22px; font-weight: 600; }
.pt-tech__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; }
.pt-tech__params { margin-top: auto; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.pt-tech__params > div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--pt-line); padding-top: 6px; }
.pt-tech__params dt { color: var(--pt-text-soft); }
.pt-tech__params dd { font-weight: 600; }

.pt-urgent {
  margin-top: 32px; padding: 16px 20px; background: var(--pt-grey); border-radius: 12px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
}
.pt-urgent__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pt-urgent__text strong { font-size: 19px; font-weight: 600; line-height: 1.3; }
.pt-urgent__text span { font-size: 15px; color: #2B2B2B; }
.pt-urgent .pt-btn { min-height: 48px; padding: 0 22px; }

/* ---------- Ukážky realizácií ---------- */
.pt-gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.pt-gallery figure { display: flex; flex-direction: column; gap: 8px; }
.pt-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; }
.pt-gallery figcaption { font-size: 14px; font-weight: 500; }

/* ---------- Časté otázky ---------- */
.pt-faq { display: flex; align-items: flex-start; gap: 40px 56px; }
.pt-faq__intro { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.pt-faq__intro .pt-h2, .pt-faq__intro .pt-lead { text-wrap: balance; }
.pt-faq__list { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pt-faq__list details { background: var(--pt-grey-light); border-radius: 12px; padding: 0 22px; }
.pt-faq__list summary { padding: 18px 0; font-size: 17px; font-weight: 600; cursor: pointer; }
.pt-faq__list details p { margin: 0 0 18px; }

/* ---------- Záverečný blok ---------- */
.pt-closing { padding: 24px 0 80px; }
.pt-panel { display: flex; align-items: center; gap: 28px 44px; padding: 28px; background: var(--pt-grey); border-radius: 16px; }
.pt-panel__media { flex: 1 1 300px; max-width: 400px; min-width: 0; }
.pt-panel__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; }
.pt-panel__body { flex: 2 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.pt-checks { display: grid; grid-template-columns: repeat(2, auto); gap: 22px 32px; }
.pt-checks li { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 500; line-height: 1.3; }
.pt-checks svg { flex: 0 0 auto; }
.pt-actions { display: flex; gap: 18px 20px; padding-top: 30px; border-top: 1px solid #CFCFCF; }
.pt-action { flex: 1 1 230px; display: flex; flex-direction: column; gap: 12px; }
.pt-action__label { font-size: 16px; font-weight: 500; }

/* ==========================================================================
   Menší desktop (do 1279 px)
   ========================================================================== */
@media (max-width: 1279px) {
  .pt-h1__main { font-size: 42px; }
  .pt-h2 { font-size: 32px; }
  .pt-h2--small { font-size: 28px; }
  .pt-h2--panel { font-size: 28px; }
  .pt-section { padding: 56px 0; }
  .pt-section--compact { padding: 44px 0; }


  .pt-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-techs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pt-checks { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* ==========================================================================
   Tablet (do 899 px)
   ========================================================================== */
@media (max-width: 899px) {
  .pt-h1__main { font-size: 38px; }

  .pt-hero__row { flex-direction: column; align-items: stretch; gap: 24px; padding-top: 40px; padding-bottom: 32px; }
  .pt-hero__text, .pt-hero__media { flex: 0 0 auto; }
  .pt-hero__lead, .pt-hero__note { max-width: none; }

  .pt-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-steps { grid-template-columns: minmax(0, 1fr); }

  .pt-faq { flex-direction: column; align-items: stretch; gap: 24px; }
  .pt-faq__intro, .pt-faq__list { flex: 0 0 auto; }

  .pt-panel { flex-direction: column; align-items: stretch; }
  .pt-panel__media { flex: 0 0 auto; max-width: none; }
  .pt-panel__media img { aspect-ratio: 16 / 10; }
  .pt-panel__body { flex: 0 0 auto; }
  .pt-checks { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
}

/* ==========================================================================
   Mobil (do 639 px)
   ========================================================================== */
@media (max-width: 639px) {
  .pt-container { padding-left: 16px; padding-right: 16px; }

  .pt-h2 { font-size: 26px; line-height: 1.2; }
  .pt-h2--small { font-size: 26px; }
  .pt-h2--panel { font-size: 24px; }
  .pt-lead { font-size: 16px; }
  .pt-lead--small { font-size: 15px; }
  .pt-head { margin-bottom: 22px; }
  .pt-head--tight { margin-bottom: 18px; }
  .pt-section { padding: 44px 0; }
  .pt-section--compact { padding: 40px 0; }
  #typy .pt-h2 { margin-bottom: 22px; }


  .pt-hero__row { flex-direction: column; align-items: stretch; gap: 18px; padding-top: 28px; padding-bottom: 22px; }
  .pt-hero__text, .pt-hero__media { flex: 0 0 auto; }
  .pt-hero__text { gap: 14px; }
  .pt-eyebrow { font-size: 13px; }
  .pt-h1__main { font-size: 30px; line-height: 1.15; }
  .pt-hero__lead { font-size: 17px; max-width: none; }
  .pt-hero__note { font-size: 15px; max-width: none; }

  .pt-tiles { gap: 10px; padding-bottom: 32px; }
  .pt-tile { gap: 10px; padding: 8px 10px 8px 8px; }
  .pt-tile__icon { width: 38px; height: 38px; }
  .pt-tile__icon svg { width: 22px; height: 22px; }
  .pt-tile__text { font-size: 13px; line-height: 1.3; white-space: normal; }

  .pt-types { gap: 10px; }
  .pt-type { padding: 8px 8px 12px; }
  .pt-type img { margin-bottom: 8px; }
  .pt-type__name { font-size: 16px; }
  .pt-type__sub { font-size: 12px; line-height: 1.35; }

  .pt-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pt-step { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 12px; padding: 16px; border-radius: 12px; }
  .pt-step__num { width: 38px; height: 38px; font-size: 19px; }
  .pt-step__title { font-size: 18px; line-height: 1.25; }
  .pt-step__text { grid-column: 1 / -1; font-size: 15px; }

  .pt-techs { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pt-tech__head { padding: 12px 16px; }
  .pt-tech__name { font-size: 19px; }
  .pt-tech__body { padding: 14px 16px; gap: 10px; font-size: 15px; }
  .pt-tech__params { margin-top: 0; }

  .pt-urgent { flex-direction: column; align-items: stretch; margin-top: 22px; padding: 16px; }
  .pt-urgent__text strong { font-size: 17px; }

  .pt-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .pt-gallery figure { gap: 6px; }
  .pt-gallery figcaption { font-size: 12px; line-height: 1.35; }

  .pt-faq { gap: 22px; }
  .pt-faq__intro { gap: 12px; }
  .pt-faq__list { gap: 8px; }
  .pt-faq__list details { padding: 0 16px; }
  .pt-faq__list summary { padding: 15px 0; font-size: 15px; line-height: 1.35; }
  .pt-faq__list details p { margin-bottom: 15px; font-size: 15px; }

  .pt-closing { padding: 0 0 44px; }
  .pt-panel { gap: 18px; padding: 14px; border-radius: 14px; }
  .pt-panel__media img { border-radius: 10px; }
  .pt-panel__body { gap: 18px; padding: 0 4px 6px; }
  .pt-checks { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pt-checks li { font-size: 16px; }
  .pt-actions { flex-direction: column; gap: 16px; padding-top: 18px; }
  .pt-action { flex: 0 0 auto; gap: 8px; }
  .pt-action__label { font-size: 15px; }
}

/* ==========================================================================
   Malý mobil (do 379 px)
   ========================================================================== */
@media (max-width: 379px) {
  .pt-h1__main { font-size: 27px; }
  .pt-h2, .pt-h2--small { font-size: 24px; }
  .pt-h2--panel { font-size: 22px; }
  .pt-tile { gap: 8px; padding: 8px; }
  .pt-tile__icon { width: 32px; height: 32px; }
  .pt-tile__icon svg { width: 19px; height: 19px; }
  .pt-tile__text { font-size: 12.5px; }
  .pt-gallery figcaption { font-size: 11.5px; }
}
