/* G8-centre — mobile home (Eurodon redesign layout) */

.home-mob {
  display: none;
  padding-bottom: 8px;
}

.home-desktop {
  display: block;
}

@media (max-width: 900px) {
  .home-mob {
    display: block;
  }

  .home-desktop {
    display: none;
  }

  .home-mob__promo-wrap {
    padding-top: 12px;
  }

  /* top-strip скрыт глобально в style.css */
  .page:has(.home-mob) .footer__grid,
  .page:has(.home-mob) .footer__cta {
    display: none;
  }

  .page:has(.home-mob) .footer {
    margin-top: 0;
    padding-top: 8px;
    background: transparent;
  }

  .page:has(.home-mob) .footer__bottom {
    border-top: none;
    padding-bottom: 4px;
  }

  .header {
    border-bottom: none;
    box-shadow: none;
  }

  .header.is-scrolled {
    box-shadow: var(--shadow-sm);
  }
}

/* ── Intro + search (скрыто на мобильной) ── */
.home-mob__intro {
  display: none;
  padding: 4px 16px 18px;
}

.home-mob__title {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.home-mob__subtitle {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.home-mob__search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--muted-light);
  font-size: 15px;
  font-weight: 500;
}

.home-mob__search .icon {
  color: var(--muted);
  flex-shrink: 0;
}

/* ── Quick actions (скрыто на мобильной) ── */
.home-mob__quick {
  display: none;
  gap: 8px;
  padding: 0 16px 22px;
}

.home-mob__qa {
  flex: 1;
  min-width: 0;
  border: none;
  cursor: pointer;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px 12px;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.15s var(--ease);
}

.home-mob__qa:active {
  transform: scale(0.97);
}

.home-mob__qa--blue { background: var(--blue-soft); }
.home-mob__qa--mint { background: var(--mint-soft); }
.home-mob__qa--coral { background: var(--coral-soft); }
.home-mob__qa--lilac { background: var(--lilac-soft); }

.home-mob__qa-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(10, 31, 58, 0.06);
}

.home-mob__qa-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

/* ── Promo hero card ── */
.home-mob__promo-wrap {
  padding: 0 16px 24px;
}

.home-mob-promo {
  overflow: visible;
}

.home-mob-promo .swiper-slide {
  height: auto;
}

.home-mob__promo-dots {
  position: static !important;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.home-mob__promo-dots .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  margin: 0 !important;
  background: var(--muted-light);
  opacity: 1;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.home-mob__promo-dots .swiper-pagination-bullet-active {
  background: var(--blue);
  transform: scale(1.2);
}

.home-mob__promo {
  position: relative;
  overflow: hidden;
  min-height: 192px;
  padding: 20px 22px;
  border-radius: 26px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 60%, #0e2a8c 100%);
}

.home-mob__promo-glow {
  position: absolute;
  right: -28px;
  top: -28px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.home-mob__promo-visual {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 110px;
  height: 110px;
  object-fit: contain;
  opacity: 0.95;
}

.home-mob__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.home-mob__promo h2 {
  position: relative;
  z-index: 1;
  margin: 12px 0 6px;
  max-width: 62%;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.home-mob__promo p {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  max-width: 58%;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
}

.home-mob__promo-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--white);
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

/* ── Section head ── */
.home-mob__section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  margin-bottom: 14px;
}

.home-mob__section-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.home-mob__section-head a {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}

/* ── Services grid ── */
.home-mob__svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px 26px;
}

.home-mob__svc {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-height: 122px;
  padding: 16px 14px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
}

.home-mob__svc--blue { background: var(--blue-soft); }
.home-mob__svc--mint { background: var(--mint-soft); }
.home-mob__svc--coral { background: var(--coral-soft); }
.home-mob__svc--amber { background: var(--amber-soft); }
.home-mob__svc--lilac { background: var(--lilac-soft); }
.home-mob__svc--surface { background: var(--surface); }

.home-mob__svc-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(10, 31, 58, 0.08);
}

.home-mob__svc h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
}

.home-mob__svc p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}

/* ── Doctor card ── */
.home-mob__doctor-wrap {
  padding: 0 16px 22px;
}

.home-mob__doctor {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 2px 8px rgba(10, 31, 58, 0.04);
}

.home-mob__doctor-photo {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--mint-soft), var(--blue-soft));
}

.home-mob__doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.home-mob__doctor-body {
  flex: 1;
  min-width: 0;
}

.home-mob__doctor-badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--mint-soft);
  color: #0b7a5f;
  font-size: 11px;
  font-weight: 700;
  margin-top: 8px;
}

.home-mob__doctor-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.home-mob__doctor-role {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
}

.home-mob__doctor-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(69, 147, 255, 0.35);
}

/* ── News scroll ── */
.home-mob__news {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px 22px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.home-mob__news::-webkit-scrollbar {
  display: none;
}

.home-mob__news-card {
  flex: 0 0 230px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 130px;
  padding: 14px;
  border-radius: 20px;
}

.home-mob__news-card--blue { background: var(--blue-soft); }
.home-mob__news-card--amber { background: var(--amber-soft); }
.home-mob__news-card--coral { background: var(--coral-soft); }

.home-mob__news-tag {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--white);
}

.home-mob__news-tag--coral { background: var(--coral); }
.home-mob__news-tag--mint { background: var(--mint); }
.home-mob__news-tag--blue { background: var(--blue); }

.home-mob__news-card h3 {
  flex: 1;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.home-mob__news-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

/* ── About clinic ── */
.home-mob__about {
  margin: 8px 16px 24px;
  padding: 20px 18px 18px;
  border-radius: 26px;
  background: var(--white);
  border: 1px solid var(--line);
}

.home-mob__about-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-soft);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 14px;
}

.home-mob__about-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.home-mob__about-title {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 5.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.home-mob__about-text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--muted);
}

.home-mob__about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.home-mob__about-actions .btn {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  padding-inline: 16px;
  font-size: 14px;
}

.home-mob__about-visual {
  display: flex;
  justify-content: center;
  margin: 0 -4px 16px;
  padding: 8px 0 4px;
  background: linear-gradient(180deg, var(--blue-soft) 0%, transparent 100%);
  border-radius: 20px;
}

.home-mob__about-visual img {
  width: min(100%, 280px);
  height: auto;
  max-height: 280px;
  object-fit: contain;
}

.home-mob__about-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.home-mob__metric {
  border-radius: 18px;
  padding: 12px 10px 14px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.home-mob__metric--blue { background: var(--blue-soft); }
.home-mob__metric--mint { background: var(--mint-soft); }
.home-mob__metric--coral { background: var(--coral-soft); }

.home-mob__metric-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.home-mob__metric-num {
  margin-top: 10px;
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.home-mob__metric p {
  margin: 6px 0 0;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--muted);
}

@media (max-width: 360px) {
  .home-mob__about-metrics {
    grid-template-columns: 1fr;
  }

  .home-mob__metric {
    min-height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 14px;
  }

  .home-mob__metric-num {
    margin-top: 0;
    margin-left: auto;
  }

  .home-mob__metric p {
    flex: 1 1 100%;
    margin-top: 0;
  }
}

/* ── Compact contacts ── */
.home-mob__contact {
  margin: 0 16px 20px;
  padding: 18px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--line);
}

.home-mob__contact h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-mob__contact p {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.home-mob__contact-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.home-mob__contact-actions .btn {
  flex: 1;
}
