:root {
  --bg: #0d1116;
  --bg-2: #151b22;
  --surface: #ffffff;
  --surface-2: #f3f5f7;
  --text: #111820;
  --text-invert: #f8fafc;
  --muted: #67717d;
  --muted-invert: #c9d0d8;
  --line: #dfe4ea;
  --line-dark: rgba(255, 255, 255, 0.14);
  --gold: #e2a527;
  --gold-2: #ffbd42;
  --steel: #7b8794;
  --bluegray: #243443;
  --shadow: 0 22px 70px rgba(12, 16, 21, 0.18);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 16, 21, 0.91);
  color: var(--text-invert);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(18px);
}

.top-line {
  font-size: 12px;
  color: var(--muted-invert);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-line-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 78px;
}

.brand {
  display: block;
  width: 182px;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

.brand img {
  width: 100%;
  height: 54px;
  object-fit: contain;
  object-position: center;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-item.is-active > a,
.nav-item > a:hover {
  color: var(--gold-2);
}

.submenu-toggle {
  display: none;
}

.sub-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  width: 236px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: #10151b;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-item:hover .sub-menu,
.nav-item:focus-within .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sub-menu a {
  display: block;
  padding: 10px 12px;
  color: var(--muted-invert);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.sub-menu a:hover {
  background: rgba(226, 165, 39, 0.1);
  color: var(--gold-2);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-cta,
.btn-primary {
  background: linear-gradient(135deg, var(--gold-2), #d28b12);
  color: #121212;
  box-shadow: 0 16px 42px rgba(226, 165, 39, 0.24);
}

.btn-light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-invert);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn:hover,
.nav-cta:hover {
  transform: translateY(-2px);
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - 115px);
  max-height: 780px;
  isolation: isolate;
  overflow: hidden;
  color: var(--text-invert);
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 12, 15, 0.95) 0%, rgba(9, 12, 15, 0.78) 44%, rgba(9, 12, 15, 0.36) 100%),
    linear-gradient(180deg, rgba(9, 12, 15, 0.35), rgba(9, 12, 15, 0.8));
}

.hero-sparks {
  position: absolute;
  inset: auto -10% 0 auto;
  width: 58%;
  height: 58%;
  z-index: -1;
  background:
    radial-gradient(circle at 70% 55%, rgba(255, 195, 78, 0.36), transparent 30%),
    repeating-linear-gradient(22deg, transparent 0 18px, rgba(255, 189, 66, 0.16) 19px 21px, transparent 22px 36px);
  mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
  opacity: 0.88;
  animation: sparkDrift 8s linear infinite;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 58px;
  align-items: center;
  min-height: calc(100vh - 115px);
  max-height: 780px;
  padding: 70px 0 58px;
}

.hero-copy {
  max-width: 760px;
  min-width: 0;
}

.hero h1,
.sub-hero h1 {
  margin: 0;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 span {
  color: var(--gold-2);
}

.hero p {
  max-width: 630px;
  margin: 28px 0 0;
  color: var(--muted-invert);
  font-size: 20px;
  line-height: 1.55;
}

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

.hero-panel {
  width: 100%;
  padding: 24px;
  background: rgba(12, 16, 21, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
}

.hero-panel span,
.section-kicker {
  display: block;
  margin-bottom: 11px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  color: #fff;
  font-size: 22px;
  line-height: 1.25;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.hero-stats div {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-stats b {
  display: block;
  color: var(--gold-2);
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 26px;
}

.hero-stats small {
  display: block;
  color: var(--muted-invert);
  font-size: 12px;
}

.section {
  padding: 94px 0;
}

.intro-band {
  background: #fff;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.section-heading {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 24px;
}

.line-mark {
  width: 62px;
  height: 4px;
  margin-top: 18px;
  background: var(--gold);
}

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

.section h2,
.detail-copy h2,
.contact-info h2,
.technical-card h2,
.catalog-card h2 {
  margin-bottom: 0;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  margin: 0;
  color: #3c4651;
  font-size: 20px;
}

.services-section,
.technical-section,
.catalog-section,
.faq-section {
  background: var(--surface-2);
}

.section-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 42px;
}

.section-top h2 {
  max-width: 720px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #8a5a07;
  font-size: 14px;
  font-weight: 800;
}

.text-link::after {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.text-link:hover::after {
  transform: translateX(5px);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(12, 16, 21, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.service-media {
  display: block;
  aspect-ratio: 1.15 / 1;
  overflow: hidden;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.service-card:hover .service-media img {
  transform: scale(1.06);
}

.service-body {
  padding: 22px;
}

.service-body h3,
.capability-item h3,
.detail-aside h3,
.site-footer h3 {
  margin-bottom: 9px;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: 0;
}

.service-body p,
.capability-item p,
.detail-aside p {
  color: var(--muted);
}

.service-body ul,
.check-list {
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.service-body li,
.check-list li {
  position: relative;
  padding-left: 20px;
  color: #303a45;
  font-size: 14px;
}

.service-body li + li,
.check-list li + li {
  margin-top: 8px;
}

.service-body li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--gold);
}

.capability-section {
  background: var(--bg);
  color: var(--text-invert);
}

.capability-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 62px;
  align-items: center;
}

.capability-media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #111;
}

.capability-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.capability-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.58));
}

.capability-copy h2 {
  color: #fff;
}

.capability-list {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.capability-item {
  padding: 24px 0 22px;
  border-top: 1px solid var(--line-dark);
}

.capability-item p {
  margin-bottom: 0;
  color: var(--muted-invert);
}

.sectors-section {
  color: var(--text-invert);
  background:
    linear-gradient(135deg, rgba(36, 52, 67, 0.95), rgba(13, 17, 22, 0.95)),
    url("../images/workshop-5.jpeg") center / cover;
}

.sector-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sector-rail span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
}

.gallery-section {
  background: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  grid-auto-rows: 210px;
  gap: 14px;
}

.gallery-item {
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: #111;
  cursor: zoom-in;
}

.gallery-item:first-child,
.gallery-item:nth-child(4) {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.gallery-item:hover img {
  opacity: 0.84;
  transform: scale(1.05);
}

.contact-strip {
  padding: 74px 0;
  background: linear-gradient(135deg, #151b22, #243443);
  color: var(--text-invert);
}

.contact-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.contact-strip h2 {
  max-width: 780px;
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
}

.contact-strip p {
  margin: 14px 0 0;
  color: var(--muted-invert);
}

.sub-hero {
  position: relative;
  min-height: 430px;
  padding: 120px 0 70px;
  overflow: hidden;
  color: var(--text-invert);
  background: var(--bg);
}

.sub-hero.compact {
  min-height: 330px;
  background: linear-gradient(135deg, #0d1116, #243443);
}

.sub-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.sub-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 12, 15, 0.9), rgba(9, 12, 15, 0.55));
}

.sub-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
}

.breadcrumb {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.sub-hero p {
  max-width: 710px;
  margin: 22px 0 0;
  color: var(--muted-invert);
  font-size: 20px;
}

.detail-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 54px;
  align-items: start;
}

.detail-copy,
.contact-info,
.prose {
  font-size: 18px;
}

.detail-copy p,
.prose p,
.contact-info p {
  color: #3c4651;
}

.detail-aside,
.contact-form,
.info-card,
.technical-card,
.catalog-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(12, 16, 21, 0.06);
}

