/*
 * Additional styles for the Homepage template.
 */

.homepage,
.homepage * {
    box-sizing: border-box;
}

.homepage {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

/* fontos: a flex-gyerekek zsugorodhassanak, így nincs vízszintes scroll */
.homepage > * {
    min-width: 0;
}

.homepage-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 3.5rem) clamp(0.75rem, 4vw, 2.5rem);
  z-index: 0;
}

/* background image from CSS var */
.homepage-hero::before {
  content: '';
  position: absolute;
  inset: -10% 0 auto 0;
  width: 100%;
  height: 120%;
  z-index: -2;
  background-image: var(--homepage-hero-bg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  opacity: 0.45;
}

/* subtle radial overlay on top */
.homepage-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    circle at 20% 35%,
    rgba(153, 131, 85, 0.22) 0%,
    rgba(153, 131, 85, 0.10) 35%,
    rgba(255, 255, 255, 0) 65%
  );
  pointer-events: none;
}

/* ========= MOBILE / TABLET – COLUMN LAYOUT ========== */

.homepage-hero__inner {
  position: relative;
  z-index: 0; /* stacking context desktopra */
  min-height: inherit;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 2.5rem);
}

.homepage-hero__group {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 3vw, 1rem);
  align-items: center;
  text-align: center;
}

.homepage-hero__slot {
  width: 100%;
  position: relative;
  z-index: 2;
}

.homepage-hero__slot--top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
  justify-content: center;
}

.homepage-hero__slot--mid {
  margin-top: clamp(0.5rem, 2vw, 1rem);
}

.homepage-hero__figure {
  order: 2;
  position: relative;
  width: clamp(220px, 70vw, 340px);
  aspect-ratio: 3 / 4;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  z-index: 3; /* kép legfelül */
  margin-top: clamp(1.5rem, 6vw, 3rem);
}

/* circle behind the figure – mobil / tablet */
.homepage-hero__figure::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(260px, 80vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(153, 131, 85, 0.28) 0%,
    rgba(193, 136, 36, 0.18) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: -1;
  mix-blend-mode: multiply;
  opacity: 0.9;
}

.homepage-hero__slot--bottom {
  order: 3;
  margin-top: clamp(1.75rem, 6vw, 3.5rem);
  display: flex;
  justify-content: center;
}

.homepage-hero__content-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
  max-width: 360px;
}

/* TYPOGRAPHY */

