/*
  Medici Center — site stylesheet.
  Tokens ported from medici-design-system.html. Plain CSS, no build step —
  served as-is so the whole site works on standard PHP/MySQL hosting.
*/
:root {
  --color-ink: #1c1a18;
  --color-text: #1f2128;
  --color-muted: #6e625b;
  --color-paper: #fffdfc;
  --color-soft: #faf5f2;
  --color-soft-2: #f2ebe6;
  --color-accent: #c5a692;
  --color-accent-hover: #b38b71;
  --color-line: rgba(197, 166, 146, .32);
  --color-line-soft: rgba(197, 166, 146, .18);
  --color-white: #fff;

  --font-heading: "Roboto Slab", Georgia, serif;
  --font-body: "Roboto", Arial, sans-serif;

  --radius-card: 4px;
  --radius-button: 24px;

  --header-height: 80px;
  --header-height-mobile: 64px;
  --container-max: 1320px;
  --page-gutter: 24px;
  --page-hero-gap: 0px;
  --section-space: 80px;
  --section-edge-space: 80px;
  --section-space-mobile: 80px;
  --section-title-gap: 48px;
  --page-flow-gap: var(--section-space);
  --button-height: 44px;

  --shadow-card: 0 10px 26px rgba(28, 26, 24, .04);

  --iti-border-color: var(--color-line);
  --iti-hover-color: var(--color-soft);
  --iti-icon-color: var(--color-muted);
  --iti-country-selector-bg: var(--color-white);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

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

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

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.18;
}

p {
  margin: 0;
}

.container {
  width: min(var(--container-max), calc(100% - (var(--page-gutter) + var(--page-gutter))));
  margin: 0 auto;
}

/* Buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--button-height);
  padding: 0 24px 2px;
  border-radius: var(--radius-button);
  border: 1px solid transparent;
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

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

.btn--primary:hover {
  background: var(--color-accent-hover);
}

.btn--line {
  border-color: rgba(255, 255, 255, .72);
  color: var(--color-white);
  background: transparent;
}

.btn--line:hover {
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.btn--ghost {
  border-color: var(--color-line);
  color: var(--color-ink);
  background: var(--color-white);
}

.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-hover);
}

/* Header — fixed over the hero, transparent until scrolled */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: box-shadow .45s ease;
}

.header.is-scrolled {
  box-shadow: 0 14px 32px rgba(28, 26, 24, .12);
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 253, 252, .8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line-soft);
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}

.header.is-scrolled::before {
  opacity: 1;
}

.header__inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header__logo {
  height: 38px;
  width: auto;
}

.header__name {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--color-ink);
  transition: color .25s ease;
}

.header__tagline {
  font-size: 12px;
  color: var(--color-muted);
  transition: color .25s ease;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-heading);
  font-size: 1rem;
}

.header__nav a {
  padding: 8px 0;
  color: var(--color-ink);
  transition: color .25s ease;
}

.header__nav a.is-active,
.header__nav a:hover {
  color: var(--color-accent-hover);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* On-dark variant (transparent over the homepage's dark hero) */

.header--on-dark:not(.is-scrolled) .header__name,
.header--on-dark:not(.is-scrolled) .header__tagline,
.header--on-dark:not(.is-scrolled) .header__nav a,
.header--on-dark:not(.is-scrolled) .language-dropdown__trigger {
  color: var(--color-white);
}

.header--on-dark:not(.is-scrolled) .header__nav a.is-active,
.header--on-dark:not(.is-scrolled) .header__nav a:hover {
  color: var(--color-accent);
}

.header--on-dark:not(.is-scrolled) .language-dropdown__trigger svg {
  stroke: var(--color-white);
}

/* Language switch — horizontal row of pills, used in the mobile menu */

.language-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.language-switch a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--color-white);
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.language-switch a:hover {
  border-color: rgba(255, 255, 255, .4);
}

.language-switch a.is-active {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-ink);
}

/* Language dropdown — flag + label trigger, used in the desktop header */

.language-dropdown {
  position: relative;
}

.language-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-ink);
  white-space: nowrap;
}

.language-dropdown__trigger svg {
  stroke: var(--color-accent);
  transition: transform .2s ease;
}

.language-dropdown.is-open .language-dropdown__trigger svg:last-child {
  transform: rotate(180deg);
}

.language-dropdown__panel {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: max-content;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-card);
  background: rgba(28, 26, 24, .8);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  z-index: 60;
}

.language-dropdown.is-open .language-dropdown__panel {
  display: block;
}

.language-dropdown__option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-card);
  font-family: var(--font-heading);
  font-size: .9rem;
  color: var(--color-white);
  white-space: nowrap;
}

.language-dropdown__option:hover,
.language-dropdown__option.is-active {
  color: var(--color-accent);
  background: rgba(255, 255, 255, .08);
}

/* Mobile menu toggle + full-screen panel */

.header__toggle {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--color-ink);
}

.header--on-dark:not(.is-scrolled) .header__toggle {
  color: var(--color-white);
}

.header__toggle-bar {
  display: block;
  width: 40px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.header__toggle-bar--short {
  width: 24px;
}

.mobile-menu {
  display: none;
}

@media (max-width: 1080px) {
  /* Header stays fixed + transparent (like desktop), floating over the
     hero/page-hero underneath, with nav/phones/language moved into the
     full-screen menu below. */
  .header__inner {
    height: var(--header-height-mobile);
  }

  .header__inner .header__logo {
    height: 30px;
  }

  .header__nav,
  .header__actions .language-switch,
  .header__actions .language-dropdown,
  .header__actions .btn--primary {
    display: none;
  }

  .header__toggle {
    display: flex;
  }

  .page-hero {
    padding-top: calc(var(--header-height-mobile) + var(--page-hero-gap));
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    background: var(--color-ink);
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
  }

  .mobile-menu.is-open {
    transform: translateX(0);
  }

  .mobile-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height-mobile);
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  .mobile-menu__top .header__name {
    color: var(--color-white);
  }

  .mobile-menu__top .header__tagline {
    color: rgba(255, 255, 255, .65);
  }

  .mobile-menu__close {
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-white);
    cursor: pointer;
  }

  .mobile-menu__close svg {
    stroke: currentColor;
    display: block;
  }

  .mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 32px;
  }

  .mobile-menu__nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    font-family: var(--font-heading);
    font-size: 17px;
    color: var(--color-white);
    opacity: 0;
    transform: translateX(18px);
    transition: color .2s ease, opacity .4s ease, transform .4s ease;
  }

  .mobile-menu__nav a svg {
    flex-shrink: 0;
    stroke: var(--color-accent);
  }

  .mobile-menu.is-open .mobile-menu__nav a {
    opacity: 1;
    transform: translateX(0);
  }

  .mobile-menu.is-open .mobile-menu__nav a:nth-child(1) { transition-delay: .05s; }
  .mobile-menu.is-open .mobile-menu__nav a:nth-child(2) { transition-delay: .1s; }
  .mobile-menu.is-open .mobile-menu__nav a:nth-child(3) { transition-delay: .15s; }
  .mobile-menu.is-open .mobile-menu__nav a:nth-child(4) { transition-delay: .2s; }
  .mobile-menu.is-open .mobile-menu__nav a:nth-child(5) { transition-delay: .25s; }
  .mobile-menu.is-open .mobile-menu__nav a:nth-child(6) { transition-delay: .3s; }

  .mobile-menu__nav a.is-active {
    color: var(--color-accent);
  }

  .mobile-menu__bottom {
    margin-top: auto;
    padding-top: 28px;
    padding-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .mobile-menu__section {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .mobile-menu__label {
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-accent);
  }

  .mobile-menu__phones {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-menu__phone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, .04);
  }

  .mobile-menu__phone-number {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 17px;
    color: var(--color-white);
  }

  .mobile-menu__phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(197, 166, 146, .16);
    color: var(--color-accent);
  }

  .mobile-menu__phone-icon svg {
    stroke: currentColor;
    display: block;
  }

  .mobile-menu__cta {
    width: 100%;
  }
}

