/* === HOME TEASERS CAROUSEL === */
.teasers { padding: 72px 0; background: var(--bg); }
.teasers-carousel { overflow: hidden; margin: 0 -4px; }
.teasers__grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 4px 4px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.teasers__grid::-webkit-scrollbar { display: none; }
.teaser-card {
  flex: 0 0 288px;
  scroll-snap-align: start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 22px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition);
  min-width: 0;
}
.teaser-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.10); }
.teaser-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  line-height: 1;
  flex-shrink: 0;
}

.teaser-card__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.teaser-card__icon--accent {
  color: var(--accent);
  background: rgba(108, 71, 255, 0.1);
  border: 1px solid rgba(108, 71, 255, 0.22);
  box-shadow: 0 6px 18px rgba(108, 71, 255, 0.1);
}

.teaser-card__icon--gold {
  color: var(--gold2);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.12);
}
.teaser-card__tag { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold2); }
.teaser-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.teaser-card p { font-size: 0.87rem; color: var(--text2); line-height: 1.6; flex: 1; }
.teaser-card .btn {
  align-self: flex-start;
  margin-top: auto;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

/* === STATS === */
.stats-bar { padding: 56px 0; background: var(--bg-dark); }
.stats-bar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats-bar__item { padding: 24px 16px; }
.stats-bar__num {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 900;
  color: #F5F6C1; line-height: 1; margin-bottom: 8px;
}
.stats-bar__label { font-size: 0.85rem; color: var(--text-light2); line-height: 1.5; }

/* === MINIMAL PAGE (trainer) === */
.hero__actions .btn--outline-light {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.28); color: #fff;
  backdrop-filter: blur(8px);
}
.hero__actions .btn--outline-light:hover { background: rgba(255,255,255,0.16); }

/* === HOME REVIEWS === */
/* === PAGE HERO (inner pages) === */
.page-hero { padding: 120px 0 56px; background: var(--bg-dark); text-align: center; }
.page-hero__tag { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold2); margin-bottom: 16px; }
.page-hero__title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; color: #fff; line-height: 1.15; margin-bottom: 16px; }
.page-hero__sub { max-width: 560px; margin: 0 auto; color: var(--text-light2); font-size: 1rem; line-height: 1.65; }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }

/* === MINIMAL PAGE (trainer) === */
.page--minimal .header__inner { justify-content: center; }
.page--minimal .nav, .page--minimal .cab-panel-trigger, .page--minimal .burger { display: none; }
.page--minimal .logo { margin: 0 auto; }

.welcome-mockup__visual { display: grid; gap: 14px; min-height: 280px; align-content: center; }
.welcome-mockup__card {
  padding: 22px 28px; border-radius: 20px; background: linear-gradient(135deg, rgba(108,71,255,0.12), rgba(255,255,255,0.9));
  border: 1px solid var(--border); font-weight: 800; font-size: 1.1rem; box-shadow: var(--shadow);
}
.welcome-mockup__card--accent { background: linear-gradient(135deg, rgba(245,158,11,0.15), #fff); transform: translateX(24px); }

@media (max-width: 900px) {
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .teaser-card { flex: 0 0 min(260px, 78vw); }
}
@media (max-width: 520px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .teaser-card { flex: 0 0 min(240px, 80vw); padding: 20px 18px; }
}

/* === HOME HERO FINAL POSITION OVERRIDE === */
.page-home #home > .container {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.page-home #home .hero__cols {
  width: 100% !important;
  justify-content: flex-start !important;
}

.page-home #home .hero__left {
  margin-left: 0 !important;
  padding-left: 0 !important;
  align-items: flex-start !important;
}

@media (max-width: 960px) {
  .page-home #home > .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 768px) {
  .page-home #home {
    background-image: url('/images/мобилкаглавная.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    min-height: 100svh;
    align-items: flex-start;
    padding-bottom: 0;
  }
}

/* === FOUNDER STORY SCREEN === */
.founder-story {
  background: #f7f5ea;
  padding: 56px 0;
  overflow: hidden;
}

.founder-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 38px;
  align-items: stretch;
}

.founder-story__text {
  max-width: 760px;
  align-self: start;
}

