/* NGR Partners, ngr-partners.com */

@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --ink: #1E2422;
  --muted: #545B58;
  --paper: #F4F3EF;
  --surface: #FFFFFF;
  --line: #C9CCC7;
  --on-dark: #EEF0EC;
  --on-dark-muted: #A9B0AC;
  --accent-dark: #8CCB63;
  --green: #42871E;
  --green-text: #35701A;
  --cta: #3A7A1A;
  --cta-hover: #2F6615;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --display: "Jost", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: var(--green-text); }
a:hover { color: #2A5A14; }
a:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 600px) { .wrap { padding-left: 16px; padding-right: 16px; } }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 16px; z-index: 10; }
.skip:focus { left: 16px; top: 16px; }

.label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-text); }
.num { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.h2 { font-family: var(--display); font-weight: 300; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.15; }
.lead { font-size: 19px; max-width: 680px; }
.section { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
@media (max-width: 600px) { .section { padding-top: 64px; padding-bottom: 64px; gap: 32px; } }
.section-head { display: flex; flex-direction: column; gap: 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--ink); }
.site-header .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 42px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.nav a { color: var(--ink); text-decoration: none; padding: 13px 0; }
.nav a:hover { color: var(--green-text); }
.lang { color: var(--muted); padding: 13px 0; }
.lang strong { color: var(--ink); font-weight: 500; }
.lang a { color: var(--muted); text-decoration: none; padding: 13px 0; }

/* Hero */
.hero { padding-top: 72px; display: flex; flex-direction: column; gap: 40px; }
@media (max-width: 600px) { .hero { padding-top: 48px; gap: 28px; } }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-family: var(--display); font-weight: 300; font-size: clamp(38px, 6.6vw, 96px); line-height: 1.02; letter-spacing: 0.02em; text-transform: uppercase; hyphens: manual; }
.hero h1 .accent { color: var(--green); }
.hero h1 .dot { display: inline-block; width: 0.16em; height: 0.16em; margin-left: 0.06em; background: var(--green); }
.hero-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px 64px; align-items: end; }
.hero-row p { font-size: 20px; line-height: 1.55; max-width: 580px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; background: var(--cta); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; }
.btn:hover { background: var(--cta-hover); color: #fff; }
.link-strong { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 16px; }
.wagon { display: flex; flex-direction: column; margin-top: 8px; }
.wagon svg { width: 100%; height: auto; display: block; color: var(--ink); overflow: visible; }
.rail { height: 3px; background: var(--ink); }
.sleepers { height: 12px; background: repeating-linear-gradient(90deg, var(--ink) 0 22px, transparent 22px 56px); opacity: 0.55; }

/* Situations */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 40px 32px; }
.situation { border-top: 3px solid var(--green); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.situation h3 { font-family: var(--display); font-size: 23px; line-height: 1.25; font-weight: 400; }
.situation p:last-child { font-size: 16px; }

/* Services */
.band { background: var(--surface); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.card { border: 1px solid var(--ink); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.25; }
.card .desc { font-size: 16px; }
.card .result { font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; }
.card .result span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-text); display: block; margin-bottom: 4px; }

/* Projects */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px; }
.project { background: var(--surface); }
.meta { font-family: var(--mono); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; color: var(--muted); }
.status { color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 10px; height: 10px; display: inline-block; }
.status.done::before { background: var(--green); }
.status.ongoing::before { border: 2px solid var(--green); }

/* Person */
.person { border-top: 1px solid var(--ink); padding-top: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 56px 72px; align-items: start; }
@media (max-width: 600px) { .person { padding-top: 64px; gap: 40px; } }
.portrait { display: flex; flex-direction: column; gap: 16px; max-width: 440px; }
.portrait .frame { border: 3px solid var(--green); padding: 14px; }
.portrait .photo { background: var(--line); height: 440px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.portrait .photo img { height: 420px; width: auto; display: block; }
@media (max-width: 600px) { .portrait .photo { height: 360px; } .portrait .photo img { height: 345px; } }
.person-text { display: flex; flex-direction: column; gap: 20px; }
.person-text .verbs { font-family: var(--mono); font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-text); }
.person-text .intro { font-size: 19px; }
.timeline { display: flex; flex-direction: column; margin-top: 12px; border-bottom: 1px solid var(--ink); }
.timeline div { border-top: 1px solid var(--line); padding: 16px 0; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 24px; }
@media (max-width: 600px) { .timeline div { grid-template-columns: minmax(0, 1fr); } }
.timeline div:first-child { border-top-color: var(--ink); }
.timeline p:first-child { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.timeline p:last-child { font-size: 15px; }

/* Contact */
.contact { background: var(--ink); color: var(--on-dark); }
.contact .wrap { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 600px) { .contact .wrap { padding-top: 64px; padding-bottom: 64px; } }
.contact .label { color: var(--accent-dark); }
.contact .lead { font-size: 20px; max-width: 640px; }
.contact-links { display: flex; flex-direction: column; gap: 4px; font-family: var(--display); font-weight: 300; font-size: clamp(24px, 4vw, 54px); line-height: 1.2; }
.contact-links a { text-decoration: none; overflow-wrap: anywhere; display: inline-flex; align-items: center; min-height: 48px; }
.contact-links .mail { color: var(--on-dark); }
.contact-links .phone { color: var(--accent-dark); }
.contact-links a:hover { text-decoration: underline; }
.contact-person { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.contact-person .avatar { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: var(--paper); border: 2px solid var(--green); flex-shrink: 0; }
.contact-person .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; display: block; }
.contact-person p { font-size: 16px; line-height: 1.5; }
.contact-person span { color: var(--on-dark-muted); }

/* Footer */
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* Legal pages */
.legal { padding-top: 72px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.legal h1 { font-family: var(--display); font-weight: 300; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; letter-spacing: 0.02em; text-transform: uppercase; }
.legal-list { max-width: 820px; border-bottom: 1px solid var(--ink); }
.legal-list > div { border-top: 1px solid var(--line); padding: 20px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 4px 32px; }
.legal-list > div:first-child { border-top-color: var(--ink); }
.legal-list h2 { font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.legal-list p + p { margin-top: 12px; }
.legal-list ul { margin: 8px 0 0; padding-left: 20px; }
.note { max-width: 820px; font-size: 15px; color: var(--muted); }
