/* ==========================================================================
   Обков за PVC дограма — основен stylesheet
   Палитра: графит · бяло · стомана/сребро · кобалт (единствен акцент)
   Шрифтове: Sofia Sans (текст) + Sofia Sans Condensed (заглавия)
   ========================================================================== */

:root {
  --graphite: #23272c;
  --graphite-2: #2d3238;
  --graphite-line: #3a4047;
  --steel: #8c949d;
  --silver: #d5dae0;
  --aluminium: #eef0f3;
  --white: #ffffff;
  --cobalt: #2150e8;
  --cobalt-dark: #1a3fbf;
  --cobalt-light: #8fa8ff;
  --text: #23272c;
  --text-2: #50575f;
  --on-dark: #eef0f3;
  --on-dark-2: #aeb5bc;
  --line: #dde1e6;

  --font-text: "Sofia Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Sofia Sans Condensed", "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --radius: 10px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; overflow-wrap: break-word; }
h1, h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.004em;
}
h1 { font-size: clamp(2.3rem, 1.4rem + 2.6vw, 3.9rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 1.35rem + 2.5vw, 3.4rem); line-height: 1.04; }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; }
strong, b { font-weight: 700; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
.sec--dark :focus-visible, .site-footer :focus-visible { outline-color: var(--cobalt-light); }
::selection { background: var(--cobalt); color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--graphite); color: #fff; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--section); }
.sec--alu { background: var(--aluminium); }
.sec--dark { background: var(--graphite); color: var(--on-dark); }
.sec--rule { border-top: 1px solid var(--line); }
.sec--compact { padding-block: clamp(56px, 7vw, 96px); }

.split { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split__head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}
.head { max-width: 50rem; margin-bottom: clamp(32px, 4vw, 56px); }
.head h2 + p, .split__head h2 + p { margin-top: 20px; }

.lead { font-size: clamp(1.125rem, 1rem + 0.45vw, 1.35rem); line-height: 1.5; color: var(--text-2); max-width: 40em; }
.sec--dark .lead { color: var(--on-dark-2); }
.muted { color: var(--text-2); }
.sec--dark .muted { color: var(--on-dark-2); }
.measure { max-width: 42em; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 1.6em; border-radius: 999px;
  font: 600 1.0625rem/1 var(--font-text); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--cobalt); color: #fff; }
.btn--primary:hover { background: var(--cobalt-dark); }
.btn--line { border-color: var(--text); color: var(--text); background: transparent; }
.btn--line:hover { background: var(--text); color: #fff; }
.sec--dark .btn--line { border-color: var(--on-dark); color: var(--on-dark); }
.sec--dark .btn--line:hover { background: var(--on-dark); color: var(--graphite); }
.btn--sm { min-height: 44px; padding: 0 1.25em; font-size: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.link {
  font-weight: 600; color: var(--cobalt); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.link:hover { text-decoration-thickness: 2px; }
.sec--dark .link { color: var(--cobalt-light); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand {
  display: flex; align-items: center; gap: 10px; margin-right: auto;
  text-decoration: none; font-weight: 700; font-size: 1.0625rem; line-height: 1.15;
}
.brand__mark { width: 30px; height: 30px; flex: none; }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; white-space: nowrap; padding: 10px 12px; border-radius: 999px;
  color: var(--text-2); font-weight: 500; font-size: 1rem; text-decoration: none;
}
.nav a:hover { color: var(--text); background: var(--aluminium); }
.nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline; text-decoration-color: var(--cobalt);
  text-decoration-thickness: 2px; text-underline-offset: 8px;
}
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-right: -8px; border: 0; border-radius: 999px;
  background: transparent; color: var(--text); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.is-open .nav-toggle__bars { background: transparent; }
.is-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.is-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1199px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: fixed; left: 0; right: 0; top: var(--header-h);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 28px;
  }
  .is-open .nav { display: block; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav a { padding: 16px 2px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; color: var(--text); }
  .nav a:hover { background: transparent; color: var(--cobalt); }
  .no-js .nav { display: block; position: static; padding: 0 0 12px; border: 0; }
  .no-js .site-header__inner { flex-wrap: wrap; }
  .no-js .nav-toggle { display: none; }
}
@media (max-width: 639px) { .header-call { display: none; } }

/* ---------- Hero (начална страница) ---------- */
.hero { padding: clamp(32px, 5vw, 72px) 0 clamp(40px, 5vw, 72px); }
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1040px) { .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 72px; } }
.hero h1 { font-size: clamp(2.6rem, 1.3rem + 3.2vw, 4.4rem); line-height: 0.98; }
.hero__sub { margin-top: 28px; font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); line-height: 1.45; color: var(--text-2); max-width: 32em; }
.hero__note { margin-top: 22px; font-size: 0.975rem; color: var(--text-2); }

