/* ================================================================
   МУП «Комфорт» — Industrial theme override for Joomla Protostar
   File: /templates/protostar/css/user.css
   Drop-in replacement. Scoped to Protostar markup.
   ================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Rubik:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap&subset=cyrillic,cyrillic-ext,latin");

:root {
  --coal-990: #0c0f12;
  --coal-900: #14181d;
  --steel-800: #1c232b;
  --steel-700: #262c34;
  --steel-600: #303842;
  --steel-500: #3d4751;
  --steel-400: #54606c;
  --steel-300: #8a939d;
  --steel-200: #b9c1c9;
  --steel-100: #d9dde2;
  --concrete-100: #eae6de;
  --concrete-050: #f3efe7;
  --concrete-025: #f8f5ee;
  --paper: #ffffff;
  --amber-600: #d98200;
  --amber-500: #f2a11a;
  --amber-400: #ffb94a;
  --amber-300: #ffc65b;
  --safety: #d9531e;
  --rust: #7a3a1d;
  --caution: #f1c513;
  --ok: #2d8659;
  --danger: #b0311e;
  --font-display: "Oswald", "PT Sans Caption", Impact, sans-serif;
  --font-body: "Rubik", "PT Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
}

/* ============ reset Protostar defaults ============ */

body.site {
  border-top: 0 !important;
  background:
    linear-gradient(to right, rgba(20,24,29,0.04) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(to bottom, rgba(20,24,29,0.04) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--concrete-050) !important;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--coal-900);
  position: relative;
}
/* top hazard stripe (replaces 3px border-top) */
body.site::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--coal-990) 0 16px,
    var(--caution) 16px 32px
  );
  z-index: 1000;
}
body.site > .body { padding-top: 8px; }

a { color: var(--safety); transition: color .15s; }
a:hover { color: var(--coal-900); text-decoration: underline; }

.container { max-width: 1240px; width: auto; padding: 0 24px; }
@media (max-width: 980px) { .container { padding: 0 16px; } }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--coal-900);
}

/* ============ header / masthead ============ */

.header {
  background: var(--coal-990);
  color: var(--steel-100);
  padding: 0;
  margin: 0 -24px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--steel-700);
}
.header::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 85% 50%, rgba(242,161,26,0.08), transparent 65%),
    radial-gradient(circle at 3px 3px, rgba(255,255,255,0.035) 1px, transparent 1.5px);
  background-size: auto, 12px 12px;
  pointer-events: none;
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}
.brand {
  float: none !important;
  display: flex !important;
  align-items: center;
  gap: 14px;
  text-decoration: none !important;
  color: inherit;
  padding: 0;
  margin: 0;
}
.brand::before {
  content: "";
  width: 56px; height: 56px; flex: 0 0 56px;
  background:
    linear-gradient(145deg, var(--steel-600), var(--steel-800))
    no-repeat center / 30px 30px;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23f2a11a' stroke-width='2' stroke-linecap='square'><rect x='6' y='12' width='20' height='16'/><path d='M26 16h6v8h-6'/><path d='M10 20h12M10 24h8'/><circle cx='12' cy='9' r='1.2' fill='%23f2a11a' stroke='none'/><path d='M12 9v3'/><path d='M4 32h32' stroke-width='1.2'/></svg>"),
    linear-gradient(145deg, var(--steel-600), var(--steel-800));
  background-size: 32px 32px, auto;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  border: 1px solid var(--steel-500);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -8px 16px rgba(0,0,0,0.35),
    0 0 0 2px var(--coal-990),
    0 0 0 3px var(--steel-600);
  position: relative;
}
.site-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: none;
}
.site-description {
  display: block !important;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--amber-400);
  margin-top: 6px;
  text-transform: uppercase;
  font-weight: 400;
}
.header-search { margin-left: auto; }

/* ============ the home banner custom-html module (replaces brown gradient) ============ */

/* Scoped by .kmf wrapper used in the custom html module */
.kmf-hero {
  position: relative;
  background: var(--coal-900);
  color: var(--paper);
  overflow: hidden;
  border-bottom: 1px solid var(--steel-700);
  margin: 0 -24px;
}
.kmf-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(242,161,26,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,161,26,0.09) 1px, transparent 1px),
    linear-gradient(rgba(242,161,26,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,161,26,0.04) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}
