:root {
  --color-primary: #F58220;
  --color-secondary: #1A9FDD;
  --color-background: #0B1533;
  --color-text: #FFFFFF;
  --color-accent: #F58220;
  --color-header-bg: #0B1533;
  --color-footer-bg: #081029;
  --font-heading: Exo 2;
  --font-body: Inter;
}

/* Project Custom CSS */
/* Systems & Technologies — standalone site (plain HTML export)
   Direction: "Light Engineered" — Deep Night base, Ultralux Orange primary, Brand Cyan secondary */

:root {
  --night: #0B1533;
  --surface: #16224A;
  --navy: #132D81;
  --orange: #F58220;
  --cyan: #1A9FDD;
  --success: #1F9D62;
  --amber: #F5A623;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .6);
  --line: rgba(255, 255, 255, .1);
  --radius: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--night);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display { font-family: 'Exo 2', 'Inter', sans-serif; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ── Utility strip ── */
.strip {
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.strip .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.strip a { color: rgba(255,255,255,.8); font-weight: 600; }
.strip a:hover { color: var(--orange); }

/* ── Header ── */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 21, 51, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.logo .t1 { font-family: 'Exo 2'; font-weight: 800; font-size: 15px; line-height: 1.1; letter-spacing: .4px; }
.logo .t1 em { font-style: normal; color: var(--orange); }
.logo .t2 { font-family: 'Exo 2'; font-weight: 700; font-size: 12.5px; color: var(--cyan); letter-spacing: 1.5px; }

nav.main { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
nav.main a {
  padding: 8px 13px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.72);
  transition: .18s;
}
nav.main a:hover { color: #fff; background: rgba(255,255,255,.07); }
nav.main a.active { color: var(--orange); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 26px; border-radius: 999px;
  background: var(--orange); color: #fff; border: 0; cursor: pointer;
  font: 600 15px 'Inter', sans-serif;
  transition: .18s;
}
.btn:hover { filter: brightness(1.12); }
.btn.ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.28); }
.btn.ghost:hover { border-color: var(--orange); color: var(--orange); filter: none; }
header.site .btn { height: 42px; padding: 0 20px; font-size: 13.5px; flex-shrink: 0; }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; }
.hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11,21,51,.96) 15%, rgba(11,21,51,.75) 55%, rgba(11,21,51,.45)); }
.hero .wrap { position: relative; padding-top: 110px; padding-bottom: 110px; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 3.5px;
  text-transform: uppercase; color: var(--orange);
}
.hero h1 {
  margin-top: 22px;
  font-size: clamp(42px, 6.4vw, 84px);
  font-weight: 800; line-height: .98; letter-spacing: -1px;
  text-transform: uppercase;
}
.hero h1 .cyan { color: var(--cyan); }
.hero h1 .orange { color: var(--orange); }
.lead { margin-top: 26px; max-width: 560px; font-size: 17.5px; line-height: 1.75; color: rgba(255,255,255,.78); }
.cta-row { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Sections ── */
section.block { padding: 88px 0; }
section.block.tight { padding: 64px 0; }
section.block + section.block { border-top: 1px solid var(--line); }

.h-xl {
  margin-top: 20px;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800; line-height: 1.06; letter-spacing: -.5px;
}
.h-xl .orange { color: var(--orange); }
.h-xl .cyan { color: var(--cyan); }
.h-lg { font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -.3px; }
.sub { margin-top: 18px; max-width: 640px; color: var(--muted); font-size: 16.5px; line-height: 1.75; }

/* ── Cards ── */
.grid { display: grid; gap: 24px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }

.card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color .2s;
}
.card:hover { border-color: rgba(245,130,32,.4); }
.card .ic {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(245,130,32,.14);
  margin-bottom: 20px;
}
.card h3 { font-size: 17px; font-weight: 800; }
.card p { margin-top: 10px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }

.card.cyan-top { border-top: 3px solid var(--cyan); }
.card.orange-top { border-top: 3px solid var(--orange); }
.card .tag {
  display: inline-block; margin-bottom: 16px;
  padding: 5px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  background: rgba(26,159,221,.14); color: var(--cyan);
}
.card .tag.orange { background: rgba(245,130,32,.14); color: var(--orange); }

/* ── Stats ── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat .v { font-family: 'Exo 2'; font-size: 40px; font-weight: 800; color: var(--orange); }
.stat .l { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ── Image tiles ── */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tile {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); min-height: 240px; display: flex; align-items: flex-end;
}
.tile.big { grid-row: span 2; min-height: 500px; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile:hover img { transform: scale(1.04); }
.tile .dim { position: absolute; inset: 0; background: rgba(11,21,51,.25); }
.tile .grad { position: absolute; inset: 0; background: linear-gradient(to top, var(--night) 8%, rgba(11,21,51,.7) 45%, transparent); }
.tile .cap { position: relative; padding: 26px; width: 100%; }
.tile h3 { font-size: 22px; font-weight: 800; }
.tile p { margin-top: 6px; font-size: 13.5px; color: rgba(255,255,255,.6); }
.tile .mini-cta {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--orange);
}
.tile .mini-cta:hover { filter: brightness(1.15); }

