/* Стоматология Коралл — premium design system */

:root {
  /* Brand — normalized burgundy coral */
  --coral: #8F1D32;
  --coral-dark: #681323;
  --coral-deep: #4A101C;
  --coral-light: #C94D5D;
  --coral-accent: #8F1D32;
  --btn: #B82E40;
  --btn-hover: #8F1D32;
  --gold: var(--coral);
  --gold-dark: var(--coral-dark);
  --green: var(--coral);
  --green-light: var(--coral-light);
  --dark: #30272A;
  --dark-bg: #4A101C;
  --text: #30272A;
  --text-muted: #827579;
  --white: #FFFCFA;
  --bg-light: #FFFCFA;
  --bg-warm: #FFFCFA;
  --line: #E9D8D8;
  --line-strong: rgba(48, 39, 42, 0.16);
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 10px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(48, 39, 42, 0.04);
  --shadow-md: 0 8px 28px rgba(48, 39, 42, 0.06);
  --shadow-lg: 0 18px 48px rgba(48, 39, 42, 0.08);
  --container: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.35s;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 80px;
  --coral-gutter: clamp(48px, 10vw, 148px);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

body {
  color: var(--text);
  background: var(--white);
  font-weight: 400;
  line-height: 1.65;
  position: relative;
  overflow-x: visible;
}

/* Light sections — flat soft white; burgundy blocks keep their own rules */
main > section:not(.consultation):not(.page-hero),
.page-content,
.about,
.values,
.team,
.reviews,
.map-section,
#services,
#before-after,
.hero {
  background: var(--white) !important;
  background-image: none !important;
}

/* ── Typography ── */
h1, h2, h3, h4,
.hero-title,
.section-title,
.page-hero h1,
.doctor-info h3,
.doctor-profile-info h2,
.promo-card-body h3,
.consultation-text h2,
.service-body h3,
.value-card h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--dark);
  line-height: 1.15;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

.section-subtitle a {
  color: var(--coral-dark);
  border-bottom: 1px solid rgba(122, 46, 46, 0.25);
  transition: border-color 0.2s var(--ease);
}

.section-subtitle a:hover {
  border-bottom-color: var(--coral-dark);
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 440px;
  line-height: 1.75;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  color: #fff;
  font-weight: 500;
}

.page-hero p {
  color: rgba(255, 252, 250, 0.72);
  font-size: 0.9375rem;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.7;
}

/* ── Logo (brand lockup) ── */
.logo,
.logo-brand {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
  min-width: auto;
  max-width: none;
  text-decoration: none;
  color: inherit;
  line-height: 0;
}

.header .logo-img,
.logo-img {
  display: block !important;
  width: 204px !important;
  height: 64px !important;
  max-width: 204px !important;
  max-height: 64px !important;
  min-width: 204px !important;
  min-height: 64px !important;
  object-fit: contain !important;
}

.logo-mark,
.logo-text,
.logo-icon {
  display: none !important;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 16px;
  text-decoration: none;
  color: inherit;
  line-height: 0;
}

.footer-logo-img {
  display: block !important;
  width: auto;
  height: 48px;
  max-width: 200px;
  object-fit: contain;
}

.footer-brand-text,
.logo-mark--footer {
  display: none !important;
}

/* ── Header ── */
.header {
  background: #FFFCFA;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: none;
  border-bottom: 1px solid rgba(176, 69, 73, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  background: var(--white);
  color: var(--text-muted);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  padding: 9px 0;
  border-bottom: 1px solid rgba(176, 69, 73, 0.08);
}

.header-top a {
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.header-top a:hover {
  color: var(--coral);
}

.header-top-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.header-a11y-btn {
  background: transparent;
  color: var(--coral-dark);
  border: 1px solid rgba(176, 69, 73, 0.28);
  border-radius: var(--radius);
  padding: 6px 12px;
  font-family: var(--font-family);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.header-a11y-btn:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

.header-socials a {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 4px;
}

.header-socials a:hover {
  color: var(--coral);
}

.header-main {
  padding: 12px 0;
}

.header-main .container {
  align-items: center;
  flex-wrap: nowrap;
  gap: 32px;
  min-width: 0;
}

.header-main::after {
  display: none;
}

.nav {
  gap: 18px;
  align-items: center;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
  min-width: 0;
}

.header .nav a,
.header .nav a.active,
.nav a {
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text);
  position: relative;
  padding: 8px 0;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s var(--ease);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--coral);
  transition: width 0.25s var(--ease);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav a:hover,
.nav a.active {
  color: var(--coral) !important;
}

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

.header-phones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.header-phone {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--dark);
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--coral);
}

.header-actions .btn-primary {
  padding: 11px 20px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.03em !important;
  line-height: 1 !important;
  min-height: 40px;
  align-self: center;
  background: var(--btn) !important;
  border-color: var(--btn) !important;
}

.header-actions .btn-primary:hover {
  background: var(--btn-hover) !important;
  border-color: var(--btn-hover) !important;
}

/* ── Buttons ── */
.btn {
  border-radius: var(--radius) !important;
  padding: 13px 26px !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease) !important;
  transform: none !important;
}

.btn-primary,
.btn-green {
  background: var(--btn) !important;
  color: #fff !important;
  border: 1px solid var(--btn) !important;
  box-shadow: none !important;
}

.btn-primary:hover,
.btn-green:hover {
  background: var(--btn-hover) !important;
  border-color: var(--btn-hover) !important;
  box-shadow: none !important;
  transform: none !important;
}

.btn-outline {
  background: transparent !important;
  border: 1px solid var(--line-strong) !important;
  color: var(--dark) !important;
}

.btn-outline:hover {
  background: var(--dark-bg) !important;
  border-color: var(--dark-bg) !important;
  color: #fff !important;
}

.service-body .btn,
.doctor-actions .btn {
  padding: 10px 18px !important;
  font-size: 0.75rem !important;
}

/* ── Hero ── */
.hero {
  background: var(--white);
}

/* coral watermarks enabled below in coral motifs block */

.hero-slide {
  background: var(--white) !important;
  min-height: 440px;
  padding: 48px 0;
}

.hero-slide-inner {
  gap: 40px;
  grid-template-columns: minmax(0, 640px);
  justify-content: start;
}

.hero-image {
  border-radius: var(--radius);
  aspect-ratio: 5/4;
  box-shadow: var(--shadow-md);
}

.hero-badge,
.promo-card-badge,
.case-tag {
  background: transparent !important;
  color: var(--coral-dark) !important;
  border: none !important;
  border-bottom: 1px solid var(--coral) !important;
  border-radius: 0 !important;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 0 6px 0;
  margin-bottom: 20px;
}

