@charset "UTF-8";
/* ==========================================================================
   МЦ „Тракия Медикал“ – дизайн система „Мозайка“
   Палитрата и мотивът с триъгълници са взети от фирмените табели и
   интериора на центъра (тъмносиньо, червен кръст, кехлибарено, сини тонове).
   ========================================================================== */

/* ---------- 1. Токени ---------- */
:root {
  /* Бранд – сини тонове */
  --navy-950: #0E2340;
  --navy-900: #132B4F;
  --navy-800: #183763;
  --navy-700: #1F4677;
  --blue-600: #2A64A8;
  --blue-500: #3F80C4;
  --blue-400: #5F9FD4;
  --blue-300: #8DBDE6;
  --blue-200: #B9D6F0;
  --blue-100: #DCEAF7;
  --blue-50:  #EEF5FB;

  /* Акценти от логото – използват се пестеливо */
  --logo-red:    #D8403A;
  --logo-yellow: #F2C14E;
  --amber-500:   #E4AC2F;
  --amber-100:   #FBF0D3;
  --amber-50:    #FDF8EA;
  --coral-600:   #C2413B;
  --coral-50:    #FCEDEC;
  --green-600:   #2F8A63;
  --green-50:    #E9F6F0;

  /* Неутрални */
  --ink:    #16243A;
  --text:   #3A4659;
  --muted:  #66748A;
  --line:   #E2E9F2;
  --line-2: #D3DEEB;
  --paper:  #FFFFFF;
  --canvas: #F5F8FC;
  --sand:   #FAF7F1;

  /* Типография */
  --font-display: "Onest", "Golos Text", system-ui, sans-serif;
  --font-body: "Golos Text", "Onest", system-ui, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.9rem, 1.2rem + 2.4vw, 2.85rem);
  --fs-h1: clamp(2.3rem, 1.3rem + 3.1vw, 3.6rem);

  /* Пространство и форма */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 8vw, 120px);

  --r-sm: 10px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(19, 43, 79, .05);
  --shadow-sm: 0 1px 2px rgba(19, 43, 79, .04), 0 6px 18px -10px rgba(19, 43, 79, .16);
  --shadow-md: 0 2px 4px rgba(19, 43, 79, .04), 0 18px 40px -18px rgba(19, 43, 79, .24);
  --shadow-lg: 0 30px 70px -30px rgba(14, 35, 64, .38);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 84px;
}

/* ---------- 2. Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
/* страници с залепваща лента с раздели: хедър (~71px) + лента (~61px) + въздух */
html:has(.subnav) { scroll-padding-top: 150px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip (а не hidden) – не превръща body в контейнер за превъртане,
     иначе залепващият хедър спира да работи. hidden остава за стари браузъри. */
  overflow-x: hidden;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.028em; line-height: 1.04; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
h4 { font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; line-height: 1.35; }

p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }
strong { color: var(--ink); font-weight: 600; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

::selection { background: var(--blue-200); color: var(--navy-900); }

:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 10px 18px;
  border-radius: var(--r-sm); text-decoration: none; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--canvas); }
.section--sand { background: var(--sand); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

/* ---------- 3. Типографски компоненти ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 18px;
}
/* малък триъгълник – подпис на мотива */
.eyebrow::before {
  content: "";
  width: 12px; height: 11px;
  background: linear-gradient(135deg, var(--blue-400), var(--navy-700));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  flex: none;
}
.eyebrow--light { color: var(--blue-200); }
.eyebrow--light::before { background: linear-gradient(135deg, var(--logo-yellow), var(--amber-500)); }

.lead { font-size: var(--fs-lg); line-height: 1.6; color: var(--text); }
.muted { color: var(--muted); }

.hl {
  color: var(--blue-600);
  background: linear-gradient(transparent 68%, rgba(242, 193, 78, .38) 68%, rgba(242, 193, 78, .38) 92%, transparent 92%);
  padding-inline: .04em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head p { color: var(--muted); font-size: var(--fs-lg); margin: 0; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--split {
  max-width: none;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px 64px; align-items: end;
}
.section-head--split h2 { margin: 0; }

/* ---------- 4. Бутони ---------- */
.btn {
  --btn-bg: var(--blue-600);
  --btn-fg: #fff;
  --btn-bd: var(--blue-600);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font-family: var(--font-display); font-size: .98rem; font-weight: 600; letter-spacing: .005em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd); border-radius: var(--r-pill);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.btn .icon { width: 1.15em; height: 1.15em; transition: transform .3s var(--ease); }
.btn:hover { --btn-bg: var(--navy-800); --btn-bd: var(--navy-800); color: #fff; box-shadow: 0 10px 24px -12px rgba(24, 55, 99, .55); transform: translateY(-1px); }
.btn:hover .icon-arrow-right { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy-800); --btn-bd: var(--line-2); }
.btn--ghost:hover { --btn-bg: var(--paper); --btn-fg: var(--navy-800); --btn-bd: var(--blue-400); color: var(--navy-800); box-shadow: var(--shadow-sm); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-900); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: var(--amber-100); --btn-bd: var(--amber-100); color: var(--navy-900); }

.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .35); }
.btn--outline-light:hover { --btn-bg: rgba(255, 255, 255, .1); --btn-bd: #fff; color: #fff; box-shadow: none; }

.btn--sm { min-height: 42px; padding: 0 18px; font-size: .9rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  color: var(--blue-600); text-decoration: none;
}
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--navy-800); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- 5. Мозайка ---------- */
.mosaic { width: 100%; height: 100%; overflow: visible; }
.mosaic polygon { transform-box: fill-box; transform-origin: center; }
.mosaic polygon.tw { animation: tri-twinkle 7s ease-in-out infinite alternate; animation-delay: var(--d); }