.homepage-hero__text {
  font-size: clamp(2.3rem, 7vw, 3.2rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.homepage-hero__text--primary {
  color: rgba(153, 131, 85, 0.9);
}

.homepage-hero__text--light {
  color: var(--jogatokato-color-secondary);
}

/* big "mozgás" – mobile/tablet base */
.homepage-hero__text--accent {
  display: block;
  font-family: var(--jogatokato-font-heading);
  font-weight: 100;
  font-size: clamp(3.2rem, 15vw, 6.2rem);
  line-height: 1.08;
  color: transparent;
  background-image: linear-gradient(
    359deg,
    rgba(153, 131, 85, 0.12) 1%,
    rgba(153, 131, 85, 1) 96%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.04em;
  padding-bottom: 0.14em;
}

.homepage-hero__lead {
  margin: 0;
  font-family: var(--jogatokato-font-base);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(153, 131, 85, 1);
}

.homepage-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.2rem 0.65rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: rgba(153, 131, 85, 1);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 28px rgba(153, 131, 85, 0.18);
  transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.homepage-hero__cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(153, 131, 85, 1);
  color: #ffffff;
  flex-shrink: 0;
}

.homepage-hero__cta-icon svg {
  width: 18px;
  height: 18px;
}

.homepage-hero__cta-label {
  font-size: 1rem;
  color: rgba(153, 131, 85, 1);
  white-space: normal;
  line-height: 1.2;
}

.homepage-hero__cta:hover,
.homepage-hero__cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(153, 131, 85, 0.25);
  background: rgba(153, 131, 85, 1);
  color: #ffffff;
}

.homepage-hero__cta:hover .homepage-hero__cta-icon,
.homepage-hero__cta:focus-visible .homepage-hero__cta-icon {
  background: #ffffff;
  color: rgba(153, 131, 85, 1);
}

.homepage-hero__cta:hover .homepage-hero__cta-label,
.homepage-hero__cta:focus-visible .homepage-hero__cta-label {
  color: #ffffff;
}

/* ========= TABLET UP (kb. 640px felett) ========= */

@media (min-width: 640px) {
  .homepage-hero__inner {
    align-items: flex-start;
  }

  .homepage-hero__group {
    align-items: flex-start;
    text-align: left;
  }

  .homepage-hero__slot--top {
    justify-content: flex-start;
  }

  .homepage-hero__content-block {
    align-items: flex-start;
    text-align: left;
  }

  .homepage-hero__figure {
    align-self: center;
    margin-top: clamp(2rem, 6vw, 3.5rem);
    width: clamp(260px, 55vw, 420px);
  }

  .homepage-hero__figure::before {
    width: clamp(320px, 70vw, 520px);
  }

  .homepage-hero__slot--bottom {
    justify-content: flex-end;
  }
}

/* ========= DESKTOP (900px+) ========= */

@media (min-width: 900px) {
  .homepage-hero__inner {
    align-items: flex-start;
    gap: 0;
  }

  .homepage-hero__group {
    margin-top: 1.5rem;
  }

  /* nagy kör desktopon: hero__inner ::before
     z-index:1 → kör alul, szöveg 2, kép 3 fölötte */
  .homepage-hero__inner::before {
    content: '';
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-48%, -52%);
    width: clamp(520px, 52vw, 900px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(
      circle,
      rgba(153, 131, 85, 0.28) 0%,
      rgba(193, 136, 36, 0.18) 50%,
      rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    mix-blend-mode: multiply;
    opacity: 0.9;
    filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.55));
  }

  /* Halvány fehér halo a kör körül */
  .homepage-hero__inner::after {
    content: '';
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-48%, -52%);
    width: clamp(620px, 60vw, 1080px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.65) 28%, rgba(255, 255, 255, 0) 62%);
    z-index: 0;
    filter: blur(14px);
    pointer-events: none;
  }

  /* ne legyen dupla kör desktopon */
  .homepage-hero__figure::before {
    display: none;
  }

  /* nagy "mozgás" desktopon */
  .homepage-hero__text--accent {
    font-size: clamp(5.5rem, 17vw, 17rem);
    letter-spacing: 0.06em;
    padding-bottom: 0.1em;
    white-space: nowrap;
    transform: translateX(-1.5vw);
    z-index: 2; /* kör fölött, kép alatt */
  }

  /* center-ish figure – kép legfelül (z:3) */
  .homepage-hero__figure {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-48%, -48%);
    width: clamp(380px, 44vw, 680px);
    margin-top: 0;
    z-index: 3;
  }

  /* CTA block bottom-right, jobbra húzva */
  .homepage-hero__slot--bottom {
    position: absolute;
    right: 3%;
    bottom: 11%;
    margin-top: 0;
    justify-content: flex-end;
    width: auto;
    z-index: 2;
  }

  .homepage-hero__content-block {
    align-items: flex-start;
    text-align: left;
    max-width: 380px;
  }
}

/* ====== A TÖBBI SZEKCIÓ ====== */

.homepage-benefits {
    padding: 4.5rem 1.5rem;
}

.homepage-about {
    padding: 3.5rem 40px 4.5rem;
    background: var(--jogatokato-color-secondary);
}

.homepage-about__inner {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 40% 60%;
    gap: clamp(2rem, 4vw, 4.5rem);
    align-items: center;
}

.homepage-about__visual {
    position: relative;
    border-radius: 50px 0 50px 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    max-width: clamp(240px, 45vw, 550px);
    justify-self: flex-start;
    width: 100%;
}

.homepage-about__photo {
    position: absolute;
    inset: 0;
    background: url('../images/karpatinori-jogaoktato-450x450-1.webp') center/cover no-repeat;
    filter: saturate(0.95);
}

.homepage-about__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.25) 100%);
    opacity: 0.4;
}

.homepage-services {
    padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 6vw, 4rem);
    background: #f9f6f0;
}

.homepage-services__inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 4vw, 2.5rem);
}

