@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f7f3fb;
  --surface: #ffffff;
  --ink: #2c2150;
  --ink-soft: #4a3d68;
  --muted: #8a7ea3;
  --line: #ece4f6;
  --brand: #7b4fc4;
  --brand-dark: #6439ab;
  --brand-mid: #8b63d1;
  --brand-soft: #f4eefb;
  --brand-softer: #f8f3fc;
  --table-head: #cbb6ea;
  --table-row: #efe7f8;
  --shadow: 0 14px 40px rgba(90, 50, 150, 0.08);
  --shadow-card: 0 10px 28px rgba(80, 40, 140, 0.07);
  --radius: 22px;
  --header-h: 78px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: min(1240px, calc(100% - 2.4rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.page-waves {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.deco-svg { display: block; width: 100%; height: 100%; }
.deco-fixed {
  /* absolute inside .page-waves — not fixed, otherwise lines paint over cards */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
}

/* Content above decorative lines */
.main,
main.main,
main.page,
.site-footer,
#footer.site-footer {
  position: relative;
  z-index: 1;
}
.news-card,
.problem-card,
.service-hero,
.uvt-section,
.faq-page,
.service-cta,
.k1-licenses,
.k1-cta,
.price-pane {
  position: relative;
  z-index: 1;
  isolation: isolate;
}
.page-waves .deco-svg {
  opacity: 0.85;
}


/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: visible;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(122, 92, 184, 0.08);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.55rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  flex-shrink: 0;
}
.brand:hover { color: inherit; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  font-size: 0.68rem;
  letter-spacing: 0.01em;
}
.brand-text strong {
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  font-size: 0.72rem;
}
.brand-text span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 500;
}
.brand-num {
  font-family: var(--font);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-left: 0.15rem;
}

.nav-desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 0.85rem;
  flex: 1;
  flex-wrap: wrap;
}
.nav-desktop a {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-item > a {
  cursor: pointer;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 430px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0.55rem 0.35rem 0.6rem;
  background: #fff;
  border: 1px solid #efe8f6;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(70, 32, 120, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  z-index: 80;
}
.nav-dropdown-about {
  min-width: 268px;
  grid-template-columns: 1fr;
  padding: 0.35rem 0;
}
.nav-desktop .nav-dropdown a.is-active,
.home-header .nav-desktop .nav-dropdown a.is-active {
  background: #f7f2fc;
  color: var(--brand-dark);
}
.nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-desktop .nav-dropdown a,
.nav-desktop .nav-dropdown span,
.home-header .nav-desktop .nav-dropdown a,
.home-header .nav-desktop .nav-dropdown span {
  display: block;
  width: 100%;
  padding: 0.46rem 1.1rem;
  margin: 0;
  border-bottom: 0 !important;
  border-radius: 0;
  color: #4a3d63;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.3;
}
.nav-desktop .nav-dropdown span,
.home-header .nav-desktop .nav-dropdown span {
  color: #8d82a3;
  cursor: default;
}
.nav-desktop .nav-dropdown a,
.home-header .nav-desktop .nav-dropdown a {
  color: var(--brand);
}
.nav-desktop .nav-dropdown a:hover,
.home-header .nav-desktop .nav-dropdown a:hover {
  background: #f7f2fc;
  color: var(--brand-dark);
  border-bottom-color: transparent;
}
.mobile-nav .nav-item {
  display: block;
}
.mobile-nav .nav-dropdown {
  position: static;
  min-width: 0;
  margin: 0.15rem 0 0.35rem 0.7rem;
  padding: 0.2rem 0;
  border-radius: 14px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  display: none;
  grid-template-columns: 1fr;
  box-shadow: none;
}
.mobile-nav .nav-item.is-open .nav-dropdown {
  display: block;
}
.mobile-nav .nav-dropdown a,
.mobile-nav .nav-dropdown span {
  padding: 0.42rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 650;
  color: #5b4d73;
}
.mobile-nav .nav-dropdown a { color: var(--brand); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.8px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.mobile-nav {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0.35rem 0 1rem;
  max-height: min(78vh, 680px);
  overflow-y: auto;
  box-shadow: 0 18px 32px rgba(80, 40, 140, 0.08);
}
.mobile-nav.is-open { display: block; }
body.nav-open { overflow: hidden; }
.mobile-nav a {
  display: block;
  padding: 0.7rem 1.15rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
}
.mobile-nav a.is-active { color: var(--brand); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s, color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); color: inherit; }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(123, 79, 196, 0.28);
}
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-light {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 8px 18px rgba(40, 16, 80, 0.12);
}
.btn-light:hover { background: #f7f2fd; color: var(--brand-dark); }
.btn-outline {
  background: #fff;
  color: var(--brand);
  border: 1px solid #d9c9f0;
}
.btn-outline:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-ghost {
  background: #fff;
  color: var(--ink-soft);
  border: 1px solid #e4daf4;
  padding: 0.62rem 1.05rem;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.btn-sm { padding: 0.58rem 1.05rem; font-size: 0.78rem; }
.btn-md { padding: 0.78rem 1.35rem; font-size: 0.9rem; }
.btn-lg { padding: 0.92rem 1.6rem; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn-arrow { font-size: 1.05em; line-height: 1; }

.header-actions .btn-primary {
  padding: 0.62rem 1.15rem;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Home first screen */
.home-header {
  background: #fff;
  border-bottom: 0;
  backdrop-filter: none;
}
.home-header .brand-text strong em {
  font-style: normal;
  color: var(--brand);
}
.topbar {
  border-bottom: 1px solid #f1ebf7;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 82px;
  padding-block: 0.5rem;
}
.branches {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  gap: 0;
}
.branch {
  display: flex;
  align-items: flex-start;
  gap: 0.38rem;
  color: inherit;
  padding: 0.1rem 0.75rem;
  border-left: 1px solid #efe8f6;
  min-width: 0;
  flex: 1;
}
.branch:hover { color: inherit; }
.branch-pin {
  color: var(--brand);
  width: 13px;
  height: 13px;
  margin-top: 0.16rem;
  flex-shrink: 0;
}
.branch-pin svg { display: block; width: 13px; height: 13px; }
.branch strong {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.2;
}
.branch b {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}
.branch small {
  display: block;
  margin-top: 0.06rem;
  font-size: 0.66rem;
  color: var(--muted);
  font-weight: 500;
}
.branch-current {
  flex: 1.2;
  background: #f7f2fc;
  border-left: 0;
  border-radius: 14px;
  padding: 0.35rem 0.75rem;
}
.branch-switch {
  flex: 0.85;
  align-items: center;
}
.branch-switch:hover { color: inherit; }
.branch-go {
  display: inline-block;
  margin-top: 0.18rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.01em;
}
.branch-switch:hover .branch-go { color: var(--brand-dark); }
.topbar .btn-primary {
  padding: 0.72rem 1.35rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 14px;
  box-shadow: none;
  flex-shrink: 0;
}
.nav-row {
  border-bottom: 1px solid #f1ebf7;
}
.nav-row-inner {
  display: flex;
  align-items: center;
  min-height: 50px;
  gap: 1rem;
}
.home-header .nav-desktop {
  justify-content: flex-start;
  gap: 1.15rem;
}
.home-header .nav-desktop a {
  padding: 0.85rem 0 0.7rem;
}
.nav-extra {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.nav-extra a.nav-contacts {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-right: 1px solid #ece4f4;
  padding-right: 1.05rem;
}
.nav-extra a.nav-contacts.is-active { color: var(--brand); }
.nav-search {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  border-radius: 50%;
}
.nav-search:hover { color: var(--brand); background: var(--brand-soft); }
.nav-search svg { width: 18px; height: 18px; }

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 42% 62% at 74% 70%, rgba(255,255,255,0.5) 0%, transparent 72%);
  padding: 1.35rem 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(380px, 1.16fr);
  gap: 0;
  align-items: end;
  min-height: 478px;
}
.hero-copy {
  padding: 2.2rem 0 3.6rem;
  z-index: 3;
}
.hero-kicker {
  margin: 0 0 0.85rem;
  color: #9b90b0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font);
  font-size: clamp(2.2rem, 4.4vw, 3.55rem);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.05;
  color: #1f1638;
}
.hero-sub {
  margin: 0 0 0.75rem;
  font-family: var(--font);
  font-size: clamp(1.28rem, 2.15vw, 1.72rem);
  font-weight: 500;
  line-height: 1.22;
  color: #6a5d82;
}
.hero-lead {
  margin: 0 0 1.55rem;
  max-width: 26rem;
  color: #8d82a3;
  font-size: 0.92rem;
  line-height: 1.5;
}
.hero .btn-primary {
  border-radius: 14px;
  padding: 0.88rem 1.45rem;
  box-shadow: none;
  font-weight: 600;
}
.hero-photos {
  position: relative;
  height: 100%;
  min-height: 478px;
  overflow: hidden;
}
.hero-photos img {
  position: absolute;
  bottom: 0;
  max-width: none;
  object-fit: cover;
}
.hero-photos img.hero-doc-a {
  left: 8%;
  z-index: 2;
  height: 100%;
  width: 68%;
  object-position: 70% 8%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 88%, transparent 100%);
}
.hero-aside {
  position: absolute;
  right: 0;
  top: 24%;
  z-index: 3;
  margin: 0;
  max-width: 8.2rem;
  color: var(--brand);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
}
.hero-aside::before {
  content: "";
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--brand);
  margin-bottom: 0.55rem;
}

.partners {
  background: transparent;
  border-top: 1px solid rgba(240, 234, 246, 0.8);
  padding: 1.15rem 0 1.7rem;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
}
.partner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0 1.45rem 0 0;
  min-height: 0;
}
.partner:not(:first-child) {
  border-left: 1px solid #ece4f4;
  padding-left: 1.45rem;
}
.partner-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 76px;
  padding: 0.55rem 1rem;
  background: #ece4f6;
  border: 0;
  border-radius: 16px;
}
.partner-logo {
  display: block;
  height: auto;
  width: auto;
  max-height: 56px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}
.partner-logo-mark {
  max-height: 58px;
}
.partner p {
  margin: 0;
  color: #5c5176;
  font-size: 0.88rem;
  line-height: 1.5;
}

.home-news {
  padding: 1.7rem 0 0.5rem;
  background: transparent;
}
.home-news .kicker {
  color: #9b90b0;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.home-news-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.05rem;
}
.home-news-head h2 {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #1f1638;
}
.news-all {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.92rem;
}
.news-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.news-tile {
  position: relative;
  min-height: 176px;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 0.95rem 1rem;
}
.news-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(30, 16, 50, 0.45) 100%);
  pointer-events: none;
}
.news-tile.pink {
  background: linear-gradient(180deg, #fbeaf3 0%, #f3d5ea 100%);
}
.news-tile.pink::after { display: none; }
.news-tile.teal {
  background: linear-gradient(160deg, #3ec3dc, #2aa9c4);
}
.news-tile.teal::after { display: none; }
.news-tile > * { position: relative; z-index: 1; }
.news-cake {
  position: absolute;
  right: 10px;
  bottom: -6px;
  width: 148px;
  height: 136px;
  z-index: 1;
}
.news-tile.teal {
  align-items: flex-start;
  justify-content: flex-end;
  padding: 3.4rem 1.05rem 0.95rem;
}
.news-date {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
}
.news-tile h3 {
  margin: 0 0 0.15rem auto;
  max-width: 11.5rem;
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: right;
  line-height: 1.2;
}

@media (max-width: 1100px) {
  :root { --header-h: 124px; }
  .topbar-inner {
    flex-wrap: wrap;
    min-height: 64px;
    padding-block: 0.45rem;
    row-gap: 0.35rem;
  }
  .topbar .btn-primary {
    margin-left: auto;
    padding: 0.58rem 0.95rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  .branches {
    display: flex;
    order: 5;
    flex: 1 1 100%;
    border-top: 1px solid #f1ebf7;
    padding-top: 0.4rem;
    margin-top: 0.05rem;
  }
  .branch {
    padding: 0.05rem 0.45rem 0.05rem 0;
    border-left: 0;
  }
  .branch small { display: none; }
  .home-header .nav-row { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-bottom: 1.2rem; }
  .hero-photos { min-height: 320px; }
  .partners-grid,
  .news-row { grid-template-columns: 1fr; }
  .partner {
    padding: 1rem 0 0;
    border-left: 0;
  }
  .partner:not(:first-child) {
    border-left: 0;
    border-top: 1px solid #ece4f4;
    padding-left: 0;
  }
  .partner:first-child { padding-top: 0; }
  .hero-aside { display: none; }
}

.float-consult {
  display: flex;
  justify-content: center;
  margin-top: 0.85rem;
  margin-bottom: 0.15rem;
  position: relative;
  z-index: 2;
}

.kicker {
  margin: 0 0 0.35rem;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, .display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #2a1848;
}

/* Home benefits */
.benefits {
  padding: 2.4rem 0 1.2rem;
}
.benefits-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 2.4rem;
  align-items: center;
}
.benefits h2 {
  margin: 0 0 1.15rem;
  font-size: clamp(2.1rem, 3.4vw, 2.85rem);
  line-height: 1.05;
}

.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.benefit-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.75rem;
  align-items: start;
}
.benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
}
.benefit-icon svg { width: 18px; height: 18px; }
.benefit-list strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}
.benefit-list p {
  margin: 0.12rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.gallery {
  position: relative;
}
.gallery-frame {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.7rem;
  min-height: 390px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  min-height: 0;
}
.gallery-item:first-child { grid-row: 1 / 3; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(40, 20, 80, 0.08);
}
.gallery-nav {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.gallery-nav button {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand);
  box-shadow: 0 6px 16px rgba(60, 30, 110, 0.14);
  cursor: pointer;
  font-size: 1.2rem;
}
.gallery-nav .prev { left: -14px; }
.gallery-nav .next { right: -14px; }
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
}
.gallery-dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0;
  background: #d5c6ea;
  cursor: pointer;
  padding: 0;
}
.gallery-dots button.is-active { background: var(--brand); }

