/* T14 / M02: принятое оформление главной из доски ui2. */
@import url("./components.css");
@import url("/local/mama/ui2/home-steps.css");

.mama-home-specimen,
.mama-home-specimen * {
  box-sizing: border-box;
}
.mama-home-specimen {
  max-width: var(--mama-container-max);
  margin: auto;
  padding: 24px;
  color: var(--mama-color-text);
  font-family: var(--mama-font-sans);
}
.mama-home-specimen h1,
.mama-home-specimen h2,
.mama-home-specimen h3,
.mama-home-specimen p {
  margin-top: 0;
}
.mama-home-specimen > h1 {
  font-size: clamp(30px, 4vw, 44px);
}
.mama-home-specimen__note {
  max-width: 72ch;
  color: var(--mama-color-text-muted);
  line-height: 1.55;
}
.mama-home-specimen__section {
  margin-top: clamp(32px, 5vw, 64px);
}
.mama-home-specimen__section > h2 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
}
.mama-home-specimen :where(button, a):focus-visible {
  outline: 3px solid var(--mama-color-focus);
  outline-offset: 3px;
}

.mama-home-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 560px;
  overflow: hidden;
  border-radius: var(--mama-radius-lg);
  background: var(--mama-color-surface);
}
.mama-home-hero__photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 62%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 55%;
  mask-image: linear-gradient(to right, transparent, #000 32%);
}
.mama-home-hero__content {
  position: relative;
  display: grid;
  gap: clamp(16px, 2.2vw, 24px);
  width: min(100%, 640px);
  padding: clamp(24px, 4vw, 56px);
}
.mama-home-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mama-brand-800);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mama-home-eyebrow::before {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mama-color-action);
  content: "";
}
.mama-home-hero h2 {
  margin: 0;
  color: var(--mama-color-heading);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}
.mama-home-hero__lead {
  max-width: 520px;
  margin: 0;
  color: var(--mama-color-text);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.55;
}
.mama-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.mama-home-hero__actions .mama-button {
  min-height: 52px;
  padding-inline: 28px;
}
.mama-home-hero__secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  color: var(--mama-color-text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline dotted;
  text-underline-offset: 4px;
}
.mama-home-hero__secondary span {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--mama-color-selected-surface);
  color: var(--mama-color-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.mama-home-hero__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--mama-color-border);
}
.mama-home-hero__links a {
  display: grid;
  align-content: start;
  gap: 4px;
  color: var(--mama-color-text);
  text-decoration: none;
}
.mama-home-hero__links b {
  font-size: 15px;
}
.mama-home-hero__links span {
  color: var(--mama-color-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.mama-home-advantages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.mama-home-advantage {
  padding: clamp(20px, 2.5vw, 32px);
  border: 1px solid var(--mama-color-border);
  border-radius: var(--mama-radius-lg);
  background: var(--mama-color-surface);
}
.mama-home-advantage b {
  display: block;
  margin-bottom: 12px;
  color: var(--mama-color-heading);
  font-size: 24px;
}
.mama-home-advantage p {
  margin: 0;
  color: var(--mama-color-text-muted);
  line-height: 1.55;
}

.mama-home-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  overflow: hidden;
  border-radius: var(--mama-radius-lg);
  background: var(--mama-color-action);
  color: var(--mama-color-action-text);
}
.mama-home-banner__content {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 12px;
  padding: clamp(24px, 4vw, 48px);
}
.mama-home-banner__content h3 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.2;
}
.mama-home-banner__content p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
.mama-home-banner__content .mama-button {
  margin-top: 10px;
  background: var(--mama-color-surface);
}
.mama-home-banner img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.mama-home-feature {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  overflow: hidden;
  border-radius: var(--mama-radius-lg);
  background: var(--mama-color-doctor-surface);
  color: var(--mama-color-doctor-text);
}
.mama-home-feature img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  object-position: center 20%;
}
.mama-home-feature__content {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  padding: clamp(24px, 4vw, 52px);
}
.mama-home-feature .mama-home-eyebrow {
  color: var(--mama-brand-300);
}
.mama-home-feature__content h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
}
.mama-home-feature__content p {
  margin: 0;
  color: #f3d9d4;
  font-size: 17px;
  line-height: 1.55;
}
.mama-home-feature__content a {
  color: #fff;
  font-weight: 600;
  text-underline-offset: 4px;
}

.mama-home-reviews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.mama-home-review {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--mama-color-border);
  border-radius: var(--mama-radius-lg);
  background: var(--mama-color-surface);
}
.mama-home-review p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}
.mama-home-review small {
  color: var(--mama-color-text-muted);
  font-size: 13px;
}
.mama-home-review a {
  color: var(--mama-color-link);
  font-weight: 600;
}

@media (max-width: 799px) {
  .mama-home-hero {
    min-height: 0;
  }
  .mama-home-hero__photo {
    position: relative;
    width: 100%;
    height: 270px;
    order: -1;
    mask-image: none;
  }
  .mama-home-hero__content {
    width: 100%;
  }
  .mama-home-banner,
  .mama-home-feature {
    grid-template-columns: minmax(0, 1fr);
  }
  .mama-home-banner img {
    max-height: 260px;
  }
  .mama-home-feature img {
    max-height: 320px;
  }
  .mama-home-advantages {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 599px) {
  .mama-home-specimen {
    padding: 16px;
  }
  .mama-home-hero__links {
    grid-template-columns: minmax(0, 1fr);
  }
  .mama-home-hero__actions .mama-button {
    width: 100%;
  }
  .mama-home-reviews {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 599px) {
  .mama-home-hero__photo {
    inset: 0;
    width: 100%;
    opacity: 0.22;
    mask-image: none;
  }
}