/* Footer */

.footer {
  position: relative;
}

.footer__top {
  padding: 28px 0;
  border-top: 1px solid var(--color-line-soft);
  border-bottom: 1px solid var(--color-line-soft);
  background:
    linear-gradient(135deg, var(--color-soft) 0%, var(--color-paper) 100%);
}

.footer__middle {
  padding: 40px 0;
  background: var(--color-white);
}

.footer__bottom {
  padding: 16px 0;
  border-top: 1px solid rgba(197, 166, 146, .2);
  background: var(--color-white);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, max-content) minmax(0, 1fr);
  gap: 24px;
}

.footer__grid_custom {
  grid-template-columns: 140px minmax(0, 1fr) auto;
}

.footer__grid_bottom {
  grid-template-columns: minmax(0, 1fr) auto;
}

.footer__col {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.footer__col_center {
  justify-content: center;
}

.footer__col_right {
  justify-content: flex-end;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 20px;
}

.footer__logo img {
  width: 140px;
  height: auto;
}

.footer__copyright,
.footer__links a {
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 14px;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__links a,
.navigation-footer__item {
  transition: color .2s ease;
}

.footer__links a:hover,
.navigation-footer__item:hover {
  color: var(--color-accent-hover);
}

.navigation-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 100%;
  margin-left: 24px;
}

.navigation-footer__item {
  position: relative;
  display: inline-flex;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 16px;
  white-space: nowrap;
}

.navigation-footer__item::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--color-accent);
  opacity: 0;
  transition: opacity .2s ease;
}

.navigation-footer__item:hover::before {
  opacity: 1;
}

.footer-contacts {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  color: var(--color-ink);
}

.footer-contacts__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(197, 166, 146, .42);
  border-radius: 50%;
  background: transparent;
  color: var(--color-accent-hover);
  box-shadow: none;
  transition: border-color .2s ease, color .2s ease;
}

.footer-contacts__icon svg {
  stroke: currentColor;
}

.footer-contacts:hover .footer-contacts__icon {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.footer-contacts__text,
.footer-contacts__number,
.footer-contacts__schedule {
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.5;
}

.footer-contacts__text {
  max-width: 340px;
}

.footer-contacts__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.footer-contacts__phones {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contacts__number:hover {
  color: var(--color-accent-hover);
}

.footer-contacts__mgs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.footer-contacts__mgs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(197, 166, 146, .26);
  border-radius: 50%;
  background: rgba(255, 255, 255, .58);
  color: var(--color-accent-hover);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.footer-contacts__mgs a:hover {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-white);
}

.footer-contacts__schedule {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 10px;
  align-items: baseline;
  width: 100%;
  white-space: nowrap;
}

.footer-contacts__day {
  color: var(--color-muted);
  white-space: nowrap;
}

.footer-contacts__time {
  color: var(--color-ink);
  white-space: nowrap;
}

.social-footer {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-footer__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(197, 166, 146, .15);
  border-radius: 50%;
  color: var(--color-accent);
  font-size: 18px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.social-footer__item:hover {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-white);
}

@media (max-width: 1080px) {
  .footer__grid,
  .footer__grid_custom {
    grid-template-columns: 1fr;
  }

  .footer__col,
  .footer__col_center,
  .footer__col_right {
    justify-content: center;
  }

  .footer-contacts {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .footer-contacts__icon {
    margin: 0;
  }

  .navigation-footer {
    flex-wrap: wrap;
    margin-left: 0;
  }
}

@media (max-width: 599px) {
  .footer__middle {
    padding: 32px 0;
  }

  .navigation-footer {
    flex-direction: column;
  }

  .footer-contacts__phones,
  .footer-contacts__schedule {
    justify-content: center;
  }

  .footer-contacts__schedule {
    grid-template-columns: auto auto;
  }
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--color-white);
  background: linear-gradient(135deg, #2a2622, #1c1a18);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: scale(1.06);
  transition: transform .6s ease-out;
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 3.2s ease, transform 7s ease-out;
}

.hero__bg-img.is-active {
  opacity: 1;
  transform: scale(1.08);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(28, 26, 24, .98) 0%, rgba(28, 26, 24, .86) 35%, rgba(197, 166, 146, .7) 70%, rgba(28, 26, 24, .76) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: 96px 0 104px;
}

.hero__text {
  width: 68%;
}

.hero__logo-mark {
  display: none;
}

@media (max-width: 1024px) {
  .hero__text {
    width: 100%;
    text-align: center;
  }

  .hero__logo-mark {
    display: block;
    width: 56px;
    height: auto;
    margin: 0 auto 20px;
  }

  .hero__cta {
    justify-content: center;
  }
}

.hero__eyebrow {
  display: inline-flex;
  padding: 6px 12px;
  border: 1px solid rgba(197, 166, 146, .6);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--color-soft-2);
}

.hero h1 {
  margin-top: 22px;
  color: var(--color-white);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  animation: heroFadeUp .9s ease both;
  animation-delay: .15s;
}

.hero p {
  margin: 22px 0 0;
  color: var(--color-soft-2);
  font-size: 18px;
  font-weight: 300;
  animation: heroFadeUp .9s ease both;
  animation-delay: .35s;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
  animation: heroFadeUp .9s ease both;
  animation-delay: .55s;
}

.hero__cta .btn {
  height: 58px;
  padding: 0 32px 2px;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  display: flex;
  color: var(--color-white);
  opacity: .8;
  transform: translateX(-50%);
  animation: heroScrollCue 2.2s ease-in-out infinite;
  animation-delay: 1s;
}

.hero__scroll-cue svg {
  stroke: currentColor;
  display: block;
}

.hero__scroll-cue:hover {
  opacity: 1;
}

@keyframes heroScrollCue {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* Home page sections */

.home-section-head h2 {
  max-width: 720px;
  font-size: clamp(30px, 3.4vw, 44px);
}

.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--color-accent-hover);
  font-family: var(--font-heading);
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  transition: color .2s ease;
}

.home-text-link svg {
  display: block;
  flex-shrink: 0;
  stroke: currentColor;
}

.home-text-link:hover {
  color: var(--color-ink);
}

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

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

.home-services-grid--count-1 {
  grid-template-columns: minmax(0, 760px);
}

.home-services-grid--count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
}

.home-service-card {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 148px;
  padding: 24px;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-card);
  background: var(--color-paper);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.home-service-card:hover {
  border-color: var(--color-line);
  background: var(--color-white);
  transform: translateY(-2px);
}

.home-service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  overflow: hidden;
  border: 1px solid var(--color-line-soft);
  border-radius: 50%;
  color: var(--color-accent-hover);
}

.home-service-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-service-card__icon svg,
.home-service-card__arrow svg {
  stroke: currentColor;
}

.home-service-card__body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.home-service-card__title {
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 19px;
  line-height: 1.25;
}

.home-service-card__text {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-service-card__arrow {
  display: flex;
  color: var(--color-muted);
  transition: color .2s ease;
}

.home-service-card:hover .home-service-card__arrow {
  color: var(--color-accent-hover);
}

.home-about {
  background: var(--color-soft);
}

.home-about__grid {
  display: grid;
  grid-template-columns: minmax(280px, .86fr) minmax(0, 1.14fr);
  gap: 72px;
  align-items: start;
}

.home-about__content {
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

.home-about__content h2 {
  max-width: 520px;
  font-size: clamp(32px, 4vw, 52px);
}

.home-about__content p {
  max-width: 560px;
  margin-top: 20px;
  color: var(--color-muted);
  font-size: 17px;
}

.home-about__content .home-text-link {
  margin-top: 28px;
}

.home-advantages {
  display: grid;
  border-top: 1px solid var(--color-line);
}

.home-advantage {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-line-soft);
}

.home-advantage svg {
  grid-row: span 2;
  margin-top: 2px;
  stroke: var(--color-accent-hover);
}

.home-advantage strong {
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}

.home-advantage p {
  margin: 0;
  color: var(--color-muted);
}

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

.home-doctors-list {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  margin: -12px -6px -22px;
  padding: 12px 6px 28px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-color: rgba(197, 166, 146, .5) transparent;
  -webkit-overflow-scrolling: touch;
}

.home-doctors-list::-webkit-scrollbar {
  height: 6px;
}

.home-doctors-list::-webkit-scrollbar-track {
  background: transparent;
}

.home-doctors-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(197, 166, 146, .5);
}

