:root {
  --dark: #15191d;
  --graphite: #22282e;
  --muted: #6c747d;
  --line: #dde3e8;
  --paper: #f4f6f3;
  --white: #ffffff;
  --yellow: #f2bf28;
  --yellow-dark: #d49b0b;
  --blue: #244e68;
  --green: #5c7f63;
  --shadow: 0 22px 70px rgba(21, 25, 29, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 78px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(221, 227, 232, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  min-height: 78px;
}

.logo {
  display: inline-flex;
  align-items: center;
  width: 190px;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: #3e474f;
  font-size: 15px;
}

.nav a:hover,
.phone:hover {
  color: var(--yellow-dark);
}

.phone {
  font-weight: 800;
  white-space: nowrap;
}

.menu {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-img,
.hero-img img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(21, 25, 29, 0.96) 0%, rgba(21, 25, 29, 0.82) 40%, rgba(21, 25, 29, 0.34) 72%, rgba(21, 25, 29, 0.1) 100%),
    linear-gradient(0deg, rgba(21, 25, 29, 0.48), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 860px);
  align-items: center;
  gap: 0;
  padding: 42px 0 52px;
}

.tag {
  margin: 0 0 16px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tag.dark {
  color: var(--yellow-dark);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  color: white;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  max-width: 880px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.16;
}

.hero-copy p:not(.tag) {
  max-width: 680px;
  color: #dce3e8;
  font-size: 21px;
  line-height: 1.42;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--dark);
  background: var(--yellow);
}

.btn-light {
  color: white;
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.08);
}

section {
  padding: 86px 0;
}

.intro {
  background:
    linear-gradient(135deg, rgba(36, 78, 104, 0.16), transparent 34%),
    var(--paper);
}

.ops-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 38px;
  overflow: hidden;
  padding: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  background:
    linear-gradient(135deg, rgba(242, 191, 40, 0.16), transparent 30%),
    radial-gradient(circle at 82% 20%, rgba(92, 127, 99, 0.42), transparent 34%),
    var(--dark);
  box-shadow: var(--shadow);
}

.ops-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.ops-copy,
.ops-map {
  position: relative;
  z-index: 1;
}

.ops-copy h2 {
  color: white;
  max-width: 580px;
  font-size: clamp(34px, 4.2vw, 56px);
}

.ops-copy p:not(.tag) {
  max-width: 560px;
  color: #cfd8df;
  font-size: 18px;
}

.ops-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.ops-metrics div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.ops-metrics strong,
.ops-metrics span {
  display: block;
}

.ops-metrics strong {
  color: var(--yellow);
  font-size: 34px;
  line-height: 1;
}

.ops-metrics span {
  margin-top: 7px;
  color: #d7e0e7;
  font-size: 13px;
}

.ops-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-content: stretch;
  min-width: 0;
}

