/* ==========================================================================
   LexHub.bg — style.css
   Дизайн система: „Официално, но човешко“. Виж design-system/lexhub/MASTER.md
   ========================================================================== */

/* 1. Токени
   ========================================================================== */
:root {
  color-scheme: light;

  --ink-950: #061629;
  --ink-900: #0A2340;
  --ink-800: #0F2E52;
  --navy: #0D355B;
  --navy-700: #1B4673;

  --blue: #4377E9;
  --blue-300: #8FB0F2;
  --blue-200: #BBCFF7;
  --blue-100: #DEE8FC;
  --blue-50: #EFF4FE;

  --action: #2A5FD6;
  --action-hover: #1F4EBB;
  --action-press: #1A43A3;

  --paper: #FFFFFF;
  --paper-2: #F3F6FA;
  --paper-3: #E9EFF7;
  --line: #DCE3EE;
  --line-strong: #C5D0DF;

  --text: #0B1F36;
  --text-2: #22364F;
  --muted: #4A5B72;
  --subtle: #5E6E84;

  --on-ink: #FFFFFF;
  --on-ink-muted: #B8C6DA;
  --line-ink: rgba(255, 255, 255, .12);

  --star: #F2B01E;
  --success: #157A55;
  --success-bg: #E8F5EF;
  --error: #C2341F;
  --error-bg: #FDF0ED;
  --warn-bg: #FFF6E5;
  --warn-text: #774A00;

  --font-sans: "Sofia Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Sofia Sans Semi Condensed", "Sofia Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgba(13, 53, 91, .06), 0 6px 16px -6px rgba(13, 53, 91, .12);
  --shadow-2: 0 2px 4px rgba(13, 53, 91, .04), 0 28px 64px -24px rgba(13, 53, 91, .34);
  --focus-ring: 0 0 0 3px rgba(67, 119, 233, .45);

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);
  --header-h: 76px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-1: 160ms;
  --dur-2: 280ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  overflow-x: clip;
}
@media (min-width: 1024px) { body { font-size: 1.125rem; } }

body.is-locked { overflow: hidden; }

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

a { color: var(--action); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--action-hover); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.12;
  color: var(--navy);
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }

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

[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }

.stars { display: inline-flex; gap: 2px; color: var(--star); vertical-align: middle; }
.stars svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.stars--sm svg { width: 13px; height: 13px; }
.stars--lg svg { width: 26px; height: 26px; }

.tnum { font-variant-numeric: tabular-nums lining-nums; }

.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;
}

.skip-link {
  position: fixed; left: 16px; top: -64px; z-index: 1000;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--navy); color: #fff;
  font-weight: 700; text-decoration: none;
  transition: top var(--dur-2) var(--ease-out);
}
.skip-link:focus { top: 16px; color: #fff; }

/* 3. Оформление и типография
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper-2); }
.section--ink { background: var(--ink-900); color: var(--on-ink-muted); }
.section--ink h2, .section--ink h3 { color: #fff; }

.h-section {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.125rem, 1.35rem + 2.6vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -.015em;
}

.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--split { display: grid; gap: 18px 64px; align-items: end; }
@media (min-width: 960px) {
  .section-head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
.section-head--row { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: end; justify-content: space-between; }

.section-head__lead {
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 58ch;
}
.section--ink .section-head__lead { color: var(--on-ink-muted); }

.link-light {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 600; text-decoration: none;
}
.link-light:hover { color: var(--blue-200); text-decoration: underline; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--action); text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }

/* 4. Компоненти
   ========================================================================== */

/* Бутони */
.btn {
  --btn-h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h);
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-weight: 700; font-size: 1rem; line-height: 1.1;
  text-decoration: none; text-align: center;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-1), color var(--dur-1), border-color var(--dur-1),
              box-shadow var(--dur-2) var(--ease-out), transform var(--dur-1);
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn--primary {
  background: var(--action); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 22px -12px rgba(42, 95, 214, .75);
}
.btn--primary:hover { background: var(--action-hover); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 14px 26px -12px rgba(42, 95, 214, .8); }
.btn--primary:active { background: var(--action-press); }
.btn--secondary { background: #fff; color: var(--navy); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--navy); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); padding-inline: 12px; }
.btn--ghost:hover { background: var(--blue-50); color: var(--navy); }
.btn--light { background: #fff; color: var(--ink-900); }
.btn--light:hover { background: var(--blue-50); color: var(--ink-900); }
.btn--sm { --btn-h: 44px; padding: 0 16px; font-size: .9375rem; }
.btn--lg { --btn-h: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }

.icon-btn {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #fff; color: var(--navy);
  transition: border-color var(--dur-1), background-color var(--dur-1);
}
.icon-btn:hover:not([disabled]) { border-color: var(--navy); }
.icon-btn[disabled] { opacity: .4; cursor: default; }

/* Полета */
.field { display: grid; gap: 6px; align-content: start; }
.field__label { font-size: .9375rem; font-weight: 700; color: var(--navy); }
.field__req { color: var(--error); }
.field__opt { margin-left: 4px; font-size: .8125rem; font-weight: 500; color: var(--subtle); }

.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color var(--dur-1), box-shadow var(--dur-1), background-color var(--dur-1);
}
.input::placeholder { color: #8090A6; }
.input:hover { border-color: #9DAEC4; }
.input:focus { outline: none; border-color: var(--action); box-shadow: var(--focus-ring); }
.input[aria-invalid="true"] { border-color: var(--error); background: var(--error-bg); }
select.input {
  appearance: none;
  padding-right: 42px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230D355B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
}
textarea.input { min-height: 96px; resize: vertical; }

.field__error { font-size: .875rem; font-weight: 600; color: var(--error); }

.check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .875rem; line-height: 1.45; color: var(--muted);
  cursor: pointer;
}
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--action); }

.input-unit { position: relative; }
.input-unit .input { padding-right: 52px; }
.input-unit > span {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--subtle); font-weight: 700; font-size: .9375rem;
  pointer-events: none;
}

/* Сегментиран избор (radio) */
.seg {
  display: inline-flex; flex-wrap: nowrap; gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-2);
}
.seg--full { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; }
.seg--wrap { display: flex; flex-wrap: wrap; }
.seg label { position: relative; display: block; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 16px;
  border-radius: 9px;
  font-weight: 700; font-size: .9375rem; color: var(--muted);
  white-space: nowrap;
  transition: background-color var(--dur-1), color var(--dur-1), box-shadow var(--dur-1);
}
.seg label:hover span { color: var(--navy); }
.seg input:checked + span { background: #fff; color: var(--navy); box-shadow: var(--shadow-1); }
.seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 1px; }

/* Избор от списък */
.choice-list { display: grid; gap: 8px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #fff;
  font-weight: 600; color: var(--navy);
  transition: border-color var(--dur-1), background-color var(--dur-1), box-shadow var(--dur-1);
}
.choice span::before {
  content: ""; flex: none;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: #fff;
  transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
.choice:hover span { border-color: #9DAEC4; }
.choice input:checked + span { border-color: var(--action); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--action); }
.choice input:checked + span::before { border-color: var(--action); box-shadow: inset 0 0 0 3px #fff; background: var(--action); }
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Брояч */
.stepper {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
}
.stepper__btn { width: 48px; height: 48px; display: grid; place-items: center; border: 0; background: transparent; color: var(--navy); }
.stepper__btn:hover { background: var(--blue-50); }
.stepper__input {
  width: 64px; height: 48px;
  border: 0; border-inline: 1px solid var(--line);
  text-align: center; font-weight: 800; font-size: 1.125rem; color: var(--navy);
  -moz-appearance: textfield; appearance: textfield;
}
.stepper__input:focus { outline: none; box-shadow: inset var(--focus-ring); }
.stepper__input::-webkit-outer-spin-button,
.stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Таблици */
.table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; }
.table caption { caption-side: top; padding: 14px 18px; text-align: left; font-weight: 800; color: var(--navy); border-bottom: 1px solid var(--line); }
.table th, .table td { padding: 12px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--ink-900); color: #fff; font-size: .875rem; font-weight: 700; }
.table tbody th { background: var(--paper-2); color: var(--navy); font-weight: 700; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tfoot th, .table tfoot td { background: var(--navy); color: #fff; font-weight: 800; border: 0; }
.table--compact { min-width: 0; }
.table--compact td, .table--compact thead th:last-child { text-align: right; }
.table--compact td { white-space: nowrap; }

/* 5. Горна лента и хедър
   ========================================================================== */
.topbar { background: var(--ink-900); color: #C9D6EA; font-size: .8125rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__news { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; text-decoration: none; }
.topbar__news:hover { color: #fff; text-decoration: underline; }
.topbar__tag { padding: 2px 9px; border-radius: var(--radius-pill); background: var(--blue); color: #fff; font-size: .75rem; font-weight: 800; }
.topbar__contacts a { display: inline-flex; align-items: center; gap: 6px; color: #C9D6EA; text-decoration: none; }
.topbar__contacts a:hover { color: #fff; }
.topbar .icon { width: 15px; height: 15px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2), box-shadow var(--dur-2);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px rgba(13, 53, 91, .45); }
.site-header__inner { position: relative; display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }

.brand { flex: none; display: block; border-radius: 6px; }
.brand img { width: 150px; height: auto; }

.nav__list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__item:first-child { position: static; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 14px;
  border: 0; border-radius: 10px;
  background: none;
  color: var(--navy);
  font-weight: 600; font-size: 1rem;
  text-decoration: none;
  transition: background-color var(--dur-1);
}
.nav__link:hover, .nav__trigger[aria-expanded="true"] { background: var(--paper-2); color: var(--navy); }
.nav__trigger .icon { transition: transform var(--dur-2) var(--ease-out); }
.nav__trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }

.mega {
  position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% - 6px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-2);
  animation: menu-in .22s var(--ease-out);
}
.mega__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 280px; gap: 28px; }
.mega__title a { font-family: var(--font-display); font-weight: 800; font-size: 1.1875rem; color: var(--navy); text-decoration: none; }
.mega__title a:hover { color: var(--action); }
.mega__list { list-style: none; display: grid; gap: 2px; margin-top: 10px; }
.mega__link {
  display: flex; align-items: flex-start; gap: 14px;
  margin-inline: -12px; padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color var(--dur-1);
}
.mega__link:hover { background: var(--paper-2); }
.mega__name { display: block; font-weight: 700; font-size: .9375rem; color: var(--navy); line-height: 1.3; }
.mega__desc { display: block; font-size: .8125rem; color: var(--subtle); line-height: 1.35; }
.mega__feature { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--radius-lg); background: var(--paper-2); }
.mega__feature-title { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--navy); }
.mega__feature p { font-size: .9375rem; line-height: 1.5; color: var(--muted); }
.mega__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.125rem; color: var(--navy); text-decoration: none; }
.mega__phone .icon { color: var(--action); }

.dropdown {
  position: absolute; left: 0; top: calc(100% + 8px);
  width: 340px; padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-2);
  animation: menu-in .22s var(--ease-out);
}
.dropdown__list { list-style: none; display: grid; }
.dropdown__link { display: flex; align-items: flex-start; gap: 14px; padding: 12px; border-radius: 12px; text-decoration: none; }
.dropdown__link:hover { background: var(--paper-2); }
/* Иконите в „Услуги“ и „Инструменти“ са еднакви */
.dropdown__link > .icon, .mega__link > .icon { flex: none; width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: var(--blue-50); color: var(--action); }
.mega__link[aria-current="page"] > .icon { background: #fff; }
.dropdown__all {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 6px; padding: 14px 12px 6px;
  border-top: 1px solid var(--line);
  font-weight: 800; font-size: .9375rem; color: var(--action); text-decoration: none;
}
.dropdown__all:hover { text-decoration: underline; }
.dropdown__all[aria-current="page"] { color: var(--navy); }

@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }

