:root {
  --brand: #4d3d31;
  --bg: #f4f0eb;
  --bg-soft: #f8f5f1;
  --text: #2e241e;
  --muted: #6d5e52;
  --border: #dacfc4;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 14px 30px rgba(77, 61, 49, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, #f9f6f2 55%, var(--bg) 100%);
  line-height: 1.45;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(77, 61, 49, 0.1);
  background: rgba(244, 240, 235, 0.94);
  backdrop-filter: blur(8px);
}

.header-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.top-nav a:hover {
  color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.24s ease, box-shadow 0.24s ease, color 0.24s ease, background-color 0.24s ease;
}

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

.btn-solid {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 6px 14px rgba(77, 61, 49, 0.24);
}

.btn-solid:hover {
  box-shadow: 0 10px 20px rgba(77, 61, 49, 0.28);
}

.btn-ghost {
  border-color: var(--brand);
  color: var(--brand);
  background: transparent;
}

.hero {
  padding: 56px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--brand);
  line-height: 1.15;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
}

.hero-text,
.subtext {
  margin: 14px 0 0;
  color: var(--muted);
}

.quick-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quick-list li {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

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

.hero-media-frame {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.hero-media-frame img,
.hero-media-frame video {
  width: 100%;
  aspect-ratio: 5 / 5;
  object-fit: cover;
}

.section {
  padding: 48px 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58) 0%, rgba(251, 248, 244, 0.8) 100%);
}

.section-head {
  margin-bottom: 22px;
}

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

.service-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(77, 61, 49, 0.07);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(77, 61, 49, 0) 45%, rgba(77, 61, 49, 0.14) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(77, 61, 49, 0.35);
  box-shadow: 0 18px 34px rgba(77, 61, 49, 0.2);
}

.service-card:hover::after,
.service-card:focus-visible::after {
  opacity: 1;
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.service-card:hover img,
.service-card:focus-visible img {
  transform: scale(1.06);
  filter: contrast(1.03) saturate(1.06);
}

.service-card h3 {
  font-size: 1rem;
  padding: 14px 14px 8px;
  transition: transform 0.35s ease, color 0.35s ease;
}

.service-card-content {
  position: relative;
  z-index: 1;
  padding-bottom: 12px;
  transition: transform 0.35s ease;
}

.service-card:hover .service-card-content,
.service-card:focus-visible .service-card-content {
  transform: translateY(-2px);
}

.service-card:hover h3,
.service-card:focus-visible h3 {
  color: #3a2f26;
}

.service-meta {
  margin: 0;
  padding: 0 14px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.service-meta span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 8px;
  background: #faf7f3;
  transition: transform 0.32s ease, border-color 0.32s ease, background-color 0.32s ease;
}

.service-card:hover .service-meta span,
.service-card:focus-visible .service-meta span {
  transform: translateY(-1px);
  border-color: rgba(77, 61, 49, 0.35);
  background: #fff;
}

.services-contacts {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.services-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.services-phones a {
  text-decoration: none;
  color: var(--brand);
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.services-all-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
}

#services-all .section-head {
  max-width: 50%;
}

.chip {
  border: 1px solid var(--border);
  background: var(--white);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
}

.about-clinic {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-clinic h3 {
  margin: 0;
  font-size: 1.2rem;
}

.about-clinic p {
  margin: 12px 0 0;
  color: var(--muted);
}

.about-clinic-points {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-clinic-points span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 11px;
  background: #faf7f3;
  font-size: 0.9rem;
  font-weight: 600;
}

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

.doctor-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.doctor-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.doctor-card .doctor-text {
  padding: 12px;
}

.doctor-name {
  margin: 0;
  font-weight: 700;
}

.doctor-role {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.video-carousel {
  position: relative;
  overflow: hidden;
  padding: 14px 72px 16px;
}

.video-track {
  position: relative;
}

.video-track .owl-stage-outer {
  overflow: visible;
  padding: 12px 0;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 6%,
    #000 13%,
    #000 87%,
    rgba(0, 0, 0, 0.08) 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 6%,
    #000 13%,
    #000 87%,
    rgba(0, 0, 0, 0.08) 94%,
    transparent 100%
  );
}

.video-track .owl-stage {
  display: flex;
  align-items: center;
}

.video-track .owl-item .video-slide {
  transition: transform 0.35s ease, opacity 0.35s ease;
  transform: scale(0.84);
  opacity: 0.48;
}

.video-track .owl-item.center .video-slide {
  transform: scale(1.1);
  opacity: 1;
}

.video-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(77, 61, 49, 0.2), transparent 42%),
    linear-gradient(120deg, #f7f2ec 0%, #ebe3da 100%);
}

.video-shell {
  aspect-ratio: 9 / 16;
  display: grid;
  place-items: center;
  padding: 8px;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: linear-gradient(120deg, #241c16 0%, #4d3d31 100%);
  border-radius: 10px;
  pointer-events: none;
}

.video-shell video::-webkit-media-controls {
  display: none !important;
}

.video-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(77, 61, 49, 0.9);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.14);
}

.video-nav-prev {
  left: 14px;
}

.video-nav-next {
  right: 14px;
}

.reviews-section {
  background: #ebebeb;
}

.reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

.reviews-tip {
  margin: 0;
  max-width: 240px;
  color: #7d7d7d;
  font-size: 0.95rem;
}

.reviews-carousel {
  position: relative;
  overflow: hidden;
  padding: 8px 58px 14px 0;
}

