/*
 Theme Name:  Mamafit — Спина без боли
 Theme URI:
 Author:      Taina Somora
 Description: Responsive landing page for the «Спина без боли» fitness course.
 Version:     1.1
 Text Domain: mamafit
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;900&display=swap');

:root {
    --mf-gold:        #e79d0f;
    --mf-green:       #8dbf9a;
    --mf-green-light: #e8faec;
    --mf-brown:       #a48d80;
    --mf-white:       #ffffff;
    --mf-black:       #000000;
    --mf-font:        'Montserrat', sans-serif;
}

.mamafit-landing *, .mamafit-landing *::before, .mamafit-landing *::after { box-sizing: border-box; margin: 0; padding: 0; }
.mamafit-landing { font-family: var(--mf-font); color: var(--mf-black); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.mamafit-landing img { display: block; max-width: 100%; }
.mamafit-landing ul { list-style: none; }
.mamafit-landing a { text-decoration: none; }

.mf-wrap { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.mf-accent { color: var(--mf-green); }

.mf-btn-buy {
  display: flex;
  /* Changed from inline-flex */
  margin: 0 auto;
  /* Added to center the button */
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 310px;
  max-width: 100%;
  height: 66px;
  padding: 0 32px;
  background-color: var(--mf-gold);
  color: var(--mf-white);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  border-radius: 35px;
  border: none;
  transition: opacity 0.18s;
  white-space: nowrap;
}
.mf-btn-buy:hover { opacity: 0.88; color: var(--mf-white); }
.mf-btn-buy del { font-weight: 300; text-decoration: line-through; opacity: 0.8; }

.mf-section-title { font-size: 36px; font-weight: 900; line-height: 1.2; color: var(--mf-black); margin-bottom: 20px; text-align: center; }

/* Background Circles */
.mf-values, .mf-testimonials { position: relative; }
.mf-circle-bg { position: absolute; background-color: var(--mf-green-light); border-radius: 50%; z-index: 0; }
.mf-circle-bg--top { width: 600px; height: 600px; top: -100px; left: -250px; }
.mf-circle-bg--bottom { width: 800px; height: 800px; top: 0px; left: -300px; }

/* HERO SECTION */
.mf-hero { position: relative; overflow: hidden; min-height: 460px; background-color: var(--mf-brown); display: flex; align-items: flex-start; }
.mf-hero__photo { position: absolute; top: 0; right: 0; height: 100%; width: 100%; object-fit: cover; object-position: 60% top; } /* Centered subject on mobile */
.mf-hero__overlay {
    position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background: none;
}
.mf-hero__credit { display: none; position: absolute; top: 22px; right: 32px; font-size: 12px; font-weight: 600; color: var(--mf-white); text-align: right; line-height: 1.4; z-index: 3; }
.mf-hero__inner { position: relative; z-index: 2; width: 100%; display: flex; align-items: flex-start; }
.mf-hero__content { padding: 120px 24px 72px 24px; max-width: 400px; }