.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; }
.header-phone .icon { color: var(--action); }
.header-phone:hover { color: var(--action); }

.burger {
  display: none; place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--navy);
}

/* Мобилно меню */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6, 22, 41, .45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.mobile-menu__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  display: flex; flex-direction: column;
  background: #fff;
  overflow-y: auto; overscroll-behavior: contain;
  animation: panel-in .3s var(--ease-out);
}
@keyframes panel-in { from { transform: translateX(28px); opacity: 0; } }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.mobile-menu__close { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); }
.mobile-menu__nav { display: grid; padding: 8px 20px; }
.mobile-menu__group { border-bottom: 1px solid var(--line); }
.mobile-menu__group summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px;
  font-weight: 700; font-size: 1.0625rem; color: var(--navy);
}
.mobile-menu__group summary::-webkit-details-marker { display: none; }
.mobile-menu__group summary::after {
  content: ""; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D355B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform var(--dur-2) var(--ease-out);
}
.mobile-menu__group[open] summary::after { transform: rotate(180deg); }
.mobile-menu__group a { display: block; padding: 10px 0 10px 14px; color: var(--muted); font-weight: 600; text-decoration: none; border-left: 2px solid var(--line); }
.mobile-menu__group a:hover { color: var(--action); border-left-color: var(--action); }
.mobile-menu__group a:last-child { margin-bottom: 14px; }
.mobile-menu__link { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 1.0625rem; color: var(--navy); text-decoration: none; }
.mobile-menu__foot { display: grid; gap: 10px; margin-top: auto; padding: 20px; border-top: 1px solid var(--line); }

/* 6. Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(28px, 4vw, 56px) clamp(56px, 7vw, 96px);
  overflow: hidden;
  overflow: clip; /* clip не създава scroll контейнер, затова sticky портретът работи */
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--paper-2) 0%, #fff 82%);
}
/* фина „регистрова“ мрежа */
.hero__bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(13, 53, 91, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 53, 91, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 65% 70% at 72% 28%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 65% 70% at 72% 28%, #000 10%, transparent 72%);
}

.hero__grid { display: grid; gap: 44px; align-items: start; }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: clamp(40px, 5vw, 80px); }
}

/* Начална страница: текст вляво, онлайн заявката вдясно, карта на България на фона */
.hero__map { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero--form .hero__bg::before { display: none; }
@media (min-width: 1024px) {
  .hero--form .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(40px, 4.5vw, 72px); }
  .hero--form .hero__content { padding-top: 8px; }
}
@media (min-width: 1280px) {
  .hero--form .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
}
/* Заглавието се мащабира по ширината на колоната, за да остане на три реда */
.hero--form .hero__content { container-type: inline-size; }
.hero--form .hero__title { font-size: clamp(2rem, .9rem + 2.8vw, 3.25rem); }
@supports (font-size: 1cqi) {
  .hero--form .hero__title { font-size: clamp(2rem, 9.2cqi, 3.5rem); }
}
.hero__points { list-style: none; display: grid; gap: 16px; margin-top: 30px; max-width: 540px; }
.hero__points li { display: flex; align-items: flex-start; gap: 14px; font-size: .9375rem; line-height: 1.5; color: var(--muted); }
.hero__points .icon { flex: none; width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: var(--blue-50); color: var(--action); }
.hero__points strong { display: block; font-size: 1rem; font-weight: 800; line-height: 1.3; color: var(--navy); }
.hero__call { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 26px; color: var(--muted); }
.hero__call .icon { color: var(--action); }
.hero__call a { font-weight: 800; color: var(--navy); text-decoration: none; }
.hero__call a:hover { color: var(--action); text-decoration: underline; }
.hero__form .request { margin-top: 0; max-width: none; }
/* Под 1024px: формата веднага след въведението, гаранциите и телефонът — под нея */
@media (max-width: 1023px) {
  .hero--form .hero__grid { gap: 0; }
  .hero--form .hero__content { display: contents; }
  .hero--form .rating-chip { justify-self: start; }
  .hero--form .hero__form { order: 1; margin-top: 28px; }
  .hero--form .hero__points { order: 2; margin-top: 36px; }
  .hero--form .hero__call { order: 3; }
}
/* По-компактна форма в hero — повече от нея се вижда над сгъвката */
.hero__form .request__head { padding-block: 13px; }
.hero__form .request__sub { font-size: .875rem; }
.hero__form .request__ref { padding: 4px 8px; font-size: .75rem; }
.hero__form .request__body { gap: 14px; }
.hero__form .svc-option__box { min-height: 58px; padding-block: 9px; }
.hero__form .request__legend { margin-bottom: 8px; }

.rating-chip {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: var(--shadow-1);
  color: var(--navy); font-size: .9375rem; text-decoration: none;
}
.rating-chip:hover { border-color: var(--line-strong); color: var(--navy); }
.rating-chip__g { width: 18px; height: 18px; }
.rating-chip strong { font-weight: 800; }
.rating-chip__text { color: var(--muted); }

.hero__title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 850;
  font-size: clamp(2.25rem, .2rem + 4.6vw, 4.5rem);
  line-height: .98;
  letter-spacing: -.022em;
  color: var(--navy);
}
.hero__title .line { display: block; }

.hero__lead {
  margin-top: 22px;
  max-width: 58ch;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
}

/* Онлайн заявка — „документ“ */
.request {
  position: relative;
  margin-top: 30px;
  max-width: 720px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.request::before {
  content: "";
  display: block; height: 12px;
  background: url("../img/guilloche-band.svg") repeat-x center / 120px 22px;
  opacity: .75;
  border-bottom: 1px solid var(--line);
}
.request__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px clamp(18px, 2.5vw, 26px);
  border-bottom: 1px solid var(--line);
}
.request__title { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.1; }
.request__sub { margin-top: 2px; font-size: .9375rem; color: var(--muted); }
.request__ref {
  flex: none;
  padding: 6px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: .8125rem; font-weight: 700; letter-spacing: .02em;
  color: var(--subtle);
  font-variant-numeric: tabular-nums;
}
.request__body { display: grid; gap: 18px; padding: clamp(18px, 2.5vw, 26px); }

.request__group { margin: 0; padding: 0; border: 0; min-width: 0; }
.request__legend { padding: 0; margin-bottom: 10px; font-size: .9375rem; font-weight: 700; color: var(--navy); }
.request__legend--sm { display: block; margin-bottom: 8px; font-size: .875rem; color: var(--muted); }
.request__variants .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }

.svc-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.svc-option { position: relative; display: block; }
.svc-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.svc-option__box {
  position: relative;
  display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px;
  align-items: center;
  min-height: 68px; padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #fff;
  transition: border-color var(--dur-1), background-color var(--dur-1), box-shadow var(--dur-1);
}
.svc-option__icon {
  grid-row: 1 / span 2;
  width: 40px; height: 40px; padding: 9px;
  border-radius: 10px;
  background: var(--blue-50); color: var(--action);
  transition: background-color var(--dur-1), color var(--dur-1);
}
.svc-option__name { font-weight: 700; font-size: .9375rem; line-height: 1.25; color: var(--navy); }
.svc-option__price { font-size: .8125rem; font-weight: 600; color: var(--subtle); font-variant-numeric: tabular-nums; }
.svc-option:hover .svc-option__box { border-color: #9DAEC4; }
.svc-option input:checked + .svc-option__box { border-color: var(--action); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--action); }
.svc-option input:checked + .svc-option__box .svc-option__icon { background: var(--action); color: #fff; }
.svc-option input:checked + .svc-option__box .svc-option__price { color: var(--action); }
.svc-option input:focus-visible + .svc-option__box { outline: 3px solid var(--blue); outline-offset: 2px; }

.request__fees {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-2);
}
.request__fees > div { padding: 10px 14px; min-width: 0; }
.request__fees > div + div { border-left: 1px solid var(--line); }
.request__fees dt { font-size: .75rem; font-weight: 700; color: var(--subtle); }
.request__fees dd { margin: 2px 0 0; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.25; font-size: .9375rem; }
.request__fees.is-updated dd { animation: fee-flash .5s var(--ease-out); }
@keyframes fee-flash { from { color: var(--action); } }

.request__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field--wide { grid-column: 1 / -1; }

