/* ==========================================================================
   Д-р Слави Пенев – уролог · style.css
   One stylesheet, no framework. Manrope (variable, self-hosted).
   Visual language adapted from the PharmaLab V2 system (start.pharmalab.online):
   deep navy "stage" with dot grid and teal glow, luminous teal actions,
   aqua surfaces, soft wave transitions, asymmetric card corners.
   ========================================================================== */

/* ---------- fonts ---------- */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/manrope-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/manrope-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokens ---------- */
:root {
  /* navy stage */
  --navy-950: #042437;
  --navy-900: #062a3e;
  --navy-800: #0b3349;
  --navy-700: #0d4258;
  --navy-foot: #082535;
  /* teal, deep (on light) → luminous (on navy) */
  --teal-700: #077a7e;
  --teal-600: #119b9f;
  --teal-500: #14babd;
  --teal-400: #2bccc1;
  --teal-300: #43ded1;
  --teal-200: #50d8ce;
  --teal-line: #38d6c9;
  /* aqua surfaces */
  --aqua-200: #bfebf3;
  --aqua-100: #e5f8f9;
  --aqua-50: #eef8fb;
  /* text on navy */
  --on-navy: #ffffff;
  --on-navy-lead: #d6eef2;
  --on-navy-soft: #b9e3e9;
  --on-navy-label: #a4f1f1;
  --on-navy-muted: #8fc6ce;
  --line-navy: rgba(164, 241, 241, .16);

  /* semantic names used across the site */
  --bg: #f6fafd;
  --surface: #ffffff;
  --panel: var(--aqua-100);
  --panel-2: var(--aqua-50);
  --line: #cfdfe7;
  --line-2: #e3eef3;
  --ink: #05283d;
  --ink-2: #2a4862;
  --ink-3: #54738e;
  --primary: var(--teal-700);
  --primary-2: #05595c;
  --primary-soft: var(--aqua-200);
  --primary-tint: var(--aqua-100);
  --mint: #d6f8f2;
  --mint-ink: #087a62;
  --alert: #9a3b2e;
  --alert-bg: #fbefeb;
  --focus: var(--teal-600);
  --star: #f2b931;

  --radius-xl: 28px;
  --radius-l: 22px;
  --radius-m: 14px;
  --radius-s: 10px;
  --radius-card: 24px 8px 24px 24px;
  --shadow-1: 0 1px 2px rgba(5, 40, 61, .04), 0 4px 14px rgba(5, 40, 61, .05);
  --shadow-2: 0 2px 6px rgba(5, 40, 61, .05), 0 18px 44px rgba(5, 40, 61, .09);
  --shadow-3: 0 6px 16px rgba(5, 40, 61, .08), 0 34px 80px rgba(5, 40, 61, .16);
  --glow: 0 0 0 1px rgba(67, 222, 209, .22), 0 0 34px rgba(37, 211, 216, .30), 0 30px 80px rgba(1, 14, 22, .45);
  --glow-soft: 0 0 0 1px rgba(67, 222, 209, .16), 0 0 22px rgba(37, 211, 216, .20), 0 20px 50px rgba(1, 14, 22, .35);

  /* the navy stage: dot grid + two teal glows + deep gradient */
  --stage:
    radial-gradient(circle at 2px 2px, rgba(82, 140, 157, .23) 1.6px, transparent 2.1px) 0 0 / 22px 22px,
    radial-gradient(60% 70% at 100% 25%, rgba(19, 132, 158, .34), transparent 68%),
    radial-gradient(50% 60% at 0% 85%, rgba(0, 94, 112, .32), transparent 60%),
    linear-gradient(120deg, #002233, #002e40 55%, #002435);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1240px;
  --measure: 68ch;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 80px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --wave-h: clamp(48px, 8vw, 130px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, address { margin: 0; }
address { font-style: normal; }
ul, ol { padding: 0; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--primary-2); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--aqua-200); color: var(--ink); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--teal-200); color: var(--navy-950); font-weight: 700; border-radius: var(--radius-s); }
.skip-link:focus { top: 12px; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.icon-large { width: 2.4rem; height: 2.4rem; }

/* ---------- type scale ---------- */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.14; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.08; }
h2 { font-size: clamp(1.65rem, 1.25rem + 1.4vw, 2.5rem); line-height: 1.14; }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; }
h4 { font-size: 1.1rem; }
.accent { color: var(--teal-600); }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); }
small, .small { font-size: .9rem; }

/* eyebrow pill: aqua on light, outlined on navy */
.eyebrow { display: inline-flex; align-items: center; gap: .45em; min-height: 36px; padding: 6px 16px; margin-bottom: 18px; border-radius: 999px; border: 1px solid rgba(17, 155, 159, .2); background: var(--aqua-100); color: var(--teal-700); font-size: .95rem; font-weight: 650; line-height: 1.2; letter-spacing: .01em; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(17, 155, 159, .16); }

/* ---------- layout ---------- */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-panel { background: var(--surface); }
.section-soft { background: linear-gradient(180deg, var(--aqua-50), var(--bg)); }
.section-head { max-width: 66ch; margin-bottom: clamp(30px, 4vw, 48px); }
.section-head p:not(.eyebrow) { margin-top: 14px; color: var(--ink-2); font-size: 1.1rem; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; max-width: none; }
.section-head-row > div { max-width: 66ch; }

