/* EG Nordic – "Kelias" dark multi-page design */
@font-face { font-family: "Heros Cn"; font-weight: 700; font-display: swap; src: url("../fonts/heroscn-bold.woff") format("woff"); }
@font-face { font-family: "Heros Cn"; font-weight: 400; font-display: swap; src: url("../fonts/heroscn-regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 300; font-display: swap; src: url("../fonts/inter-Light.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-Regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-Medium.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-SemiBold.woff") format("woff"); }

:root {
  --night: #15191d;
  --asphalt: #1f2428;
  --line: #363e44;
  --paper: #eef0ee;
  --muted: #a3acb2;
  --dim: #7b858c;
  --marking: #f0c02e;
  --waste: #8fd1b0;
  --urban: #9fbbe0;
  --roads: #f0c02e;
  --display: "Heros Cn", "Arial Narrow", sans-serif;
  --text: "Inter", system-ui, -apple-system, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--text); font-size: 17px; line-height: 1.6; color: var(--paper); background: var(--night); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--marking); outline-offset: 3px; }
.wrap, .container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 300; background: var(--marking); color: #111; padding: 10px 16px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* Header */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; background: rgba(21, 25, 29, 0.82); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo img { height: 46px; width: auto; filter: invert(1) brightness(1.5); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 0.93rem; color: #cfd5d9; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; border-bottom-color: rgba(240,192,46,.6); }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--marking); }
.header-tools { display: flex; align-items: center; }
.lang-switch { display: flex; border: 1px solid #485158; border-radius: 4px; overflow: hidden; }
.lang-btn { text-decoration: none; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; padding: 6px 10px; color: #c3cad0; }
.lang-btn + .lang-btn { border-left: 1px solid #485158; }
.lang-btn:hover { color: #fff; }
.lang-btn.active { background: var(--marking); color: #15191d; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; flex-direction: column; gap: 5px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--paper); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--text); font-size: 0.95rem; font-weight: 600; padding: 14px 26px; border-radius: 3px; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background .15s, border-color .15s; }
.btn-sign { background: var(--marking); color: #15191d; }
.btn-sign:hover { background: #ffd34a; }
.btn-line { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(21,25,29,.25); }
.btn-line:hover { border-color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Illustration */
.scene, .scene img { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene img { object-fit: cover; object-position: 50% 55%; }

/* Home hero */
.hero { position: relative; min-height: min(100vh, 940px); display: flex; align-items: flex-start; padding: calc(var(--header-h) + clamp(40px, 9vh, 110px)) 0 80px; overflow: hidden; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(14,18,24,.85) 0%, rgba(14,18,24,.7) 30%, rgba(14,18,24,.3) 48%, rgba(14,18,24,0) 64%),
              linear-gradient(180deg, rgba(14,18,24,.35) 0%, rgba(14,18,24,0) 30%, rgba(21,25,29,0) 75%, var(--night) 100%); }
.hero .scene { z-index: -2; }
.hero-title { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: .96; letter-spacing: -.005em; max-width: 12ch; text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero-sub { max-width: 44ch; margin-top: 24px; font-size: 1.1rem; font-weight: 300; color: #e3e7ea; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.facts-band { background: var(--night); }
.hero-facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-facts > div { padding: 24px 20px 26px 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.hero-facts > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.hero-facts dd { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; }
.hero-facts dt { font-size: .86rem; color: var(--muted); }

/* Home overview */
.overview li { border-top: 1px solid var(--line); }
.overview li:last-child { border-bottom: 1px solid var(--line); }
.ov-link { display: grid; grid-template-columns: 4fr 6fr auto; gap: 32px; align-items: baseline; padding: 34px 0; text-decoration: none; }
.ov-title { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; transition: color .15s; }
.ov-text { color: var(--muted); max-width: 52ch; }
.ov-more { font-size: .9rem; font-weight: 600; color: var(--marking); white-space: nowrap; border-bottom: 2px solid transparent; }
.ov-link:hover .ov-title { color: var(--marking); }
.ov-link:hover .ov-more { border-bottom-color: var(--marking); }

/* Sub-page hero */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + clamp(56px, 10vh, 120px)) 0 clamp(48px, 7vh, 80px); min-height: 380px; display: flex; align-items: flex-end; }
.page-hero .scene { z-index: -2; }
.page-hero .scene img { object-position: 50% 42%; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(14,18,24,.86) 0%, rgba(14,18,24,.55) 45%, rgba(14,18,24,.2) 100%),
              linear-gradient(180deg, rgba(14,18,24,0) 50%, var(--night) 100%); }
.page-title { font-family: var(--display); font-weight: 700; font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: .95; }
.page-intro { margin-top: 16px; max-width: 52ch; font-size: 1.1rem; color: #dfe4e7; font-weight: 300; }

/* Bands */
.band { padding: clamp(64px, 9vw, 120px) 0; }
.band-dark { background: var(--night); }
.band-asphalt { background: var(--asphalt); }
.h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1; }
.lead { margin-top: 14px; font-size: 1.06rem; color: var(--muted); max-width: 46ch; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }

/* Services */
.svc-item { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 80px); padding: 40px 0; border-top: 1px solid var(--line); }
.svc-item:last-child { border-bottom: 1px solid var(--line); }
.svc-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.05; }
.svc-body > p { color: #d3d9dd; max-width: 56ch; }
.ticks { margin-top: 18px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 3px; background: var(--marking); }

/* Process – the road */
.route { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); padding-top: 72px; }
.route::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 30px; background: #2b3136; border-top: 3px solid #d9dcd8; border-bottom: 3px solid #d9dcd8; }
.route::after { content: ""; position: absolute; left: 0; right: 0; top: 31.5px; height: 3px; background: repeating-linear-gradient(90deg, var(--marking) 0 22px, transparent 22px 36px); }
.station { position: relative; padding-right: 24px; }
.station::before { content: ""; position: absolute; left: 0; top: -72px; width: 3px; height: 60px; background: var(--paper); opacity: .8; }
.km { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; background: var(--paper); color: #15191d; padding: 2px 8px; border-radius: 2px; margin-bottom: 14px; }
.station h2 { font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 1.1; margin-bottom: 8px; }
.station p { font-size: .94rem; color: var(--muted); }
.station-end .km { background: var(--marking); }
.route-note { margin-top: 56px; max-width: 60ch; padding-left: 16px; border-left: 3px solid var(--marking); color: #d3d9dd; }

/* Experience */
.areas { display: grid; }
.area { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 80px); padding: 36px 0; border-top: 1px solid var(--line); }
.area:last-child { border-bottom: 1px solid var(--line); }
.area dt { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.05; display: flex; align-items: baseline; gap: 14px; }
.area dt::before { content: ""; width: 12px; height: 12px; flex: none; transform: translateY(-2px); }
.area-roads dt::before { background: var(--roads); }
.area-urban dt::before { background: var(--urban); }
.area-waste dt::before { background: var(--waste); }
.area dd { color: #d3d9dd; font-size: 1.08rem; max-width: 52ch; }

/* About */
.about-company p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: #dfe4e7; font-weight: 300; margin-bottom: 18px; max-width: 60ch; }
.facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 24px 48px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 900px; }
.facts dt { font-size: .85rem; color: var(--dim); }
.facts dd { font-weight: 500; }
.founder { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: clamp(64px, 8vw, 112px); }
.founder-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.founder-photo::after { content: ""; display: block; height: 5px; margin-top: 12px; background: repeating-linear-gradient(90deg, var(--marking) 0 22px, transparent 22px 36px); }
.founder-name { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; }
.founder-role { margin-top: 10px; color: var(--muted); }
.founder-langs { margin-top: 2px; color: var(--dim); font-size: .92rem; }
.founder-bio { margin-top: 24px; color: #d3d9dd; max-width: 60ch; }
.skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.skills li { font-size: .85rem; padding: 6px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--asphalt); color: #d3d9dd; }

/* Contact */
.contact-lines { display: grid; gap: 24px; }
.contact-lines dt { font-size: .85rem; color: var(--dim); }
.contact-lines dd { font-size: 1.08rem; line-height: 1.5; }
.contact-lines a { text-decoration: none; border-bottom: 1px solid var(--marking); }
.contact-form { display: grid; gap: 22px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .86rem; color: var(--muted); }
.field input, .field textarea { font: inherit; color: var(--paper); background: var(--asphalt); border: 1px solid var(--line); border-bottom: 2px solid #5b656c; border-radius: 3px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--marking); background: #232a2f; }
.form-privacy { font-size: .86rem; color: var(--dim); }
.form-privacy a { color: var(--paper); }
.contact-form .btn { justify-self: start; }
.form-note { font-size: .95rem; }
.form-note--ok { color: #9be0b9; }
.form-note--error { color: #ffb4ab; }
.form-note a { color: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.footer { background: #101316; color: #b9c1c6; padding: 56px 0 28px; font-size: .9rem; border-top: 1px solid #22282d; }
.footer-top { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); padding-bottom: 36px; border-bottom: 1px solid #262d32; }
.footer-logo { height: 44px; width: auto; filter: invert(1) brightness(1.5); }
.footer-tagline { margin-top: 16px; font-family: var(--display); font-size: 1.3rem; line-height: 1.15; color: var(--paper); max-width: 22ch; }
.footer-heading { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--paper); margin-bottom: 12px; }
.legal-list li { margin-bottom: 4px; }
.legal-list strong { font-weight: 400; color: var(--dim); }
.legal-list a { color: var(--paper); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; color: var(--dim); font-size: .82rem; }
.footer-links a { color: #c3cad0; }

/* Privacy */
.privacy-page { padding: calc(var(--header-h) + 64px) 0 96px; }
.privacy-page h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; }
.privacy-page .updated { margin: 12px 0 32px; color: var(--dim); font-size: .9rem; }
.privacy-page h2 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; margin: 36px 0 10px; }
.privacy-page p, .privacy-page li { max-width: 68ch; color: #d3d9dd; margin-bottom: 10px; }
.privacy-page ul { list-style: disc; padding-left: 22px; }
.privacy-page a { color: var(--paper); }
.back-link { margin-top: 40px; }

/* Responsive */
@media (max-width: 960px) {
  .route { grid-template-columns: 1fr; padding-top: 0; padding-left: 64px; gap: 36px; }
  .route::before { left: 0; right: auto; top: 0; bottom: 0; width: 30px; height: auto; border: 0; border-left: 3px solid #d9dcd8; border-right: 3px solid #d9dcd8; }
  .route::after { left: 13.5px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; background: repeating-linear-gradient(180deg, var(--marking) 0 22px, transparent 22px 36px); }
  .station::before { left: -30px; top: 12px; width: 22px; height: 3px; }
  .facts { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 2px; padding: 12px var(--gutter) 20px; background: var(--night); border-top: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; font-size: 1.05rem; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: flex; }
  .split, .founder, .footer-top, .svc-item, .area { grid-template-columns: 1fr; }
  .svc-item, .area { gap: 12px; }
  .founder-photo { max-width: 420px; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .hero-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ov-link { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .hero::after { background: linear-gradient(180deg, rgba(14,18,24,.75) 0%, rgba(14,18,24,.35) 55%, var(--night) 100%); }
}
@media (max-width: 480px) {
  :root { --header-h: 64px; }
  .logo img { height: 38px; }
  .hero-facts dd { font-size: 1.2rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .facts { grid-template-columns: 1fr; }
}
