:root {
  --ink: #17211d;
  --muted: #60706a;
  --line: #dbe7e2;
  --paper: #fbfcf9;
  --soft: #edf5f1;
  --mint: #2d8b72;
  --mint-dark: #17624f;
  --blue: #2e6f94;
  --amber: #d49638;
  --cta: #d64a2f;
  --cta-dark: #aa321d;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(23, 33, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(251, 252, 249, 0.92);
  border-bottom: 1px solid rgba(219, 231, 226, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--mint), var(--blue));
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

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

.nav a:hover {
  color: var(--mint-dark);
}

.header-phone {
  justify-self: end;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: end;
  gap: 24px;
  overflow: hidden;
  padding: clamp(84px, 13vh, 132px) clamp(18px, 5vw, 72px) 34px;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  background: url("assets/hero-doctor-van.webp") center / cover no-repeat;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(247, 251, 248, 0.98) 0%, rgba(247, 251, 248, 0.88) 37%, rgba(247, 251, 248, 0.22) 72%),
    linear-gradient(0deg, rgba(23, 33, 29, 0.18), rgba(23, 33, 29, 0));
}

.hero-content {
  max-width: 740px;
  padding-bottom: clamp(44px, 8vh, 96px);
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 0.98;
  letter-spacing: 0;
}

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

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

.hero-text {
  max-width: 630px;
  color: #41514b;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.contact-card {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 800;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--cta), var(--cta-dark));
  box-shadow: 0 14px 34px rgba(170, 50, 29, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(170, 50, 29, 0.34);
}

.btn-secondary {
  color: var(--mint-dark);
  background: var(--white);
  border: 1px solid var(--line);
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.hero-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel div {
  padding: 24px;
  background: rgba(255, 255, 255, 0.78);
}

.hero-panel span {
  display: block;
  color: var(--blue);
  font-size: 34px;
  font-weight: 800;
}

.hero-panel p {
  margin: 4px 0 0;
  color: var(--muted);
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.quick-strip a {
  padding: 22px clamp(16px, 3vw, 38px);
  border-right: 1px solid var(--line);
  color: var(--mint-dark);
  font-weight: 800;
}

.quick-strip a:last-child {
  border-right: 0;
}

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

.section-heading {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(24px, 6vw, 88px);
  align-items: start;
  margin-bottom: 36px;
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.care-grid article,
.program-cards article,
.doctor-card,
.review-grid article,
.price-table,
.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.care-grid article,
.program-cards article {
  padding: 28px;
}

.card-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  font-weight: 800;
}

.care-grid p,
.program-cards p,
.program-main p,
.flow-intro p,
.trust-copy p,
.faq p,
.contacts p {
  color: var(--muted);
}

.flow-section {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(34px, 7vw, 96px);
  background: var(--soft);
}

.flow-intro {
  position: sticky;
  top: 114px;
  align-self: start;
}

.flow-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  column-gap: 18px;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid rgba(219, 231, 226, 0.9);
}

.flow-list span {
  grid-row: span 2;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 8px;
  color: var(--mint-dark);
  background: #e0f0e8;
  font-weight: 800;
}

.flow-list strong {
  font-size: 20px;
}

.flow-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.program-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 18px;
}

.program-main {
  padding: clamp(32px, 5vw, 54px);
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(23, 98, 79, 0.94), rgba(46, 111, 148, 0.92)),
    var(--mint-dark);
}

.program-main p {
  color: rgba(255, 255, 255, 0.82);
}

.program-main ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding-left: 20px;
}

.program-cards {
  display: grid;
  gap: 18px;
}

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

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.doctor-card {
  overflow: hidden;
}

.doctor-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  background: #dfe8e4;
}

.doctor-card div {
  padding: 24px;
}

