/*  Тема: стъкло и нощна тема (остатъчните правила).  */
dialog::backdrop {
  background: var(--backdrop);
  backdrop-filter: blur(4px);
}
html[data-theme="night"] {
  color-scheme: dark;
}
html[data-theme="night"] header {
  border-color: var(--line);
}
html[data-theme="night"] .brand-image {
  background: var(--paper);
  border-radius: var(--radius-3);
}
html[data-theme="night"] .brand-image img {
  mix-blend-mode: normal;
}
html[data-theme="night"] .bag span {
  background: var(--yellow);
  color: var(--ink-on-light);
}
html[data-theme="night"] .hero-copy > p,
html[data-theme="night"] .section-heading p,
html[data-theme="night"] .experience-heading > p {
  color: var(--muted);
}
html[data-theme="night"] h1 em {
  color: var(--ink);
}
html[data-theme="night"] h1 em:after {
  height: 5px;
  bottom: -2px;
}
html[data-theme="night"] .hero .eyebrow {
  color: var(--magenta-text);
}
html[data-theme="night"] .secondary-link,
html[data-theme="night"] .finder-link,
html[data-theme="night"] .product-training {
  color: var(--magenta-text);
}
html[data-theme="night"] .hero-art {
  color: var(--ink-on-light);
}
html[data-theme="night"] .hero-art .art-bottom {
  color: var(--ink-on-light);
}
html[data-theme="night"] .hero-art a:focus-visible,
html[data-theme="night"] .hero-art button:focus-visible {
  outline-color: var(--ink-on-light);
}
html[data-theme="night"] .ticker {
  color: var(--ink-on-light);
}
html[data-theme="night"] .why-ignis,
html[data-theme="night"] .case-studies,
html[data-theme="night"] .project-section {
  background: var(--nav);
  color: var(--ink);
}
html[data-theme="night"] .why-heading h2,
html[data-theme="night"] .positioning h3 {
  color: var(--ink);
}
html[data-theme="night"] .why-heading p,
html[data-theme="night"] .positioning p,
html[data-theme="night"] .positioning small {
  color: var(--muted);
}
html[data-theme="night"] .value-card,
html[data-theme="night"] .equipment-card,
html[data-theme="night"] .rig-card,
html[data-theme="night"] .docs-grid article,
html[data-theme="night"] .support-grid article,
html[data-theme="night"] .purchase-grid article {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme="night"] .value-card.primary {
  background: var(--surface-2);
  border-color: var(--line);
}
html[data-theme="night"] .value-card p,
html[data-theme="night"] .value-card.primary p,
html[data-theme="night"] .value-card a,
html[data-theme="night"] .value-card button {
  color: var(--muted);
}
html[data-theme="night"] .equipment-card p,
html[data-theme="night"] .equipment-card > span,
html[data-theme="night"] .rig-note,
html[data-theme="night"] .rig-subtitle,
html[data-theme="night"] .rig-card li small,
html[data-theme="night"] .docs-grid p,
html[data-theme="night"] .support-grid p,
html[data-theme="night"] .purchase-grid p {
  color: var(--muted);
}
html[data-theme="night"] .finder-shell,
html[data-theme="night"] .effect-content,
html[data-theme="night"] .transport-layout,
html[data-theme="night"] .story-note {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme="night"] .use-paths {
  background: transparent;
  border-color: var(--line);
}
html[data-theme="night"] .use-paths > div > span,
html[data-theme="night"] .effect-content p,
html[data-theme="night"] .transport-info > p,
html[data-theme="night"] .transport-note,
html[data-theme="night"] .story-layout p,
html[data-theme="night"] .story-note p,
html[data-theme="night"] .case-await p {
  color: var(--muted);
}
html[data-theme="night"] .use-buttons button,
html[data-theme="night"] .effect-tabs button,
html[data-theme="night"] .case-list > span {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme="night"] .effect-tabs button[aria-pressed="true"],
html[data-theme="night"] .filters button.active {
  background: var(--cyan);
  color: var(--ink-on-light);
  border-color: var(--cyan);
}
html[data-theme="night"] .product-card {
  background: var(--surface);
  border-color: var(--line);
}
html[data-theme="night"] .product-type,
html[data-theme="night"] .product-card > p,
html[data-theme="night"] .product-bottom > span,
html[data-theme="night"] .compare-choice {
  color: var(--muted);
}
html[data-theme="night"] .brand-row img {
  border-radius: var(--radius-2);
}
html[data-theme="night"] .filters button {
  border-color: var(--line);
  color: var(--ink);
}
html[data-theme="night"] .catalog-help,
html[data-theme="night"] .catalog-help a,
html[data-theme="night"] .catalog-summary,
html[data-theme="night"] .brand-filter {
  color: var(--muted);
}
html[data-theme="night"] .product-bottom,
html[data-theme="night"] .resource-fold,
html[data-theme="night"] .rig-card li,
html[data-theme="night"] .rig-card ul {
  border-color: var(--line);
}
html[data-theme="night"] input:not([type="range"]):not([type="checkbox"]),
html[data-theme="night"] select,
html[data-theme="night"] textarea {
  background: var(--nav);
  color: var(--ink);
  border-color: var(--line-strong);
}
html[data-theme="night"] input::placeholder,
html[data-theme="night"] textarea::placeholder {
  color: var(--muted);
}
html[data-theme="night"] .project-form label,
html[data-theme="night"] .finder-form label,
html[data-theme="night"] .finder-form label small,
html[data-theme="night"] .project-form small {
  color: var(--muted);
}
html[data-theme="night"] dialog {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
html[data-theme="night"] dialog::backdrop {
  background: var(--backdrop);
}
html[data-theme="night"] .spec-list li {
  border-color: var(--line);
}
html[data-theme="night"] .product-decision,
html[data-theme="night"] .inquiry-content {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme="night"] .product-decision small,
html[data-theme="night"] .product-decision p,
html[data-theme="night"] .product-kit p,
html[data-theme="night"] .product-kit li,
html[data-theme="night"] .demo-note {
  color: var(--muted);
}
html[data-theme="night"] .comparison-scroll thead th,
html[data-theme="night"] .comparison-scroll tbody tr:nth-child(even) {
  background: var(--surface-2);
}
html[data-theme="night"] .comparison-scroll th,
html[data-theme="night"] .comparison-scroll td {
  border-color: var(--line);
}
html[data-theme="night"] .compare-bar,
html[data-theme="night"] .mobile-dock {
  background: var(--nav);
  color: var(--ink);
}
html[data-theme="night"] .selection-actions .secondary-action {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme="night"] footer {
  border-color: var(--line);
}
html[data-theme="night"] .yellow,
html[data-theme="night"] .add {
  color: var(--ink-on-light);
}
html[data-theme="night"] .project-form button.yellow {
  color: var(--ink-on-light);
}
/* Night theme contrast corrections and anthracite surfaces. */
html[data-theme="night"] body {
  isolation: isolate;
}
html[data-theme="night"] header,
html[data-theme="night"] footer {
  background: var(--nav);
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme="night"] header nav a,
html[data-theme="night"] .mobile-catalog,
html[data-theme="night"] footer p,
html[data-theme="night"] footer > span {
  color: var(--ink);
}
html[data-theme="night"] .bag,
html[data-theme="night"] .theme-toggle {
  color: var(--ink);
}
html[data-theme="night"] .manifesto {
  background: var(--nav);
}
html[data-theme="night"] #toast {
  background: var(--ink);
}
html[data-theme="night"] .search,
html[data-theme="night"] .filters button:not(.active) {
  background: var(--surface);
  color: var(--ink);
}
html[data-theme="night"] .result-count,
html[data-theme="night"] .feature-explanation,
html[data-theme="night"] .guide-grid small,
html[data-theme="night"] .comparison-scroll caption,
html[data-theme="night"] .comparison-scroll tbody th,
html[data-theme="night"] .transport-facts small,
html[data-theme="night"] .branding-note,
html[data-theme="night"] .brand-row > small {
  color: var(--muted);
}
html[data-theme="night"] #outdoor-only {
  color: var(--ink);
  border-color: var(--line-strong);
}
html[data-theme="night"] #outdoor-only[aria-pressed="true"] {
  color: var(--ink-on-light);
}
html[data-theme="night"] #reset-filters,
html[data-theme="night"] #empty-reset,
html[data-theme="night"] .motion-toggle {
  color: var(--muted);
}
html[data-theme="night"] .finder-results-grid article {
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme="night"] .finder-results-grid p,
html[data-theme="night"] .finder-results-grid small {
  color: var(--muted);
}
html[data-theme="night"] .compare-choice[aria-pressed="true"] {
  color: var(--yellow);
}
html[data-theme="night"] .close,
html[data-theme="night"] .experience-close,
html[data-theme="night"] .product-details,
html[data-theme="night"] .quantity button,
html[data-theme="night"] .remove {
  color: var(--ink);
}
html[data-theme="night"] .ip-info {
  border-color: var(--line);
  color: var(--ink);
}
html[data-theme="night"] .ip-info p,
html[data-theme="night"] .ip-info strong {
  color: var(--muted);
}
html[data-theme="night"] .effect-content .support-state {
  color: var(--ink);
}
html[data-theme="night"] .training-section,
html[data-theme="night"] .budget-section,
html[data-theme="night"] .why-ignis,
html[data-theme="night"] .project-section,
html[data-theme="night"] .case-studies {
  background: var(--nav);
}
html[data-theme="night"] .value-card,
html[data-theme="night"] .equipment-card,
html[data-theme="night"] .rig-card,
html[data-theme="night"] .docs-grid article,
html[data-theme="night"] .support-grid article,
html[data-theme="night"] .purchase-grid article,
html[data-theme="night"] .product-card,
html[data-theme="night"] .finder-shell,
html[data-theme="night"] .transport-layout,
html[data-theme="night"] .effect-content {
  background: var(--surface);
}
html[data-theme="night"] .quick-feature,
html[data-theme="night"] .story-note {
  background: var(--surface-2);
}
html[data-theme="night"] .site-preferences select {
  background: var(--nav);
  color: var(--ink);
  border-color: var(--line-strong);
}
html[data-theme="night"] .site-preferences {
  border-color: var(--line);
}
html[data-theme="night"] .brand-image .brand-logo-day {
  display: none;
}
html[data-theme="night"] .brand-image .brand-logo-night {
  display: block !important;
}
html[data-theme="night"] header .brand-image,
html[data-theme="night"] footer .brand-image {
  background: transparent;
  mix-blend-mode: normal;
}
html[data-theme="night"] .brand-image .brand-logo-night {
  mix-blend-mode: normal;
}