.home-doctor-card {
  flex: 0 0 calc((100% - 54px) / 4);
  min-width: 0;
  scroll-snap-align: start;
  border: 1px solid var(--color-line-soft);
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.home-doctor-card:hover {
  border-color: var(--color-line);
  box-shadow: none;
  transform: translateY(-2px);
}

.home-doctor-card__photo {
  aspect-ratio: 4 / 5;
}

.home-doctor-card__body {
  display: grid;
  gap: 8px;
}

.home-doctor-card__body h3 {
  font-size: 20px;
}

.home-doctor-card__body span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--color-muted);
  font-family: var(--font-heading);
  font-size: 14px;
  transition: color .2s ease;
}

.home-doctor-card__body span svg {
  stroke: currentColor;
}

.home-doctor-card:hover .home-doctor-card__body span {
  color: var(--color-accent-hover);
}

.doctor-slider__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 18px;
}

.doctor-slider__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(197, 166, 146, .42);
  border-radius: 50%;
  background: transparent;
  color: var(--color-accent-hover);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, opacity .2s ease;
}

.doctor-slider__arrow svg {
  display: block;
  stroke: currentColor;
}

.doctor-slider__arrow:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.doctor-slider__arrow:disabled {
  cursor: default;
  opacity: .34;
}

.doctor-slider__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
}

.doctor-slider__dot {
  display: block;
  width: 7px;
  height: 7px;
  padding: 0;
  border: 1px solid rgba(179, 139, 113, .46);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.doctor-slider__dot.is-active {
  border-color: var(--color-accent-hover);
  background: var(--color-accent-hover);
  transform: scale(1.28);
}

.doctor-slider__controls.is-hidden {
  display: none;
}

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

.home-reviews-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-review-card {
  min-height: 260px;
  border-color: var(--color-line-soft);
  background: var(--color-paper);
  box-shadow: none;
}

.home-review-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.home-review-card .review-card__stars {
  display: inline-flex;
  gap: 2px;
  margin: 0;
  color: rgba(197, 166, 146, .3);
  letter-spacing: 0;
}

.home-review-card .review-card__stars .is-filled {
  color: var(--color-accent-hover);
}

.home-review-card__top span {
  color: var(--color-muted);
  font-family: var(--font-heading);
  font-size: 13px;
}

.home-review-card p {
  color: var(--color-text);
}

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

  .home-about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .home-about__content {
    position: static;
  }

  .home-doctor-card {
    flex-basis: calc((100% - 36px) / 3);
  }
}

@media (max-width: 820px) {
  .home-section-head {
    display: grid;
    align-items: start;
  }

  .home-doctor-card {
    flex-basis: calc((100% - 18px) / 2);
  }
}

@media (max-width: 640px) {
  .home-services-grid,
  .home-reviews-list {
    grid-template-columns: 1fr;
  }

  .home-service-card {
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 132px;
    padding: 20px;
  }

  .home-service-card__arrow {
    grid-column: 2;
    justify-self: start;
  }

  .home-advantage {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .home-doctor-card {
    flex-basis: 86%;
  }

  .doctor-slider__controls {
    justify-content: center;
    margin-top: 14px;
  }

  .doctor-slider__arrow {
    display: none;
  }

}

/* Page hero (non-home pages) */

.page-hero {
  padding: calc(var(--header-height) + var(--page-hero-gap)) 0 var(--page-flow-gap);
  background: var(--color-soft);
  border-bottom: 1px solid var(--color-line);
}

.page-hero h1 {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 42px);
}

.page-hero p {
  max-width: 640px;
  margin-top: 14px;
  color: var(--color-muted);
  font-size: 17px;
}

.page-hero + .section,
.service-hero + .section {
  padding-top: var(--page-flow-gap);
}

/* Services catalog page */

.services-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + var(--page-hero-gap)) 0 var(--section-edge-space);
  background:
    linear-gradient(135deg, rgba(250, 245, 242, .96) 0%, rgba(255, 253, 252, .98) 54%, rgba(197, 166, 146, .24) 100%);
}

.services-hero__inner {
  position: relative;
  z-index: 1;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.services-hero__content {
  max-width: 680px;
  padding: 72px 0;
}

.services-hero h1 {
  margin-top: 8px;
  font-size: 52px;
  font-weight: 500;
}

.services-hero p {
  max-width: 620px;
  margin-top: 18px;
  color: var(--color-muted);
  font-size: 18px;
  font-weight: 300;
}

.services-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.services-hero__actions .btn {
  gap: 10px;
  height: 52px;
}

.services-hero__actions svg {
  stroke: currentColor;
}

.services-directory {
  display: grid;
  gap: 32px;
}

.services-list {
  display: grid;
  gap: 16px;
}

/* Service detail hero */

.service-hero {
  position: relative;
  --service-hero-height: clamp(560px, 72vh, 680px);
  min-height: var(--service-hero-height);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--color-ink);
  background-size: cover;
  background-position: center;
  color: var(--color-white);
}

.service-hero--no-image {
  background: linear-gradient(120deg, var(--color-ink) 0%, var(--color-accent) 100%);
}

.service-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(28, 26, 24, .98) 0%, rgba(28, 26, 24, .86) 36%, rgba(197, 166, 146, .72) 100%);
}

.service-hero--no-image .service-hero__overlay {
  background: linear-gradient(120deg, rgba(28, 26, 24, .72) 0%, rgba(197, 166, 146, .24) 100%);
}

.service-hero__inner {
  position: relative;
  z-index: 2;
  min-height: var(--service-hero-height);
  display: grid;
  align-items: center;
  padding: calc(var(--header-height) + 56px) 0 86px;
}

.service-hero__text {
  width: min(68%, 760px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: heroFadeUp .9s ease both;
  animation-delay: .12s;
}

.service-hero__back {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, .78);
  font-family: var(--font-heading);
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  transition: color .2s ease;
}

.service-hero__back:hover {
  color: var(--color-white);
}

.service-hero__back svg {
  display: block;
  width: 16px;
  height: 16px;
  stroke: currentColor;
  flex-shrink: 0;
}

.service-hero__back span {
  display: block;
}

.service-hero h1 {
  max-width: 760px;
  color: var(--color-white);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
}

.service-hero p {
  max-width: 620px;
  margin-top: 22px;
  color: rgba(255, 255, 255, .84);
  font-size: 18px;
  font-weight: 300;
}

.service-hero__cta {
  gap: 10px;
  height: 58px;
  margin-top: 32px;
  padding: 0 32px 2px;
  box-shadow: 0 12px 26px rgba(179, 139, 113, .24);
}

.service-hero__cta svg {
  stroke: currentColor;
  flex-shrink: 0;
}

@media (max-width: 1080px) {
  .service-hero {
    --service-hero-height: clamp(500px, 66vh, 600px);
    background-position: center;
  }

  .service-hero__inner {
    padding: calc(var(--header-height-mobile) + 52px) 0 72px;
  }

  .service-hero__text {
    width: min(100%, 720px);
  }

  .service-hero h1 {
    font-size: 42px;
  }
}

