/* ═══════════════════════════════════════════════════════════
   HOME 2 — Courses, Membership, Red Line, Specialists (1440)
   ═══════════════════════════════════════════════════════════ */

/* ─── ПОПУЛЯРНІ КУРСИ (1440×763) ─── */

.courses-section {
  position: relative;
  width: 100%;
  height: 763px;
  background: var(--color-white);
  overflow: hidden;
}

.courses-section__textures {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.courses-section__tex {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.courses-section__tex--1 {
  background-image: url("/static/images/hero-bg-texture-1.88ff0c54e77c.webp");
  mix-blend-mode: multiply;
  opacity: 0.2;
  top: -83px;
}

.courses-section__tex--2 {
  background-image: url("/static/images/hero-bg-texture-2.e28dfc263237.webp");
  mix-blend-mode: multiply;
  opacity: 0.2;
  top: -77px;
}

.courses-section__bg-text {
  position: absolute;
  top: -83px;
  left: 0;
  right: 0;
  font-family: var(--font-display);
  font-size: 261.753px;
  font-weight: var(--fw-regular);
  line-height: 314px;
  text-align: center;
  text-transform: uppercase;
  color: var(--color-red);
  opacity: 0.02;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}

.courses-section .container {
  position: relative;
  z-index: 1;
}

.courses-section__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 77px);
  font-weight: var(--fw-regular);
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  color: var(--color-black);
  margin-top: 64px;
  margin-bottom: 13px;
}

.courses-section__controls {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 45px;
}

.courses-arrow {
  width: 69px;
  height: 68px;
  border-radius: 50%;
  background: var(--color-cream);
  border: 1px solid var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity var(--ease);
}

.courses-arrow:hover { opacity: 0.7; }

.courses-section__carousel-wrap {
  overflow: hidden;
}

.courses-section__track {
  display: flex;
  justify-content: center;
  gap: 24px;
  transition: transform 0.35s ease;
}

.course-card-home {
  flex-shrink: 0;
  width: 284px;
  height: 306px;
  background: var(--color-cream);
  border: 1px solid var(--color-red);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 23px 19px 16px;
}

.course-card-home__photo {
  width: 246px;
  height: 164px;
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
}

.course-card-home__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.course-card-home__title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: var(--fw-regular);
  line-height: 21px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--color-black);
  margin-top: 26px;
}

.course-card-home__link {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--fw-light);
  line-height: 18px;
  letter-spacing: -0.01em;
  text-decoration: underline;
  color: var(--color-black);
  margin-top: 10px;
  transition: color var(--ease);
}

.course-card-home__link:hover { color: var(--color-red); }

.courses-section__cta {
  text-align: center;
  margin-top: 45px;
}

.courses-section__cta .btn {
  width: 197px;
  height: 50px;
  font-size: 18px;
  font-family: var(--font-body);
  letter-spacing: -0.01em;
  text-transform: capitalize;
}


/* ─── ЧЛЕНСТВО (1440×1171) ─── */

.membership {
  position: relative;
  width: 100%;
  min-height: 1171px;
  background: var(--color-white);
  overflow: hidden;
}

.membership__textures {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.membership__tex {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.membership__tex--1 {
  background-image: url("/static/images/hero-bg-texture-1.88ff0c54e77c.webp");
  mix-blend-mode: multiply;
  opacity: 0.2;
  top: -6px;
}

.membership__tex--2 {
  background-image: url("/static/images/hero-bg-texture-2.e28dfc263237.webp");
  mix-blend-mode: multiply;
  opacity: 0.2;
}

.membership__bg-text {
  position: absolute;
  top: -38px;
  left: -135px;
  font-family: var(--font-display);
  font-size: 261.753px;
  font-weight: var(--fw-regular);
  line-height: 314px;
  text-align: center;
  text-transform: uppercase;
  color: var(--color-red);
  opacity: 0.02;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}


.membership__inner {
  position: relative;
  z-index: 2;
}

.membership__head {
  text-align: center;
  padding-top: 81px;
  margin-bottom: 40px;
}

.membership__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 77px);
  font-weight: var(--fw-regular);
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  color: var(--color-black);
}

.membership__subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--fw-light);
  line-height: 18px;
  text-align: center;
  color: var(--color-black);
  max-width: 297px;
  margin: 0 auto;
}

.membership__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 59px;
}

.membership__feature {
  width: 100%;
  min-height: 236px;
  border: 1px solid var(--color-red);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 33px 30px;
  text-align: center;
}

.membership__feature-icon {
  width: 99px;
  height: 77px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.membership__feature-icon img { max-width: 100%; max-height: 100%; }

.membership__feature-title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: var(--fw-regular);
  line-height: 20px;
  text-decoration: underline;
  text-transform: uppercase;
  color: var(--color-black);
  margin-bottom: 12px;
}