/* Технически лист с чертеж */
.sheet {
  --grid: rgba(35, 39, 44, 0.05);
  position: relative; margin: 0;
  background-color: #fff;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(14px, 2.4vw, 28px);
}
.sheet__title {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 0.875rem; color: var(--text-2); margin-bottom: 8px;
}
.sheet__drawing { width: 100%; max-width: 520px; margin-inline: auto; }
.legend {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px 20px;
  list-style: none; margin: 16px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line);
  font-size: 0.9375rem; line-height: 1.35;
}
.legend li { display: flex; gap: 10px; align-items: flex-start; }
.legend b { display: block; font-weight: 700; }
.legend b + span { color: var(--text-2); font-size: 0.875rem; }
.pin {
  flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-top: 1px;
  border-radius: 50%; background: var(--cobalt); color: #fff; font-size: 0.75rem; font-weight: 700; line-height: 1;
}

/* ---------- Три основни услуги ---------- */
.trio { display: grid; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trio__item { position: relative; padding: 36px 0 40px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .trio__item { padding: 44px 36px 48px; border-bottom: 0; border-left: 1px solid var(--line); }
  .trio__item:first-child { border-left: 0; padding-left: 0; }
  .trio__item:last-child { padding-right: 0; }
}
.trio__num {
  font-family: var(--font-display); font-weight: 800; font-size: 3.25rem; line-height: 1;
  background: linear-gradient(180deg, #c9cfd6 0%, #8c949d 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.trio__art { height: 92px; width: auto; margin: 28px 0 26px; color: var(--text); }
.trio__item h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; line-height: 1.05; }
.trio__item h3 a { text-decoration: none; }
.trio__item h3 a::after { content: ""; position: absolute; inset: 0; }
.trio__item p { margin-top: 12px; color: var(--text-2); }
.trio__more { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--cobalt); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.trio__item:hover h3 a { color: var(--cobalt); }
.trio__item:hover .trio__more { text-decoration-thickness: 2px; }
.also { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; margin-top: 28px; font-size: 1rem; }
.also span { color: var(--text-2); }

/* ---------- Маркирани списъци ---------- */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 13px 0 13px 34px; border-top: 1px solid var(--line); }
.ticks li::before {
  content: ""; position: absolute; left: 3px; top: 21px; width: 14px; height: 7px;
  border-left: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt); transform: rotate(-45deg);
}
.ticks--minus li::before { top: 26px; width: 14px; height: 0; border-left: 0; border-bottom-color: var(--steel); transform: none; }
.sec--dark .ticks li { border-top-color: var(--graphite-line); }
.sec--dark .ticks li::before { border-color: var(--cobalt-light); }
.pair { display: grid; gap: 32px; margin-top: 40px; }
@media (min-width: 720px) { .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pair h3 { margin-bottom: 14px; }

.statement { font-size: clamp(2.2rem, 1.3rem + 3vw, 4.2rem); line-height: 1; max-width: 16em; }
.statement-body { display: grid; gap: 40px; margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 960px) { .statement-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } }
.statement-body .pair { margin-top: 0; grid-template-columns: 1fr; gap: 36px; }
.statement span { display: block; }