/* ---------- navy stage (shared) ---------- */
.stage { position: relative; background: var(--stage); background-color: var(--navy-900); color: var(--on-navy-lead); }
.stage h1, .stage h2, .stage h3 { color: var(--on-navy); }
.stage .accent { color: var(--teal-300); }
.stage .eyebrow { border-color: rgba(67, 222, 209, .42); background: rgba(67, 222, 209, .07); color: var(--teal-300); box-shadow: inset 0 0 18px rgba(67, 222, 209, .06); }
.stage .eyebrow::before { box-shadow: 0 0 10px rgba(67, 222, 209, .8); }
.stage a:not(.button) { color: var(--on-navy-label); }
.stage a:not(.button):hover { color: #fff; }
.stage :focus-visible { outline-color: var(--teal-300); }

/* ---------- buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 26px; border-radius: var(--radius-m); font-weight: 750; font-size: 1.02rem; line-height: 1.25; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease); }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary { background: linear-gradient(180deg, #58e0d5 0%, var(--teal-200) 46%, #3fcfc4 100%); color: var(--navy-950); box-shadow: inset 0 0 0 1px rgba(164, 241, 241, .35), 0 10px 30px rgba(37, 211, 216, .24); }
.button-primary:hover { color: var(--navy-950); box-shadow: inset 0 0 0 1px rgba(164, 241, 241, .5), 0 14px 38px rgba(37, 211, 216, .36); }
.button-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-1); }
.button-secondary:hover { border-color: var(--teal-500); color: var(--teal-700); }
.button-secondary .icon { color: var(--teal-600); }
.button-outline { background: rgba(4, 36, 55, .2); color: #fff; border-color: rgba(191, 240, 240, .55); }
.button-outline:hover { background: rgba(67, 222, 209, .1); border-color: var(--teal-300); color: #fff; }
.button-outline .icon { color: var(--teal-300); }
.button-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 750; color: var(--teal-700); text-decoration: none; border-bottom: 1.5px solid rgba(17, 155, 159, .35); padding-bottom: 1px; transition: border-color .2s, color .2s; }
.text-link::after { content: "→"; transition: transform .22s var(--ease); }
.text-link:has(.icon)::after { content: none; }
.text-link:hover { color: var(--primary-2); border-color: currentColor; }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- header (navy, as on PharmaLab) ---------- */
/* no backdrop-filter here: it would turn the header into the containing block of the fixed mobile menu */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(3, 33, 49, .97); border-bottom: 1px solid transparent; color: var(--on-navy); transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line-navy); box-shadow: 0 10px 34px rgba(1, 14, 22, .32); }
.site-header :focus-visible { outline-color: var(--teal-300); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-navy); }
.brand:hover { color: var(--on-navy); }
/* logo: kidney + cross mark (assets/img/logo-mark.svg, traced from brand/logo-dr-slavi-penev.png) with the name set in Manrope, as in the logo file */
.brand-mark { flex: none; width: 54px; height: 50px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.08; }
.brand-name { font-weight: 800; letter-spacing: -0.015em; font-size: 1.22rem; color: var(--on-navy); white-space: nowrap; }
.brand-role { margin-top: 2px; font-size: .92rem; color: #40c7c3; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav ul { display: flex; gap: 2px; list-style: none; }
.main-nav li a { position: relative; display: inline-block; padding: 10px 12px; border-radius: 10px; font-weight: 650; font-size: .97rem; color: var(--on-navy-soft); text-decoration: none; transition: color .2s, background-color .2s; white-space: nowrap; }
.main-nav li a:hover { background: rgba(164, 241, 241, .08); color: #fff; }
.main-nav li a[aria-current="page"] { color: var(--teal-300); }
.main-nav li a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--teal-300); box-shadow: 0 0 10px rgba(67, 222, 209, .8); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.phone-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; color: var(--ink); text-decoration: none; white-space: nowrap; }
.phone-link .icon { color: var(--teal-600); }
.site-header .phone-link { color: var(--on-navy); }
.site-header .phone-link .icon { color: var(--teal-300); }
.site-header .phone-link:hover { color: var(--teal-300); }
.site-header .button { min-height: 48px; padding: 10px 22px; }
.phone-link-large { font-size: 1.35rem; margin-top: 16px; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid rgba(191, 240, 240, .4); border-radius: var(--radius-m); background: rgba(4, 36, 55, .4); flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.menu-toggle-bar { width: 20px; height: 2px; background: var(--on-navy); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- wave transitions (navy → light), drawn from the PharmaLab hero wave ---------- */
.hero::after, .article-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: var(--wave-h); background-repeat: no-repeat; background-size: 100% 100%; pointer-events: none; z-index: 1; }
.hero::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1513 185' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%237ce7ed' stop-opacity='.27'/%3E%3Cstop offset='1' stop-color='%2323c6c4' stop-opacity='.7'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 12C190 114 346 172 550 143S971 22 1178 25S1416 68 1513 118V185H0Z' fill='url(%23g)'/%3E%3Cpath d='M0 12C190 114 346 172 550 143S971 22 1178 25S1416 68 1513 118' fill='none' stroke='%2382d7de' stroke-opacity='.5'/%3E%3Cpath d='M0 57C225 164 371 193 585 160S982 54 1178 52S1416 93 1513 151V185H0Z' fill='%23bcf2f0'/%3E%3Cpath d='M0 77C225 179 394 193 603 158S982 54 1178 53S1416 93 1513 151V185H0Z' fill='%23ffffff'/%3E%3C/svg%3E"); }
.article-header::after { --wave-h: clamp(34px, 5.5vw, 88px); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1513 185' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%237ce7ed' stop-opacity='.27'/%3E%3Cstop offset='1' stop-color='%2323c6c4' stop-opacity='.7'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 12C190 114 346 172 550 143S971 22 1178 25S1416 68 1513 118V185H0Z' fill='url(%23g)'/%3E%3Cpath d='M0 12C190 114 346 172 550 143S971 22 1178 25S1416 68 1513 118' fill='none' stroke='%2382d7de' stroke-opacity='.5'/%3E%3Cpath d='M0 57C225 164 371 193 585 160S982 54 1178 52S1416 93 1513 151V185H0Z' fill='%23bcf2f0'/%3E%3Cpath d='M0 77C225 179 394 193 603 158S982 54 1178 53S1416 93 1513 151V185H0Z' fill='%23f6fafd'/%3E%3C/svg%3E"); }

/* ---------- hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: var(--stage); background-color: var(--navy-900); color: var(--on-navy-lead); padding-block: clamp(36px, 6vw, 88px) calc(var(--wave-h) + clamp(28px, 4vw, 56px)); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1513 760' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23238396' stroke-opacity='.4'%3E%3Cpath vector-effect='non-scaling-stroke' d='M0 86C280 100 360 330 720 340S1340 300 1513 138'/%3E%3Cpath vector-effect='non-scaling-stroke' d='M0 585C270 560 320 725 550 670S835 488 1085 575S1370 700 1513 650'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); column-gap: clamp(28px, 5vw, 72px); row-gap: clamp(40px, 4.5vw, 64px); align-items: center; }
.hero h1 { max-width: 15ch; color: var(--on-navy); }
.hero h1 .accent { display: block; color: var(--teal-300); text-shadow: 0 0 34px rgba(67, 222, 209, .35); }
.hero .eyebrow { border-color: rgba(67, 222, 209, .42); background: rgba(67, 222, 209, .07); color: var(--teal-300); }
.hero .eyebrow::before { box-shadow: 0 0 10px rgba(67, 222, 209, .8); }
.hero-lead { margin-top: 22px; max-width: 54ch; font-size: 1.15rem; line-height: 1.6; color: var(--on-navy-lead); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.hero-facts li { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 10px; border-radius: 20px 8px 20px 20px; background: linear-gradient(135deg, rgba(67, 222, 209, .12), rgba(255, 255, 255, .025) 70%); border: 1px solid rgba(67, 222, 209, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 26px rgba(1, 14, 22, .18); }
.hero-facts li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 46px; height: 46px; translate: 0 -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(67, 222, 209, .38), transparent); pointer-events: none; }
.fact-icon { position: relative; flex: none; width: 54px; height: 54px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(67, 222, 209, .55), 0 0 0 6px rgba(67, 222, 209, .10), 0 0 22px rgba(67, 222, 209, .42), 0 8px 18px rgba(1, 14, 22, .35); }
.hero-facts span { color: var(--on-navy-soft); font-size: .9rem; font-weight: 550; line-height: 1.35; }
.hero-facts strong { display: block; margin-bottom: 1px; color: var(--on-navy); font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em; }
.hero-figure { position: relative; z-index: 0; margin: 0; justify-self: end; align-self: start; width: min(100%, 560px); padding-top: 0; isolation: isolate; }
.hero-figure::before { content: ""; position: absolute; inset: -6% -12% -4%; z-index: -1; background: radial-gradient(closest-side at 55% 62%, rgba(64, 220, 208, .30), transparent 74%); pointer-events: none; }
/* main shape: organic, asymmetric top, flat bottom that the photo sits on */
.hero-shape { position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: 72%; overflow: hidden; border-radius: 62% 38% 26px 26px / 70% 46% 26px 26px; background: linear-gradient(158deg, #43ded1 0%, #14babd 24%, #0d6e7c 56%, #0b3349 100%); box-shadow: var(--glow); }
.hero-shape::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 70% at 22% 6%, rgba(255, 255, 255, .34), transparent 58%); }
.hero-shape::after { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 92% 108%, rgba(255, 255, 255, .07) 0 1px, transparent 1.5px 24px); }
/* offset outline arch, tilted against the shape */
.hero-frame { position: absolute; z-index: -1; right: -5%; top: 2%; width: 56%; height: 74%; border: 1.5px solid rgba(67, 222, 209, .5); border-radius: 999px 999px 44px 44px; transform: rotate(9deg); box-shadow: 0 0 28px rgba(67, 222, 209, .12) inset; }
.hero-dots { position: absolute; z-index: -1; left: -7%; top: 16%; width: 132px; height: 132px; background: radial-gradient(rgba(164, 241, 241, .6) 1.4px, transparent 1.6px) 0 0 / 14px 14px; -webkit-mask: radial-gradient(circle, #000 52%, transparent 72%); mask: radial-gradient(circle, #000 52%, transparent 72%); }
.hero-photo { position: relative; z-index: 1; display: block; width: 96%; height: auto; margin-inline: auto; filter: drop-shadow(0 22px 34px rgba(1, 14, 22, .42)); -webkit-mask: linear-gradient(#000 86%, transparent 100%); mask: linear-gradient(#000 86%, transparent 100%); }
.hero-badge { position: absolute; z-index: 2; left: -30px; bottom: -22px; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; background: rgba(255, 255, 255, .97); color: var(--ink); border-radius: 18px 6px 18px 18px; box-shadow: var(--shadow-3); font-size: .95rem; }
.hero-badge .icon { width: 38px; height: 38px; padding: 8px; border-radius: 12px; background: #fff6dc; color: var(--star); fill: var(--star); }
.hero-badge strong { display: block; font-size: 1.08rem; letter-spacing: -0.01em; }
.hero-badge span { color: var(--ink-2); }

/* ---------- icon tile (shared) ---------- */
.topic-icon, .index-group-head .icon { color: var(--teal-700); background: radial-gradient(circle at 32% 26%, #ffffff 0%, var(--aqua-100) 62%, #d5f1f5 100%); box-shadow: inset 0 0 0 1px rgba(17, 155, 159, .16); }

/* ---------- topic grid (home: conditions) ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.topic { position: relative; display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-card); text-decoration: none; color: inherit; box-shadow: var(--shadow-1); transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease); }
.topic::after { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--teal-line), transparent); opacity: 0; transition: opacity .25s var(--ease); }
.topic:hover { border-color: rgba(20, 186, 189, .45); box-shadow: var(--shadow-2); transform: translateY(-3px); color: inherit; }
.topic:hover::after { opacity: 1; }
.topic-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--aqua-100); }
.topic-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.topic:hover .topic-media img { transform: scale(1.04); }
.topic-icon { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 58px; height: 58px; margin: -31px 0 0 24px; border: 3px solid var(--surface); border-radius: 18px 6px 18px 18px; }
.topic-body { padding: 14px 26px 26px; }
.topic-icon .icon { width: 28px; height: 28px; }
.topic h3 { font-size: 1.18rem; margin-bottom: 8px; }
.topic p { color: var(--ink-2); font-size: .97rem; line-height: 1.55; }
.topic-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.topic-row { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 14px 16px; padding: 22px 22px 24px; }
.topic-row .topic-icon { width: 52px; height: 52px; margin: 0; border: 0; border-radius: 16px 6px 16px 16px; }
.topic-row .topic-icon .icon { width: 26px; height: 26px; }
.topic-row .topic-body { flex: 1 1 190px; min-width: 0; padding: 2px 0 0; }
.topic-row h2 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 6px; }
.topic .topic-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 750; color: var(--teal-700); font-size: .95rem; }
.topic .topic-more::after { content: "→"; transition: transform .22s var(--ease); }
.topic:hover .topic-more::after { transform: translateX(4px); }

/* ---------- service groups (home) ----------
   Each group is a box in its own colour (src/_data/serviceGroups.json → .sg--tone): gradient head with the
   same ribbons and wave as the /uslugi/ cards, and every service as its own tinted tile with an accent bar.
   On hover the tile fills with the group gradient. Boxes in one row share the head height (subgrid). */
.section-services { background:
  radial-gradient(38% 42% at 0% 6%, rgba(43, 204, 193, .13), transparent 70%),
  radial-gradient(32% 40% at 100% 46%, rgba(112, 68, 230, .08), transparent 70%),
  radial-gradient(34% 36% at 6% 100%, rgba(217, 109, 14, .07), transparent 70%),
  var(--bg); }
.service-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.sg { --g1: #075f66; --g2: #0e9a9a; --g3: #4fd9cb; --t-ink: #066a70; --t-soft: #e0f5f3;
  display: grid; grid-template-rows: auto 1fr; min-width: 0; overflow: hidden; background: #fff;
  border: 1px solid color-mix(in srgb, var(--g2) 20%, var(--line-2)); border-radius: var(--radius-card);
  box-shadow: 0 1px 2px rgba(5, 40, 61, .04), 0 22px 40px -28px color-mix(in srgb, var(--g1) 65%, transparent); }
@supports (grid-template-rows: subgrid) { .sg { grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; } }
.sg-head { position: relative; isolation: isolate; display: flex; align-items: flex-start; gap: 16px; padding: 26px 28px 44px; overflow: hidden;
  background: radial-gradient(42% 80% at 100% 0%, color-mix(in srgb, var(--g3) 45%, transparent), transparent 72%), linear-gradient(118deg, var(--g1) 0%, color-mix(in srgb, var(--g2) 60%, var(--g1)) 100%); }
.sg:hover .sg-head::before { background-position: 42.4px 0; }
.sg-icon { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px 6px 16px 16px; color: #fff; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .36); }
.sg-icon .icon { width: 26px; height: 26px; }
.sg-head h3 { color: #fff; font-size: 1.24rem; line-height: 1.25; text-shadow: 0 1px 2px rgba(0, 0, 0, .14); }
.sg-head p { margin-top: 6px; max-width: 48ch; color: rgba(255, 255, 255, .95); font-size: .94rem; line-height: 1.5; }
.sg-list { list-style: none; display: grid; align-content: start; gap: 10px; padding: 4px 22px 24px; }
.sg-item { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 58px; padding: 12px 14px 12px 24px; overflow: hidden;
  background: linear-gradient(90deg, color-mix(in srgb, var(--t-soft) 75%, #fff) 0%, #fff 88%);
  border: 1px solid color-mix(in srgb, var(--g2) 16%, var(--line-2)); border-radius: 14px 5px 14px 14px;
  color: var(--ink); font-weight: 650; line-height: 1.35; text-decoration: none;
  transition: color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease); }
/* accent bar */
.sg-item::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--g3), var(--g2)); transition: background-color .25s var(--ease); }
/* gradient fill, faded in on hover */
.sg-item::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s var(--ease);
  background: radial-gradient(60% 150% at 100% 0%, color-mix(in srgb, var(--g3) 70%, transparent), transparent 70%), linear-gradient(110deg, var(--g1) 0%, var(--g2) 100%); }
.sg-item:hover, .sg-item:focus-visible { color: #fff; border-color: transparent; transform: translateY(-2px); box-shadow: 0 16px 28px -16px color-mix(in srgb, var(--g1) 75%, transparent); }
.sg-item:hover::after, .sg-item:focus-visible::after { opacity: 1; }
.sg-item:hover::before, .sg-item:focus-visible::before { background: rgba(255, 255, 255, .75); }
.sg-item:focus-visible { outline: 3px solid var(--g2); outline-offset: 3px; }
.sg-name { min-width: 0; }
.sg-go { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--t-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g2) 24%, transparent); transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease); }
.sg-go .icon { width: 16px; height: 16px; }
.sg-item:hover .sg-go, .sg-item:focus-visible .sg-go { background: rgba(255, 255, 255, .2); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); transform: translateX(3px); }
.sg-empty { padding: 4px 28px 26px; color: var(--ink-2); font-size: .95rem; }

/* ---------- condition groups (/zabolyavaniya/) ----------
   The same coloured boxes as the home service groups (.sg + .sg--tone from src/_data/conditionGroups.json),
   jump chips above them, and article cards inside: accent bar, a gradient line that draws in on hover,
   a tinted wash and an arrow chip that fills with the group gradient. */
.cg-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.cg-chip { --g1: #075f66; --g2: #0e9a9a; --g3: #4fd9cb; --t-ink: #066a70; --t-soft: #e0f5f3;
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 10px 9px 14px; background: #fff;
  border: 1px solid color-mix(in srgb, var(--g2) 28%, var(--line-2)); border-radius: 999px;
  color: var(--ink); font-weight: 700; font-size: .95rem; text-decoration: none;
  box-shadow: 0 8px 18px -14px color-mix(in srgb, var(--g1) 70%, transparent);
  transition: color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.cg-dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--g3), var(--g2)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g2) 18%, transparent); }
.cg-count { min-width: 26px; padding: 2px 8px; border-radius: 999px; background: var(--t-soft); color: var(--t-ink); font-size: .82rem; font-weight: 800; text-align: center; }
.cg-chip:hover, .cg-chip:focus-visible { color: #fff; background: linear-gradient(110deg, var(--g1), var(--g2)); border-color: transparent; transform: translateY(-2px); box-shadow: 0 14px 24px -14px color-mix(in srgb, var(--g1) 85%, transparent); }
.cg-chip:hover .cg-dot, .cg-chip:focus-visible .cg-dot { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .3); }
.cg-chip:hover .cg-count, .cg-chip:focus-visible .cg-count { background: rgba(255, 255, 255, .22); color: #fff; }
.cg-chip:focus-visible { outline: 3px solid var(--g2); outline-offset: 3px; }
.cg-groups { display: grid; gap: 28px; }
.cg .sg-head { align-items: center; padding: 30px 32px 50px; }
.cg .sg-icon { width: 56px; height: 56px; }
.cg .sg-icon .icon { width: 28px; height: 28px; }
.cg .sg-head h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.2; text-shadow: 0 1px 2px rgba(0, 0, 0, .14); }
.cg .sg-head p { max-width: 62ch; }
.cg-total { flex: none; margin-left: auto; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .36); color: #fff; font-size: .86rem; font-weight: 750; white-space: nowrap; }
.cg-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 6px 26px 28px; }
.cg-list > li { display: grid; }
.cg-card { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 6px; padding: 18px 58px 20px 26px; overflow: hidden;
  background-color: #fff; border: 1px solid color-mix(in srgb, var(--g2) 16%, var(--line-2)); border-radius: 16px 6px 16px 16px;
  color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(5, 40, 61, .04);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease); }