.kmf-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 24px 64px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) { .kmf-hero-inner { grid-template-columns: 1fr; padding: 40px 24px; } }
.kmf-hero-tag {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber-400);
  margin-bottom: 18px;
  padding: 6px 12px;
  border: 1px solid var(--amber-500);
  background: rgba(242,161,26,0.06);
}
.kmf-hero-tag::before {
  content: ""; width: 8px; height: 8px; background: var(--amber-500); display: inline-block;
}
.kmf-hero-title {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: clamp(32px, 4.5vw, 56px) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.01em !important;
  margin: 0 0 16px !important;
  text-transform: uppercase;
  color: var(--paper) !important;
}
.kmf-hero-title span { color: var(--amber-500) !important; display: block; }
.kmf-hero-lede {
  font-size: 16px; line-height: 1.5;
  color: var(--steel-200) !important;
  max-width: 40ch;
  margin: 0 0 24px !important;
}
.kmf-hero-meta {
  display: flex; flex-wrap: wrap; gap: 28px 36px;
  border-top: 1px solid var(--steel-700);
  padding-top: 20px;
  margin: 0;
}
.kmf-hero-meta dt {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel-300); margin: 0 0 4px;
}
.kmf-hero-meta dd {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600; margin: 0;
  color: var(--paper); letter-spacing: 0.02em;
}
.kmf-hero-meta dd small {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--steel-300); margin-left: 4px; letter-spacing: 0.12em;
}
.kmf-schematic { width: 100%; aspect-ratio: 5/4; max-height: 400px; filter: drop-shadow(0 0 40px rgba(242,161,26,0.08)); }
.kmf-schematic svg { width: 100%; height: 100%; display: block; }

/* ============ Protostar sidebar & menu ============ */

#sidebar.span3 {
  width: 260px;
  margin-left: 0;
}
#content.span9 {
  width: calc(100% - 300px);
  margin-left: 40px;
}
@media (max-width: 900px) {
  #sidebar.span3, #content.span9 { width: 100%; margin-left: 0; }
}

.sidebar-nav {
  background: var(--paper);
  border: 1px solid var(--steel-200);
  padding: 0;
  margin-top: 32px;
}
.moduletable, .moduletable_menu {
  background: var(--paper);
  border: 1px solid var(--steel-200);
  margin-bottom: 16px;
  padding: 0;
}
.sidebar-nav .moduletable, .sidebar-nav .moduletable_menu {
  border: none; border-bottom: 1px solid var(--steel-100); margin: 0;
}
.sidebar-nav .moduletable:last-child, .sidebar-nav .moduletable_menu:last-child { border-bottom: none; }
.moduletable h3, .moduletable_menu h3 {
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: var(--paper) !important;
  background: var(--coal-900);
  margin: 0 !important;
  padding: 12px 18px;
  border-left: 4px solid var(--safety);
  font-weight: 500 !important;
}
.moduletable .custom, .moduletable > p, .moduletable > div, .moduletable ul {
  padding: 16px 18px;
}
.nav.menu.mod-list {
  list-style: none; padding: 0; margin: 0;
}
.nav.menu li {
  border-bottom: 1px solid var(--steel-100);
  margin: 0;
}
.nav.menu li:last-child { border-bottom: none; }
.nav.menu li > a {
  display: block;
  padding: 14px 18px 14px 22px;
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--coal-900) !important;
  background: transparent !important;
  border-radius: 0;
  text-decoration: none;
  position: relative;
  transition: all .15s;
}
.nav.menu li > a::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: transparent;
  transition: background .15s;
}
.nav.menu li > a:hover {
  color: var(--safety) !important;
  background: var(--concrete-025) !important;
}
.nav.menu li > a:hover::before { background: var(--amber-500); }
.nav.menu li.current.active > a,
.nav.menu li.active > a {
  color: var(--paper) !important;
  background: var(--coal-900) !important;
}
.nav.menu li.current.active > a::before,
.nav.menu li.active > a::before { background: var(--safety); }

