/* ============ Multi-page additions (service, article, news pages; FAQ; gallery) ============ */

/* Without JS, photos must stay visible (style.css hides them until loaded). */
html:not(.js) .doctor-card img { opacity: 1; }

.container--narrow { max-width: 880px; }
.section--compact { padding: 48px 0; }
.hours-chunk + .hours-chunk::before { content: ", "; }
.link-more { display: inline-flex; gap: 6px; margin-top: 28px; font-weight: 700; }
.news-strip { margin-top: 56px; }

/* Six menu items + language switch are tight below 1200px */
@media (min-width: 992px) and (max-width: 1199px) {
  .header__call span { display: none; }
  .header__call { padding: .6em; }
  .nav { gap: 2px; }
  .nav__link { padding: 8px 10px; }
}

/* Language switch (RU · KG · EN) */
.lang-switch {
  display: inline-flex; gap: 2px; padding: 3px; flex: none;
  background: var(--tint); border: 1px solid var(--line); border-radius: 999px;
}
.lang-switch__link {
  padding: 4px 9px; border-radius: 999px; line-height: 1.2;
  font-size: .76rem; font-weight: 700; letter-spacing: .03em; color: var(--muted);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.lang-switch__link:hover { color: var(--blue); }
.lang-switch__link.is-current { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }
@media (max-width: 400px) {
  .lang-switch__link { padding: 4px 7px; }
  .header__actions { gap: 8px; }
}

/* Section header with an action button */
.section__header--row {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px;
}
.section__header--row .section__title,
.section__header--row .subhead { margin-bottom: 0; }

/* Service cards as links */
.card--link { color: inherit; text-decoration: none; }
.card--link:hover { color: inherit; }
.card__more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-weight: 700; font-size: .92rem; color: var(--blue);
}
.card__more span { display: inline-block; transition: transform .25s ease; }
@media (hover: hover) {
  .post-card:hover .card__more span { transform: translateX(4px); }
}

/* ---------- Sub-page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; color: var(--white); padding: 32px 0 44px;
  background:
    radial-gradient(90% 140% at 95% 0%, rgba(0, 150, 63, .26) 0%, transparent 55%),
    linear-gradient(145deg, #07192f 0%, #0c2b52 60%, #0a3d6f 100%);
}
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .88rem; color: rgba(255, 255, 255, .6);
  animation: rise .6s var(--ease-out) backwards;
}
.breadcrumb a { color: rgba(255, 255, 255, .85); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current] { color: var(--white); font-weight: 600; }
/* On phones the page title repeats right below — show only the parent links */
@media (max-width: 639px) {
  .breadcrumb [aria-current],
  .breadcrumb span[aria-hidden]:nth-last-child(2) { display: none; }
}
.page-hero__icon {
  width: 56px; height: 56px; border-radius: 16px; margin-top: 24px;
  display: grid; place-items: center; color: #55d688;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  animation: pop-in .6s var(--ease-spring) .1s backwards;
}
.page-hero__icon .ico { width: 30px; height: 30px; }
.page-hero__title {
  color: var(--white); font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 400;
  letter-spacing: -.02em; line-height: 1.2; margin: 16px 0 12px; max-width: 24em;
  animation: rise .7s var(--ease-out) .12s backwards;
}
.page-hero__lead {
  max-width: 660px; margin: 0; font-size: 1.08rem; opacity: .9;
  animation: rise .7s var(--ease-out) .22s backwards;
}
.page-hero__meta { margin: 0; font-size: .92rem; opacity: .75; animation: rise .7s var(--ease-out) .22s backwards; }
.page-hero__actions { margin: 28px 0 0; animation: rise .7s var(--ease-out) .32s backwards; }

/* ---------- Article / service layout ---------- */
.post-layout { display: grid; gap: 36px; }
.post-aside { min-width: 0; }