/* ── Calculator ── */
.calc-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; margin-top: 56px; align-items: start; }
.calc-form {
  background: #fff; color: #1C2434;
  border-radius: var(--radius); padding: 38px;
}
.calc-form h2 { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.calc-form label { display: block; margin-top: 26px; font-size: 13.5px; font-weight: 600; }
.calc-form label output { color: var(--orange); font-weight: 800; }
.calc-form select {
  width: 100%; margin-top: 8px; height: 52px; padding: 0 14px;
  border: 1.5px solid #d5dbe7; border-radius: 12px;
  font: 500 14.5px 'Inter', sans-serif; color: #1C2434; background: #fff;
}
.calc-form select:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
.calc-form input[type="range"] { width: 100%; margin-top: 14px; accent-color: var(--orange); }
.range-marks { display: flex; justify-content: space-between; font-size: 12px; color: #8A94A6; margin-top: 4px; }
.calc-note {
  margin-top: 28px; padding: 16px 18px; border-radius: 14px;
  background: #EAF4FB; color: #3E5AA9;
  font-size: 12.5px; line-height: 1.65;
}

.calc-result { background: var(--surface); border-radius: var(--radius); padding: 38px; border: 1px solid rgba(255,255,255,.07); }
.calc-result .for { font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--cyan); }
.calc-result .lumens { margin-top: 18px; padding: 26px; border-radius: 18px; background: rgba(11,21,51,.6); }
.calc-result .lumens .n { font-family: 'Exo 2'; font-size: clamp(38px, 4.6vw, 56px); font-weight: 800; color: var(--orange); line-height: 1; }
.calc-result .lumens .n small { font-size: 22px; color: rgba(255,255,255,.6); font-weight: 700; }
.calc-result .lumens .d { margin-top: 8px; font-size: 13px; color: var(--muted); }
.calc-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.calc-duo > div { padding: 22px 26px; border-radius: 18px; background: rgba(11,21,51,.6); }
.calc-duo .n { font-family: 'Exo 2'; font-size: 34px; font-weight: 800; }
.calc-duo .n small { font-size: 16px; color: rgba(255,255,255,.55); }
.calc-duo .d { margin-top: 4px; font-size: 12px; color: var(--muted); }
.calc-result .btn { width: 100%; justify-content: center; margin-top: 24px; height: 54px; font-size: 15.5px; }
.calc-result .fine { margin-top: 14px; text-align: center; font-size: 12px; color: var(--muted); }

/* ── Norms table ── */
table.norms { width: 100%; margin-top: 40px; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: 18px; overflow: hidden; }
table.norms th, table.norms td { padding: 16px 22px; text-align: left; font-size: 14px; }
table.norms th { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); background: rgba(11,21,51,.5); }
table.norms tr + tr td { border-top: 1px solid var(--line); }
table.norms tbody tr { cursor: pointer; transition: background .15s; }
table.norms tbody tr:hover { background: rgba(245,130,32,.08); }
table.norms td.lux { color: var(--orange); font-weight: 800; text-align: right; }
table.norms td:first-child { font-weight: 700; }
table.norms td.ex { color: var(--muted); font-size: 13px; }

/* ── Timeline ── */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.timeline .ev { border-left: 3px solid var(--orange); padding-left: 20px; }
.timeline .y { font-family: 'Exo 2'; font-size: 24px; font-weight: 800; color: var(--orange); }
.timeline .t { margin-top: 8px; font-size: 13.5px; line-height: 1.65; color: var(--muted); }

/* ── Projects ── */
.project-hero { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; }
.project-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-hero .grad { position: absolute; inset: 0; background: linear-gradient(to top, var(--night) 10%, rgba(11,21,51,.4) 60%, transparent); }
.project-hero .inner { position: relative; padding: 44px; width: 100%; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: end; }
.badge { display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; background: var(--success); color: #fff; }
.badge.amber { background: rgba(245,166,35,.16); color: var(--amber); }
.project-hero .badge { position: absolute; top: 24px; left: 24px; }
.meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.meta dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.5); }
.meta dd { margin-top: 6px; font-weight: 700; font-size: 14px; }
.meta dd.orange { color: var(--orange); }
.card .meta { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; }