.ops-node {
  position: relative;
  min-width: 0;
  min-height: 236px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.ops-node::after {
  content: "→";
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: var(--yellow);
  font-size: 26px;
  line-height: 1;
}

.ops-node:last-child::after {
  content: "✓";
}

.ops-node.active {
  background: rgba(242, 191, 40, 0.16);
  border-color: rgba(242, 191, 40, 0.5);
}

.ops-node span,
.ops-node strong,
.ops-node small {
  display: block;
}

.ops-node span {
  margin-bottom: 20px;
  color: var(--yellow);
  font-weight: 900;
}

.ops-node strong {
  margin-bottom: 8px;
  color: white;
  font-size: 22px;
}

.ops-node small {
  color: #c9d3dc;
  font-size: 14px;
  max-width: 190px;
}

.ops-node ul {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.ops-node li {
  position: relative;
  padding-left: 18px;
  color: #dce4ea;
  font-size: 14px;
  line-height: 1.35;
}

.ops-node li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 2px;
  background: var(--yellow);
}

.intro-grid,
.contact-grid,
.ops-system-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.intro-grid p:not(.tag),
.section-head > p:not(.tag),
.card p,
.ops-system p,
.contacts p,
.status {
  color: var(--muted);
}

.projects-strip {
  padding: 0;
  background: var(--graphite);
  color: white;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.strip-grid article {
  min-height: 210px;
  padding: 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.strip-grid span {
  color: var(--yellow);
  font-weight: 900;
}

.strip-grid h3 {
  color: white;
}

.strip-grid p {
  color: #c7d0d8;
}

.section-head {
  max-width: 780px;
  margin-bottom: 38px;
}

.categories {
  background: var(--white);
  padding: 74px 0 86px;
}

.categories .section-head {
  max-width: 860px;
}

.categories .cards {
  align-items: stretch;
}

.categories .card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  border-color: #d8e0e6;
  background:
    linear-gradient(145deg, rgba(244, 246, 243, 0.92), rgba(255, 255, 255, 1));
}

.categories .card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(242, 191, 40, 0.18);
}

.categories .card.accent {
  background:
    linear-gradient(145deg, rgba(36, 78, 104, 0.96), rgba(21, 25, 29, 0.96));
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 34px rgba(21, 25, 29, 0.07);
}

.card.accent {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.card.accent h3,
.card.accent p {
  color: white;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 6px;
  background: var(--yellow);
  color: var(--dark);
  font-weight: 900;
}

.ops-system {
  background:
    linear-gradient(135deg, rgba(242, 191, 40, 0.12), transparent 32%),
    var(--dark);
  color: white;
}

.ops-system-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 42px;
  align-items: start;
}

.system-copy {
  position: sticky;
  top: 110px;
}

.system-copy h2 {
  color: white;
}

.system-copy p:not(.tag) {
  color: #cbd5dd;
  font-size: 18px;
}

.system-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.system-card {
  min-height: 220px;
  padding: 24px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
}

.system-card.primary {
  background: linear-gradient(145deg, rgba(242, 191, 40, 0.22), rgba(255, 255, 255, 0.07));
  border-color: rgba(242, 191, 40, 0.42);
}

.system-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 34px;
  border-radius: 8px;
  color: var(--dark);
  background: var(--yellow);
  font-weight: 900;
}

.system-card h3 {
  color: white;
}

.system-card p {
  color: #cbd5dd;
}

.contacts {
  background: white;
}

.contact-data {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  font-weight: 900;
}

.contact-data span {
  color: var(--muted);
  font-weight: 700;
}

.form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  background: white;
}

textarea {
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.status {
  margin: 0;
  font-weight: 900;
}

.footer {
  padding: 34px 0;
  color: white;
  background: var(--graphite);
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
  align-items: start;
  color: #cbd4dc;
}

.footer strong {
  color: white;
}

.footer-brand img {
  display: block;
  width: min(220px, 100%);
  margin-bottom: 14px;
}

.footer-brand p {
  margin: 0;
  max-width: 360px;
}

.footer-info {
  display: grid;
  gap: 8px;
}

.footer-info span {
  display: block;
}

.footer-info a {
  color: white;
  font-weight: 900;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .phone,
  .nav {
    display: none;
  }

  .menu {
    display: block;
    justify-self: end;
  }

  .nav.open {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow);
  }

  .nav.open a {
    padding: 12px;
  }

  .hero-content,
  .intro-grid,
  .ops-panel,
  .contact-grid,
  .ops-system-grid {
    grid-template-columns: 1fr;
  }

  .cards,
  .ops-map,
  .system-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .system-copy {
    position: static;
  }

  .strip-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 68px;
  }

  .logo {
    width: 154px;
  }

  .hero {
    min-height: 760px;
  }

  .actions,
  .cards,
  .form,
  .ops-metrics,
  .ops-map,
  .system-board {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ops-panel {
    padding: 26px;
    grid-template-columns: 1fr;
  }

  .ops-copy h2 {
    font-size: 34px;
  }

  .ops-node {
    min-height: 148px;
  }

  .btn {
    width: 100%;
  }

  section {
    padding: 62px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