.doctor-badge {
  z-index: 1;
  background: rgba(255, 252, 250, 0.95) !important;
  color: var(--dark) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: none;
  backdrop-filter: blur(4px);
}

.hero-price-current {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--coral-dark) !important;
}

.hero-price-old {
  font-size: 1rem;
  color: var(--text-muted);
}

.hero-dot {
  width: 6px;
  height: 6px;
  background: var(--line-strong);
  border-radius: 50%;
}

.hero-dot.active {
  background: var(--coral-dark);
  width: 6px;
  border-radius: 50%;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
  color: var(--dark);
}

.hero-arrow:hover {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

/* ── Sections: tighter rhythm ── */
section {
  padding: clamp(36px, 4.2vw, 56px) 0;
}

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

.coral-decor {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
}

/* Header stays full-bleed so side corals never sit in the header strip */
.header {
  position: sticky;
  z-index: 100;
  margin-left: 0;
  margin-right: 0;
}

main {
  position: relative;
  z-index: 1;
  margin-left: var(--coral-gutter);
  margin-right: var(--coral-gutter);
}

/* Footer full-bleed — covers gutters, no side corals beside it */
.footer {
  position: relative;
  z-index: 1;
  margin-left: 0;
  margin-right: 0;
}

/* Side coral compositions — строго в желобе, не заходят на текст */
.coral-side {
  position: absolute;
  top: var(--coral-top, 118px);
  bottom: var(--coral-bottom, 0px);
  width: var(--coral-gutter);
  max-width: var(--coral-gutter);
  box-sizing: border-box;
  opacity: 0.72;
  background-repeat: repeat-y;
  background-attachment: scroll;
  pointer-events: none;
  overflow: hidden;
}

.coral-side--left {
  left: 0;
  background-image: url('../img/coral-side-left.png');
  background-size: 155% auto;
  background-position: left -4% top;
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0, #000 32px, #000 calc(100% - 40px), transparent 100%),
    linear-gradient(
      90deg,
      #000 0%,
      #000 28%,
      rgba(0, 0, 0, 0.92) 42%,
      rgba(0, 0, 0, 0.72) 55%,
      rgba(0, 0, 0, 0.42) 68%,
      rgba(0, 0, 0, 0.18) 82%,
      transparent 100%
    );
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(180deg, transparent 0, #000 32px, #000 calc(100% - 40px), transparent 100%),
    linear-gradient(
      90deg,
      #000 0%,
      #000 28%,
      rgba(0, 0, 0, 0.92) 42%,
      rgba(0, 0, 0, 0.72) 55%,
      rgba(0, 0, 0, 0.42) 68%,
      rgba(0, 0, 0, 0.18) 82%,
      transparent 100%
    );
  mask-composite: intersect;
}

.coral-side--right {
  right: 0;
  background-image: url('../img/coral-side-right.png');
  background-size: 160% auto;
  background-position: right -6% 24px;
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0, #000 32px, #000 calc(100% - 40px), transparent 100%),
    linear-gradient(
      270deg,
      #000 0%,
      #000 28%,
      rgba(0, 0, 0, 0.92) 42%,
      rgba(0, 0, 0, 0.72) 55%,
      rgba(0, 0, 0, 0.42) 68%,
      rgba(0, 0, 0, 0.18) 82%,
      transparent 100%
    );
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(180deg, transparent 0, #000 32px, #000 calc(100% - 40px), transparent 100%),
    linear-gradient(
      270deg,
      #000 0%,
      #000 28%,
      rgba(0, 0, 0, 0.92) 42%,
      rgba(0, 0, 0, 0.72) 55%,
      rgba(0, 0, 0, 0.42) 68%,
      rgba(0, 0, 0, 0.18) 82%,
      transparent 100%
    );
  mask-composite: intersect;
}

/* Soft vertical fade so tiling feels continuous, not chopped */
.coral-side--left::before,
.coral-side--right::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 252, 250, 0.22) 0%,
    transparent 10%,
    transparent 90%,
    rgba(255, 252, 250, 0.16) 100%
  );
}

@media (max-width: 1100px) {
  :root {
    --coral-gutter: clamp(32px, 7vw, 96px);
  }

  .coral-side {
    opacity: 0.55;
    width: var(--coral-gutter);
    max-width: var(--coral-gutter);
  }

  .coral-side--left,
  .coral-side--right {
    background-size: 140% auto;
  }
}

@media (max-width: 768px) {
  :root {
    --coral-gutter: 18px;
  }

  .coral-side {
    opacity: 0.3;
    width: var(--coral-gutter);
    max-width: var(--coral-gutter);
  }

  .coral-side--left,
  .coral-side--right {
    background-size: 180% auto;
  }
}

@media (max-width: 480px) {
  :root {
    --coral-gutter: 12px;
  }

  .coral-side {
    opacity: 0.22;
    width: var(--coral-gutter);
    max-width: var(--coral-gutter);
  }
}

/* Legacy pieces */
.coral-edge,
.coral-decor__piece,
.coral-side__cluster {
  display: none !important;
}

@keyframes coral-sway {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, 10px, 0) rotate(1.5deg); }
}

@keyframes coral-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(6px, -12px, 0); }
}

.coral-decor__piece--tr {
  animation-name: coral-sway-flip;
}

@keyframes coral-sway-flip {
  0%, 100% { transform: scaleX(-1) translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: scaleX(-1) translate3d(0, 10px, 0) rotate(-1.5deg); }
}

.coral-decor__piece--bl {
  animation-name: coral-drift-flip;
}

@keyframes coral-drift-flip {
  0%, 100% { transform: scaleX(-1) rotate(-8deg) translate3d(0, 0, 0); }
  50% { transform: scaleX(-1) rotate(-8deg) translate3d(6px, -12px, 0); }
}

.coral-decor__piece--mr {
  animation-name: coral-mr-drift;
}

@keyframes coral-mr-drift {
  0%, 100% { transform: scaleX(-1) rotate(-10deg) translate3d(0, 0, 0); }
  50% { transform: scaleX(-1) rotate(-10deg) translate3d(4px, -10px, 0); }
}

.coral-decor__piece--ml {
  animation-name: coral-ml-sway;
}

@keyframes coral-ml-sway {
  0%, 100% { transform: rotate(12deg) translate3d(0, 0, 0); }
  50% { transform: rotate(12deg) translate3d(0, 8px, 0); }
}

.coral-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0;
  margin: -18px 0 -14px;
  color: var(--coral);
  opacity: 0.28;
  pointer-events: none;
  position: relative;
  z-index: 2;
}