@media (max-width: 560px) {
  .service-hero {
    --service-hero-height: 520px;
  }

  .service-hero__inner {
    padding: calc(var(--header-height-mobile) + 48px) 0 64px;
  }

  .service-hero h1 {
    font-size: 32px;
  }

  .service-hero p {
    font-size: 16px;
  }

  .service-hero__cta {
    width: 100%;
    margin-top: 24px;
  }
}

/* Global CTA component */

.cta {
  position: relative;
  overflow: hidden;
  padding: var(--section-space) 0;
  background: var(--color-white);
  color: var(--color-ink);
}

.cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 680px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px 56px;
  border-radius: var(--radius-card);
  background: var(--color-soft);
}

.cta__content {
  max-width: 680px;
}

.cta h2 {
  color: var(--color-ink);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.18;
}

.cta p {
  max-width: 580px;
  margin-top: 14px;
  color: var(--color-muted);
  font-size: 16px;
}

.cta__actions {
  display: flex;
  justify-content: flex-end;
}

.cta .btn {
  gap: 10px;
  min-height: 58px;
  padding: 0 28px 2px;
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 16px 30px rgba(179, 139, 113, .22);
}

.cta .btn:hover {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-white);
}

.cta .btn svg {
  stroke: currentColor;
}

@media (max-width: 820px) {
  .cta__inner {
    grid-template-columns: 1fr;
    justify-content: start;
    padding: 40px;
  }

  .cta__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .cta {
    padding: var(--section-space-mobile) 0;
  }

  .cta__inner {
    padding: 32px 24px;
  }

.cta .btn {
  width: 100%;
  }
}

/* About page */

.about-hero {
  position: relative;
  --about-hero-height: 100vh;
  --about-hero-height: 100dvh;
  min-height: var(--about-hero-height);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--color-ink);
  background-size: cover;
  background-position: center;
  color: var(--color-white);
}

.about-hero--no-image {
  background: linear-gradient(120deg, var(--color-ink) 0%, var(--color-accent) 100%);
}

.about-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(28, 26, 24, .98) 0%, rgba(28, 26, 24, .84) 42%, rgba(197, 166, 146, .7) 100%);
  pointer-events: none;
}

.about-hero--no-image .about-hero__overlay {
  background: linear-gradient(120deg, rgba(28, 26, 24, .72) 0%, rgba(197, 166, 146, .22) 100%);
}

.about-hero__inner {
  position: relative;
  z-index: 2;
  min-height: var(--about-hero-height);
  display: grid;
  align-items: center;
  padding: calc(var(--header-height) + 56px) 0 86px;
}

.about-hero__content {
  width: min(68%, 780px);
  animation: heroFadeUp .9s ease both;
  animation-delay: .12s;
}

.about-hero__label {
  display: inline-flex;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, .78);
  font-family: var(--font-heading);
  font-size: 15px;
}

.about-hero h1 {
  max-width: 780px;
  color: var(--color-white);
  font-size: 64px;
}

.about-hero p {
  max-width: 640px;
  margin-top: 22px;
  color: rgba(255, 255, 255, .84);
  font-size: 18px;
  font-weight: 300;
}

.about-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.about-hero__actions .btn {
  height: 58px;
  padding: 0 32px 2px;
}

.about-story {
  background: var(--color-white);
}

.about-story__grid {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
  gap: 72px;
  align-items: start;
}

.about-story__intro {
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

.about-story__eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--color-accent-hover);
  font-family: var(--font-heading);
  font-size: 14px;
}

.about-story h2 {
  max-width: 460px;
  font-size: 48px;
}

.about-story__body {
  max-width: 760px;
  color: var(--color-muted);
  font-size: 17px;
}

.about-story__body > * + * {
  margin-top: 16px;
}

.about-doctors-section {
  background: var(--color-soft);
}

.about-doctors-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: var(--section-title-gap);
}

.about-doctors-section h2 {
  font-size: 34px;
}

.about-doctors-section__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent-hover);
  font-family: var(--font-heading);
  white-space: nowrap;
}

.about-doctors-section__link svg {
  display: block;
  stroke: currentColor;
}

.about-doctors-list {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  margin: -12px -6px -22px;
  padding: 12px 6px 28px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-color: rgba(197, 166, 146, .5) transparent;
  -webkit-overflow-scrolling: touch;
}

.about-doctors-list::-webkit-scrollbar {
  height: 6px;
}

.about-doctors-list::-webkit-scrollbar-track {
  background: transparent;
}

.about-doctors-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(197, 166, 146, .5);
}

.about-doctor-card {
  display: block;
  flex: 0 0 calc((100% - 54px) / 4);
  min-width: 0;
  scroll-snap-align: start;
  border: 1px solid rgba(197, 166, 146, .28);
  border-radius: 8px;
  box-shadow: 0 14px 42px -34px rgba(28, 26, 24, .32);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.about-doctor-card:hover {
  border-color: rgba(197, 166, 146, .56);
  box-shadow: none;
  transform: translateY(-1px);
}

.about-doctor-card__photo {
  aspect-ratio: 4 / 5;
}

.about-doctor-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--color-accent);
  background: var(--color-soft-2);
}

.about-doctor-card__placeholder svg {
  stroke: currentColor;
}

.about-doctor-card__body {
  display: grid;
  gap: 8px;
}

.about-doctor-card__body h3 {
  font-size: 18px;
}

.about-doctor-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--color-accent-hover);
  font-family: var(--font-heading);
  font-size: 14px;
}

.about-doctor-card__link svg {
  display: block;
  stroke: currentColor;
}

@media (max-width: 1080px) {
  .about-hero__inner {
    padding: calc(var(--header-height-mobile) + 52px) 0 72px;
  }

  .about-hero__content {
    width: min(100%, 720px);
  }

  .about-hero h1 {
    font-size: 42px;
  }

  .about-story h2 {
    font-size: 36px;
  }

  .about-story__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-story__intro {
    position: static;
  }

  .about-doctor-card {
    flex-basis: calc((100% - 36px) / 3);
  }
}

@media (max-width: 820px) {
  .about-doctor-card {
    flex-basis: calc((100% - 18px) / 2);
  }
}

@media (max-width: 560px) {
  .about-hero__inner {
    padding: calc(var(--header-height-mobile) + 48px) 0 64px;
  }

  .about-hero h1 {
    font-size: 32px;
  }

  .about-story h2 {
    font-size: 30px;
  }

  .about-hero p {
    font-size: 16px;
  }

  .about-hero__actions .btn,
  .about-doctors-section__link {
    width: 100%;
  }

  .about-doctors-section__head {
    display: grid;
    align-items: start;
  }

  .about-doctor-card {
    flex-basis: 86%;
  }
}

.kicker {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Sections */

.section {
  padding: var(--section-edge-space) 0;
}

.container.section > h2,
.section > .container > h2 {
  margin-bottom: var(--section-title-gap);
}

.section--soft {
  background: var(--color-soft);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: var(--section-title-gap);
}

/* Service / catalog cards */

.grid {
  display: grid;
  gap: 18px;
}

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

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

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

.service-card svg {
  stroke: var(--color-accent);
}

.service-card__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-soft);
}

.service-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card h2,
.service-card h3 {
  font-size: 17px;
}

.service-card p {
  color: var(--color-muted);
  font-size: 14px;
}

.services-directory .service-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--color-line);
  text-align: left;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.services-directory .service-card:hover {
  border-color: rgba(197, 166, 146, .62);
  box-shadow: none;
  transform: translateY(-2px);
}

.services-directory .service-card__photo,
.services-directory .service-card__icon {
  width: 100%;
  min-height: 190px;
  border-radius: 0;
  background: var(--color-soft);
}

.services-directory .service-card__photo {
  aspect-ratio: auto;
}

.services-directory .service-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-directory .service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.services-directory .service-card__icon svg {
  stroke: currentColor;
}

.services-directory .service-card__body {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 28px 30px;
}

.services-directory .service-card h2 {
  font-size: 24px;
}

.services-directory .service-card p {
  max-width: 700px;
  font-size: 15px;
}