/* Reviews */
.reviews {
  padding: 1rem 0 2.2rem;
}
.home-services {
  padding: 0.6rem 0 4.2rem;
  scroll-margin-top: calc(var(--header-h) + 10px);
}
.home-services .page-title {
  font-weight: 500;
}
.reviews-panel {
  background: linear-gradient(180deg, #f4ecfb 0%, #f7f2fc 100%);
  border: 1px solid #eee4f8;
  border-radius: 28px;
  padding: 1.5rem 1.6rem 1.3rem;
  box-shadow: var(--shadow-card);
}
.reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.reviews-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
}
.review-slider {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  gap: 0.6rem;
  align-items: center;
}
.review-card {
  background: transparent;
  padding: 0.2rem 0.4rem 0.6rem;
}
.review-top {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.55rem;
}
.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #2f9e44;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}
.review-card cite {
  font-style: normal;
  font-weight: 800;
  display: block;
}
.review-meta {
  color: var(--muted);
  font-size: 0.78rem;
}
.stars { color: #f5b400; letter-spacing: 0.08em; font-size: 0.85rem; }
.review-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 46rem;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  font-size: 1.3rem;
}
.rating-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid #eadff6;
}
.rating-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.rating-chip:hover { color: var(--brand); }
.rating-chip .score {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.35rem;
  color: var(--ink);
}
.pin {
  color: #e23b4a;
  display: inline-flex;
  width: 14px;
  height: 14px;
}
.pin svg { width: 14px; height: 14px; display: block; }
.rating-chip small {
  font-weight: 500;
  color: var(--muted);
}

/* Inner pages */
main.page {
  padding: 1.6rem 0 4rem;
}
.breadcrumb {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.breadcrumb a { color: var(--muted); }
.page-title {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.05;
}
.page-lead {
  margin: 0 0 1.6rem;
  color: var(--muted);
  max-width: 38rem;
}
.page-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.page-title-row .page-lead { margin-bottom: 0; }

.title-center { text-align: center; }
.title-center .page-lead { margin-inline: auto; }

.team-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f3e9fb;
  border-radius: 18px;
  padding: 0.85rem 1rem;
  color: var(--ink);
  min-width: 240px;
  box-shadow: none;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.25;
}
.team-chip span { color: var(--brand); font-size: 1.3rem; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.service-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid #f0eaf8;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(80, 40, 140, 0.12);
  color: inherit;
}
.service-card.is-static {
  cursor: default;
  pointer-events: none;
}
.branches[data-filial-view] { display: none; }
html[data-filial="oktpole"] .branches[data-filial-view="oktpole"],
html:not([data-filial="mitino"]):not([data-filial="krasnogorsk"]) .branches[data-filial-view="oktpole"],
html[data-filial="mitino"] .branches[data-filial-view="mitino"],
html[data-filial="krasnogorsk"] .branches[data-filial-view="krasnogorsk"] {
  display: flex;
}
.filial-extra { display: none !important; }
html[data-filial="mitino"] .nav-dropdown span.filial-extra,
html[data-filial="krasnogorsk"] .nav-dropdown span.filial-extra {
  display: block !important;
  color: var(--brand);
}
html[data-filial="mitino"] .service-card.filial-extra,
html[data-filial="krasnogorsk"] .service-card.filial-extra {
  display: flex !important;
}
[data-filial-block] { display: none !important; }
html:not([data-filial="mitino"]) .container[data-filial-block="oktpole"],
html[data-filial="mitino"] .container[data-filial-block="mitino"] {
  display: block !important;
}
html:not([data-filial="mitino"]) .contacts-grid[data-filial-block="oktpole"],
html[data-filial="mitino"] .contacts-grid[data-filial-block="mitino"] {
  display: grid !important;
}
.service-card img {
  width: 100%;
  height: 132px;
  object-fit: cover;
}
.service-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  font-weight: 700;
  font-size: 0.88rem;
}
.mini-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}
.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 0.4rem;
}

.online-cta {
  padding: 0 0 2.4rem;
}
.online-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  background: linear-gradient(135deg, #7b4fc4 0%, #6439ab 100%);
  color: #fff;
  border-radius: 24px;
  padding: 1.35rem 1.7rem;
  box-shadow: 0 16px 36px rgba(100, 57, 171, 0.22);
}
.online-cta h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 700;
}
.online-cta p {
  margin: 0;
  opacity: 0.88;
  font-size: 0.92rem;
}
.online-cta .btn,
.online-cta .btn-light {
  background: #fff;
  color: var(--brand);
}
.online-cta .btn:hover,
.online-cta .btn-light:hover {
  background: #f4edfb;
  color: var(--brand-dark);
}

.home-about,
.home-treat,
.home-licenses,
.home-stars,
.home-clients,
.home-leads {
  padding: 0.4rem 0 2.6rem;
}
.home-about .page-title,
.home-treat .page-title,
.home-clients h2,
.home-licenses h2,
.home-stars h2 {
  margin: 0;
}
.home-clients h2,
.home-licenses h2,
.home-stars h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 600;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.2rem;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #2c2150;
  box-shadow: var(--shadow-card);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.trust-band { padding: 0 0 2.4rem; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.trust-card {
  background: linear-gradient(165deg, #8b63d1 0%, #7b4fc4 55%, #6439ab 100%);
  color: #fff;
  border-radius: 22px;
  padding: 1.4rem 1.3rem 1.25rem;
  min-height: 100%;
  box-shadow: 0 14px 28px rgba(100, 57, 171, 0.16);
}
.trust-card.mid { background: linear-gradient(165deg, #8f68d4 0%, #7b4fc4 100%); }
.trust-card.light { background: linear-gradient(165deg, #a078db 0%, #8b5fd0 55%, #7e52c6 100%); }
.trust-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
}
.trust-card ul {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.95;
}
.trust-card a {
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
  border-bottom: 1px solid rgba(255,255,255,0.35);
}
.trust-card a:hover { color: #fff; }

.disease-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}
.disease-col {
  background: #fff;
  border: 1px solid #efe8f6;
  border-radius: 22px;
  padding: 1.25rem 1.3rem 1.2rem;
  box-shadow: var(--shadow-card);
}
.disease-col h3 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
  color: var(--brand-dark);
}
.disease-col h3 + ul + h3 { margin-top: 1.1rem; }
.disease-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.disease-col li { margin: 0 0 0.38rem; }
.disease-col a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.4;
}
.disease-col a:hover { color: var(--brand); }

.carousel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.carousel-nav { display: flex; gap: 0.35rem; }
.carousel-nav .icon-btn {
  background: #fff;
  border: 1px solid #eadff6;
  box-shadow: 0 6px 14px rgba(80, 40, 140, 0.06);
}

.license-track,
.stars-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3rem) / 4);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.3rem;
}
.license-track::-webkit-scrollbar,
.stars-track::-webkit-scrollbar { display: none; }
.license-card {
  scroll-snap-align: start;
  border: 0;
  padding: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-card);
  border: 1px solid #efe8f6;
}
.license-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.lead-docs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.lead-doc {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border: 1px solid #efe8f6;
  border-radius: 22px;
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-card);
}
.lead-doc img {
  width: 132px;
  height: 132px;
  object-fit: cover;
  object-position: top;
  border-radius: 18px;
}
.lead-doc h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}
.lead-role {
  margin: 0 0 0.45rem;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.8rem;
}
.lead-doc p {
  margin: 0 0 0.7rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}
.lead-actions { display: flex; gap: 0.45rem; flex-wrap: wrap; }

.star-card {
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #efe8f6;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.star-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: top;
}
.star-card h3 {
  margin: 0.75rem 0.9rem 0.3rem;
  font-size: 0.95rem;
}
.star-card p {
  margin: 0 0.9rem 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
  min-height: 3.4em;
}

.clients-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.8rem;
  align-items: center;
  margin-top: 1.1rem;
}
.clients-row img {
  width: 100%;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #efe8f6;
  border-radius: 16px;
  padding: 0.7rem;
}

#footer.site-footer {
  background: #2c2150;
  color: #f7f3fc;
  padding: 28px 0 32px;
  margin: 0;
  position: relative;
  z-index: 1;
}
#footer.site-footer .container {
  width: min(1180px, calc(100% - 48px));
  max-width: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: start;
}
.footer-copy { margin: 0; font-weight: 700; color: #fff; }
#footer.site-footer .footer-note {
  margin: 0;
  color: #f7f3fc;
  font-size: 15px;
  line-height: 1.55;
  max-width: none;
}
#footer.site-footer a { color: #fff; font-size: 15px; font-weight: 600; }

.zoom-modal[hidden] { display: none; }
.zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
}
.zoom-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(24, 12, 48, 0.72);
  cursor: pointer;
}
.zoom-modal img {
  position: relative;
  z-index: 1;
  max-width: min(720px, calc(100% - 2rem));
  max-height: calc(100vh - 4rem);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.zoom-close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Prices */
.price-title {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  text-align: center;
  margin: 0.2rem 0 1.5rem;
}

.promo-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.85rem;
}
.promo-head h2 {
  margin: 0;
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 800;
}
.promo-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.promo-card {
  position: relative;
  min-height: 168px;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  box-shadow: var(--shadow-card);
}
.promo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.promo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 16, 48, 0.78) 0%, rgba(28, 16, 48, 0.18) 70%);
}
.promo-card > * { position: relative; z-index: 1; }
.promo-card h3 {
  margin: 0 2.2rem 0 0;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  max-width: 16rem;
}
.promo-card p {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  opacity: 0.92;
}
.promo-go {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}

