/* =============================================================
   pages/home.css — Главная страница
   gestaltme.com | v1.0 | 2026-03
   =============================================================
   DEPENDS ON: tokens.css, base.css, layout.css, components.css
   LOADED ON:  index.html and en/index.html only
   ============================================================= */

/* ─────────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────────── */

.hero {
  padding-top: var(--sp-20);
  padding-bottom: var(--sp-16);
  position: relative;
  overflow: clip;
  width: 100%;
  max-width: 100%;
}

/* Background blobs */
.hero::before {
  content: '';
  position: absolute;
  top: -140px;
  right: -80px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(122,158,142,.13) 0%, transparent 68%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(107,91,78,.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Grid: text | photo */
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--sp-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__text {
  max-width: 580px;
}

.hero__heading {
  margin-bottom: var(--sp-6);
}

.hero__lead {
  margin-bottom: var(--sp-8);
}

/* Photo column */
.hero__photo-wrap {
  position: relative;
  justify-self: end;
}

.hero__photo-bg {
  position: absolute;
  top: 20px;
  right: 0;
  bottom: -20px;
  left: 20px;
  background: linear-gradient(135deg, var(--c-sage-lt), var(--c-linen));
  border-radius: var(--radius-lg);
  z-index: 0;
}

.hero__photo {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: clip;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-xl);
  background: linear-gradient(160deg, var(--c-sage-lt) 0%, var(--c-linen) 100%);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Floating badge on photo */
.hero__float-badge {
  position: absolute;
  bottom: var(--sp-6);
  left: calc(-1 * var(--sp-8));
  z-index: 2;
}

/* ─────────────────────────────────────────────
   FREE CALL BANNER WRAPPER
   Overlaps slightly with hero bottom
───────────────────────────────────────────── */

.home-banner-wrap {
  padding-top: 0;
  padding-bottom: var(--sp-20);
}

/* ─────────────────────────────────────────────
   ABOUT TEASER
───────────────────────────────────────────── */

.about-teaser {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: var(--sp-20);
  align-items: start;
}

.about-teaser__photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: clip;
  box-shadow: var(--shadow-lg);
}

.about-teaser__photo-bg {
  position: absolute;
  top: 16px;
  right: 0;
  bottom: -16px;
  left: 16px;
  background: linear-gradient(135deg, var(--c-sage-lt), var(--c-linen));
  border-radius: var(--radius-lg);
  z-index: 0;
}

.about-teaser__photo-frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--c-sage-lt) 0%, var(--c-linen) 100%);
}

.about-teaser__photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Stats — continuation of photo, rounded only at bottom */
.about-teaser__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(122,158,142,.2);
}

.about-teaser__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: var(--sp-5) var(--sp-2);
  background: rgba(200,218,210,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
}

.about-teaser__stat strong {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: var(--c-sage-dk);
  line-height: 1;
}

.about-teaser__stat span {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--c-sage-dk);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  line-height: 1.2;
  opacity: .75;
}

.hero__trust-badges {
  margin-top: var(--sp-5);
}

.about-teaser__content {
  padding-top: var(--sp-4);
}

.about-teaser__content h2 {
  margin-bottom: var(--sp-5);
}

.about-teaser__content > p {
  margin-bottom: var(--sp-4);
  max-width: 52ch;
}

/* ─────────────────────────────────────────────
   SERVICES GRID (dark section)
───────────────────────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

/* ─────────────────────────────────────────────
   FAQ LAYOUT (2-col: header | questions)
───────────────────────────────────────────── */

.faq-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--sp-16);
  align-items: start;
}

.faq-layout__header h2 {
  margin-bottom: var(--sp-4);
}

.faq-layout__header > p {
  color: var(--c-muted);
  font-size: var(--text-sm);
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */

/* Tablet: 768–1024 */
@media (max-width: 1024px) {

  .hero {
    padding-top: var(--sp-14);
    padding-bottom: var(--sp-12);
  }

  .hero__grid {
    grid-template-columns: 1fr 280px;
    gap: var(--sp-8);
  }

  /* Badge: protrude left like desktop but higher so it doesn't overlap buttons */
  .hero__float-badge {
    left: calc(-1 * var(--sp-6));
    bottom: 5%;
  }

  .about-teaser {
    grid-template-columns: 320px 1fr;
    gap: var(--sp-12);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-layout {
    grid-template-columns: 260px 1fr;
    gap: var(--sp-10);
  }
}

/* Mobile: < 768 */
@media (max-width: 767px) {

  /* Hero: stack, photo first */
  .hero {
    padding-top: var(--sp-10);
    padding-bottom: var(--sp-8);
  }

  .hero .eyebrow--pill {
    align-self: flex-start;
    margin-left: auto;
    margin-right: auto;
  }

  .hero::before,
  .hero::after { display: none; }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero__photo-wrap {
    order: -1;
    width: 100%;
    max-width: 100%;
    margin: 0 0 var(--sp-8) 0;
    justify-self: stretch;
  }

  .hero__photo img {
    object-position: center 30%;
  }

  .hero__photo-bg { display: none; }

  .hero__photo {
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-md);
  }

  .hero__float-badge {
    left: calc(-1 * var(--sp-3));
    bottom: calc(-1 * var(--sp-5));
    padding: var(--sp-2) var(--sp-3);
  }

  .hero__float-badge .float-badge__icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .hero__float-badge .float-badge__label {
    font-size: var(--text-xs);
  }

  .hero__float-badge .float-badge__sub {
    font-size: 10px;
  }

  .hero__text {
    max-width: 100%;
    width: 100%;
  }

  .hero__heading {
    font-size: clamp(2rem, 9vw, 2.6rem);
    margin-bottom: var(--sp-4);
  }

  .hero__lead {
    font-size: var(--text-base);
    margin-bottom: var(--sp-6);
  }

  /* Banner */
  .home-banner-wrap {
    padding-bottom: var(--sp-14);
  }

  /* About teaser */
  .about-teaser {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .about-teaser__photo-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .about-teaser__photo-frame {
    aspect-ratio: 3 / 4;
  }

  .about-teaser__photo-frame img {
    object-position: center 30%;
  }

  .about-teaser__photo-bg { display: none; }

  .about-teaser__stat {
    padding: var(--sp-3) var(--sp-1);
    min-width: 0;
  }

  .about-teaser__stat strong {
    font-size: var(--text-xl);
  }

  .about-teaser__stat span {
    font-size: 9px;
    word-break: break-word;
  }

  /* Services: 1 col */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* FAQ: stack */
  .faq-layout {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .faq-layout__header {
    text-align: center;
  }
}



/* ─────────────────────────────────────────────
   INLINE STYLE REPLACEMENTS
   Вынесено из index.html в CSS
───────────────────────────────────────────── */

/* Services: ссылка "Все услуги" в заголовке */
.services-all-link {
  color: var(--c-sage-lt);
  border-color: var(--c-sage);
}

/* Final CTA: eyebrow pill spacing */
.cta-section .eyebrow--pill {
  margin-bottom: var(--sp-6);
}

/* Final CTA: lead paragraph */
.cta-section .lead {
  margin: var(--sp-5) auto var(--sp-10);
  color: var(--c-dark-text);
}

/* Final CTA: button group spacing */
.cta-section .btn-group {
  margin-bottom: var(--sp-8);
}

/* FAQ header: CTA button spacing */
.faq-layout__header .btn {
  margin-top: var(--sp-6);
}
