/* Клиника доктора Мирзабаевой */

:root {
  --blue-dark: #0d1b2f;
  --blue: #172b46;
  --blue-light: #223b5f;
  --white: #ffffff;
  --green: #008000;
  --gray: #f4f6f8;
  --gray-2: #e8edf2;
  --text: #27303b;
  --muted: #6e7886;
  --shadow: 0 24px 80px rgba(13, 27, 47, 0.20);
  --font: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--gray);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.section { padding: 80px 0; }

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  color: var(--white);
}

.topbar-inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 15px;
  font-weight: 800;
}

.topbar-link:hover { opacity: 0.8; }

.hero {
  position: relative;
  min-height: 900px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 110px 0 130px;
  background:
    linear-gradient(120deg, rgba(13, 27, 47, 0.72), rgba(13, 27, 47, 0.52)),
	  url('../image10.jpg') center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 27, 47, 0.05), rgba(13, 27, 47, 0.74)),
    radial-gradient(circle at 30% 45%, rgba(244, 246, 248, 0.22), transparent 32rem);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-label {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 76px;
  padding: 22px 44px;
  border-radius: 4px 24px 4px 24px;
  background: rgba(13, 27, 47, 0.58);
  backdrop-filter: blur(10px);
  color: var(--white);
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.1;
  font-weight: 900;
  text-align: center;
  box-shadow: var(--shadow);
}

.hero-row {
  width: min(900px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr;
  gap: 10px;
  align-items: stretch;
}

.hero-title {
  position: relative;
  padding: 22px 32px;
  border-radius: 4px 16px 4px 16px;
  background: rgba(13, 27, 47, 0.84);
  color: var(--white);
  box-shadow: var(--shadow);
}

.hero-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: -20px;
  bottom: -7px;
  height: 3px;
  background: rgba(255, 255, 255, 0.86);
}

.hero-title h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.hero-title p {
  margin: 0;
  color: #dfe6ef;
  font-size: 17px;
  font-weight: 700;
}

.hero-phone {
  min-height: 78px;
  display: grid;
  place-items: center;
  padding: 18px 30px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 4px 16px 4px 16px;
  background: var(--blue);
  color: var(--white);
  font-size: 21px;
  font-weight: 900;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.hero-phone:hover {
  transform: translateY(-2px);
  background: var(--blue-light);
}

.help-box {
  position: absolute;
  left: 50%;
  bottom: 38px;
  z-index: 3;
  width: min(1040px, calc(100% - 36px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 32px 40px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: var(--blue-dark);
  color: var(--white);
  box-shadow: var(--shadow);
}

.help-box h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.help-box p {
  margin: 0;
  color: #dfe6ef;
  font-size: 16px;
}

.help-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 3px;
  font-weight: 900;
  white-space: nowrap;
  transition: 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-white {
  background: var(--green);
  color: var(--white);
}

.btn-dark {
  min-width: 220px;
  background: var(--blue-dark);
  color: var(--white);
}

.features { background: var(--white); }

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px 80px;
}

.feature-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 26px;
  align-items: start;
}

.feature-item span {
  color: var(--text);
  font-size: clamp(58px, 5vw, 82px);
  line-height: 0.9;
  font-weight: 300;
  letter-spacing: -0.08em;
}

.feature-item h3 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 500;
  color: #465360;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.info { background: var(--gray); }

.info-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--gray-2);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 8px 30px rgba(13, 27, 47, 0.06);
}

.info-text { padding: 42px 38px; }

.info-text h2 {
  max-width: 520px;
  margin: 0 0 28px;
  color: var(--blue-dark);
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.2;
  font-weight: 500;
}

.info-text ul {
  display: grid;
  gap: 16px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.info-text li {
  position: relative;
  padding-left: 46px;
  color: var(--text);
  font-size: 18px;
}

.info-text li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -8px;
  color: #d5dce4;
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
}

.info-text p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.info-image {
  min-height: 360px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0)),
    url("https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=1200&q=80") center / cover no-repeat;
}

.contacts { background: var(--white); }

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.contacts h2 {
  margin: 0 0 16px;
  color: var(--blue-dark);
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
}

.contacts p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 20px;
}

.contacts-actions {
  display: flex;
  gap: 18px;
}

@media (max-width: 920px) {
  .topbar-inner {
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
    text-align: center;
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 250px;
  }

  .hero-label { margin-bottom: 42px; }

  .hero-row,
  .help-box,
  .features-grid,
  .info-card,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .help-actions,
  .contacts-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-dark { width: 100%; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 24px, 1180px); }

  .section { padding: 54px 0; }

  .hero-label {
    padding: 18px 20px;
    font-size: 22px;
  }

  .hero-title { padding: 20px; }

  .hero-title h1 { font-size: 30px; }

  .hero-title p { font-size: 15px; }

  .hero-phone { font-size: 18px; }

  .help-box {
    bottom: 18px;
    width: calc(100% - 24px);
    padding: 24px 20px;
  }

  .feature-item {
    grid-template-columns: 62px 1fr;
    gap: 18px;
  }

  .feature-item span { font-size: 58px; }

  .feature-item h3 { font-size: 21px; }

  .info-text { padding: 32px 24px; }

  .info-image { min-height: 260px; }

  .contacts p { font-size: 18px; }
}

.hero-heading {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 35px;
}

.hero-heading .hero-label {
  margin-bottom: 12px;
}

.hero-heading .hero-note {
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  margin: 0;
  text-align: left;
}

/* Баннер лечения зависимостей */
.treatment-banner {
  position: relative;
  width: 100%;
  padding: 42px 20px;
  background: linear-gradient(120deg, #f8fbff, #ffffff);
  overflow: hidden;
  text-align: center;
}

.treatment-banner::before,
.treatment-banner::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 180px;
  background: #dff1fa;
  border-radius: 50%;
  z-index: 0;
}

.treatment-banner::before {
  top: -115px;
  left: -70px;
  transform: rotate(-20deg);
}

.treatment-banner::after {
  bottom: -125px;
  right: -70px;
  transform: rotate(-20deg);
}

.treatment-banner .container {
  position: relative;
  z-index: 1;
}

.treatment-banner h2 {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 800;
  line-height: 1.3;
  color: #102747;
}

.treatment-banner h2 span {
  color: #008d87;
}

@media (max-width: 768px) {
  .treatment-banner {
    padding: 30px 15px;
  }

  .treatment-banner h2 {
    font-size: 22px;
  }

  .treatment-banner::before,
  .treatment-banner::after {
    width: 160px;
    height: 120px;
  }
}

.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  border: 2px solid #25D366;
  text-decoration: none;
  white-space: nowrap;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  color: #ffffff;
}

.help-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 768px) {
  .help-actions {
    justify-content: center;
  }
}