/* Domovská stránka */

/* ---------- Úvod ---------- */
.hero { position: relative; padding-bottom: 62px; }
.hero__cols {
  display: grid;
  grid-template-columns: 2fr 3fr;
  column-gap: 10px;
  height: 610px;
}
.hero__text-col { display: flex; justify-content: center; background: var(--c-panel); }
.hero__text { width: min(388px, 100% - 40px); padding-top: 181px; }
.hero__title { font-family: var(--f-serif); font-size: 43px; line-height: 1.34; }
.hero__lead { max-width: 310px; margin: 23px 0 41px; font-size: 18px; line-height: 1.4; color: var(--c-muted); }
.hero__img-col { position: relative; overflow: hidden; background: var(--c-dark); }
.hero__img-col img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }

.founder { position: absolute; top: 330px; left: calc(50% - 234px); width: 297px; }
.founder__photo {
  width: 297px;
  height: 427px;
  object-fit: cover;
  box-shadow: 9.64px 11.49px 50px 2px rgba(0, 0, 0, .15);
}
.founder__caption { position: absolute; top: 325px; left: calc(100% + 32px); width: 310px; }
.founder__name { display: block; font-family: var(--f-serif); font-size: 20px; line-height: 27px; }
.founder__role { display: block; margin-top: 10px; font-size: 12px; line-height: 1.4; color: var(--c-muted); }

.hero__tagline {
  max-width: 980px;
  margin: 277px auto 0;
  padding: 0 20px;
  font-family: var(--f-serif);
  font-size: 43px;
  line-height: 1.4;
  text-align: center;
}

/* ---------- Náš prístup ---------- */
.approach { padding: 70px 80px 64px; }
.approach__inner { position: relative; height: 627px; }
.approach__img { width: 69.02%; height: 585px; object-fit: cover; }
.approach__box {
  position: absolute;
  top: 71px;
  left: 50.09%;
  right: 0;
  height: 556px;
  display: flex;
  justify-content: center;
  background: var(--c-white);
}
.approach__text { width: min(462px, 100% - 40px); padding-top: 70px; }
.approach__title { font-family: var(--f-serif); font-size: 43px; line-height: 1.34; }
.approach__text p { margin: 40px 0 43px; font-size: 16px; line-height: 1.8; }

/* ---------- Naše služby ---------- */
.services { padding-top: 66px; text-align: center; }
.services__title { font-family: var(--f-serif); font-size: 44px; line-height: 1.34; letter-spacing: .03em; }
.services__text { max-width: 702px; margin: 31px auto 62px; font-size: 16px; line-height: 1.8; }
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 65px;
  list-style: none;
}
.tile { position: relative; height: 498px; background: var(--c-dark) var(--img) center / cover no-repeat; }
.tile a { position: absolute; inset: 0; }
.tile span {
  position: absolute;
  top: 333px;
  left: 35px;
  right: 35px;
  font-family: var(--f-serif);
  font-size: 34px;
  line-height: 1.35;
  color: var(--c-white);
  text-align: center;
}

/* ---------- Recenzie ---------- */
.reviews { padding: 104px 0 82px; }
.reviews__title { font-family: var(--f-serif); font-size: 44px; line-height: 1.34; text-align: center; }
.reviews__slider { height: 403px; margin-top: 81px; background: var(--c-panel); }
.reviews__slider .slider__track { height: 100%; }
.review { margin: 0; padding: 116px 20px 0; text-align: center; }
.review__name { font-size: 16px; font-weight: 700; line-height: 20px; }
.review__rule { display: block; width: 36px; margin: 33px auto 0; border-top: 1px solid var(--c-text); }
.review__text { max-width: 600px; margin: 32px auto 0; font-size: 32px; line-height: 1.3; }

/* ---------- Stredné šírky ---------- */
@media (max-width: 1150px) and (min-width: 861px) {
  .founder { left: calc(40% - 98px); }
  .hero__title, .approach__title { font-size: 38px; }
  .approach { padding-left: 40px; padding-right: 40px; }
  .tile span { font-size: 28px; left: 15px; right: 15px; }
}

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .hero { display: flex; flex-direction: column; padding-bottom: 20px; }
  .founder { order: 2; }
  .hero__cols { display: flex; flex-direction: column-reverse; height: auto; }
  .hero__img-col { aspect-ratio: 320 / 271; }
  .hero__text-col { display: block; padding: 42px 20px 20px; }
  .hero__text { width: auto; padding-top: 0; }
  .hero__title { font-size: 28px; }
  .hero__lead { max-width: none; margin: 26px 0 24px; font-size: 14px; }
  .hero__tagline { margin-top: 41px; font-size: 24px; }
  .founder { position: static; width: auto; margin-top: 32px; text-align: center; }
  .founder__photo { width: 133px; height: 200px; margin: 0 auto; }
  .founder__caption { position: static; width: auto; margin-top: 35px; }
  .founder__name { font-size: 15px; line-height: 20px; }
  .founder__role { margin-top: 12px; }

  .approach { padding: 0 0 30px; }
  .approach__inner { height: auto; }
  .approach__img { width: 100%; height: auto; aspect-ratio: 320 / 200; }
  .approach__box { position: static; display: block; height: auto; }
  .approach__text { width: auto; padding: 20px 20px 0; }
  .approach__title { font-size: 24px; }
  .approach__title br { display: none; }
  .approach__text p { margin: 10px 0 38px; font-size: 14px; }

  .services { padding: 30px 0 0; text-align: left; }
  .services__title { padding: 0 20px; font-size: 24px; }
  .services__text { margin: 25px 0 35px; padding: 0 20px; font-size: 14px; }
  .services > .btn { margin-left: 20px; }
  .tiles { grid-template-columns: 1fr; gap: 0; margin-top: 32px; }
  /* výšky a polohy nadpisov ako na Wix mobile (navrhnuté na 320 px, škálujú sa so šírkou) */
  .tile { height: calc(230 / 320 * 100vw); }
  .tile:nth-child(2) { height: calc(198 / 320 * 100vw); }
  .tile:nth-child(3) { height: calc(184 / 320 * 100vw); }
  .tile:nth-child(4) { height: calc(100 / 320 * 100vw); }
  .tile span { top: calc(146 / 320 * 100vw); left: 20px; right: 20px; font-size: 24px; }
  .tile:nth-child(3) span { top: calc(132 / 320 * 100vw); }
  .tile:nth-child(4) span { top: calc(20 / 320 * 100vw); font-size: 22px; }

  .reviews { padding: 20px 0 0; }
  .reviews__title { font-size: 25px; padding: 0 10px; }
  .reviews__slider { height: 260px; margin-top: 20px; }
  .review { padding: 40px 30px 0; }
  .review__rule { margin-top: 27px; }
  .review__text { margin-top: 33px; font-size: 18px; }
}