.prices h2 {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.85rem;
}
.price-block {
  margin-bottom: 1.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.price-block h3 {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 800;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.price-table th,
.price-table td {
  padding: 0.72rem 0.9rem;
  text-align: left;
  font-size: 0.88rem;
  border-bottom: 1px solid #f3ecf9;
}
.price-table th {
  background: #d8c6ef;
  color: #3d2b62;
  font-weight: 700;
}
.price-table .group th {
  background: #c9b3e6;
  text-align: center;
  font-weight: 800;
}
.price-table td:nth-child(2),
.price-table th:nth-child(2),
.price-table td:nth-child(3),
.price-table th:nth-child(3),
.price-table td:nth-child(4),
.price-table th:nth-child(4) {
  text-align: center;
  width: 22%;
}
.price-table td:nth-child(2) { font-weight: 800; color: var(--brand-dark); white-space: nowrap; }
.price-table td:nth-child(3) { color: var(--muted); font-weight: 500; font-size: 0.82rem; }
.price-table th:nth-child(3) { color: #5c4d7a; font-weight: 600; }
.price-note { margin: 0.75rem 0 0; color: var(--brand-dark); font-weight: 700; font-size: 0.9rem; }
.price-table tr:last-child td { border-bottom: 0; }

/* Specialists */
.docs-title {
  margin: 0 0 1.15rem;
  max-width: 18ch;
  font-family: var(--font);
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.docs-tools {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.field-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #9a8fb3;
}
.search,
.field-select {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #fff;
  border: 1px solid #e7def3;
  border-radius: 999px;
  padding: 0 0.95rem;
  min-height: 44px;
}
.search input,
.field-select .sort {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0;
}
.search input::-webkit-search-decoration,
.search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.search input::placeholder { color: #b3a6c6; }
.field-select { position: relative; padding-right: 2.1rem; }
.field-select .sort {
  appearance: none;
  color: var(--ink-soft);
  cursor: pointer;
}
.field-select::after {
  content: "";
  position: absolute;
  right: 0.95rem;
  width: 10px;
  height: 6px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239a8fb3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.doctor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid #eee6f6;
  border-radius: 18px;
  padding: 1rem 0.9rem 0.9rem;
  box-shadow: 0 8px 22px rgba(80, 40, 140, 0.05);
}
.doctor-photo {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 0.75rem;
}
.doctor-photo img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  background: #f4eef9;
}
.doctor-stazh {
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(80, 40, 140, 0.1);
  white-space: nowrap;
}
.doctor-card h3 {
  margin: 0.15rem 0 0.12rem;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
}
.doctor-role {
  margin: 0 0 0.32rem;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.75rem;
}
.doctor-short {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
  min-height: 3.15em;
}
.doctor-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  margin-top: 0.75rem;
}
.doctor-actions .btn {
  flex: 1;
  padding: 0.48rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 600;
}
.empty-note {
  grid-column: 1 / -1;
  background: #fff;
  border-radius: 16px;
  padding: 1.2rem;
  color: var(--muted);
  text-align: center;
}

.doc-page .doc-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: center;
  background: #fff;
  border: 1px solid #efe8f6;
  border-radius: 24px;
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-card);
  margin: 0 0 1.15rem;
}
.doc-page .doc-hero img {
  width: 220px;
  height: 260px;
  object-fit: cover;
  object-position: top center;
  border-radius: 18px;
  background: #f4eef9;
}
.doc-page .doc-role {
  margin: 0 0 0.35rem;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-transform: uppercase;
}
.doc-page .doc-stazh {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.doc-page .doc-bio {
  margin-bottom: 1.4rem;
}
.doc-page .doc-bio p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}
.doc-block-title {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.85rem;
}
.doc-section {
  margin-bottom: 0.9rem;
}
.doc-section h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}
.doc-section p {
  margin: 0 0 0.55rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.doc-section p:last-child {
  margin-bottom: 0;
}
.doc-ol,
.doc-ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.doc-ol li,
.doc-ul li {
  margin: 0 0 0.35rem;
}
.doc-docs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin-top: 1rem;
}
.doc-page .section-cta {
  margin-top: 1.5rem;
}

/* Booking */
.booking-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(122, 92, 184, 0.08);
}
.booking-header .header-inner {
  justify-content: space-between;
}
.booking-summary {
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: right;
}
.booking-summary b { color: var(--ink); font-weight: 800; }
.booking {
  min-height: calc(100vh - 90px);
  display: grid;
  place-items: center;
  padding: 3rem 0 5rem;
  text-align: center;
}
.booking h1 {
  margin: 0 auto 0.7rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  max-width: 22ch;
}
.booking .lead {
  margin: 0 auto 1.5rem;
  color: var(--muted);
  max-width: 28rem;
}
.book-actions {
  display: grid;
  gap: 0.7rem;
  width: min(420px, 100%);
  margin: 0 auto 1.8rem;
}
.book-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  border: 0;
  background: #fff;
  color: var(--ink);
  padding: 0.95rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(90, 50, 140, 0.08);
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}
.book-btn.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 22px rgba(123, 79, 196, 0.28);
}
.book-btn .ico {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}
.book-btn .ico svg { width: 20px; height: 20px; display: block; }
.book-btn .chev { margin-left: auto; opacity: 0.7; }
.or-line {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 auto 1rem;
  width: min(420px, 100%);
}
.or-line::before,
.or-line::after {
  content: "";
  height: 1px;
  background: #e5daf3;
  flex: 1;
}
.store-buttons {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #111018;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 0.58rem 1.05rem 0.56rem 0.78rem;
  min-width: 158px;
  box-shadow: 0 10px 22px rgba(22, 18, 31, 0.16);
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.store-btn-google { background: #1b1724; }
.store-btn-rustore {
  background: var(--brand-dark);
  border-color: rgba(255,255,255,0.12);
}
.store-btn:hover {
  color: #fff;
  background: #2b2438;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(22, 18, 31, 0.2);
}
.store-btn-rustore:hover { background: var(--brand); }
.store-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.store-btn small {
  display: block;
  font-size: 0.58rem;
  opacity: 0.7;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.store-btn span { font-weight: 750; font-size: 0.92rem; line-height: 1.12; text-align: left; }

/* Simple inner */
.simple-card {
  background: #fff;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}
.simple-card p { color: var(--ink-soft); }
.faq-item {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 0.65rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 0.95rem 1.1rem;
  font-weight: 800;
}
.faq-item p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  color: var(--ink-soft);
}
.faq-page {
  max-width: 920px;
  margin: 0 auto;
}
.faq-page .page-title { text-align: center; }
.faq-intro {
  text-align: center;
  color: var(--ink-soft);
  margin: 0 0 1.35rem;
  font-size: 1.02rem;
}
.faq-page .faq-item summary {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  list-style: none;
  padding: 0.95rem 1.2rem;
}
.faq-page .faq-item summary::-webkit-details-marker { display: none; }
.faq-page .faq-item summary::marker { content: ""; }
.faq-page .faq-item[open] summary { background: var(--brand-dark); }
.faq-answer {
  background: #fff;
  padding: 1rem 1.2rem 1.15rem;
}
.faq-answer p {
  padding: 0;
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.faq-answer p:last-child { margin: 0; }
.faq-app {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.2rem 1.6rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 80% at 100% 10%, rgba(255,255,255,0.7) 0%, transparent 52%),
    linear-gradient(155deg, #efe7fb 0%, #f7f3fc 48%, #fff 100%);
  border: 1px solid #eadff6;
  border-radius: 28px;
  padding: 1.55rem 1.45rem 1.45rem 1.6rem;
  margin: 2.2rem 0 1.4rem;
  box-shadow: 0 18px 40px rgba(100, 57, 171, 0.08);
}
.faq-app::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -60px;
  top: -70px;
  border-radius: 50%;
  background: rgba(123, 79, 196, 0.08);
  pointer-events: none;
}
.faq-app-copy { position: relative; z-index: 1; }
.faq-app h1,
.faq-app h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}
.faq-app h1 span,
.faq-app h2 span { color: var(--brand-dark); }
.app-landing {
  padding: 1.4rem 0 3.2rem;
  min-height: calc(100vh - var(--header-h, 160px) - 140px);
}
.app-landing .faq-app {
  margin: 0;
}
.faq-app .lead {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: 36em;
}
.faq-app ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 0.65rem;
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
}
.faq-app li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.52rem 0.7rem;
  color: var(--ink);
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(234, 223, 246, 0.9);
  border-radius: 14px;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.3;
}
.faq-app li img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(100, 57, 171, 0.12);
}
.faq-app .store-buttons { justify-content: flex-start; }
.faq-app-phones {
  position: relative;
  z-index: 1;
}
.faq-app-phones img {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(80, 40, 130, 0.16));
}
.spine-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0.2rem 0 0.4rem;
}
.spine-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  color: inherit;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid #efe8f7;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
a.spine-card:hover {
  color: inherit;
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(100, 57, 171, 0.14);
}
.spine-card.is-static { cursor: default; }
.spine-card-photo {
  display: block;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #f7f2fc 0%, #fff 100%);
  overflow: hidden;
}
.spine-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.55rem;
}
.spine-card-name {
  display: block;
  padding: 0.7rem 0.75rem 0.95rem;
  font-weight: 750;
  font-size: 0.88rem;
  line-height: 1.3;
  color: var(--ink);
}
.faq-clinics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin: 0 0 2rem;
}
.faq-clinic {
  background: #fff;
  border-radius: 20px;
  padding: 1.15rem 1.2rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.faq-clinic h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.faq-clinic .phone {
  display: block;
  color: var(--brand);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.faq-clinic p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.82rem;
}
@media (max-width: 860px) {
  .faq-app,
  .faq-clinics { grid-template-columns: 1fr; }
  .spine-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-app-phones img { margin: 0 auto; }
}
.chose-page .page-title { text-align: center; }
.chose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0 0 2rem;
}
.chose-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.chose-gallery {
  position: relative;
  background: #efe8f6;
}
.chose-gallery img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top;
  display: block;
  cursor: pointer;
}
.chose-gallery img[hidden] { display: none; }
.chose-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.chose-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}
.chose-dots button.is-active { background: var(--brand); }
.chose-card h2 {
  margin: 0.9rem 1.05rem 0.4rem;
  font-family: var(--font);
  font-size: 1.08rem;
  font-weight: 800;
}
.chose-card .chose-bio {
  padding: 0 1.05rem 1.15rem;
}
.chose-card .chose-bio p {
  margin: 0 0 0.45rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}
.chose-card .chose-bio p:last-child { margin: 0; }
.news-grid,
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.news-card,
.problem-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.1rem;
  box-shadow: var(--shadow-card);
  color: inherit;
}
.news-card:hover,
.problem-card:hover { color: inherit; }
.news-card h3,
.problem-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font);
  font-size: 1.02rem;
}
.news-card p,
.problem-card p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.contacts-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.2rem;
}
.contact-list { margin: 0; }
.contact-list div { margin-bottom: 0.8rem; }
.contact-list dt { color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.contact-list dd { margin: 0.15rem 0 0; font-weight: 700; }
.contacts-map iframe {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: 20px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.4rem;
  align-items: center;
}
.about-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 22px;
}

/* Floating CTA */
.float-zapis {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 50;
  background: var(--brand);
  color: #fff;
  border-radius: 12px;
  padding: 0.6rem 1.05rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(123, 79, 196, 0.32);
  animation: zapis-glow 1.8s ease-in-out infinite;
}
.float-zapis::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: 0 0 0 0 rgba(123, 79, 196, 0.45);
  animation: zapis-ring 2.2s ease-out infinite;
  pointer-events: none;
}
.float-zapis:hover {
  color: #fff;
  background: var(--brand-dark);
  animation: none;
}
.float-zapis:hover::after { animation: none; }
@keyframes zapis-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.22); }
}
@keyframes zapis-ring {
  0% { box-shadow: 0 0 0 0 rgba(123, 79, 196, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(123, 79, 196, 0); }
  100% { box-shadow: 0 0 0 14px rgba(123, 79, 196, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .float-zapis,
  .float-zapis::after { animation: none; }
}

/* UVT / service page */
.uvt-page { padding-bottom: 0; }
.service-hero {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 2.2rem;
  align-items: center;
  margin-bottom: 1.6rem;
}

/* Utility pages (news/FAQ/prices): hero without photo column */
.service-hero.service-hero--solo {
  grid-template-columns: 1fr;
  max-width: 52rem;
}
.service-hero h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 0.98;
}
.service-hero .page-lead { margin-bottom: 1rem; max-width: 34rem; }
.promo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}
.promo-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: #f3ecfb;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
}
.service-hero-photo {
  border-radius: 28px;
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow-card);
}
.service-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 320px;
}
.disease-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 460px;
  margin: 0 0 2rem;
  overflow: hidden;
  color: #fff;
}
.disease-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}
.disease-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 14, 52, 0.78) 0%, rgba(40, 18, 70, 0.42) 46%, rgba(40, 18, 70, 0.08) 100%),
    linear-gradient(180deg, rgba(28, 14, 52, 0.18) 0%, transparent 28%, rgba(28, 14, 52, 0.22) 100%);
  pointer-events: none;
}
.disease-hero-copy {
  position: relative;
  z-index: 1;
  padding: 3.2rem 0 3.4rem;
  max-width: 54rem;
}
.disease-hero-links {
  display: flex;
  gap: 1.1rem;
  margin-bottom: 1.15rem;
}
.disease-hero-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.disease-hero-links a:hover { color: #fff; }
.disease-hero .kicker {
  color: rgba(255,255,255,0.78);
  margin-bottom: 0.55rem;
}
.disease-hero h1 {
  margin: 0 0 0.7rem;
  color: #fff;
  font-size: clamp(1.7rem, 3.3vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
}
.disease-hero-offer {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.disease-hero-price {
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 700;
}
.promo-pill-on-dark {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 22px rgba(100, 57, 171, 0.28);
}
.brand-equip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
  flex-wrap: wrap;
  padding: 1.1rem 1rem 1.35rem;
  margin: 0 0 1.6rem;
  border-top: 1px solid #f1ebf7;
  border-bottom: 1px solid #f1ebf7;
}
.brand-equip img { height: 42px; width: auto; object-fit: contain; }
.wolf-mark {
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 1.05rem;
  color: #c0392b;
  line-height: 1.05;
  text-align: center;
}
.wolf-mark small {
  display: block;
  letter-spacing: 0.28em;
  font-size: 0.62rem;
  color: #8a2a22;
}
.uvt-intro {
  max-width: 52rem;
  margin: 0 auto 1.8rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
  text-align: center;
}
.price-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 auto 1.1rem;
  max-width: 720px;
  background: #f6f1fb;
  border-radius: 16px;
  padding: 0.28rem;
}
.price-tabs button {
  border: 0;
  background: transparent;
  color: #6a5b82;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.72rem 0.5rem;
  border-radius: 12px;
  cursor: pointer;
}
.price-tabs button.is-active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 8px 18px rgba(90, 40, 140, 0.08);
}