.js .mosaic--anim polygon { opacity: 0; transform: scale(.4) rotate(-20deg); }
.js .mosaic--anim.is-in polygon {
  animation: tri-in .7s var(--ease) forwards;
  animation-delay: var(--d);
}
.js .mosaic--anim.is-in polygon.tw {
  animation: tri-in .7s var(--ease) forwards, tri-twinkle 7s ease-in-out 2s infinite alternate;
}

@keyframes tri-in {
  to { opacity: 1; transform: none; }
}
@keyframes tri-twinkle {
  0%, 60% { opacity: 1; }
  100% { opacity: .25; }
}

/* ---------- 6. Горна лента и хедър ---------- */
.topbar {
  background: var(--navy-900);
  color: var(--blue-100);
  font-size: var(--fs-xs);
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 42px;
}
.topbar__group { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; white-space: nowrap; }
.topbar__item .icon { width: 15px; height: 15px; color: var(--blue-300); }
a.topbar__item:hover { color: #fff; }
.topbar__partner { color: var(--blue-200); }
.topbar__partner strong { color: #fff; font-weight: 500; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
/* размазаният фон е на псевдоелемент – иначе backdrop-filter става
   containing block за fixed мобилното меню */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(19, 43, 79, .35); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  height: var(--header-h);
  transition: height .3s var(--ease);
}
.site-header.is-scrolled .container { height: 70px; }

/* Лого */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand .logo-mark { width: 58px; height: auto; transition: transform .5s var(--ease); }
.brand:hover .logo-mark { transform: rotate(-6deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.28rem;
  letter-spacing: -0.01em; color: var(--navy-900); text-transform: uppercase;
}
.brand__name span { color: var(--blue-600); }
.brand__sub {
  margin-top: 5px;
  font-family: var(--font-display); font-weight: 600; font-size: .66rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}

/* Навигация */
.nav { display: flex; align-items: center; gap: 6px; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 14px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 500; font-size: .96rem;
  color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__link .icon { width: 16px; height: 16px; color: var(--muted); transition: transform .3s var(--ease); }
.nav__link:hover { color: var(--blue-600); background: var(--blue-50); }
.nav__link[aria-current="page"] { color: var(--blue-600); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 8px; height: 7px;
  background: var(--logo-yellow);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.nav__sub {
  position: absolute; top: calc(100% + 10px); left: 50%;
  min-width: 330px; padding: 10px;
  list-style: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav__sub::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav__item:hover > .nav__sub,
.nav__item:focus-within > .nav__sub,
.nav__item.is-open > .nav__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__item:hover > .nav__link .icon-chevron-down,
.nav__item.is-open > .nav__link .icon-chevron-down { transform: rotate(180deg); }

.nav__sublink {
  display: flex; align-items: center; gap: 14px;
  padding: 12px; border-radius: var(--r-sm);
  text-decoration: none; color: var(--ink);
  transition: background-color .2s var(--ease);
}
.nav__sublink:hover { background: var(--blue-50); color: var(--ink); }
.nav__subicon {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  border-radius: 6px; background: var(--blue-50); color: var(--blue-600);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav__sublink:hover .nav__subicon { background: var(--blue-600); color: #fff; }
.nav__subtitle { display: block; font-family: var(--font-display); font-weight: 600; font-size: .95rem; line-height: 1.3; }
.nav__subdesc { display: block; font-size: .82rem; color: var(--muted); line-height: 1.4; }

.header-cta { display: flex; align-items: center; gap: 12px; flex: none; }
.header-phone {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.header-phone__icon {
  position: relative;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue-50); color: var(--blue-600);
}
.header-phone__icon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--blue-300);
  animation: ring 2.8s var(--ease) infinite;
}
@keyframes ring {
  0% { transform: scale(1); opacity: .9; }
  70%, 100% { transform: scale(1.45); opacity: 0; }
}
.header-phone__icon .icon { width: 19px; height: 19px; }
.header-phone__label { display: block; font-size: .72rem; color: var(--muted); line-height: 1.2; letter-spacing: .02em; }
.header-phone__num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.25; white-space: nowrap; }
.header-phone:hover .header-phone__num { color: var(--blue-600); }

.nav-toggle {
  display: none;
  width: 48px; height: 48px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  cursor: pointer; place-items: center;
}
.nav-toggle .icon { width: 24px; height: 24px; }

.nav-overlay {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(14, 35, 64, .45);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }

.nav__mobile-head, .nav__mobile-foot { display: none; }

/* ---------- 7. Hero (начало) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 88% -10%, rgba(141, 189, 230, .35), transparent 65%),
    radial-gradient(700px 420px at -5% 105%, rgba(242, 193, 78, .14), transparent 60%),
    linear-gradient(180deg, #F7FAFE 0%, #FFFFFF 100%);
  padding-block: clamp(48px, 6vw, 88px) clamp(80px, 9vw, 130px);
}
.hero__mosaic {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
  opacity: .9;
}
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.hero__title { margin-bottom: 24px; }
.hero__title .line { display: block; }
.hero__title .brandline { color: var(--blue-600); }
.hero__lead { max-width: 560px; font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); color: var(--text); margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

.hero__facts {
  display: flex; flex-wrap: wrap; gap: 10px;
  list-style: none;
}
.hero__facts li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px;
  font-size: .88rem; font-weight: 500; color: var(--navy-800);
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line); border-radius: var(--r-pill);
}
.hero__facts .icon { width: 18px; height: 18px; color: var(--green-600); }

/* визуална част */
.hero__visual { position: relative; }
.hero__frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.3;
  background: var(--blue-100);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.hero__visual:hover .hero__frame img { transform: scale(1.08); }
.hero__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(14, 35, 64, .45) 100%);
}

/* тънките линии от логото */
.crosshair { position: absolute; pointer-events: none; z-index: 0; }
.crosshair::before, .crosshair::after { content: ""; position: absolute; background: var(--blue-200); }
.hero__visual .crosshair { inset: -40px -60px -40px -40px; }
.hero__visual .crosshair::before { left: 14%; top: 0; bottom: 0; width: 1px; }
.hero__visual .crosshair::after { top: 20%; left: 0; right: 0; height: 1px; }
.hero__frame, .hero__chip { z-index: 1; }

.hero__chip {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  animation: float 7s ease-in-out infinite;
}
.hero__chip--hours { left: -34px; bottom: 58px; }
.hero__chip--mobile { right: -22px; top: 36px; animation-delay: -3.5s; }
.hero__chip-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; flex: none;
  background: var(--blue-50); color: var(--blue-600);
}
.hero__chip--mobile .hero__chip-icon { background: var(--amber-100); color: #9A6B06; }
.hero__chip-label { display: block; font-size: .74rem; color: var(--muted); line-height: 1.3; }
.hero__chip-value { display: block; font-family: var(--font-display); font-weight: 600; font-size: .98rem; color: var(--ink); line-height: 1.3; white-space: nowrap; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero__stamp {
  position: absolute; right: 26px; bottom: 24px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-family: var(--font-display); font-size: .82rem; font-weight: 500; letter-spacing: .02em;
}
.hero__stamp .icon { width: 16px; height: 16px; }

/* ---------- 8. Лента с акценти ---------- */
.strip { position: relative; z-index: 2; margin-top: calc(var(--section-y) * -0.55); }
.strip__inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.strip__item { display: flex; gap: 16px; padding: 28px 26px; align-items: flex-start; }
.strip__item + .strip__item { border-left: 1px solid var(--line); }
.strip__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 7px; flex: none;
  background: var(--blue-50); color: var(--blue-600);
}
.strip__icon .icon { width: 24px; height: 24px; }
.strip__title { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink); margin: 2px 0 4px; line-height: 1.3; }
.strip__text { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---------- 9. Карти на услуги ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.service-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 30px 28px 28px;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.service-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow-md); transform: translateY(-3px); color: inherit; }
.service-card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.service-card__icon {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 9px;
  background: var(--blue-50); color: var(--blue-600);
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.service-card__icon .icon { width: 28px; height: 28px; }
.service-card:hover .service-card__icon { background: var(--blue-600); color: #fff; }
.service-card__num {
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  color: var(--blue-300); letter-spacing: .06em;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .98rem; margin-bottom: 22px; }
.service-card .link-arrow { margin-top: auto; }

/* мини-мозайка в ъгъла при hover */
.service-card__corner {
  position: absolute; right: -2px; top: -2px; width: 120px; height: 90px;
  opacity: 0; transform: translate(10px, -10px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  pointer-events: none;
}
.service-card:hover .service-card__corner { opacity: 1; transform: none; }

/* ---------- 10. Секция „За фирми“ ---------- */
.b2b {
  position: relative;
  background: var(--navy-900);
  color: var(--blue-100);
  overflow: hidden;
}
.b2b h2, .b2b h3 { color: #fff; }
.b2b__mosaic {
  position: absolute; right: 0; top: 0; bottom: 0; width: 46%;
  opacity: .32;
  -webkit-mask-image: linear-gradient(270deg, #000 20%, transparent 100%);
  mask-image: linear-gradient(270deg, #000 20%, transparent 100%);
  pointer-events: none;
}
.b2b__grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.b2b__intro p { color: var(--blue-200); font-size: var(--fs-lg); }
.b2b__partners { display: grid; gap: 12px; margin: 30px 0 34px; }
.partner-pill {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(185, 214, 240, .18);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .04);
}
.partner-pill__mark { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 6px; background: rgba(255, 255, 255, .08); color: var(--logo-yellow); }
.partner-pill__mark .logo-mark { width: 34px; }
.partner-pill__name { display: block; font-family: var(--font-display); font-weight: 600; color: #fff; line-height: 1.3; }
.partner-pill__role { display: block; font-size: .85rem; color: var(--blue-300); line-height: 1.35; }
.b2b__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.b2b__list { list-style: none; display: grid; gap: 12px; }
.b2b__list li {
  display: flex; gap: 16px; align-items: center;
  padding: 16px 20px;
  background: rgba(24, 55, 99, .82);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(185, 214, 240, .16);
  border-radius: var(--r-md);
  color: #fff; font-size: 1rem; line-height: 1.45;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.b2b__list li:hover { background: rgba(31, 70, 119, .92); border-color: rgba(185, 214, 240, .32); transform: translateX(4px); }
.b2b__list .b2b__ico {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 6px;
  background: rgba(95, 159, 212, .2); color: var(--blue-200);
}
.b2b__list .b2b__ico .icon { width: 22px; height: 22px; }

/* ---------- 11. Стъпки ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; list-style: none; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 29px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue-200) 0 8px, transparent 8px 16px);
}
.step { position: relative; text-align: left; padding-right: 10px; }
.step__num {
  position: relative;
  display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 22px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--navy-900);
  background: var(--paper); border: 2px solid var(--blue-200); border-radius: 50%;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.step:hover .step__num { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- 12. Разделени (split) секции ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split--wide-left { grid-template-columns: 1.15fr .85fr; }
.split__media { position: relative; isolation: isolate; }
.split__media img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; object-fit: cover; }
.split__media .mosaic-deco {
  position: absolute; left: -36px; bottom: -36px; width: 220px; height: 150px; z-index: -1;
}
.split__media-note {
  position: absolute; right: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .95); box-shadow: var(--shadow-sm);
  font-size: .85rem; font-weight: 500; color: var(--navy-800);
}
.split__media-note .icon { color: var(--logo-red); width: 16px; height: 16px; }

.checklist { list-style: none; display: grid; gap: 12px; margin: 26px 0 32px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.checklist .icon {
  width: 22px; height: 22px; flex: none; margin-top: 1px;
  padding: 4px; border-radius: 50%;
  background: var(--green-50); color: var(--green-600); stroke-width: 2.5;
}
.checklist--2col { grid-template-columns: 1fr 1fr; gap: 12px 28px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: .92rem; font-weight: 500; color: var(--navy-800);
}
.chip .icon { width: 18px; height: 18px; color: var(--blue-500); }

/* ---------- 13. Ценоразпис – преглед на начална страница ---------- */
.price-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.price-card {
  padding: 30px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.price-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.price-card__head h3 { margin: 0; font-size: 1.15rem; }
.price-card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 7px; background: var(--blue-50); color: var(--blue-600); flex: none; }
.price-card__foot { margin-top: 22px; }

.price-list { list-style: none; }
.price-row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line-2);
}
.price-row:last-child { border-bottom: 0; }
.price-row__name { flex: 1; color: var(--ink); line-height: 1.45; }
.price-row__dots { flex: 1; border-bottom: 1px dotted var(--line-2); transform: translateY(-4px); min-width: 20px; display: none; }
.price-row__val { text-align: right; white-space: nowrap; }
.price-row__eur { font-family: var(--font-display); font-weight: 700; color: var(--navy-900); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.price-row__bgn { display: block; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- 14. CTA лента ---------- */
.cta-band {
  position: relative; overflow: hidden;
  padding: clamp(40px, 5vw, 64px);
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--blue-600) 100%);
  color: var(--blue-100);
  display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.3rem); }
.cta-band p { margin: 0; color: var(--blue-200); font-size: var(--fs-lg); }
.cta-band__actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.cta-band__mosaic {
  position: absolute; right: 0; top: 0; bottom: 0; width: 55%;
  opacity: .35; pointer-events: none;
  -webkit-mask-image: linear-gradient(270deg, #000 10%, transparent 90%);
  mask-image: linear-gradient(270deg, #000 10%, transparent 90%);
}
.cta-band > div:not(.cta-band__mosaic) { position: relative; }
.cta-band__phone { font-family: var(--font-display); font-weight: 700; color: #fff; white-space: nowrap; }

/* ---------- 15. Контакти ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-card {
  display: flex; gap: 18px;
  padding: 26px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.info-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 8px; flex: none; background: var(--blue-50); color: var(--blue-600); }
.info-card__icon .icon { width: 24px; height: 24px; }
.info-card__label {
  display: block; margin-bottom: 6px;
  font-family: var(--font-display); font-size: .74rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.info-card__value { color: var(--ink); font-size: 1.02rem; line-height: 1.55; }
.info-card__value a { color: var(--ink); text-decoration: none; font-weight: 600; font-family: var(--font-display); }
.info-card__value a:hover { color: var(--blue-600); }
.info-card__value small { display: block; color: var(--muted); font-size: .82rem; font-weight: 400; margin-bottom: 8px; }
.info-card--wide { grid-column: 1 / -1; }

.hours { list-style: none; width: 100%; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.hours li:last-child { border-bottom: 0; }
.hours .is-closed { color: var(--muted); }
.hours .is-today { font-weight: 600; color: var(--ink); }
.open-badge {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 10px; padding: 4px 12px; border-radius: var(--r-pill);
  font-size: .8rem; font-weight: 600;
  background: var(--line); color: var(--muted);
}
.open-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-badge.is-open { background: var(--green-50); color: var(--green-600); }
.open-badge.is-closed { background: var(--coral-50); color: var(--coral-600); }

.map-frame {
  position: relative;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--blue-50);
  min-height: 420px;
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85); }
.map-frame__btn { position: absolute; left: 16px; bottom: 16px; z-index: 2; }

/* Форма */
.form-card {
  padding: clamp(28px, 4vw, 44px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block; margin-bottom: 7px;
  font-family: var(--font-display); font-size: .88rem; font-weight: 600; color: var(--ink);
}
.field label .req { color: var(--coral-600); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--canvas); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--line-2); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; background: var(--paper); border-color: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(95, 159, 212, .18);
}
.field.has-error input, .field.has-error textarea { border-color: var(--coral-600); background: var(--coral-50); }
.field__error { display: none; margin-top: 6px; font-size: .84rem; color: var(--coral-600); }
.field.has-error .field__error { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--blue-600); }
.consent.has-error { color: var(--coral-600); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  display: none; margin-top: 18px; padding: 14px 18px;
  border-radius: var(--r-sm); font-size: .95rem; line-height: 1.5;
}
.form-status.is-success { display: flex; gap: 10px; background: var(--green-50); color: #1F6B4B; }
.form-status.is-error { display: flex; gap: 10px; background: var(--coral-50); color: var(--coral-600); }
.form-status .icon { margin-top: 2px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.form-foot small { color: var(--muted); }
.btn.is-loading { pointer-events: none; opacity: .75; }

.notice {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 20px; border-radius: var(--r-md);
  background: var(--amber-50); border: 1px solid var(--amber-100);
  color: #6E5310; font-size: .95rem; line-height: 1.55;
}
.notice .icon { color: var(--amber-500); margin-top: 2px; }
.notice strong { color: #5A430B; }
.notice--blue { background: var(--blue-50); border-color: var(--blue-100); color: var(--navy-800); }
.notice--blue .icon { color: var(--blue-500); }
.notice--blue strong { color: var(--navy-900); }
.notice--red { background: var(--coral-50); border-color: #F6D5D3; color: #8A2D29; }
.notice--red .icon { color: var(--logo-red); }
.notice--red strong { color: #6E211E; }

/* ---------- 16. Вътрешни страници – хедър ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(56px, 7vw, 96px) clamp(56px, 6vw, 88px);
  background:
    radial-gradient(700px 380px at 90% 0%, rgba(141, 189, 230, .32), transparent 65%),
    linear-gradient(180deg, #F3F8FD 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero__mosaic {
  position: absolute; right: 0; bottom: 0; width: 46%; height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.4) 30%, #000 70%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.4) 30%, #000 70%);
  opacity: .7;
}
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 820px; font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.5rem); margin-bottom: 18px; }
.page-hero .lead { max-width: 680px; margin: 0; color: var(--text); }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin-bottom: 22px; font-size: .88rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb a:hover { color: var(--blue-600); }
.breadcrumb .icon { width: 15px; height: 15px; }
.breadcrumb li + li::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px;
  background: var(--blue-300);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  vertical-align: middle;
}
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

/* Подменю на страница (котви) */
.subnav {
  position: sticky; top: 70px; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.subnav ul { display: flex; gap: 4px; list-style: none; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 16px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-size: .92rem; font-weight: 500;
  color: var(--text); text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.subnav a .icon { width: 17px; height: 17px; }
.subnav a:hover { background: var(--blue-50); color: var(--blue-600); }
.subnav a.is-active { background: var(--navy-900); color: #fff; }

/* ---------- 17. Страница „Услуги“ ---------- */
.cabinet {
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4vw, 44px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.cabinet + .cabinet { margin-top: 20px; }
.cabinet__aside { display: flex; flex-direction: column; gap: 18px; }
.cabinet__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 11px; background: var(--blue-50); color: var(--blue-600); }
.cabinet__icon .icon { width: 34px; height: 34px; }
.cabinet__aside h3 { font-size: 1.45rem; margin: 0; }
.cabinet__body p { font-size: 1.05rem; }
.cabinet__prices { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.team-tile {
  display: flex; align-items: center; gap: 14px;
  padding: 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  font-family: var(--font-display); font-weight: 600; color: var(--ink);
}
.team-tile .icon { width: 22px; height: 22px; color: var(--blue-600); }
.team-tile span.ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; background: var(--blue-50); flex: none; }

/* ---------- 18. Страница „Трудова медицина“ ---------- */
.stm-group + .stm-group { margin-top: clamp(48px, 6vw, 72px); }
.stm-group__title {
  display: flex; align-items: center; gap: 14px;
  font-size: 1.5rem; margin-bottom: 24px;
}
.stm-group__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.stm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.stm-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 30px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.stm-card--wide { grid-column: 1 / -1; }
.stm-card__head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 16px; }
.stm-card__icon { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 8px; background: var(--blue-50); color: var(--blue-600); flex: none; }
.stm-card__icon .icon { width: 26px; height: 26px; }
.stm-card__n {
  position: absolute; right: -8px; top: -8px;
  display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px;
  font-family: var(--font-display); font-size: .78rem; font-weight: 700;
  color: var(--navy-900); background: var(--logo-yellow); border: 2px solid var(--paper); border-radius: var(--r-pill);
}
.stm-card h3 { margin: 4px 0 0; }
.stm-card p { color: var(--text); margin-bottom: 14px; }
.stm-card .checklist { margin: 4px 0 8px; }
.stm-card--wide .checklist { grid-template-columns: 1fr 1fr; gap: 10px 28px; }

.law { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.law summary {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  font-size: .85rem; font-weight: 500; color: var(--muted);
}
.law summary::-webkit-details-marker { display: none; }
.law summary .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.law[open] summary .icon-chevron-down { transform: rotate(180deg); }
.law summary:hover { color: var(--blue-600); }
.law ul { list-style: none; margin-top: 10px; display: grid; gap: 6px; }
.law li { font-size: .88rem; color: var(--muted); padding-left: 16px; position: relative; line-height: 1.5; }
.law li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; background: var(--blue-300); clip-path: polygon(50% 0, 100% 100%, 0 100%); }

.signature {
  display: flex; align-items: center; gap: 18px;
  margin-top: 40px; padding: 22px 26px;
  border-radius: var(--r-md); background: var(--canvas);
}
.signature__mark .logo-mark { width: 56px; }
.signature__role { display: block; font-size: .85rem; color: var(--muted); }
.signature__name { display: block; font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.1rem; }

.toc { position: sticky; top: 150px; }
.toc__card { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.toc__title { font-family: var(--font-display); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.toc a {
  display: flex; gap: 10px; padding: 7px 10px; border-radius: var(--r-sm);
  font-size: .9rem; line-height: 1.4; color: var(--text); text-decoration: none;
}
.toc a span { font-family: var(--font-display); font-weight: 600; color: var(--blue-400); min-width: 18px; }
.toc a:hover { background: var(--blue-50); color: var(--blue-600); }
.toc a.is-active { background: var(--blue-50); color: var(--navy-900); font-weight: 500; }

.layout-aside { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }

/* ---------- 19. Ценоразпис ---------- */
.pricing-tools {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 28px;
}
.search {
  position: relative; flex: 1; max-width: 460px; min-width: 240px;
}
.search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; pointer-events: none; }
.search input {
  width: 100%; min-height: 54px; padding: 0 44px 0 48px;
  font: inherit; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-pill);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search input:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 4px rgba(95, 159, 212, .18); }
.search__clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  display: none; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: var(--canvas); color: var(--muted); cursor: pointer;
}
.search__clear .icon { position: static; transform: none; width: 16px; height: 16px; }
.search.has-value .search__clear { display: grid; }

.tabs { display: inline-flex; gap: 4px; padding: 5px; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-pill); flex-wrap: wrap; }
.tab {
  padding: 10px 18px; border: 0; border-radius: var(--r-pill);
  background: transparent; cursor: pointer;
  font-family: var(--font-display); font-weight: 500; font-size: .92rem; color: var(--text);
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.tab:hover { color: var(--blue-600); }
.tab[aria-selected="true"] { background: var(--paper); color: var(--navy-900); box-shadow: var(--shadow-sm); }

.pricelist + .pricelist { margin-top: 48px; }
.pricelist__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.pricelist__head h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); margin: 0 0 6px; }
.pricelist__head p { margin: 0; color: var(--muted); }
.pricelist__count { font-size: .88rem; color: var(--muted); white-space: nowrap; }

.price-group {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
}
.price-group + .price-group { margin-top: 16px; }
.price-group__head {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 26px;
  background: linear-gradient(90deg, var(--blue-50), rgba(238, 245, 251, 0));
  border-bottom: 1px solid var(--line);
}
.price-group__head h3 { margin: 0; font-size: 1.1rem; }
.price-group__head .icon { width: 22px; height: 22px; color: var(--blue-600); }

.price-table { width: 100%; border-collapse: collapse; }
.price-table th {
  padding: 12px 26px; text-align: left;
  font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.price-table th.num, .price-table td.num { text-align: right; }
.price-table td { padding: 15px 26px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table tbody tr { transition: background-color .15s var(--ease); }
.price-table tbody tr:hover { background: var(--canvas); }
.price-table .idx { width: 56px; font-family: var(--font-display); font-weight: 600; color: var(--blue-300); font-variant-numeric: tabular-nums; }
.price-table .name { color: var(--ink); line-height: 1.45; }
.price-table .eur { font-family: var(--font-display); font-weight: 700; color: var(--navy-900); font-size: 1.05rem; white-space: nowrap; font-variant-numeric: tabular-nums; width: 130px; }
.price-table .bgn { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; width: 120px; font-size: .92rem; }
.price-table mark { background: var(--amber-100); color: inherit; border-radius: 3px; padding: 0 2px; }
.price-empty { display: none; padding: 40px; text-align: center; color: var(--muted); background: var(--paper); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.price-empty.is-visible { display: block; }
[data-price-row].is-hidden, [data-price-group].is-hidden, [data-pricelist].is-hidden { display: none; }

/* ---------- 20. За нас ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card { padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.value-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 8px; background: var(--blue-50); color: var(--blue-600); margin-bottom: 20px; }
.value-card:nth-child(2) .value-card__icon { background: var(--amber-100); color: #9A6B06; }
.value-card:nth-child(3) .value-card__icon { background: var(--green-50); color: var(--green-600); }
.value-card:nth-child(4) .value-card__icon { background: var(--coral-50); color: var(--coral-600); }
.value-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: .95rem; margin: 0; }

.gallery { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--blue-50); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 16px; bottom: 16px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .94); color: var(--navy-900);
  font-size: .86rem; font-weight: 500;
}

.org-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.org-card { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 40px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--paper); }
.org-card--dark { background: var(--navy-900); border-color: var(--navy-900); color: var(--blue-100); }
.org-card--dark h3 { color: #fff; }
.org-card__tag {
  display: inline-block; margin-bottom: 18px; padding: 5px 12px; border-radius: var(--r-pill);
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--blue-50); color: var(--blue-600);
}
.org-card--dark .org-card__tag { background: rgba(255, 255, 255, .1); color: var(--logo-yellow); }
.org-card h3 { font-size: 1.45rem; margin-bottom: 12px; }
.org-card p { margin-bottom: 18px; }
.org-card--dark p { color: var(--blue-200); }
.org-card .checklist { margin: 0; }
.org-card--dark .checklist li { color: #fff; }
.org-card--dark .checklist .icon { background: rgba(255, 255, 255, .1); color: var(--logo-yellow); }
.org-card__mosaic { position: absolute; right: 0; bottom: 0; width: 60%; height: 55%; opacity: .25; pointer-events: none; }

.manager {
  display: flex; align-items: center; gap: 22px;
  padding: 28px 32px; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--line);
}
.manager__avatar {
  display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
  color: var(--blue-600);
}
.manager__avatar .icon { width: 34px; height: 34px; }
.manager__role { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.manager__name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--ink); }
.manager__org { display: block; color: var(--muted); font-size: .95rem; }

/* ---------- 21. 404 ---------- */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; padding-block: 80px; }
.error-page__code {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(6rem, 18vw, 12rem); line-height: .9; letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 12px;
}
.error-page .mosaic-bg { position: absolute; inset: auto 0 0 0; height: 45%; opacity: .6; pointer-events: none; }
.error-page .container { position: relative; }
.error-page p { max-width: 520px; margin: 0 auto 30px; color: var(--muted); font-size: var(--fs-lg); }
.error-page .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- 22. Текстови страници ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }

/* ---------- 23. Футър ---------- */
.site-footer {
  position: relative; overflow: hidden;
  background: var(--navy-950);
  color: var(--blue-200);
  padding-top: clamp(64px, 8vw, 100px);
  font-size: .95rem;
}
.site-footer__mosaic {
  position: absolute; left: 0; right: 0; top: 0; height: 90px;
  opacity: .28; pointer-events: none;
  transform: scaleY(-1);
}
.footer-grid { position: relative; display: grid; grid-template-columns: 1.35fr .8fr .9fr 1.1fr; gap: 40px; padding-bottom: 56px; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__name span { color: var(--blue-300); }
.site-footer .brand__sub { color: var(--blue-300); }
.footer-about { margin: 22px 0 22px; max-width: 360px; color: var(--blue-200); }
.footer-title {
  margin-bottom: 18px;
  font-family: var(--font-display); font-size: .76rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #fff;
}
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: var(--blue-200); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: #fff; }
.footer-links a::before {
  content: ""; width: 5px; height: 5px; background: var(--blue-400);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transition: transform .2s var(--ease);
}
.footer-links a:hover::before { transform: translateX(3px); background: var(--logo-yellow); }
.footer-contact { list-style: none; display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--blue-400); margin-top: 3px; }
.footer-contact a { color: #fff; text-decoration: none; }
.footer-contact a:hover { color: var(--logo-yellow); }
.footer-contact small { display: block; color: var(--blue-300); font-size: .8rem; }
.footer-emergency {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 16px; margin-top: 4px;
  border-radius: var(--r-md);
  border: 1px solid rgba(216, 64, 58, .35);
  background: rgba(216, 64, 58, .08);
  color: #F5C9C6; font-size: .88rem; line-height: 1.4;
}
.footer-emergency strong { color: #fff; font-size: 1.1rem; font-family: var(--font-display); }
.footer-bottom {
  position: relative;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 24px;
  border-top: 1px solid rgba(185, 214, 240, .12);
  font-size: .85rem; color: var(--blue-300);
}
.footer-bottom a { color: var(--blue-200); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Плаващи бутони */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: var(--navy-900); color: #fff; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue-600); }

.call-fab {
  position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 80;
  display: none; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; border-radius: var(--r-pill);
  background: var(--blue-600); color: #fff; text-decoration: none;
  font-family: var(--font-display); font-weight: 600;
  box-shadow: 0 14px 30px -12px rgba(24, 55, 99, .6);
  transform: translateY(120%); transition: transform .35s var(--ease);
}
.call-fab.is-visible { transform: none; }
.call-fab:hover { color: #fff; background: var(--navy-800); }


/* ---------- Допълнителни варианти ---------- */
.chips--dark .chip { background: rgba(255, 255, 255, .06); border-color: rgba(185, 214, 240, .2); color: #fff; }
.b2b__list--2col { grid-template-columns: 1fr 1fr; }
.b2b__list--2col li { padding: 12px 14px; font-family: var(--font-display); font-weight: 500; }
.b2b__list--2col .b2b__ico { width: 38px; height: 38px; }
.partner-pill__mark .icon { width: 22px; height: 22px; }
.split__media-note .logo-mark { width: 26px; }
.toc__card--dark { margin-top: 16px; background: var(--navy-900); border-color: var(--navy-900); }
.toc__card--dark .toc__title { color: var(--blue-300); }
.toc__card--dark .header-phone,
.toc__card--dark .header-phone:hover .header-phone__num { color: #fff; }
.toc__card--dark .header-phone__icon { background: rgba(255, 255, 255, .1); color: #fff; }
.toc__card--dark .header-phone__num { color: #fff; }
.info-card__value strong { white-space: nowrap; }
.toc__mails { margin: 14px 0 0; font-size: .88rem; color: var(--blue-200); line-height: 1.7; }
.toc__mails a { color: #fff; text-decoration: none; }
.toc__mails a:hover { color: var(--logo-yellow); }
.price-aside { position: sticky; top: 150px; display: grid; gap: 16px; }
.price-aside .toc__card--dark { margin-top: 0; }
.form-card h3 { font-size: 1.4rem; }

@media (max-width: 1199px) {
  .price-aside { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .price-aside { grid-template-columns: 1fr; }
  .b2b__list--2col { grid-template-columns: 1fr; }
}

/* ---------- 24. Анимации при скрол ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translateX(-26px); }
.js [data-reveal="right"] { transform: translateX(26px); }
.js [data-reveal="zoom"] { transform: scale(.96); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (max-width: 991px) {
  .js [data-reveal="left"]:not(.is-in), .js [data-reveal="right"]:not(.is-in) { transform: translateY(22px); }
}

/* Hero – подредено появяване при зареждане */
.js .hero [data-load] {
  opacity: 0; transform: translateY(18px);
  animation: load-in .9s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 120ms);
}
@keyframes load-in { to { opacity: 1; transform: none; } }

/* ---------- 25. Адаптивност ---------- */
@media (max-width: 1199px) {
  :root { --header-h: 74px; }
  .nav-toggle { display: grid; }
  .header-phone__text { display: none; }

  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 150;
    width: min(400px, 88vw);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    box-shadow: -20px 0 60px -20px rgba(14, 35, 64, .35);
    /* clip-path вместо transform – не разширява страницата хоризонтално */
    clip-path: inset(0 0 0 100%);
    visibility: hidden;
    transition: clip-path .45s var(--ease), visibility 0s linear .45s;
    overflow-y: auto; overflow-x: hidden;
    overscroll-behavior: contain;
    padding: 0 0 24px;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s var(--ease), visibility 0s; }
  .nav .nav__list, .nav .nav__mobile-foot { opacity: 0; transform: translateX(24px); transition: opacity .35s var(--ease), transform .45s var(--ease); }
  .nav.is-open .nav__list, .nav.is-open .nav__mobile-foot { opacity: 1; transform: none; transition-delay: .12s; }
  .nav__mobile-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--line);
    position: sticky; top: 0; background: var(--paper); z-index: 2;
  }
  .nav__mobile-head .brand .logo-mark { width: 46px; }
  .nav__mobile-head .brand__name { font-size: 1.05rem; }
  .nav__list { flex-direction: column; align-items: stretch; padding: 14px 12px; gap: 2px; }
  .nav__link { width: 100%; justify-content: space-between; padding: 14px 14px; border-radius: var(--r-sm); font-size: 1.05rem; }
  .nav__link[aria-current="page"] { background: var(--blue-50); }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__sub {
    position: static; transform: none; min-width: 0; box-shadow: none; border: 0;
    padding: 0 0 0 8px; opacity: 1; visibility: visible;
    display: none; background: transparent;
  }
  .nav__item:hover > .nav__sub { transform: none; }
  .nav__item.is-open > .nav__sub { display: block; transform: none; }
  .nav__item:not(.is-open):focus-within > .nav__sub { display: none; }
  .nav__item:hover > .nav__link .icon-chevron-down { transform: none; }
  .nav__item.is-open > .nav__link .icon-chevron-down { transform: rotate(180deg); }
  .nav__mobile-foot { display: grid; gap: 12px; padding: 12px 24px 0; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 22px; }
  .nav__mobile-foot .info-line { display: flex; gap: 10px; align-items: center; font-size: .92rem; color: var(--muted); }
  .nav__mobile-foot .info-line .icon { color: var(--blue-500); width: 18px; height: 18px; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 640px; margin-inline: auto; width: 100%; }
  .hero__frame { aspect-ratio: 16 / 11; }
  .hero__chip--hours { left: 12px; bottom: -26px; }
  .hero__chip--mobile { right: 12px; top: -22px; }
  .hero { padding-bottom: 110px; }

  .strip__inner { grid-template-columns: repeat(2, 1fr); }
  .strip__item:nth-child(3) { border-left: 0; }
  .strip__item:nth-child(n+3) { border-top: 1px solid var(--line); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .layout-aside { grid-template-columns: 1fr; }
  .toc { display: none; }
}

@media (max-width: 991px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .b2b__grid, .split, .split--wide-left { grid-template-columns: 1fr; }
  .b2b__mosaic { width: 100%; height: 40%; top: auto; opacity: .3; -webkit-mask-image: linear-gradient(0deg, #000 10%, transparent 100%); mask-image: linear-gradient(0deg, #000 10%, transparent 100%); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .steps::before { display: none; }
  .price-preview, .contact-grid, .org-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band__actions { justify-content: flex-start; }
  .section-head--split { grid-template-columns: 1fr; }
  .cabinet { grid-template-columns: 1fr; }
  .cabinet__aside { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .gallery { grid-template-columns: 1fr; }
  .split__media .mosaic-deco { display: none; }
}

@media (max-width: 767px) {
  body { font-size: 1rem; }
  .topbar__group--secondary, .topbar__hide-sm { display: none; }
  .topbar .container { justify-content: center; }
  .header-cta .btn { display: none; }
  .brand .logo-mark { width: 48px; }
  .brand__name { font-size: 1.08rem; }
  .brand__sub { font-size: .58rem; letter-spacing: .16em; }
  .services-grid, .stm-grid, .values-grid, .form-grid { grid-template-columns: 1fr; }
  .stm-card--wide .checklist, .checklist--2col { grid-template-columns: 1fr; }
  .strip { margin-top: -40px; }
  .strip__inner { grid-template-columns: 1fr; }
  .strip__item + .strip__item { border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__chip { padding: 10px 14px 10px 10px; }
  .hero__chip-icon { width: 38px; height: 38px; }
  .hero__chip-value { font-size: .9rem; }
  .hero__stamp { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .call-fab { display: flex; }
  .site-footer { padding-top: 110px; }
  .service-card { padding: 24px; }
  .service-card__top { margin-bottom: 16px; }
  .service-card__icon { width: 52px; height: 52px; border-radius: 8px; }
  .page-hero__mosaic { width: 100%; height: 45%; opacity: .45; }
  .to-top { bottom: 82px; right: 16px; }
  .site-footer { padding-bottom: 76px; }
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: auto; }
  .price-table tr { display: grid; grid-template-columns: 34px 1fr auto; gap: 2px 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .price-table tr:last-child { border-bottom: 0; }
  .price-table td { padding: 0; border: 0; }
  .price-table .idx { grid-row: 1 / 3; width: auto; }
  .price-table .name { grid-column: 2 / 4; }
  .price-table .eur { grid-column: 2; width: auto; text-align: left; }
  .price-table .bgn { grid-column: 3; width: auto; }
  .price-group__head { padding: 16px 18px; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 10px 12px; }
  .search { max-width: none; }
  .map-frame { min-height: 320px; }
  .manager { flex-direction: column; text-align: center; }
  .cabinet { padding: 24px; }
  .subnav { top: 62px; }
  .site-header.is-scrolled .container { height: 62px; }
}

/* ---------- 26. Достъпност и печат ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal], .js .hero [data-load], .js .mosaic--anim polygon { opacity: 1 !important; transform: none !important; }
}

@media print {
  .topbar, .site-header, .site-footer, .subnav, .to-top, .call-fab, .pricing-tools, .cta-band, .mosaic, .page-hero__mosaic, .nav-overlay, .btn { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .page-hero { padding: 0 0 12pt; background: none; border: 0; }
  .section { padding-block: 12pt; }
  .price-group { break-inside: avoid; border-color: #bbb; }
  .price-table td, .price-table th { padding: 5pt 8pt; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