.founder-story__eyebrow {
  margin-bottom: 10px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.founder-story h2 {
  max-width: 720px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.85rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: #070707;
}

.founder-story__copy {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.founder-story__copy p,
.founder-story__cta p {
  margin: 0;
  color: rgba(0, 0, 0, 0.74);
  font-size: 0.88rem;
  line-height: 1.55;
}

.founder-story__cta {
  display: grid;
  gap: 12px;
  max-width: 680px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.founder-story__timer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  width: 100%;
  max-width: 520px;
  padding: 20px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(108, 71, 255, 0.1), rgba(245, 158, 11, 0.08));
  border: 2px solid rgba(108, 71, 255, 0.22);
  box-shadow: 0 12px 32px rgba(108, 71, 255, 0.1);
}

.founder-story__timer > span {
  color: rgba(0, 0, 0, 0.78);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  flex: 1 1 180px;
}

.founder-countdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6c47ff;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

.founder-countdown span {
  display: inline-block;
  min-width: 1.1em;
  padding: 6px 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(108, 71, 255, 0.18);
  text-align: center;
}

.founder-countdown b {
  font: inherit;
  color: #6c47ff;
  opacity: 0.85;
}

.btn--founder-cta {
  width: fit-content;
  padding: 13px 34px;
  background: #070707;
  color: #fff;
  border: 1px solid #070707;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn--founder-cta:hover {
  transform: translateY(-2px);
  background: #1a1a1a;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
}

.founder-story__media {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.55);
}

.founder-story__media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  object-position: center top;
}

@media (min-width: 961px) {
  .founder-story__media {
    align-self: start;
    height: auto;
    overflow: hidden;
    background: #f7f5ea;
  }

  .founder-story__media img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    object-position: top center;
  }
}

@media (max-width: 960px) {
  .founder-story {
    padding: 48px 0;
  }

  .founder-story__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .founder-story__media {
    min-height: 420px;
    order: -1;
  }

  .founder-story__media img {
    min-height: 420px;
  }
}

@media (max-width: 560px) {
  .founder-story {
    padding: 36px 0;
  }

  .founder-story__media,
  .founder-story__media img {
    min-height: 320px;
  }

  .founder-story__timer {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 12px;
    gap: 6px 10px;
  }

  .founder-countdown {
    justify-content: flex-start;
    font-size: clamp(1.75rem, 9vw, 2.2rem);
  }

  .founder-countdown span {
    padding: 4px 8px;
  }

  .btn--founder-cta {
    width: 100%;
  }
}

/* === FREE MATERIALS === */
.free-materials {
  background: var(--bg);
  padding: 72px 0;
}

.free-materials .section__title {
  margin-bottom: 34px;
  text-align: center;
}

.free-materials__carousel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.free-materials__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 600px));
  justify-content: center;
  gap: 22px;
}

.free-material-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.free-material-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.free-material-card__link {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.free-material-card img {
  display: block;
  width: 100%;
  aspect-ratio: 600 / 270;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 900px) {
  .free-materials {
    padding: 52px 0;
    content-visibility: visible;
    overflow: visible;
  }

  #homeFear,
  #homeFear .free-materials,
  #homeFear .free-materials .container {
    overflow: visible;
    content-visibility: visible;
  }

  .free-material-card.reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 560px) {
  .free-materials {
    padding: 44px 0;
  }

  .free-materials .section__title {
    margin-bottom: 18px;
  }
}

/* === PAGE HERO BANNERS (shared light style) === */
.page-hero.page-hero--about,
.page-hero.page-hero--learn,
.page-hero.page-hero--blog,
.page-hero.page-hero--trainer {
  background: #f3f3f3 !important;
  text-align: left;
  padding: max(88px, calc(env(safe-area-inset-top) + 72px)) 0 28px !important;
}

.page-hero.page-hero--about .container,
.page-hero.page-hero--learn .container,
.page-hero.page-hero--blog .container,
.page-hero.page-hero--trainer .container {
  max-width: 1180px;
}

.page-hero__banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.page-hero__picture {
  display: block;
  width: 100%;
}

@media (max-width: 768px) {
  .page-hero.page-hero--about,
  .page-hero.page-hero--learn,
  .page-hero.page-hero--blog,
  .page-hero.page-hero--trainer {
    padding-bottom: 20px !important;
  }

  .page-hero__banner {
    border-radius: 16px;
  }
}

/* === STATS BAR — компактно на мобильных === */
@media (max-width: 768px) {
  .stats-bar {
    padding: 28px 0;
  }

  .stats-bar .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .stats-bar__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .stats-bar__item {
    padding: 12px 8px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .stats-bar__item:nth-child(2n) {
    border-right: 1px solid rgba(255, 255, 255, 0.07);
  }

  .stats-bar__num {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    margin-bottom: 4px;
  }

  .stats-bar__label {
    font-size: 0.68rem;
    line-height: 1.35;
  }
}

@media (max-width: 480px) {
  .stats-bar {
    padding: 22px 0;
  }

  .stats-bar__grid {
    gap: 6px;
  }

  .stats-bar__item {
    padding: 10px 6px;
    border-radius: 10px;
  }

  .stats-bar__num {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    margin-bottom: 3px;
  }

  .stats-bar__label {
    font-size: 0.62rem;
    line-height: 1.3;
  }
}