/* P1: логото в хедъра на нощна тема – без multiply (по-висока специфичност от sections.css) */
html[data-theme="night"] .logo.horizontal .brand-image,
html[data-theme="night"] .footer-horizontal .brand-image {
  mix-blend-mode: normal;
  background: transparent;
}
html[data-theme="night"] .product-card,
html[data-theme="night"] .equipment-card,
html[data-theme="night"] .value-card,
html[data-theme="night"] .rig-card,
html[data-theme="night"] .support-grid article,
html[data-theme="night"] .docs-grid article,
html[data-theme="night"] .purchase-grid article,
html[data-theme="night"] .training-grid article {
  background-color: var(--surface);
  border-color: var(--hairline);
  box-shadow:
    0 9px 28px var(--shadow-3),
    0 2px 6px var(--shadow-2),
    inset 0 1px 0 var(--veil);
  border-radius: var(--radius-8);
}
html[data-theme="night"] .training-grid article {
  padding: 23px;
  border: 1px solid var(--hairline);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html[data-theme="night"] .product-card,
  html[data-theme="night"] .equipment-card,
  html[data-theme="night"] .value-card,
  html[data-theme="night"] .rig-card,
  html[data-theme="night"] .support-grid article,
  html[data-theme="night"] .docs-grid article,
  html[data-theme="night"] .purchase-grid article,
  html[data-theme="night"] .training-grid article {
    background-color: var(--glass);
    background-image: linear-gradient(145deg, transparent, transparent 55%);
    backdrop-filter: blur(20px) saturate(110%);
    -webkit-backdrop-filter: blur(20px) saturate(110%);
  }
  html[data-theme="night"] .training-section,
  html[data-theme="night"] .why-ignis,
  html[data-theme="night"] .case-studies,
  html[data-theme="night"] .project-section {
    background: var(--glass);
  }
  html[data-theme="night"] .value-card.primary {
    background-color: var(--glass);
  }
}
@media (max-width: 600px) {
  html[data-theme="night"] .product-card,
  html[data-theme="night"] .equipment-card,
  html[data-theme="night"] .value-card,
  html[data-theme="night"] .rig-card,
  html[data-theme="night"] .support-grid article,
  html[data-theme="night"] .docs-grid article,
  html[data-theme="night"] .purchase-grid article,
  html[data-theme="night"] .training-grid article {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  /* Frosted panels and fields match the cards; text and photography remain opaque. */
  html[data-theme="night"] .finder-shell,
  html[data-theme="night"] .effect-content,
  html[data-theme="night"] .transport-layout,
  html[data-theme="night"] .story-note,
  html[data-theme="night"] .ip-info,
  html[data-theme="night"] .product-decision,
  html[data-theme="night"] .inquiry-content {
    background: var(--glass);
    background-image: linear-gradient(145deg, transparent, transparent 65%);
    backdrop-filter: blur(20px) saturate(110%);
    -webkit-backdrop-filter: blur(20px) saturate(110%);
    border-color: var(--hairline);
    box-shadow:
      0 7px 22px var(--shadow-2),
      inset 0 1px 0 var(--veil);
  }
  html[data-theme="night"] .budget-section {
    background: var(--glass);
  }
  html[data-theme="night"] .quick-feature,
  html[data-theme="night"] .case-list > span,
  html[data-theme="night"] .training-details {
    background: var(--glass);
    border-color: var(--hairline);
  }
  html[data-theme="night"] input:not([type="range"]):not([type="checkbox"]),
  html[data-theme="night"] select,
  html[data-theme="night"] textarea,
  html[data-theme="night"] .search {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: var(--line-strong);
  }
  html[data-theme="night"] input:focus-visible,
  html[data-theme="night"] select:focus-visible,
  html[data-theme="night"] textarea:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
  }
}
@media (max-width: 600px) {
  html[data-theme="night"] .finder-shell,
  html[data-theme="night"] .effect-content,
  html[data-theme="night"] .transport-layout,
  html[data-theme="night"] .story-note,
  html[data-theme="night"] .ip-info,
  html[data-theme="night"] .product-decision,
  html[data-theme="night"] .inquiry-content {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}
/* Product photo labels and transparent night branding. */
html[data-theme="night"] .product-image .tag {
  color: var(--ink);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
html[data-theme="night"] .brand-row img {
  background: transparent;
  mix-blend-mode: normal;
}
html[data-theme="night"] .brand-row:has(.brand-logo-night) .brand-logo-day {
  display: none;
}
html[data-theme="night"] .brand-row .brand-logo-night {
  display: block !important;
}
html[data-theme="night"] .brand-row > strong {
  color: var(--ink);
}
html[data-theme="night"] .training-section,
html[data-theme="night"] .why-ignis,
html[data-theme="night"] .case-studies,
html[data-theme="night"] .project-section,
html[data-theme="night"] .budget-section,
html[data-theme="night"] .manifesto {
  box-shadow:
    0 -14px 32px -22px var(--shadow-3),
    0 18px 36px -26px var(--shadow-3);
  background-image: linear-gradient(180deg, transparent, transparent 60px, transparent calc(100% - 60px), var(--shadow-1));
}
html[data-theme="night"] .training-section:after,
html[data-theme="night"] .why-ignis:after,
html[data-theme="night"] .case-studies:after,
html[data-theme="night"] .project-section:after,
html[data-theme="night"] .budget-section:after {
  background: linear-gradient(90deg, transparent, var(--halo-c) 20%, var(--halo-m) 50%, var(--halo-y) 80%, transparent);
}
@media (max-width: 600px) {
  html[data-theme="night"] .training-section,
  html[data-theme="night"] .why-ignis,
  html[data-theme="night"] .case-studies,
  html[data-theme="night"] .project-section,
  html[data-theme="night"] .budget-section {
    box-shadow:
      0 -10px 24px -18px var(--shadow-3),
      0 14px 28px -22px var(--shadow-3);
  }
}
/* Day counterpart: frosted light surfaces, soft black shadows and subtle CMY atmosphere. */
html:not([data-theme="night"]) body {
  isolation: isolate;
  background: var(--bg);
}
/* Ореоли на фона (VIS-CMY-BG „AB“): три fixed слоя зад съдържанието – C: body:before, M: body:after, Y: html:before.
   Позицията тук е началната (и крайната при спряно движение); плаването е в motion.css. Градиентите са ellipse closest-side → слоят е кръгъл ореол. */
html:before,
body:before,
body:after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 100vw;
  height: 90vh;
  pointer-events: none;
  /* Статична непрозрачност = одобрената средна сила; при движение я води анимацията (keyframes в motion.css), при спряно движение остава тази (MOT-01) */
  opacity: 0.9;
}
body:before {
  left: calc(88% - 50vw);
  top: calc(18% - 45vh);
  background: radial-gradient(closest-side, var(--halo-move-c), transparent);
}
body:after {
  left: calc(8% - 50vw);
  top: calc(55% - 45vh);
  background: radial-gradient(closest-side, var(--halo-move-m), transparent);
}
html:before {
  left: calc(72% - 50vw);
  top: calc(92% - 45vh);
  background: radial-gradient(closest-side, var(--halo-move-y), transparent);
}
@media (max-width: 600px) {
  /* По-малко и по-слабо на телефон: два ореола, по-широки (екранът е тесен) */
  html:before {
    display: none;
  }
  html:before,
  body:before,
  body:after {
    width: 150vw;
    opacity: 0.65;
  }
  body:before {
    left: calc(88% - 75vw);
  }
  body:after {
    left: calc(8% - 75vw);
  }
}
/* Печат: без ореоли (MOT-05) */
@media print {
  html:before,
  body:before,
  body:after {
    display: none;
  }
}
html:not([data-theme="night"]) .product-card,
html:not([data-theme="night"]) .equipment-card,
html:not([data-theme="night"]) .value-card,
html:not([data-theme="night"]) .rig-card,
html:not([data-theme="night"]) .support-grid article,
html:not([data-theme="night"]) .docs-grid article,
html:not([data-theme="night"]) .purchase-grid article,
html:not([data-theme="night"]) .training-grid article {
  box-shadow:
    0 7px 22px var(--shadow-1),
    0 1px 4px var(--shadow-1),
    inset 0 1px 0 var(--veil);
  border-radius: var(--radius-8);
}
html:not([data-theme="night"]) .product-image .tag {
  background: var(--glass-strong);
  color: var(--ink);
  border: 1px solid var(--hairline);
}
html:not([data-theme="night"]) .brand-row img {
  background: transparent;
  mix-blend-mode: normal;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html:not([data-theme="night"]) .product-card,
  html:not([data-theme="night"]) .rig-card,
  html:not([data-theme="night"]) .support-grid article,
  html:not([data-theme="night"]) .docs-grid article,
  html:not([data-theme="night"]) .purchase-grid article,
  html:not([data-theme="night"]) .value-card {
    background: var(--glass);
    background-image: linear-gradient(145deg, var(--veil), transparent 65%);
    backdrop-filter: blur(20px) saturate(110%);
    -webkit-backdrop-filter: blur(20px) saturate(110%);
  }
  html:not([data-theme="night"]) .equipment-card {
    backdrop-filter: blur(20px) saturate(110%);
    -webkit-backdrop-filter: blur(20px) saturate(110%);
  }
  html:not([data-theme="night"]) .value-card.primary {
    background: var(--tint-c);
  }
  html:not([data-theme="night"]) .finder-shell,
  html:not([data-theme="night"]) .effect-content,
  html:not([data-theme="night"]) .transport-layout,
  html:not([data-theme="night"]) .story-note,
  html:not([data-theme="night"]) .ip-info,
  html:not([data-theme="night"]) .product-decision,
  html:not([data-theme="night"]) .inquiry-content {
    background: var(--surface-2);
    backdrop-filter: blur(20px) saturate(110%);
    -webkit-backdrop-filter: blur(20px) saturate(110%);
    box-shadow:
      0 6px 20px var(--shadow-1),
      inset 0 1px 0 var(--veil);
  }
  html:not([data-theme="night"]) .why-ignis,
  html:not([data-theme="night"]) .case-studies,
  html:not([data-theme="night"]) .project-section {
    background-color: var(--surface-2);
  }
  html:not([data-theme="night"]) input:not([type="range"]):not([type="checkbox"]),
  html:not([data-theme="night"]) select,
  html:not([data-theme="night"]) textarea,
  html:not([data-theme="night"]) .search {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  html:not([data-theme="night"]) .training-grid article {
    background: transparent;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 23px;
    border-radius: var(--radius-8);
  }
}
html:not([data-theme="night"]) .why-ignis,
html:not([data-theme="night"]) .case-studies,
html:not([data-theme="night"]) .project-section {
  background-image: linear-gradient(180deg, var(--veil), transparent 60px, transparent calc(100% - 60px), transparent);
}
html:not([data-theme="night"]) input:focus-visible,
html:not([data-theme="night"]) select:focus-visible,
html:not([data-theme="night"]) textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
@media (max-width: 600px) {
  html:not([data-theme="night"]) .product-card,
  html:not([data-theme="night"]) .equipment-card,
  html:not([data-theme="night"]) .value-card,
  html:not([data-theme="night"]) .rig-card,
  html:not([data-theme="night"]) .finder-shell,
  html:not([data-theme="night"]) .effect-content,
  html:not([data-theme="night"]) .transport-layout,
  html:not([data-theme="night"]) .training-grid article {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}
/* R-20 (вариант A): CMY е смесване, а не позиция. Всички карти имат един и същ кант C→M→Y, иконките са неутрални, а цветът не зависи от реда (и не се сменя при филтър). */
.product-card,
.equipment-card,
.rig-card,
.value-card,
.training-grid article {
  position: relative;
}
.product-card::before,
.equipment-card::before,
.rig-card::before,
.value-card::before,
.training-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--cmy-edge-w);
  background: var(--cmy-edge);
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  pointer-events: none;
  z-index: 2;
}
.product-image {
  background: radial-gradient(ellipse at 50% 40%, var(--paper), var(--pad));
}
.quick-feature .feature-icon,
.rig-icon,
.value-card .value-icon,
.value-card.primary .value-icon {
  color: var(--muted);
}
.training-grid article > span {
  color: var(--on-dark-muted);
}
.cmy-badge {
  position: absolute;
  left: 14px;
  bottom: 13px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-3);
  background: var(--glass-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
}
.cmy-badge::before {
  content: "";
  width: 14px;
  height: 8px;
  border-radius: 4px;
  background: var(--cmy-edge);
}
.detail-head .cmy-badge {
  position: static;
  margin: 0 0 14px;
}
/* R-21: по-чист hero и по-малко етикети. Главните букви са от CSS (в източника текстът е с нормални букви – важно за TR и EL, където lang на <html> дава правилните İ/Σ). */
.eyebrow,
.training-grid article > span,
.finder-form label small,
.guide-grid article > small,
.guide-head > span,
.hero-bottom span,
.product-decision > small {
  text-transform: uppercase;
}
/* R-25: заглавията вече са един ключ без <br>; пренасянето на реда е от CSS. */
:is(#configurations, #videos, #effects, #transport, #support, #about, #buying) .experience-heading h2,
.case-await h3 {
  text-wrap: balance;
}
/* hero-proof и „СЦЕНА. ЕМОЦИЯ. IGNIS.“ са тънка лента-разделител непосредствено под hero */
.hero-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding: 14px var(--edge);
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-strip .hero-proof {
  margin-top: 0;
}
.hero-strip .hero-bottom {
  width: auto;
  margin: 0;
  padding: 0;
}
.comparison-scroll th .cmy-badge {
  position: static;
  margin-top: 8px;
  width: fit-content;
}
/* QA-T1: лентата за сравнение на телефон – на цялата ширина, бутонът „Сравни“ не се смачква (всички езици) */
@media (max-width: 600px) {
  .compare-bar {
    left: 12px;
    right: 12px;
    transform: none;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 12px;
  }
  .compare-bar .button {
    white-space: nowrap;
    flex: 0 0 auto;
  }
}
/* R-31 – стъкло на мобилно (одобрено 12.10.2026): на ≤ 600 px повтарящите се повърхности са на плътната подложка (--surface), без backdrop-filter.
   Blur остава за header, долната лента, лентата за сравнение и фона на диалозите. */
@media (max-width: 600px) {
  html:root[data-theme] :is(.product-card, .equipment-card, .value-card, .value-card.primary, .rig-card, .support-grid article, .docs-grid article, .purchase-grid article, .training-grid article) {
    background-color: var(--surface);
    background-image: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  html:root[data-theme] :is(.finder-shell, .effect-content, .transport-layout, .story-note, .ip-info, .product-decision, .inquiry-content) {
    background-color: var(--surface);
    background-image: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  html:root[data-theme] :is(input:not([type="range"]):not([type="checkbox"]), select, textarea, .search) {
    background-color: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  html:root[data-theme] .product-image .tag {
    background-color: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  html:root[data-theme] :is(.quick-feature, .case-list > span, .training-details) {
    background-color: var(--surface);
  }
  /* Текстът в „Обучение“ следва подложката (--surface), не тъмната секция – четим и в двете теми. */
  html:root[data-theme] :is(.training-grid article h3, .training-details summary, .training-levels h4) {
    color: var(--ink);
  }
  html:root[data-theme] :is(.training-grid article p, .training-grid article > span, .training-details p, .training-levels p) {
    color: var(--muted);
  }
}
/* Лентата за сравнение над dock-а: на тесни екрани dock-ът остава на един ред. */
@media (max-width: 360px) {
  .mobile-dock {
    grid-template-columns: 1fr 1fr 1.5fr;
  }
  .mobile-dock a,
  .mobile-dock button {
    white-space: nowrap;
    padding-left: 2px;
    padding-right: 2px;
    font-size: 11px;
  }
}
/* Системна настройка „по-малко прозрачност“: плътни подложки на всички ширини, без blur навсякъде. */
@media (prefers-reduced-transparency: reduce) {
  html:root[data-theme] :is(.product-card, .equipment-card, .value-card, .value-card.primary, .rig-card, .support-grid article, .docs-grid article, .purchase-grid article, .training-grid article, .finder-shell, .effect-content, .transport-layout, .story-note, .ip-info, .product-decision, .inquiry-content, .quick-feature, .case-list > span, .training-details, .product-image .tag) {
    background-color: var(--surface);
    background-image: none;
  }
  html:root[data-theme] *,
  html:root[data-theme] *::before,
  html:root[data-theme] *::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  html:root[data-theme] header,
  html:root[data-theme] .mobile-dock,
  html:root[data-theme] .compare-bar {
    background-color: var(--surface);
  }
  html:root[data-theme] :is(.training-grid article h3, .training-details summary, .training-levels h4) {
    color: var(--ink);
  }
  html:root[data-theme] :is(.training-grid article p, .training-grid article > span, .training-details p, .training-levels p) {
    color: var(--muted);
  }
  html:root[data-theme] dialog::backdrop {
    background-color: var(--dark);
    opacity: 0.78;
  }
}
.not-found {
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px 20px;
  text-align: center;
}
.not-found h1 {
  margin: 0;
  letter-spacing: -0.02em;
  font-size: clamp(26px, 7vw, 40px);
  overflow-wrap: anywhere;
}
.not-found p {
  margin: 0;
  max-width: 34em;
  color: var(--muted);
}
.not-found .not-found-code {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 3px;
}
.not-found .not-found-en a {
  color: var(--ink);
  text-decoration: underline;
}
