:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-soft: #eef1f4;
  --text: #1d2329;
  --muted: #5d6874;
  --line: #d9dee4;
  --accent: #b21f2d;
  --accent-dark: #7f1823;
  --steel: #334150;
  --safety: #e0ad22;
  --shadow: 0 18px 45px rgba(25, 34, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 222, 228, 0.85);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1120px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  background: var(--accent);
  color: #ffffff;
  border-radius: 6px;
  font-size: 18px;
}

.brand-text {
  font-size: 18px;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  overflow-x: auto;
  white-space: nowrap;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  padding: 8px 0;
}

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

.hero {
  position: relative;
  min-height: 76vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.92) 0%, rgba(16, 24, 32, 0.78) 42%, rgba(16, 24, 32, 0.28) 100%),
    url("images/hero-roof-safety.jpg") center / cover no-repeat;
  transform: scale(1.01);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 84px 0 96px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f6d15b;
}

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

h1 {
  margin-bottom: 18px;
  font-size: 76px;
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.22;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 22px;
  line-height: 1.42;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.button-light {
  background: #ffffff;
  color: var(--accent-dark);
}

.button-light:hover {
  background: #f2f4f6;
}

.section {
  padding: 88px 0;
  background: var(--surface);
}

.intro-band {
  border-top: 6px solid var(--accent);
}

.section-muted {
  background: var(--surface-soft);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.86fr) minmax(320px, 1.14fr);
  gap: 64px;
  align-items: start;
}

.section-copy {
  color: var(--steel);
  font-size: 18px;
}

.section-copy p:last-child,
.section-copy.single {
  margin-bottom: 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading-row {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(260px, 0.54fr);
  gap: 44px;
  align-items: end;
}

.heading-note {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 16px;
}

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

.competence-item {
  min-height: 260px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.item-number {
  display: block;
  margin-bottom: 38px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.competence-item p,
.direction-card p,
.trust-list,
.details-intro p {
  color: var(--muted);
}

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

.direction-card {
  min-height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(25, 34, 43, 0.06);
}

.direction-card img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  padding: 26px 18px 18px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.direction-body {
  padding: 22px;
}

.documents-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1.1fr);
  gap: 58px;
  align-items: start;
}

.trust-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.trust-list li {
  position: relative;
  padding: 17px 18px 17px 44px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 9px;
  height: 9px;
  background: var(--safety);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(224, 173, 34, 0.18);
}

.details-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(360px, 1.28fr);
  gap: 52px;
  align-items: start;
}

.details-intro {
  position: sticky;
  top: 96px;
}

.details-table {
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.details-table div {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
}

.details-table div:last-child {
  border-bottom: 0;
}

.details-table dt,
.details-table dd {
  margin: 0;
  padding: 17px 20px;
}

.details-table dt {
  background: #f2f4f6;
  color: var(--steel);
  font-weight: 800;
}

.details-table dd {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.details-table dd a {
  color: var(--accent-dark);
  font-weight: 700;
}

.section-contact {
  background: var(--steel);
  color: #ffffff;
}

.section-contact .section-kicker {
  color: #f6d15b;
}

.section-contact p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 0.82fr);
  gap: 48px;
  align-items: center;
}

.contact-actions {
  justify-content: flex-start;
}

.contact-line {
  width: 100%;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
  overflow-wrap: anywhere;
}

.footer {
  background: #161b20;
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer a {
  color: #ffffff;
}

@media (max-width: 980px) {
  .hero {
    min-height: 70vh;
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 32px;
  }

  .section-grid,
  .section-heading-row,
  .documents-layout,
  .details-layout,
  .contact-panel {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .details-intro {
    position: static;
  }
}

@media (max-width: 680px) {
  .container,
  .nav {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    min-height: 62px;
    gap: 14px;
  }

  .brand-text {
    font-size: 16px;
  }

  .nav-links {
    gap: 12px;
    font-size: 12px;
    justify-content: flex-start;
  }

  .nav-links a:first-child,
  .nav-links a:nth-child(2) {
    display: none;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-backdrop {
    background:
      linear-gradient(180deg, rgba(16, 24, 32, 0.9) 0%, rgba(16, 24, 32, 0.78) 58%, rgba(16, 24, 32, 0.62) 100%),
      url("images/hero-roof-safety.jpg") center / cover no-repeat;
  }

  .hero-content {
    padding: 68px 0 76px;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 27px;
  }

  .hero-lead,
  .section-copy {
    font-size: 17px;
  }

  .section {
    padding: 62px 0;
  }

  .competence-grid,
  .direction-grid {
    grid-template-columns: 1fr;
  }

  .competence-item {
    min-height: auto;
  }

  .item-number {
    margin-bottom: 20px;
  }

  .direction-card img {
    height: 190px;
  }

  .details-table div {
    grid-template-columns: 1fr;
  }

  .details-table dt,
  .details-table dd {
    padding: 14px 16px;
  }

  .button {
    width: 100%;
  }
}