/* Price panes follow html[data-filial] (same signal as header) —
   works even if script.js fails or is cached old. */
.price-pane[data-price-pane] { display: none !important; }
html[data-filial="mitino"] .price-pane[data-price-pane="mitino"] { display: block !important; }
html[data-filial="krasnogorsk"] .price-pane[data-price-pane="krasnogorsk"] { display: block !important; }
html:not([data-filial="mitino"]):not([data-filial="krasnogorsk"]) .price-pane[data-price-pane="oktpole"] {
  display: block !important;
}

/* филиал только в шапке — локальные вкладки цен на страницах услуг скрыты */
.price-tabs { display: none !important; }

.price-pane .branch-meta {
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0 0 0.85rem;
}
.uvt-price-sub {
  margin: 1.45rem 0 0.7rem;
  text-align: center;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
}
.price-pane .price-table + .price-table,
.price-pane .uvt-price-sub + .price-table {
  margin-top: 0;
}
.price-pane .price-table + .uvt-price-sub {
  margin-top: 1.6rem;
}
.rehab-methods {
  display: flex;
  gap: 1.25rem;
  align-items: stretch;
}
.rehab-methods ul {
  flex: 1 1 0;
  min-width: 0;
  min-height: min-content;
  margin: 0;
  list-style: none;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  padding: 1.15rem 1.25rem 1.2rem;
}
.rehab-methods li {
  position: relative;
  padding: 0.38rem 0 0.38rem 1.15rem;
  color: var(--ink);
  line-height: 1.45;
}
.rehab-methods li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}
.rehab-methods a { color: var(--brand-dark); font-weight: 700; }
.rehab-methods .chose-gallery {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 280px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.rehab-methods .chose-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rehab-sub {
  display: block;
  padding-left: 0.2rem;
  color: var(--ink-soft);
}
.rehab-uniq {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.4rem;
  align-items: center;
  position: relative;
  z-index: 0;
  isolation: isolate;
  background: linear-gradient(165deg, #8b63d1 0%, #7b4fc4 55%, #6439ab 100%);
  color: #fff;
  border-radius: 28px;
  padding: 1.6rem 1.7rem;
  box-shadow: 0 16px 32px rgba(100, 57, 171, 0.16);
  overflow: hidden;
}
.rehab-uniq h2 { color: #fff; text-align: left; margin: 0 0 1rem; }
.rehab-uniq h5 {
  margin: 0 0 0.7rem;
  color: rgba(255,255,255,0.94);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
}
.rehab-uniq h5:last-child { margin: 0; }
.rehab-uniq img {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  justify-self: center;
  box-shadow: 0 10px 24px rgba(40, 10, 80, 0.25);
}
.rehab-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: center;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin: 1rem 0;
}
.rehab-split.is-flip { direction: rtl; }
.rehab-split.is-flip > * { direction: ltr; }
.rehab-split img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}
.rehab-split p {
  margin: 0;
  padding: 1.3rem 1.4rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.uvt-section {
  margin: 0 0 2.4rem;
}
.uvt-section:last-child { margin-bottom: 0; }
.uvt-section > h2,
.uvt-block-title {
  text-align: center;
  margin: 0 0 1.1rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}
.doc-highlight {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.3rem;
  align-items: center;
  background: #fff;
  border: 1px solid #efe8f6;
  border-radius: 24px;
  padding: 1.15rem 1.3rem;
  box-shadow: var(--shadow-card);
}
.doc-highlight img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
}
.doc-highlight p {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}
.gain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.gain-card {
  background: #fff;
  border: 1px solid #efe8f6;
  border-radius: 20px;
  padding: 1.05rem 1.05rem 1rem;
  min-height: 118px;
  box-shadow: var(--shadow-card);
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}
.gain-card b {
  display: block;
  color: var(--brand);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.indicate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem 1.2rem;
  background: #fff;
  border: 1px solid #efe8f6;
  border-radius: 24px;
  margin: 0;
  padding: 1.2rem 1.3rem;
  list-style: none;
  box-shadow: var(--shadow-card);
}
.uvt-doctors .doctor-short {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
  min-height: 0;
}
.uvt-doctors .doctor-actions {
  flex-direction: column;
  align-items: stretch;
}
.uvt-doctors .doctor-actions .btn {
  width: 100%;
  white-space: normal;
  line-height: 1.25;
}
.indicate-grid li {
  list-style: none;
  position: relative;
  padding-left: 1.45rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}
.indicate-grid li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
}
.uvt-docs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.uvt-doc {
  background: #fff;
  border: 1px solid #efe8f6;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.uvt-doc img {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  object-position: top;
  background: #f4eefb;
}
.uvt-doc-body {
  padding: 0.85rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.uvt-doc h3 {
  margin: 0;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
}
.uvt-doc .lead-role {
  margin: 0;
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.uvt-doc p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}
.uvt-doc .btn { margin-top: auto; align-self: flex-start; }
.polza-band {
  background: linear-gradient(165deg, #8b63d1 0%, #7b4fc4 55%, #6439ab 100%);
  color: #fff;
  border-radius: 28px;
  padding: 1.6rem 1.5rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: center;
}
.polza-band img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid rgba(255,255,255,0.22);
}
.polza-band h2 { color: #fff; text-align: left; margin: 0 0 0.85rem; }
.polza-band ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
.polza-band li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.45rem;
  font-size: 0.92rem;
  line-height: 1.4;
}
.polza-band li b { color: #f0e4ff; }
.polza-band .btn {
  display: inline-flex;
  margin-top: 1.35rem;
  padding: 0.72rem 1.35rem;
  background: #fff;
  color: #6439ab !important;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(40, 10, 80, 0.18);
}
.polza-band .btn:hover {
  background: #f4eefb;
  color: #4f2d8a !important;
}
.equip-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.equip-copy article {
  background: #fff;
  border: 1px solid #efe8f6;
  border-radius: 22px;
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-card);
}
.equip-copy h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--brand-dark);
}
.equip-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}
.proc-gallery {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.15fr;
  gap: 0.7rem;
}
.proc-gallery img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}
.article-prose {
  max-width: 48rem;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}
.article-prose h2,
.article-prose h3 {
  color: #2a1848;
  text-align: left;
}
.article-prose .seo-lead {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.45;
  margin-bottom: 0.9rem;
}
.article-more {
  margin-top: 0.6rem;
}
.article-more summary {
  cursor: pointer;
  color: var(--brand);
  font-weight: 800;
  list-style: none;
}
.article-more summary::-webkit-details-marker { display: none; }
.article-more[open] summary { margin-bottom: 1rem; }
.article-more h3 {
  margin: 1.55rem 0 0.7rem;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
}
.article-more .uvt-faq {
  display: grid;
  gap: 0.7rem;
  margin: 0.85rem 0 1.2rem;
}
.article-more .uvt-faq article {
  background: #fff;
  border: 1px solid #efe8f6;
  border-radius: 16px;
  padding: 0.95rem 1.05rem 1rem;
  box-shadow: var(--shadow-card);
}
.article-more .uvt-faq h4 {
  margin: 0 0 0.4rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 800;
  color: #2a1848;
}
.article-more .uvt-faq p { margin: 0; }
.article-book {
  margin-top: 1.15rem;
  padding: 1.15rem 1.2rem 1.2rem;
  background: #f7f2fc;
  border-radius: 18px;
}
.article-book h3 { margin-top: 0; }
.article-book a { color: var(--brand); font-weight: 700; word-break: break-word; }
.service-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 2.4rem;
  padding: 1.3rem 1.4rem;
  background: linear-gradient(165deg, #8b63d1, #6439ab);
  color: #fff;
  border-radius: 24px;
}
.service-cta h2 { color: #fff; margin: 0 0 0.3rem; text-align: left; font-size: 1.45rem; }
.service-cta p { margin: 0; opacity: 0.92; }
.service-cta .btn { background: #fff; color: var(--brand-dark); }

/* Modal — только #app-modal (свой picker).
   НЕ трогаем Bootstrap/Porto .modal (#modalForm_OnlineRecord и др.),
   иначе форма записи становится серой и некликабельной. */
#app-modal[hidden] { display: none; }
#app-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}
#app-modal .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 16, 48, 0.42);
}
#app-modal .modal-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100% - 1.5rem));
  margin: 8vh auto 0;
  background: #fff;
  border-radius: 22px;
  padding: 1.4rem 1.35rem 1.3rem;
  box-shadow: 0 24px 60px rgba(30, 10, 60, 0.2);
}
#app-modal .modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
}
#app-modal .modal-dialog h2 {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
}
#app-modal .modal-lead { margin: 0 0 1rem; color: var(--muted); }

/* Нижнее меню Porto / плавающая online-запись не должны перекрывать Bootstrap-модалки */
#downMenu {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  overflow: hidden !important;
  z-index: 1 !important;
}
#onlinerec {
  z-index: 45 !important;
}
/* Когда открыта Bootstrap-модалка — всё «плавающее» уводим ниже и отключаем клики */
body.modal-open #downMenu,
body.modal-open #onlinerec,
body.modal-open #onlinerec_onpage,
body.modal-open .scroll-to-top,
body.modal-open #cookieNotice,
body.modal-open .cookie-notice {
  z-index: 1 !important;
  pointer-events: none !important;
}
/* Жёстко поднимаем онлайн-запись Porto поверх backdrop */
#modalForm_OnlineRecord.modal {
  z-index: 1060 !important;
  pointer-events: auto !important;
}
#modalForm_OnlineRecord .modal-dialog {
  pointer-events: none;
  z-index: 1061 !important;
}
#modalForm_OnlineRecord .modal-content {
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}
.picker-list {
  display: grid;
  gap: 0.5rem;
  max-height: 50vh;
  overflow: auto;
}
.picker-item {
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  cursor: pointer;
  font-weight: 700;
}
.picker-item:hover,
.picker-item.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.picker-item small { display: block; font-weight: 500; color: var(--muted); }
.lead-form label { display: grid; gap: 0.3rem; margin-bottom: 0.7rem; font-weight: 700; font-size: 0.88rem; }
.lead-form input,
.lead-form select {
  border: 1px solid #eadff5;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  outline: none;
}
.lead-form input:focus,
.lead-form select:focus { border-color: var(--brand); }
.form-note { color: var(--muted); font-size: 0.75rem; }
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  background: #2c2150;
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  box-shadow: var(--shadow);
  max-width: 280px;
}
.toast[hidden] { display: none; }