.services-directory .service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  padding: 0 30px;
  color: var(--color-accent-hover);
  font-family: var(--font-heading);
  white-space: nowrap;
}

.services-directory .service-card__link svg {
  stroke: currentColor;
}

@media (max-width: 1080px) {
  .services-hero {
    padding-top: calc(var(--header-height-mobile) + var(--page-hero-gap));
  }

  .services-hero h1 {
    font-size: 42px;
  }
}

@media (max-width: 820px) {
  .services-hero__inner {
    min-height: 380px;
  }

  .services-directory .service-card {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .services-directory .service-card__link {
    grid-column: 2;
    align-self: start;
    padding: 0 24px 24px;
  }

  .services-directory .service-card__body {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .services-hero__inner {
    min-height: 360px;
  }

  .services-hero__content {
    padding: 54px 0;
  }

  .services-hero h1 {
    font-size: 32px;
  }

  .services-hero p {
    font-size: 16px;
  }

  .services-hero__actions .btn {
    width: 100%;
  }

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

  .services-directory .service-card__photo,
  .services-directory .service-card__icon {
    min-height: 220px;
  }

  .services-directory .service-card__link {
    grid-column: auto;
    padding: 0 22px 22px;
  }

  .services-directory .service-card__body {
    padding: 22px;
  }
}

/* Doctor cards */

.doctor-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

.doctor-card__photo {
  aspect-ratio: 4 / 5;
  background: var(--color-soft);
}

.doctor-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-card__body {
  padding: 18px 20px;
}

.doctor-card__body p {
  color: var(--color-accent);
  font-size: 14px;
}

.doctor-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--color-accent);
}

.doctor-card__placeholder svg {
  stroke: currentColor;
}

/* Doctors page */

.doctors-page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + var(--page-hero-gap)) 0 var(--section-edge-space);
  background:
    linear-gradient(135deg, var(--color-paper) 0%, var(--color-soft) 58%, rgba(197, 166, 146, .22) 100%);
}

.doctors-page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  align-items: center;
  min-height: 360px;
  padding-top: 56px;
}

.doctors-page-hero__content {
  max-width: 760px;
}

.doctors-page-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.doctors-page-hero p {
  max-width: 640px;
  margin-top: 18px;
  color: var(--color-muted);
  font-size: 18px;
}

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

.doctors-directory__head {
  align-items: flex-end;
}

.doctors-directory__head p {
  max-width: 420px;
  margin: 0;
  color: var(--color-muted);
}

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

.doctors-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  border: 1px solid var(--color-line-soft);
  background: var(--color-paper);
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.doctors-card:hover {
  border-color: var(--color-line);
  box-shadow: none;
  transform: translateY(-3px);
}

.doctors-card .doctor-card__photo {
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--color-soft) 0%, var(--color-soft-2) 100%);
}

.doctors-card .doctor-card__photo img {
  object-position: center top;
  transition: transform .35s ease;
}

.doctors-card:hover .doctor-card__photo img {
  transform: scale(1.035);
}

.doctors-card__body {
  display: grid;
  flex: 1;
  gap: 10px;
  align-content: start;
  padding: 22px;
}

.doctors-card__body h2 {
  font-size: 21px;
  line-height: 1.22;
}

.doctors-card__meta,
.doctors-card__experience {
  color: var(--color-accent-hover);
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 1.35;
}

.doctors-card .doctors-card__text {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.doctors-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: auto;
  color: var(--color-muted);
  font-family: var(--font-heading);
  font-size: 14px;
  transition: color .2s ease;
}

.doctors-card__link svg {
  stroke: currentColor;
}

.doctors-card:hover .doctors-card__link {
  color: var(--color-accent-hover);
}

@media (max-width: 1100px) {
  .doctors-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .doctors-page-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
  }

  .doctors-directory__head {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .doctors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 560px) {
  .doctors-page-hero {
    padding: calc(var(--header-height-mobile) + var(--page-hero-gap)) 0 var(--section-space-mobile);
  }

  .doctors-page-hero__inner {
    padding-top: 40px;
  }

  .doctors-page-hero p {
    font-size: 16px;
  }

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

  .doctors-card .doctor-card__photo {
    aspect-ratio: 4 / 3;
  }
}

.related-doctors-section {
  background: transparent;
}

.related-doctors-section__head {
  margin-bottom: var(--section-title-gap);
}

.related-doctors-section h2 {
  font-size: 34px;
}

.related-doctors-list {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-color: rgba(197, 166, 146, .5) transparent;
  -webkit-overflow-scrolling: touch;
}

.related-doctors-list::-webkit-scrollbar {
  height: 6px;
}

.related-doctors-list::-webkit-scrollbar-track {
  background: transparent;
}

.related-doctors-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(197, 166, 146, .5);
}

.related-doctors-card {
  display: block;
  flex: 0 0 calc((100% - 54px) / 4);
  min-width: 0;
  scroll-snap-align: start;
  border: 1px solid rgba(197, 166, 146, .28);
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.related-doctors-card:hover {
  border-color: rgba(197, 166, 146, .64);
  box-shadow: none;
  transform: translateY(-2px);
}

.related-doctors-card__photo {
  aspect-ratio: 4 / 5;
}

.related-doctors-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--color-accent);
}

.related-doctors-card__placeholder svg {
  stroke: currentColor;
}

.related-doctors-card__body {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 28px;
}

.related-doctors-card__body h3 {
  font-size: 22px;
  line-height: 1.22;
}

.related-doctors-card__body p {
  color: var(--color-accent-hover);
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 1.45;
}

.related-doctors-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 6px;
  color: var(--color-muted);
  font-family: var(--font-heading);
  font-size: 14px;
  transition: color .2s ease;
}

.related-doctors-card__link svg {
  stroke: currentColor;
}

.related-doctors-card:hover .related-doctors-card__link {
  color: var(--color-accent-hover);
}

@media (max-width: 1100px) {
  .related-doctors-card {
    flex-basis: calc((100% - 36px) / 3);
  }
}

@media (max-width: 820px) {
  .related-doctors-card {
    flex-basis: calc((100% - 18px) / 2);
  }
}

@media (max-width: 560px) {
  .related-doctors-section h2 {
    font-size: 28px;
  }

  .related-doctors-list {
    margin-right: calc(var(--page-gutter) * -1);
    padding-right: 0;
  }

  .related-doctors-card {
    flex-basis: 86%;
  }

  .related-doctors-card__photo {
    aspect-ratio: 4 / 3;
  }

  .related-doctors-card__body {
    padding: 22px;
  }
}

/* Review cards */

.review-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-white);
}

.review-card__stars {
  color: var(--color-accent);
  margin-bottom: 10px;
}

.review-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-heading);
}

.review-card__footer .source {
  color: var(--color-muted);
  font-size: 13px;
}

/* Reviews page */

.reviews-page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + var(--page-hero-gap)) 0 var(--section-edge-space);
  background:
    linear-gradient(135deg, var(--color-paper) 0%, var(--color-soft) 62%, rgba(197, 166, 146, .2) 100%);
}

.reviews-page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  align-items: center;
  min-height: 340px;
  padding-top: 56px;
}

.reviews-page-hero__content {
  max-width: 760px;
}

.reviews-page-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.reviews-page-hero p {
  max-width: 620px;
  margin-top: 18px;
  color: var(--color-muted);
  font-size: 18px;
}

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

.reviews-section__head p {
  margin: 0;
}

.reviews-google-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent-hover);
  font-family: var(--font-heading);
  font-size: 15px;
  transition: color .2s ease;
}

.reviews-google-link svg {
  stroke: currentColor;
}

.reviews-google-link:hover {
  color: var(--color-ink);
}

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

.review-card--page {
  min-height: 260px;
  border-color: var(--color-line-soft);
  background: var(--color-paper);
  box-shadow: none;
}

.review-card--page:hover {
  border-color: var(--color-line);
}