/* ---------- MACO: части ---------- */
.parts {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1px; background: var(--graphite-line); border: 1px solid var(--graphite-line);
  border-radius: var(--radius); overflow: hidden; margin-top: 56px;
}
.part { background: var(--graphite); padding: 28px 28px 32px; }
.part__art { width: 132px; height: 88px; color: var(--silver); margin-bottom: 20px; }
.part h3 { color: #fff; font-size: 1.1875rem; }
.part p { color: var(--on-dark-2); margin-top: 8px; font-size: 1rem; line-height: 1.55; }
.sec--alu .parts, .parts--light { background: var(--line); border-color: var(--line); }
.parts--light .part { background: #fff; }
.parts--light .part h3 { color: var(--text); }
.parts--light .part p { color: var(--text-2); }
.parts--light .part__art { color: var(--text); }

.qualities { display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 24px; }
.qual-title { margin-top: 64px; color: #fff; font-size: 1.375rem; }
.qualities h4 { margin: 0; font-size: 1.125rem; color: #fff; padding-top: 16px; border-top: 2px solid var(--cobalt-light); }
.qualities p { margin-top: 10px; color: var(--on-dark-2); font-size: 1rem; }

/* ---------- Преди / след ---------- */
.ba { display: grid; gap: 16px; }
@media (min-width: 900px) { .ba { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: stretch; } }
.ba__panel { border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.ba__panel--old { background: var(--aluminium); }
.ba__panel--new { background: var(--graphite); color: var(--on-dark); }
.ba__art { width: 100%; max-width: 260px; height: auto; margin: 0 auto 28px; }
.ba__panel h3 { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1.05; }
.ba__list { list-style: none; margin: 20px 0 0; padding: 0; }
.ba__list li { padding: 13px 0; border-top: 1px solid var(--line); }
.ba__panel--new .ba__list li { border-top-color: var(--graphite-line); }
.ba__list b { display: block; }
.ba__list span { color: var(--text-2); font-size: 1rem; }
.ba__panel--new .ba__list span { color: var(--on-dark-2); }
.ba__arrow { display: grid; place-items: center; color: var(--steel); }
.ba__arrow svg { width: 40px; height: 40px; transform: rotate(90deg); }
@media (min-width: 900px) { .ba__arrow svg { transform: none; } }

/* ---------- Положения на дръжката ---------- */
.axes { display: grid; gap: 44px; }
.axis__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.axis__head h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; }
.axis__head p { margin: 0; color: var(--text-2); }
.states { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 640px) { .states { gap: 12px; } }
.state { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 20px; }
.state__handle { width: 100%; max-width: 190px; height: auto; margin: 0 auto; color: var(--text); }
.state__foot { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 16px; }
.state__win { width: 46px; height: 46px; flex: none; color: var(--text); }
.state__foot b { display: block; font-size: 1.125rem; line-height: 1.2; }
.state__foot span { color: var(--text-2); font-size: 0.9375rem; }
.state--new { border-color: var(--cobalt); box-shadow: inset 0 0 0 1px var(--cobalt); }
.state--none {
  display: grid; place-items: center; text-align: center; min-height: 120px;
  background: transparent; border-style: dashed; border-color: #c3c9d0; color: var(--text-2);
}
@media (max-width: 639px) {
  .state { padding: 10px 8px 12px; }
  .state__foot { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 10px; padding-top: 10px; }
  .state__win { width: 30px; height: 30px; }
  .state__foot b { font-size: 0.875rem; }
  .state__foot span { font-size: 0.8125rem; }
  .state--none { min-height: 0; padding: 8px; font-size: 0.8125rem; }
  .axis__head h3 { font-size: 1.5rem; }
}
.note { margin-top: 32px; padding: 2px 0 2px 18px; border-left: 2px solid var(--cobalt); color: var(--text-2); max-width: 46em; }

/* ---------- Security ---------- */
.security { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .security { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } }
.points { list-style: none; margin: 28px 0 0; padding: 0; }
.points li { padding: 16px 0; border-top: 1px solid var(--line); }
.sec--dark .points li { border-top-color: var(--graphite-line); }
.points b { display: block; }
.sec--dark .points b { color: #fff; }
.points span { color: var(--text-2); }
.sec--dark .points span { color: var(--on-dark-2); }
.caveat { margin-top: 28px; padding-left: 16px; border-left: 2px solid var(--cobalt); color: var(--text-2); font-size: 1rem; }
.sec--dark .caveat { border-left-color: var(--cobalt-light); color: var(--on-dark-2); }

.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius); background: var(--graphite-2); }
.figure figcaption { margin-top: 12px; font-size: 0.9375rem; color: var(--text-2); }
.sec--dark .figure figcaption { color: var(--on-dark-2); }

.mech { display: grid; gap: 12px; margin-top: 8px; }
@media (min-width: 720px) { .mech { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mech__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.mech__item svg { width: 100%; max-width: 220px; height: auto; margin: 0 auto 16px; color: var(--text); }
.mech__item h3 { font-size: 1.125rem; }
.mech__item p { margin-top: 6px; color: var(--text-2); font-size: 1rem; }
.mech__n { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 50%; border: 2px solid var(--graphite); font-size: 0.8125rem; font-weight: 700; vertical-align: 2px; }

/* ---------- Квартали ---------- */
.districts { list-style: none; margin: 32px 0 0; padding: 0; columns: 4 140px; column-gap: 32px; }
.districts li { padding: 9px 0; border-top: 1px solid var(--line); break-inside: avoid; }

/* ---------- Процес (шина със заключващи точки) ---------- */
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 28px; position: relative; }
.step { position: relative; padding-left: 52px; }
.step__n {
  position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: #fff; border: 2px solid var(--graphite); font-weight: 700; font-size: 0.875rem;
}
.step h3 { font-size: 1.1875rem; }
.step p { margin-top: 8px; color: var(--text-2); font-size: 1rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 58px; }
  .steps::before {
    content: ""; position: absolute; top: 14px; left: 0; right: 0; height: 7px; border-radius: 4px;
    background: linear-gradient(180deg, #f1f3f5 0%, #b4bbc3 55%, #8c949d 100%);
    box-shadow: inset 0 0 0 1px rgba(35, 39, 44, 0.12);
  }
  .step { padding-left: 0; }
  .step__n { top: -58px; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.125rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px; margin-top: 6px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--cobalt); }
.faq__a { padding: 0 0 26px; color: var(--text-2); max-width: 44em; }
.faq__a a { color: var(--text); text-underline-offset: 3px; }

/* ---------- CTA лента ---------- */
.cta-band { background: var(--aluminium); padding-block: clamp(64px, 8vw, 112px); }
.cta-band__inner { display: grid; gap: 28px; }
@media (min-width: 960px) { .cta-band__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 64px; } }
.cta-band p { margin-top: 18px; color: var(--text-2); max-width: 36em; }
.cta-band .actions { margin-top: 0; }
@media (min-width: 960px) { .cta-band .actions { justify-content: flex-end; } }

/* ---------- Вътрешни страници ---------- */
.page-hero { padding: clamp(24px, 3.5vw, 40px) 0 clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.page-hero__grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .page-hero__grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr); align-items: end; gap: 64px; } }
.page-hero h1 { margin-top: clamp(28px, 4vw, 56px); }
.page-hero .lead { margin-top: 24px; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; font-size: 0.9375rem; color: var(--text-2); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: #b7bec6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--text); }

.facts { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 24px; }
.facts__title { margin: 16px 0 4px; font-weight: 700; }
.facts dl { margin: 0; }
.facts dl div { display: grid; grid-template-columns: minmax(8em, 38%) 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--text-2); font-size: 0.9375rem; }
.facts dd { margin: 0; font-weight: 600; font-size: 1rem; }

.prose { max-width: 44em; }
.prose > * + * { margin-top: 1em; }
.prose h3 { margin-top: 2em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.45em; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--cobalt); }
.sec--dark .prose a:hover { color: var(--cobalt-light); }