/* ── Partners ── */
.partner-logo { height: 72px; display: grid; place-items: center; background: #fff; border-radius: 16px; padding: 12px; margin-bottom: 22px; }
.partner-logo img { max-height: 48px; max-width: 100%; object-fit: contain; }

/* ── Contacts ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; margin-top: 56px; align-items: start; }
.info-card { background: var(--surface); border: 1px solid rgba(255,255,255,.07); border-left: 3px solid var(--orange); border-radius: var(--radius); padding: 28px 30px; }
.info-card + .info-card { margin-top: 22px; }
.info-card.cyan { border-left-color: var(--cyan); }
.info-card h3 { font-size: 16px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.info-card .eik { font-size: 11px; font-weight: 700; background: rgba(255,255,255,.1); padding: 4px 12px; border-radius: 999px; color: var(--muted); }
.info-card ul { margin-top: 18px; display: grid; gap: 12px; font-size: 14px; color: rgba(255,255,255,.78); }
.info-card p { margin-top: 14px; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.75); }
.map-ph {
  margin-top: 22px; border: 1.5px dashed rgba(255,255,255,.18); border-radius: var(--radius);
  padding: 44px; text-align: center; color: var(--muted); font-size: 13.5px;
}
form.contact { background: var(--surface); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); padding: 34px; }
form.contact h2 { font-size: 20px; font-weight: 800; }
form.contact .hint { margin-top: 8px; font-size: 13px; color: var(--muted); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.contact input, form.contact textarea {
  width: 100%; margin-top: 16px; padding: 14px 16px;
  background: rgba(11,21,51,.55); color: #fff;
  border: 1.5px solid rgba(255,255,255,.12); border-radius: 12px;
  font: 500 14px 'Inter', sans-serif;
}
form.contact input:focus, form.contact textarea:focus { outline: none; border-color: var(--orange); }
form.contact textarea { min-height: 130px; resize: vertical; }
.consent { display: flex; gap: 10px; margin-top: 18px; font-size: 12.5px; color: var(--muted); align-items: flex-start; }
.consent input { width: auto; margin-top: 2px; }
form.contact .btn { width: 100%; justify-content: center; margin-top: 22px; height: 54px; }
.form-ok { display: none; margin-top: 16px; padding: 14px 18px; border-radius: 12px; background: rgba(31,157,98,.15); color: #7bd8ab; font-size: 13.5px; }

/* ── CTA band ── */
.cta-band { background: linear-gradient(100deg, #0B1533 20%, #132D81 60%, #F58220 150%); border-top: 1px solid var(--line); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap; }

/* ── Footer ── */
footer.site { border-top: 1px solid var(--line); background: #081029; padding: 56px 0 36px; }
footer.site .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
footer.site h4 { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); margin-bottom: 16px; }
footer.site h4.cyan { color: var(--cyan); }
footer.site li { margin-bottom: 9px; font-size: 13.5px; color: var(--muted); }
footer.site li a:hover { color: var(--orange); }
footer.site .legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: rgba(255,255,255,.35); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .grid.c4, .stats { grid-template-columns: repeat(2, 1fr); }
  .grid.c3, .timeline { grid-template-columns: 1fr; }
  .grid.c2, .tiles, .calc-grid, .contact-grid, .project-hero .inner { grid-template-columns: 1fr; }
  .tile.big { min-height: 300px; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  header.site .btn { display: none; }
}
@media (max-width: 640px) {
  .grid.c4, .stats, footer.site .cols, .f-row, .calc-duo { grid-template-columns: 1fr; }
  nav.main { display: none; }
}

/* ── Systems & Technologies on the platform (appended after the site's own styles.css) ── */

/* The platform wraps the page in header.site-header / main.site-main / footer.site-footer and every
   component in div[data-component]. Taking those boxes out of the layout keeps the sticky header
   sticky (its containing block is the page again) and the sections full-width. */
.site-header, .site-main, .site-footer, [data-component] { display: contents; }

/* section.block + section.block: the sections are no longer DOM siblings when they come from two components */
[data-component]:has(> section.block:last-child) + [data-component] > section.block:first-child { border-top: 1px solid var(--line); }

/* Highlights in smaller headings (the Kimi CSS only colours them in .hero h1 and .h-xl) */
.h-lg .orange { color: var(--orange); }
.h-lg .cyan { color: var(--cyan); }

/* The map placeholder is a Google Maps link */
a.map-ph { display: block; transition: border-color .18s, color .18s; }
a.map-ph:hover { border-color: var(--orange); color: var(--orange); }

/* Enquiry form: invalid fields after a submit attempt */
form.contact.tc-tried input:invalid, form.contact.tc-tried textarea:invalid { border-color: #f87171; }
form.contact.tc-tried .consent input:invalid { outline: 2px solid #f87171; outline-offset: 2px; }

/* Phone menu: the Kimi CSS hides the menu under 640px and offers no way to reach the pages */
.tc-burger { display: none; }
@media (max-width: 640px) {
  header.site .wrap { flex-wrap: wrap; gap: 12px 28px; }
  .tc-burger {
    display: grid; align-content: center; gap: 5px; margin-left: auto;
    width: 44px; height: 44px; padding: 0 11px; border-radius: 10px;
    background: rgba(255,255,255,.07); border: 1px solid var(--line); cursor: pointer;
  }
  .tc-burger span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
  .tc-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .tc-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .tc-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  nav.main.open { display: flex; flex-direction: column; width: 100%; margin-left: 0; padding-bottom: 6px; }
  nav.main.open a { padding: 12px 13px; font-size: 15px; }
  .strip .wrap span:last-child { display: none; }
}
