:root {
  --navy: #071b33;
  --navy-2: #0d2b4c;
  --blue: #123c67;
  --accent: #f2a51a;
  --accent-dark: #d48410;
  --ink: #122033;
  --muted: #667386;
  --line: #dbe3ec;
  --paper: #f6f8fb;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(7, 27, 51, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.site-header {
  min-height: 760px;
  color: var(--white);
  background: var(--navy);
}

.nav {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px max(24px, calc((100vw - 1120px) / 2));
  background: rgba(7, 27, 51, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 132px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: transparent;
}

.nav-toggle span:not(.sr-only) {
  width: 20px;
  height: 2px;
  background: var(--white);
}

.hero {
  min-height: 760px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(7, 27, 51, 0.96) 0%, rgba(7, 27, 51, 0.86) 36%, rgba(7, 27, 51, 0.28) 72%),
    url("assets/railway-hero-web.png") center / cover no-repeat;
  padding: 120px max(24px, calc((100vw - 1120px) / 2)) 80px;
}

.hero-content {
  max-width: 720px;
  min-width: 0;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0 0 24px;
  max-width: 790px;
  font-size: clamp(2.7rem, 5vw, 4.55rem);
  line-height: 1.02;
  hyphens: auto;
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  line-height: 1.08;
}

h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1.25;
}

.hero p:not(.eyebrow) {
  max-width: 670px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.18rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

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

.button-primary:hover {
  background: #ffc14f;
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover {
  border-color: var(--accent);
}

.section {
  padding: 92px 0;
}

.intro,
.service-list,
.contact {
  background: var(--paper);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 72px;
  align-items: start;
}

.section-copy p,
.safety p,
.references p,
.detail-grid p,
.service-card p,
.footer p {
  color: var(--muted);
}

.section-copy p:first-child {
  margin-top: 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 40px;
}

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

.service-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 38px rgba(7, 27, 51, 0.08);
}

.icon {
  display: inline-flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 8px;
  color: var(--accent);
  background: rgba(242, 165, 26, 0.13);
}

.icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.safety {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.safety h2,
.safety h3 {
  color: var(--white);
}

.safety p {
  color: rgba(255, 255, 255, 0.78);
}

.safety-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 56px;
  align-items: center;
}

.quality-list {
  padding: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.quality-list ul {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.quality-list li {
  position: relative;
  padding-left: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.quality-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
}

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

.detail-grid article {
  padding-top: 18px;
  border-top: 4px solid var(--accent);
}

.references {
  background: var(--white);
}

.references-inner {
  padding: 44px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(7, 27, 51, 0.94), rgba(18, 60, 103, 0.9)),
    url("assets/railway-hero-web.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.references h2,
.references p {
  max-width: 760px;
  color: var(--white);
}

.references p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-simple {
  max-width: 760px;
}

.contact-card {
  margin-top: 28px;
  padding: 30px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-card img {
  width: 180px;
  margin-bottom: 26px;
}

.contact-card p {
  margin: 9px 0;
}

.contact-card a,
.footer a {
  color: inherit;
  text-decoration-color: rgba(242, 165, 26, 0.65);
  text-underline-offset: 4px;
}

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

.footer {
  padding: 54px 0 28px;
  color: var(--white);
  background: var(--navy);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer img {
  width: 160px;
  margin-bottom: 18px;
}

.footer p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer address {
  font-style: normal;
  line-height: 1.8;
}

.copyright {
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .service-grid,
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .safety-panel {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 760px) {
  .site-header,
  .hero {
    min-height: 690px;
  }

  .nav {
    padding: 14px 20px;
  }

  .brand img {
    width: 118px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 73px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 8px;
    background: var(--navy);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 14px;
  }

  .hero {
    align-items: flex-end;
    padding: 110px 20px 58px;
    background:
      linear-gradient(180deg, rgba(7, 27, 51, 0.28) 0%, rgba(7, 27, 51, 0.94) 60%),
      url("assets/railway-hero-web.png") center / cover no-repeat;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.7rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .hero p:not(.eyebrow) {
    font-size: 1.05rem;
  }

  .section {
    padding: 64px 0;
  }

  .container {
    width: min(100% - 32px, 1120px);
  }

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

  .references-inner,
  .contact-card,
  .quality-list,
  .service-card {
    padding: 24px;
  }

  .footer-inner {
    display: grid;
  }
}