.reviews-track {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  overflow-x: hidden;
  padding: 6px 2px 6px 0;
  scroll-snap-type: none;
  scroll-padding-left: 0;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(
    90deg,
    #000 0%,
    #000 76%,
    rgba(0, 0, 0, 0.22) 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    #000 0%,
    #000 76%,
    rgba(0, 0, 0, 0.22) 90%,
    transparent 100%
  );
}

.reviews-track::-webkit-scrollbar {
  display: none;
}

.review-card {
  scroll-snap-align: none;
  flex: 0 0 clamp(150px, 13.5vw, 205px);
  height: 150px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #d8d2cc;
  background: #fff;
  box-shadow: 0 10px 22px rgba(77, 61, 49, 0.07);
  transform: scale(0.92);
  transform-origin: left center;
  opacity: 0.72;
  transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.35s ease;
}

.review-card.is-featured {
  flex-basis: clamp(300px, 38vw, 560px);
  height: 260px;
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 14px 28px rgba(77, 61, 49, 0.12);
}

.review-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left top;
  background: #fff;
  image-rendering: auto;
}

.reviews-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(77, 61, 49, 0.88);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.14);
}

.reviews-nav-next {
  right: 12px;
}

.prices-tabs {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 14px;
  box-shadow: 0 8px 20px rgba(77, 61, 49, 0.07);
}

.prices-tabs-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
}

.prices-tab-btn {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: #faf7f3;
  color: var(--brand);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.prices-tab-btn[aria-selected="true"] {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}

.prices-panel {
  margin-top: 6px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.prices-category-title {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.prices-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.prices-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(77, 61, 49, 0.22);
}

.prices-row:last-child {
  border-bottom: none;
}

.prices-service {
  margin: 0;
  font-size: 0.95rem;
}

.prices-cost {
  margin: 0;
  font-weight: 700;
  color: var(--brand);
  text-align: right;
  white-space: nowrap;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  gap: 20px;
}

.contacts-info,
.lead-form-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--white);
}

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

.contact-list a {
  font-weight: 600;
  color: var(--brand);
}

.social-links {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  color: var(--brand);
}

.lead-form {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.lead-form label {
  display: grid;
  gap: 7px;
  font-size: 0.94rem;
  font-weight: 600;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  font: inherit;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fffcf9;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: 2px solid rgba(77, 61, 49, 0.22);
  border-color: var(--brand);
}

.consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
}

.consent input {
  margin-top: 3px;
}

.form-note {
  min-height: 20px;
  margin: 2px 0 0;
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 600;
}

.consult-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.consult-modal.is-open {
  display: block;
}

.consult-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(39, 29, 22, 0.42);
  backdrop-filter: blur(3px);
}

.consult-modal-dialog {
  position: relative;
  width: min(520px, calc(100vw - 28px));
  margin: min(10vh, 80px) auto 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 20px;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.2);
}

.consult-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--brand);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.consult-modal-form {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.consult-modal-form label {
  display: grid;
  gap: 7px;
  font-size: 0.94rem;
  font-weight: 600;
}

.consult-modal-form input {
  font: inherit;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fffcf9;
}

.consult-modal-form input:focus {
  outline: 2px solid rgba(77, 61, 49, 0.22);
  border-color: var(--brand);
}

.mobile-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  z-index: 30;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(244, 240, 235, 0.95);
  border-top: 1px solid rgba(77, 61, 49, 0.2);
  backdrop-filter: blur(8px);
}

.mobile-sticky-cta a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  padding: 12px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  font-weight: 700;
}

.mobile-sticky-cta a:first-child {
  color: var(--brand);
  background: var(--white);
}

.mobile-sticky-cta a:last-child {
  color: var(--white);
  background: var(--brand);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.58s ease, transform 0.58s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-all-split {
    grid-template-columns: 1fr;
    align-items: start;
  }

  #services-all .section-head {
    max-width: 100%;
  }

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

  .contacts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .header-wrap {
    grid-template-columns: 1fr auto;
    min-height: 66px;
  }

  .top-nav {
    display: none;
  }

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

  .hero-media {
    display: none;
  }

  .video-nav {
    display: none;
  }

  .video-carousel {
    padding-inline: 16px;
  }

  .video-track .owl-stage-outer {
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.08) 4%,
      #000 10%,
      #000 90%,
      rgba(0, 0, 0, 0.08) 96%,
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.08) 4%,
      #000 10%,
      #000 90%,
      rgba(0, 0, 0, 0.08) 96%,
      transparent 100%
    );
  }

  .prices-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .prices-cost {
    text-align: left;
  }

  .reviews-head {
    align-items: start;
    flex-direction: column;
  }

  .services-contacts {
    flex-direction: column;
    align-items: stretch;
  }

  .services-phones a {
    width: 100%;
    text-align: center;
  }

  .reviews-tip {
    max-width: none;
  }

  .reviews-carousel {
    padding-inline: 8px;
  }

  .reviews-track {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-left: 0;
    scroll-padding-left: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .review-card,
  .review-card.is-featured {
    flex: 0 0 92%;
    height: auto;
    transform: none;
    opacity: 1;
  }

  .review-card img {
    height: auto;
  }

  .reviews-nav {
    display: none;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 38px 0;
  }

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

  .service-grid {
    grid-template-columns: 1fr;
  }

  .doctor-grid {
    grid-template-columns: 1fr 1fr;
  }

  .btn-call {
    display: none;
  }

  .mobile-sticky-cta {
    display: flex;
  }

  body {
    padding-bottom: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .service-card,
  .reveal {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