.request__more summary {
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; list-style: none;
  font-size: .9375rem; font-weight: 700; color: var(--action);
}
.request__more summary::-webkit-details-marker { display: none; }
.request__more summary::before { content: "+"; font-weight: 800; }
.request__more[open] summary::before { content: "–"; }
.request__more textarea { margin-top: 10px; }

.request__foot { display: grid; gap: 14px; align-items: center; }
@media (min-width: 640px) {
  .request__foot { grid-template-columns: minmax(0, 1fr) auto; gap: 20px; }
}
.request__submit { min-width: 220px; }
.request__submit .btn__spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.request__submit.is-loading .btn__spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.request__errors {
  padding: 12px 16px;
  border: 1px solid #F1C2B8;
  border-radius: var(--radius-md);
  background: var(--error-bg);
  color: var(--error);
  font-size: .9375rem;
}
.request__errors-title { font-weight: 800; }
.request__errors ul { margin-top: 6px; padding-left: 18px; }
.request__errors a { color: var(--error); font-weight: 600; }

.request__status:empty { display: none; }
.request__status { padding: 12px 14px; border-radius: var(--radius-md); background: var(--error-bg); color: var(--error); font-size: .9375rem; font-weight: 600; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.request__success { padding: clamp(24px, 4vw, 40px); text-align: center; }
.request__success:focus { outline: none; }
.stamp { width: 152px; height: 152px; margin: 0 auto 8px; color: var(--action); opacity: .9; transform: rotate(-12deg); }
.request__success:not([hidden]) .stamp { animation: stamp-in .6s cubic-bezier(.2, 1.35, .4, 1) both; }
@keyframes stamp-in {
  0% { opacity: 0; transform: scale(1.9) rotate(-30deg); }
  60% { opacity: .95; transform: scale(.94) rotate(-10deg); }
  100% { opacity: .9; transform: scale(1) rotate(-12deg); }
}
.request__success-title { font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; }
.request__success p { margin: 10px auto 0; max-width: 46ch; color: var(--muted); }
.request__success .btn { margin-top: 20px; }
.request__success-alt a { font-weight: 700; }
.request__success .request__demo { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--warn-bg); font-size: .8125rem; font-weight: 700; color: var(--warn-text); }

/* Портрет (до формите на вътрешните страници) */
.lawyer-media { position: relative; width: 100%; max-width: 470px; justify-self: center; }
@media (min-width: 1024px) {
  .lawyer-media { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; justify-self: end; margin-top: 12px; }
}
.lawyer-media::before {
  content: "";
  position: absolute; z-index: -1;
  width: 120%; aspect-ratio: 1;
  left: -38%; top: -14%;
  background: url("../img/icons/icon-watermark.png") center / contain no-repeat;
  opacity: .06;
}
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: var(--shadow-2);
}
.portrait__img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; }
.portrait__plate {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: grid; gap: 2px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow-1);
}
.portrait__name { font-family: var(--font-display); font-weight: 800; font-size: 1.3125rem; line-height: 1.15; color: var(--navy); }
.portrait__role { font-size: .875rem; line-height: 1.35; color: var(--muted); }

.float-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-1);
  font-size: .875rem; font-weight: 700; line-height: 1.3; color: var(--navy);
}
.float-chip .icon { width: 20px; height: 20px; }
.float-chip__icon { color: var(--action); }
.float-chip--google { top: 22px; left: -26px; }
.float-chip--talk { top: 42%; right: -22px; max-width: 220px; }
.float-chip__dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #22A06B; box-shadow: 0 0 0 4px rgba(34, 160, 107, .18); }

/* 7. Доверие: факти и лога
   ========================================================================== */
.proof { padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
/* Лентата с клиенти на началната страница — между „Услуги и цени“ и „Как работи“ */
.clients-band { background: var(--paper-2); border-top: 1px solid var(--line); }
.facts { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact { display: grid; gap: 6px; align-content: start; padding-left: 18px; border-left: 2px solid var(--blue-100); }
.fact__value { font-family: var(--font-display); font-weight: 850; font-size: clamp(2rem, 1.4rem + 1.6vw, 2.875rem); line-height: 1; color: var(--navy); }
.fact__label { max-width: 24ch; font-size: .9375rem; line-height: 1.4; color: var(--muted); }

.logos { padding-block: clamp(40px, 5vw, 64px) clamp(28px, 3vw, 40px); }
.logos__title { margin-bottom: 22px; font-size: .9375rem; color: var(--subtle); }
.logos__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logos__track { list-style: none; display: flex; align-items: center; gap: 64px; width: max-content; padding-inline: 32px; }
.logos__track li { flex: none; display: flex; align-items: center; height: 64px; }
.logos__track img {
  width: auto; height: auto; max-height: 40px; max-width: 150px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  mix-blend-mode: multiply;
  opacity: .72;
  transition: filter var(--dur-2), opacity var(--dur-2);
}
.logos__track img.logo-tall { max-height: 58px; }
.logos__track img:hover { filter: none; opacity: 1; }
.js .logos__track.is-animated { animation: marquee 70s linear infinite; }
.logos.is-paused .logos__track { animation-play-state: paused; }
.logos__viewport:hover .logos__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logos__controls { display: flex; justify-content: flex-end; margin-top: 10px; }
.logos__toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: #fff;
  font-size: .8125rem; font-weight: 600; color: var(--muted);
}
.logos__toggle:hover { color: var(--navy); border-color: var(--line-strong); }

/* 8. Услуги и цени (тарифа)
   ========================================================================== */
.ledger { border-top: 1px solid var(--line); }
.ledger__row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 210px 180px;
  gap: 32px;
  align-items: center;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}
.ledger__media { overflow: hidden; aspect-ratio: 16 / 10; border-radius: 14px; background: var(--paper-3); }
.ledger__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.ledger__row:hover .ledger__media img { transform: scale(1.045); }
.ledger__media--icon { display: grid; place-items: center; background: var(--blue-50); color: var(--action); }
.ledger__media--icon .icon { width: 44px; height: 44px; stroke-width: 1.4; }
.ledger__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1.2rem + .9vw, 2rem); line-height: 1.05; }
.ledger__title a { color: var(--navy); text-decoration: none; }
.ledger__title a:hover { color: var(--action); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.ledger__desc { margin-top: 8px; max-width: 56ch; font-size: 1rem; line-height: 1.5; color: var(--muted); }
.ledger__subs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ledger__subs li { padding: 5px 12px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: #fff; font-size: .875rem; font-weight: 600; color: var(--navy); }
.ledger__subs li:has(a) { padding: 0; border: 0; background: none; }
.ledger__subs a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: #fff; font-weight: 700; color: var(--navy); text-decoration: none; transition: border-color var(--dur-1), color var(--dur-1); }
.ledger__subs a:hover { border-color: var(--action); color: var(--action); }
.ledger__meta { display: grid; gap: 14px; margin: 0; }
.ledger__meta div { display: grid; gap: 2px; }
.ledger__meta dt { font-size: .8125rem; color: var(--subtle); }
.ledger__meta dd { margin: 0; font-weight: 700; font-size: 1rem; color: var(--navy); }
.ledger__hint { display: block; font-size: .8125rem; font-weight: 500; color: var(--subtle); }
.ledger__price { display: grid; justify-items: end; text-align: right; }
.ledger__amount { font-family: var(--font-display); font-weight: 850; font-size: clamp(2.125rem, 1.6rem + 1.4vw, 2.875rem); line-height: 1; color: var(--navy); }
.ledger__amount--text { font-size: 1.625rem; }
.ledger__unit { margin: 4px 0 14px; font-size: .875rem; color: var(--subtle); }
.ledger__note { margin-top: 24px; max-width: 90ch; font-size: .9375rem; color: var(--muted); }
.ledger__foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 40px; margin-top: 24px; }
.ledger__foot .ledger__note { margin-top: 0; max-width: 80ch; }

/* 9. Как работи
   ========================================================================== */
.steps { list-style: none; display: grid; gap: 36px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; } }
.step { position: relative; padding-top: 68px; }
.step__num {
  position: absolute; top: 0; left: 0; z-index: 1;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border: 1.5px solid var(--blue);
  border-radius: 50%;
  background: var(--ink-900);
  font-family: var(--font-display); font-weight: 800; font-size: 1.1875rem; color: #fff;
}
.step::before {
  content: "";
  position: absolute; top: 22px; left: 46px; right: -28px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--blue), rgba(67, 119, 233, .25));
  transform-origin: left center;
  transition: transform 1s var(--ease-out);
}
.step:last-child::before { display: none; }
.js .steps:not(.is-visible) .step::before { transform: scaleX(0); }
.steps.is-visible .step:nth-child(2)::before { transition-delay: .2s; }
.steps.is-visible .step:nth-child(3)::before { transition-delay: .4s; }
.step__title { font-size: 1.3125rem; }
.step__text { margin-top: 8px; font-size: 1rem; line-height: 1.55; color: var(--on-ink-muted); }
.step__time {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 6px 12px;
  border: 1px solid var(--line-ink); border-radius: var(--radius-pill);
  font-size: .875rem; font-weight: 600; color: #DCE6F7;
}
.step__time .icon { color: var(--blue-300); }
.process__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(40px, 5vw, 64px); padding-top: 32px; border-top: 1px solid var(--line-ink); }

/* 10. Инструменти
   ========================================================================== */
/* Карти на инструментите (начална страница и /instrumenti/).
   Горната част е умален пример за резултата — показва какво прави инструментът, преди да го отворите. */