.coral-divider::before,
.coral-divider::after {
  content: '';
  height: 1px;
  width: min(120px, 18vw);
  background: linear-gradient(90deg, transparent, rgba(150, 58, 58, 0.35), transparent);
}

.coral-divider svg {
  width: 42px;
  height: 42px;
  display: block;
}

/* Section coral watermarks */
.hero,
.about,
.values,
.team,
.reviews,
.map-section,
.page-content,
main > section {
  position: relative;
  isolation: isolate;
}

/* Photos in «Улыбки» must not share an isolated compositing group with
   the cream section background and the translucent ::before watermark.
   That GPU flatten path blows highlights and washes midtones. */
#before-after,
.page-content {
  isolation: auto;
}

.hero::before,
.page-hero::before {
  content: '';
  position: absolute;
  inset: auto auto -8% -4%;
  width: min(340px, 48vw);
  height: min(300px, 42vw);
  background-color: var(--coral);
  opacity: 0.07;
  -webkit-mask: url('../img/coral-cluster.svg') center / contain no-repeat;
  mask: url('../img/coral-cluster.svg') center / contain no-repeat;
  pointer-events: none;
  z-index: 0;
  animation: coral-drift 22s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  top: 6%;
  right: -2%;
  width: min(200px, 32vw);
  height: min(240px, 38vw);
  background-color: var(--coral);
  opacity: 0.06;
  -webkit-mask: url('../img/coral-branch.svg') center / contain no-repeat;
  mask: url('../img/coral-branch.svg') center / contain no-repeat;
  pointer-events: none;
  z-index: 0;
  transform: scaleX(-1);
  animation: coral-sway 16s ease-in-out infinite;
}

.values::before,
.team::before,
.reviews::before {
  content: '';
  position: absolute;
  top: 12%;
  right: -30px;
  width: 160px;
  height: 200px;
  background-color: var(--coral);
  opacity: 0.06;
  -webkit-mask: url('../img/coral-branch.svg') center / contain no-repeat;
  mask: url('../img/coral-branch.svg') center / contain no-repeat;
  pointer-events: none;
  z-index: 0;
}

.about::before,
#services::before,
#before-after::before {
  content: '';
  position: absolute;
  bottom: 4%;
  left: -24px;
  width: 140px;
  height: 170px;
  background-color: var(--coral);
  opacity: 0.055;
  -webkit-mask: url('../img/coral-corner.svg') center / contain no-repeat;
  mask: url('../img/coral-corner.svg') center / contain no-repeat;
  pointer-events: none;
  z-index: 0;
}

.consultation,
.footer,
.page-hero {
  position: relative;
  overflow: hidden;
}

.consultation::before,
.footer::before,
.page-hero::after {
  content: '';
  position: absolute;
  width: min(420px, 55vw);
  height: min(360px, 48vw);
  background-color: #fff;
  opacity: 0.07;
  -webkit-mask: url('../img/coral-cluster.svg') center / contain no-repeat;
  mask: url('../img/coral-cluster.svg') center / contain no-repeat;
  pointer-events: none;
  z-index: 0;
}

.consultation::before {
  top: -12%;
  right: -8%;
  animation: coral-sway 18s ease-in-out infinite;
}

.consultation::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -6%;
  width: min(240px, 40vw);
  height: min(280px, 46vw);
  background-color: #fff;
  opacity: 0.05;
  -webkit-mask: url('../img/coral-branch.svg') center / contain no-repeat;
  mask: url('../img/coral-branch.svg') center / contain no-repeat;
  pointer-events: none;
  z-index: 0;
  transform: scaleX(-1);
}

.footer::before {
  bottom: -16%;
  left: -4%;
  opacity: 0.06;
}

.footer::after {
  content: '';
  position: absolute;
  top: 10%;
  right: -5%;
  width: min(220px, 36vw);
  height: min(260px, 42vw);
  background-color: #fff;
  opacity: 0.05;
  -webkit-mask: url('../img/coral-branch.svg') center / contain no-repeat;
  mask: url('../img/coral-branch.svg') center / contain no-repeat;
  pointer-events: none;
  z-index: 0;
  transform: scaleX(-1) rotate(6deg);
}

.page-hero::after {
  top: -20%;
  right: -10%;
  opacity: 0.08;
}

.page-hero::before {
  inset: auto -6% -18% auto;
  left: auto;
  right: -6%;
  bottom: -18%;
  background-color: #fff;
  opacity: 0.06;
  transform: scaleX(-1);
}

.hero > *,
.about > *,
.values > *,
.team > *,
.reviews > *,
.map-section > *,
#services > *,
#before-after > *,
.consultation > *,
.footer > *,
.page-hero > * {
  position: relative;
  z-index: 1;
}

.section-header {
  position: relative;
}

.section-header::after {
  content: '';
  display: block;
  width: 28px;
  height: 28px;
  margin: 16px auto 0;
  background-color: var(--coral);
  opacity: 0.28;
  -webkit-mask: url('../img/coral-corner.svg') center / contain no-repeat;
  mask: url('../img/coral-corner.svg') center / contain no-repeat;
}

.section-header[style*="text-align:left"]::after,
.section-header.text-left::after {
  margin-left: 0;
}

/* Hide decorative corals in a11y image-off / high-contrast modes */
[data-a11y-images="off"] .coral-decor,
[data-a11y-images="off"] .coral-edge,
[data-a11y-images="off"] .coral-side,
[data-a11y-images="off"] .coral-divider,
[data-a11y-images="off"] .hero::before,
[data-a11y-images="off"] .hero::after,
[data-a11y-images="off"] .page-hero::before,
[data-a11y-images="off"] .page-hero::after,
[data-a11y-images="off"] .values::before,
[data-a11y-images="off"] .team::before,
[data-a11y-images="off"] .reviews::before,
[data-a11y-images="off"] .about::before,
[data-a11y-images="off"] #services::before,
[data-a11y-images="off"] #before-after::before,
[data-a11y-images="off"] .consultation::before,
[data-a11y-images="off"] .consultation::after,
[data-a11y-images="off"] .footer::before,
[data-a11y-images="off"] .footer::after,
[data-a11y-images="off"] .section-header::after,
[data-a11y-color] .coral-decor,
[data-a11y-color] .coral-edge,
[data-a11y-color] .coral-side,
[data-a11y-color] .coral-divider,
[data-a11y-color] .hero::before,
[data-a11y-color] .hero::after,
[data-a11y-color] .page-hero::before,
[data-a11y-color] .page-hero::after,
[data-a11y-color] .values::before,
[data-a11y-color] .team::before,
[data-a11y-color] .reviews::before,
[data-a11y-color] .about::before,
[data-a11y-color] #services::before,
[data-a11y-color] #before-after::before,
[data-a11y-color] .consultation::before,
[data-a11y-color] .consultation::after,
[data-a11y-color] .footer::before,
[data-a11y-color] .footer::after,
[data-a11y-color] .section-header::after {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .coral-decor__piece,
  .hero::before,
  .hero::after,
  .consultation::before {
    animation: none !important;
  }
}