.homepage-services__cta {
    align-self: flex-end;
}

.homepage-services__header {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 700px;
}

.homepage-services__eyebrow {
    font-size: 1.3rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--jogatokato-color-primary);
}

.homepage-services__title {
    margin: 0;
    font-size: clamp(2rem, 5vw, 2.75rem);
    color: var(--jogatokato-color-heading);
}

.homepage-services__lead {
    margin: 0;
    font-size: 1.05rem;
    color: var(--jogatokato-color-text);
}

.homepage-services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(307px, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
}

.homepage-services__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}
.homepage-services__thumb {
    width: 100%;
    aspect-ratio: 307 / 500;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0 28px 0 28px;
    overflow: hidden;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.06);
    position: relative;
}

.homepage-services__thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(1deg, rgba(243, 240, 232, 1) 2%, rgba(232, 224, 211, 1) 99%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 1;
}

.homepage-services__thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 1.35rem 1.5rem;
    background: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    z-index: 2;
}

.homepage-services__thumb-top {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    pointer-events: auto;
}

.homepage-services__thumb-middle {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.homepage-services__thumb-middle svg {
    max-height: 55%;
    height: auto;
    width: auto;
}

.homepage-services__thumb-bottom {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    pointer-events: auto;
}

.homepage-services__thumb-excerpt {
    margin: 0;
    color: rgb(70 80 74);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 68%;
    pointer-events: auto;
}

.homepage-services__thumb-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--jogatokato-color-heading);
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    pointer-events: auto;
}

.homepage-services__thumb-link svg {
    width: 22px;
    height: 19px;
}

.homepage-services__thumb-link:hover,
.homepage-services__thumb-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
    color: var(--jogatokato-color-primary);
}

.homepage-services__card:hover .homepage-services__thumb-overlay,
.homepage-services__card:focus-within .homepage-services__thumb-overlay {
    opacity: 1;
    transform: translateY(0);
}

.homepage-services__card:hover .homepage-services__thumb::after,
.homepage-services__card:focus-within .homepage-services__thumb::after {
    opacity: 1;
}

.homepage-services__card-title {
    margin: 0;
    font-size: 1.1rem;
    color: var(--jogatokato-color-primary);
    transition: color 0.2s ease;
}

.homepage-services__card:hover .homepage-services__card-title,
.homepage-services__card:focus-within .homepage-services__card-title {
    color: rgb(70 80 74);
}

.homepage-about__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.homepage-about__eyebrow {
    font-size: 1.3rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--jogatokato-color-primary);
}

.homepage-about__title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--jogatokato-color-heading);
}

.homepage-about__lead {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--jogatokato-color-heading);
}

.homepage-about__text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--jogatokato-color-text);
}

.homepage-about__stats {
    display: flex;
    gap: clamp(2.5rem, 6vw, 5rem);
    flex-wrap: wrap;
    margin-top: 0.5rem;
    justify-content: space-evenly;
}

.homepage-about__stat {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.homepage-about__stat-value {
    font-size: 84px;
    color: var(--jogatokato-color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: flex-end;
    gap: 0.05em;
    line-height: 1;
}

.homepage-about__stat-label {
    font-size: 24px;
    color: var(--jogatokato-color-text);
}

.homepage-count__wheels {
    display: inline-flex;
    gap: 0.05em;
}

.homepage-count__wheel {
    position: relative;
    display: inline-flex;
    width: 0.75em;
    height: 1em;
    overflow: hidden;
    line-height: 1;
}

.homepage-count__strip {
    display: flex;
    flex-direction: column;
    transform: translateY(0);
}

.homepage-count__digit {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1em;
    line-height: 1;
}

.homepage-count__symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 1em;
}

.homepage-count__suffix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    font-weight: 600;
    color: var(--jogatokato-color-primary);
    margin-left: 0.05em;
    opacity: 0;
    transform: translateY(20%);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.homepage-count__suffix.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .homepage-about {
        padding: 3rem 24px;
    }

    .homepage-about__inner {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        align-items: stretch;
        text-align: left;
        grid-template-columns: none;
    }

    .homepage-about__visual {
        border-radius: 40px;
        width: 100%;
        max-width: none;
        justify-self: stretch;
    }

    .homepage-about__content {
        width: 100%;
        max-width: none;
        align-items: flex-start;
    }

    .homepage-about__lead {
        max-width: 100%;
    }

    .homepage-about__stats {
        justify-content: center;
        gap: 2rem;
        width:100%;
    }
}