.doctor-role {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.doctor-card p:not(.doctor-role) {
  color: var(--muted);
}

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

.price-table {
  overflow: hidden;
}

.price-row {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr 0.6fr;
  gap: 18px;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.price-row:last-child {
  border-bottom: 0;
}

.price-head {
  color: var(--muted);
  background: var(--soft);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.price-row strong {
  color: var(--mint-dark);
  font-size: 19px;
}

.trust {
  display: grid;
  grid-template-columns: minmax(320px, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  background: var(--soft);
}

.trust-copy {
  position: sticky;
  top: 112px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.trust-grid div {
  min-height: 136px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid span {
  margin-top: 14px;
  color: var(--muted);
}

.trust-cta {
  margin-top: 22px;
}

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

.trust-photo {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #dfe8e4;
  box-shadow: 0 18px 42px rgba(23, 33, 29, 0.1);
}

.trust-photo-large {
  grid-row: span 2;
  min-height: 520px;
}

.trust-photo-wide {
  grid-column: span 2;
  min-height: 260px;
}

.trust-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.trust-photo figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(23, 33, 29, 0.12);
  font-size: 14px;
  font-weight: 800;
}

.brigades {
  display: grid;
  grid-template-columns: minmax(320px, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  background: var(--white);
}

.brigades-copy p:not(.eyebrow) {
  color: var(--muted);
}

.city-map {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf5f1;
  box-shadow: var(--shadow);
}

.city-map-image {
  display: block;
  width: 100%;
  aspect-ratio: 23 / 14;
  object-fit: cover;
}

.license {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(280px, 0.55fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  background: var(--soft);
}

.license-copy p:not(.eyebrow) {
  color: var(--muted);
}

.license-details {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
}

.license-details div {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.license-details dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.license-details dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.license-document {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.license-document img {
  display: block;
  width: 100%;
  height: auto;
}

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

.stationary-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stationary figure {
  position: relative;
  min-height: 390px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #dfe8e4;
}

.stationary img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.stationary figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 13px 15px;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(23, 33, 29, 0.12);
  font-weight: 800;
}

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

.cases-heading {
  max-width: 920px;
  margin: 0 auto 44px;
  text-align: center;
}

.cases-heading h2 {
  font-size: clamp(38px, 5vw, 62px);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
}

.case-card {
  overflow: hidden;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(23, 33, 29, 0.08);
}

.case-photo {
  height: 240px;
  overflow: hidden;
  background: #dfe8e4;
}

.case-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px);
  transform: scale(1.04);
}

.case-body {
  display: grid;
  min-height: 300px;
  align-content: start;
  gap: 20px;
  padding: clamp(24px, 3vw, 34px);
}

.case-body h3 {
  margin: 0;
  font-size: clamp(23px, 2vw, 29px);
  line-height: 1.16;
}

.case-body p {
  margin: 0;
  color: #6c5f52;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.75;
}

.case-body strong {
  color: #4b4038;
}

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

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

.review-grid article {
  padding: 28px;
}

.review-grid article::before {
  content: "“";
  display: block;
  height: 42px;
  color: var(--amber);
  font-size: 72px;
  line-height: 0.8;
  font-weight: 800;
}

.review-top {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}

.review-top strong {
  font-size: 18px;
}

.review-top span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.review-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.faq {
  max-width: 1040px;
  margin: 0 auto;
}

.faq .section-heading {
  grid-template-columns: 0.35fr 1fr;
}

.faq details {
  margin-top: 12px;
  padding: 22px 24px;
}

.faq summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}

.faq p {
  margin: 14px 0 0;
}

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 0;
  align-items: stretch;
  margin: 0 clamp(18px, 5vw, 72px) clamp(18px, 5vw, 72px);
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--mint-dark), #245c78);
  overflow: hidden;
}

.contacts .eyebrow,
.contacts p {
  color: rgba(255, 255, 255, 0.78);
}

.contacts-info {
  padding: clamp(32px, 5vw, 62px);
}

.contact-details {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

.contact-details div {
  padding: 16px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.contact-details dt {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-details dd {
  margin: 0;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 800;
}

.contacts .btn-primary {
  box-shadow: 0 14px 34px rgba(23, 33, 29, 0.18);
}

.contacts-photo {
  min-height: 520px;
  margin: 0;
  background: #12392f;
}

.contacts-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: contain;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--mint-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mobile-call-bar {
  display: none;
}

.cookie-notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: flex;
  max-width: 360px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 46px rgba(23, 33, 29, 0.18);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-notice strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}

.cookie-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.cookie-notice button {
  min-height: 36px;
  padding: 8px 11px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--cta-dark);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

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

  .nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-panel {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-heading,
  .flow-section,
  .program-layout,
  .doctor-grid,
  .stationary-layout,
  .brigades,
  .license,
  .case-grid,
  .trust,
  .review-grid,
  .contacts {
    grid-template-columns: 1fr;
  }

  .care-grid,
  .quick-strip,
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-intro {
    position: static;
  }

  .trust-copy {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 15px;
    line-height: 1.1;
  }

  .header-phone {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 10px;
    white-space: nowrap;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    padding: 300px 16px 20px;
    background: #f7fbf8;
  }

  .hero-media {
    bottom: auto;
    height: 360px;
    background-position: 68% top;
    background-size: cover;
  }

  .hero-overlay {
    bottom: auto;
    height: 430px;
    background:
      linear-gradient(180deg, rgba(247, 251, 248, 0.02) 0%, rgba(247, 251, 248, 0.08) 40%, rgba(247, 251, 248, 0.94) 84%, #f7fbf8 100%),
      linear-gradient(90deg, rgba(247, 251, 248, 0.8) 0%, rgba(247, 251, 248, 0.15) 55%, rgba(247, 251, 248, 0) 100%);
  }

  .hero-content {
    position: relative;
    padding-bottom: 24px;
  }

  h1 {
    font-size: 40px;
    line-height: 1;
  }

  h2 {
    font-size: 30px;
  }

  .btn,
  .hero-actions {
    width: 100%;
  }

  .hero-panel,
  .quick-strip,
  .care-grid,
  .doctor-grid,
  .review-grid,
  .trust-grid,
  .trust-gallery {
    grid-template-columns: 1fr;
  }

  .stationary figure {
    min-height: 260px;
  }

  .city-map {
    min-height: 0;
  }

  .trust-photo-large,
  .trust-photo-wide {
    grid-row: auto;
    grid-column: auto;
    min-height: 260px;
  }

  .quick-strip a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-strip a:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 58px 16px;
  }

  .flow-list li {
    grid-template-columns: 1fr;
  }

  .flow-list span {
    grid-row: auto;
    margin-bottom: 16px;
  }

  .price-table {
    border: 0;
    background: transparent;
  }

  .price-head {
    display: none;
  }

  .price-row {
    grid-template-columns: 1fr;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
  }

  .contacts {
    margin: 0 16px 16px;
  }

  .contacts-info {
    padding: 28px 20px;
  }

  .contacts-photo {
    min-height: 300px;
  }

  body {
    padding-bottom: 78px;
  }

  .mobile-call-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 45;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 8px;
    align-items: center;
    padding: 9px;
    border: 1px solid rgba(219, 231, 226, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 46px rgba(23, 33, 29, 0.18);
    backdrop-filter: blur(16px);
  }

  .mobile-call-button,
  .mobile-call-phone {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 800;
    white-space: nowrap;
  }

  .mobile-call-button {
    color: var(--white);
    background: linear-gradient(135deg, var(--cta), var(--cta-dark));
    box-shadow: 0 10px 24px rgba(170, 50, 29, 0.24);
  }

  .mobile-call-phone {
    color: var(--mint-dark);
    background: var(--soft);
    font-size: 14px;
  }

  footer {
    display: block;
  }

  footer p + p {
    margin-top: 10px;
  }

  .cookie-notice {
    left: 12px;
    right: 12px;
    bottom: 86px;
    max-width: none;
  }
}