@media (max-width: 768px) {
  .coral-decor__piece--tr,
  .coral-decor__piece--br,
  .coral-decor__piece--mr,
  .coral-decor__piece--ml {
    display: none;
  }

  .coral-decor__piece--tl,
  .coral-decor__piece--bl {
    width: 130px;
    height: 160px;
    opacity: 0.1;
  }

  .section-header::after {
    width: 28px;
    height: 28px;
    margin-top: 14px;
  }
}

/* ── Sections ── */
section {
  padding: clamp(36px, 4.2vw, 56px) 0;
}

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

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

.values-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.value-card {
  background: var(--white);
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  padding: 36px 24px;
  text-align: left;
  transition: background 0.2s var(--ease);
}

.value-card:hover {
  transform: none;
  background: rgba(143, 29, 50, 0.03);
}

.value-index {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  color: var(--coral);
  opacity: 0.45;
  line-height: 1;
  margin-bottom: 20px;
}

.value-icon {
  display: none !important;
}

.value-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.8125rem;
  line-height: 1.65;
}

/* ── Cards ── */
.service-card,
.doctor-card,
.review-card,
.rating-card,
.promo-card {
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
  border-radius: var(--radius) !important;
  transition: box-shadow 0.25s var(--ease);
}

.service-card:hover,
.doctor-card:hover,
.promo-card:hover {
  transform: none !important;
  box-shadow: var(--shadow-md) !important;
}

.service-image {
  height: 220px;
  background: var(--bg-light);
  position: relative;
}

.service-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.service-body {
  padding: 28px;
}

.service-body h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.service-body p {
  font-size: 0.875rem;
  margin-bottom: 20px;
}

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

.doctor-photo {
  height: 340px;
  background: var(--bg-warm);
  position: relative;
  overflow: hidden;
}

.doctor-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.doctor-info {
  padding: 28px 24px 32px;
  text-align: left;
}

.doctor-info h3 {
  font-size: 1.25rem;
}