/* ============ main content ============ */

main#content {
  padding-top: 32px;
}
.blog-featured {
  background: var(--paper);
  border: 1px solid var(--steel-200);
  padding: 36px 40px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
@media (max-width: 620px) { .blog-featured { padding: 24px 20px; } }
.items-leading .leading-0 h2.item-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--coal-990);
  color: var(--coal-900);
  line-height: 1;
}
.items-leading .leading-0 h2.item-title a {
  color: inherit !important; text-decoration: none !important;
}
.items-leading .leading-0 h2.item-title::before {
  content: "01 / ";
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.22em;
  color: var(--safety);
  vertical-align: 2px;
}
.items-leading h2,
.items-leading h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 32px 0 14px;
}
.items-leading h2 {
  font-size: 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--steel-200);
}
.items-leading h3 {
  font-size: 18px;
  color: var(--coal-900);
  position: relative;
  padding-left: 18px;
}
.items-leading h3::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 4px; height: 16px;
  background: var(--safety);
}
.items-leading p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--steel-700);
  margin: 0 0 14px;
}
.items-leading strong { color: var(--coal-900); }
.items-leading hr {
  border: 0;
  border-top: 1px dashed var(--steel-300);
  margin: 28px 0;
}

/* ============ stamped plates / specs (for use in article) ============ */

.kmf-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}
@media (max-width: 820px) { .kmf-specs { grid-template-columns: repeat(2, 1fr); } }
.kmf-plate {
  background: linear-gradient(160deg, var(--steel-700), var(--coal-900));
  color: var(--paper);
  padding: 22px 18px 20px;
  position: relative;
  border: 1px solid var(--steel-600);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), inset 0 -2px 0 rgba(0,0,0,0.5);
  overflow: hidden;
}
.kmf-plate::before, .kmf-plate::after {
  content: ""; position: absolute; width: 5px; height: 5px;
  background: radial-gradient(circle at 30% 30%, #9aa3ad, #16191d);
  border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.kmf-plate::before { top: 6px; left: 6px; }
.kmf-plate::after { top: 6px; right: 6px; }
.kmf-plate-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.2em; color: var(--amber-400);
  text-transform: uppercase; margin-bottom: 8px;
}
.kmf-plate-value {
  font-family: var(--font-display) !important;
  font-size: 36px !important; font-weight: 700 !important;
  line-height: 1 !important;
  color: var(--paper) !important;
  margin: 0 !important;
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.kmf-plate-value .unit {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--steel-300); letter-spacing: 0.12em;
  font-weight: 500; text-transform: uppercase;
}
.kmf-plate-cap {
  margin: 8px 0 0; font-size: 12px; color: var(--steel-300); line-height: 1.35;
}

/* ============ services grid (for use in article) ============ */

.kmf-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--steel-700);
  background: var(--coal-900);
  margin: 24px 0;
}
@media (max-width: 820px) { .kmf-services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .kmf-services { grid-template-columns: 1fr; } }
.kmf-service {
  padding: 24px 20px;
  background: var(--coal-900);
  color: var(--paper);
  border-right: 1px solid var(--steel-700);
  border-bottom: 1px solid var(--steel-700);
  position: relative;
  transition: background .2s;
}
.kmf-service:hover { background: var(--steel-800); }
.kmf-service:hover .kmf-service-icon { color: var(--amber-500); }
.kmf-service-icon {
  width: 42px; height: 42px;
  color: var(--steel-300);
  margin-bottom: 16px;
  transition: color .2s;
}
.kmf-service-icon svg { width: 100%; height: 100%; display: block; }
.kmf-service-num {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.15em;
  color: var(--steel-500);
}
.kmf-service-title {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 8px !important;
  color: var(--paper) !important;
  padding: 0 !important;
  border: none !important;
}
.kmf-service-title::before { display: none !important; }
.kmf-service-desc {
  font-size: 12px; line-height: 1.5;
  color: var(--steel-300) !important; margin: 0 !important;
}

/* ============ pullquote ============ */