@media (max-width: 1100px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .promo-grid { grid-template-columns: 1fr; }
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .license-track,
  .stars-track { grid-auto-columns: calc((100% - 1rem) / 2); }
  .clients-row { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 860px) {
  .benefits-grid,
  .about-grid,
  .contacts-grid,
  .news-grid,
  .problem-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .rating-row { grid-template-columns: 1fr; }
  .header-actions .btn-ghost { display: none; }
  .page-title-row { flex-direction: column; align-items: flex-start; }
  .docs-tools { grid-template-columns: 1fr; }
  .booking-summary { display: none; }
  .chose-grid { grid-template-columns: repeat(2, 1fr); }
  .rehab-methods { flex-direction: column; }
  .rehab-methods ul { flex: 0 0 auto; width: 100%; }
  .rehab-methods .chose-gallery {
    flex: none;
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .rehab-uniq,
  .rehab-split,
  .video-grid,
  .trust-grid,
  .disease-grid,
  .lead-docs,
  .service-hero,
  .gain-grid,
  .indicate-grid,
  .equip-copy,
  .proc-gallery,
  .doc-highlight,
  .doc-page .doc-hero,
  .polza-band,
  .service-cta { grid-template-columns: 1fr; }
  .doc-page .doc-hero img {
    width: 100%;
    height: 280px;
  }
  .doc-docs-grid { grid-template-columns: repeat(2, 1fr); }
  .rehab-uniq { padding: 1.25rem 1.15rem 1.35rem; gap: 1rem; }
  .rehab-uniq img { max-width: 210px; }
  .rehab-split { margin: 0 0 1rem; }
  .rehab-split img { min-height: 200px; }
  .disease-hero { min-height: 0; }
  .disease-hero-bg { object-position: 82% center; }
  .disease-hero-copy { padding: 1.8rem 0 2rem; }
  .uvt-docs { grid-template-columns: repeat(2, 1fr); }
  .online-cta-inner { flex-direction: column; align-items: flex-start; }
  .lead-doc { grid-template-columns: 96px 1fr; }
  .lead-doc img { width: 96px; height: 96px; }
  .doc-highlight img,
  .polza-band img { width: 140px; height: 140px; }
  .polza-band { justify-items: start; }
  .service-cta { flex-direction: column; align-items: flex-start; }
  .service-hero-photo,
  .service-hero-photo img { min-height: 240px; }
  .proc-gallery img { height: 180px; }
  .uvt-section:has(.price-table),
  .price-pane {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .reviews-head { flex-direction: column; }
  .faq-app { padding: 1.25rem 1.15rem; }
}

@media (max-width: 560px) {
  :root { --header-h: 132px; }
  .container { width: min(1240px, calc(100% - 1.2rem)); }
  .page { padding: 1rem 0 3.2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-frame { min-height: 280px; }
  .doctors-grid,
  .uvt-docs,
  .chose-grid { grid-template-columns: 1fr; }
  .brand-text { display: none; }
  .branch-pin { display: none; }
  .branch { padding-right: 0.25rem; }
  .branch strong {
    font-size: 0.52rem;
    letter-spacing: 0.03em;
  }
  .branch b { font-size: 0.64rem; }
  .topbar .btn-primary {
    padding: 0.5rem 0.72rem;
    font-size: 0.74rem;
    border-radius: 12px;
  }
  .nav-toggle { width: 42px; height: 42px; }
  .license-track,
  .stars-track { grid-auto-columns: 84%; }
  .clients-row { grid-template-columns: repeat(2, 1fr); }
  .price-tabs { grid-template-columns: 1fr; }
  .price-tabs button {
    font-size: 0.72rem;
    padding: 0.62rem 0.35rem;
  }
  .uvt-section { margin-bottom: 1.6rem; }
  .uvt-section > h2,
  .uvt-block-title { font-size: 1.28rem; line-height: 1.2; }
  .service-hero { gap: 1.15rem; margin-bottom: 1.2rem; }
  .service-hero h1 { font-size: 1.55rem; }
  .disease-hero-copy { padding: 1.35rem 0 1.55rem; }
  .disease-hero h1 { font-size: 1.28rem; }
  .disease-hero-offer { font-size: 0.92rem; letter-spacing: 0.02em; }
  .disease-hero-price { font-size: 1rem; }
  .disease-hero-links { gap: 0.8rem; margin-bottom: 0.75rem; }
  .rehab-methods ul { padding: 1rem 1rem 1.05rem; border-radius: 20px; }
  .rehab-methods li { font-size: 0.92rem; }
  .rehab-uniq { border-radius: 22px; padding: 1.1rem 1rem 1.2rem; }
  .rehab-uniq h2 { font-size: 1.18rem; margin-bottom: 0.75rem; }
  .rehab-uniq h5 { font-size: 0.88rem; }
  .rehab-uniq img { max-width: 168px; }
  .rehab-split { border-radius: 20px; }
  .rehab-split img { min-height: 170px; }
  .rehab-split p { padding: 0.95rem 1rem; font-size: 0.9rem; }
  .price-table th,
  .price-table td { padding: 0.55rem 0.55rem; font-size: 0.78rem; }
  .price-table {
    min-width: 540px;
  }
  .price-table td:nth-child(2),
  .price-table th:nth-child(2),
  .price-table td:nth-child(3),
  .price-table th:nth-child(3),
  .price-table td:nth-child(4),
  .price-table th:nth-child(4) {
    width: auto;
  }
  .faq-app {
    padding: 1.1rem 1rem 1.15rem;
    margin: 1.5rem 0 1.1rem;
    border-radius: 22px;
  }
  .faq-app ul { grid-template-columns: 1fr; }
  .faq-app-phones img { max-width: 260px; }
  .store-buttons { flex-direction: column; align-items: stretch; }
  .store-btn { width: 100%; justify-content: center; min-width: 0; }
  .chose-gallery img { height: 220px; }
  .reviews-panel { padding: 1.1rem 1rem 1rem; border-radius: 22px; }
  .review-slider { grid-template-columns: 28px 1fr 28px; gap: 0.3rem; }
  .online-cta-inner { padding: 1.1rem 1.05rem; border-radius: 20px; }
  .online-cta h2 { font-size: 1.12rem; }
  .brand-equip { gap: 1rem; padding: 0.85rem 0.4rem 1rem; }
  .brand-equip img { height: 30px; }
  .float-zapis {
    left: auto;
    right: 12px;
    bottom: 12px;
    padding: 0.5rem 0.78rem;
    font-size: 0.66rem;
  }
  .spine-grid { gap: 0.65rem; }
  .breadcrumb { font-size: 0.72rem; flex-wrap: wrap; }
  .faq-item summary { padding: 0.85rem 0.95rem; font-size: 0.92rem; }
  .simple-card { padding: 1.1rem 1rem; border-radius: 18px; }
  .docs-title { max-width: none; font-size: 1.55rem; }
}


/* ===== MODX service template (Porto .main + uvt-page) ===== */
/* Porto-обёртка использует <div class="page uvt-page">, не <main class="page">.
   Даём те же отступы, что у main.page, без влияния на главную. */
.main .page.uvt-page,
div.page.uvt-page {
  padding: 1.6rem 0 2.4rem;
}
.main .page.uvt-page > .container {
  padding-bottom: 0.5rem;
}
/* Крошки в шаблоне: текущая страница без ссылки */
.breadcrumb > span {
  color: var(--text, #1f1638);
  font-weight: 700;
}


/* --- service doctors show-more --- */
.doctors-grid.is-collapsed .doctor-card.is-extra { display: none; }
.docs-show-more {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}
.docs-show-more[hidden] { display: none; }

/* --- book-again CTA filial line --- */
.service-cta--again { margin-top: 1.5rem; }
.service-cta [data-filial-line] {
  margin: 0.25rem 0 0;
  opacity: 0.92;
  font-size: 0.92rem;
}

/* --- homepage blocks reused on service pages (reviews / lechim / licenses) --- */
.k1-reviews {
  width: min(1180px, calc(100% - 48px));
  margin: 16px auto 28px;
}
.k1-reviews-panel {
  background: #f4eefb;
  border-radius: 22px;
  padding: 16px 18px 12px;
}
.k1-reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
}
.k1-reviews-kicker {
  margin: 0 0 6px;
  color: #8b63d1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.k1-reviews-head h2 {
  margin: 0;
  color: #1f1638;
  font-size: 24px;
  font-weight: 600;
}
.k1-reviews-all {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid #cbb6ea;
  border-radius: 999px;
  color: #7b4fc4;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
}
.k1-reviews-all:hover { color: #6439ab; }
.k1-reviews-slider {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  gap: 4px;
  align-items: center;
}
.k1-reviews-slider > button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7b4fc4;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.k1-reviews-body { min-height: 88px; }
.k1-reviews-slide { display: none; }
.k1-reviews-slide.is-active { display: block; }
.k1-reviews-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.k1-reviews-top img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}
.k1-reviews-stars { color: #f5a623; letter-spacing: 1px; font-size: 14px; }
.k1-reviews-slide p {
  margin: 0;
  color: #4a3d68;
  font-size: 14px;
  line-height: 1.45;
}
.k1-reviews--compact .k1-reviews-slide p {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.k1-reviews-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e5daf3;
}
.k1-reviews-badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}
.k1-reviews-badge a { color: #7b4fc4; text-decoration: none; font-weight: 600; }

.k1-lechim {
  margin: 28px 0 24px;
  padding: 36px 0 40px;
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(123, 79, 196, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 45% at 85% 70%, rgba(123, 79, 196, 0.07), transparent 55%),
    #f4eefb;
}
.k1-lechim-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}
.k1-lechim-kicker {
  margin: 0 0 8px;
  text-align: center;
  color: #8b63d1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.k1-lechim-inner > h2 {
  margin: 0 0 22px;
  text-align: center;
  color: #1f1638;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
}
.k1-lechim-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.k1-lechim-col {
  background: #fff;
  border-radius: 20px;
  padding: 20px 18px 18px;
  box-shadow: 0 10px 28px rgba(80, 40, 140, 0.06);
}
.k1-lechim-col h3 {
  margin: 0 0 12px;
  color: #7b4fc4;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.k1-lechim-col h3 + h3 { margin-top: 18px; }
.k1-lechim-col ul { list-style: none; margin: 0; padding: 0; }
.k1-lechim-col li {
  margin: 0;
  padding: 0 0 7px;
  color: #4a3d68;
  font-size: 13.5px;
  line-height: 1.35;
}
.k1-lechim-col a { color: #4a3d68; text-decoration: none; }
.k1-lechim-col a:hover { color: #7b4fc4; }

.k1-licenses {
  width: min(1180px, calc(100% - 48px));
  margin: 8px auto 32px;
}
.k1-licenses-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.k1-licenses-kicker {
  margin: 0 0 6px;
  color: #8b63d1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.k1-licenses h2 {
  margin: 0;
  color: #1f1638;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}
.k1-licenses-inner {
  padding: 14px 12px;
  background: rgba(255,255,255,0.55);
  border: 1px solid #ebe3f5;
  border-radius: 20px;
}


/* Licenses row — as before (horizontal strip), no owl dependency */
.k1-licenses-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.k1-licenses-row a {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
  background: #fff;
  border: 1px solid #ebe3f5;
  border-radius: 12px;
  padding: 8px;
}
.k1-licenses-row img,
.k1-licenses-inner img {
  max-height: 160px;
  width: auto;
  max-width: none;
  border-radius: 8px;
  border: 0;
  background: #fff;
  object-fit: contain;
  display: block;
}
.k1-licenses-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 10px;
}
.k1-license-item {
  flex: 0 0 auto;
  display: block;
  padding: 8px;
  background: #fff;
  border: 1px solid #ebe3f5;
  border-radius: 12px;
  min-height: 0;
}
.k1-license-item img {
  max-height: 160px;
  width: auto;
  max-width: none;
}
@media (max-width: 900px) {
  .k1-licenses-row img,
  .k1-licenses-inner img,
  .k1-license-item img { max-height: 120px; }
}

.k1-licenses-inner img {
  max-height: 160px;
  width: auto;
  border-radius: 12px;
  border: 1px solid #ebe3f5;
  background: #fff;
  object-fit: contain;
}
@media (max-width: 900px) {
  .k1-lechim-grid { grid-template-columns: 1fr; }
  .k1-lechim-inner > h2 { font-size: 24px; }
}
@media (max-width: 560px) {
  .k1-reviews, .k1-licenses { width: calc(100% - 28px); }
  .k1-reviews-head { flex-direction: column; }
  .k1-licenses h2 { font-size: 24px; }
  .k1-licenses-inner img { max-height: 120px; }
}

/* k1-doctors — homepage featured + Смотреть всех врачей (kinez3) */
.k1-doctors {
  width: min(1180px, calc(100% - 48px));
  margin: 12px auto 28px;
}
.k1-doctors-kicker {
  margin: 0 0 6px;
  text-align: center;
  color: #8b63d1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.k1-doctors h2 {
  margin: 0 0 18px;
  text-align: center;
  color: #1f1638;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}
.k1-doctors-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.k1-doctor {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  background: rgba(255,255,255,0.78);
  border: 1px solid #ebe3f5;
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(80, 40, 140, 0.05);
}
.k1-doctor img {
  width: 112px;
  height: 112px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  background: #ece4f6;
}
.k1-doctor h3 {
  margin: 0 0 6px;
  color: #1f1638;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}
.k1-doctor-role {
  margin: 0 0 4px;
  color: #7b4fc4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.k1-doctor-degree {
  margin: 0 0 6px;
  color: #5c5176;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}
.k1-doctor-stazh {
  margin: 0 0 12px;
  color: #8b63d1;
  font-size: 13px;
  font-weight: 600;
}
.k1-doctor-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 10px;
}
.k1-doctor-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
}
.k1-doc-outline {
  border: 1px solid #d9cceb;
  color: #2c2348;
  background: #fff;
}
.k1-doc-outline:hover { border-color: #7b4fc4; color: #7b4fc4; }
.k1-doc-primary {
  background: #7b4fc4;
  color: #fff !important;
  border: 1px solid #7b4fc4;
}
.k1-doc-primary:hover { background: #6439ab; border-color: #6439ab; color: #fff !important; }
.k1-doctors-more {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}
.k1-doctors-more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  background: #7b4fc4;
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid #7b4fc4;
  box-shadow: 0 8px 18px rgba(100, 57, 171, 0.22);
}
.k1-doctors-more a:hover {
  background: #6439ab;
  border-color: #6439ab;
  color: #fff !important;
}
@media (max-width: 720px) {
  .k1-doctors { width: calc(100% - 28px); }
  .k1-doctors-grid { grid-template-columns: 1fr; }
  .k1-doctor { grid-template-columns: 96px 1fr; }
  .k1-doctor img { width: 96px; height: 96px; }
  .k1-doctors h2 { font-size: 24px; }
}

/* book1: старые Porto-модалки прячем только по id (без глобального .modal) */
div[id^="modalForm_"]:not(.show):not(.in),
div[id^="myModal"]:not(.show):not(.in),
#new_modal_massaj:not(.show):not(.in) {
  display: none !important;
}

/* ===== book1: онлайн-запись #modalForm_OnlineRecord =====
   В шаблоне услуг модалка попадает внутрь .main (position:relative; z-index:1).
   Это отдельный слой: модалка остаётся под серым фоном (он в body, z 1040+).
   Пока модалка открыта — снимаем z-index у контейнеров, модалка выходит наверх.
   (script: шапка ещё и переносит модалку прямо в body.) */
body.modal-open .main,
body.modal-open main.main,
body.modal-open main.page,
body.modal-open .site-footer,
body.modal-open #footer.site-footer {
  z-index: auto !important;
}
#modalForm_OnlineRecord.show,
#modalForm_OrderSpecial.show {
  display: block !important;
}
#modalForm_OnlineRecord .modal-dialog {
  margin-top: max(12px, 8vh);
}
@media (max-width: 575px) {
  #modalForm_OnlineRecord .modal-dialog {
    margin: 12px auto;
    width: calc(100% - 24px);
    max-width: none;
  }
}

/* ===== footer1: шапка — без подчёркивания текста (остаётся только фиолетовая полоса) ===== */
#header.site-header a,
#header.site-header a:hover,
#header.site-header a:focus,
#header.site-header a:active,
.nav-desktop a:hover, .nav-desktop a:focus, .nav-desktop a:active, .nav-desktop a.is-active,
.nav-dropdown a:hover, .nav-dropdown a:focus,
.mobile-nav a:hover, .mobile-nav a:focus, .mobile-nav a:active {
  text-decoration: none !important;
}

/* ===== footer1: новый подвал (#footer.sf) ===== */
#footer.sf {
  background: transparent; border: 0; margin: 48px 0 0; padding: 0; font-size: 15px;
  color: #efe8fb; position: relative; clear: both; font-family: var(--font);
}
#footer.sf p { margin: 0; }
#footer.sf a { color: inherit; text-decoration: none; font-size: inherit; font-weight: inherit; }
#footer.sf a:hover { color: #fff; text-decoration: none; }
#footer.sf svg { flex-shrink: 0; }

/* карточка приложения */
#footer.sf .sf-app-wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto -58px; position: relative; z-index: 2; }
#footer.sf .sf-app {
  display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; align-items: center; gap: 12px 28px;
  background: linear-gradient(135deg, #f6f0fd 0%, #ece2fa 100%); border: 1px solid #e3d6f4;
  border-radius: 28px; padding: 18px 26px 18px 20px; box-shadow: 0 20px 50px rgba(60, 30, 120, .16); color: var(--ink);
  overflow: hidden;
}
#footer.sf .sf-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
#footer.sf .sf-app-title { font-family: var(--display); font-size: 30px; line-height: 1.05; font-weight: 700; color: var(--ink); margin: 0 0 8px; letter-spacing: 0; text-transform: none; }
#footer.sf .sf-app-lead { color: var(--ink-soft); font-size: 14px; line-height: 1.5; max-width: 420px; }
#footer.sf .sf-stores { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 10px; }
#footer.sf .sf-store {
  display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 12px; border-radius: 16px;
  background: #fff; border: 1px solid #e7dcf6; color: var(--ink); box-shadow: 0 8px 20px rgba(80, 40, 140, .07);
  transition: transform .15s ease, box-shadow .15s ease;
}
#footer.sf .sf-store:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(80, 40, 140, .14); }
#footer.sf .sf-store > svg:first-child { width: 26px; height: 26px; color: #111; }
#footer.sf .sf-store span { display: block; font-weight: 800; font-size: 15px; line-height: 1.15; }
#footer.sf .sf-store small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
#footer.sf .sf-chev { width: 26px; height: 26px; margin-left: auto; padding: 5px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }

/* декоративные телефоны (без скриншотов и логотипа) */
#footer.sf .sf-phones { position: relative; height: 150px; }
#footer.sf .sf-phone-mock {
  position: absolute; width: 88px; height: 170px; border-radius: 20px; background: #2c2150; padding: 5px;
  box-shadow: 0 16px 30px rgba(44, 33, 80, .28);
}
#footer.sf .sf-phone-back { left: 8px; top: 8px; transform: rotate(-8deg); opacity: .9; }
#footer.sf .sf-phone-front { left: 92px; top: -4px; transform: rotate(6deg); }
#footer.sf .sf-screen {
  height: 100%; border-radius: 16px; background: linear-gradient(180deg, #fff 0%, #f4eefb 100%);
  padding: 14px 8px 8px; display: flex; flex-direction: column; gap: 6px; overflow: hidden;
}
#footer.sf .sf-scr-title { font-size: 8px; line-height: 1.2; font-weight: 800; color: var(--ink); }
#footer.sf .sf-screen i { display: block; height: 6px; border-radius: 4px; background: #e2d5f3; }
#footer.sf .sf-screen i.sf-scr-short { width: 60%; }
#footer.sf .sf-screen b { display: block; margin: 4px 0; padding: 6px 4px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 7px; text-align: center; min-height: 18px; }

/* тёмная часть */
#footer.sf .sf-main {
  position: relative; color: #e9e0f8; padding: 100px 0 0;
  background: radial-gradient(1200px 400px at 85% 0%, rgba(139, 99, 209, .35), transparent 60%), linear-gradient(180deg, #3a2572 0%, #2a1a57 55%, #22164a 100%);
}
#footer.sf .sf-wave { position: absolute; left: 0; right: 0; top: -1px; width: 100%; height: 60px; color: var(--bg, #f7f3fb); transform: scaleY(-1); }
#footer.sf .sf-inner {
  width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0 30px;
  display: grid; grid-template-columns: 1.25fr .8fr .9fr 1.2fr; gap: 28px 36px;
}
#footer.sf .sf-wordmark { display: block; font-family: var(--display); font-size: 30px; line-height: 1.02; font-weight: 700; color: #fff; }
#footer.sf .sf-wordmark span { display: block; font-size: 20px; font-weight: 600; opacity: .85; }
#footer.sf .sf-tagline { margin-top: 10px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #c9b5ee; font-weight: 700; }
#footer.sf .sf-desc { margin-top: 12px; color: #d8cdee; line-height: 1.55; max-width: 300px; }
#footer.sf .sf-cta {
  display: inline-flex; align-items: center; margin-top: 18px; padding: 11px 20px; border-radius: 999px;
  background: #fff; color: #4b2a8f; font-weight: 800; font-size: 14px;
}
#footer.sf .sf-cta:hover { color: #4b2a8f; background: #f1eafc; }
#footer.sf .sf-col { display: flex; flex-direction: column; gap: 9px; }
#footer.sf .sf-col-title { font-weight: 800; color: #fff; font-size: 16px; margin-bottom: 4px; }
#footer.sf .sf-col a { color: #d8cdee; font-size: 14.5px; line-height: 1.35; }
#footer.sf .sf-col a:hover { color: #fff; }
#footer.sf .sf-row { display: flex; gap: 10px; align-items: flex-start; color: #e3d9f5; font-size: 14.5px; line-height: 1.45; }
#footer.sf .sf-row svg { width: 17px; height: 17px; margin-top: 2px; color: #b89ee8; }
#footer.sf .sf-phone span { font-weight: 800; color: #fff; font-size: 16px; }
#footer.sf .sf-filial { display: none; flex-direction: column; gap: 9px; }
html[data-filial="oktpole"] #footer.sf .sf-filial[data-sf-filial="oktpole"],
html:not([data-filial="mitino"]):not([data-filial="krasnogorsk"]) #footer.sf .sf-filial[data-sf-filial="oktpole"],
html[data-filial="mitino"] #footer.sf .sf-filial[data-sf-filial="mitino"],
html[data-filial="krasnogorsk"] #footer.sf .sf-filial[data-sf-filial="krasnogorsk"] { display: flex; }
#footer.sf .sf-filial-name { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #c9b5ee; }
#footer.sf a.sf-more { font-size: 13.5px; color: #c9b5ee; text-decoration: underline; text-underline-offset: 3px; }
#footer.sf .sf-bottom {
  width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 20px 0 26px; border-top: 1px solid rgba(255, 255, 255, .14);
  display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 16px 32px; align-items: start;
  font-size: 12.5px; color: #bfb0dc; line-height: 1.55;
}
#footer.sf .sf-copy { color: #e9e0f8 !important; font-weight: 600; }
#footer.sf .sf-note { color: #bfb0dc !important; font-size: 12.5px; line-height: 1.55; }
#footer.sf .sf-desc, #footer.sf .sf-row, #footer.sf .sf-app-lead { opacity: 1; }
#footer.sf .sf-legal { display: flex; flex-direction: column; gap: 4px; padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .14); }
#footer.sf .sf-legal a { color: #d8cdee; }