.stack > * + * { margin-top: clamp(40px, 5vw, 64px); }

/* Таблици */
.table-wrap { overflow-x: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 1rem; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.table-wrap thead th { background: var(--aluminium); font-weight: 700; }
.table-wrap tbody th { font-weight: 600; color: var(--text-2); width: 30%; }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }

/* Симптом → услуга */
.router { border-top: 1px solid var(--line); }
.router a {
  display: grid; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
@media (min-width: 720px) { .router a { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: baseline; } }
.router b { font-weight: 600; }
.router span { color: var(--cobalt); font-weight: 600; }
.router a:hover b { color: var(--cobalt); }

/* Свързани услуги */
.related { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .related { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; gap: 0 32px; } }
.related a { display: block; padding: 20px 0 22px; border-bottom: 1px solid var(--line); text-decoration: none; }
@media (min-width: 800px) { .related a { border-bottom: 0; border-top: 2px solid var(--graphite); } }
.related b { display: block; font-size: 1.1875rem; }
.related span { display: block; margin-top: 6px; color: var(--text-2); font-size: 1rem; }
.related a:hover b { color: var(--cobalt); }

/* Adjust icons (реглаж) */
.adjust { display: grid; gap: 12px; }
@media (min-width: 720px) { .adjust { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Контакти / форма ---------- */
.contact-grid { display: grid; gap: 56px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 80px; } }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: grid; grid-template-columns: minmax(7.5em, 34%) 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact-list span { color: var(--text-2); }
.contact-list a { text-decoration: none; font-weight: 700; }
.contact-list a:hover { color: var(--cobalt); }
.contact-list .big { font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; line-height: 1.1; }

.form { display: grid; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 1rem; }
.field small { color: var(--text-2); font-size: 0.875rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 13px 15px; background: #fff; border: 1.5px solid #c3c9d0; border-radius: 8px;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(33, 80, 232, 0.18);
}
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; color: var(--text-2); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--cobalt); }
.check a { color: var(--text); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 16px 20px; border-radius: 8px; margin-bottom: 20px; font-weight: 600; }
.form-status:target { display: block; }
.form-status--ok { background: #e7edff; color: #1a3fbf; }
.form-status--err { background: #fdeceb; color: #9f1f12; }

/* ---------- Footer ---------- */
.site-footer { background: var(--graphite); color: var(--on-dark-2); padding-top: 72px; font-size: 0.9875rem; }
.footer__grid { display: grid; gap: 40px 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.35fr 1fr 1fr 1.2fr; } }
.footer__brand .brand { color: #fff; margin-bottom: 16px; }
.footer__brand p { max-width: 24em; }
.footer__title { font-family: var(--font-text); font-size: 1rem; font-weight: 700; color: #fff; margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between;
  margin-top: 56px; padding: 24px 0 32px; border-top: 1px solid var(--graphite-line); font-size: 0.9375rem;
}
.footer__bottom p { margin: 0; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- Мобилен CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.mobile-cta .btn { min-height: 50px; padding: 0 12px; font-size: 1rem; }
@media (min-width: 900px) { .mobile-cta { display: none; } }
@media (max-width: 899px) { body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); } }


/* ---------- Допълнения ---------- */
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.brand__handle { fill: var(--cobalt); }
.site-footer .brand__handle { fill: var(--cobalt-light); }

.olist { list-style: none; counter-reset: o; margin: 0; padding: 0; }
.olist li { counter-increment: o; position: relative; padding: 16px 0 16px 54px; border-top: 1px solid var(--line); }
.olist li::before {
  content: counter(o); position: absolute; left: 0; top: 14px; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--graphite); background: #fff;
  font-weight: 700; font-size: 0.875rem;
}
.olist b { display: block; }
.olist a { text-underline-offset: 3px; }