.detail-aside {
  position: sticky;
  top: 130px;
}

.card-row-section,
.prose-section {
  background: var(--surface-2);
}

.split-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.info-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.prose {
  max-width: 840px;
}

.technical-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.technical-card h2 {
  font-size: 30px;
}

.technical-card p,
.catalog-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 800;
  cursor: pointer;
}

.faq-item p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
}

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

.catalog-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: center;
}

.catalog-card img {
  width: 180px;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

.contact-info {
  padding: 38px;
  background: var(--bg);
  color: var(--text-invert);
  border-radius: var(--radius);
}

.contact-info h2 {
  color: #fff;
}

.contact-info p {
  color: var(--muted-invert);
}

.contact-info a {
  color: var(--gold-2);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #29333e;
  font-size: 13px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--text);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(226, 165, 39, 0.16);
}

.site-footer {
  background: #0b0f14;
  color: var(--muted-invert);
  padding: 70px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1.2fr 0.8fr;
  gap: 34px;
}

.footer-logo {
  width: 180px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 18px;
}

.site-footer h3 {
  color: #fff;
}

.site-footer a {
  display: block;
  margin-bottom: 9px;
  color: var(--muted-invert);
}

.site-footer a:hover {
  color: var(--gold-2);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.86);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox button {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.lightbox button::before,
.lightbox button::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 20px;
  width: 18px;
  height: 2px;
  background: #fff;
}