.review-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.review-card--page .review-card__stars {
  display: inline-flex;
  gap: 2px;
  margin: 0;
  color: rgba(197, 166, 146, .28);
  font-size: 16px;
  letter-spacing: 0;
}

.review-card--page .review-card__stars .is-filled {
  color: var(--color-accent-hover);
}

.review-card__source {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--color-line-soft);
  border-radius: 999px;
  color: var(--color-muted);
  font-family: var(--font-heading);
  font-size: 12px;
  line-height: 1;
}

.review-card__text {
  color: var(--color-text);
  line-height: 1.65;
}

.review-card--page .review-card__footer {
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--color-line-soft);
  padding-top: 18px;
}

.review-card--page .review-card__footer a {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--color-muted);
  transition: color .2s ease;
}

.review-card--page .review-card__footer a svg {
  stroke: currentColor;
}

.review-card--page .review-card__footer a:hover {
  color: var(--color-accent-hover);
}

@media (max-width: 900px) {
  .reviews-page-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
  }

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

@media (max-width: 560px) {
  .reviews-page-hero {
    padding: calc(var(--header-height-mobile) + var(--page-hero-gap)) 0 var(--section-space-mobile);
  }

  .reviews-page-hero__inner {
    padding-top: 40px;
  }

  .reviews-page-hero p {
    font-size: 16px;
  }

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

/* Contacts */

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 40px;
  padding: 48px 0 var(--section-space-mobile);
}

.info-block {
  display: grid;
  gap: 24px;
  align-content: start;
}

.info-item {
  display: flex;
  gap: 14px;
}

.info-item svg {
  stroke: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-item strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-heading);
  color: var(--color-ink);
}

.info-item p {
  color: var(--color-muted);
}

.social-links {
  display: flex;
  gap: 14px;
  font-size: 20px;
}

.social-links a {
  color: var(--color-muted);
  transition: color .2s ease;
}

.social-links a:hover {
  color: var(--color-accent-hover);
}

.map {
  width: 100%;
  height: 260px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
}

/* Contacts page */

.contacts-page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + var(--page-hero-gap)) 0 var(--section-edge-space);
  background:
    linear-gradient(135deg, var(--color-paper) 0%, var(--color-soft) 62%, rgba(197, 166, 146, .2) 100%);
}

.contacts-page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  align-items: center;
  min-height: 340px;
  padding-top: 56px;
}

.contacts-page-hero__content {
  max-width: 760px;
}

.contacts-page-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.contacts-page-hero p {
  max-width: 620px;
  margin-top: 18px;
  color: var(--color-muted);
  font-size: 18px;
}

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

.contacts-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
  gap: 48px;
  align-items: start;
}

.contacts-panel {
  display: grid;
  gap: 32px;
}

.contacts-panel__head {
  max-width: 620px;
}

.contacts-panel__head h2 {
  font-size: 34px;
}

.contacts-panel__head p {
  margin-top: 14px;
  color: var(--color-muted);
}

.contacts-info-list {
  display: grid;
  border-top: 1px solid var(--color-line);
}

.contacts-info-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-line-soft);
}

.contacts-info-row__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(197, 166, 146, .42);
  border-radius: 50%;
  background: transparent;
  color: var(--color-accent-hover);
  box-shadow: none;
  transition: border-color .2s ease, color .2s ease;
}

.contacts-info-row__icon svg {
  stroke: currentColor;
}

.contacts-info-row:hover .contacts-info-row__icon {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.contacts-info-row strong {
  display: block;
  margin-bottom: 6px;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-weight: 500;
}

.contacts-info-row p {
  margin: 0;
  color: var(--color-muted);
}

.contacts-info-row p + p {
  margin-top: 4px;
}

.contacts-info-row a {
  transition: color .2s ease;
}

.contacts-info-row a:hover {
  color: var(--color-accent-hover);
}

.contacts-social-links {
  margin-top: 10px;
}

.contacts-map-wrap {
  overflow: hidden;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-card);
  background: var(--color-soft);
}

.contacts-map {
  display: block;
  width: 100%;
  height: min(48vw, 520px);
  min-height: 360px;
  border: 0;
  filter: saturate(.88) contrast(.96);
}

@media (max-width: 980px) {
  .contacts-page-hero__inner,
  .contacts-page-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 560px) {
  .contacts-page-hero {
    padding: calc(var(--header-height-mobile) + var(--page-hero-gap)) 0 var(--section-space-mobile);
  }

  .contacts-page-hero__inner {
    padding-top: 40px;
  }

  .contacts-page-hero p {
    font-size: 16px;
  }

  .contacts-panel__head h2 {
    font-size: 28px;
  }

  .contacts-info-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
  }

  .contacts-info-row__icon {
    width: 38px;
    height: 38px;
  }

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

/* Privacy page */

.privacy-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + var(--page-hero-gap)) 0 var(--section-edge-space);
  background:
    linear-gradient(135deg, var(--color-paper) 0%, var(--color-soft) 62%, rgba(197, 166, 146, .18) 100%);
}

.privacy-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 820px);
  align-items: center;
  min-height: 340px;
  padding-top: 56px;
}

.privacy-hero__content {
  max-width: 820px;
}

.privacy-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.privacy-hero p {
  max-width: 640px;
  margin-top: 18px;
  color: var(--color-muted);
  font-size: 18px;
}

.privacy-content {
  background: var(--color-white);
}

.privacy-content__layout {
  display: grid;
  grid-template-columns: minmax(0, 820px);
  align-items: start;
}

.privacy-document {
  max-width: 820px;
}

.privacy-document :where(h2, h3) {
  margin-top: 40px;
}

.privacy-document :where(h2, h3):first-child {
  margin-top: 0;
}

.privacy-document h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.privacy-document h3 {
  font-size: 22px;
}

.privacy-document :where(p, ul, ol) {
  margin-top: 16px;
}

.privacy-document :where(ul, ol) {
  padding-left: 22px;
}

.privacy-document li + li {
  margin-top: 8px;
}

.privacy-document .flash {
  margin: 0;
}

@media (max-width: 980px) {
  .privacy-hero__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .privacy-hero {
    padding: calc(var(--header-height-mobile) + var(--page-hero-gap)) 0 var(--section-space-mobile);
  }

  .privacy-hero__inner {
    min-height: 0;
    padding-top: 40px;
  }

  .privacy-hero p {
    font-size: 16px;
  }

}

/* Forms */

.contact-form {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-card);
  background: var(--color-paper);
  align-content: start;
}

.contact-form h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.contact-form__head {
  display: grid;
  gap: 10px;
  margin-bottom: 4px;
}

.contact-form__head h2 {
  margin: 0;
  font-size: 28px;
}

.contact-form__head p {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.55;
}

.contact-form--page {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  gap: 16px;
  padding: 32px;
  border-color: transparent;
  background: var(--color-soft);
  box-shadow: none;
}

.contact-form--page .consent span {
  white-space: normal;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-ink);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-white);
  color: var(--color-text);
  font: 400 16px/1.3 var(--font-body);
  padding: 11px 13px;
}

.contact-form textarea {
  min-height: 96px;
  resize: vertical;
}

.contact-form .iti {
  display: block;
  width: 100%;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(197, 166, 146, .18);
}

@media (max-width: 980px) {
  .contact-form--page {
    position: static;
  }
}

@media (max-width: 560px) {
  .contact-form__head h2 {
    font-size: 24px;
  }

  .contact-form--page {
    padding: 24px;
  }
}

.contact-form .consent {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-muted);
  cursor: pointer;
}

.consent span {
  white-space: nowrap;
}

.consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: 5px;
  background-color: var(--color-white);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.consent input[type="checkbox"]:hover {
  border-color: var(--color-accent);
}

.consent input[type="checkbox"]:checked {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3.5 8.5 6.5 11.5 12.5 4.5'/%3E%3C/svg%3E");
}