.mf-hero__top { margin-bottom: 18px; }
.mf-hero__badge { width: 89px; height: 89px; border: 2px solid var(--mf-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; flex-shrink: 0; margin-bottom: 14px; }
.mf-hero__badge-text { font-size: 13px; font-weight: 600; color: var(--mf-white); line-height: 1.3; }
.mf-hero__audience { font-size: 16px; font-weight: 600; color: var(--mf-white); line-height: 1.4; margin-bottom: 14px; }

/* Responsive Title */
.mf-hero__title { font-size: clamp(48px, 14vw, 70px); font-weight: 900; text-transform: uppercase; color: var(--mf-white); line-height: 0.9; margin-bottom: 44px; }

/* VALUES */
.mf-values { padding: 60px 0; overflow: hidden; }
.mf-values__blocks { display: flex; flex-direction: column; gap: 28px; margin-bottom: 44px; }
.mf-values__block-title { font-size: 16px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; }
.mf-values__list { display: flex; flex-direction: column; gap: 4px; font-size: 16px; font-weight: 400; line-height: 1.5; }
.mf-values__list li { padding-left: 1em; position: relative; }
.mf-values__list li::before { content: '•'; position: absolute; left: 0; }

/* CONTENTS */
.mf-contents { padding: 20px 0 60px; }
.mf-bonuses-heading { margin-top: 48px; }
.mf-cta-block { margin-top: 40px; }
.mf-cta-block--center { display: flex; justify-content: center; margin-top: 40px; width: 100%; }

/* PILLS */
.mf-pill-list { display: flex; flex-direction: column; gap: 10px; }
.mf-pill { display: flex; align-items: center; gap: 16px; border: 1px solid var(--mf-green); border-radius: 100px; padding: 10px 20px 10px 10px; min-height: 120px; background: #fff; }
.mf-pill__thumb { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mf-pill__info { flex: 1; min-width: 0; }
.mf-pill__title { font-size: 14px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.mf-pill__subtitle { font-size: 14px; font-weight: 400; line-height: 1.3; }

/* TESTIMONIALS */
.mf-testimonials { padding: 60px 0; overflow: hidden; }
.mf-testimonials__grid { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.mf-testimonials__col { display: flex; flex-direction: column; gap: 10px; }
.mf-testimonials__img { width: 100%; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

/* ABOUT */
.mf-about { padding: 20px 0 60px; text-align: center; }
.mf-about__text { font-size: 16px; font-weight: 400; line-height: 1.5; max-width: 580px; margin: 0 auto; }
.mf-about__text strong { font-weight: 700; }

/* FOOTER */
.mf-footer {
  background-color: #1a1a1a;
  color: #a0a0a0;
  padding: 48px 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}

.mf-footer strong {
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
}

.mf-footer p {
  margin-bottom: 6px;
}

.mf-footer__info {
  margin-bottom: 24px;
}

.mf-footer__links {
  margin-bottom: 28px;
  font-size: 14px;
}

.mf-footer__links a {
  color: #8dbf9a;
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.2s;
}

.mf-footer__links a:hover {
  color: #ffffff;
}

.mf-footer__payments {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.mf-footer__payments img {
  height: 28px;
  object-fit: contain;
  opacity: 0.9;
}

.mf-footer__copyright {
  font-size: 12px;
  opacity: 0.6;
}

/* TABLET  ≥ 768px */
@media (min-width: 768px) {
    .mf-values__blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
    .mf-testimonials__grid { flex-direction: row; align-items: flex-start; }
    .mf-testimonials__col { flex: 1; }
	.mf-hero__photo { object-position: 80% top; }
}

/* DESKTOP  ≥ 1024px */
@media (min-width: 1024px) {
    .mf-hero { min-height: 584px; align-items: center; }
    .mf-hero__photo { width: 70%; object-position: center top; }
    .mf-hero__overlay { background: linear-gradient(to right, #a48d80 28%, rgba(164, 141, 128, 0.88) 48%, rgba(164, 141, 128, 0) 72%); }
    .mf-hero__credit { display: block; }
    .mf-hero__inner { max-width: 1240px; margin: 0 auto; padding: 0 60px; }
    .mf-hero__content { padding: 80px 0; max-width: 650px; }
    .mf-hero__top { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; }
    .mf-hero__top .mf-hero__badge { margin-bottom: 0; }
    .mf-hero__top .mf-hero__audience { font-size: 20px; margin-bottom: 0; }
    .mf-hero__title { font-size: 96px; margin-bottom: 36px; }
    .mf-btn-buy { width: 344px; font-size: 20px; }
    .mf-section-title { font-size: 40px; }
    .mf-wrap { max-width: 800px; }
    .mf-pill { min-height: 104px; padding: 2px 24px 2px 2px; }
    .mf-pill__title, .mf-pill__subtitle { font-size: 16px; }
}

/* LEGAL PAGES */
.mamafit-legal {
  background-color: #f9f9f9;
}

.mf-legal-content {
  padding: 60px 0 100px;
}

.mf-legal-content .mf-wrap {
  max-width: 800px;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.mf-back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--mf-green);
  font-weight: 600;
}

.mf-legal-content h1 {
  text-align: left;
  margin-bottom: 30px;
}

.mf-legal-content h2,
.mf-legal-content h3 {
  margin: 24px 0 12px;
  font-size: 20px;
}

.mf-legal-content p,
.mf-legal-content li {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}