.prose { min-width: 0; font-size: 1.04rem; line-height: 1.75; color: var(--text); overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-family: var(--font); font-weight: 700; text-transform: none; letter-spacing: 0; line-height: 1.25; font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.2rem; margin: 1.5em 0 .5em; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--green); }
.prose a { color: var(--blue); text-decoration: underline; text-decoration-color: var(--blue-border); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose img { height: auto; margin: 1.5em 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.prose strong { color: var(--navy); }
.prose blockquote {
  margin: 1.5em 0; padding: 14px 20px; border-left: 4px solid var(--green);
  background: var(--green-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.prose td, .prose th { padding: 8px 12px; border: 1px solid var(--line); }

/* CTA box */
.cta-box {
  display: grid; gap: 12px; padding: 24px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.cta-box .section__tag { justify-self: start; margin: 0; }
.cta-box h3 { margin: 0; font-size: 1.2rem; }
.cta-box p { margin: 0; color: var(--muted); font-size: .95rem; }
.cta-box .btn { width: 100%; }
.hours--compact { margin: 6px 0 0; font-size: .92rem; }
.cta-box__addr { display: flex; gap: 8px; align-items: flex-start; }
.cta-box__addr .ico { margin-top: 4px; color: var(--green); }

/* ---------- Post cards ---------- */
.grid--posts { grid-template-columns: 1fr; }
.post-card {
  display: flex; flex-direction: column; overflow: hidden; color: inherit;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.post-card:hover { color: inherit; }
.post-card__media {
  display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; color: var(--blue);
  background: linear-gradient(135deg, var(--green-light), var(--blue-light));
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.post-card__media .ico { width: 48px; height: 48px; opacity: .65; }
.post-card__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.post-card time { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.post-card h3 { margin: 0; font-size: 1.1rem; line-height: 1.35; }
.post-card p {
  margin: 0; color: var(--muted); font-size: .93rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card .card__more { margin-top: auto; padding-top: 8px; }

/* ---------- FAQ ---------- */
.faq-item summary { gap: 16px; font-size: 1.05rem; line-height: 1.4; }
.faq-answer { overflow: hidden; padding: 0 24px 22px; font-size: .98rem; }
.faq-answer img { width: 100%; max-width: 420px; }

/* Static price card on service pages */
.price-group--static { margin: 0; }
.price-group--static .price-list { padding-top: 4px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 40px; }
.gallery__item { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--tint); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }

@media (hover: hover) {
  .post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--blue-border); }
  .post-card:hover .post-card__media img,
  .gallery__item:hover img { transform: scale(1.05); }
}
@media (hover: none) {
  .post-card:active { transform: scale(.985); }
}

@media (min-width: 640px) {
  .grid--posts { grid-template-columns: repeat(2, 1fr); }
  /* Gallery mosaic: first photo large, the rest stacked beside it (with two photos, the second stretches to match) */
  .gallery { grid-template-columns: 1.6fr 1fr; gap: 16px; }
  .gallery:has(> :nth-child(3)) .gallery__item:first-child { grid-row: 1 / 3; aspect-ratio: auto; }
  .gallery:not(:has(> :nth-child(3))) .gallery__item + .gallery__item { aspect-ratio: auto; }
}
@media (min-width: 992px) {
  .section--compact { padding: 64px 0; }
  .page-hero { padding: 48px 0 64px; }
  .grid--posts { grid-template-columns: repeat(3, 1fr); }
  .post-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
  .post-aside { position: sticky; top: 96px; }
}

/* ---------- Hero wordmark (MEDXPERT) ---------- */
.hero__brand { margin: 0 0 22px; }
.hero__brand-word {
  display: flex; flex-wrap: nowrap; justify-content: center;
  font-family: var(--font-display); font-weight: 400; line-height: .85; letter-spacing: .04em;
  font-size: clamp(3.6rem, 16vw, 8rem);
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .35));
}
/* Logo colours: MED green, XPERT blue — vertical gradients so each letter matches */
.hero__brand-word span {
  display: inline-block; animation: brand-in .8s var(--ease-spring) backwards;
  background: linear-gradient(180deg, #8ff3bd 0%, #3fd07a 55%, #1aa957 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.hero__brand-word .is-accent {
  background: linear-gradient(180deg, #9ad0ff 0%, #4a9cf0 55%, #2477d0 100%);
  -webkit-background-clip: text; background-clip: text;
}
.hero__brand-word span:nth-child(1) { animation-delay: .05s; }
.hero__brand-word span:nth-child(2) { animation-delay: .11s; }
.hero__brand-word span:nth-child(3) { animation-delay: .17s; }
.hero__brand-word span:nth-child(4) { animation-delay: .23s; }
.hero__brand-word span:nth-child(5) { animation-delay: .29s; }
.hero__brand-word span:nth-child(6) { animation-delay: .35s; }
.hero__brand-word span:nth-child(7) { animation-delay: .41s; }
.hero__brand-word span:nth-child(8) { animation-delay: .47s; }
.hero__brand-word span:nth-child(n+9) { animation-delay: .53s; }
@keyframes brand-in {
  from { opacity: 0; transform: translateY(55%) rotate(8deg); }
  to { opacity: 1; transform: none; }
}
.hero__brand-sub {
  display: flex; align-items: center; gap: 12px; margin-top: 12px;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
  animation: rise .7s var(--ease-out) .55s backwards;
}
.hero__brand-sub::before {
  content: ""; flex: none; width: 44px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #6fe0a4, #5db1ff);
}
@media (max-width: 400px) {
  .hero__brand-sub { font-size: .68rem; letter-spacing: .16em; gap: 10px; }
  .hero__brand-sub::before { width: 28px; }
}

/* Desktop: centred hero — mirror the subtitle rule on both sides */
@media (min-width: 992px) {
  .hero__brand-sub::after {
    content: ""; flex: none; width: 44px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, #5db1ff, #6fe0a4);
  }
}

/* =====================================================================
   LIQUID GLASS — frosted, saturated surfaces with a bright rim, a floating
   header pill, a droplet nav highlight and springy press feedback.
   Refraction (SVG displacement) is Chromium-only via html.lg-refract.
   ===================================================================== */
:root {
  --header-h: 84px;
  --lg-blur: blur(14px) saturate(170%);
  --lg-light: rgba(255, 255, 255, .66);
  --lg-light-rim: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .45);
  --lg-dark: rgba(255, 255, 255, .09);
  --lg-dark-rim: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px rgba(255, 255, 255, .14);
}

/* ---- Header: floating glass pill ---- */
.header, .header.is-scrolled {
  background: transparent; border-bottom: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none;
}
.header__row {
  pointer-events: auto; position: relative;
  width: calc(100% - 24px); margin: 10px auto 0; padding: 0 10px 0 18px; min-height: 60px;
  border-radius: 999px; background: var(--lg-light);
  -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur);
  box-shadow: var(--lg-light-rim), 0 10px 30px rgba(9, 28, 51, .12);
  transform-origin: 50% 0; transition: transform .6s var(--ease-out), box-shadow .4s ease, background-color .4s ease;
}
/* light streak across the top of the glass */
.header__row::before {
  content: ""; position: absolute; inset: 1px 18px auto; height: 45%; border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  opacity: .6;
}
.header__row > :not(.nav) { position: relative; }
.header.is-scrolled .header__row {
  transform: scale(.955); background: rgba(255, 255, 255, .78);
  box-shadow: var(--lg-light-rim), 0 14px 40px rgba(9, 28, 51, .18);
}
/* Let dark heroes slide under the glass so it has something to blur */
body:has(.hero, .page-hero) .header { margin-bottom: calc(-1 * var(--header-h)); }
.hero { padding-top: calc(56px + var(--header-h)); }
.page-hero { padding-top: calc(32px + var(--header-h)); }

/* Mobile menu: glass sheet under the pill */
@media (max-width: 991px) {
  .nav {
    pointer-events: auto; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    border: 0; border-radius: 26px; padding: 14px;
    /* nested inside the glass pill, so its own backdrop blur can't see the page: keep it near-solid */
    background: rgba(250, 252, 255, .96);
    box-shadow: var(--lg-light-rim), 0 24px 60px rgba(9, 28, 51, .28);
    transform: translateY(-12px) scale(.96); transform-origin: 50% 0;
    transition: opacity .3s ease, transform .55s var(--ease-spring), visibility 0s linear .4s;
  }
  .nav.is-open { transform: none; }
  .nav__link::after { display: none; }
  .nav__link:active { background: rgba(9, 28, 51, .06); }
}
.burger { background: rgba(255, 255, 255, .55); box-shadow: var(--lg-light-rim); border-radius: 999px; }
.burger:hover { background: rgba(255, 255, 255, .8); }
.lang-switch { background: rgba(9, 28, 51, .06); border-color: rgba(255, 255, 255, .5); }
.lang-switch__link.is-current { background: rgba(255, 255, 255, .92); box-shadow: inset 0 1px 0 #fff, 0 2px 8px rgba(9, 28, 51, .12); }
.lang-switch__link:hover { color: var(--navy); }

@media (min-width: 992px) {
  .hero { padding-top: calc(96px + var(--header-h)); }
  .page-hero { padding-top: calc(48px + var(--header-h)); }
  .header__row { margin-top: 14px; min-height: 64px; padding: 0 10px 0 24px; max-width: 1180px; }
  /* Droplet highlight that slides and stretches between menu items */
  .nav { position: relative; }
  .nav__link { z-index: 1; }
  .nav__link:not(.is-active)::after { display: none; }
  .nav__blob {
    position: absolute; top: 50%; left: 0; height: 38px; width: var(--bw, 0px); border-radius: 999px;
    transform: translate3d(var(--bx, 0px), -50%, 0) scale(.6); opacity: 0; pointer-events: none;
    background: rgba(255, 255, 255, .75);
    box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, .6), 0 4px 14px rgba(9, 28, 51, .12);
    /* width settles slower than position, so the blob stretches like a droplet on the way */
    transition: transform .55s var(--ease-spring), width .75s var(--ease-spring), opacity .25s ease;
  }
  .nav__blob.is-on { opacity: 1; transform: translate3d(var(--bx, 0px), -50%, 0) scale(1); }
}

/* ---- Buttons: glass rim + springy squash on press ---- */
.btn {
  transition: transform .5s var(--ease-spring), box-shadow .25s ease, background-color .25s ease, color .2s ease;
}
.btn:active, .btn:hover:active { transform: scale(.93, .96); transition-duration: .12s; }
.btn--wa {
  background: linear-gradient(180deg, rgba(52, 199, 110, .92), rgba(24, 150, 74, .92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .12), inset 0 0 0 1px rgba(255, 255, 255, .18), 0 8px 24px rgba(31, 168, 85, .38);
}
.btn--phone {
  background: linear-gradient(180deg, rgba(20, 178, 86, .95), rgba(0, 135, 57, .95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 6px 18px rgba(0, 150, 63, .3);
}
.btn--white {
  background: rgba(255, 255, 255, .92);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, .7), 0 10px 28px rgba(0, 0, 0, .22);
}
.btn--outline, .btn--ghost-light {
  background: rgba(255, 255, 255, .12);
  border-color: transparent; box-shadow: var(--lg-dark-rim);
}

/* ---- Hero chips: dark glass ---- */
.badge--hero, .status-pill--hero {
  background: rgba(255, 255, 255, .12); border-color: transparent;
  box-shadow: var(--lg-dark-rim), 0 6px 20px rgba(0, 0, 0, .18);
  padding: 7px 15px;
}

/* ---- Floating WhatsApp button: green glass bead ---- */
.fab {
  background: linear-gradient(180deg, rgba(60, 208, 118, .9), rgba(22, 146, 72, .92));
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .7), inset 0 -2px 6px rgba(0, 0, 0, .16), inset 0 0 0 1px rgba(255, 255, 255, .22), 0 12px 30px rgba(31, 168, 85, .45);
  transition: transform .5s var(--ease-spring);
}
.fab::after {
  content: ""; position: absolute; left: 18%; right: 18%; top: 7%; height: 34%; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); pointer-events: none; z-index: 1;
}
.fab:active { transform: scale(.88); transition-duration: .12s; }

/* ---- Dark band: colour orbs behind glass cards ---- */
.section--dark { overflow: hidden; }
.section--dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(38% 46% at 14% 30%, rgba(0, 170, 80, .38) 0%, transparent 70%),
    radial-gradient(34% 44% at 88% 72%, rgba(40, 125, 225, .42) 0%, transparent 70%),
    radial-gradient(22% 30% at 58% 18%, rgba(111, 224, 164, .16) 0%, transparent 70%);
}

@media (prefers-reduced-motion: reduce) {
  .nav__blob { transition: opacity .2s ease; }
}

/* Hero chips and buttons sit on a plain gradient: blur is invisible there and only costs frames */
.badge--hero, .status-pill--hero, .btn--outline { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Button row under a section (home services, service price block) */
.section__more { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 0; }
.prices-note { margin: 0 0 28px; }

/* =====================================================================
   LINK-IN-BIO PAGE (/contact/): a standalone app-like screen
   ===================================================================== */
.body--bare { background: #07192f; }
.links {
  position: relative; overflow: hidden; min-height: 100vh; min-height: 100dvh;
  display: flex; justify-content: center; padding: 22px 18px 40px; color: var(--white);
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(0, 150, 63, .2) 0%, transparent 55%),
    radial-gradient(110% 80% at 10% 100%, rgba(29, 104, 189, .28) 0%, transparent 60%),
    linear-gradient(165deg, #07192f 0%, #0b2547 60%, #0a3461 100%);
}
.links__glow { position: absolute; border-radius: 50%; pointer-events: none; }
.links__glow--1 { width: 420px; height: 420px; top: -160px; right: -160px; background: radial-gradient(circle, rgba(0, 170, 80, .32) 0%, transparent 65%); }
.links__glow--2 { width: 460px; height: 460px; bottom: -200px; left: -180px; background: radial-gradient(circle, rgba(40, 125, 225, .38) 0%, transparent 65%); }
.links__inner { position: relative; z-index: 1; width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.links__lang { align-self: flex-end; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); margin-bottom: 26px; }
.links__lang .lang-switch__link { color: rgba(255, 255, 255, .7); }
.links__lang .lang-switch__link:hover { color: var(--white); }
.links__lang .lang-switch__link.is-current { color: var(--navy); }
.links__brand { margin: 0 0 18px; text-transform: none; letter-spacing: 0; }
.links__brand .hero__brand-word { font-size: clamp(3.4rem, 17vw, 5rem); }
.links__brand .hero__brand-sub { justify-content: center; font-family: var(--font); font-size: .64rem; letter-spacing: .14em; gap: 10px; white-space: nowrap; }
.links__brand .hero__brand-sub::after {
  content: ""; flex: none; width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #5db1ff, #6fe0a4);
}
.links__brand .hero__brand-sub::before { width: 28px; }
.links__status { margin-bottom: 26px; animation: rise .7s var(--ease-out) .5s backwards; }

.links__list { width: 100%; display: grid; gap: 12px; }
.lbtn {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px;
  min-height: 62px; padding: 10px 20px; border-radius: 22px; text-align: left; text-decoration: none;
  color: var(--white); background: rgba(255, 255, 255, .09);
  box-shadow: var(--lg-dark-rim), 0 10px 28px rgba(0, 0, 0, .2);
  transition: transform .5s var(--ease-spring), background-color .25s ease;
  animation: rise .7s var(--ease-out) backwards;
}
.lbtn:nth-child(1) { animation-delay: .55s; } .lbtn:nth-child(2) { animation-delay: .62s; }
.lbtn:nth-child(3) { animation-delay: .69s; } .lbtn:nth-child(4) { animation-delay: .76s; }
.lbtn:nth-child(5) { animation-delay: .83s; } .lbtn:nth-child(6) { animation-delay: .9s; }
.lbtn:nth-child(n+7) { animation-delay: .97s; }
/* light streak across the top of the glass */
.lbtn::before {
  content: ""; position: absolute; inset: 1px 14px auto; height: 46%; border-radius: 20px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0));
}
.lbtn:hover { color: var(--white); background: rgba(255, 255, 255, .15); }
.lbtn:active { transform: scale(.95, .97); transition-duration: .12s; }
.lbtn .ico { width: 24px; height: 24px; color: #8fe6b6; }
.lbtn__text { display: grid; gap: 1px; min-width: 0; }
.lbtn__text b { font-weight: 700; font-size: 1.04rem; line-height: 1.25; }
.lbtn__text small { font-size: .84rem; color: rgba(255, 255, 255, .68); line-height: 1.3; }
.lbtn::after { content: "›"; margin-left: auto; font-size: 1.5rem; line-height: 1; color: rgba(255, 255, 255, .45); }
.lbtn--wa {
  min-height: 68px; justify-content: center; text-align: center;
  background: linear-gradient(180deg, rgba(52, 199, 110, .96), rgba(24, 150, 74, .96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 14px 34px rgba(31, 168, 85, .42);
}
.lbtn--wa:hover { background: linear-gradient(180deg, rgba(60, 210, 120, 1), rgba(28, 160, 80, 1)); }
.lbtn--wa .ico { color: var(--white); width: 26px; height: 26px; }
.lbtn--wa .lbtn__text b { font-size: 1.12rem; }
.lbtn--wa::after { display: none; }

.links__socials { display: flex; gap: 14px; margin: 28px 0 22px; animation: rise .7s var(--ease-out) 1.05s backwards; }
.links__socials a {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: var(--white);
  background: rgba(255, 255, 255, .09); box-shadow: var(--lg-dark-rim);
  transition: transform .5s var(--ease-spring), background-color .25s ease;
}
.links__socials a:hover { background: rgba(255, 255, 255, .18); transform: translateY(-3px); }
.links__socials a:active { transform: scale(.9); transition-duration: .12s; }
.links__socials .ico { width: 22px; height: 22px; }
.links__hours {
  margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 12px;
  font-size: .86rem; color: rgba(255, 255, 255, .62); animation: rise .7s var(--ease-out) 1.15s backwards;
}
.links__hours .ico { color: #8fe6b6; }
@media (min-width: 640px) { .links { padding-top: 48px; align-items: flex-start; } }

/* Map links: 2GIS / Google / Yandex — address on top, three equal buttons in one tidy row below */
.map-header { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 20px; }
.map-header__title { font-size: 1rem; font-weight: 700; color: var(--navy); }
.map-header__title .ico { color: var(--green); width: 1.15em; height: 1.15em; }
.map-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.map-links__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 10px; border-radius: 12px; text-align: center; line-height: 1.2;
  font-size: .9rem; font-weight: 700; color: var(--navy); text-decoration: none;
  background: var(--tint); border: 1px solid var(--line);
  transition: transform .5s var(--ease-spring), background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.map-links__btn:hover { color: var(--navy); background: var(--white); border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.map-links__btn:active { transform: scale(.95); transition-duration: .12s; }
.map-links__dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--green)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot, var(--green)) 18%, transparent); }
.map-links__btn--gis { --dot: #19aa1e; }
.map-links__btn--google { --dot: #4285f4; }
.map-links__btn--yandex { --dot: #fc3f1d; }
@media (max-width: 420px) { .map-links__btn { font-size: .8rem; gap: 6px; padding: 8px 6px; } }
.lmaps {
  position: relative; border-radius: 22px; padding: 14px 14px 14px; text-align: left;
  background: rgba(255, 255, 255, .09); box-shadow: var(--lg-dark-rim), 0 10px 28px rgba(0, 0, 0, .2);
  animation: rise .7s var(--ease-out) .83s backwards;
}
.lmaps__title { display: flex; align-items: center; gap: 8px; margin: 0 6px 12px; font-size: .9rem; color: rgba(255, 255, 255, .8); line-height: 1.3; }
.lmaps__title .ico { color: #8fe6b6; }
.lmaps__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lmaps__btn {
  display: grid; place-items: center; min-height: 46px; padding: 6px 8px; border-radius: 14px;
  color: var(--white); font-weight: 700; font-size: .95rem; text-decoration: none;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 0 0 1px rgba(255, 255, 255, .1);
  transition: transform .5s var(--ease-spring), background-color .25s ease;
}
.lmaps__btn:hover { color: var(--white); background: rgba(255, 255, 255, .2); }
.lmaps__btn:active { transform: scale(.93); transition-duration: .12s; }

/* Link page: the clinic emblem as a giant slow-turning watermark, plus a small glass badge above the name */
.links__mark {
  position: absolute; left: 50%; top: 42%; width: min(150vw, 980px); aspect-ratio: 1; pointer-events: none;
  color: #fff; opacity: .055; transform: translate(-50%, -50%);
  animation: mark-turn 120s linear infinite;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 72%);
}
@keyframes mark-turn { to { transform: translate(-50%, -50%) rotate(360deg); } }
.links__emblem {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px;
  color: #6fe0a4; background: rgba(255, 255, 255, .09);
  box-shadow: var(--lg-dark-rim), 0 12px 30px rgba(0, 0, 0, .25), 0 0 40px rgba(111, 224, 164, .18);
  animation: rise .7s var(--ease-out) .05s backwards;
}
.links__emblem .ico { width: 46px; height: 46px; }
@media (prefers-reduced-motion: reduce) { .links__mark { animation: none; } }

/* Link page, compact layout: everything fits one phone screen, buttons narrower than the screen */
.links { padding: 14px 16px 22px; }
.links__inner { max-width: 340px; }
.links__lang { margin-bottom: 10px; }
.links__emblem { width: 58px; height: 58px; margin-bottom: 8px; }
.links__emblem .ico { width: 36px; height: 36px; }
.links__brand { margin-bottom: 10px; }
.links__brand .hero__brand-word { font-size: clamp(2.6rem, 12vw, 3.6rem); }
.links__brand .hero__brand-sub { font-size: .58rem; margin-top: 8px; }
.links__status { margin-bottom: 14px; padding: 4px 12px; font-size: .78rem; }
.links__list { gap: 8px; }
.lbtn { min-height: 48px; padding: 6px 16px; border-radius: 16px; gap: 10px; }
.lbtn .ico { width: 20px; height: 20px; }
.lbtn__text b { font-size: .95rem; }
.lbtn__text small { font-size: .78rem; }
.lbtn::after { font-size: 1.25rem; }
.lbtn--wa { min-height: 52px; }
.lbtn--wa .ico { width: 22px; height: 22px; }
.lbtn--wa .lbtn__text b { font-size: 1rem; }
.lphones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lbtn--tel { justify-content: center; padding: 6px 10px; }
.lbtn--tel::after { display: none; }
.lbtn--tel .lbtn__text b { font-size: .88rem; letter-spacing: .01em; white-space: nowrap; }
.lmaps { padding: 10px 10px 10px; border-radius: 16px; }
.lmaps__title { margin: 0 4px 8px; font-size: .8rem; }
.lmaps__row { gap: 6px; }
.lmaps__btn { min-height: 38px; border-radius: 11px; font-size: .86rem; }
.links__socials { margin: 14px 0 10px; gap: 10px; }
.links__socials a { width: 42px; height: 42px; }
.links__socials .ico { width: 19px; height: 19px; }
.links__hours { font-size: .8rem; }
/* stagger order follows the new button order */
.lbtn:nth-child(1), .lbtn:nth-child(2), .lphones, .lmaps { animation-delay: .55s; }
.lbtn:nth-child(2) { animation-delay: .62s; }
.lphones { animation: rise .7s var(--ease-out) .69s backwards; }
.lmaps { animation-delay: .76s; }
@media (max-width: 360px) { .lbtn--tel .lbtn__text b { font-size: .8rem; } }
@media (min-height: 760px) and (max-width: 639px) {
  .links__emblem { width: 66px; height: 66px; } .links__list { gap: 10px; } .lbtn { min-height: 52px; } .lbtn--wa { min-height: 56px; }
}
@media (min-width: 640px) { .links { padding-top: 36px; } .links__inner { max-width: 360px; } }
/* narrower column on phones (father: buttons shouldn't span the whole screen) and a tidier hours line */
@media (max-width: 639px) {
  .links__inner { max-width: 306px; }
  .links__list { gap: 10px; }
  .links__brand { margin-bottom: 12px; }
  .links__status { margin-bottom: 18px; }
  .links__socials { margin: 18px 0 12px; }
}
.links__hours { gap: 4px 8px; }
.links__hours .hours-chunk + .hours-chunk::before { content: "·"; margin-right: 8px; opacity: .6; }
.lbtn--tel { gap: 6px; padding: 6px 6px; }
.lbtn--tel .ico { width: 17px; height: 17px; }
.lbtn--tel .lbtn__text b { font-size: .8rem; }
@media (max-width: 639px) { .lphones { gap: 8px; } }
/* Phones: caption under the wordmark stays on one line */
@media (max-width: 480px) {
  .hero__brand-sub { font-size: .6rem; letter-spacing: .1em; gap: 8px; white-space: nowrap; }
  .hero__brand-sub::before { width: 18px; }
}