.doctor-info .role {
  color: var(--coral-dark) !important;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.doctor-actions {
  justify-content: flex-start;
}

.review-card {
  padding: 32px;
  border-left: 2px solid var(--coral) !important;
}

.review-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.review-card-link:hover .review-card {
  border-left-color: var(--coral-dark) !important;
}

.review-card p {
  font-style: normal;
  font-size: 0.9375rem;
}

.review-service {
  color: var(--coral-dark) !important;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.rating-card {
  padding: 40px 32px;
  text-align: center;
}

.rating-score {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 400;
  color: var(--coral-dark) !important;
}

.rating-stars {
  color: var(--coral) !important;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

/* ── Tabs ── */
.ba-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px auto 40px;
  max-width: 900px;
  text-align: center;
}

.ba-tab,
.review-tab,
.promo-tab,
.price-nav a {
  border-radius: var(--radius) !important;
  border: 1px solid var(--line) !important;
  font-size: 0.8125rem !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.ba-tab.active,
.ba-tab:hover,
.promo-tab.active,
.price-nav a.active {
  background: var(--dark) !important;
  border-color: var(--dark) !important;
  color: #fff !important;
}

/* ── Forms ── */
.consultation {
  background: var(--dark-bg) !important;
}

.consultation-text h2 {
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.consultation-text p {
  color: rgba(255, 252, 250, 0.68);
  font-size: 0.9375rem;
}

.consultation-points {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.consultation-points li {
  position: relative;
  padding-left: 22px;
  color: rgba(255, 252, 250, 0.88);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.consultation-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.consultation-form {
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid var(--line-strong) !important;
  border-radius: var(--radius) !important;
  padding: 13px 16px;
  font-size: 0.9375rem;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--coral-dark) !important;
  outline: none;
}

.form-success h3 {
  font-family: var(--font-heading);
  color: var(--coral-dark) !important;
}

/* ── Page hero ── */
.page-hero {
  background: var(--dark-bg) !important;
  padding: 40px 0;
}

/* ── Footer ── */
.footer {
  background: var(--dark-bg);
  padding-top: 72px;
}

.footer h4 {
  color: rgba(255, 252, 250, 0.5) !important;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 20px;
}

.footer-desc {
  font-size: 0.875rem;
  color: rgba(255, 252, 250, 0.55);
  line-height: 1.7;
  letter-spacing: 0;
  text-transform: none;
  max-width: 260px;
}

.footer-links a,
.footer-contacts li {
  font-size: 0.875rem;
  color: rgba(255, 252, 250, 0.72);
}

.footer a:hover {
  color: #fff !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 252, 250, 0.1);
  margin-top: 48px;
  padding-top: 24px;
  font-size: 0.75rem;
  color: rgba(255, 252, 250, 0.4);
}

.disclaimer {
  font-size: 0.6875rem;
  color: rgba(255, 252, 250, 0.3);
}

/* ── Price & pages ── */
.price-table .price {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  color: var(--coral-dark) !important;
}

.price-table {
  border: 1px solid var(--line);
  box-shadow: none;
}

.price-category h2::before {
  background: var(--coral) !important;
  width: 2px;
}

.legal-section h2 {
  border-bottom-color: var(--line) !important;
  font-family: var(--font-heading);
}

.map-container {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius);
  overflow: hidden;
}

.promo-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.services-cta {
  text-align: center;
  margin-top: 28px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Images ── */
.service-image img,
.hero-image img,
.about-image img,
.doctor-photo img,
.doctor-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-photo img,
.doctor-profile-photo img {
  object-position: center 22%;
}

.doctor-photo--valentienko,
.doctor-photo--negodov,
.doctor-profile-photo--valentienko,
.doctor-profile-photo--negodov {
  overflow: hidden;
}

.doctor-photo--valentienko img,
.doctor-photo--negodov img,
.doctor-profile-photo--valentienko img,
.doctor-profile-photo--negodov img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.about-image {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.about-text p {
  font-size: 0.9375rem;
}

/* ── Before/After ── */
.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.ba-pair + .ba-pair {
  margin-top: 16px;
}

.ba-shot {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1c1614;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}

.ba-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
  opacity: 1;
  mix-blend-mode: normal;
}

.ba-shot figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(31, 29, 27, 0.78);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius);
}

.ba-shot-after figcaption {
  background: var(--coral-dark);
}

.ba-shot-process figcaption {
  background: #6A3A40;
}

.ba-shot--wide {
  aspect-ratio: 10 / 3;
}

.ba-shot--wide img {
  object-fit: cover;
}

.ba-comparison {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.ba-comparison .ba-before,
.ba-comparison .ba-after {
  background-color: #ddd;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  color: transparent !important;
  font-size: 0 !important;
}

@media (max-width: 640px) {
  .ba-pair {
    gap: 10px;
  }

  .ba-pair + .ba-pair {
    margin-top: 10px;
  }
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.reviews-grid .review-card {
  height: 100%;
}

.vacancy-card {
  border-left: 2px solid var(--coral) !important;
}

/* ── Doctors: thin coral frames ── */
.doctor-card,
.doctor-profile {
  border: 1px solid rgba(150, 58, 58, 0.35) !important;
  box-shadow: none !important;
  background: var(--white);
}

.doctor-card:hover,
.doctor-profile:hover {
  border-color: var(--coral-dark) !important;
  box-shadow: 0 8px 28px rgba(122, 46, 46, 0.08) !important;
}

/* ── Map block ── */
.map-block {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 28px;
}

.map-container {
  position: relative;
  height: 440px !important;
  border: 1px solid rgba(150, 58, 58, 0.25) !important;
  border-radius: var(--radius);
  overflow: hidden;
  background: #FFFCFA;
}

.map-container iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block;
  max-width: none;
  z-index: 1;
}

.map-container .dg-widget-link {
  position: relative;
  z-index: 0;
  display: block;
  padding: 10px 14px;
  font-size: 0.8125rem;
}

.map-info {
  border: 1px solid rgba(150, 58, 58, 0.25);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  background: var(--white);
}

.map-info h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.map-info p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.map-info strong {
  color: var(--text);
  font-weight: 500;
}

.map-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
}

.map-text-link {
  color: var(--coral-dark);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.map-text-link:hover {
  color: var(--bordo, #5C2222);
}

/* ── Why us ── */
.why-intro {
  max-width: 680px;
  margin: 0 auto 24px;
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.why-reasons {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.why-reason {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 0;
  border: 1px solid rgba(194, 78, 82, 0.22);
  background: var(--white);
  overflow: hidden;
  min-height: 240px;
  align-items: stretch;
}

.why-reason-reverse {
  direction: rtl;
}

.why-reason-reverse > * {
  direction: ltr;
}

.why-reason-media {
  min-height: 220px;
  min-width: 0;
  background: var(--bg-light, #f5f3f1);
  overflow: hidden;
}

.why-reason-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.why-reason-body {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: visible;
  position: relative;
  z-index: 1;
  background: var(--white);
}

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

.why-card {
  border: 1px solid rgba(150, 58, 58, 0.28);
  padding: 28px 24px;
  background: var(--white);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.why-card:hover {
  border-color: var(--coral-dark);
}

.why-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--coral);
  opacity: 0.55;
  margin-bottom: 12px;
  line-height: 1;
}

.why-card h2,
.why-reason-body h2 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.why-card p,
.why-reason-body p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.why-points {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.why-points li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.45;
}

.why-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.why-cta {
  text-align: center;
  margin-top: 48px;
  padding: 40px 24px;
  border: 1px solid rgba(150, 58, 58, 0.25);
}

.why-cta h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.why-cta p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.why-cta .services-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  .map-block {
    grid-template-columns: 1fr;
  }

  .map-container {
    height: 320px !important;
  }

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

  .why-reason,
  .why-reason-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .why-reason-media {
    min-height: 220px;
    max-height: 260px;
  }
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .nav {
    gap: 12px;
  }

  .header-actions .btn-primary {
    padding: 10px 14px !important;
  }
}

@media (max-width: 1100px) {
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .header-phones,
  .header-phone {
    display: none;
  }

  .header .logo-img,
  .logo-img {
    width: 166px !important;
    height: 52px !important;
    max-width: 166px !important;
    max-height: 52px !important;
    min-width: 166px !important;
    min-height: 52px !important;
  }
}

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

@media (max-width: 768px) {
  section {
    padding: 32px 0;
  }

  .header .logo-img,
  .logo-img {
    width: 166px !important;
    height: 52px !important;
    max-width: 166px !important;
    max-height: 52px !important;
    min-width: 166px !important;
    min-height: 52px !important;
  }

  .footer-logo-img {
    height: 40px;
  }

  .hero-slide {
    min-height: auto;
    padding: 40px 0;
  }

  .hero-slide-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .value-card {
    padding: 24px 16px;
  }

  .header-phones,
  .header-phone {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-a11y-btn {
    font-size: 0.625rem;
    padding: 6px 10px;
  }

  .header-top-right {
    gap: 12px;
  }
}

.container {
  padding-left: 24px;
  padding-right: 24px;
}

.header .container {
  max-width: 1480px;
  padding-left: clamp(24px, 3.5vw, 48px);
  padding-right: clamp(24px, 3.5vw, 48px);
}

.hero-image,
.about-image,
.promo-card-image,
.why-reason-media {
  display: none !important;
}

.about-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px 56px;
  max-width: none;
  align-items: center;
}

.about-text {
  padding-right: 12px;
}

.about-text .about-kicker {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--coral-dark);
  line-height: 1.4;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.about-slider {
  position: relative;
  width: 100%;
  z-index: 2;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.about-slider__viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg, 16px);
  background: #FFFCFA;
  box-shadow: var(--shadow-md);
  touch-action: pan-y;
  cursor: grab;
}

.about-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 0.9s ease;
  pointer-events: none;
}

.about-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}

.about-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.about-slider__btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(143, 29, 50, 0.22);
  background: transparent;
  color: var(--coral-dark, #8F1D32);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.about-slider__btn:hover {
  background: var(--coral-dark, #8F1D32);
  color: #fff;
  border-color: transparent;
}

.about-slider__dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.about-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(143, 29, 50, 0.25);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.about-dot.active {
  background: var(--coral-dark, #8F1D32);
  transform: scale(1.25);
}

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

  .about-text {
    padding-right: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .about-slider {
    order: -1;
    padding-left: 0;
    border-left: none;
  }
}

/* ── Services photo slider ── */
.services-slider {
  max-width: 920px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 2;
}

.services-slider__viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg, 16px);
  background: #FFFCFA;
  box-shadow: var(--shadow-md);
  touch-action: pan-y;
  cursor: grab;
}

.services-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 0.9s ease;
  pointer-events: none;
}

.services-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}

.services-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.services-slide--nophoto {
  background: #2c1c1a;
}

.services-slide--nophoto .services-slide__caption {
  background: linear-gradient(180deg, transparent 0%, rgba(28, 18, 16, 0.72) 100%);
}

.services-slide__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 24px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(28, 18, 16, 0.72) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.services-slide__label {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  max-width: 36ch;
}

.services-slide__hint {
  font-family: var(--font-family);
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.45;
  opacity: 0.9;
  max-width: 42ch;
}

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

.services-slider__btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(143, 29, 50, 0.22);
  background: transparent;
  color: var(--coral-dark, #8F1D32);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.services-slider__btn:hover {
  background: var(--coral-dark, #8F1D32);
  color: #fff;
  border-color: transparent;
}

.services-slider__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  align-items: center;
  max-width: 220px;
}

.services-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(143, 29, 50, 0.25);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.services-dot.active {
  background: var(--coral-dark, #8F1D32);
  transform: scale(1.25);
}

@media (max-width: 640px) {
  .services-slider__viewport {
    aspect-ratio: 4 / 3;
  }
}

.doctor-photo--empty {
  height: auto;
  min-height: 0;
  background: transparent;
  padding: 18px 18px 0;
}

.doctor-photo--empty .doctor-badge {
  position: static;
}

.doctor-profile--nophoto {
  grid-template-columns: 1fr !important;
}

.why-reason,
.why-reason-reverse {
  grid-template-columns: 1fr;
  direction: ltr;
  min-height: 0;
}

.ba-shot:not(:has(img)) {
  min-height: 96px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-shot:not(:has(img)) figcaption {
  position: static;
  background: transparent;
  color: var(--text-muted);
}

/* Cookie consent */
body.cookie-settings-open {
  overflow: hidden;
}

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.cookie-consent__panel {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 28px;
  align-items: center;
  padding: 18px 20px;
  background: #FFFCFA;
  border: 1px solid rgba(44, 36, 36, 0.1);
  border-radius: var(--radius, 2px);
  box-shadow: 0 -4px 28px rgba(44, 36, 36, 0.1);
}

.cookie-consent__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--dark);
  margin: 0 0 6px;
  line-height: 1.25;
}

.cookie-consent__text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 58ch;
}