.tool-cards { display: grid; gap: 16px; }
@media (min-width: 768px) { .tool-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.tool-card {
  position: relative;
  display: grid; grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: #fff;
  transition: border-color var(--dur-1), box-shadow var(--dur-2);
}
.tool-card:hover { border-color: var(--action); box-shadow: var(--shadow-2); }
.tool-card__specimen { display: grid; place-items: center; min-height: 200px; padding: 28px 24px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
/* Еднаква височина на примерите — заглавията на картите в един ред се подравняват */
@media (min-width: 768px) { .tool-card__specimen { min-height: 252px; } }
.section--paper .tool-card__specimen, .page-hero--tool .tool-card__specimen { background: var(--blue-50); }
.tool-card__body { display: grid; align-content: start; justify-items: start; gap: 8px; padding: clamp(20px, 2.5vw, 28px); }
.tool-card__icon { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--blue-50); color: var(--action); }
.tool-card__title { margin-top: 6px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.375rem, 1.2rem + .5vw, 1.625rem); line-height: 1.1; }
.tool-card__link { color: var(--navy); text-decoration: none; }
.tool-card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-xl); }
.tool-card__link:focus-visible { outline: none; }
.tool-card__link:focus-visible::after { outline: 3px solid var(--blue); outline-offset: 4px; }
.tool-card__text { max-width: 52ch; font-size: 1rem; line-height: 1.55; color: var(--muted); }
.tool-card__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 800; color: var(--action); }
.tool-card__cta .icon { transition: transform var(--dur-1); }
.tool-card:hover .tool-card__cta .icon { transform: translateX(3px); }
.tools__more { display: flex; justify-content: flex-end; margin-top: 24px; }

.spec { width: 100%; max-width: 300px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-1); font-size: .875rem; line-height: 1.35; color: var(--muted); }
.spec__label { font-weight: 800; color: var(--navy); }
.spec__rows { margin: 10px 0 0; }
.spec__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.spec__rows dd { margin: 0; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.spec__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 8px; border-top: 2px solid var(--navy); font-weight: 800; color: var(--navy); }
.spec__total span:last-child { font-family: var(--font-display); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.spec__bar { display: block; height: 5px; overflow: hidden; border-radius: var(--radius-pill); background: var(--paper-3); }
.spec__bar span { display: block; width: 40%; height: 100%; border-radius: inherit; background: var(--action); }
.spec__q { margin-top: 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem; line-height: 1.2; color: var(--navy); }
.spec__pills { display: grid; gap: 6px; margin-top: 10px; }
.spec__pills span { padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; font-weight: 700; color: var(--navy); }
.spec__pills .is-on { border-color: var(--action); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--action); }
.spec--fx { display: grid; justify-items: center; gap: 4px; text-align: center; }
.spec__from { font-weight: 700; font-size: 1rem; color: var(--subtle); font-variant-numeric: tabular-nums; }
.spec__rate { padding: 2px 10px; border-radius: var(--radius-pill); background: var(--blue-50); font-size: .8125rem; font-weight: 800; color: var(--action); }
.spec__to { font-family: var(--font-display); font-weight: 850; font-size: 2.125rem; line-height: 1.05; color: var(--navy); font-variant-numeric: tabular-nums; }
.spec__list { list-style: none; display: grid; gap: 6px; margin-top: 10px; }
.spec__list li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; color: var(--navy); }
.spec__list li::before { content: ""; width: 14px; height: 14px; flex: none; border: 1.5px solid var(--line-strong); border-radius: 4px; }
.spec__list .is-done { border-color: #A9D8C3; background: var(--success-bg); color: var(--success); }
.spec__list .is-done::before {
  border-color: var(--success);
  background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* Страници на инструментите: инструментът е в hero секцията, веднага под заглавието */
.page-hero--tool { padding-bottom: clamp(48px, 6vw, 88px); }
.tool-hero { max-width: 860px; margin-top: clamp(24px, 3vw, 40px); }
.tool-hero .page-hero__title { font-size: clamp(2.125rem, 1rem + 3vw, 3.5rem); }
.tool-hero__stage { margin-top: clamp(28px, 4vw, 48px); }

.tools__panel {
  padding: clamp(20px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-2);
}
.tools__panel:focus-visible { outline-offset: 4px; border-radius: var(--radius-xl); }
.tools__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1.2rem + .8vw, 2rem); line-height: 1.08; }
.tools__intro { margin-top: 10px; max-width: 60ch; font-size: 1rem; line-height: 1.55; color: var(--muted); }

/* Калкулатор */
.calc, .fx { display: grid; gap: 28px; }
@media (min-width: 900px) { .calc, .fx { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 40px; } }
.calc__group { min-width: 0; margin: 24px 0 0; padding: 0; border: 0; }
.calc__legend { display: block; margin-bottom: 10px; padding: 0; font-size: .9375rem; font-weight: 800; color: var(--navy); }
.calc__hint { margin-top: 10px; max-width: 52ch; font-size: .875rem; line-height: 1.5; color: var(--subtle); }

.calc__result, .fx__result {
  align-self: start;
  padding: clamp(20px, 2.5vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
}
.calc__result-label { font-size: .875rem; font-weight: 700; color: var(--muted); }
.calc__total { margin-top: 6px; font-family: var(--font-display); font-weight: 850; font-size: clamp(2.5rem, 2rem + 1.6vw, 3.5rem); line-height: 1; color: var(--navy); }
.calc__total-note { margin-top: 6px; font-size: .875rem; color: var(--subtle); }
.calc__table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: .9375rem; line-height: 1.4; }
.calc__table th, .calc__table td { padding: 10px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.calc__table th { font-weight: 500; color: var(--muted); }
.calc__table td { padding-left: 16px; text-align: right; font-weight: 800; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc__table thead th { padding-top: 0; border-top: 0; font-size: .8125rem; font-weight: 700; color: var(--subtle); }
.calc__table thead th:last-child, .calc__table thead th:nth-child(2) { text-align: right; }
.calc__table .is-total th, .calc__table .is-total td { border-top: 2px solid var(--navy); color: var(--navy); font-weight: 800; }
.calc__extra { margin-top: 16px; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); background: #fff; }
.calc__extra-title { margin-bottom: 6px; font-size: .8125rem; font-weight: 800; color: var(--navy); }
.calc__extra ul { list-style: none; display: grid; gap: 4px; font-size: .875rem; line-height: 1.45; color: var(--muted); }
.calc__term { display: flex; align-items: center; gap: 8px; margin: 18px 0; font-size: .9375rem; font-weight: 700; color: var(--navy); }
.calc__term .icon { color: var(--action); }

/* Тест */
.quiz__progress { height: 6px; margin-top: 20px; overflow: hidden; border-radius: var(--radius-pill); background: var(--paper-3); }
.quiz__progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--action); transition: width .45s var(--ease-out); }
.quiz__count { margin-top: 8px; font-size: .875rem; font-weight: 700; color: var(--subtle); }
.quiz__stage { min-height: 280px; margin-top: 24px; }
.quiz__q { max-width: 34ch; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.375rem, 1.1rem + .7vw, 1.75rem); line-height: 1.15; color: var(--navy); }
.quiz__q:focus { outline: none; }
.quiz__help { margin-top: 8px; max-width: 60ch; font-size: 1rem; color: var(--muted); }
.quiz__answers { display: grid; gap: 10px; margin-top: 20px; max-width: 640px; }
.quiz__answer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 56px; padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #fff;
  text-align: left; font-weight: 700; font-size: 1rem; color: var(--navy);
  transition: border-color var(--dur-1), background-color var(--dur-1), box-shadow var(--dur-1);
}
.quiz__answer .icon { color: var(--action); opacity: 0; transform: translateX(-4px); transition: opacity var(--dur-1), transform var(--dur-1); }
.quiz__answer:hover { border-color: var(--action); background: var(--blue-50); }
.quiz__answer:hover .icon { opacity: 1; transform: none; }
.quiz__answer[aria-pressed="true"] { border-color: var(--action); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--action); }
.quiz__nav { display: flex; justify-content: space-between; margin-top: 20px; }
.quiz__result { display: grid; gap: 14px; }
.quiz__kicker { font-size: .9375rem; font-weight: 700; color: var(--muted); }
.quiz__form { font-family: var(--font-display); font-weight: 850; font-size: clamp(3rem, 2rem + 3vw, 4.5rem); line-height: .95; color: var(--action); }
.quiz__form-name { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; color: var(--navy); }
.quiz__reasons { list-style: none; display: grid; gap: 8px; max-width: 62ch; }
.quiz__reasons li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 1rem; }
.quiz__reasons .icon { margin-top: 3px; color: var(--success); }
.quiz__alt { padding: 12px 14px; border-radius: var(--radius-md); background: var(--paper-2); font-size: .9375rem; color: var(--muted); max-width: 62ch; }
.quiz__disclaimer { font-size: .8125rem; color: var(--subtle); max-width: 62ch; }
.quiz__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* Превалутиране */
.fx__inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.fx__partners { margin-top: 26px; }
.fx__partners-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.fx__partners-head .calc__legend { margin: 0; }
.fx__partner-list { display: grid; gap: 8px; margin-top: 10px; }
.fx__partner { display: grid; grid-template-columns: minmax(0, 1fr) 120px 44px; gap: 8px; align-items: center; }
.fx__partner .input { min-height: 46px; }
.fx__remove { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; color: var(--muted); }
.fx__remove:hover { color: var(--error); border-color: var(--error); }
.fx__rows { display: grid; margin: 18px 0 0; }
.fx__rows div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.fx__rows dt { color: var(--muted); }
.fx__rows dd { margin: 0; font-weight: 800; color: var(--navy); white-space: nowrap; }
.fx__warn { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--warn-bg); color: var(--warn-text); font-size: .875rem; line-height: 1.45; }
.fx__warn .icon { margin-top: 2px; }
.fx__table-wrap { margin-top: 14px; }
.fx__facts { list-style: none; display: grid; gap: 8px; margin: 16px 0 20px; font-size: .875rem; line-height: 1.45; color: var(--muted); }
.fx__facts li { position: relative; padding-left: 18px; }
.fx__facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }

/* Чеклист */
.checklist { display: grid; gap: 24px; }
@media (min-width: 900px) { .checklist { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; } }
.checklist__head .seg { margin-top: 20px; }
.checklist__progress { display: grid; gap: 8px; }
.checklist__progress .quiz__progress { margin-top: 0; }
.checklist__progress .quiz__progress span { background: var(--success); }
.checklist__count { font-weight: 800; color: var(--navy); }
.checklist__items { list-style: none; display: grid; gap: 8px; margin-top: 16px; }
.cl-item label {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  transition: border-color var(--dur-1), background-color var(--dur-1);
}
.cl-item label:hover { border-color: var(--line-strong); }
.cl-item input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--success); }
.cl-item__name { display: block; font-weight: 700; color: var(--navy); line-height: 1.35; }
.cl-item__hint { display: block; margin-top: 2px; font-size: .875rem; line-height: 1.45; color: var(--muted); }
.cl-item input:checked + span .cl-item__name { color: var(--success); }
.cl-item label:has(input:checked) { border-color: #A9D8C3; background: var(--success-bg); }
.checklist__note { margin-top: 14px; font-size: .875rem; color: var(--subtle); }
.checklist__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* 11. Защо LexHub и гаранция
   ========================================================================== */
.why__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .why__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; } }
.why__intro .section-head__lead { margin-top: 20px; }
.why__list { list-style: none; display: grid; gap: 0 40px; }
@media (min-width: 640px) { .why__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.why__item { padding: 26px 0; border-top: 1px solid var(--line); }
.why__icon { width: 30px; height: 30px; color: var(--action); stroke-width: 1.6; }
.why__title { margin-top: 14px; font-size: 1.1875rem; }
.why__item p { margin-top: 6px; font-size: 1rem; line-height: 1.55; color: var(--muted); }

.certificate {
  position: relative;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center;
  margin-top: 36px;
  padding: 34px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.certificate::before {
  content: "";
  position: absolute; inset: 7px;
  border: 1px solid var(--blue-100);
  border-radius: 12px;
  pointer-events: none;
}
.certificate::after {
  content: "";
  position: absolute; left: 8px; right: 8px; top: 8px;
  height: 18px;
  background: url("../img/guilloche-band.svg") repeat-x center / 110px 20px;
  opacity: .55;
  pointer-events: none;
}
.certificate__seal { position: relative; display: grid; place-items: center; width: 104px; height: 104px; color: var(--action); }
.certificate__seal .rosette { position: absolute; inset: 0; width: 100%; height: 100%; }
.certificate__seal-icon { position: relative; z-index: 1; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--blue-100); }
.certificate__title { font-size: 1.25rem; }
.certificate__body p { margin-top: 6px; font-size: 1rem; line-height: 1.55; color: var(--muted); }
.certificate__body .certificate__small { margin-top: 10px; font-size: .8125rem; font-weight: 700; color: var(--subtle); }

/* 12. Кой стои зад LexHub
   ========================================================================== */
.lawyer__grid { display: grid; gap: 44px; }
@media (min-width: 1024px) { .lawyer__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(48px, 6vw, 88px); align-items: center; } }
.lawyer__media { overflow: hidden; aspect-ratio: 4 / 5; max-height: 760px; border-radius: var(--radius-xl); background: var(--ink-800); }
.lawyer__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 22%; }
.lawyer__lead { margin-top: 20px; max-width: 52ch; font-size: clamp(1.125rem, 1rem + .4vw, 1.375rem); line-height: 1.5; color: #fff; }
.lawyer__body > p:not(.lawyer__lead):not(.lawyer__disclaimer) { margin-top: 16px; max-width: 62ch; }
.lawyer__areas { list-style: none; display: grid; gap: 10px; margin-top: 28px; }
.lawyer__areas li { display: flex; align-items: flex-start; gap: 12px; color: #E4ECF8; }
.lawyer__areas .icon { margin-top: 4px; color: var(--blue-300); }
.lawyer__facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line-ink); }
.lawyer__fact-value { display: block; font-family: var(--font-display); font-weight: 850; font-size: clamp(2rem, 1.5rem + 1.4vw, 2.875rem); line-height: 1; color: #fff; }
.lawyer__fact-label { display: block; margin-top: 6px; font-size: .875rem; line-height: 1.4; color: var(--on-ink-muted); }
.lawyer__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 34px; }
.lawyer__disclaimer { margin-top: 24px; max-width: 62ch; font-size: .8125rem; line-height: 1.5; color: #8EA3C0; }

/* 13. Притеснения
   ========================================================================== */
.concerns__grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .concerns__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.concern { padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.concern__q { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3125rem, 1.1rem + .6vw, 1.625rem); line-height: 1.2; color: var(--navy); }
.concern__a { display: flex; gap: 12px; margin-top: 14px; font-size: 1rem; line-height: 1.55; color: var(--muted); }
.concern__a .icon { margin-top: 3px; color: var(--success); }

/* 14. Отзиви
   ========================================================================== */
.reviews__grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .reviews__grid { grid-template-columns: 320px minmax(0, 1fr); gap: 56px; align-items: start; } }
.gbadge { display: grid; justify-items: start; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-1); }
.gbadge__top { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); }
.gbadge__logo { width: 24px; height: 24px; }
.gbadge__score { font-family: var(--font-display); font-weight: 850; font-size: 4.25rem; line-height: .9; color: var(--navy); }
.gbadge__count { margin-bottom: 10px; font-size: .9375rem; color: var(--muted); }

.reviews__track {
  position: relative; /* задържа абсолютно позиционираните скрити текстове вътре в скрол контейнера */
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 86%);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: -4px; padding: 4px 4px 12px;
}
.reviews__track::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .reviews__track { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (min-width: 1280px) { .reviews__track { grid-auto-columns: calc((100% - 32px) / 2.25); } }
.review { display: flex; flex-direction: column; gap: 16px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-2); scroll-snap-align: start; }
.review__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review__service { padding: 4px 10px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--line); font-size: .75rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.review__text { flex: 1; margin: 0; font-size: 1.0625rem; line-height: 1.55; color: var(--text); }
.review__author { display: flex; align-items: center; gap: 12px; }
.review__avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: .9375rem; }
.review__name { display: block; font-weight: 800; color: var(--navy); line-height: 1.3; }
.review__meta { display: block; font-size: .8125rem; color: var(--subtle); }
.reviews__nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }

/* 15. Наръчник
   ========================================================================== */
.guide__layout { display: grid; gap: 32px; }
@media (min-width: 1024px) { .guide__layout { grid-template-columns: 270px minmax(0, 1fr); gap: 72px; align-items: start; } }
.guide__toc { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
@media (min-width: 1024px) { .guide__toc { position: sticky; top: calc(var(--header-h) + 24px); } }
.guide__toc-title { margin-bottom: 10px; font-weight: 800; color: var(--navy); }
.guide__toc ol { list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.guide__toc a { display: flex; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); font-size: .9375rem; line-height: 1.35; color: var(--muted); text-decoration: none; transition: background-color var(--dur-1), color var(--dur-1); }
.guide__toc a::before { counter-increment: toc; content: counter(toc); min-width: 1.1ch; font-weight: 800; color: var(--blue-300); font-variant-numeric: tabular-nums; }
.guide__toc a:hover { background: var(--paper-2); color: var(--navy); }
.guide__toc a[aria-current="true"] { background: var(--blue-50); color: var(--action); font-weight: 700; }
.guide__toc a[aria-current="true"]::before { color: var(--action); }

.prose { max-width: 74ch; font-size: 1.0625rem; line-height: 1.7; }
.prose h3 { margin-top: 56px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1.25rem + .8vw, 2rem); line-height: 1.12; }
.prose h3:first-child { margin-top: 0; }
.prose h4 { margin-top: 28px; font-size: 1.1875rem; }
.prose p, .prose ul, .prose ol { margin-top: 16px; color: var(--text-2); }
.prose ul, .prose ol { display: grid; gap: 8px; padding-left: 1.3em; }
.prose li::marker { color: var(--blue); font-weight: 700; }
.prose strong { color: var(--navy); }

/* 16. ЧЗВ
   ========================================================================== */
.faq__grid { display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .faq__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
  .faq__aside { position: sticky; top: calc(var(--header-h) + 24px); }
}
.faq__aside .section-head__lead { margin-top: 18px; }
.faq__contacts { list-style: none; display: grid; gap: 12px; margin-top: 24px; }
.faq__contacts a { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.125rem; color: var(--navy); text-decoration: none; }
.faq__contacts a:hover { color: var(--action); }
.faq__contacts .icon { color: var(--action); }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0;
  font-weight: 700; font-size: 1.125rem; line-height: 1.35; color: var(--navy);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none; width: 32px; height: 32px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D355B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-1), border-color var(--dur-1);
}
.faq__item summary:hover { color: var(--action); }
.faq__item[open] summary::after { transform: rotate(45deg); background-color: var(--blue-50); border-color: var(--action); }
.faq__a { padding-bottom: 24px; max-width: 66ch; font-size: 1rem; line-height: 1.65; color: var(--muted); }

/* 17. Блог — карти, списък, статия
   ========================================================================== */
.topic-tag {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--blue-50);
  font-size: .8125rem; font-weight: 700; line-height: 1.3; color: var(--action);
  text-decoration: none;
}
a.topic-tag:hover { background: var(--blue-100); color: var(--action-hover); }

.post-grid { display: grid; gap: 36px 24px; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.post-card { position: relative; display: flex; flex-direction: column; gap: 10px; }
.post-card__media { overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); background: var(--paper-3); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.post-card:hover .post-card__media img { transform: scale(1.035); }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 6px; font-size: .875rem; color: var(--subtle); }
.post-card__title { font-size: 1.25rem; line-height: 1.28; }
.post-card__link { color: var(--navy); text-decoration: none; }
.post-card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.post-card:hover .post-card__link { color: var(--action); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.post-card__link:focus-visible { outline: none; }
.post-card__link:focus-visible::after { outline: 3px solid var(--blue); outline-offset: 6px; }
.post-card__excerpt {
  font-size: .9375rem; line-height: 1.55; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card__more { font-size: .875rem; font-weight: 700; color: var(--navy); }
.post-card--dup { display: none; }
.blog-list.is-filtered .post-card--dup { display: flex; }

/* Водеща статия */
.page-hero--blog { padding-bottom: clamp(48px, 6vw, 80px); }
.post-feature {
  display: grid; gap: 24px;
  margin-top: clamp(28px, 4vw, 48px);
  padding: clamp(12px, 1.6vw, 18px);
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-2);
}
@media (min-width: 900px) { .post-feature { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: center; } }
.post-feature__media { display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); background: var(--paper-3); }
.post-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.post-feature__body { display: grid; gap: 14px; justify-items: start; padding: 4px clamp(6px, 1.5vw, 18px) 10px; }
.post-feature__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.75rem, 1.25rem + 1.5vw, 2.625rem); line-height: 1.06; }
.post-feature__title a { color: var(--navy); text-decoration: none; }
.post-feature__title a:hover { color: var(--action); }
.post-feature__excerpt { max-width: 52ch; font-size: 1.0625rem; line-height: 1.55; color: var(--muted); }
.post-feature__author { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .9375rem; font-weight: 700; color: var(--navy); }
.post-feature__author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.post-feature__time { padding-left: 10px; border-left: 1px solid var(--line-strong); font-weight: 500; color: var(--subtle); }

