:root {
  --green: #78b86b;
  --green-dark: #2f6f4f;
  --mint: #eef8f1;
  --ink: #17201c;
  --muted: #67726e;
  --line: #dfe8e2;
  --white: #ffffff;
  --soft: #f7f7f4;
  --clay: #bd6d4d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--ink);
  background: var(--soft);
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(223, 232, 226, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand span {
  white-space: nowrap;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a,
.text-link {
  transition: color 0.2s ease;
}

.nav a:hover,
.text-link:hover {
  color: var(--green-dark);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button span {
  min-width: 0;
}

.header-action {
  gap: 8px;
  color: var(--white);
  background: var(--green-dark);
}

.header-action svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 130px clamp(18px, 5vw, 80px) 54px;
  color: var(--white);
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(18, 31, 26, 0.82), rgba(18, 31, 26, 0.44) 46%, rgba(18, 31, 26, 0.1)),
    linear-gradient(0deg, rgba(18, 31, 26, 0.72), rgba(18, 31, 26, 0));
}

.hero-content {
  position: relative;
  width: min(860px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #d7f5d3;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
}

.hero-text {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button.primary {
  color: var(--white);
  background: var(--green-dark);
}

.button.light {
  color: var(--ink);
  background: var(--white);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  width: min(560px, 100%);
  margin-top: 46px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.24);
}

.hero-stats div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.13);
}

.hero-stats strong {
  display: block;
  font-size: 24px;
}

.hero-stats span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.35;
}

.section {
  padding: clamp(72px, 9vw, 128px) clamp(18px, 5vw, 80px);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 36px;
}

.section-heading.wide {
  max-width: 980px;
}

.intro-grid,
.feature,
.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.intro-copy {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.intro-copy p,
.quote-panel p,
.service-card p,
.feature-copy p,
.doctor-layout p,
.cta p,
.contact-info p,
.footer p,
.review-grid p {
  margin: 0;
}

.quote-panel {
  min-height: 270px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.quote-panel span {
  display: block;
  color: var(--green-dark);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.02;
}

.quote-panel p {
  margin-top: 24px;
  color: var(--muted);
  line-height: 1.65;
}

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

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 245px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f5faf6);
}

.service-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 34px;
  border-radius: 50%;
  color: var(--green-dark);
  background: var(--mint);
  font-weight: 800;
}

.service-card p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.process {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(58px, 8vw, 108px) clamp(18px, 5vw, 80px);
  color: var(--white);
  background: var(--green-dark);
}

.process .eyebrow {
  color: #cfedc9;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.steps div {
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.steps span {
  display: block;
  color: #cfedc9;
  font-size: 34px;
  font-weight: 800;
}

.steps p {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.45;
}

.feature {
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
}

.feature-media img,
.doctor-layout img {
  width: 100%;
  height: clamp(460px, 62vw, 760px);
  object-fit: cover;
  border-radius: 8px;
}

.advantage-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.advantage-list div {
  padding: 22px;
  border-left: 4px solid var(--green);
  background: var(--white);
}

.advantage-list strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.advantage-list p {
  color: var(--muted);
  line-height: 1.55;
}

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

.doctor-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.doctor-layout img {
  object-position: center;
}

.doctor-layout p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.text-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--green-dark);
  font-weight: 800;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 260px;
  gap: 14px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.gallery-grid .tall {
  grid-row: span 2;
}

.gallery-grid .wide-img {
  grid-column: span 2;
}

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

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-grid article {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.review-grid p {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.65;
}

.review-grid span {
  display: block;
  margin-top: 28px;
  color: var(--muted);
  font-weight: 800;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: clamp(40px, 6vw, 72px) clamp(18px, 5vw, 80px);
  padding: clamp(34px, 5vw, 58px);
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-dark), #1b3e32);
}

.cta h2 {
  margin-bottom: 16px;
}

.cta p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.65;
}

.contacts {
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
}

.contact-info p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 18px;
}

.phone-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--green-dark);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-weight: 800;
}

.socials svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.socials a[href*="instagram"] svg {
  color: #c13584;
}

.socials a[href*="youtube"] svg {
  color: #ff0033;
}

.map-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(0deg, rgba(23, 32, 28, 0.86), rgba(23, 32, 28, 0.12)),
    url("img/IMG_0129.JPG") center/cover;
}

.map-card span {
  color: #cfedc9;
  font-weight: 800;
}

.map-card strong {
  margin-top: 8px;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.08;
}

.map-card .text-link {
  color: var(--white);
}

.footer {
  padding: 46px clamp(18px, 5vw, 80px);
  color: rgba(255, 255, 255, 0.78);
  background: #111814;
}

.footer-main {
  display: grid;
  grid-template-columns: 0.8fr 1fr 0.6fr;
  gap: 30px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 94px;
  margin-bottom: 16px;
  padding: 10px;
  border-radius: 8px;
  background: var(--white);
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-data {
  display: grid;
  gap: 8px;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 12px;
  font-weight: 800;
}

.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 20px 70px;
  line-height: 1.7;
}

.legal-page h1 {
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.08;
}

.legal-page h2 {
  margin-top: 34px;
  font-size: 28px;
}

.legal-page h3 {
  margin: 24px 0 10px;
  font-size: 21px;
  line-height: 1.3;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .service-grid,
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-grid,
  .feature,
  .doctor-layout,
  .process,
  .contacts,
  .footer-main {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .site-header {
    padding: 10px 14px;
  }

  .brand span {
    max-width: 155px;
    white-space: normal;
    line-height: 1.1;
  }

  .header-action {
    min-height: 40px;
    padding: 0 12px;
  }

  .hero {
    min-height: 92vh;
    padding: 110px 16px 28px;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(18, 31, 26, 0.9), rgba(18, 31, 26, 0.55)),
      linear-gradient(90deg, rgba(18, 31, 26, 0.78), rgba(18, 31, 26, 0.34));
  }

  .hero-stats {
    background: rgba(18, 31, 26, 0.34);
  }

  .hero-stats div {
    background: rgba(255, 255, 255, 0.2);
  }

  .hero-actions,
  .cta,
  .socials {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-stats,
  .service-grid,
  .advantage-list,
  .steps,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 16px;
  }

  .service-card {
    min-height: auto;
  }

  .feature-media img,
  .doctor-layout img {
    height: 430px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 330px;
  }

  .gallery-grid .tall,
  .gallery-grid .wide-img {
    grid-column: auto;
    grid-row: auto;
  }

  .cta {
    margin: 26px 16px;
  }

  .legal-page {
    padding: 96px 18px 56px;
  }

  .legal-page h1 {
    font-size: 25px;
    line-height: 1.18;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .legal-page h2 {
    font-size: 22px;
    line-height: 1.25;
  }
}