.consent input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(197, 166, 146, .3);
}

.field-error {
  color: #b3261e;
  font-size: 13px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.flash {
  padding: 14px 16px;
  border-radius: var(--radius-card);
  margin-bottom: 20px;
  font-size: 14px;
}

.flash--notice {
  background: rgba(197, 166, 146, .16);
  color: var(--color-accent-hover);
}

.flash--error {
  background: rgba(179, 38, 30, .1);
  color: #b3261e;
}

/* Booking modal */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(28, 26, 24, .55);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s ease;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.95) translateY(8px);
  transition: transform .3s ease;
}

.modal-overlay.is-open .modal {
  transform: scale(1) translateY(0);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: flex;
  padding: 6px;
  border: 0;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-ink);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.modal__close svg {
  stroke: currentColor;
  display: block;
}

.modal__notice {
  padding: 12px 14px;
  border-radius: var(--radius-card);
  font-size: 14px;
}

.modal__notice--success {
  background: rgba(197, 166, 146, .16);
  color: var(--color-accent-hover);
}

.modal__notice--error {
  background: rgba(179, 38, 30, .1);
  color: #b3261e;
}

/* Prose (rich text bodies) */

.prose {
  max-width: 760px;
  line-height: 1.7;
}

.prose img {
  border-radius: var(--radius-card);
}

/* Service detail extras */

.price-section {
  position: relative;
  background: var(--color-white);
}

.price-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: var(--section-title-gap);
}

.price-section h2 {
  font-size: 34px;
}

.price-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

.price-list__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, auto);
  align-items: center;
  gap: 24px;
  min-height: 92px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-line-soft);
  transition: background .2s ease;
}

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

.price-list__row:hover {
  background: var(--color-soft);
}

.price-list__info {
  min-width: 0;
}

.price-list__info strong {
  font-family: var(--font-heading);
  color: var(--color-ink);
  font-size: 18px;
  font-weight: 500;
}

.price-list__info p {
  max-width: 720px;
  margin-top: 6px;
  color: var(--color-muted);
  font-size: 14px;
}

.price-list__price {
  justify-self: end;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(197, 166, 146, .14);
  color: var(--color-accent-hover);
  font-family: var(--font-heading);
  font-size: 16px;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .price-section h2 {
    font-size: 28px;
  }

  .price-list__row {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
    min-height: 0;
    padding: 20px;
  }

  .price-list__price {
    justify-self: start;
    margin-top: 4px;
  }
}

.case-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.case-card__photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-soft);
}

.case-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card h3 {
  font-size: 16px;
}

.service-cases-section {
  background: var(--color-soft);
}

.service-cases-section__head {
  margin-bottom: var(--section-title-gap);
}

.service-cases-section h2 {
  font-size: 34px;
}

.service-cases-list {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  margin: -12px -6px -22px;
  padding: 12px 6px 28px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-color: rgba(197, 166, 146, .5) transparent;
  -webkit-overflow-scrolling: touch;
}

.service-cases-list::-webkit-scrollbar {
  height: 6px;
}

.service-cases-list::-webkit-scrollbar-track {
  background: transparent;
}

.service-cases-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(197, 166, 146, .5);
}

.service-case-card {
  appearance: none;
  position: relative;
  width: auto;
  flex: 0 0 calc((100% - 36px) / 3);
  min-width: 0;
  scroll-snap-align: start;
  padding: 0;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-white);
  color: inherit;
  font: inherit;
  text-align: left;
  box-shadow: 0 14px 42px -34px rgba(28, 26, 24, .32);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.service-case-card:hover {
  border-color: rgba(197, 166, 146, .52);
  box-shadow: none;
  transform: translateY(-1px);
}

.service-case-card:focus-visible {
  outline: 2px solid rgba(179, 139, 113, .56);
  outline-offset: 3px;
}

.service-case-card__photo {
  border-radius: 0;
}

.service-case-card__body {
  display: grid;
  gap: 8px;
  padding: 20px 22px 22px;
}

.service-case-card__number {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 13px;
}

.service-case-card h3 {
  font-size: 18px;
  line-height: 1.28;
}

.service-case-card__open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--color-accent-hover);
  font-family: var(--font-heading);
  font-size: 14px;
}

.service-case-card__open svg {
  display: block;
  stroke: currentColor;
}

.case-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(28, 26, 24, .58);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}

.case-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s ease;
}

.case-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  width: min(1040px, 100%);
  max-height: 88vh;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: 0 28px 70px rgba(28, 26, 24, .22);
  transform: scale(.96) translateY(10px);
  transition: transform .3s ease;
}

.case-modal-overlay.is-open .case-modal {
  transform: scale(1) translateY(0);
}

.case-modal--no-image {
  grid-template-columns: 1fr;
  max-width: 680px;
}

.case-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  padding: 7px;
  border: 0;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-ink);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.case-modal__close svg {
  display: block;
  stroke: currentColor;
}

.case-modal__gallery {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--color-soft);
}

.case-modal__image {
  height: 100%;
  min-height: inherit;
}

.case-modal__image img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.case-modal__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  filter: drop-shadow(0 4px 10px rgba(28, 26, 24, .42));
  transform: translateY(-50%);
  transition: color .2s ease, opacity .2s ease, transform .2s ease;
}

.case-modal__nav:hover {
  color: var(--color-accent);
  transform: translateY(-50%) scale(1.03);
}

.case-modal__nav svg {
  display: block;
  stroke: currentColor;
}

.case-modal__nav--prev {
  left: 18px;
}

.case-modal__nav--next {
  right: 18px;
}

.case-modal__counter {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 13px;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(28, 26, 24, .58);
}

.case-modal__dots {
  position: absolute;
  right: 18px;
  bottom: 17px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
}

.case-modal__dot {
  display: block;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 2px 6px rgba(28, 26, 24, .4));
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.case-modal__dot.is-active {
  background: var(--color-white);
  border-color: var(--color-white);
  transform: scale(1.25);
}

.case-modal__nav[hidden],
.case-modal__counter[hidden],
.case-modal__dots[hidden] {
  display: none;
}

.case-modal__body {
  overflow-y: auto;
  padding: 52px 48px;
}

.case-modal__label {
  display: block;
  margin-bottom: 16px;
  color: var(--color-accent-hover);
  font-family: var(--font-heading);
  font-size: 14px;
}

.case-modal h3 {
  font-size: clamp(28px, 3vw, 42px);
}

.case-modal__description {
  margin-top: 22px;
  color: var(--color-muted);
}

.case-modal__description p + p {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .service-case-card {
    flex-basis: calc((100% - 18px) / 2);
  }

  .case-modal {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .case-modal__gallery {
    min-height: 320px;
  }

  .case-modal__body {
    padding: 40px;
  }
}

@media (max-width: 560px) {
  .service-cases-section h2 {
    font-size: 28px;
  }

  .service-cases-list {
    margin: -12px calc(var(--page-gutter) * -1) -22px -6px;
    padding: 12px 0 28px 6px;
  }

  .service-case-card {
    flex-basis: 86%;
  }

  .case-modal-overlay {
    padding: 16px;
  }

  .case-modal__gallery {
    min-height: 260px;
  }

  .case-modal__nav {
    width: 38px;
    height: 38px;
  }

  .case-modal__nav--prev {
    left: 12px;
  }

  .case-modal__nav--next {
    right: 12px;
  }

  .case-modal__counter {
    left: 12px;
    bottom: 12px;
  }

  .case-modal__dots {
    right: 12px;
    bottom: 11px;
  }

  .case-modal__body {
    padding: 34px 24px 28px;
  }
}

.stages ol {
  padding-left: 20px;
  display: grid;
  gap: 14px;
}

.stages strong {
  font-family: var(--font-heading);
  color: var(--color-ink);
}

.stages p {
  margin-top: 4px;
  color: var(--color-muted);
}

.faq-section {
  background: var(--color-soft);
}

.faq-section__inner {
  display: grid;
  gap: var(--section-title-gap);
}

.faq-section__head {
  max-width: 760px;
}

.faq-section h2 {
  font-size: 34px;
}

.faq-list {
  display: grid;
  border-top: 1px solid var(--color-line);
}

.faq-item {
  border-bottom: 1px solid var(--color-line);
}

.faq-item[open] {
  border-bottom-color: rgba(197, 166, 146, .58);
}

.faq-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 18px;
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-ink);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-accent-hover);
  transition: transform .2s ease, color .2s ease;
}