/* Филтри и търсене */
.blog-toolbar { display: grid; gap: 20px; margin-bottom: clamp(28px, 4vw, 44px); }
@media (min-width: 1180px) { .blog-toolbar { grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 32px; } .blog-toolbar__controls { justify-content: flex-end; } }
.blog-toolbar__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  background: #fff;
  font-weight: 700; font-size: .9375rem; color: var(--navy);
  transition: background-color var(--dur-1), border-color var(--dur-1), color var(--dur-1);
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.chip__count { min-width: 22px; padding: 1px 7px; border-radius: var(--radius-pill); background: var(--paper-2); font-size: .75rem; font-weight: 800; text-align: center; color: var(--muted); }
.chip[aria-pressed="true"] .chip__count { background: rgba(255, 255, 255, .16); color: #fff; }
.search-field { position: relative; flex: 1 1 220px; max-width: 320px; }
.search-field .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--subtle); pointer-events: none; }
.search-field .input { min-height: 44px; padding-left: 44px; border-radius: var(--radius-pill); }
.blog-empty { margin-top: 12px; padding: 32px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); text-align: center; color: var(--muted); }
.blog-empty__title { margin-bottom: 6px; font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; color: var(--navy); }
.link-btn { padding: 0; border: 0; background: none; color: var(--action); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1024px) { .related--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Статия */
.reading-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 56; height: 3px; pointer-events: none; }
.reading-progress span { display: block; width: 100%; height: 100%; background: var(--action); transform: scaleX(0); transform-origin: left center; }
.article-hero { position: relative; isolation: isolate; overflow: hidden; overflow: clip; padding-top: clamp(22px, 3vw, 36px); }
.article-hero .topic-tag { margin-top: clamp(22px, 3vw, 34px); }
.article-hero__title {
  max-width: 21em; margin-top: 14px;
  font-family: var(--font-display); font-weight: 850;
  font-size: clamp(2.125rem, 1.1rem + 3vw, 3.625rem);
  line-height: 1.03; letter-spacing: -.018em;
}
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 24px; font-size: .9375rem; color: var(--muted); }
.article-meta__author { display: inline-flex; align-items: center; gap: 10px; }
.article-meta__author img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.article-meta__name { display: block; font-weight: 800; line-height: 1.2; color: var(--navy); }
.article-meta__role { display: block; font-size: .8125rem; color: var(--subtle); }
.article-meta__item { position: relative; }
.article-meta__item::before { content: ""; position: absolute; left: -15px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--line-strong); }
.article-figure { margin-top: clamp(28px, 4vw, 44px); }
.article-figure img { width: 100%; height: auto; border-radius: var(--radius-xl); background: var(--paper-3); box-shadow: var(--shadow-2); }

.article-layout { display: grid; gap: 40px; padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px); }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(48px, 6vw, 88px); align-items: start; } }
.article-main { min-width: 0; max-width: 760px; }
.prose--article { max-width: none; font-size: clamp(1.0625rem, 1rem + .2vw, 1.1875rem); line-height: 1.75; }
.prose--article > p:first-child { font-size: 1.15em; line-height: 1.6; color: var(--text); }
.prose--article h2 { margin-top: 52px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2.125rem); line-height: 1.12; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose--article h3 { margin-top: 32px; font-size: 1.25rem; line-height: 1.3; }
.prose--article h4 { margin-top: 24px; font-size: 1.0625rem; }
.prose--article h2 + p, .prose--article h3 + p { margin-top: 12px; }
.prose--article a { font-weight: 600; }

.article-aside { display: grid; gap: 20px; }
@media (min-width: 1024px) { .article-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.toc-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.toc-card__title { margin-bottom: 10px; font-weight: 800; color: var(--navy); }
.toc-card ol { max-height: 44vh; overflow-y: auto; overscroll-behavior: contain; }
.toc-card ol, .toc-mobile ol { list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.toc-card a, .toc-mobile a { display: flex; gap: 10px; padding: 7px 10px; border-radius: var(--radius-sm); font-size: .9rem; line-height: 1.35; color: var(--muted); text-decoration: none; }
.toc-card a::before, .toc-mobile a::before { counter-increment: toc; content: counter(toc); min-width: 1.4ch; font-weight: 800; color: var(--blue-300); font-variant-numeric: tabular-nums; }
.toc-card a:hover, .toc-mobile a:hover { background: var(--paper-2); color: var(--navy); }
.toc-card a[aria-current="true"] { background: var(--blue-50); color: var(--action); font-weight: 700; }
.toc-card a[aria-current="true"]::before { color: var(--action); }
.toc-mobile { margin-bottom: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper-2); }
.toc-mobile summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; list-style: none; cursor: pointer; font-weight: 800; color: var(--navy); }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: "+"; font-size: 1.25rem; line-height: 1; color: var(--action); }
.toc-mobile[open] summary::after { content: "–"; }
.toc-mobile nav { padding: 0 10px 12px; }
@media (min-width: 1024px) { .toc-mobile { display: none; } }
@media (max-width: 1023px) { .article-aside .toc-card { display: none; } }