.kmf-pullquote {
  padding: 28px;
  background: var(--coal-990);
  color: var(--paper);
  position: relative;
  border-left: 6px solid var(--amber-500);
  margin: 28px 0;
}
.kmf-pullquote::before {
  content: "»"; position: absolute;
  top: -12px; right: 18px;
  font-family: var(--font-display);
  font-size: 72px; color: var(--amber-500);
  line-height: 1; opacity: 0.5;
}
.kmf-pullquote blockquote {
  margin: 0 !important; padding: 0 !important; border: 0 !important;
  font-family: var(--font-display); font-size: 19px; font-weight: 500;
  color: var(--paper) !important;
  line-height: 1.3; letter-spacing: 0.01em;
}
.kmf-pullquote cite {
  display: block; margin-top: 16px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.2em; color: var(--amber-400);
  font-style: normal; text-transform: uppercase;
}

/* ============ document library ============ */

.kmf-docs { background: var(--paper); border: 1px solid var(--steel-200); margin: 24px 0; }
.kmf-docs-cat { border-bottom: 1px solid var(--steel-100); }
.kmf-docs-cat:last-child { border-bottom: none; }
.kmf-docs-cat-head {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--concrete-100);
  border-left: 4px solid var(--safety);
  font-family: var(--font-display);
  font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--coal-900);
}
.kmf-docs-cat-count {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; color: var(--steel-500);
  background: var(--paper); padding: 3px 9px;
  border: 1px solid var(--steel-200);
}
.kmf-docs-list { list-style: none; margin: 0; padding: 0; }
.kmf-doc {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  align-items: center; gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--steel-100);
  transition: background .12s;
}
.kmf-doc:last-child { border-bottom: none; }
.kmf-doc:hover { background: var(--concrete-025); }
.kmf-doc-ext {
  font-family: var(--font-mono); font-size: 10px;
  font-weight: 700; letter-spacing: 0.08em;
  color: var(--paper) !important;
  background: var(--coal-900);
  padding: 5px 0; text-align: center;
  text-decoration: none !important;
}
.kmf-doc-ext.pdf { background: var(--safety); }
.kmf-doc-ext.docx { background: #2b5fb3; }
.kmf-doc-title {
  font-size: 13px; line-height: 1.4;
  color: var(--coal-900) !important; text-decoration: none;
  font-weight: 500;
}
.kmf-doc-title:hover { color: var(--safety) !important; text-decoration: underline; }
.kmf-doc-date {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; color: var(--steel-400);
}
.kmf-doc-dl {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--steel-500) !important;
  text-decoration: none !important;
  padding: 5px 9px;
  border: 1px solid var(--steel-200);
  transition: all .15s;
}
.kmf-doc-dl:hover {
  color: var(--paper) !important;
  background: var(--coal-900); border-color: var(--coal-900);
}
@media (max-width: 620px) {
  .kmf-doc { grid-template-columns: 34px 1fr; }
  .kmf-doc-date, .kmf-doc-dl { display: none; }
}

/* ============ contacts callout ============ */

.kmf-contact {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--coal-990);
  color: var(--paper);
  margin: 24px 0;
}
@media (max-width: 800px) { .kmf-contact { grid-template-columns: 1fr; } }
.kmf-contact-panel { padding: 28px; border-right: 1px solid var(--steel-700); }
.kmf-contact-panel:last-child { border-right: none; border-top: 1px solid var(--steel-700); }
@media (min-width: 801px) {
  .kmf-contact-panel:last-child { border-top: none; border-left: 1px solid var(--steel-700); }
}
.kmf-contact-heading {
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: var(--amber-500) !important;
  margin: 0 0 16px !important;
  padding: 0 !important; border: 0 !important; background: transparent !important;
}
.kmf-contact-heading::before { display: none !important; }
.kmf-contact-row {
  display: grid; grid-template-columns: 90px 1fr;
  gap: 14px; padding: 12px 0;
  border-top: 1px solid var(--steel-700);
  margin: 0;
}
.kmf-contact-row:last-child { border-bottom: 1px solid var(--steel-700); }
.kmf-contact-row dt {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--steel-300); margin: 4px 0 0; font-weight: 400;
}
.kmf-contact-row dd {
  margin: 0; font-size: 14px;
  color: var(--paper) !important; line-height: 1.4;
}
.kmf-contact-row dd a { color: var(--amber-400) !important; text-decoration: none !important; }
.kmf-contact-row dd a:hover { text-decoration: underline !important; }
.kmf-contact-row dd strong {
  font-family: var(--font-display); font-size: 22px;
  font-weight: 600; letter-spacing: 0.02em;
  display: block; line-height: 1; margin-bottom: 2px;
  color: var(--paper);
}
.kmf-schedule {
  display: grid; grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid var(--steel-700);
  font-family: var(--font-mono);
  font-size: 12px; color: var(--steel-200);
}
.kmf-schedule:last-of-type { border-bottom: 1px solid var(--steel-700); }
.kmf-schedule .day { letter-spacing: 0.1em; }
.kmf-schedule .hrs { color: var(--amber-400); letter-spacing: 0.08em; }
.kmf-schedule.closed .hrs { color: var(--danger); }

