:root {
  --navy: #0d1b2a;
  --navy-2: #13263b;
  --navy-3: #1c3550;
  --ink: #1b2733;
  --muted: #5b6b7c;
  --line: #dde3ea;
  --bg: #ffffff;
  --bg-alt: #f3f5f8;
  --orange: #f26b1d;
  --orange-d: #d9560f;
  --amber: #ffb020;
  --steel: #8a9bb0;
  --radius: 12px;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: .2px; }
h2 { font-size: clamp(30px, 4vw, 44px); color: var(--navy); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- butoane ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 8px; font-weight: 600; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; font-family: var(--body); }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-d); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-3); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(13,27,42,.96); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { font-family: var(--head); font-size: 22px; letter-spacing: 1px; font-weight: 600; white-space: nowrap; }
.brand-text strong { color: var(--orange); font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) { color: #c9d3de; text-decoration: none; font-weight: 500; font-size: 16px; transition: color .2s; }
.main-nav a:not(.btn):hover { color: #fff; }
.header-inner { gap: 20px; }
.main-nav { margin-left: auto; }
.lang-switch { display: flex; flex: none; border: 1px solid rgba(255,255,255,.18); border-radius: 7px; overflow: hidden; }
.lang-switch a { padding: 6px 10px; font-size: 13px; font-weight: 700; letter-spacing: 1px; color: #a9b7c6; text-decoration: none; transition: background .2s, color .2s; }
.lang-switch a:hover { color: #fff; }
.lang-switch a[aria-current] { background: rgba(255,255,255,.12); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(900px 420px at 85% 10%, rgba(242,107,29,.18), transparent 60%),
  linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, #000 40%, transparent 85%); pointer-events: none; }
.hero-inner { position: relative; padding-top: 88px; padding-bottom: 40px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--amber); margin-bottom: 18px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 78px); font-weight: 700; max-width: 900px; margin-bottom: 22px; }
.hero h1 span { display: block; color: #c9d3de; font-weight: 600; font-size: .55em; margin-top: 10px; line-height: 1.2; }
.lead { font-size: 19px; color: #c9d3de; max-width: 680px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 28px; }
.hero-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips li { font-size: 14px; font-weight: 500; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #dfe6ee; }

.train-scene { position: relative; margin-top: 30px; }
.train-scene svg { width: 100%; height: auto; max-height: 260px; margin: 0 auto; }
.scroll-sleepers { animation: slide-60 .6s linear infinite; }
.scroll-masts { animation: slide-400 4s linear infinite; }
.wheels use { transform-box: view-box; transform-origin: 0 0; animation: spin .82s linear infinite; }
@keyframes slide-60 { to { transform: translateX(-60px); } }
@keyframes slide-400 { to { transform: translateX(-400px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .scroll-sleepers, .scroll-masts, .wheels use { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- bandă ---------- */
.strip { background: var(--navy); color: #fff; border-top: 1px solid rgba(255,255,255,.06); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.strip-grid > div { padding: 30px 24px; border-left: 1px solid rgba(255,255,255,.08); }
.strip-grid > div:first-child { border-left: 0; padding-left: 0; }
.strip-ico { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: rgba(242,107,29,.15); color: var(--orange); font-size: 18px; margin-bottom: 12px; }
.strip h3 { font-size: 20px; margin-bottom: 4px; }
.strip p { font-size: 15px; color: #a9b7c6; margin: 0; }

/* ---------- secțiuni ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.kicker { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--orange); margin-bottom: 10px; }
.section-lead { font-size: 19px; color: var(--muted); max-width: 720px; margin-bottom: 44px; }

/* despre */
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: start; }
.about-grid > div > p { color: #3a4856; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.about-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 36px; position: relative; overflow: hidden; }
.about-card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; border: 22px solid rgba(242,107,29,.18); }
.about-card h3 { font-size: 28px; color: #fff; margin-bottom: 20px; }
.about-card dl { margin: 0; position: relative; z-index: 1; }
.about-card dl > div { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1); }
.about-card dt { font-family: var(--head); font-size: 19px; font-weight: 700; color: var(--amber); }
.about-card dd { margin: 2px 0 0; color: #c9d3de; font-size: 16px; }

/* servicii */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(13,27,42,.1); border-color: transparent; }
.card-ico { width: 56px; height: 56px; border-radius: 12px; background: rgba(242,107,29,.1); display: grid; place-items: center; margin-bottom: 18px; }
.card-ico svg { width: 34px; height: 34px; fill: var(--orange); stroke: var(--orange); stroke-width: 0; }
.card-ico svg [stroke-width] { fill: none; }
.card h3 { color: var(--navy); }
.card p { color: var(--muted); margin: 0; font-size: 16px; }

/* mărfuri */
.cargo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cargo-item { background: #fff; padding: 26px 24px; display: flex; flex-direction: column; }
.cargo-item h3 { font-size: 20px; color: var(--navy); }
.cargo-item p { font-size: 15px; color: var(--muted); flex: 1; }
.wagons { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.wagon { font-size: 13px; font-weight: 500; line-height: 1.35; padding: 4px 10px; border-radius: 6px; background: var(--bg-alt); color: var(--muted); border-left: 3px solid var(--orange); }
.wagon b { font-weight: 700; letter-spacing: .4px; color: var(--navy-3); margin-right: 4px; }

/* rețea */
.section-dark { background: linear-gradient(180deg, var(--navy) 0%, #0a1622 100%); color: #fff; }
.section-dark h2 { color: #fff; }
.network { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: center; }
.network-text > p { color: #c9d3de; }
.network-text h3 { color: var(--amber); font-size: 20px; margin-top: 28px; }
.borders { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.borders li { display: flex; align-items: center; gap: 12px; color: #dfe6ee; }
.borders b { display: inline-grid; place-items: center; min-width: 38px; height: 26px; border-radius: 5px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); font-size: 13px; letter-spacing: 1px; color: #fff; }
.note { font-size: 15px; color: #8fa1b5 !important; border-left: 3px solid var(--orange); padding-left: 14px; }
.map { margin: 0; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 18px 18px 14px; }
.map svg { width: 100%; height: auto; }
.ln-sec polyline { fill: none; stroke: #4e6782; stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.ln-main { fill: none; stroke: var(--orange); stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
.nd circle { fill: var(--navy); stroke: #c9d3de; stroke-width: 2.5; }
.nd-cap { fill: #fff; stroke: var(--orange); stroke-width: 4; }
.nd-port circle { fill: var(--orange); }
.nd-port path { stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.nd-border rect { fill: var(--amber); stroke: var(--navy); stroke-width: 2; }
.lb text { font-family: var(--body); font-size: 15px; font-weight: 600; fill: #dfe6ee; }
.lb text.sm { font-size: 13px; font-weight: 500; fill: #8fa1b5; }
.lb text.cap { font-size: 17px; font-weight: 700; fill: #fff; }
.cc text { font-family: var(--head); font-size: 16px; font-weight: 700; fill: #3e5670; letter-spacing: 2px; }
.map figcaption { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: #a9b7c6; margin-top: 10px; }
.lg { display: inline-block; vertical-align: middle; margin-right: 8px; }
.lg-main { width: 22px; height: 5px; border-radius: 3px; background: var(--orange); }
.lg-sec { width: 22px; height: 4px; border-radius: 3px; background: #4e6782; }
.lg-border { width: 10px; height: 10px; background: var(--amber); transform: rotate(45deg); }

/* de ce noi */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 40px; }
.why > div { border-top: 3px solid var(--navy); padding-top: 22px; }
.why-n { font-family: var(--head); font-size: 44px; font-weight: 700; color: var(--orange); line-height: 1; display: block; margin-bottom: 12px; }
.why h3 { color: var(--navy); }
.why p { color: var(--muted); font-size: 16px; margin: 0; }

/* proces */
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 24px; right: 24px; top: 24px; height: 3px; background: repeating-linear-gradient(90deg, var(--navy) 0 18px, transparent 18px 26px); opacity: .25; }
.steps li { counter-increment: s; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--head); font-size: 22px; font-weight: 700; margin-bottom: 18px; position: relative; box-shadow: 0 0 0 6px var(--bg-alt); }
.steps li:last-child::before { background: var(--orange); }
.steps h3 { color: var(--navy); font-size: 21px; }
.steps p { color: var(--muted); font-size: 15px; margin: 0; }

/* cta */
.cta-band { background: var(--orange); color: #fff; padding: 56px 0; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 14px, transparent 14px 28px); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; font-size: 18px; color: #fff3ea; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.contact-grid > div > p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list > li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-list span { color: var(--muted); font-size: 15px; }
.contact-list strong, .contact-list a { font-weight: 600; color: var(--navy); text-decoration: none; }
.contact-list a:hover { color: var(--orange); }
.locations { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.locations li { color: var(--ink); font-size: 16px; line-height: 1.4; }
.locations b { display: block; color: var(--navy); font-weight: 700; }
.ph { background: rgba(255,176,32,.18); border-radius: 4px; padding: 0 4px; }

.quote-form { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.quote-form h3 { color: var(--navy); font-size: 26px; margin-bottom: 18px; }
.quote-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form label { display: block; font-size: 14px; font-weight: 600; color: var(--navy-3); margin-bottom: 16px; }
.quote-form input, .quote-form select, .quote-form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid #cbd4de; border-radius: 8px; transition: border-color .2s, box-shadow .2s; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,107,29,.18); }
.quote-form .invalid { border-color: #c0392b; }
.quote-form textarea { resize: vertical; }
.quote-form .btn { width: 100%; margin-top: 4px; }
.form-msg { margin: 14px 0 0; font-size: 15px; min-height: 1.4em; }
.form-msg.err { color: #c0392b; }
.form-msg.ok { color: #1e7d45; }

/* footer */
.site-footer { background: var(--navy); color: #a9b7c6; padding: 64px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 44px; }
.footer-grid p { margin-top: 16px; }
.footer-grid h4 { color: #fff; font-size: 18px; margin-bottom: 14px; }
.footer-grid > div > a:not(.brand) { display: block; text-decoration: none; margin-bottom: 8px; }
.footer-grid a:hover { color: #fff; }
.site-footer .ph { background: rgba(255,176,32,.12); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; padding-bottom: 24px; font-size: 14px; }
.footer-bottom a { text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .main-nav { gap: 18px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cargo { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .network { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .steps::before { display: none; }
}
@media (max-width: 960px) {
  .lang-switch { margin-left: auto; }
  .nav-toggle { display: block; }
  .main-nav { position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); padding: 8px 24px 24px; border-bottom: 1px solid rgba(255,255,255,.08); transform: translateY(-120%); visibility: hidden; transition: transform .3s, visibility .3s; }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .main-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .main-nav .btn { margin-top: 16px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid > div { border-left: 0; padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 68px 0; }
  .hero-inner { padding-top: 56px; }
  .brand-text { font-size: 19px; }
  .header-inner { gap: 10px; }
  .brand-mark { width: 32px; height: 32px; }
  .cards, .cargo, .why, .strip-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .quote-form { padding: 22px; }
  .quote-form .row { grid-template-columns: 1fr; gap: 0; }
  .contact-list > li { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; }
  .train-scene svg { width: 180%; max-width: none; max-height: none; margin-left: 0; }
}