.cta-card { display: grid; gap: 10px; padding: 24px; border-radius: var(--radius-lg); background: var(--ink-900); color: var(--on-ink-muted); }
.cta-card__kicker { font-size: .875rem; font-weight: 700; color: var(--blue-300); }
.cta-card__title { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; line-height: 1.15; color: #fff; }
.cta-card__price { font-family: var(--font-display); font-weight: 850; font-size: 2rem; line-height: 1; color: #fff; }
.cta-card__price--text { font-size: 1.25rem; font-weight: 700; color: var(--blue-200); }
.cta-card__note { margin-bottom: 6px; font-size: .875rem; }
.cta-card .btn--secondary { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.cta-card .btn--secondary:hover { border-color: #fff; color: #fff; }

.article-note { display: flex; gap: 10px; margin-top: 44px; padding: 16px 18px; border-radius: var(--radius-md); background: var(--paper-2); font-size: .875rem; line-height: 1.5; color: var(--muted); }
.article-note .icon { margin-top: 2px; color: var(--action); }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.share-row__label { margin-right: 6px; font-weight: 800; color: var(--navy); }
.share-row__status { font-size: .875rem; font-weight: 600; color: var(--success); }
.author-box { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; margin-top: 28px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.author-box__img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.author-box__name { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--navy); }
.author-box__role { font-size: .875rem; color: var(--subtle); }
.author-box__bio { margin: 10px 0 12px; font-size: .9375rem; line-height: 1.55; color: var(--muted); }
@media (max-width: 479px) { .author-box { grid-template-columns: 1fr; } }

/* 18. Финално CTA с видео
   ========================================================================== */
.cta-video {
  position: relative; isolation: isolate;
  overflow: hidden;
  padding-block: clamp(96px, 12vw, 168px);
  background: var(--ink-950) url("../video/sofia-sunset-poster.jpg") center / cover no-repeat;
  color: #fff;
  text-align: center;
}
.cta-video__media { position: absolute; inset: 0; z-index: -1; }
.cta-video__video { width: 100%; height: 100%; object-fit: cover; }
.cta-video__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 22, 41, .80) 0%, rgba(6, 22, 41, .62) 45%, rgba(6, 22, 41, .9) 100%);
}
.cta-video__title { max-width: 17ch; margin-inline: auto; font-family: var(--font-display); font-weight: 850; font-size: clamp(2.4rem, 1.4rem + 3.8vw, 4.75rem); line-height: .98; letter-spacing: -.02em; color: #fff; }
.cta-video__lead { max-width: 56ch; margin: 22px auto 0; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.55; color: #D5DFEE; }
.cta-video__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.cta-video__contacts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 30px; font-size: .9375rem; color: #C8D5E8; }
.cta-video__contacts li { display: inline-flex; align-items: center; gap: 8px; }
.cta-video__contacts a { color: #fff; }
.cta-video__toggle {
  position: absolute; right: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--radius-pill);
  background: rgba(6, 22, 41, .5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff; font-size: .8125rem; font-weight: 600;
}

/* 19. Футър
   ========================================================================== */
.site-footer { position: relative; padding-top: clamp(64px, 7vw, 104px); background: var(--ink-950); color: #A9B8CE; }
.site-footer::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 22px;
  background: url("../img/guilloche-band-light.svg") repeat-x center / 120px 22px;
  opacity: .2;
}
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__brand img { width: 150px; height: auto; }
.footer__slogan { margin-top: 18px; max-width: 22ch; font-family: var(--font-display); font-weight: 800; font-size: 1.4375rem; line-height: 1.15; color: #fff; }
.footer__about { margin-top: 10px; max-width: 40ch; font-size: .9375rem; line-height: 1.55; }
.footer__social { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-top: 20px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; color: #fff; }
.footer__social:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.footer__title { margin-bottom: 14px; font-weight: 800; color: #fff; }
.footer__title--spaced { margin-top: 30px; }
.footer__title a { color: inherit; text-decoration: none; }
.footer__title a:hover { text-decoration: underline; }
.footer__col ul { list-style: none; display: grid; gap: 10px; font-size: .9375rem; }
.footer__col a { color: #A9B8CE; text-decoration: none; }
.footer__col a:hover { color: #fff; text-decoration: underline; }
.footer__contacts { margin-bottom: 22px; }
.footer__contacts li { display: flex; align-items: flex-start; gap: 10px; }
.footer__contacts .icon { margin-top: 3px; color: var(--blue-300); }
.footer__bottom { display: grid; gap: 14px; margin-top: 56px; padding-block: 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8125rem; }
.footer__legal { max-width: 90ch; color: #8698B3; }
.footer__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__links a, .footer__cookie-btn { padding: 0; border: 0; background: none; color: #A9B8CE; font-size: inherit; text-decoration: none; }
.footer__links a:hover, .footer__cookie-btn:hover { color: #fff; text-decoration: underline; }
.footer__credit a { color: #A9B8CE; }

/* 20. Мобилна лента и бисквитки
   ========================================================================== */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-2);
  transform: translateY(calc(100% + 24px));
  transition: transform var(--dur-2) var(--ease-out);
  margin-bottom: env(safe-area-inset-bottom);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { --btn-h: 48px; padding-inline: 12px; }
@media (min-width: 1024px) { .mobile-cta { display: none; } }

.cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: 70;
  width: min(460px, calc(100% - 32px));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-2);
  animation: menu-in .3s var(--ease-out);
}
.cookie__title { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--navy); }
.cookie__text { margin-top: 6px; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.cookie__prefs { display: grid; gap: 10px; margin-top: 14px; padding: 12px; border-radius: var(--radius-md); background: var(--paper-2); }
.cookie__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* 21. Движение: една оркестрирана последователност в hero
   ========================================================================== */
.reveal { animation: rise .8s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 80ms + 60ms); }

/* Появяване при скролване (класовете се слагат от main.js само на блоковете под сгъвката) */
.will-reveal { opacity: 0; transform: translateY(14px); }
.will-reveal.is-revealed {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease-out), transform .75s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
@media print { .will-reveal { opacity: 1 !important; transform: none !important; } }

/* Телефонът в хедъра „звъни“ леко на всеки няколко секунди и при посочване */
.header-phone .icon { transform-origin: 50% 60%; animation: phone-ring 7s var(--ease-in-out) 3s infinite; }
.header-phone:hover .icon { animation: phone-ring-once .7s var(--ease-in-out); }
@keyframes phone-ring {
  0%, 82%, 100% { transform: rotate(0); }
  84% { transform: rotate(-14deg); }
  86% { transform: rotate(12deg); }
  88% { transform: rotate(-10deg); }
  90% { transform: rotate(8deg); }
  92% { transform: rotate(-4deg); }
  94% { transform: rotate(0); }
}
@keyframes phone-ring-once {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-14deg); }
  30% { transform: rotate(12deg); }
  45% { transform: rotate(-10deg); }
  60% { transform: rotate(8deg); }
  75% { transform: rotate(-4deg); }
}
.reveal--media { animation-name: rise-media; animation-duration: 1.1s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes rise-media { from { opacity: 0; transform: scale(.975); } }
.float-chip { animation: rise .8s var(--ease-out) both; animation-delay: .75s; }
.float-chip--talk { animation-delay: .9s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .logos__track.is-animated { animation: none; }
  .logos__track { flex-wrap: wrap; justify-content: center; width: auto; row-gap: 12px; }
  .logos__track li[aria-hidden="true"] { display: none; }
  .logos__viewport { -webkit-mask-image: none; mask-image: none; }
  .logos__controls { display: none; }
}

/* 22а. Вътрешни страници
   ========================================================================== */
.nav__link.is-current { color: var(--action); }
.mega__link[aria-current="page"] .mega__name, .dropdown__link[aria-current="page"] .mega__name { color: var(--action); }
.mega__link[aria-current="page"] { background: var(--blue-50); }
.mobile-menu__group a[aria-current="page"], .mobile-menu__link[aria-current="page"] { color: var(--action); border-left-color: var(--action); }

/* Навигационна пътечка */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: .875rem; line-height: 1.4; color: var(--subtle); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6E84' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--action); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--navy); font-weight: 700; }

/* Hero на вътрешна страница */
.page-hero { position: relative; isolation: isolate; padding-block: clamp(22px, 3vw, 36px) clamp(56px, 7vw, 96px); overflow: hidden; overflow: clip; }
.page-hero__grid { display: grid; gap: 40px; margin-top: clamp(24px, 3vw, 40px); }
@media (min-width: 1024px) { .page-hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(40px, 5vw, 72px); align-items: start; } }
@media (min-width: 1024px) { .page-hero__grid--single { grid-template-columns: minmax(0, 1fr); } }
.page-hero__title {
  font-family: var(--font-display); font-weight: 850;
  font-size: clamp(2.25rem, .9rem + 3.5vw, 4rem);
  line-height: 1; letter-spacing: -.02em;
}
.page-hero__lead { margin-top: 20px; max-width: 60ch; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--muted); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.facts-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--line);
}
@media (min-width: 640px) { .facts-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts-row > div { padding: 14px 16px; background: #fff; min-width: 0; }
.facts-row dt { font-size: .8125rem; font-weight: 700; color: var(--subtle); }
.facts-row dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1875rem, 1.05rem + .4vw, 1.4375rem); line-height: 1.1; color: var(--navy); }

.trust-row { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 24px; font-size: .9375rem; color: var(--muted); }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row .icon { color: var(--success); }

/* Ценова карта („документ“) */
.price-card {
  position: relative;
  padding: 34px clamp(22px, 2.5vw, 30px) 26px;
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.price-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background: url("../img/guilloche-band.svg") repeat-x center / 120px 22px;
  opacity: .75; border-bottom: 1px solid var(--line);
}
.price-card__label { font-size: .875rem; font-weight: 700; color: var(--subtle); }
.price-card__title { margin-top: 4px; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.15; }
.price-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 18px; }
.price-card__amount { font-family: var(--font-display); font-weight: 850; font-size: clamp(3rem, 2.4rem + 2vw, 4.25rem); line-height: .9; color: var(--navy); font-variant-numeric: tabular-nums; }
.price-card__unit { font-weight: 700; color: var(--subtle); }
.price-card__state { margin-top: 10px; font-size: .9375rem; color: var(--muted); }
.price-card__list { list-style: none; display: grid; gap: 11px; margin: 20px 0 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.price-card__list li { display: flex; align-items: flex-start; gap: 10px; font-size: .9375rem; line-height: 1.45; color: var(--text-2); }
.price-card__list .icon { margin-top: 2px; color: var(--success); }
.price-card__alt { margin-top: 10px; }
.price-card__note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: .8125rem; font-weight: 600; color: var(--subtle); text-align: center; }
.price-card__note .icon { color: var(--action); }

/* Текст + страничен блок */
.split { display: grid; gap: 40px; }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(48px, 6vw, 88px); align-items: start; } }
.split__body .h-section { margin-bottom: 26px; }
.aside-card { padding: clamp(22px, 2.5vw, 30px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-2); }
.section--paper .aside-card { background: #fff; }
@media (min-width: 1024px) { .aside-card { position: sticky; top: calc(var(--header-h) + 24px); } }
.aside-card__title { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; line-height: 1.15; }
.aside-card .btn { margin-top: 22px; }
.check-list { list-style: none; display: grid; gap: 12px; margin-top: 18px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; line-height: 1.5; color: var(--text-2); }
.check-list .icon { margin-top: 3px; color: var(--success); }

.callout {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: 28px; padding: 20px 22px;
  border: 1px solid var(--line); border-left: 4px solid var(--action);
  border-radius: var(--radius-md);
  background: var(--blue-50);
  font-size: 1rem; line-height: 1.55; color: var(--text-2);
}
.callout > .icon { margin-top: 3px; color: var(--action); }
.callout--warn { border-left-color: #D98E04; background: var(--warn-bg); }
.callout--warn > .icon { color: #B26F00; }
.callout__title { display: block; margin-bottom: 4px; font-weight: 800; color: var(--navy); }

/* Какво включва услугата */
.included__layout { display: grid; gap: 28px; }
@media (min-width: 1024px) { .included__layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px; align-items: start; } }
.included { list-style: none; display: grid; gap: 12px; }
@media (min-width: 640px) { .included { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.included li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: #fff;
  font-weight: 700; line-height: 1.4; color: var(--navy);
}
.included .icon { margin-top: 1px; color: var(--action); }
.included__layout .certificate { margin-top: 0; }

/* Карти с функции/видове */
.feature-grid { list-style: none; display: grid; gap: 16px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .feature-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { padding: clamp(22px, 2.5vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.section--paper .feature { background: #fff; }
.feature__icon { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--blue-50); color: var(--action); }
.feature__title { margin-top: 16px; font-size: 1.1875rem; }
.feature p { margin-top: 6px; font-size: 1rem; line-height: 1.55; color: var(--muted); }
.feature__tag { display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--paper-2); font-size: .8125rem; font-weight: 700; color: var(--navy); }

/* Цена и срок */
.pricing { display: grid; gap: 28px; }
@media (min-width: 1024px) { .pricing { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: start; } }
.pricing .table-wrap { margin-top: 0; }
.pricing__notes { display: grid; gap: 14px; }
.note-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; font-size: .9375rem; line-height: 1.55; color: var(--muted); }
.note-card > .icon { margin-top: 2px; color: var(--action); }
.note-card strong { display: block; margin-bottom: 2px; color: var(--navy); font-size: 1rem; }
.note-card a { font-weight: 700; }

/* Документи */
.docs { list-style: none; display: grid; gap: 10px; }
@media (min-width: 768px) { .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.docs li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.docs .icon { margin-top: 2px; color: var(--success); }
.docs strong { display: block; color: var(--navy); line-height: 1.35; }
.docs span { display: block; margin-top: 2px; font-size: .9375rem; line-height: 1.45; color: var(--muted); }
.docs__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 20px; padding: 18px 20px; border-radius: var(--radius-md); background: var(--blue-50); color: var(--text-2); font-size: .9375rem; }

/* Опции (избор на правна форма / територия) */
.options { display: grid; gap: 16px; }
@media (min-width: 768px) { .options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.option {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-1);
}
.option__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.option__icon { width: 48px; height: 48px; padding: 12px; border-radius: 14px; background: var(--blue-50); color: var(--action); }
.option__price { text-align: right; }
.option__amount { display: block; font-family: var(--font-display); font-weight: 850; font-size: 2.25rem; line-height: 1; color: var(--navy); }
.option__unit { font-size: .8125rem; color: var(--subtle); }
.option__title { margin-top: 8px; font-family: var(--font-display); font-weight: 800; font-size: 1.625rem; line-height: 1.1; }
.option__title a { color: var(--navy); text-decoration: none; }
.option__title a:hover { color: var(--action); }
.option p { font-size: 1rem; line-height: 1.55; color: var(--muted); }
.option .check-list { margin-top: 6px; }
.option__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 14px; }

/* Блок с формата */
.form-block__grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .form-block__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: clamp(40px, 5vw, 80px); } }
.form-block .request { margin-top: 28px; }
.form-block .section-head__lead { margin-top: 16px; }

/* Свързани услуги */
.related { display: grid; gap: 16px; }
@media (min-width: 640px) { .related { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .related { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.related__card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: start;
  padding: 22px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff;
  color: inherit; text-decoration: none;
  transition: border-color var(--dur-1), box-shadow var(--dur-2) var(--ease-out);
}
.related__card:hover { border-color: var(--action); box-shadow: var(--shadow-1); color: inherit; }
.related__icon { grid-row: 1 / span 3; width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--blue-50); color: var(--action); }
.related__title { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1.15; color: var(--navy); }
.related__card:hover .related__title { color: var(--action); }
.related__text { font-size: .9375rem; line-height: 1.45; color: var(--muted); }
.related__price { margin-top: 6px; font-weight: 800; font-size: .9375rem; color: var(--navy); }

/* Контакти */
.contact-cards { display: grid; gap: 14px; margin-top: 32px; }
@media (min-width: 768px) { .contact-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.contact-card {
  display: grid; gap: 4px; align-content: start;
  padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-1);
  color: inherit; text-decoration: none;
  transition: border-color var(--dur-1);
}
a.contact-card:hover { border-color: var(--action); color: inherit; }
.contact-card__icon { width: 44px; height: 44px; margin-bottom: 10px; padding: 11px; border-radius: 12px; background: var(--blue-50); color: var(--action); }
.contact-card__label { font-size: .875rem; font-weight: 700; color: var(--subtle); }
.contact-card__value { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; line-height: 1.2; color: var(--navy); overflow-wrap: anywhere; }
.contact-card__action { margin-top: 8px; font-size: .9375rem; font-weight: 700; color: var(--action); }

/* 404 */
.error-page { padding-block: clamp(56px, 9vw, 128px); }
.error-page__code { font-family: var(--font-display); font-weight: 900; font-size: clamp(5rem, 3rem + 8vw, 10rem); line-height: .85; color: var(--blue-100); }
.error-page .page-hero__title { margin-top: 12px; }
.error-page .related { margin-top: 40px; }

/* Правни страници — номерирани раздели, както в договор */
.page-hero--legal { padding-bottom: clamp(40px, 5vw, 64px); }
.page-hero--legal .page-hero__title { font-size: clamp(2.25rem, 1.2rem + 2.6vw, 3.5rem); }
.page-hero--legal .callout { max-width: 74ch; }
.page-hero--legal + .guide, .page-hero--guide + .guide { padding-top: clamp(8px, 2vw, 24px); }
.prose--legal { counter-reset: legal; }
.prose--legal > p:first-child { font-size: 1.125rem; color: var(--text); }
.prose--legal h2 {
  display: flex; gap: .45em;
  margin-top: 48px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); line-height: 1.15;
}
.prose--legal h2::before { counter-increment: legal; content: counter(legal) "."; color: var(--blue-300); font-variant-numeric: tabular-nums; }
.prose--legal h2 + p, .prose--legal h2 + ul { margin-top: 12px; }
.prose--legal a { font-weight: 600; }
.prose--legal .table-wrap { margin-top: 20px; }
.prose--legal .table { min-width: 560px; }
.prose--legal .table tbody th { white-space: nowrap; }

/* Наръчник (/narachnik/) — h2 са разделите, h3 — подразделите (на началната страница бяха h3/h4) */
.page-hero--guide { padding-bottom: clamp(40px, 5vw, 64px); }
.prose--guide h2 { margin-top: 56px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1.25rem + .8vw, 2rem); line-height: 1.12; }
.prose--guide h2:first-child { margin-top: 0; }
.prose--guide h3 { margin-top: 28px; font-family: var(--font-sans); font-weight: 700; font-size: 1.1875rem; }
.page-hero__more { margin-top: 16px; }
.faq__more { margin-top: 24px; }

/* Цени — четирите хонорара един до друг; бутоните се подравняват долу */
.price-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.price-grid .price-card { display: flex; flex-direction: column; }
.price-grid .price-card__list { flex: 1; }
/* В един ред: заглавие, цена, такси и списък се подравняват между картите (subgrid; без поддръжка — обичаен поток) */
@media (min-width: 1240px) {
  .price-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 0; }
  .price-grid .price-card { display: grid; grid-row: span 7; grid-template-rows: subgrid; align-content: start; }
}
.price-card__title a { color: inherit; text-decoration: none; }
.price-card__title a:hover { color: var(--action); text-decoration: underline; text-underline-offset: 4px; }

/* „За нас“ — биография на тъмен фон, контакти, лента с клиенти */
.bio-list { margin: 28px 0 0; border-top: 1px solid var(--line-ink); }
.bio-list div { display: grid; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line-ink); }
@media (min-width: 640px) { .bio-list div { grid-template-columns: 180px minmax(0, 1fr); } }
.bio-list dt { font-size: .875rem; font-weight: 700; color: var(--on-ink-muted); }
.bio-list dd { margin: 0; font-weight: 600; color: #fff; }
.aside-card--contact .check-list .icon { color: var(--action); }
.aside-card--contact .check-list a { font-weight: 700; color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
.aside-card--contact .check-list a:hover { color: var(--action); text-decoration: underline; }
.clients .section-head { margin-bottom: clamp(24px, 3vw, 40px); }
.clients .logos { padding-top: 0; }

/* Поле за попълване в чернова (премахва се при публикуване) */
.ph {
  padding: 1px 6px; border-radius: 4px;
  background: #FFE58A; color: #5C4200; font-weight: 700;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* 22. Адаптивност
   ========================================================================== */
/* Едноколонна основа: minmax(0, 1fr) пречи на скролиращите ленти (отзиви, табове, таблици)
   да разширяват колоната на мобилни устройства. */
@media (max-width: 1023px) {
  .hero__grid, .reviews__grid, .guide__layout, .faq__grid, .lawyer__grid, .why__grid,
  .page-hero__grid, .split, .included__layout, .pricing, .form-block__grid, .article-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 899px) {
  .calc, .fx, .checklist { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1179px) {
  .nav { display: none; }
  .burger { display: grid; }
}
@media (max-width: 1100px) {
  .ledger__row { grid-template-columns: 170px minmax(0, 1fr) 170px; gap: 24px 28px; }
  .ledger__meta { grid-column: 2; grid-row: 2; display: flex; flex-wrap: wrap; gap: 8px 28px; }
  .ledger__price { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
}
@media (max-width: 899px) {
  .header-phone { display: none; }
  .float-chip--google { left: 12px; top: 12px; }
  .float-chip--talk { right: 12px; top: auto; bottom: 104px; }
  .steps { gap: 28px; }
  .step { padding: 0 0 0 66px; min-height: 46px; }
  .step::before { top: 46px; bottom: -28px; left: 22px; right: auto; width: 1.5px; height: auto; background: linear-gradient(180deg, var(--blue), rgba(67, 119, 233, .25)); transform-origin: top center; }
  .js .steps:not(.is-visible) .step::before { transform: scaleY(0); }
}
@media (max-width: 767px) {
  .topbar__note, .topbar__contacts { display: none; }
  .topbar__inner { justify-content: center; }
  .ledger__row { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding-block: 24px; }
  .ledger__media { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
  .ledger__media--icon { aspect-ratio: auto; height: 72px; width: 72px; border-radius: 16px; }
  .ledger__body { grid-column: 1 / -1; }
  .ledger__meta { grid-column: 1; grid-row: auto; display: grid; gap: 8px; }
  .ledger__price { grid-column: 2; grid-row: auto; align-self: end; }
  .lawyer__facts { grid-template-columns: 1fr; gap: 16px; }
  .lawyer__facts li { display: flex; align-items: baseline; gap: 14px; }
  .lawyer__fact-label { margin-top: 0; }
  .fx__partner { grid-template-columns: minmax(0, 1fr) 96px 44px; }
}
@media (max-width: 639px) {
  .header-cta { display: none; }
  .request__head { align-items: flex-start; }
  .request__ref { display: none; }
  .request__fields { grid-template-columns: 1fr; }
  .request__fees { grid-template-columns: 1fr 1fr; }
  .request__fees > div:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .request__submit { width: 100%; }
  .fx__inputs { grid-template-columns: 1fr; }
  .certificate { grid-template-columns: 1fr; justify-items: start; }
  .certificate__seal { width: 88px; height: 88px; }
  .cta-video__actions .btn { width: 100%; }
  .portrait { aspect-ratio: 4 / 4.4; }
  .table th, .table td { padding: 10px 12px; }
  .table--compact td { white-space: normal; }
}
@media (max-width: 379px) {
  .svc-picker { grid-template-columns: 1fr; }
  .brand img { width: 128px; }
}

/* 23. Печат (чеклист)
   ========================================================================== */
@media print {
  body.print-checklist * { visibility: hidden; }
  body.print-checklist #cheklist, body.print-checklist #cheklist * { visibility: visible; }
  body.print-checklist #cheklist { position: absolute; inset: 0 0 auto; padding: 0; border: 0; box-shadow: none; }
  body.print-checklist .checklist__actions, body.print-checklist #cheklist .seg { display: none; }
  .site-header, .topbar, .mobile-cta, .cookie { display: none !important; }
}