.cookie-consent__text a {
  color: var(--coral);
  text-decoration: underline;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cookie-consent__actions .btn {
  padding: 10px 14px !important;
  font-size: 0.75rem !important;
  min-height: 38px;
  white-space: nowrap;
}

.cookie-settings {
  position: fixed;
  inset: 0;
  z-index: 3010;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.cookie-settings.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cookie-settings__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 31, 33, 0.35);
}

.cookie-settings__dialog {
  position: relative;
  width: min(480px, 100%);
  max-height: min(86vh, 640px);
  overflow: auto;
  background: #FFFCFA;
  border: 1px solid rgba(44, 36, 36, 0.1);
  border-radius: var(--radius, 2px);
  box-shadow: 0 16px 48px rgba(44, 36, 36, 0.16);
  transform: translateY(10px);
  transition: transform 0.22s ease;
}

.cookie-settings.is-visible .cookie-settings__dialog {
  transform: translateY(0);
}

.cookie-settings__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(44, 36, 36, 0.08);
}

.cookie-settings__header h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0;
  color: var(--dark);
}

.cookie-settings__close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  cursor: pointer;
  border-radius: var(--radius, 2px);
}

.cookie-settings__close:hover,
.cookie-settings__close:focus-visible {
  color: var(--dark);
  background: var(--bg-light);
  outline: none;
}

.cookie-settings__body {
  padding: 8px 18px 4px;
}

.cookie-cat {
  padding: 14px 0;
  border-bottom: 1px solid rgba(44, 36, 36, 0.07);
}

.cookie-cat:last-child {
  border-bottom: none;
}

.cookie-cat__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cookie-cat h3 {
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--dark);
}

.cookie-cat p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 34ch;
}

.cookie-settings__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(44, 36, 36, 0.08);
}

.cookie-settings__footer .btn {
  padding: 10px 14px !important;
  font-size: 0.75rem !important;
  min-height: 38px;
}

.cookie-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 44px;
  height: 26px;
  cursor: pointer;
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.cookie-switch span {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: rgba(44, 36, 36, 0.18);
  transition: background 0.2s ease;
  position: relative;
}

.cookie-switch span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.cookie-switch input:checked + span {
  background: var(--dark-bg);
}

.cookie-switch input:checked + span::after {
  transform: translateX(18px);
}

.cookie-switch input:focus-visible + span {
  outline: 2px solid var(--dark-bg);
  outline-offset: 2px;
}

.cookie-switch--locked {
  cursor: not-allowed;
  opacity: 0.85;
}

.cookie-switch--locked input:checked + span {
  background: var(--dark-bg);
}

@media (max-width: 760px) {
  .cookie-consent {
    padding: 12px;
  }

  .cookie-consent__panel {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .cookie-consent__actions {
    justify-content: stretch;
  }

  .cookie-consent__actions .btn {
    flex: 1 1 100%;
  }

  .cookie-settings {
    align-items: flex-end;
    padding: 0;
  }

  .cookie-settings__dialog {
    width: 100%;
    max-height: 90vh;
    border-radius: 8px 8px 0 0;
  }

  .cookie-settings__footer {
    justify-content: stretch;
  }

  .cookie-settings__footer .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent,
  .cookie-settings,
  .cookie-settings__dialog,
  .cookie-switch span,
  .cookie-switch span::after {
    transition: none;
  }
}

/* ═══════════════════════════════════════════
   Premium refine — incremental UI upgrades
   ═══════════════════════════════════════════ */

.header {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: #FFFCFA !important;
  border-bottom: 1px solid var(--line);
}

.header-top {
  background: var(--white) !important;
  color: var(--text-muted) !important;
}

.btn {
  border-radius: var(--radius-sm) !important;
  transition: background var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out) !important;
}

.btn-primary:hover,
.btn-green:hover,
.header-actions .btn-primary:hover {
  background: var(--btn-hover) !important;
  border-color: var(--btn-hover) !important;
}

.btn-outline:hover {
  border-color: var(--dark-bg) !important;
  color: var(--dark-bg) !important;
  background: transparent !important;
}

.consultation .btn-primary,
.consultation .btn-green,
.footer .btn-primary,
.footer .btn-green {
  background: #fff !important;
  color: var(--dark-bg) !important;
  border-color: #fff !important;
}

.consultation .btn-primary:hover,
.consultation .btn-green:hover,
.footer .btn-primary:hover,
.footer .btn-green:hover {
  background: rgba(255, 252, 250, 0.92) !important;
  color: var(--dark-bg) !important;
  border-color: rgba(255, 252, 250, 0.92) !important;
}