.faq-item__icon svg {
  stroke: currentColor;
}

.faq-item[open] .faq-item__icon {
  color: var(--color-accent);
  transform: rotate(45deg);
}

.faq-item__answer {
  padding: 0 0 24px;
}

.faq-item__answer p {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-card);
  background: rgba(197, 166, 146, .12);
  color: var(--color-muted);
}

@media (max-width: 560px) {
  .faq-section h2 {
    font-size: 28px;
  }

  .faq-item summary {
    grid-template-columns: minmax(0, 1fr) 32px;
    gap: 14px;
    padding: 20px 0;
    font-size: 16px;
  }

  .faq-item__icon {
    width: 32px;
    height: 32px;
  }

  .faq-item__answer {
    padding: 0 0 20px;
  }
}

/* Doctor detail */

.doctor-resume-hero {
  padding: calc(var(--header-height) + 32px) 0 var(--section-space);
  background:
    linear-gradient(135deg, var(--color-paper) 0%, var(--color-soft) 64%, rgba(197, 166, 146, .18) 100%);
}

.doctor-resume-hero__inner {
  display: grid;
  gap: 32px;
}

.doctor-resume-back,
.doctor-resume-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--color-muted);
  font-family: var(--font-heading);
  font-size: 15px;
  line-height: 1.2;
  transition: color .2s ease;
}

.doctor-resume-back svg,
.doctor-resume-text-link svg {
  stroke: currentColor;
}

.doctor-resume-back:hover,
.doctor-resume-text-link:hover {
  color: var(--color-accent-hover);
}

.doctor-resume-hero__grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.doctor-resume-photo {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-card);
  background: var(--color-soft);
}

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

.doctor-resume-photo__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--color-accent);
}

.doctor-resume-photo__placeholder svg {
  stroke: currentColor;
}

.doctor-resume-hero__content {
  max-width: 780px;
}

.doctor-resume-specialty {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--color-accent-hover);
  font-family: var(--font-heading);
  font-size: 15px;
}

.doctor-resume-hero h1 {
  font-size: clamp(38px, 5vw, 68px);
}

.doctor-resume-hero__content > p {
  max-width: 640px;
  margin-top: 18px;
  color: var(--color-muted);
  font-size: 18px;
}

.doctor-resume-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 32px;
}

.doctor-resume-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 760px;
  margin-top: 42px;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line-soft);
}

.doctor-resume-fact {
  display: grid;
  gap: 8px;
  padding: 22px 24px 22px 0;
}

.doctor-resume-fact + .doctor-resume-fact {
  padding-left: 24px;
  border-left: 1px solid var(--color-line-soft);
}

.doctor-resume-fact span {
  color: var(--color-muted);
  font-family: var(--font-heading);
  font-size: 13px;
}

.doctor-resume-fact strong {
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}

.doctor-resume-main {
  background: var(--color-white);
}

.doctor-resume-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 72px;
  align-items: start;
}

.doctor-resume-content {
  display: grid;
  gap: var(--section-title-gap);
}

.doctor-resume-section {
  display: grid;
  gap: 28px;
  padding-top: 48px;
  border-top: 1px solid var(--color-line);
}

.doctor-resume-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.doctor-resume-section__head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
}

.doctor-resume-section__head span {
  color: var(--color-accent-hover);
  font-family: var(--font-heading);
  font-size: 14px;
}

.doctor-resume-section__head h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.doctor-resume-prose {
  max-width: 760px;
  margin-left: 72px;
  color: var(--color-muted);
}

.doctor-resume-services {
  display: grid;
  gap: 12px;
  margin-left: 72px;
}

.doctor-resume-service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-line-soft);
  color: var(--color-ink);
  font-family: var(--font-heading);
  transition: color .2s ease, border-color .2s ease;
}

.doctor-resume-service:first-child {
  border-top: 1px solid var(--color-line-soft);
}

.doctor-resume-service svg {
  flex-shrink: 0;
  stroke: currentColor;
}

.doctor-resume-service:hover {
  border-color: var(--color-line);
  color: var(--color-accent-hover);
}

.doctor-resume-timeline,
.doctor-resume-schedule {
  display: grid;
  margin-left: 72px;
  border-top: 1px solid var(--color-line-soft);
}

.doctor-resume-timeline__item,
.doctor-resume-schedule > div {
  display: grid;
  grid-template-columns: minmax(90px, .24fr) minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-line-soft);
}

.doctor-resume-timeline__item span,
.doctor-resume-schedule span {
  color: var(--color-muted);
  font-family: var(--font-heading);
  font-size: 14px;
}

.doctor-resume-timeline__item strong,
.doctor-resume-schedule strong {
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
}

.doctor-resume-certificates {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-left: 72px;
}

.doctor-resume-certificates a {
  overflow: hidden;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-card);
  background: var(--color-soft);
}

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

.doctor-resume-aside {
  position: sticky;
  top: calc(var(--header-height) + 28px);
}

.doctor-resume-appointment {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-card);
  background: var(--color-soft);
}

.doctor-resume-appointment__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(197, 166, 146, .18);
  color: var(--color-accent-hover);
}

.doctor-resume-appointment__icon svg {
  stroke: currentColor;
}

.doctor-resume-appointment h2 {
  font-size: 26px;
}

.doctor-resume-appointment p {
  color: var(--color-muted);
}

.doctor-resume-appointment .btn {
  width: 100%;
  margin-top: 8px;
}

@media (max-width: 1040px) {
  .doctor-resume-hero__grid,
  .doctor-resume-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .doctor-resume-photo {
    width: min(360px, 100%);
  }

  .doctor-resume-aside {
    position: static;
  }
}

@media (max-width: 700px) {
  .doctor-resume-hero {
    padding: calc(var(--header-height-mobile) + 30px) 0 var(--section-space-mobile);
  }

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

  .doctor-resume-fact,
  .doctor-resume-fact + .doctor-resume-fact {
    padding: 18px 0;
    border-left: 0;
    border-top: 1px solid var(--color-line-soft);
  }

  .doctor-resume-fact:first-child {
    border-top: 0;
  }

  .doctor-resume-section__head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .doctor-resume-prose,
  .doctor-resume-services,
  .doctor-resume-timeline,
  .doctor-resume-schedule,
  .doctor-resume-certificates {
    margin-left: 0;
  }

  .doctor-resume-timeline__item,
  .doctor-resume-schedule > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

  .doctor-resume-hero__actions .btn {
    width: 100%;
  }
}

/* 404 */

.not-found {
  padding: 120px 0;
  text-align: center;
}

.not-found h1 {
  font-size: 72px;
  color: var(--color-accent);
}

.not-found p {
  margin-top: 12px;
  color: var(--color-muted);
  font-size: 17px;
}

.empty-note {
  padding: 32px 0;
  color: var(--color-muted);
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--color-muted);
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

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

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

  .hero-photo {
    max-width: 260px;
  }

  .hero-grid__text {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .grid--4,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .hero__logo-mark {
    width: 44px;
  }

  .hero h1 {
    font-size: clamp(30px, 5vw, 56px);
  }

  .hero p {
    font-size: 16px;
  }

  .consent {
    font-size: 11.5px;
  }
}

.about-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.about-gallery__item {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.about-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.about-gallery__item:hover img {
  transform: scale(1.05);
}

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

@media (max-width: 560px) {
  .about-gallery__grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}