/* ============ section dividers ============ */

.kmf-section-head {
  display: flex; align-items: baseline; gap: 16px;
  margin: 36px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--coal-990);
}
.kmf-section-num {
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.22em; color: var(--safety); font-weight: 500;
}
.kmf-section-title {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: 22px !important;
  text-transform: uppercase; letter-spacing: 0.02em;
  margin: 0 !important;
  color: var(--coal-900) !important;
  line-height: 1; padding: 0 !important; border: 0 !important;
}
.kmf-section-title::before { display: none !important; }
.kmf-section-sub {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--steel-500); letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ============ breadcrumb ============ */

.breadcrumb {
  background: transparent;
  padding: 16px 0 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--steel-200);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-500);
}
.breadcrumb li { text-shadow: none; }
.breadcrumb a { color: var(--coal-900); }

/* ============ footer ============ */

.footer {
  background: var(--coal-990) !important;
  color: var(--steel-300);
  border-top: 4px solid var(--safety);
  padding: 32px 0 20px;
  margin-top: 60px;
  position: relative;
}
.footer::before {
  content: ""; position: absolute;
  top: -12px; left: 0; right: 0; height: 8px;
  background: repeating-linear-gradient(-45deg, transparent 0 16px, rgba(0,0,0,0.2) 16px 32px);
  pointer-events: none;
}
.footer hr { display: none; }
.footer .container { color: var(--steel-300); }
.footer p {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-400);
  margin: 0;
}
.footer a {
  color: var(--amber-400) !important;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}
.footer a:hover { color: var(--paper) !important; }

/* Hide breadcrumb "Вы здесь" filler on mobile */
@media (max-width: 600px) { .breadcrumb li:first-child { display: none; } }

/* ============ hero load animation ============ */

@media (prefers-reduced-motion: no-preference) {
  .kmf-reveal {
    opacity: 0;
    transform: translateY(12px);
    animation: kmf-rise 0.7s cubic-bezier(0.22, 0.8, 0.32, 1) forwards;
  }
  .kmf-reveal.d1 { animation-delay: 0.1s; }
  .kmf-reveal.d2 { animation-delay: 0.2s; }
  .kmf-reveal.d3 { animation-delay: 0.35s; }
  .kmf-reveal.d4 { animation-delay: 0.5s; }

  @keyframes kmf-rise {
    to { opacity: 1; transform: none; }
  }

  .kmf-schematic .kmf-draw {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: kmf-draw 2.2s ease-out 0.3s forwards;
  }
  .kmf-schematic .kmf-draw.d2 { animation-delay: 0.7s; }
  .kmf-schematic .kmf-draw.d3 { animation-delay: 1.1s; }
  .kmf-schematic .kmf-draw.d4 { animation-delay: 1.5s; }

  @keyframes kmf-draw {
    to { stroke-dashoffset: 0; }
  }

  /* gauge needle breathing once drawn */
  .kmf-schematic .kmf-gauge-needle {
    transform-origin: 440px 120px;
    animation: kmf-gauge 4s ease-in-out 2s infinite;
  }
  @keyframes kmf-gauge {
    0%, 100% { transform: rotate(0deg); }
    50%      { transform: rotate(-8deg); }
  }
}
