/* Naše služby */

.svc-intro, .svc-list { background: var(--c-white); }

/* pás na šírku stránky mínus 80 px z každej strany (min. 980 px ako Wix) */
.svc-intro__strip, .svc-row {
  width: max(calc(100% - 160px), min(980px, calc(100% - 20px)));
  margin: 0 auto;
}

/* ---------- Úvod ---------- */
.svc-intro { padding: 40px 0 92px; }
.svc-intro__strip { display: grid; grid-template-columns: 24.9% 1fr; height: 381px; }
.svc-intro__img { width: 100%; height: 100%; object-fit: cover; }
.svc-intro__col { display: flex; justify-content: center; padding-right: 38px; }
.svc-intro__text { width: min(583px, 100% - 40px); padding-top: 26px; }
.svc-intro__title { font-family: var(--f-serif); font-size: 50px; line-height: 1.34; }
.svc-intro__text p { margin: 36px 0 32px; font-size: 16px; line-height: 29.75px; }

/* ---------- Zoznam služieb ---------- */
.svc-list { padding: 21px 0 60px; scroll-margin-top: var(--header-h); }
.svc-row { display: grid; align-items: start; }
.svc-row--a, .svc-row--c { grid-template-columns: 178fr 471fr 471fr; }
.svc-row--b { grid-template-columns: 470fr 471fr 179fr; }
.svc-row--a .service:first-child, .svc-row--c .service:first-child { grid-column: 2; }
.svc-row--a { padding: 80px 0 69px; }
.svc-row--b { margin-top: 22px; padding: 42px 0 72px; }
.svc-row--c { padding: 43px 0 39px; }

.service { width: 402px; }
.service__img { width: 100%; height: 326px; object-fit: cover; }
.service__title { margin-top: 41px; font-family: var(--f-serif); font-size: 20px; line-height: 28px; }
.service__text { max-width: 391px; margin-top: 20px; font-size: 16px; line-height: 1.6; }
.service .btn { margin-top: var(--btn-gap, 38px); }

/* poloha karty v stĺpci (ako na Wixe) */
.service--torty { justify-self: end; margin-right: 11px; --btn-gap: 63.6px; }
.service--candybar { justify-self: center; margin-left: 11px; }
.service--krabicky { justify-self: center; margin-right: 8px; }
.service--krabicky .service__text { max-width: 398px; }
.service--horeca { justify-self: start; margin-left: 10px; }
.service--tematicke { justify-self: end; margin-right: 9px; --btn-gap: 65px; }
.service--tematicke .service__text { max-width: 396px; }
.service--teambuilding { justify-self: center; margin-left: 14px; --btn-gap: 41px; }

/* ---------- Stredné šírky ---------- */
@media (max-width: 1000px) and (min-width: 861px) {
  .svc-row--a, .svc-row--b, .svc-row--c { grid-template-columns: 1fr 1fr; column-gap: 30px; width: calc(100% - 40px); }
  .svc-row--a .service:first-child, .svc-row--c .service:first-child { grid-column: auto; }
  .svc-row .service { justify-self: stretch; width: auto; margin: 0; }
  .service__img { height: auto; aspect-ratio: 402 / 326; }
  .svc-intro__title { font-size: 42px; }
}

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .svc-intro { padding: 0 0 20px; }
  .svc-intro__strip { display: block; width: auto; height: auto; }
  .svc-intro__img { height: auto; aspect-ratio: 320 / 200; }
  .svc-intro__col { display: block; padding: 46px 20px 0; }
  .svc-intro__text { width: auto; padding: 0; }
  .svc-intro__title { font-size: 28px; }
  .svc-intro__text p { margin: 10px 0; }
  .svc-intro .btn { display: flex; width: max-content; margin: 0 auto; padding: 0 11px; }

  .svc-list { padding: 31px 0 0; }
  .svc-row, .svc-row--a, .svc-row--b, .svc-row--c { display: block; width: auto; padding: 0; }
  .svc-row--b { margin-top: 9px; }
  .svc-row .service { width: auto; margin: 0; padding: 20px; }
  .svc-row .service--torty { padding-top: 40px; }
  .service__img { height: auto; aspect-ratio: 280 / 222; }
  .service__title { margin-top: 20px; font-size: 19px; line-height: 1.4; }
  .service__text { max-width: none; margin-top: 20px; }
  .service--krabicky .service__text, .service--tematicke .service__text { max-width: none; }
  .service--tematicke .service__text, .service--teambuilding .service__text { margin-top: 9px; }
  .service .btn { display: flex; width: max-content; margin: var(--btn-gap-m, 10px) auto 0; }
  .service--torty { --btn-gap-m: 35.6px; }
  .btn--lg { min-width: 160px; height: 42px; font-size: 14.93px; }
}
