/*
  Button hierarchy: one recognizable shape, clear meaning by color and fill.
  Primary — graphite; outline — secondary; honey is a restrained detail;
  danger — destructive operations.
*/
:root {
  --button-height: 48px;
  --button-radius: 999px;
  --button-text: #fff;
  --button-graphite: #555554;
  --button-graphite-hover: #373736;
  --button-line: #888;
  --button-bronze: #343433;
  --button-bronze-hover: #20201f;
  --button-danger: #b75d68;
  --button-danger-hover: #9c4752;
  --button-danger-soft: #fff3f4;
  --button-focus: rgba(142, 115, 88, .36);
}

.btn,
button.btn,
input[type="submit"].btn,
input[type="button"].btn,
input[type="reset"].btn,
.button,
.button-primary,
.button-secondary,
.button-outline,
.action-button {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: var(--button-height);
  margin: 0;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  background: var(--button-graphite);
  color: var(--button-text);
  font: inherit;
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

/* Main step: saving, confirming, continuing. */
.btn.primary,
.button-primary {
  border-color: var(--button-graphite);
  background: var(--button-graphite);
  color: var(--button-text);
}

/* Secondary navigation and details. */
.btn.secondary,
.btn.outline,
.btn.ghost,
.button-secondary,
.button-outline {
  border-color: var(--button-line);
  background: #fff;
  color: #4f4f4f;
}

/* Key patient action: graphite with a restrained honeycomb outline. */
.btn.bronze,
.btn.accent,
.button-bronze,
.button-accent {
  border-color: #8e7358;
  background: var(--button-bronze);
  color: #fff;
}

/* Destructive action: visually careful, never confused with the main action. */
.btn.danger,
.btn.delete,
.button-danger,
.action-button.danger,
button[data-action="delete"],
button[data-action="remove"] {
  border-color: #d7a1a8;
  background: var(--button-danger-soft);
  color: #98444f;
}

.btn:hover,
button.btn:hover,
.button:hover,
.action-button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn.primary:hover,
.button-primary:hover {
  border-color: var(--button-graphite-hover);
  background: var(--button-graphite-hover);
  color: #fff;
}

.btn.secondary:hover,
.btn.outline:hover,
.btn.ghost:hover,
.button-secondary:hover,
.button-outline:hover {
  border-color: var(--button-graphite);
  background: #f7f7f7;
  color: #343434;
}

.btn.bronze:hover,
.btn.accent:hover,
.button-bronze:hover,
.button-accent:hover {
  border-color: #b19a7a;
  background: var(--button-bronze-hover);
  color: #fff;
}

.btn.danger:hover,
.btn.delete:hover,
.button-danger:hover,
.action-button.danger:hover,
button[data-action="delete"]:hover,
button[data-action="remove"]:hover {
  border-color: var(--button-danger);
  background: #fce8ea;
  color: #873842;
}

.btn:active,
button.btn:active,
.button:active,
.action-button:active {
  transform: translateY(0);
  box-shadow: inset 0 1px 0 rgba(0,0,0,.08);
}

.btn:focus-visible,
button.btn:focus-visible,
.button:focus-visible,
.action-button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px var(--button-focus);
}

.btn[disabled],
button.btn[disabled],
.button[disabled],
.action-button[disabled],
.btn.disabled {
  opacity: .48;
  pointer-events: none;
  transform: none;
  cursor: default;
}

/* Wide card/step actions retain the same control, only use available space. */
.card-bottom > .btn:only-child,
.card-bottom > .button:only-child,
.form-actions > .btn:only-child,
.actions > .btn:only-child {
  width: 100%;
}

/* Icon-only controls stay compact. */
.menu-toggle,
.icon-button,
.calendar-nav button,
button[aria-label^="Предыдущ"],
button[aria-label^="Следующ"],
button[aria-label^="Закры"] {
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
}