@media (max-width: 1100px) {
  #footer.sf .sf-app { grid-template-columns: 170px minmax(0, 1fr); }
  #footer.sf .sf-stores { grid-column: 1 / -1; }
  #footer.sf .sf-inner { grid-template-columns: 1fr 1fr; }
  #footer.sf .sf-bottom { grid-template-columns: 1fr; }
  #footer.sf .sf-legal { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  #footer.sf { margin-top: 36px; }
  #footer.sf .sf-app-wrap { width: calc(100% - 24px); margin-bottom: -40px; }
  #footer.sf .sf-app { grid-template-columns: 1fr; padding: 18px 16px; border-radius: 22px; text-align: left; }
  #footer.sf .sf-phones { display: none; }
  #footer.sf .sf-app-title { font-size: 26px; }
  #footer.sf .sf-stores { grid-template-columns: 1fr; gap: 8px; }
  #footer.sf .sf-store { min-height: 52px; }
  #footer.sf .sf-main { padding-top: 70px; }
  #footer.sf .sf-inner { width: calc(100% - 32px); grid-template-columns: 1fr 1fr; gap: 26px 18px; padding-bottom: 22px; }
  #footer.sf .sf-brand, #footer.sf .sf-contacts { grid-column: 1 / -1; }
  #footer.sf .sf-contacts { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 16px; }
  #footer.sf .sf-wordmark { font-size: 26px; }
  #footer.sf .sf-col a { font-size: 14px; }
  #footer.sf .sf-bottom { width: calc(100% - 32px); padding-bottom: 90px; }
}