/* accent bar; it stretches a little on hover */
.cg-card::before { content: ""; position: absolute; left: 10px; top: 20px; bottom: 20px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--g3), var(--g2)); transition: top .3s var(--ease), bottom .3s var(--ease); }
/* gradient line along the top edge, drawn in from the left on hover */
.cg-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--g1), var(--g2) 55%, var(--g3)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.cg-title { font-weight: 750; font-size: 1.04rem; line-height: 1.35; transition: color .25s var(--ease); }
.cg-text { color: var(--ink-2); font-size: .93rem; line-height: 1.55; }
.cg-go { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--t-soft); color: var(--t-ink); transition: color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease); }
.cg-go .icon { width: 16px; height: 16px; }
.cg-card:hover, .cg-card:focus-visible { background-color: color-mix(in srgb, var(--t-soft) 45%, #fff); border-color: color-mix(in srgb, var(--g2) 40%, transparent); transform: translateY(-3px); box-shadow: 0 20px 34px -22px color-mix(in srgb, var(--g1) 75%, transparent); }
.cg-card:hover::before, .cg-card:focus-visible::before { top: 12px; bottom: 12px; }
.cg-card:hover::after, .cg-card:focus-visible::after { transform: scaleX(1); }
.cg-card:hover .cg-title, .cg-card:focus-visible .cg-title { color: var(--t-ink); }
.cg-card:hover .cg-go, .cg-card:focus-visible .cg-go { background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; transform: translateX(3px); box-shadow: 0 8px 16px -8px color-mix(in srgb, var(--g1) 85%, transparent); }
.cg-card:focus-visible { outline: 3px solid var(--g2); outline-offset: 3px; }

/* ---------- locations ---------- */
.locations-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.location-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-1); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.location-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.location-card-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.location-card-photo-placeholder { display: grid; place-items: center; background: var(--stage); background-color: var(--navy-900); color: var(--teal-300); }
.location-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.location-kind { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--mint); font-size: .82rem; font-weight: 750; color: var(--mint-ink); letter-spacing: .01em; }
.location-name { font-size: 1.18rem; }
.location-card address { display: grid; gap: 8px; margin-top: 4px; color: var(--ink-2); font-size: .97rem; }
.location-card address p { display: flex; gap: 10px; align-items: flex-start; }
.location-card address .icon { color: var(--teal-600); margin-top: .2em; }
.location-description { color: var(--ink-2); font-size: .96rem; }
.location-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: auto; padding-top: 12px; font-size: .95rem; }