.consultation .consultation-form .btn-primary {
  background: var(--btn) !important;
  color: #fff !important;
  border-color: var(--btn) !important;
}

.consultation .consultation-form .btn-primary:hover {
  background: var(--btn-hover) !important;
  border-color: var(--btn-hover) !important;
  color: #fff !important;
}

.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.cookie-switch input:focus-visible + span {
  outline: 2px solid var(--dark-bg);
  outline-offset: 2px;
}

section {
  padding: clamp(36px, 4.2vw, 56px) 0;
}

.section-header {
  margin-bottom: var(--space-4);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.hero-slide {
  background: transparent !important;
  min-height: clamp(520px, 72vh, 640px) !important;
  display: flex;
  align-items: center;
}

.hero-slide-inner {
  grid-template-columns: minmax(0, 1fr) !important;
  max-width: min(560px, 52%);
  position: relative;
  z-index: 2;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.hero-badge {
  font-family: var(--font-family) !important;
  font-size: 0.6875rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--coral-dark) !important;
  border-bottom: 1px solid rgba(143, 29, 50, 0.28) !important;
  padding-bottom: 6px !important;
  margin-bottom: 4px;
}

.hero-title {
  font-size: clamp(2.15rem, 4.8vw, 3.35rem) !important;
  margin: 0;
}

.hero-desc {
  margin: 0;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.hero-trust-row li {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  position: relative;
  padding-left: 12px;
}

.hero-trust-row li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral-light);
}

.hero-visual {
  position: absolute;
  right: max(var(--coral-gutter), 3vw);
  top: 50%;
  transform: translateY(-50%);
  width: min(440px, 40vw);
  z-index: 1;
  pointer-events: none;
}

.hero-visual__frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.hero-visual__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transform: scale(1.01);
}

.hero-trust-badge {
  position: absolute;
  left: -18px;
  bottom: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 2px;
  min-width: 128px;
}

.hero-trust-badge strong {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--coral-dark);
  line-height: 1;
}

.hero-trust-badge span {
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 4px 0;
}

.hero-price-current {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--coral-dark);
  font-weight: 500;
}

.hero-price-old {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

@media (max-width: 980px) {
  .hero-visual {
    display: none;
  }

  .hero-slide-inner {
    max-width: 100% !important;
  }

  .hero-slide {
    min-height: auto !important;
    padding: 48px 0 56px !important;
  }
}

/* Values — editorial ribbon */
.values {
  background: var(--white);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  background: transparent;
  border: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.value-card {
  background: transparent !important;
  border-radius: 0 !important;
  border-right: 1px solid var(--line) !important;
  padding: 36px 22px !important;
  transition: background var(--duration) var(--ease-out);
}

.value-card:last-child {
  border-right: none !important;
}

.value-card:hover {
  background: rgba(143, 29, 50, 0.03) !important;
  box-shadow: none !important;
  transform: none !important;
}

.value-index {
  font-size: clamp(2rem, 3vw, 2.75rem) !important;
  opacity: 0.35 !important;
  color: var(--coral) !important;
  margin-bottom: 18px !important;
}

.value-card h3 {
  font-size: 1.2rem !important;
  margin-bottom: 10px !important;
}

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

  .value-card:nth-child(3) {
    border-right: none !important;
  }
}

@media (max-width: 700px) {
  .values-grid {
    grid-template-columns: 1fr;
  }

  .value-card {
    border-right: none !important;
    border-bottom: 1px solid var(--line) !important;
  }

  .value-card:last-child {
    border-bottom: none !important;
  }
}

/* Services */
#services .services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 28px;
  align-items: stretch;
  margin: 0 0 8px;
}

#services .service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

#services .service-card:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

#services .service-image {
  height: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1c1614;
  border-radius: 18px;
}

#services .service-card:hover .service-image {
  box-shadow: var(--shadow-md);
}

#services .service-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#services .service-image--implant img {
  object-position: center 48%;
}

#services .service-image--treatment img {
  object-position: center 42%;
}

#services .service-image--prosthetics img {
  object-position: center 36%;
}

#services .service-image--surgery img {
  object-position: center 44%;
}

#services .service-image--therapy img {
  object-position: center 28%;
}

#services .service-image--hygiene img {
  object-position: center 50%;
}

#services .service-image--orthopedics img {
  object-position: center 40%;
}

#services .service-body {
  display: block;
  text-align: left;
  padding: 22px 6px 0 !important;
  flex: 1;
}

#services .service-index {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--coral);
  opacity: 0.28;
  line-height: 1;
  margin-bottom: 8px;
}

#services .service-body h3 {
  color: var(--coral-dark) !important;
  font-size: 1.45rem !important;
  line-height: 1.2;
  margin: 0 0 10px !important;
  text-align: left;
}

#services .service-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 18px;
}

#services .service-body .btn-outline {
  margin-top: auto;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

#services .service-body .btn-outline:hover {
  background: transparent !important;
  border: none !important;
  color: var(--coral) !important;
}

@media (max-width: 980px) {
  #services .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
  }
}

@media (max-width: 640px) {
  #services .services-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  #services .service-body h3 {
    font-size: 1.3rem !important;
  }
}

.service-card {
  border-radius: var(--radius-lg) !important;
  background: #fff !important;
  overflow: hidden;
  transition: transform var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out) !important;
}

.service-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-md) !important;
  border-color: rgba(143, 29, 50, 0.22) !important;
}

.service-body {
  padding: 28px 24px 26px !important;
  position: relative;
}

.service-index {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--coral);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 14px;
}

.service-body h3 {
  font-size: 1.3rem !important;
  margin-bottom: 10px !important;
}

.service-body .btn-outline {
  margin-top: 8px;
  border: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  color: var(--coral-dark) !important;
  position: relative;
}

.service-body .btn-outline::after {
  content: ' →';
  display: inline-block;
  transition: transform var(--duration) var(--ease-out);
}

.service-card:hover .service-body .btn-outline::after {
  transform: translateX(4px);
}

/* Doctors */
.doctor-card {
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  background: #fff !important;
  transition: transform var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out) !important;
}

.doctor-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-md) !important;
  border-color: rgba(143, 29, 50, 0.2) !important;
}

.doctor-photo {
  border-radius: 0;
}

.doctor-photo img {
  transition: transform 0.45s var(--ease-out);
}

.doctor-card:hover .doctor-photo img {
  transform: scale(1.04);
}

.doctor-badge {
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--coral-dark) !important;
  border: 1px solid var(--line);
  font-weight: 500;
}

