.railway-page .header { width: min(1440px, 100%); }
.railway-page .header__logo img { object-fit: contain; mix-blend-mode: normal; }
.railway-page .header__nav { color: #fff; }
.rail-container { width: min(1120px, calc(100% - 64px)); margin: 0 auto; }
.rail-section { padding: 105px 0; }
.rail-section--gray { background: #eef0ef; }
.eyebrow { margin-bottom: 14px; color: #929aa5; font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.eyebrow--green { color: var(--brand); }
.rail-hero { position: relative; display: flex; align-items: center; min-height: 500px; overflow: hidden; padding: 132px max(32px, calc((100vw - 1120px) / 2)) 72px; background: #111; color: #fff; }
.rail-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,16,13,.84) 0%, rgba(10,16,13,.62) 42%, rgba(10,16,13,.28) 100%), url("../assets/railway/railway-hero.jpeg") center 50% / cover; }
.rail-hero__inner { position: relative; z-index: 1; }
.rail-hero h1 { margin-bottom: 20px; font-size: clamp(46px, 5vw, 70px); letter-spacing: -.04em; }
.rail-hero__inner > p:last-child { font-size: 15px; font-weight: 500; line-height: 1.9; }
.rail-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 88px; }
.rail-copy h2, .rail-heading h2 { margin-bottom: 26px; font-size: clamp(31px, 3.3vw, 44px); line-height: 1.4; }
.rail-copy > p:not(.eyebrow) { margin-top: 17px; color: #59626d; font-size: 14px; line-height: 2; }
.rail-photo { height: 430px; overflow: hidden; background: #e1e5e2; }
.rail-photo--round { border-radius: 4px 52px 4px 4px; }
.rail-photo img { width: 100%; height: 100%; object-fit: cover; }
.rail-heading { margin-bottom: 50px; text-align: center; }
.rail-heading > p:last-child:not(.eyebrow) { color: #68717c; font-size: 14px; line-height: 1.8; }
.appeal__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.appeal-card { overflow: hidden; border: 1px solid #d9dddb; border-radius: 5px; background: #fff; }
.appeal-card > img { width: 100%; height: 230px; object-fit: cover; }
.appeal-card > div { padding: 27px 27px 32px; }
.appeal-card div > span, .service-card__image > span { display: inline-grid; place-items: center; min-width: 38px; height: 22px; margin-bottom: 14px; border-radius: 30px; background: #111; color: #fff; font-family: var(--font-en); font-size: 10px; }
.appeal-card h3 { margin-bottom: 13px; font-size: 19px; line-height: 1.55; }
.appeal-card p { color: #66707a; font-size: 12px; line-height: 1.85; }
.safety__layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 76px; }
.safety-list, .shop-reasons { display: grid; gap: 18px; margin-top: 30px; }
.safety-list li, .shop-reasons li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; }
.safety-list li > span, .shop-reasons li > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #111; color: #fff; font-family: var(--font-en); font-size: 11px; font-weight: 700; }
.safety-list h3, .shop-reasons h3 { margin-bottom: 3px; font-size: 14px; }
.safety-list p, .shop-reasons p { color: #68717c; font-size: 11px; line-height: 1.7; }
.safety__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.safety__photos img { width: 100%; height: 190px; object-fit: cover; border-radius: 3px; }
.safety__photos .safety__photo-main { grid-column: 1 / -1; height: 280px; border-radius: 3px 42px 3px 3px; }
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.service-card { overflow: hidden; border: 1px solid #d9dddb; border-radius: 5px; background: #fff; }
.service-card__image { position: relative; height: 290px; overflow: hidden; }
.service-card__image img { width: 100%; height: 100%; object-fit: cover; }
.service-card__image > span { position: absolute; z-index: 1; top: 18px; left: 18px; margin: 0; }
.service-card__body { padding: 27px 29px 31px; }
.service-card h3 { margin-bottom: 12px; font-size: 20px; }
.service-card p { color: #66707a; font-size: 12px; line-height: 1.85; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.tags span { border-radius: 20px; padding: 6px 10px; background: #e8f6ee; color: var(--brand); font-size: 10px; font-weight: 700; }
.strengths__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; }
.strengths__grid article { border-top: 1px solid #cfd5d1; padding-top: 25px; }
.strengths__grid article > span { display: block; margin-bottom: 12px; color: #dfe5e1; font-family: var(--font-en); font-size: 48px; font-weight: 700; }
.strengths__grid h3 { margin-bottom: 10px; font-size: 18px; }
.strengths__grid p { color: #68717c; font-size: 12px; line-height: 1.8; }
.rail-works__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 44px; }
.rail-works__head h2 { font-size: 40px; }
.rail-works__head > a { display: flex; gap: 22px; border: 1px solid #111; border-radius: 100px; padding: 13px 18px; font-size: 12px; font-weight: 700; }
.rail-works__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rail-works__grid article { overflow: hidden; border: 1px solid #d8ddda; border-radius: 4px; background: #fff; }
.rail-works__card-link { display: block; height: 100%; padding-bottom: 24px; color: inherit; text-decoration: none; }
.rail-works__card-link > div { position: relative; height: 240px; overflow: hidden; }
.rail-works__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.rail-works__card-link:hover img { transform: scale(1.035); }
.rail-works__card-link > div > span { position: absolute; z-index: 1; left: 18px; top: 16px; color: rgba(255,255,255,.75); font-family: var(--font-en); font-size: 32px; font-weight: 700; }
.rail-works__meta { margin: 19px 22px 8px; color: var(--brand); font-size: 10px; font-weight: 700; }
.rail-works__grid h3 { margin: 0 22px; font-size: 15px; }
.rail-works__empty { border: 1px solid #d8ddda; border-radius: 4px; padding: 36px 24px; background: #fff; color: #68717c; text-align: center; }
.rail-cta { padding: 70px 20px; background: #111; color: #fff; text-align: center; }
.rail-cta h2 { margin-bottom: 12px; font-size: 30px; }
.rail-cta > p:not(.eyebrow) { color: #aeb5b1; font-size: 13px; }
.rail-cta > a { display: inline-flex; gap: 24px; margin-top: 25px; border-radius: 100px; padding: 17px 23px; background: #fff; color: #151c19; font-size: 13px; font-weight: 700; }
.railway-page .footer { border-radius: 0; }

@media (max-width: 768px) {
  .railway-page .header { padding: 9px 15px; }
  .railway-page .header__logo img { content: url("../assets/shared/logo-color.png"); }
  .railway-page .header.is-stuck .header__logo img { content: url("../assets/shared/logo-color.png"); }
  .rail-container { width: min(calc(100% - 40px), 560px); }
  .rail-section { padding: 72px 0; }
  .rail-hero { min-height: 420px; padding: 120px 20px 60px; }
  .rail-hero h1 { font-size: 42px; }
  .rail-hero::before { background-position: 62% center; }
  .rail-split, .safety__layout { grid-template-columns: 1fr; gap: 38px; }
  .rail-copy h2, .rail-heading h2 { font-size: 30px; }
  .rail-photo { height: min(76vw, 360px); }
  .rail-heading { margin-bottom: 36px; }
  .appeal__grid, .services__grid, .strengths__grid, .rail-works__grid { grid-template-columns: 1fr; }
  .appeal-card > img { height: 230px; }
  .safety__photos .safety__photo-main { height: 220px; }
  .safety__photos img { height: 140px; }
  .service-card__image { height: 235px; }
  .rail-works__head { align-items: flex-start; gap: 22px; }
  .rail-works__head h2 { font-size: 30px; }
  .rail-works__head > a { padding: 10px 13px; white-space: nowrap; }
  .rail-works__card-link > div { height: 230px; }
  .rail-cta h2 { font-size: 24px; }
}