@media (max-width: 640px) {
  .btn,
  button.btn,
  input[type="submit"].btn,
  input[type="button"].btn,
  input[type="reset"].btn,
  .button,
  .button-primary,
  .button-secondary,
  .button-outline,
  .action-button {
    min-height: 46px;
    padding-inline: 1.25rem;
    font-size: .91rem;
  }

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


/* Final control polish: controls remain rounded even where page-specific CSS applies. */
.btn,
button.btn,
input[type="submit"].btn,
input[type="button"].btn,
input[type="reset"].btn,
.button,
.action-button {
  border-radius: var(--button-radius) !important;
}

/* The dark hero needs a dedicated secondary state with readable contrast. */
.hero-actions .btn.secondary {
  border-color: rgba(255,255,255,.82);
  background: transparent;
  color: #fff;
}
.hero-actions .btn.secondary:hover,
.hero-actions .btn.secondary:focus-visible {
  border-color: #b19a7a;
  background: #fff;
  color: #292928;
}

/* Header contacts do not visually touch the call to action. */
.header-actions .header-phones {
  margin-right: .9rem;
}
.header-actions > .btn.bronze {
  margin-left: .15rem;
}

/* Inline admin actions are purposeful: edit neutral, delete softly red. */
.service-card-admin [data-service-editor] {
  border-color: #777;
  color: #383838;
  background: #fff;
}
.service-card-admin .service-delete-button {
  border-color: #d7a1a8;
  background: #fff3f4;
  color: #98444f;
}
.service-card-admin .service-delete-button:hover,
.service-card-admin .service-delete-button:focus-visible {
  border-color: #b75d68;
  background: #fce8ea;
  color: #873842;
}
@media (max-width: 900px) {
  .header-actions .header-phones { margin-right: .55rem; }
}


/* Main actions: dark enamel, white type and a restrained animated honeycomb glint. */
.btn.primary,
.btn.bronze,
.btn.accent,
.button-primary,
.button-bronze,
.button-accent,
.hero-booking-button {
  border: 1px solid transparent;
  background:
    linear-gradient(#343433, #292928) padding-box,
    linear-gradient(112deg, #6a5740 0%, #9a7c58 24%, #e5c68b 48%, #9a7c58 72%, #6a5740 100%) border-box;
  background-size: 100% 100%, 230% 100%;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 1px 1px rgba(0,0,0,.18);
}

.btn.primary:hover,
.btn.primary:focus-visible,
.btn.bronze:hover,
.btn.bronze:focus-visible,
.btn.accent:hover,
.btn.accent:focus-visible,
.button-primary:hover,
.button-primary:focus-visible,
.button-bronze:hover,
.button-bronze:focus-visible,
.button-accent:hover,
.button-accent:focus-visible,
.hero-booking-button:hover,
.hero-booking-button:focus-visible {
  border-color: transparent;
  background:
    linear-gradient(#232322, #171716) padding-box,
    linear-gradient(112deg, #6a5740 0%, #9a7c58 24%, #f1d99f 48%, #9a7c58 72%, #6a5740 100%) border-box;
  background-size: 100% 100%, 230% 100%;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 1px rgba(198,159,99,.12), 0 7px 20px rgba(0,0,0,.2);
  animation: button-honey-glint 1.5s ease both;
}

@keyframes button-honey-glint {
  from { background-position: 0 0, 100% 0; }
  to { background-position: 0 0, -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .btn.primary:hover,
  .btn.bronze:hover,
  .btn.accent:hover,
  .button-primary:hover,
  .button-bronze:hover,
  .button-accent:hover,
  .hero-booking-button:hover { animation: none; }
}


/* MAX messenger presence on the home page. */
.max-section { padding-top: 1rem; }
.max-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3.4rem);
  border: 1px solid #e5e1dc;
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 18%, rgba(142,115,88,.11), transparent 27%),
    linear-gradient(135deg, #faf9f7, #fff);
}
.max-card::after {
  content: "";
  position: absolute;
  width: 13rem;
  height: 13rem;
  right: -6rem;
  bottom: -8rem;
  border: 1px solid rgba(142,115,88,.27);
  border-radius: 50%;
  pointer-events: none;
}
.max-copy { position: relative; z-index: 1; max-width: 37rem; }
.max-copy h2 { margin: .35rem 0 .8rem; }
.max-copy p { max-width: 34rem; margin: 0; color: #62615f; line-height: 1.65; }
.max-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.max-actions .btn { min-width: 10.8rem; }
.max-actions .max-bot-link { border-color: #777; color: #383838; }
.max-actions .max-bot-link:hover { border-color: #8e7358; background: #fff; color: #292928; }
.max-visual {
  position: relative;
  min-height: 265px;
  display: grid;
  place-items: center;
  border-radius: 23px;
  overflow: hidden;
  background: linear-gradient(145deg, #171717, #292827);
  box-shadow: 0 18px 35px rgba(0,0,0,.16);
}
.max-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image: linear-gradient(30deg, transparent 48%, rgba(177,154,122,.25) 49%, transparent 51%);
  background-size: 82px 82px;
}
.max-phone {
  position: relative;
  z-index: 1;
  width: min(82%, 310px);
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(8px);
}
.max-phone-head { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: .55rem; color: #fff; font-size: .9rem; }
.max-phone-head small { color: #d8c4a4; font-size: .73rem; }
.max-symbol { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; background: #fff; color: #20201f; font-weight: 900; }
.max-message { display: flex; gap: .65rem; margin-top: 1.1rem; padding: .75rem; border-radius: 13px; background: #fff; color: #302f2d; box-shadow: 0 7px 15px rgba(0,0,0,.12); }
.max-message-light { background: rgba(255,255,255,.13); color: #fff; box-shadow: none; }
.max-message strong, .max-message small { display: block; }
.max-message strong { font-size: .78rem; }
.max-message small { margin-top: .16rem; font-size: .69rem; line-height: 1.3; opacity: .72; }
.max-message-mark { flex: 0 0 22px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #8e7358; color: #fff; font-size: .75rem; font-weight: 800; }
.max-message-light .max-message-mark { background: rgba(229,198,139,.23); color: #f1d99f; }
.max-logo { position: absolute; z-index: 0; right: 1.2rem; bottom: .25rem; color: rgba(255,255,255,.11); font-size: clamp(3.5rem, 9vw, 6.5rem); font-weight: 900; letter-spacing: -.12em; }
@media (max-width: 760px) {
  .max-card { grid-template-columns: 1fr; gap: 1.65rem; padding: 1.5rem; border-radius: 22px; }
  .max-visual { min-height: 225px; }
  .max-actions .btn { flex: 1 1 100%; }
}


/* Premium booking CTA: a subtle enamel highlight and honeycomb-metal rim. */
.btn.booking,
.hero-booking-button.booking {
  position: relative;
  isolation: isolate;
  min-height: 50px;
  padding-inline: 1.65rem;
  border: 1px solid transparent;
  background:
    radial-gradient(120% 115% at 22% -35%, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 48%) padding-box,
    linear-gradient(145deg, #3a3937 0%, #242422 58%, #191918 100%) padding-box,
    linear-gradient(112deg, #624a34 0%, #a98050 22%, #e7c98e 47%, #9a7349 69%, #59422f 100%) border-box;
  background-size: 100% 100%, 100% 100%, 165% 100%;
  background-position: 0 0, 0 0, 50% 0;
  color: #fff;
  font-weight: 750;
  letter-spacing: -.015em;
  text-shadow: 0 1px 0 rgba(0,0,0,.34);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.09),
    inset 0 -1px 0 rgba(0,0,0,.32),
    0 7px 17px rgba(24,19,14,.2);
}
.btn.booking::before,
.hero-booking-button.booking::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(112deg, transparent 22%, rgba(240,211,159,.34) 47%, transparent 72%);
  background-size: 200% 100%;
  opacity: .4;
  filter: blur(5px);
  transition: opacity .2s ease;
}
.btn.booking:hover,
.btn.booking:focus-visible,
.hero-booking-button.booking:hover,
.hero-booking-button.booking:focus-visible {
  transform: translateY(-2px);
  border-color: transparent;
  background:
    radial-gradient(120% 115% at 22% -35%, rgba(255,255,255,.2) 0%, rgba(255,255,255,0) 48%) padding-box,
    linear-gradient(145deg, #2f2e2c 0%, #1e1e1c 58%, #151514 100%) padding-box,
    linear-gradient(112deg, #7b5d40 0%, #c09762 22%, #f4dba1 47%, #b28455 69%, #6c5038 100%) border-box;
  background-size: 100% 100%, 100% 100%, 165% 100%;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -1px 0 rgba(0,0,0,.38),
    0 11px 25px rgba(24,19,14,.27),
    0 0 0 1px rgba(221,185,125,.13);
  animation: premium-booking-rim 1.35s ease both;
}
.btn.booking:hover::before,
.btn.booking:focus-visible::before,
.hero-booking-button.booking:hover::before,
.hero-booking-button.booking:focus-visible::before { opacity: .92; }
.btn.booking:active,
.hero-booking-button.booking:active { transform: translateY(0); }
@keyframes premium-booking-rim {
  from { background-position: 0 0, 0 0, 100% 0; }
  to { background-position: 0 0, 0 0, -55% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .btn.booking:hover,
  .hero-booking-button.booking:hover { animation: none; }
}


/* MAX keeps its own recognizable blue inside the clinic's restrained dark frame. */
.max-card {
  border-color: #e0e5f2;
  background:
    radial-gradient(circle at 84% 17%, rgba(72,95,214,.15), transparent 29%),
    linear-gradient(135deg, #fafbff, #fff);
}
.max-card::after { border-color: rgba(83, 51, 238, .25); }
.max-visual {
  background:
    radial-gradient(circle at 77% 18%, rgba(76,204,255,.28), transparent 24%),
    radial-gradient(circle at 16% 86%, rgba(83,51,238,.3), transparent 33%),
    linear-gradient(145deg, #111225, #22134b);
}
.max-visual::before {
  opacity: .6;
  background-image: linear-gradient(30deg, transparent 48%, rgba(122,164,255,.24) 49%, transparent 51%);
}
.max-symbol {
  display: block;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  object-fit: contain;
}
.max-phone-head small { color: #b8c8ff; }
.max-message-mark { background: linear-gradient(135deg, #4cf, #53e); }
.max-message-light .max-message-mark { background: rgba(111,126,255,.27); color: #d8dfff; }
.max-logo {
  position: absolute;
  z-index: 0;
  right: 1.35rem;
  bottom: 1rem;
  width: clamp(3.8rem, 9vw, 6.7rem);
  height: auto;
  opacity: .19;
  filter: saturate(1.1);
}


/* Clean premium booking CTA: satin black, a precise warm rim and a slow living highlight. */
.btn.booking,
.hero-booking-button.booking {
  overflow: visible;
  border: 1px solid rgba(183,145,92,.72);
  background: linear-gradient(180deg, #2c2c2b 0%, #20201f 48%, #171716 100%);
  background-size: 100% 100%;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.1),
    inset 0 -1px 0 rgba(0,0,0,.48),
    0 7px 16px rgba(0,0,0,.2);
}
.btn.booking::before,
.hero-booking-button.booking::before {
  z-index: 1;
  inset: -2px;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 118deg,
    rgba(255,241,205,.08) 148deg,
    rgba(250,218,159,.96) 170deg,
    rgba(255,248,225,.98) 180deg,
    rgba(250,218,159,.96) 190deg,
    rgba(255,241,205,.08) 212deg,
    transparent 242deg 360deg
  );
  opacity: .78;
  filter: none;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: booking-rim-orbit 5.4s linear infinite;
}
.btn.booking:hover,
.btn.booking:focus-visible,
.hero-booking-button.booking:hover,
.hero-booking-button.booking:focus-visible {
  border-color: rgba(213,177,117,.95);
  background: linear-gradient(180deg, #31312f 0%, #242422 48%, #1a1a18 100%);
  color: #fff;
  animation: none;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.13),
    inset 0 -1px 0 rgba(0,0,0,.48),
    0 9px 22px rgba(0,0,0,.23),
    0 0 16px rgba(211,169,101,.14);
}
.btn.booking:hover::before,
.btn.booking:focus-visible::before,
.hero-booking-button.booking:hover::before,
.hero-booking-button.booking:focus-visible::before {
  opacity: 1;
  animation-duration: 2.8s;
}
@keyframes booking-rim-orbit {
  to { transform: rotate(1turn); }
}
@media (prefers-reduced-motion: reduce) {
  .btn.booking::before,
  .hero-booking-button.booking::before { animation: none; }
}


/* Official MAX call to action. */
.max-actions .max-bot-link {
  border-color: transparent;
  background: linear-gradient(135deg, #4cf 0%, #53e 58%, #93d 100%);
  color: #fff;
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.23), 0 7px 17px rgba(57,62,196,.22);
}
.max-actions .max-bot-link > img {
  width: 21px;
  height: 21px;
  padding: 2px;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}
.max-actions .max-bot-link:hover,
.max-actions .max-bot-link:focus-visible {
  border-color: transparent;
  background: linear-gradient(135deg, #56d2ff 0%, #6241f0 58%, #a54ae0 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 22px rgba(57,62,196,.3);
}


/* Text-first navigation: no pills, just clear typography and an active honeycomb underline. */
.header .desktop-nav {
  display: flex;
  align-items: center;
  gap: .1rem;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.header .desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .25rem .72rem;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #3a3937;
  font-size: .93rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease;
}
.header .desktop-nav a::after {
  content: "";
  position: absolute;
  right: .72rem;
  bottom: 1px;
  left: .72rem;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, #6a5238, #d8b57a, #6a5238);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}
.header .desktop-nav a:hover { color: #171716; }
.header .desktop-nav a:hover::after { transform: scaleX(.42); }
.header .desktop-nav a.selected,
.header .desktop-nav a[aria-current="page"] {
  background: transparent !important;
  color: #171716;
}
.header .desktop-nav a.selected::after,
.header .desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.mobile-nav a {
  position: relative;
  border-radius: 0 !important;
  background: transparent !important;
}
.mobile-nav a.selected,
.mobile-nav a[aria-current="page"] {
  color: #181716 !important;
  font-weight: 750;
}
.mobile-nav a.selected::after,
.mobile-nav a[aria-current="page"]::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 2px;
  margin-top: .45rem;
  border-radius: 99px;
  background: linear-gradient(90deg, #6a5238, #d8b57a, #6a5238);
}


/* Stable, centered header navigation: colour and underline respond, the layout never shifts. */
.header .header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.35rem;
}
.header .brand { justify-self: start; }
.header .desktop-nav {
  justify-self: center;
  margin: 0;
}
.header .header-actions { justify-self: end; }
.header .desktop-nav a,
.header .desktop-nav a:hover,
.header .desktop-nav a:focus-visible,
.header .desktop-nav a.selected,
.header .desktop-nav a[aria-current="page"] {
  font-size: .93rem;
  font-weight: 650;
  box-shadow: none !important;
}
.header .desktop-nav a:hover,
.header .desktop-nav a:focus-visible {
  color: #765c3d;
  background: transparent !important;
}
.header .desktop-nav a:hover::after,
.header .desktop-nav a:focus-visible::after { transform: scaleX(.58); }
.header .desktop-nav a.selected,
.header .desktop-nav a[aria-current="page"] { color: #39302a; }
@media (max-width: 980px) {
  /* Match the desktop selector's specificity so it cannot override this breakpoint. */
  .header .desktop-nav { display: none; }
  .header .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .header .brand { grid-column: 1; grid-row: 1; min-width: 0; }
  .header .header-actions { grid-column: 2; grid-row: 1; margin-left: 0; }
  .header .desktop-profile { display: none; }
  .header .menu-toggle { display: block; flex: 0 0 auto; }
  .header .mobile-nav[hidden] { display: none; }
}


/* Header controls must not move neighbouring items on hover. */
.header .desktop-nav a,
.header .desktop-nav a:hover,
.header .desktop-nav a:focus-visible,
.header .desktop-nav a.selected,
.header .desktop-nav a[aria-current="page"] {
  font-weight: 650 !important;
  letter-spacing: normal !important;
  transform: none !important;
}
.header .header-actions > .btn,
.header .header-actions > .btn:hover,
.header .header-actions > .btn:focus-visible,
.header .desktop-profile .btn,
.header .desktop-profile .btn:hover,
.header .desktop-profile .btn:focus-visible {
  transform: none;
}


/* Editorial navigation lettering: compact capitals with enough air between characters. */
.header .desktop-nav a {
  font-size: .78rem !important;
  font-weight: 700 !important;
  letter-spacing: .065em !important;
  text-transform: uppercase;
}
.mobile-nav a {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .065em;
  text-transform: uppercase;
}


/* The current page remains legible when hovered. */
.header .desktop-nav a.selected:hover,
.header .desktop-nav a.selected:focus-visible,
.header .desktop-nav a[aria-current="page"]:hover,
.header .desktop-nav a[aria-current="page"]:focus-visible {
  color: #39302a !important;
  background: transparent !important;
  text-shadow: none !important;
}
.header .desktop-nav a.selected:hover::after,
.header .desktop-nav a.selected:focus-visible::after,
.header .desktop-nav a[aria-current="page"]:hover::after,
.header .desktop-nav a[aria-current="page"]:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}


/* More presence for the primary navigation without changing its rhythm. */
.header .desktop-nav a { font-size: .88rem !important; }


/* Give homepage service descriptions a more comfortable reading size. */
.home-service-card p {
  font-size: 15.5px;
  line-height: 1.65;
}


/* Mobile header: give the essential controls room and move the phone into the expanded menu. */
@media (max-width: 680px) {
  .header .header-inner {
    min-height: 68px;
    gap: .65rem;
  }
  .header .brand {
    min-width: 0;
    gap: .55rem;
  }
  .header .brand > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header .header-actions {
    gap: .45rem;
    min-width: 0;
  }
  .header .header-actions .header-phones { display: none; }
  .header .header-actions > .btn.booking {
    min-height: 40px;
    padding: 8px 11px;
    font-size: 11px;
  }
  .header .menu-toggle {
    min-width: 40px;
    min-height: 40px;
    padding: 6px;
  }
  .mobile-nav:not([hidden]) { gap: .35rem; }
  .mobile-nav a {
    padding: 12px 10px;
    font-size: .8rem;
    letter-spacing: .055em;
  }
}
@media (max-width: 380px) {
  .header .brand small { display: none; }
  .header .header-actions > .btn.booking { font-size: 0; padding-inline: 10px; }
  .header .header-actions > .btn.booking::after { content: 'Запись'; font-size: 11px; }
}
