@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #06111f;
  --panel: #0c1c2d;
  --blue: #73bfff;
  --orange: #ff881f;
  --text: #f4f8ff;
  --muted: #b5c5d8;
  --border: #294862;
  --gutter: clamp(22px, 6vw, 105px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Manrope, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #89cdff; outline-offset: 4px; }
[hidden] { display: none !important; }
.scroll-progress { position: fixed; inset: 0 auto auto 0; height: 3px; background: linear-gradient(90deg, #087bff, var(--orange)); z-index: 40; }

.header { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; padding: 12px var(--gutter); background: #071525; border-bottom: 1px solid #17334a; }
.brand img { display: block; width: clamp(160px, 20vw, 290px); height: auto; }
nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 32px); }
nav a { white-space: nowrap; font-size: .875rem; font-weight: 800; }
nav > a:hover, nav > a.active { color: var(--orange); }
nav .nav-it { color: var(--blue); }
.language { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 9px; }
.language a { padding: 5px 7px; border-radius: 5px; color: var(--muted); }
.language a:hover, .language a[aria-current] { background: #204461; color: white; }
.menu-toggle { display: none; }

.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(24px, 5vw, 84px); padding: clamp(40px, 6vw, 96px) var(--gutter); background: radial-gradient(ellipse at 72% 34%, #103f67, transparent 62%), #06111f; }
.grid-overlay { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(#4c83b21c 1px, transparent 1px), linear-gradient(90deg, #4c83b21c 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(90deg, transparent, black); }
.eyebrow { display: inline-block; color: var(--blue); font-size: .875rem; font-weight: 800; letter-spacing: .18em; }
h1, h2, h3, p { margin-block-start: 0; }
h1 { font-size: clamp(2.7rem, 5.4vw, 5.6rem); line-height: 1.04; letter-spacing: -.055em; margin: 20px 0; overflow-wrap: anywhere; }
em { color: var(--orange); font-style: normal; }
.lead { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.2rem); max-width: 38rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 19px; border: 1px solid transparent; border-radius: 8px; font-weight: 800; }
.btn.primary { color: #140c05; background: var(--orange); }
.btn.primary:hover { background: #ffaa60; }
.btn.secondary { border-color: #4a96cf; background: #102b44; }
.btn.secondary:hover { background: #1c4666; }
.btn:disabled { opacity: .65; cursor: wait; }

.cabinet-scene {
  position: relative;
  min-width: 0;
  margin: 0;
  border: 1px solid #3c6c94;
  border-radius: 15px;
  overflow: hidden;
  background: #0d263d;
  box-shadow: 0 22px 60px #020914a0, 0 0 32px #359cf133;
}
.cabinet-photo { position: relative; overflow: hidden; aspect-ratio: 1.22; cursor: crosshair; }
.cabinet-photo img,
.cabinet-cables {
  position: absolute;
  top: -7%;
  left: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  object-position: center 50%;
}
.cabinet-photo img {
  filter: brightness(.72) contrast(1.04);
  transition: filter .2s;
}
.cabinet-photo.is-lit > img { filter: brightness(.82) contrast(1.04); }
.cabinet-cables { pointer-events: none; }
.cabinet-light {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle clamp(80px, 14vw, 200px) at var(--light-x, 50%) var(--light-y, 50%), #ff95299e, #168dff65 45%, transparent 86%);
  mix-blend-mode: screen;
  transition: opacity .2s;
}
.cabinet-photo.is-lit .cabinet-light { opacity: 1; }
.section { padding: clamp(62px, 8vw, 115px) var(--gutter); scroll-margin-top: 12px; }
.section-heading { margin-bottom: 32px; }
.section h2 { font-size: clamp(2.05rem, 4.1vw, 3.75rem); letter-spacing: -.045em; line-height: 1.15; margin-bottom: 14px; }
.section p { color: var(--muted); }
.services { background: linear-gradient(#06111f, #0a1b2c); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.service-card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(20px, 3vw, 32px); background: linear-gradient(145deg, #10243a, #091725); border: 1px solid var(--border); border-radius: 13px; }
.service-card:hover { border-color: #5296ca; }
.service-icon { margin-bottom: 14px; color: var(--orange); font-size: 2.2rem; }
.service-card h3 { margin-bottom: 10px; }
.service-card a { margin-top: auto; color: var(--blue); font-weight: 800; }
.service-card a:hover, .contact-links a:hover { text-decoration: underline; }

.work { background: #071523; }
.work-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 20px; }
.work-photo { position: relative; margin: 0; overflow: hidden; min-height: 210px; border: 1px solid var(--border); border-radius: 13px; background: var(--panel); }
.work-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-photo figcaption { position: absolute; inset: auto 0 0; padding: 36px 18px 12px; background: linear-gradient(transparent, #06111f 85%); font-weight: 800; pointer-events: none; }
.work-grid > .work-photo figcaption { font-size: clamp(1.125rem, 2vw, 1.5rem); }
.work-side { display: grid; grid-template-rows: repeat(2, 1fr); gap: 20px; }
.project-monitoring {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  align-items: center;
  gap: 16px 24px;
  margin-top: 20px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #0c2238;
}
.project-monitoring h3 { margin-bottom: 4px; }
.project-monitoring p { margin-bottom: 16px; }
.project-monitoring .text-link { color: var(--blue); font-weight: 800; text-decoration: underline; }
.work-photo.monitoring-preview { min-height: 0; aspect-ratio: 1657 / 1208; }
.monitoring-preview img { object-fit: contain; }
.work-grid > .work-photo img { object-position: center 36%; }
.photo-link { position: absolute; inset: 0; cursor: zoom-in; }
.photo-link:focus-visible { outline-offset: -5px; z-index: 1; }
.photo-link img { transition: scale .25s ease; }
.photo-link:hover img { scale: 1.035; }
.photo-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #7e9fbb;
  border-radius: 50%;
  background: #06111fe8;
  color: white;
  font-size: 1.5rem;
  line-height: 1;
}
.photo-viewer {
  max-width: calc(100% - 24px);
  max-height: calc(100% - 24px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
}
.photo-viewer::backdrop { background: #02070eea; }
.photo-preview { position: relative; margin: 0; }
.photo-preview img { display: block; margin-inline: auto; max-width: min(90vw, 1200px); max-height: 70dvh; width: auto; height: auto; object-fit: contain; }
.photo-preview figcaption { padding: 10px 16px; text-align: center; font-weight: 800; }
.photo-preview form button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 1px solid #7e9fbb;
  border-radius: 50%;
  background: #06111f;
  color: white;
  font-size: 1.65rem;
  line-height: 1;
}
.photo-navigation { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 12px 10px; }
.photo-navigation button { width: 44px; height: 44px; border: 1px solid #7e9fbb; border-radius: 8px; background: #102b44; color: white; font-size: 1.6rem; line-height: 1; }
.photo-count { min-width: 3ch; text-align: center; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 8vw, 100px); background: linear-gradient(130deg, #0b2237, #06111f); }

.contact-panel { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: clamp(24px, 5vw, 72px); padding: clamp(22px, 5vw, 64px); border: 1px solid #315c7f; border-radius: 20px; background: radial-gradient(circle at 85% 5%, #10385a, transparent 62%), #0c2136; }
.contact-links { display: grid; gap: 14px; font-style: normal; }
.contact-links span { display: block; color: var(--muted); }
.contact-links a { color: var(--blue); font-weight: 800; overflow-wrap: anywhere; }
.contact-form, .field-grid { display: grid; gap: 15px; }
.field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-form label { display: grid; gap: 5px; font-weight: 700; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 46px; padding: 8px 11px; border: 1px solid #517697; border-radius: 7px; background: #071627; color: var(--text); }
.contact-form textarea { resize: vertical; }
.contact-form button { justify-self: start; }
.contact-form .form-status { margin: 0; color: var(--text); }

.it-intro { background: radial-gradient(ellipse at 78% 35%, #103f67, transparent 64%), #071523; }
.it-picker { padding-top: clamp(46px, 6vw, 76px); }
.it-options { display: grid; gap: 12px; max-width: 56rem; }
.it-option { border: 1px solid var(--border); border-radius: 12px; background: #0c2238; }
.it-option[open] { border-color: #5296ca; }
.it-option summary { cursor: pointer; padding: 17px 22px; font-size: 1.125rem; font-weight: 800; }
.it-option summary::marker { color: var(--orange); }
.it-option > div { padding: 0 22px 22px; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 26px var(--gutter); border-top: 1px solid #203c55; color: var(--muted); }
footer > a:first-child { font-size: 1.35rem; color: var(--text); font-weight: 800; }
footer b { color: var(--blue); }
footer span:not(#year) { color: var(--orange); }

@media (max-width: 1030px) {
  .header { flex-wrap: wrap; gap: 10px; }
  .js .menu-toggle { display: block; width: 46px; height: 46px; border: 1px solid var(--border); border-radius: 8px; background: #102b44; color: white; }
  nav { flex-basis: 100%; flex-wrap: wrap; padding: 6px 0 12px; }
  .js nav { display: none; }
  .js nav.open { display: flex; }
}
@media (max-width: 760px) {
  .project-monitoring { grid-template-columns: minmax(0, 460px); }
  .hero, .about, .contact-panel, .work-grid, .cards { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 32px; }
  .cabinet-scene { width: 100%; max-width: 42rem; }
  .work-photo { aspect-ratio: 4 / 3; }
}
@media (max-width: 450px) {
  .field-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cabinet-cables { display: none; }
  .cabinet-photo > img { filter: brightness(.9) contrast(1.04); }
  .cabinet-photo img, .cabinet-light, .photo-link img { transition: none; }
}