/* ---------- about (home) ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-portrait { width: 100%; max-width: 400px; aspect-ratio: 1; object-fit: cover; border-radius: 34px 10px 34px 34px; box-shadow: 0 0 0 8px var(--aqua-100), var(--shadow-2); }
.about-text p + p { margin-top: 14px; }
.about-text .lead { margin-top: 16px; }
.cred-list { list-style: none; display: grid; gap: 12px; margin-top: 24px; }
.cred-list li { display: flex; gap: 12px; align-items: flex-start; }
.cred-list .icon { flex: none; margin-top: .15em; width: 24px; height: 24px; padding: 4px; border-radius: 8px; background: var(--mint); color: var(--mint-ink); }

/* ---------- rating block (navy stage card) ---------- */
.rating-block { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 34px 38px; background: var(--stage); background-color: var(--navy-900); border-radius: var(--radius-xl) 10px var(--radius-xl) var(--radius-xl); box-shadow: var(--glow-soft); color: var(--on-navy-lead); }
.rating-block h2 { color: var(--on-navy); }
.rating-score { display: flex; align-items: center; gap: 10px; font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; color: var(--on-navy); line-height: 1; }
.rating-score .icon { width: 2.1rem; height: 2.1rem; color: var(--star); fill: var(--star); filter: drop-shadow(0 0 12px rgba(242, 185, 49, .45)); }
.rating-block p { color: var(--on-navy-lead); }
.rating-block .button-secondary { background: rgba(4, 36, 55, .2); color: #fff; border-color: rgba(191, 240, 240, .55); box-shadow: none; }
.rating-block .button-secondary:hover { background: rgba(67, 222, 209, .1); border-color: var(--teal-300); }
.rating-block .button-secondary .icon { color: var(--teal-300); }
.rating-block :focus-visible { outline-color: var(--teal-300); }

/* ---------- article cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-card); text-decoration: none; color: inherit; box-shadow: var(--shadow-1); transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease); }
.card:hover { border-color: rgba(20, 186, 189, .45); box-shadow: var(--shadow-2); transform: translateY(-3px); color: inherit; }
.card-kicker { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--aqua-100); font-size: .82rem; font-weight: 750; color: var(--teal-700); }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--ink-2); font-size: .96rem; line-height: 1.55; }
.card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-weight: 750; color: var(--teal-700); font-size: .95rem; }
.card-more::after { content: "→"; transition: transform .22s var(--ease); }
.card:hover .card-more::after { transform: translateX(4px); }

/* ---------- lists on index pages ---------- */
.index-group { padding-block: 10px 44px; }
.index-group + .index-group { border-top: 1px solid var(--line-2); padding-top: 44px; }
.index-group-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.index-group-head .icon { width: 48px; height: 48px; padding: 11px; border-radius: 14px 5px 14px 14px; }
.index-group-head p { color: var(--ink-2); margin-top: 4px; }

/* ---------- service cards (/uslugi/): one hue per service – gradient head with ribbon stripes and a wave ----------
   Colour per service: src/_data/serviceCards.json. Head = --g1 (dark, under the title) → --g2 → --g3 (light glow, top right).
   White titles keep ≥3:1 on --g1/--g2 (large bold text); --t-ink is the link colour on white (≥6:1).
   Cards use subgrid, so heads, texts and links line up across each row. */
.svc-grid { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 20px; row-gap: 0; }
.svc-grid > li { display: grid; grid-row: span 3; grid-template-rows: subgrid; min-width: 0; padding-bottom: 20px; }
.svc { --g1: #075f66; --g2: #0e9a9a; --g3: #4fd9cb; --t-ink: #066a70; --t-soft: #e0f5f3;
  position: relative; grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; overflow: hidden;
  background: #fff; border: 1px solid color-mix(in srgb, var(--g2) 24%, var(--line-2)); border-radius: var(--radius-card);
  box-shadow: 0 1px 2px rgba(5, 40, 61, .04), 0 14px 28px -18px color-mix(in srgb, var(--g1) 55%, transparent);
  color: var(--ink); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.svc--blue, .sg--blue   { --g1: #1741a8; --g2: #2f6fe4; --g3: #79b6ff; --t-ink: #1d55c2; --t-soft: #e7effe; }
.svc--violet, .sg--violet { --g1: #4a22b0; --g2: #7044e6; --g3: #b597ff; --t-ink: #5a31c8; --t-soft: #efe9fe; }
.svc--rose, .sg--rose   { --g1: #9c1d4b; --g2: #d63c6f; --g3: #ff9bbb; --t-ink: #b02a58; --t-soft: #fde8ef; }
.svc--amber, .sg--amber  { --g1: #a3460a; --g2: #d96d0e; --g3: #ffc066; --t-ink: #9a4d05; --t-soft: #fff0dc; }
.svc--green, .sg--green  { --g1: #08654a; --g2: #12a06f; --g3: #6ae0ae; --t-ink: #0b7350; --t-soft: #e2f6ec; }
.svc:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 2px 6px rgba(5, 40, 61, .05), 0 28px 50px -22px color-mix(in srgb, var(--g1) 60%, transparent); }
.svc:focus-visible { outline: 3px solid var(--g2); outline-offset: 3px; border-radius: var(--radius-card); }
.svc-head { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 120px; padding: 24px 24px 36px; overflow: hidden;
  background: radial-gradient(55% 85% at 100% 0%, color-mix(in srgb, var(--g3) 80%, transparent), transparent 72%), linear-gradient(118deg, var(--g1) 0%, var(--g2) 100%); }
/* ribbons: diagonal light stripes fading in from the top-right corner; they slide one step on hover */
.svc-head::before, .sg-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .16) 0 11px, rgba(255, 255, 255, 0) 11px 30px);
  -webkit-mask-image: linear-gradient(240deg, #000 0%, rgba(0, 0, 0, .55) 32%, transparent 64%); mask-image: linear-gradient(240deg, #000 0%, rgba(0, 0, 0, .55) 32%, transparent 64%);
  transition: background-position .7s var(--ease); }
.svc:hover .svc-head::before { background-position: 42.4px 0; }
/* soft double wave into the white body – the same move as the page header */
.svc-head::after, .sg-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 24' preserveAspectRatio='none'%3E%3Cpath d='M0 10C70 1 150 2 232 11S352 20 400 7V24H0Z' fill='%23fff' fill-opacity='.4'/%3E%3Cpath d='M0 16C82 8 162 8 248 16S356 23 400 13V24H0Z' fill='%23fff'/%3E%3C/svg%3E") 0 100% / 100% 100% no-repeat; }
.svc-title { color: #fff; font-size: 1.16rem; line-height: 1.26; text-shadow: 0 1px 2px rgba(0, 0, 0, .14); }
.svc-text { padding: 4px 24px 0; color: var(--ink-2); font-size: .95rem; line-height: 1.58; }
.svc-more { align-self: end; justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 16px 24px 22px; color: var(--t-ink); font-size: .93rem; font-weight: 750; }
.svc-more .icon { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--t-soft); transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
.svc:hover .svc-more .icon { background: var(--g2); color: #fff; transform: translateX(3px); }
@media (min-width: 641px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid > li:nth-child(odd):last-child { grid-column: 1 / -1; }
}
/* desktop: 3 per row; a row that would end with a gap is filled (lone card spans the row, two cards share it, four cards make 2×2) */
@media (min-width: 1101px) {
  .svc-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .svc-grid > li, .svc-grid > li:nth-child(odd):last-child { grid-column: span 2; }
  .svc-grid > li:nth-child(3n+1):last-child { grid-column: 1 / -1; }
  .svc-grid > li:nth-child(3n+1):nth-last-child(2), .svc-grid > li:nth-child(3n+1):nth-last-child(2) ~ li { grid-column: span 3; }
  .svc-grid > li:first-child:nth-last-child(4), .svc-grid > li:first-child:nth-last-child(4) ~ li { grid-column: span 3; }
}

/* ---------- cta band (navy closing stage) ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--stage); background-color: var(--navy-900); color: var(--on-navy-lead); padding-block: clamp(52px, 7vw, 88px); }
.cta-band::before { content: ""; position: absolute; left: 50%; top: 0; width: min(900px, 90%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--teal-line), transparent); box-shadow: 0 0 18px rgba(56, 214, 201, .7); }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { margin-top: 14px; color: var(--on-navy-lead); max-width: 56ch; }
.cta-band-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-band :focus-visible { outline-color: var(--teal-300); }

/* ---------- footer (navy foot) ---------- */
.site-footer { background: var(--navy-foot); color: var(--on-navy-soft); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line-navy); }
.site-footer :focus-visible { outline-color: var(--teal-300); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; }
.footer-brand p { margin-top: 18px; color: var(--on-navy-soft); max-width: 36ch; }
.site-footer .phone-link { color: #fff; }
.site-footer .phone-link .icon { color: var(--teal-300); }
.footer-heading { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-300); margin-bottom: 16px; }
.footer-list { list-style: none; display: grid; gap: 12px; }
.footer-list a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-list a:hover { color: var(--teal-300); text-decoration: underline; }
.site-footer a { color: var(--on-navy-label); }
.site-footer a:hover { color: #fff; }
.footer-small { font-size: .9rem; color: var(--on-navy-muted); }
.footer-bottom { border-top: 1px solid var(--line-navy); padding-block: 24px 30px; display: grid; gap: 10px; }
.footer-disclaimer { font-size: .9rem; color: var(--on-navy-muted); max-width: 90ch; }

/* ---------- mobile call bar ---------- */
.mobile-cta { display: none; }

/* ---------- breadcrumbs ---------- */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .9rem; color: var(--ink-3); }
.breadcrumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line); }
.breadcrumbs a { color: var(--ink-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); text-decoration: underline; }
.breadcrumbs li[aria-current] { color: var(--ink-2); }

/* ---------- article / inner-page header (navy stage + wave) ---------- */
.article-header { position: relative; overflow: hidden; background: var(--stage); background-color: var(--navy-900); color: var(--on-navy-lead); padding-block: clamp(26px, 4vw, 48px) calc(clamp(34px, 5.5vw, 88px) + clamp(26px, 3.5vw, 44px)); }
.article-header > .container { position: relative; z-index: 2; }
.article-header h1 { max-width: 24ch; color: var(--on-navy); }
.article-header .breadcrumbs ol { color: var(--on-navy-muted); }
.article-header .breadcrumbs li + li::before { color: rgba(164, 241, 241, .35); }
.article-header .breadcrumbs a { color: var(--on-navy-soft); }
.article-header .breadcrumbs a:hover { color: #fff; }
.article-header .breadcrumbs li[aria-current] { color: var(--on-navy-lead); }
.article-header :focus-visible { outline-color: var(--teal-300); }
.article-kicker { display: inline-flex; align-items: center; gap: .45em; margin: 24px 0 16px; padding: 6px 16px; border-radius: 999px; border: 1px solid rgba(67, 222, 209, .42); background: rgba(67, 222, 209, .07); font-weight: 650; color: var(--teal-300); font-size: .92rem; line-height: 1.2; }
.article-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px rgba(67, 222, 209, .8); }
.article-lead { margin-top: 18px; max-width: 62ch; font-size: 1.15rem; line-height: 1.6; color: var(--on-navy-lead); }
.article-header a:not(.button) { color: var(--on-navy-label); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; font-size: .92rem; color: var(--on-navy-muted); }
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta .icon { color: var(--teal-300); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); padding-block: clamp(28px, 4vw, 48px) clamp(48px, 6vw, 88px); align-items: start; }
.article-single { padding-block: clamp(28px, 4vw, 48px) clamp(48px, 6vw, 88px); }
.article-single .article-body-column { max-width: 76ch; }
.article-sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
.toc { margin-bottom: 34px; padding: 22px 26px; background: var(--surface); border: 1px solid var(--line-2); border-left: 3px solid var(--teal-400); border-radius: 6px var(--radius-l) var(--radius-l) 6px; box-shadow: var(--shadow-1); }
.toc-title { font-weight: 800; margin-bottom: 10px; }
.toc ol { padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.toc li::marker { color: var(--teal-600); font-weight: 700; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--teal-700); text-decoration: underline; }

/* prose */
.prose { max-width: var(--measure); font-size: 1.05rem; line-height: 1.72; color: #12314c; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; margin-bottom: .55em; padding-top: .2em; font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem); }
.prose h3 { margin-top: 1.6em; margin-bottom: .45em; }
.prose h2 + h3, .prose h2 + p, .prose h3 + p { margin-top: .5em; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--teal-500); }
.prose strong { font-weight: 750; color: var(--ink); }
.prose a { color: var(--teal-700); font-weight: 600; }
.prose blockquote { margin-inline: 0; padding: 18px 24px; border-left: 3px solid var(--teal-400); background: var(--aqua-50); border-radius: 0 var(--radius-m) var(--radius-m) 0; color: var(--ink-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.prose th { background: var(--aqua-50); font-weight: 750; color: var(--ink); }
.prose img { border-radius: var(--radius-m); }
.prose hr { border: 0; border-top: 1px solid var(--line-2); margin-block: 2em; }
.note { padding: 20px 24px; border-radius: 6px var(--radius-m) var(--radius-m) 6px; background: var(--aqua-50); border: 1px solid var(--aqua-200); border-left: 3px solid var(--teal-400); }
.note-title { font-weight: 800; margin-bottom: 6px; color: var(--ink); }
.note-alert { background: var(--alert-bg); border-color: #efcfc6; border-left-color: var(--alert); color: #5a2a22; }
.note-alert .note-title { color: var(--alert); }
.where-box { margin-top: 44px; padding: 28px 30px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-card); box-shadow: var(--shadow-1); }
.where-box h2 { font-size: 1.3rem; margin-bottom: 14px; }
.where-list { list-style: none; display: grid; gap: 10px; margin-bottom: 14px; }
.where-list li { display: flex; gap: 10px; align-items: flex-start; }
.where-list .icon { color: var(--teal-600); margin-top: .2em; }
.where-box p { color: var(--ink-2); font-size: .97rem; }

/* faq */
.faq { margin-top: 52px; }
.faq h2 { margin-bottom: 20px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px 6px 16px 16px; box-shadow: var(--shadow-1); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: rgba(20, 186, 189, .45); box-shadow: var(--shadow-2); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 750; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--aqua-100); color: var(--teal-700); font-size: 1.25rem; font-weight: 600; line-height: 1; transition: transform .25s var(--ease), background-color .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--teal-200); color: var(--navy-950); }
.faq-answer { padding: 0 22px 20px; color: var(--ink-2); }

/* related */
.related { margin-top: 52px; }
.related h2 { margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.related h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 12px; }
.related ul { list-style: none; display: grid; gap: 8px; }
.related a { font-weight: 650; text-decoration: none; color: var(--ink); }
.related a:hover { color: var(--teal-700); text-decoration: underline; }
.article-disclaimer { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: .9rem; color: var(--ink-3); }

/* booking card */
.booking-card { position: relative; overflow: hidden; padding: 28px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-card); box-shadow: var(--shadow-2); display: grid; gap: 14px; }
.booking-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--teal-600), var(--teal-300), var(--aqua-200)); }
.booking-card-title { font-size: 1.28rem; }
.booking-card p { color: var(--ink-2); font-size: .97rem; }
.booking-card-rating { display: flex; align-items: center; gap: 8px; font-size: .93rem; }
.booking-card-rating .icon { color: var(--star); fill: var(--star); }
.booking-card-list { list-style: none; display: grid; gap: 8px; font-size: .93rem; color: var(--ink-2); padding-top: 12px; border-top: 1px solid var(--line-2); }
.booking-card-list li { display: flex; gap: 8px; align-items: flex-start; }
.booking-card-list .icon { color: var(--teal-600); margin-top: .15em; }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; padding: 32px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-card); box-shadow: var(--shadow-2); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .95rem; color: var(--ink); }
.field .hint { font-size: .88rem; color: var(--ink-3); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #7d95a3; border-radius: var(--radius-m); background: #fff; font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 3px rgba(17, 155, 159, .3); }
.field textarea { min-height: 120px; resize: vertical; }
.field-consent { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.field-consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--teal-600); }
.form-status { padding: 14px 18px; border-radius: var(--radius-m); font-weight: 600; }
.form-status.is-success { background: var(--mint); color: var(--mint-ink); }
.form-status.is-error { background: var(--alert-bg); color: var(--alert); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- prices ---------- */
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-1); }
.price-table th, .price-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line-2); }
.price-table th { background: var(--navy-900); color: var(--on-navy-label); font-size: .88rem; letter-spacing: .04em; text-transform: uppercase; }
.price-table td:last-child { font-weight: 800; white-space: nowrap; color: var(--teal-700); font-size: 1.08rem; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover td { background: var(--aqua-50); }

/* ---------- contact two-column ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: start; }

/* ---------- 404 ---------- */
.error-page { text-align: left; padding-block: clamp(60px, 10vw, 120px); }

/* ---------- "Силна болка?" – triggers, triage panel, dialog ---------- */
:root { --urgent: #ff6b5b; --red: #c9302c; --red-bg: #fdeeed; --amber: #a85400; --amber-dot: #f59e0b; --amber-bg: #fff5e6; --blue: #1c5fbf; --blue-dot: #3b82f6; --blue-bg: #eaf2fe; }
.urgent-dot { position: relative; flex: none; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--urgent); box-shadow: 0 0 0 0 rgba(255, 107, 91, .6); animation: urgent-pulse 2.2s var(--ease) infinite; }
@keyframes urgent-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 91, .55); } 70% { box-shadow: 0 0 0 9px rgba(255, 107, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 107, 91, 0); } }