.membership__feature-text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--fw-light);
  line-height: 19px;
  text-align: center;
  color: var(--color-black);
}

.membership__price-bar {
  background: var(--color-red);
  border-radius: 107px;
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 59px;
}

.membership__price {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 77px);
  font-weight: var(--fw-regular);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-white);
}

.membership__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.membership__card {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.membership__card--cream {
  width: 100%;
  min-height: 401px;
  background: var(--color-cream);
  border: 1px solid var(--color-red);
  padding: 0 21px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.membership__card--cta {
  width: 100%;
  min-height: 401px;
  border: 1px solid var(--color-red);
  padding: 31px 21px;
  display: flex;
  flex-direction: column;
}

.membership__card--cta .btn {
  width: 100%;
  max-width: 251px;
  height: 54px;
  font-size: 18px;
  margin-top: auto;
}

.membership__card--photo {
  width: 100%;
  min-height: 401px;
}

.membership__card--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
}

.membership__card-title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: var(--fw-regular);
  line-height: 20px;
  text-transform: uppercase;
  color: var(--color-black);
  margin-bottom: 8px;
}

.membership__card-text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--fw-light);
  line-height: 19px;
  text-align: justify;
  color: var(--color-black);
}

.membership__card-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.membership__card--cream-sm {
  height: 113px;
  background: var(--color-cream);
  border: 1px solid var(--color-red);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 38px;
  display: flex;
  align-items: center;
}

.membership__card--cream-sm p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--fw-light);
  line-height: 19px;
  text-align: justify;
  color: var(--color-black);
}

.membership__card--photo-sm {
  height: 147px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.membership__card--photo-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.membership__card--dark-sm {
  height: 112px;
  background: var(--color-red);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 27px 38px;
  display: flex;
  align-items: center;
}

.membership__card--dark-sm p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--fw-light);
  line-height: 19px;
  text-align: justify;
  color: var(--color-white);
}


/* ─── RED LINE ─── */

.red-line {
  width: 100%;
  height: 20px;
  background: var(--color-red);
}


/* ─── СПЕЦІАЛІСТИ (1440×717) ─── */

.specialists {
  position: relative;
  width: 100%;
  min-height: 717px;
  background: var(--color-white);
  overflow: hidden;
}

.specialists__textures {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.specialists__tex {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.specialists__tex--1 {
  background-image: url("/static/images/hero-bg-texture-1.88ff0c54e77c.webp");
  mix-blend-mode: multiply;
  opacity: 0.2;
}

.specialists__tex--2 {
  background-image: url("/static/images/hero-bg-texture-2.e28dfc263237.webp");
  mix-blend-mode: multiply;
  opacity: 0.2;
}

.specialists__bg-text {
  position: absolute;
  top: -37px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 261.753px;
  font-weight: var(--fw-regular);
  line-height: 314px;
  text-align: center;
  text-transform: uppercase;
  color: var(--color-red);
  opacity: 0.02;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}

.specialists .container {
  position: relative;
  z-index: 1;
}

.specialists__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 77px);
  font-weight: var(--fw-regular);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-black);
  padding-top: 87px;
  margin-bottom: 32px;
}

.specialists__cards {
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: center;
  gap: 40px;
  align-items: flex-start;
  padding-top: 30px;
}

.specialists__card--left .specialists__card-inner {
  width: 350px;
  height: 341px;
  border: 1px solid var(--color-red);
  border-radius: var(--radius-md);
  padding: 35px 23px;
  transform: rotate(-16.22deg);
  background: var(--color-white);
}

.specialists__card--center {
  width: 350px;
  min-height: 341px;
  background: var(--color-red);
  border-radius: var(--radius-md);
  padding: 35px 23px;
}

.specialists__card--center .specialists__card-role {
  color: var(--color-white);
}

.specialists__card--center .specialists__card-text {
  color: var(--color-white);
}

.specialists__card--right .specialists__card-inner {
  width: 350px;
  height: 341px;
  border: 1px solid var(--color-red);
  border-radius: var(--radius-md);
  padding: 35px 23px;
  transform: rotate(16.18deg);
  background: var(--color-white);
}

.specialists__card-role {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--fw-medium);
  line-height: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-black);
  margin-bottom: 16px;
}

.specialists__card-text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--fw-medium);
  line-height: 20px;
  letter-spacing: -0.02em;
  color: var(--color-black);
}

@media (max-width: 768px) {
  /* Fixed height overrides mobile min-height on courses */
  .courses-section {
    height: auto;
  }
}
