/* ===== Fonts (self-hosted, from the original) ===== */
@font-face {
  font-family: "Gilroy";
  src: url("../assets/fonts/Gilroy-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Gilroy";
  src: url("../assets/fonts/Gilroy-Medium.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Gilroy";
  src: url("../assets/fonts/Gilroy-SemiBold.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}

/* ===== Tokens ===== */
:root {
  --pink: #f66297;
  --pink-dark: #e94f87;
  --black: #000;
  --gray: #777;
  --line: #e9e9ec;
  --bg-section: #f5f5f7;
  --radius-card: 30px;
  --radius-pill: 100px;
  --font: "Gilroy", "Roboto", -apple-system, "Segoe UI", sans-serif;
}

/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--black);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  border: 0;
  cursor: pointer;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  background: var(--pink);
  border-radius: var(--radius-pill);
  padding: 30px 40px;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  background: var(--pink-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(246, 98, 151, 0.35);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 3px solid rgba(246, 98, 151, 0.4);
  outline-offset: 3px;
}

/* ===== Cards & titles ===== */
.card {
  background: #fff;
  border-radius: var(--radius-card);
}

.section-title {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.accent {
  color: var(--pink);
}

/* ===== Screen 1: Hero ===== */
.hero {
  background: #fff;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  align-items: center;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 0;
}

.hero__content {
  padding-bottom: 64px;
}

.hero__title {
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--pink);
  max-width: 520px;
}

.hero__subtitle {
  margin: 0 0 40px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--pink);
}

.hero__text {
  margin: 0 0 44px;
  font-size: 20px;
  line-height: 1.55;
  max-width: 480px;
}

.hero__note {
  margin: 16px 0 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray);
}

.hero__media {
  align-self: end;
}

.hero__img {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

/* ===== Screen 2: Trainer ===== */
.trainer {
  background: var(--bg-section);
  padding: 80px 0 90px;
}

.trainer__intro {
  margin: 24px auto 40px;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
  max-width: 640px;
}

.trainer__card {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
}

.trainer__list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.trainer__item {
  position: relative;
  padding-left: 46px;
  font-size: 16px;
  line-height: 1.55;
  max-width: 640px;
}

.trainer__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  background: url("../assets/img/icon-dumbbell.png") center / contain no-repeat;
}

/* Gallery */
.gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: var(--radius-card);
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery img {
  flex: 0 0 auto;
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-card);
  scroll-snap-align: start;
}

.gallery__progress {
  margin-top: 20px;
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}

.gallery__bar {
  display: block;
  height: 100%;
  width: 20%;
  border-radius: 4px;
  background: var(--pink);
  transition: width 0.15s linear;
}

.gallery__hint {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--pink);
  text-align: center;
}

.gallery__hint-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 5px;
  background: rgba(246, 98, 151, 0.15);
  font-size: 12px;
}

/* ===== Screen 3: CTA + form ===== */
.cta {
  background: var(--bg-section);
  padding: 40px 0 90px;
}

.cta__title {
  margin-bottom: 28px;
}

.cta__card {
  max-width: 570px;
  margin: 0 auto;
  padding: 32px 36px 36px;
  text-align: center;
}

.cta__text {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.5;
}

.cta__icons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.cta__icon {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  transition: transform 0.2s ease;
}

.cta__icon:hover {
  transform: translateY(-3px) scale(1.05);
}

.cta__icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.cta__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 22px;
  color: var(--gray);
  font-size: 14px;
}

.cta__divider::before,
.cta__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Lead form */
.lead-form {
  display: grid;
  gap: 14px;
  text-align: left;
}

.lead-form__input {
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  color: var(--black);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 17px 26px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lead-form__input::placeholder {
  color: #a5a5ad;
}

.lead-form__input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(246, 98, 151, 0.12);
}

.lead-form__field.is-invalid .lead-form__input {
  border-color: #e4405f;
}

.lead-form__error {
  margin: 6px 0 0 26px;
  font-size: 13px;
  color: #e4405f;
}

.lead-form__submit {
  padding: 20px 40px;
  font-size: 16px;
}

.lead-form__note {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--gray);
  text-align: center;
}

/* Success state */
.lead-form__success-icon {
  width: 64px;
  height: 64px;
  margin: 8px auto 18px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-size: 30px;
  line-height: 64px;
}

.lead-form__success-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
}

.lead-form__success-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray);
}

/* ===== Footer ===== */
.footer {
  background: #fff;
  padding: 22px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--gray);
}

.footer a {
  color: var(--pink);
}

/* ===== Tablet ===== */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 48px;
  }

  .hero__content {
    padding-bottom: 0;
    text-align: center;
  }

  .hero__title,
  .hero__text {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__media {
    order: 2;
  }

  .hero__img {
    max-width: 380px;
  }

  .trainer__card {
    padding: 28px;
  }
}

/* ===== Mobile ===== */
@media (max-width: 560px) {
  .hero__title {
    font-size: 27px;
  }

  .hero__subtitle {
    font-size: 21px;
    margin-bottom: 28px;
  }

  .hero__text {
    font-size: 17px;
    margin-bottom: 32px;
  }

  .btn {
    padding: 22px 28px;
    font-size: 16px;
    width: 100%;
    max-width: 360px;
  }

  .hero__note {
    font-size: 14px;
  }

  .section-title {
    font-size: 22px;
  }

  .trainer {
    padding: 56px 0 64px;
  }

  .trainer__intro {
    font-size: 16px;
  }

  .trainer__card {
    padding: 22px 18px;
  }

  .trainer__item {
    padding-left: 42px;
    font-size: 15px;
  }

  .gallery img {
    width: 240px;
    height: 240px;
  }

  .cta {
    padding: 24px 0 64px;
  }

  .cta__card {
    padding: 26px 20px 28px;
  }

  .cta__icons {
    gap: 10px;
  }

  .lead-form__submit {
    width: 100%;
    max-width: none;
  }
}