/* ===== fix2: выпадающее меню «Услуги» — SIS/HILT без двойного отступа (все филиалы) ===== */
.nav-dropdown span.filial-extra,
.nav-desktop .nav-dropdown span.filial-extra,
.home-header .nav-desktop .nav-dropdown span.filial-extra,
.mobile-nav .nav-dropdown span.filial-extra {
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: 0 !important;
}
.nav-desktop .nav-dropdown span.filial-extra > a,
.home-header .nav-desktop .nav-dropdown span.filial-extra > a {
  display: block;
  width: 100%;
  padding: 0.46rem 1.1rem;
  color: var(--brand);
}
.mobile-nav .nav-dropdown span.filial-extra > a {
  display: block;
  padding: 0.42rem 0.85rem;
}
.nav-desktop .nav-dropdown:not(.nav-dropdown-about) {
  align-items: center;
  min-width: 470px;
}

/* ===== fix2: шапка на телефоне — выбранный филиал (сиреневая плашка) ровно по центру ===== */
@media (max-width: 1100px) {
  .branches { align-items: center; gap: 0.3rem; }
  .branch.branch-current {
    align-self: stretch;
    align-items: center;
    padding: 0.3rem 0.5rem !important;
    border-radius: 12px;
    margin: 0;
  }
  .branch.branch-switch { align-self: center; }
}