.homepage-benefits__inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    align-items: stretch;
    max-width: 1440px;
    margin: 0 auto;
}

.homepage-benefits__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    padding: 2.25rem 1.5rem;
    border-radius: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: none;
    box-shadow: none;
}

.homepage-benefits__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    color: var(--jogatokato-color-heading);
    font-family: var(--jogatokato-font-base);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.homepage-benefits__icon--heart,
.homepage-benefits__icon--badge,
.homepage-benefits__icon--globe {
    width: 72px;
    height: 72px;
}

.homepage-benefits__title {
    margin: 0;
    font-family: var(--jogatokato-font-heading);
    font-size: 1.15rem;
    color: var(--jogatokato-color-heading);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.homepage-benefits__description {
    margin: 0;
    color: var(--jogatokato-color-heading);
    line-height: 1.6;
    font-size: 0.96rem;
}

/* ==== INSTRUCTORS ==== */

.homepage-instructors {
    padding: 6rem 1.5rem;
    background: #fff6f2;
    /* box-shadow ne húzza szét vízszintesen */
    overflow-x: clip;
}

.homepage-instructors__inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.homepage-instructors__header {
    max-width: 720px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.homepage-instructors__eyebrow {
    font-family: var(--jogatokato-font-base);
    font-size: 1.3rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--jogatokato-color-primary);
}

.homepage-instructors__title {
    margin: 0;
    font-family: var(--jogatokato-font-heading);
    font-size: 3rem;
    font-weight: 600;
    color: var(--jogatokato-color-primary);
}

.homepage-instructors__description {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--jogatokato-color-text);
}

.homepage-instructors__grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.25rem, 1.8vw, 2rem);
}

.homepage-instructors__item {
    position: relative;
    border-radius: 36px;
    overflow: hidden;
    aspect-ratio: 3 / 5.2;
    box-shadow: 0 24px 55px rgba(153, 131, 85, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-radius 0.3s ease;
    cursor: pointer;
}

.homepage-instructors__item:hover,
.homepage-instructors__item:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 32px 75px rgba(153, 131, 85, 0.18);
    border-radius: 15px;
}

.homepage-instructors__item:focus-visible {
    outline: none;
    box-shadow: 0 32px 75px rgba(153, 131, 85, 0.18), 0 0 0 3px rgba(153, 131, 85, 0.35);
}

.homepage-instructors__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.homepage-instructors__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.homepage-instructors__content {
    position: absolute;
    left: clamp(1rem, 1.5vw, 1.75rem);
    right: clamp(1rem, 1.5vw, 1.75rem);
    bottom: clamp(1rem, 1.5vw, 1.75rem);
    top: auto;
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
    min-height: clamp(6.5rem, 7vw, 9rem);
    height: auto;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.homepage-instructors__item:hover .homepage-instructors__image img,
.homepage-instructors__item:focus-within .homepage-instructors__image img {
    transform: scale(1.05);
}

.homepage-instructors__item:hover .homepage-instructors__content,
.homepage-instructors__item:focus-within .homepage-instructors__content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.homepage-instructors__name {
    margin: 0;
    font-family: var(--jogatokato-font-heading);
    font-size: 1.35rem;
    color: var(--jogatokato-color-primary);
    font-weight: 600;
}

.homepage-instructors__role {
    margin: 0;
    font-size: 1rem;
    color: var(--jogatokato-color-text);
}

/* ==== TESTIMONIALS ==== */

.homepage-testimonials {
    padding: 5rem 1.5rem 6rem;
    background: linear-gradient(180deg, #e7dfd3 0%, #f9f6f2 100%);
    /* kártya box-shadow ne okozzon vízszintes scrollt */
    overflow-x: clip;
}

.homepage-testimonials__inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.homepage-testimonials__header {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.homepage-testimonials__eyebrow {
    font-size: 1.3rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--jogatokato-color-primary);
}

.homepage-testimonials__title {
    margin: 0;
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    color: var(--jogatokato-color-heading);
}

.homepage-testimonials__grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 40px 0 40px 0;
    background: #ffffff;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    overflow: visible;
}

.testimonial-card__body {
    position: relative;
    padding: 3.1rem 2.25rem 2.25rem 3.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.testimonial-card__body::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px 0 0 0;
    background: #ffffff;
    z-index: -1;
}

.testimonial-card__quote-icon svg {
    width: 42px;
    height: 38px;
    fill: var(--jogatokato-color-primary);
}

.testimonial-card__quote-icon {
    position: absolute;
    top: -1.2rem;
    left: 2.5rem;
}

.testimonial-card__title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--jogatokato-color-heading);
}