.head-art { margin-top: 40px; max-width: 320px; }
.head-art .trio__art { width: 100%; height: auto; margin: 0; }

.part--link { position: relative; }
.part--link h3 a { text-decoration: none; }
.part--link h3 a::after { content: ""; position: absolute; inset: 0; }
.part--link:hover h3 a { color: var(--cobalt); }
.svc .part__art, .svc .trio__art { width: auto; height: 80px; max-width: 100%; margin: 0 0 22px; }

.prose h2 { font-family: var(--font-text); font-size: 1.375rem; font-weight: 700; line-height: 1.3; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose p a, .caveat a { text-underline-offset: 3px; }


.brand__name { max-width: 10.5em; text-wrap: balance; }
.form__note { margin: -4px 0 0; font-size: 0.9375rem; color: var(--text-2); }

.contact-list a, .contact-list div, .site-footer a { overflow-wrap: anywhere; }

/* ---------- 404 ---------- */
.notfound { min-height: 50vh; display: grid; align-content: center; }
.notfound > .wrap { width: 100%; }

/* ---------- Намалено движение ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Grid деца не разпъват колоната (таблици, дълги думи) ---------- */
.split > *, .security > *, .contact-grid > *, .hero__grid > *, .page-hero__grid > *,
.statement-body > *, .cta-band__inner > *, .ba > *, .axes > *, .pair > *, .form__row > * { min-width: 0; }
@media (max-width: 420px) {
  .facts dl div, .contact-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .facts dd, .contact-list a, .contact-list div { overflow-wrap: anywhere; }
}
