:root {
  --ink: #17151d;
  --muted: #64606f;
  --line: #e7e2ec;
  --paper: #fbfaf7;
  --white: #ffffff;
  --violet: #7b55a6;
  --violet-dark: #3d265d;
  --teal: #147c7d;
  --gold: #c19135;
  --shadow: 0 20px 60px rgba(37, 28, 48, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid rgba(231, 226, 236, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 150px;
}

.brand img {
  display: block;
  width: 156px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 38px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--violet-dark);
}

.header-action,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1;
}

.header-action,
.primary-button {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 10px 24px rgba(20, 124, 125, 0.22);
}

.secondary-button {
  color: var(--violet-dark);
  background: var(--white);
  border: 1px solid var(--line);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 360px);
  align-items: end;
  gap: clamp(24px, 6vw, 80px);
  min-height: calc(100vh - 78px);
  padding: clamp(56px, 9vw, 106px) clamp(18px, 5vw, 64px) clamp(44px, 7vw, 80px);
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(105deg, rgba(24, 19, 31, 0.93), rgba(61, 38, 93, 0.76) 48%, rgba(20, 124, 125, 0.58)),
    url("assets/malconst-logo.jpeg") right 12% top 18% / min(46vw, 520px) auto no-repeat,
    #241b31;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.8;
}

.beam {
  position: absolute;
  bottom: -8%;
  width: 18vw;
  min-width: 130px;
  height: 88%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  transform-origin: bottom center;
}

.beam-one {
  left: 52%;
  transform: skewX(-19deg);
}

.beam-two {
  right: 4%;
  transform: skewX(17deg);
}

.structure-grid {
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.17) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(transparent, black);
}

.hero-content {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: "Barlow", Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: "Barlow", Arial, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(4.2rem, 13vw, 10.5rem);
  line-height: 0.82;
  font-weight: 800;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  line-height: 1.5;
}

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

.contact-panel {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.contact-panel span,
.contact-panel strong {
  display: block;
}

.contact-panel span {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-panel strong {
  margin-bottom: 12px;
  font-family: "Barlow", Arial, sans-serif;
  font-size: 1.85rem;
  line-height: 1;
}

.contact-panel p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 64px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(20px, 5vw, 70px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto 34px;
}

.section-heading h2,
.company-band h2 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 5vw, 4.3rem);
  line-height: 0.98;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.service-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 36px rgba(37, 28, 48, 0.07);
}

.service-card span {
  display: inline-flex;
  margin-bottom: 64px;
  color: var(--teal);
  font-weight: 900;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.55rem;
  line-height: 1.05;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.company-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
  padding: clamp(62px, 9vw, 112px) clamp(18px, 5vw, 64px);
  color: var(--white);
  background: linear-gradient(135deg, var(--violet-dark), #1a5f63);
}

.company-band > * {
  max-width: 760px;
}

.company-band p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.7;
}


.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
  padding: 34px clamp(18px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.76);
  background: #17151d;
}

.footer-brand,
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand strong,
.site-footer a {
  color: var(--white);
  font-weight: 800;
}

.footer-brand span,
.footer-info span {
  line-height: 1.55;
}

.footer-info {
  justify-self: end;
  max-width: 620px;
  text-align: right;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .hero,
  .section-heading,
  .company-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

@media (max-width: 560px) {
  .site-header {
    gap: 14px;
  }

  .brand img {
    width: 132px;
  }

  .header-action {
    padding: 0 16px;
  }

  .nav-links {
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  h1 {
    font-size: clamp(3.5rem, 22vw, 5.8rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-info {
    justify-self: start;
    text-align: left;
  }
}