.testimonial-card__quote {
    margin: 0;
    font-size: 1rem;
    color: var(--jogatokato-color-text);
    line-height: 1.6;
}

.testimonial-card__footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: #dfd5c8;
    border-radius: 0 0 40px 0;
}

.testimonial-card__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
}

.testimonial-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card__author {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.testimonial-card__name {
    font-weight: 600;
    color: var(--jogatokato-color-heading);
}

.testimonial-card__role {
    font-size: 0.9rem;
    color: var(--jogatokato-color-text);
}

.homepage__content {
    max-width: 960px;
    width: 100%;
    margin: 0 auto 6rem;
    padding: 0 1.5rem;
}

.homepage__content > *:first-child {
    margin-top: 0;
}

.homepage__content > *:last-child {
    margin-bottom: 0;
}

/* ====== RESPONSIVE ====== */

@media (max-width: 1280px) {
    .homepage-instructors__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: clamp(1.25rem, 2vw, 2.25rem);
    }
}

@media (max-width: 1024px) {
    .homepage-benefits__inner {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
        justify-items: stretch;
    }

    .homepage-benefits__item {
        max-width: none;
        width: 100%;
    }

    .homepage-benefits__item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: 100%;
        max-width: 420px;
    }

    .homepage-instructors__title {
        font-size: 2.5rem;
    }

    .homepage-instructors__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .homepage-instructors__content {
        padding: 1.5rem;
    }

    .homepage-instructors {
        padding: 5rem 1.25rem;
    }

    .homepage-testimonials__grid {
        grid-template-columns: minmax(0, 500px);
        justify-content: center;
        justify-items: center;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .homepage-benefits {
        padding: 3.5rem 1.25rem;
    }

    .homepage-benefits__inner {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
        justify-items: stretch;
    }

    .homepage-benefits__item {
        padding: 1.75rem 1.25rem;
        border-radius: 18px;
        max-width: none;
        width: 100%;
        height: 100%;
        border: none;
        box-shadow: none;
    }

    .homepage-benefits__item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: 100%;
        max-width: 420px;
    }

    .homepage-benefits__icon {
        width: 56px;
        height: 56px;
        font-size: 1rem;
    }

    .homepage-benefits__title {
        font-size: 1.05rem;
    }

    .homepage-benefits__description {
        font-size: 0.95rem;
    }

    .homepage-instructors {
        padding: 4rem 1rem;
    }

    .homepage-instructors__title {
        font-size: 2.25rem;
    }

    .homepage-instructors__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .homepage-instructors__content {
        padding: 1.5rem 1rem 1.75rem;
    }

    .homepage-testimonials__grid {
        grid-template-columns: minmax(0, clamp(300px, 90vw, 560px));
        justify-content: center;
        justify-items: center;
        gap: 2.25rem;
    }
}

@media (max-width: 540px) {
    .homepage-benefits {
        padding: 3rem 16px;
    }

    .homepage-benefits__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .homepage-benefits__item {
        padding: 1.5rem 1.1rem;
        border-radius: 16px;
        width: 100% !important;
        max-width:100% !important;
        border: none;
        box-shadow: none;
    }

    .homepage-instructors__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .homepage-testimonials__grid {
        grid-template-columns: minmax(0, 1fr);
        justify-content: stretch;
        justify-items: stretch;
        gap: 2rem;
    }
}