/* Reviews */
.reviews-score {
  font-family: var(--font-heading);
  font-size: 1.35em;
  color: var(--coral-dark);
  font-weight: 500;
}

.review-card {
  border-radius: var(--radius-lg) !important;
  padding: 28px !important;
  background: #fff !important;
  transition: border-color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out) !important;
}

.review-card:hover {
  border-color: rgba(143, 29, 50, 0.18) !important;
  box-shadow: var(--shadow-sm) !important;
}

/* Ratings / map — compact unified panel */
.find-us {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
}

.ratings-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.rating-pill {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid var(--line);
  transition: background var(--duration) var(--ease-out);
}

.rating-pill:last-child {
  border-right: none;
}

.rating-pill:hover {
  background: var(--bg-light);
}

.find-us .rating-source {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.find-us .rating-score {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--dark-bg);
  line-height: 1;
}

.find-us .rating-stars {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--dark-bg);
  opacity: 0.7;
  margin: 0;
}

.find-us .map-block {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: 0;
  margin-top: 0;
  align-items: stretch;
}

.find-us .map-container {
  height: 420px !important;
  border: none !important;
  border-right: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: #FFFCFA;
}

.find-us .map-info {
  border: none !important;
  border-radius: 0 !important;
  background: transparent;
  padding: 22px 24px;
  gap: 8px;
  justify-content: center;
}

.find-us .map-info h3 {
  font-size: 1.35rem;
  margin: 0 0 4px;
}

.find-us .map-info p {
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.45;
}

.find-us .map-links {
  margin-top: 10px;
  gap: 10px;
}

.find-us .map-links .btn {
  padding: 10px 16px !important;
  font-size: 0.75rem !important;
}

.find-us .map-text-link {
  font-size: 0.8125rem;
}

@media (max-width: 900px) {
  .ratings-strip {
    grid-template-columns: 1fr;
  }

  .rating-pill {
    border-right: none;
    border-bottom: 1px solid var(--line);
    justify-content: flex-start;
  }

  .rating-pill:last-child {
    border-bottom: none;
  }

  .find-us .map-block {
    grid-template-columns: 1fr;
  }

  .find-us .map-container {
    height: 260px !important;
    border-right: none !important;
    border-bottom: 1px solid var(--line) !important;
  }
}

/* legacy rating-card kept for other pages */
.rating-card {
  border-radius: var(--radius-lg) !important;
  padding: 28px 24px !important;
  text-align: left !important;
  background: #fff !important;
  display: grid;
  gap: 8px;
  justify-items: start;
}

.rating-source {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.rating-score {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  color: var(--coral-dark);
  line-height: 1;
}

.rating-stars {
  color: var(--coral-light);
  letter-spacing: 0.08em;
}

.map-info {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  padding: 28px;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

/* Consultation CTA */
.consultation {
  background: var(--dark-bg) !important;
}

.consultation-form {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg);
}

.consultation-form input,
.consultation-form select,
.consultation-form textarea,
.modal input,
.modal select,
.modal textarea {
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--line) !important;
  min-height: 46px;
  transition: border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.consultation-form textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.45;
}

.consultation-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238F1D32' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.consultation-form input::placeholder,
.consultation-form textarea::placeholder {
  color: #b8b0ad;
}

.consultation .consultation-form .calc-submit {
  display: block;
  width: 100%;
  margin-top: 4px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--coral-dark, #8F1D32) !important;
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em;
  padding: 10px 8px 0 !important;
  min-height: 0;
  text-align: center;
  cursor: pointer;
}

.consultation .consultation-form .calc-submit:hover {
  color: #5C1524 !important;
  background: transparent !important;
  border: none !important;
}

.consultation-form input:focus,
.consultation-form select:focus,
.consultation-form textarea:focus,
.modal input:focus,
.modal select:focus,
.modal textarea:focus {
  border-color: var(--coral) !important;
  box-shadow: 0 0 0 3px rgba(143, 29, 50, 0.12);
  outline: none;
}

.modal {
  border-radius: var(--radius-lg) !important;
}

.page-hero {
  border-radius: 0;
}

.promo-card,
.case-card,
.vacancy-card {
  border-radius: var(--radius-lg) !important;
}

/* Cookie — compact bottom-right */
.cookie-consent {
  left: auto !important;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(380px, calc(100vw - 24px));
  padding: 0 !important;
}

.cookie-consent__panel {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  padding: 14px 14px 12px !important;
  border-radius: 14px !important;
  box-shadow: var(--shadow-lg) !important;
  max-width: none;
}

.cookie-consent__title {
  font-size: 1.05rem !important;
  margin-bottom: 4px !important;
}

.cookie-consent__text {
  font-size: 0.72rem !important;
  line-height: 1.45 !important;
  max-width: none;
}

.cookie-consent__actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 6px !important;
}

.cookie-consent__actions .btn {
  width: 100%;
  min-height: 34px !important;
  padding: 8px 10px !important;
  font-size: 0.6875rem !important;
  border-radius: 10px !important;
}

.cookie-consent__actions [data-cookie-action="configure"] {
  grid-column: 1 / -1;
}

.cookie-settings__dialog {
  border-radius: 16px !important;
}

@media (max-width: 760px) {
  .cookie-consent {
    left: 12px !important;
    right: 12px !important;
    width: auto;
  }

  .cookie-consent__actions .btn {
    flex: initial !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .doctor-card,
  .doctor-photo img,
  .btn,
  .service-body .btn-outline::after {
    transition: none !important;
  }

  .service-card:hover,
  .doctor-card:hover {
    transform: none !important;
  }

  .doctor-card:hover .doctor-photo img {
    transform: none;
  }
}

/* ── Tighter flow + soft section blends ── */
main > section {
  scroll-margin-top: 72px;
}

.about,
#services,
#before-after,
.reviews,
.map-section {
  background: var(--white);
  background-image: none;
}

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

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

.footer {
  margin-top: 0;
  background: var(--dark-bg);
}

/* Burgundy blocks — full viewport width, covering side corals */
main > .consultation,
main > .page-hero {
  width: calc(100% + 2 * var(--coral-gutter));
  max-width: none;
  margin-left: calc(-1 * var(--coral-gutter));
  margin-right: calc(-1 * var(--coral-gutter));
  border-radius: 0 !important;
  position: relative;
  z-index: 2;
}

.ba-tabs {
  margin-top: 0;
  margin-bottom: 28px;
}

.services-slider {
  margin-bottom: 28px;
}

.services-cta {
  margin-top: 28px;
}

.coral-divider svg {
  width: 32px;
  height: 32px;
}

/* Honeypot — скрытое поле против спама в формах */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