/* home hero link */
.hero-urgent { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 10px 16px 10px 14px; border-radius: 999px; border: 1px solid rgba(255, 128, 110, .38); background: rgba(255, 107, 91, .08); color: #ffd9d2; font-size: .98rem; text-decoration: none; transition: background-color .22s var(--ease), border-color .22s var(--ease); }
.hero-urgent strong { color: #fff; font-weight: 800; }
.hero-urgent .icon { width: 18px; height: 18px; color: #ff9c8c; transition: transform .22s var(--ease); }
.hero-urgent:hover { color: #fff; background: rgba(255, 107, 91, .16); border-color: rgba(255, 128, 110, .7); }
.hero-urgent:hover .icon { transform: translateX(3px); }

/* desktop floating button (appears after scrolling, see main.js) */
.urgent-fab { position: fixed; right: 24px; bottom: 24px; z-index: 44; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 16px; border-radius: 999px; background: rgba(4, 36, 55, .96); border: 1px solid rgba(255, 128, 110, .6); color: #fff; font-weight: 800; font-size: .98rem; text-decoration: none; box-shadow: 0 0 0 4px rgba(255, 107, 91, .12), 0 14px 34px rgba(1, 14, 22, .35); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .2s; }
.show-urgent-fab .urgent-fab { opacity: 1; transform: none; pointer-events: auto; }
.urgent-fab:hover { color: #fff; background: #0b3349; }
.page-urgent .urgent-fab { display: none; }

/* strip at the top of acute-pain articles */
.urgent-strip { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; padding: 16px 18px; border-radius: var(--radius-card); background: linear-gradient(100deg, #fff1ee, #fff8f6 60%); border: 1px solid #ffd3cb; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-1); transition: border-color .22s var(--ease), box-shadow .22s var(--ease); }
.urgent-strip:hover { color: var(--ink); border-color: #ff9c8c; box-shadow: var(--shadow-2); }
.urgent-strip-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px 5px 14px 14px; background: #fff; color: var(--red); box-shadow: inset 0 0 0 1px #ffd3cb; }
.urgent-strip-icon .icon { width: 24px; height: 24px; }
.urgent-strip-text { flex: 1; font-size: .98rem; line-height: 1.45; color: var(--ink-2); }
.urgent-strip-text strong { color: var(--ink); }
.urgent-strip-cta { flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--red); white-space: nowrap; }
.urgent-strip-cta .icon { width: 18px; height: 18px; transition: transform .22s var(--ease); }
.urgent-strip:hover .urgent-strip-cta .icon { transform: translateX(3px); }

/* triage cards */
.urgent-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.urgent-card { position: relative; display: flex; flex-direction: column; padding: 22px 22px 20px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-card); box-shadow: var(--shadow-1); overflow: hidden; }
.urgent-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c-dot); }
.urgent-card--red { --c: var(--red); --c-dot: #e5484d; --c-bg: var(--red-bg); }
.urgent-card--amber { --c: var(--amber); --c-dot: var(--amber-dot); --c-bg: var(--amber-bg); }
.urgent-card--blue { --c: var(--blue); --c-dot: var(--blue-dot); --c-bg: var(--blue-bg); }
.urgent-level { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; margin-bottom: 12px; padding: 5px 12px; border-radius: 999px; background: var(--c-bg); color: var(--c); font-size: .86rem; font-weight: 800; }
.urgent-level-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c-dot); box-shadow: 0 0 0 3px var(--c-bg); }
.urgent-card h3 { font-size: 1.08rem; line-height: 1.3; margin-bottom: 12px; color: var(--ink); }
.urgent-card ul { list-style: none; display: grid; gap: 8px; margin: 0 0 16px; padding: 0; color: var(--ink-2); font-size: .94rem; line-height: 1.45; }
.urgent-card li { position: relative; padding-left: 18px; }
.urgent-card li::before { content: ""; position: absolute; left: 2px; top: .58em; width: 7px; height: 7px; border-radius: 50%; border: 2px solid var(--c-dot); }
.urgent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; }
.urgent-btn { min-height: 46px; padding: 10px 18px; font-size: .96rem; border-radius: 12px; }
.urgent-btn .icon { width: 19px; height: 19px; }
.urgent-btn--red { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(201, 48, 44, .28); }
.urgent-btn--red:hover { background: #ad2622; color: #fff; }
.urgent-btn--amber { background: #ffb02e; color: #3b2400; box-shadow: 0 8px 22px rgba(245, 158, 11, .26); }
.urgent-btn--amber:hover { background: #f59e0b; color: #2b1a00; }
.urgent-btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.urgent-btn--ghost:hover { border-color: #7360f2; color: #5b48d9; }
.urgent-btn--blue { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(28, 95, 191, .25); }
.urgent-btn--blue:hover { background: #164e9f; color: #fff; }
.urgent-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 750; font-size: .94rem; color: var(--blue); }
.urgent-link .icon { width: 17px; height: 17px; }
.office-note { margin: -4px 0 16px; padding: 10px 12px; border-radius: 12px; background: var(--amber-bg); color: #5c3b00; font-size: .9rem; line-height: 1.45; }
.office-note + .office-note { margin-top: -6px; }
.urgent-panel[data-office="open"] .office-note--closed, .urgent-panel[data-office="closed"] .office-note--open { display: none; }
.urgent-panel[data-office] .office-note { margin-top: -4px; }
.urgent-disclaimer { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; color: var(--ink-3); font-size: .88rem; }
.urgent-disclaimer .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.urgent-page { padding-block: clamp(28px, 4vw, 48px) clamp(48px, 6vw, 80px); }

/* dialog: centred panel on desktop, bottom sheet on phones */
.urgent-dialog { width: min(1080px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 40px); margin: auto; padding: 0; border: 0; border-radius: 26px; background: var(--bg); color: var(--ink); box-shadow: 0 30px 90px rgba(1, 14, 22, .5); overflow: auto; overscroll-behavior: contain; }
.urgent-dialog::backdrop { background: rgba(2, 20, 31, .62); backdrop-filter: blur(3px); }
.urgent-dialog[open] { animation: urgent-in .28s var(--ease); }
@keyframes urgent-in { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes urgent-sheet-in { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
html:has(.urgent-dialog[open]) { overflow: hidden; }
.urgent-sheet { padding: 0 24px 24px; }
.urgent-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 -24px 20px; padding: 22px 24px 20px; background: var(--stage); background-color: var(--navy-900); color: var(--on-navy-lead); }
.urgent-head h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.urgent-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 6px; color: #ffb3a7; font-weight: 800; font-size: .95rem; }
.urgent-sub { margin-top: 6px; color: var(--on-navy-soft); font-size: .98rem; }
.urgent-close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(191, 240, 240, .4); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; }
.urgent-close:hover { background: rgba(255, 255, 255, .14); }
.urgent-close .icon { width: 22px; height: 22px; }
.urgent-close:focus-visible { outline-color: var(--teal-300); }

@media (max-width: 960px) {
  .urgent-cards { grid-template-columns: 1fr; }
  .urgent-dialog { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .urgent-dialog[open] { animation-name: urgent-sheet-in; }
  .urgent-sheet { padding: 0 16px 20px; }
  .urgent-head { margin: 0 -16px 16px; padding: 18px 16px 16px; }
}
@media (max-width: 640px) {
  .urgent-strip { flex-wrap: wrap; gap: 12px; padding: 14px; }
  .urgent-strip-text { flex-basis: calc(100% - 62px); }
  .urgent-strip-cta { margin-left: 58px; }
  .hero-urgent { display: flex; width: 100%; font-size: .94rem; }
  .urgent-btn { flex: 1 1 auto; }
}

/* ---------- advice: colour-coded topics (see src/_data/adviceTopics.json) ---------- */
[data-topic="pregled"] { --tc: #077a7e; --tc-2: #14babd; --tb: #e0f6f4; }
[data-topic="kamani"] { --tc: #b45309; --tc-2: #f59e0b; --tb: #fff0d9; }
[data-topic="prostata"] { --tc: #1d5fbf; --tc-2: #3b82f6; --tb: #e6effd; }
[data-topic="infekcii"] { --tc: #b81d5b; --tc-2: #ec4899; --tb: #fde8f1; }
[data-topic="mazhko"] { --tc: #6a2bd0; --tc-2: #8b5cf6; --tb: #efe8ff; }

.advice-card { position: relative; overflow: hidden; gap: 14px; padding: 26px 26px 24px; background: linear-gradient(165deg, var(--tb, var(--aqua-100)) 0%, #ffffff 48%); }
.advice-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--tc), var(--tc-2)); }
.advice-card:hover { border-color: var(--tc-2); box-shadow: 0 2px 6px rgba(5, 40, 61, .05), 0 20px 46px rgba(5, 40, 61, .11); }
.advice-card > :not(.advice-mark) { position: relative; z-index: 1; }
.advice-top { display: flex; align-items: center; gap: 12px; }
.advice-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px 5px 14px 14px; background: #fff; color: var(--tc); box-shadow: 0 6px 16px rgba(5, 40, 61, .08); }
.advice-icon .icon { width: 23px; height: 23px; }
.advice-tag { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; background: var(--tc); color: #fff; font-size: .82rem; font-weight: 800; line-height: 1.25; }
.advice-card h3 { font-size: 1.16rem; }
.advice-card .card-more { color: var(--tc); }
.advice-mark { position: absolute; right: -22px; bottom: -22px; width: 128px; height: 128px; color: var(--tc-2); opacity: .09; pointer-events: none; transition: transform .45s var(--ease), opacity .3s var(--ease); }
.advice-mark .icon { width: 100%; height: 100%; stroke-width: 1.1; }
.advice-card:hover .advice-mark { opacity: .16; transform: rotate(-8deg) scale(1.06); }
.advice-card.is-hidden { display: none; }

.advice-section { position: relative; isolation: isolate; }
.advice-section::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: -36px; height: 460px; pointer-events: none; background: radial-gradient(420px 240px at 6% 18%, rgba(245, 158, 11, .11), transparent 70%), radial-gradient(440px 260px at 94% 8%, rgba(139, 92, 246, .10), transparent 70%), radial-gradient(420px 220px at 50% 0%, rgba(20, 186, 189, .12), transparent 70%), radial-gradient(380px 220px at 70% 60%, rgba(236, 72, 153, .07), transparent 70%); }

.advice-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.advice-filter[hidden] { display: none; }
.advice-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 12px 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: .9rem; font-weight: 750; cursor: pointer; box-shadow: var(--shadow-1); transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); }
.advice-chip:hover { border-color: var(--tc-2, var(--teal-500)); box-shadow: var(--shadow-2); }
.advice-chip-dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--tc-2), var(--tc)); }
.advice-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--tb, var(--aqua-100)); color: var(--tc, var(--ink-2)); font-size: .8rem; font-weight: 800; }
.advice-chip[aria-pressed="true"] { background: var(--tc, var(--navy-900)); border-color: var(--tc, var(--navy-900)); color: #fff; box-shadow: 0 8px 22px rgba(5, 40, 61, .16); }
.advice-chip[aria-pressed="true"] .advice-count { background: rgba(255, 255, 255, .22); color: #fff; }
.advice-chip[aria-pressed="true"] .advice-chip-dot { background: #fff; }
.advice-chip:focus-visible { outline: 3px solid var(--tc-2, var(--focus)); outline-offset: 3px; }

@media (max-width: 640px) {
  .advice-filter { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 10px; scrollbar-width: none; }
  .advice-filter::-webkit-scrollbar { display: none; }
  .advice-chip { flex: none; }
  .advice-card { padding: 22px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) { .advice-card:hover .advice-mark { transform: none; } }

/* ---------- utilities ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.muted { color: var(--ink-2); }

/* ---------- responsive ---------- */
/* header: below ~1300px the full menu + phone number no longer fit in one line.
   1101-1299: compact header (smaller logo and links, phone as a round icon button);
   up to 1100: hamburger menu + the bottom action bar, as on phones (main.js closes the menu at 1101+) */
@media (min-width: 1101px) and (max-width: 1299px) {
  .header-inner { gap: 16px; }
  .brand { gap: 10px; }
  .brand-mark { width: 44px; height: 41px; }
  .brand-name { font-size: 1.06rem; }
  .brand-role { font-size: .8rem; margin-top: 1px; }
  .main-nav { gap: 14px; }
  .main-nav li a { padding: 10px 8px; font-size: .93rem; }
  .nav-actions { gap: 10px; }
  .site-header .phone-link { justify-content: center; width: 46px; height: 46px; border: 1px solid rgba(191, 240, 240, .4); border-radius: 50%; }
  .site-header .phone-link:hover { border-color: var(--teal-300); }
  .site-header .phone-link .icon { width: 20px; height: 20px; }
  .site-header .phone-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .site-header .button { padding: 10px 16px; }
}
@media (max-width: 1100px) {
  .topic-grid, .locations-grid, .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: flex; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 40; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 120px; background: var(--stage); background-color: var(--navy-950); overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s; }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav li a { display: block; padding: 15px 12px; font-size: 1.12rem; border-bottom: 1px solid var(--line-navy); border-radius: 0; }
  .main-nav li a[aria-current="page"]::after { left: 0; right: auto; top: 14px; bottom: 14px; width: 3px; height: auto; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 22px; padding-top: 4px; }
  .nav-actions .phone-link { justify-content: center; font-size: 1.2rem; }
  body.menu-open { overflow: hidden; }
  .mobile-cta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(3, 33, 49, .97); border-top: 1px solid var(--line-navy); box-shadow: 0 -10px 30px rgba(1, 14, 22, .25); }
  .mcta { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; padding: 6px 4px; border-radius: 14px; border: 1px solid rgba(191, 240, 240, .32); color: #fff; font-size: .8rem; font-weight: 750; line-height: 1.15; text-align: center; text-decoration: none; white-space: nowrap; }
  .mcta .icon { width: 21px; height: 21px; }
  .mcta:hover, .mcta:focus-visible { color: #fff; }
  .mcta-call .icon { color: var(--teal-300); }
  .mcta-urgent { color: #ffd9d2; border-color: rgba(255, 128, 110, .55); background: linear-gradient(180deg, rgba(255, 107, 91, .2), rgba(255, 107, 91, .08)); }
  .mcta-urgent .mcta-icon { position: relative; display: inline-flex; }
  .mcta-urgent .icon { color: #ff9c8c; }
  .mcta-urgent .urgent-dot { position: absolute; right: -5px; top: -2px; }
  .mcta-book { border: 0; color: var(--navy-950); background: linear-gradient(180deg, #58e0d5 0%, var(--teal-200) 50%, #3fcfc4 100%); }
  .mcta-book:hover, .mcta-book:focus-visible { color: var(--navy-950); }
  .mobile-cta :focus-visible { outline-color: var(--teal-300); outline-offset: 2px; }
  .urgent-fab { display: none !important; }
  body { padding-bottom: 80px; }
  .site-footer { padding-bottom: 8px; }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { width: min(100%, 460px); order: -1; justify-self: center; }
  .hero h1 { max-width: none; }
  .about-grid, .two-col { grid-template-columns: 1fr; }
  .about-portrait { max-width: 300px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .rating-block { grid-template-columns: 1fr; text-align: left; padding: 28px; }
  .service-groups { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topic-grid, .locations-grid, .card-grid, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-figure { width: min(94%, 360px); padding-top: 18px; }
  .hero-dots { width: 96px; height: 96px; left: -4%; }
  .hero-figure { margin-bottom: 0; }
  .hero-badge { position: relative; left: auto; bottom: auto; width: max-content; max-width: 94%; margin: -24px auto 0; padding: 9px 14px 9px 9px; font-size: .86rem; }
  .hero-badge .icon { width: 32px; height: 32px; padding: 6px; }
  .hero-facts { gap: 10px; }
  .hero-facts li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 14px 16px; }
  .hero-facts li::before { left: 12px; top: 14px; translate: 0 0; width: 50px; height: 50px; }
  .hero-facts strong { font-size: .98rem; }
  .hero-facts span { font-size: .84rem; }
  .fact-icon { width: 46px; height: 46px; }
  .breadcrumbs li[aria-current] { display: none; }
  .breadcrumbs li:nth-last-child(2)::after { content: ""; }
  .cta-band-actions .button { flex: 1; }
  .hero-actions .button { flex: 1 1 100%; }
  .prose { font-size: 1rem; }
  .article-meta { gap: 6px 16px; }
  .rating-score { font-size: 2.4rem; }
  .topic-media { aspect-ratio: 16 / 9; }
  .topic-media img { object-position: 50% 35%; }
  .topic-body { padding: 12px 20px 22px; }
  .topic-icon { margin-left: 20px; }
  .form { padding: 22px; }
  .svc-head { min-height: 104px; padding: 20px 20px 34px; }
  .sg-head { gap: 14px; padding: 22px 20px 40px; }
  .sg-icon { width: 44px; height: 44px; }
  .sg-icon .icon { width: 23px; height: 23px; }
  .sg-head h3 { font-size: 1.14rem; }
  .sg-list { gap: 8px; padding: 2px 14px 18px; }
  .sg-item { min-height: 54px; padding: 11px 12px 11px 22px; font-size: .97rem; }
  .cg-jump { gap: 8px; margin-bottom: 24px; }
  .cg .sg-head { padding: 22px 20px 42px; }
  .cg .sg-icon { width: 46px; height: 46px; }
  .cg .sg-icon .icon { width: 24px; height: 24px; }
  .cg-total { display: none; }
  .cg-list { grid-template-columns: 1fr; gap: 10px; padding: 2px 14px 18px; }
  .cg-card { padding: 16px 52px 18px 24px; }
  .svc-text { padding: 2px 20px 0; }
  .svc-more { padding: 14px 20px 20px; }
  .index-group-head { align-items: flex-start; }
  .index-group-head .icon { margin-top: 4px; }
  /* price table on phones: each row becomes a card (name + price on top, description below); the header row stays for screen readers only */
  .price-table, .price-table tbody { display: block; }
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .price-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
  .price-table tbody tr:last-child { border-bottom: 0; }
  .price-table td { padding: 0; border: 0; }
  .price-table td:first-child { grid-column: 1; grid-row: 1; }
  .price-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--ink-2); font-size: .95rem; }
  .price-table td:last-child { grid-column: 2; grid-row: 1; }
}

/* ---------- motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .urgent-dot { animation: none; }
  .button:hover, .topic:hover, .card:hover, .location-card:hover, .svc:hover, .cg-chip:hover, .cg-card:hover, .cg-card:focus-visible { transform: none; }
  .svc:hover .svc-more .icon { transform: none; }
  .sg-item:hover, .sg-item:focus-visible, .sg-item:hover .sg-go, .sg-item:focus-visible .sg-go { transform: none; }
  .cg-card:hover .cg-go, .cg-card:focus-visible .cg-go { transform: none; }
}
@media print {
  .site-header, .mobile-cta, .cta-band, .article-sidebar, .toc, .menu-toggle, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; padding: 0; }
  a { color: #000; text-decoration: underline; }
  .article-layout { display: block; }
  .article-header, .hero { background: #fff !important; color: #000; padding-bottom: 16px; }
  .article-header::after, .hero::after, .hero::before { display: none; }
  .article-header h1, .hero h1, .article-lead, .hero-lead { color: #000; }
}