/* ===== fix2: главная — кнопка «Смотреть всех врачей» ===== */
section.k1-doctors .k1-doctors-more { display: flex; justify-content: center; margin-top: 22px; }
section.k1-doctors .k1-doctors-more a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 999px;
  background: #7b4fc4; border: 1px solid #7b4fc4; color: #fff !important;
  font-weight: 700; font-size: 15px; text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(100, 57, 171, 0.22);
}
section.k1-doctors .k1-doctors-more a:hover { background: #6439ab; border-color: #6439ab; color: #fff !important; }

/* ===== fix2: таблицы цен на телефоне — карточки без горизонтальной прокрутки ===== */
@media (max-width: 640px) {
  .uvt-section:has(.price-table),
  .price-pane { overflow-x: visible; }
  .price-table,
  .price-table thead,
  .price-table tbody { display: block; width: 100%; min-width: 0 !important; }
  .price-table tr {
    display: flex; flex-wrap: wrap; align-items: baseline;
    gap: 0.2rem 0.75rem; padding: 0.62rem 0.85rem;
    border-bottom: 1px solid #f3ecf9;
  }
  .price-table tr:last-child { border-bottom: 0; }
  .price-table th,
  .price-table td {
    display: block; width: auto !important; padding: 0 !important; border: 0 !important;
    text-align: left !important; font-size: 0.84rem !important; line-height: 1.35;
    white-space: normal !important; overflow-wrap: anywhere; background: none;
  }
  .price-table tr > :first-child { flex: 1 1 100%; font-weight: 600; color: var(--ink); }
  .price-table tr:has(> th) { background: #d8c6ef; }
  .price-table tr.group,
  .price-table tr.pt-group { background: #c9b3e6; justify-content: center; }
  .price-table tr.group th,
  .price-table tr.pt-group th { text-align: center !important; font-weight: 800; }
  .price-table.pt-cards thead,
  .price-table.pt-cards tr.pt-head { display: none; }
  .price-table.pt-cards td[data-label] {
    flex: 1 1 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem;
  }
  .price-table.pt-cards td[data-label]::before {
    content: attr(data-label); flex: 1 1 auto; min-width: 0;
    color: var(--muted); font-weight: 500; font-size: 0.78rem; text-transform: none;
  }
  .price-table.pt-cards td[data-label] {
    text-align: right !important; font-weight: 700 !important; color: var(--brand-dark) !important;
  }
}

/* ===== fix3: хлебные крошки (pdoCrumbs) — перенос длинных названий ===== */
.breadcrumb { flex-wrap: wrap; row-gap: 0.2rem; background: transparent; padding-left: 0; padding-right: 0; }
.breadcrumb > a,
.breadcrumb > span { min-width: 0; overflow-wrap: anywhere; }

/* ===== fix4: «Наши специалисты» — кнопки карточек на одной линии ===== */
.doctors-grid { align-items: stretch; }
.doctors-grid > .doctor-card { height: 100%; }
.doctor-card .doctor-actions { margin-top: auto; padding-top: 0.75rem; }
.doctor-card .doctor-short { margin-bottom: 0; }

/* ===== fix4: «О нас» — научные руководители: карточка + факты ===== */
.uvt-section .onas-split {
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  gap: 1.25rem; align-items: start;
}
.uvt-section .onas-card {
  display: flex; flex-direction: column; align-items: stretch; text-align: left;
  padding: 1rem; min-width: 0;
}
.uvt-section .onas-card img { max-height: 360px; margin: 0.5rem 0 0.75rem; object-position: top center; }
.uvt-section .onas-card .onas-degree { text-align: left; }
.uvt-section .onas-card > p:last-child {
  display: flex; flex-direction: column; gap: 0.5rem; margin: 0.85rem 0 0 !important;
}
.uvt-section .onas-card > p:last-child .btn {
  width: 100%; margin: 0 !important; white-space: normal; text-align: center; justify-content: center; line-height: 1.25;
}
@media (max-width: 900px) {
  .uvt-section .onas-split { grid-template-columns: 1fr; }
  .uvt-section .onas-checks { grid-template-columns: 1fr; }
}
@media (min-width: 560px) and (max-width: 900px) {
  .uvt-section .onas-card {
    display: grid; grid-template-columns: 170px minmax(0, 1fr); column-gap: 1rem; align-items: start;
  }
  .uvt-section .onas-card > * { grid-column: 2; }
  .uvt-section .onas-card img { grid-column: 1; grid-row: 1 / span 5; margin: 0; max-height: none; }
}

/* ===== fix4: страницы заболеваний (шаблон «заболевания НОВЫЙ») ===== */
.dz-page { padding-bottom: 1.5rem; }
.dz-hero {
  margin: 0.4rem 0 1.4rem; padding: 1.6rem 1.8rem; border-radius: 24px; color: #fff;
  background: linear-gradient(135deg, #5b2f96 0%, #7b4fc4 60%, #9a73d6 100%);
  box-shadow: 0 18px 40px rgba(70, 32, 120, 0.18);
}
.dz-hero .dz-kicker { margin: 0 0 0.35rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #e7dcfa; }
.dz-hero h1 { margin: 0 0 0.5rem; color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.1; text-transform: none; }
.dz-hero .dz-sub, .dz-hero .dz-lead { margin: 0 0 0.6rem; color: #f1eafc; font-size: 1rem; line-height: 1.45; max-width: 760px; }
.dz-hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; }
.dz-hero-actions .btn-primary { background: #fff !important; color: #5b2f96 !important; border-color: #fff !important; }
.dz-hero-actions .btn-outline { background: transparent !important; color: #fff !important; border: 1px solid rgba(255,255,255,.7) !important; }

.dz-legacy { color: var(--ink-soft, #4a3d63); font-size: 1rem; line-height: 1.6; }
.dz-legacy .slider-container, .dz-legacy .rev_slider_wrapper, .dz-legacy .freeimg-dm,
.dz-legacy .page-header, .dz-legacy .mob-box { display: none !important; }
.dz-legacy .container, .dz-legacy .container-fluid { width: 100% !important; max-width: none !important; padding-left: 0; padding-right: 0; }
.dz-legacy .row { margin-left: -8px; margin-right: -8px; }
.dz-legacy .row > [class*="col-"] { padding-left: 8px; padding-right: 8px; }
.dz-legacy section, .dz-legacy .section { margin: 0 0 1.4rem !important; padding: 0 !important; background: none !important; border: 0 !important; }
.dz-legacy .parallax, .dz-legacy .section-parallax { min-height: 220px !important; border-radius: 20px; background-size: cover !important; background-position: center !important; }
.dz-legacy .bg-color-grey { background: #f7f2fc !important; border-radius: 20px; overflow: hidden; margin: 0 0 1rem !important; }
.dz-legacy .col-half-section { max-width: none; padding: 1.2rem 1.4rem !important; margin: 0 !important; }
.dz-legacy h1, .dz-legacy h2, .dz-legacy h3, .dz-legacy h4 {
  color: #2a2350 !important; font-family: var(--font); font-weight: 800; letter-spacing: -0.01em;
  text-transform: none; line-height: 1.25; margin: 1.4rem 0 0.7rem;
}
.dz-legacy h2 { font-size: 1.55rem; }
.dz-legacy h3 { font-size: 1.25rem; }
.dz-legacy h4 { font-size: 1.08rem; }
.dz-legacy h5, .dz-legacy h6 { color: #5b2f96; font-weight: 800; text-transform: none; font-size: 1rem; margin: 1.1rem 0 0.5rem; }
.dz-legacy .text-uppercase { text-transform: none !important; }
.dz-legacy p, .dz-legacy li { color: var(--ink-soft, #4a3d63); font-size: 1rem; line-height: 1.6; }
.dz-legacy .lead, .dz-legacy .text-4 { font-size: 1rem !important; line-height: 1.6 !important; }
.dz-legacy ul:not(.nav) { padding-left: 1.2rem; }
.dz-legacy img { max-width: 100%; height: auto; border-radius: 16px; }
.dz-legacy iframe { max-width: 100%; border-radius: 16px; }
.dz-legacy a:not(.btn):not(.nav-link) { color: #7b4fc4; text-decoration: underline; text-underline-offset: 2px; }
.dz-legacy [style*="color:white"], .dz-legacy [style*="color: white"], .dz-legacy .text-light, .dz-legacy .text-color-light { color: inherit; }
.dz-legacy .quote2, .dz-legacy blockquote {
  background: #f7f2fc !important; border: 1px solid #ece2f7 !important; border-left: 4px solid #7b4fc4 !important;
  border-radius: 16px; padding: 1rem 1.2rem !important; margin: 1rem 0 1.2rem !important; font-style: normal;
}
.dz-legacy .quote2 * { color: #2a2350 !important; }
.dz-legacy blockquote p { margin: 0 0 0.5rem; font-size: 1rem; }
.dz-legacy .divider { margin: 0.8rem 0; }
.dz-legacy .btn, .dz-legacy .btn-primary {
  border-radius: 999px !important; padding: 0.6rem 1.2rem; font-weight: 700; text-transform: none;
  background: #7b4fc4; border-color: #7b4fc4; color: #fff !important; box-shadow: 0 8px 18px rgba(100,57,171,.18);
}
.dz-legacy .btn:hover { background: #5b2f96; border-color: #5b2f96; }
/* цены: вкладки филиалов и таблицы */
.dz-legacy .tabs { margin: 0 0 1.2rem; border: 0; box-shadow: none; }
.dz-legacy .nav-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; border: 0 !important; margin: 0 0 0.8rem; padding: 0; }
.dz-legacy .nav-tabs .nav-item { margin: 0 !important; flex: 0 0 auto; }
.dz-legacy .nav-tabs .nav-link {
  border: 1px solid #e3d6f4 !important; border-radius: 999px !important; background: #fff !important;
  color: #5b2f96 !important; padding: 0.5rem 1.1rem !important; font-size: 0.9rem;
}
.dz-legacy .nav-tabs .nav-link.active, .dz-legacy .nav-tabs .active > .nav-link { background: #5b2f96 !important; border-color: #5b2f96 !important; color: #fff !important; }
.dz-legacy .tab-content { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.dz-legacy .table-responsive { border-radius: 14px; margin: 0 0 1rem; }
.dz-legacy table.table {
  width: 100%; background: #fff !important; border-collapse: separate; border-spacing: 0;
  border: 1px solid #efe8f6 !important; border-radius: 14px; overflow: hidden; margin: 0;
  box-shadow: 0 8px 22px rgba(80,40,140,.05);
}
.dz-legacy table.table th, .dz-legacy table.table td {
  border: 0 !important; border-bottom: 1px solid #f3ecf9 !important; padding: 0.65rem 0.85rem !important;
  font-size: 0.9rem; color: #2a2350; vertical-align: middle; white-space: normal; background: none;
}
.dz-legacy table.table tr:first-child th, .dz-legacy table.table thead th { background: #d8c6ef !important; color: #3d2b62; font-weight: 700; }
.dz-legacy table.table tr:last-child td { border-bottom: 0 !important; }
.dz-legacy table.table td:not(:first-child) { white-space: nowrap; font-weight: 700; color: #5b2f96; }
/* FAQ-переключатели Porto */
.dz-legacy .toggle > section, .dz-legacy .toggle > .toggle-item {
  border: 1px solid #efe8f6 !important; border-radius: 14px; margin: 0 0 0.5rem !important; background: #fff !important;
}
.dz-legacy .toggle label, .dz-legacy .toggle > section > label {
  background: none !important; color: #2a2350 !important; font-weight: 700; border: 0 !important; padding: 0.8rem 1rem 0.8rem 2.2rem !important;
}
@media (max-width: 767px) {
  .dz-hero { padding: 1.2rem 1.1rem; border-radius: 20px; }
  .dz-legacy { font-size: 0.95rem; }
  .dz-legacy h2 { font-size: 1.3rem; }
  .dz-legacy h3 { font-size: 1.12rem; }
  .dz-legacy table.table th, .dz-legacy table.table td { padding: 0.5rem 0.55rem !important; font-size: 0.82rem; }
  .dz-legacy table.table td:not(:first-child) { white-space: normal; }
  .dz-legacy .nav-tabs .nav-item { flex: 1 1 auto; }
  .dz-legacy .nav-tabs .nav-link { text-align: center; }
  .dz-legacy .parallax, .dz-legacy .section-parallax { min-height: 160px !important; }
}

/* ===================== fix5 ===================== */

/* 1. Disease pages: hide legacy price block with branch tabs (inside page content) */
.dz-legacy div:has(> h2 + div .tabs),
.dz-legacy h2:has(+ div .tabs),
.dz-legacy h2 + div:has(.tabs) { display: none !important; }

/* 2. Physiotherapy: "types" list inside polza-band (ul, not numbered ol) */
.polza-band ul {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 2rem;
}
.polza-band ul li {
  display: block;
  position: relative;
  margin: 0 0 0.5rem;
  padding: 0 0 0 1.15rem;
  break-inside: avoid;
  font-size: 0.95rem;
  line-height: 1.45;
}
.polza-band ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f0e4ff;
}
@media (max-width: 640px) {
  .polza-band ul { columns: 1; }
}

/* 3. Useful info (stati): links styled like "Lechim" block */
.util-page .uvt-section:has(> .stati-list) {
  padding: 28px 24px 30px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(123, 79, 196, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 45% at 85% 70%, rgba(123, 79, 196, 0.07), transparent 55%),
    #f4eefb;
}
.util-page .uvt-section .stati-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
  padding: 20px 22px 14px;
  list-style: none;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(80, 40, 140, 0.06);
}
.util-page .uvt-section .stati-list li { margin: 0; padding: 0 0 9px; }
.util-page .uvt-section .stati-list a {
  display: inline;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #4a3d68;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
}
.util-page .uvt-section .stati-list a:hover { color: #7b4fc4; }
@media (max-width: 760px) {
  .util-page .uvt-section:has(> .stati-list) { padding: 18px 12px 20px; }
  .util-page .uvt-section .stati-list { grid-template-columns: 1fr; padding: 16px 16px 10px; }
}

/* 4. LFK process / Treatment program: centered layout */
.util-page--center .service-hero.service-hero--solo {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.util-page--center .service-hero--solo .header-actions { justify-content: center; }
.util-page--center .uvt-section.article-prose {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

/* 6. Physical rehabilitation hub: cards with photo */
.problem-card.problem-card--photo {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.problem-card--photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ece4f6;
}
.problem-card--photo h3 { margin: 0; padding: 0.95rem 1.05rem 1.1rem; color: #2a1848; }
.problem-card--photo:hover { transform: translateY(-3px); }
.problem-card--photo:hover h3 { color: #7b4fc4; }
@media (max-width: 760px) {
  .problem-grid.problem-grid--photo { grid-template-columns: 1fr; }
}

/* 8. Consultation page */
.kons-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: center;
}
.kons-intro .article-prose { max-width: none; margin: 0; }
.kons-intro .kons-actions { margin: 0.25rem 0 0; }
.kons-photo img,
.kons-methods-photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 20px;
  background: #ece4f6;
  box-shadow: 0 10px 28px rgba(80, 40, 140, 0.08);
}
.kons-photo img { aspect-ratio: 4 / 3; }
.kons-methods {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1.5rem;
  align-items: stretch;
}
.kons-methods-card {
  background: #fff;
  border-radius: 20px;
  padding: 22px 24px 18px;
  box-shadow: 0 10px 28px rgba(80, 40, 140, 0.06);
}
.kons-methods-list { list-style: none; margin: 0; padding: 0; }
.kons-methods-list > li {
  position: relative;
  margin: 0;
  padding: 0 0 9px 1.15rem;
  color: #4a3d68;
  font-size: 15px;
  line-height: 1.4;
}
.kons-methods-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7b4fc4;
}
.kons-methods-list a { color: #4a3d68; text-decoration: none; }
.kons-methods-list a:hover { color: #7b4fc4; }
.kons-methods-list .kons-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 8px 0 4px;
  padding: 0;
}
.kons-methods-list .kons-sub li {
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f4eefb;
  color: #5c4a84;
  font-size: 13px;
  line-height: 1.3;
}
.kons-methods-photo img { max-height: none; min-height: 260px; }
.k1-doctors-more { gap: 10px; flex-wrap: wrap; }
.k1-doctors-more a.k1-more-outline {
  background: #fff;
  color: #7b4fc4 !important;
  box-shadow: none;
}
.k1-doctors-more a.k1-more-outline:hover { background: #f4eefb; color: #6439ab !important; }
@media (max-width: 860px) {
  .kons-intro,
  .kons-methods { grid-template-columns: 1fr; gap: 1.1rem; }
  .kons-methods-photo img { min-height: 0; aspect-ratio: 4 / 3; }
}

/* ===================== fix6 ===================== */

/* Useful info hub (id 69): article cards */
.st-list { max-width: 1110px; margin-left: auto; margin-right: auto; }
.st-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.util-page a.st-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 150px;
  padding: 20px 20px 18px;
  background: #fff;
  border: 1px solid #efe8f6;
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(80, 40, 140, 0.06);
  color: #1f1638;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.util-page a.st-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8b63d1, #6439ab);
  opacity: 0;
  transition: opacity .2s ease;
}
.st-card-title {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  color: #1f1638;
  transition: color .2s ease;
}
.st-card-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7b4fc4;
  font-size: 14px;
  font-weight: 700;
}
.st-card-more svg { transition: transform .2s ease; }
.util-page a.st-card:hover,
.util-page a.st-card:focus-visible {
  transform: translateY(-3px);
  border-color: #d9c8f2;
  box-shadow: 0 14px 30px rgba(80, 40, 140, 0.12);
  color: #1f1638;
}
.util-page a.st-card:hover::before,
.util-page a.st-card:focus-visible::before { opacity: 1; }
.util-page a.st-card:hover .st-card-title { color: #62339b; }
.util-page a.st-card:hover .st-card-more svg { transform: translateX(4px); }
@media (max-width: 1000px) {
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .st-grid { grid-template-columns: 1fr; gap: 12px; }
  .util-page a.st-card { min-height: 0; padding: 16px 16px 14px; }
}

/* Article pages (template "статья НОВЫЙ") */
.st-page .dz-kicker a { color: inherit; text-decoration: none; }
.st-page .dz-kicker a:hover { text-decoration: underline; }

/* ===================== fix7 ===================== */

/* 1. Home hero: align with header container, center doctors in photo */
.k1-hero .k1-hero-grid,
.k1-partners .k1-partners-grid { width: min(1110px, calc(100% - 30px)); }
.k1-hero .k1-photo { background-position: 76% bottom; }
@media (max-width: 900px) {
  .k1-hero .k1-hero-grid { width: calc(100% - 30px); }
  .k1-hero .k1-photo { min-height: 0; aspect-ratio: 16 / 10; background-position: 74% bottom; }
}

/* 2. Accessibility button: never over header buttons.
   >=1400: as before; 1101-1399: compact eye top-right; <=1100: small tab on the right edge */
@media (max-width: 1399px) {
  #specialButton {
    display: block;
    width: 42px;
    height: 36px;
    padding: 2px 0 0 4px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e3d8f2;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(80, 40, 140, 0.10);
  }
  #specialButton img {
    max-width: none !important;
    width: auto;
    height: 30px;
    display: block;
  }
}
@media (max-width: 1100px) {
  #specialButton {
    position: fixed !important;
    top: 42% !important;
    right: 0 !important;
    z-index: 1040 !important;
    border-right: 0;
    border-radius: 10px 0 0 10px;
  }
}


/* ===== FULL WIDTH (Вадим) — дописать В САМЫЙ КОНЕЦ styles.css ===== */
/* Было: контент 1180–1240px по центру. Стало: до 1440px, поля по бокам 16–40px. */
:root { --k1-wide: 1440px; --k1-gutter: clamp(16px, 2.6vw, 40px); }

html body .container,
html body #footer.site-footer .container,
html body #footer.sf .sf-app-wrap,
html body #footer.sf .sf-inner,
html body #footer.sf .sf-bottom,
html body .k1-hero .k1-hero-grid,
html body .k1-hero-grid,
html body .k1-partners .k1-partners-grid,
html body .k1-partners-grid,
html body .k1-services,
html body .k1-lechim-inner,
html body .k1-benefits-wrap,
html body .k1-doctors,
html body .k1-reviews,
html body .k1-rv,
html body .k1-about,
html body .k1-licenses,
html body .k1-news,
html body .k1-cta {
  width: min(var(--k1-wide), calc(100% - 2 * var(--k1-gutter))) !important;
  max-width: none !important;
}
html body .st-list { max-width: none !important; }


/* ВАРИАНТ Б (по желанию): цветные плашки блоков во всю ширину экрана, без скруглений.
   Раскомментировать, если нужно «совсем без полей».
html body .k1-rv-panel,
html body .k1-reviews-panel {
  border-radius: 0;
  box-shadow: 0 0 0 100vmax #f4eefb;
  clip-path: inset(0 -100vmax);
}
*/

/* ===== upd1410: «Выберите филиал» над филиалами + бургер всегда справа ===== */
.branches[data-filial-view] { flex-wrap: wrap; row-gap: 0.2rem; }
.branches[data-filial-view]::before {
  content: "Выберите филиал";
  flex: 0 0 100%;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #62339b;
  line-height: 1.2;
  padding-bottom: 0.15rem;
}
.branches[data-filial-view] > .branch { flex: 1 1 0; }
@media (max-width: 1100px) {
  .topbar-inner { flex-wrap: wrap; }
  .topbar-inner > .brand { order: 1; flex: 0 1 auto; min-width: 0; }
  .topbar-inner > .brand img { width: min(190px, 36vw) !important; height: auto !important; }
  .topbar-inner > .brand + span { order: 2; flex: 1 1 0; min-width: 0; font-size: 0.8rem; line-height: 1.15; }
  .topbar-inner > .btn-primary { order: 3; flex: 0 0 auto; margin-left: auto; }
  .topbar-inner { position: relative; padding-right: 50px; }
  .topbar-inner > .nav-toggle { position: absolute; right: 0; top: 0.55rem; margin: 0; }
  .topbar-inner > .branches { order: 5; flex: 1 1 100%; }
  .branches[data-filial-view]::before { font-size: 0.95rem; }
}
@media (max-width: 480px) {
  .topbar-inner > .brand + span { display: none; }
  .branches[data-filial-view]::before { font-size: 0.88rem; }
}
@media (max-width: 400px) {
  .topbar-inner { gap: 0.35rem; }
  .topbar-inner > .brand img { width: min(150px, 36vw) !important; }
  .topbar-inner > .btn-primary { padding: 0.45rem 0.6rem !important; font-size: 0.72rem !important; }
  .topbar-inner { padding-right: 44px; }
  .topbar-inner > .nav-toggle { width: 38px; height: 38px; }
}