.lightbox button::before {
  transform: rotate(45deg);
}

.lightbox button::after {
  transform: rotate(-45deg);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  max-width: 360px;
  padding: 15px 18px;
  border-radius: var(--radius);
  background: #111820;
  color: #fff;
  box-shadow: var(--shadow);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease var(--delay, 0ms), transform 0.55s ease var(--delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes sparkDrift {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-36px);
  }
}

@media (max-width: 1080px) {
  .nav-shell {
    grid-template-columns: auto auto;
  }

  .menu-button {
    display: inline-grid;
    justify-self: end;
    gap: 5px;
    width: 46px;
    height: 42px;
    padding: 10px;
    border: 1px solid var(--line-dark);
    border-radius: 6px;
    background: transparent;
  }

  .menu-button span {
    height: 2px;
    background: #fff;
  }

  .main-nav,
  .nav-cta {
    display: none;
  }

  .main-nav.is-open {
    display: block;
    grid-column: 1 / -1;
    padding-bottom: 20px;
  }

  .main-nav > ul {
    display: grid;
    justify-content: stretch;
    gap: 4px;
  }

  .nav-item {
    display: grid;
    grid-template-columns: 1fr auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .submenu-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    border: 0;
    background: transparent;
  }

  .submenu-toggle span {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--gold-2);
    border-bottom: 2px solid var(--gold-2);
    transform: rotate(45deg);
  }

  .sub-menu {
    position: static;
    grid-column: 1 / -1;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    display: none;
    margin-bottom: 8px;
    box-shadow: none;
  }

  .nav-item.is-open .sub-menu {
    display: block;
  }

  .hero-grid,
  .capability-grid,
  .detail-grid,
  .contact-grid,
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    align-items: center;
  }

  .hero-panel {
    max-width: 460px;
  }

  .service-grid,
  .technical-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-aside {
    position: static;
  }
}

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

  .top-line {
    display: none;
  }

  .nav-shell {
    min-height: 68px;
  }

  .brand {
    width: 148px;
  }

  .brand img {
    height: 46px;
  }

  .hero {
    min-height: auto;
    max-height: none;
  }

  .hero-grid {
    min-height: 660px;
    max-height: none;
    padding: 72px 0 46px;
    gap: 28px;
  }

  .hero p,
  .sub-hero p,
  .lead {
    max-width: 100%;
    font-size: 17px;
  }

  .hero h1 {
    font-size: clamp(42px, 12.5vw, 52px);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }

  .section-top,
  .contact-strip-inner {
    display: grid;
  }

  .service-grid,
  .technical-grid,
  .catalog-grid,
  .split-cards {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .gallery-item:first-child,
  .gallery-item:nth-child(4) {
    grid-row: span 1;
  }

  .catalog-card {
    grid-template-columns: 1fr;
  }

  .catalog-card img {
    width: 100%;
    height: 230px;
  }

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

  .sub-hero {
    min-height: 340px;
    padding: 92px 0 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
