:root {
  --bg: #06111d;
  --bg-2: #081a28;
  --card: rgba(9, 25, 39, 0.78);
  --card-strong: rgba(11, 32, 48, 0.92);
  --line: rgba(137, 190, 221, 0.18);
  --text: #eef6fb;
  --muted: #9eb5c3;
  --muted-2: #6f899b;
  --orange: #ff5a1f;
  --orange-2: #ff7a2f;
  --blue: #0f5d94;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
  --radius: 28px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 80% 8%, rgba(255, 90, 31, 0.12), transparent 34%),
    radial-gradient(circle at 10% 25%, rgba(15, 93, 148, 0.18), transparent 32%),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  z-index: -1;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.container { width: min(var(--max), calc(100% - 44px)); margin-inline: auto; }
.section { padding: 112px 0; position: relative; }
.section-dark { background: linear-gradient(180deg, rgba(5, 14, 24, 0.64), rgba(9, 24, 36, 0.68)); border-block: 1px solid rgba(255,255,255,0.05); }

.cursor-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.13), transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  transition: opacity .25s ease;
}
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--orange), #ffc099);
  z-index: 1000;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 82px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 max(28px, calc((100vw - var(--max)) / 2));
  background: rgba(5, 14, 24, 0.58);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  transition: height .25s ease, background .25s ease;
}
.site-header.scrolled { height: 70px; background: rgba(5, 14, 24, 0.88); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #0f5d94; min-width: max-content; }
.brand-mark { width: 56px; height: 56px; color: #0f5d94; filter: drop-shadow(0 8px 22px rgba(15,93,148,.35)); }
.brand-text { display: flex; align-items: center; gap: 8px; line-height: .9; letter-spacing: -0.04em; }
.brand-text strong { font-size: 42px; color: var(--orange); }
.brand-text span { font-size: 18px; color: #0f5d94; font-weight: 800; letter-spacing: -0.05em; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.main-nav a { font-size: 14px; font-weight: 800; color: rgba(238, 246, 251, 0.82); position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -10px; width: 0; height: 2px; background: var(--orange); transition: width .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.04); }
.lang-btn { border: 0; color: var(--muted); background: transparent; border-radius: 999px; padding: 7px 10px; cursor: pointer; font-size: 12px; font-weight: 900; }
.lang-btn.active { color: #fff; background: rgba(255, 90, 31, 0.18); }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); border-radius: 12px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--text); transition: .2s; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 90, 31, 0.44);
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #ff3f0a);
  box-shadow: 0 16px 42px rgba(255, 90, 31, 0.24);
  font-weight: 900;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 22px 56px rgba(255, 90, 31, 0.33); }
.btn-small { min-height: 42px; padding-inline: 18px; font-size: 13px; }
.btn-ghost { background: rgba(255,255,255,0.06); box-shadow: none; border-color: rgba(255,255,255,0.18); }
.btn-ghost:hover { border-color: rgba(255, 90, 31, 0.5); box-shadow: 0 18px 44px rgba(0,0,0,0.2); }

.hero { min-height: 860px; padding: 180px 0 70px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url('assets/biomethane-plant-clean.webp') center/cover no-repeat; transform: scale(1.03); filter: saturate(1.04) contrast(1.05); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 12, 21, 0.96), rgba(4, 12, 21, 0.72) 42%, rgba(4, 12, 21, 0.35)), linear-gradient(180deg, rgba(4, 12, 21, .28), rgba(4, 12, 21, .88)); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .62fr); align-items: end; gap: 56px; z-index: 1; }
.eyebrow { color: var(--orange); text-transform: uppercase; letter-spacing: .12em; font-weight: 1000; font-size: 14px; margin: 0 0 16px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(46px, 7vw, 86px); line-height: .95; letter-spacing: -0.065em; margin-bottom: 24px; max-width: 780px; }
h2 { font-size: clamp(34px, 4.8vw, 58px); line-height: 1.02; letter-spacing: -0.055em; margin-bottom: 22px; }
h3 { font-size: 24px; line-height: 1.16; letter-spacing: -0.03em; margin-bottom: 10px; }
p { color: var(--muted); line-height: 1.68; }
.hero-lead { font-size: 21px; max-width: 660px; color: rgba(238,246,251,0.84); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.glass-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.hero-panel { padding: 30px; position: relative; overflow: hidden; }
.hero-panel::before { content: ""; position: absolute; inset: -50% -20% auto auto; width: 260px; height: 260px; background: radial-gradient(circle, rgba(255, 90, 31, 0.18), transparent 65%); }
.panel-topline { width: 74px; height: 4px; background: linear-gradient(90deg, var(--orange), transparent); border-radius: 999px; margin-bottom: 26px; }
.panel-label { color: var(--muted-2); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; margin-bottom: 8px; }
.hero-panel h2 { font-size: 34px; line-height: 1.05; }
.panel-checks { display: grid; gap: 12px; margin-top: 24px; }
.panel-checks span { color: var(--text); padding: 13px 14px; border: 1px solid rgba(255,255,255,0.09); border-radius: 15px; background: rgba(255,255,255,0.04); }
.panel-checks span::before { content: "✓"; color: var(--orange); font-weight: 1000; margin-right: 10px; }

.hero-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 62px; }
.stat-card { display: flex; align-items: center; gap: 17px; padding: 22px; border: 1px solid var(--line); background: rgba(8, 24, 37, 0.84); border-radius: 22px; backdrop-filter: blur(14px); min-height: 114px; }
.stat-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #ff9a61, var(--orange)); color: white; font-size: 24px; font-weight: 1000; box-shadow: inset 0 0 0 5px rgba(255,255,255,0.1), 0 16px 42px rgba(255,90,31,.26); flex: 0 0 auto; }
.stat-card strong { display: block; font-size: 28px; letter-spacing: -0.04em; }
.stat-card small { display: block; color: var(--muted); margin-top: 4px; line-height: 1.35; }

.split-grid, .impact-grid, .poland-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: center; }
.section-copy p { font-size: 17px; }
.image-card { border-radius: var(--radius); overflow: hidden; background: var(--card-strong); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.image-card img { width: 100%; height: 420px; object-fit: cover; }
.image-caption { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 14px 16px; border-radius: 16px; background: rgba(5,14,24,.78); border: 1px solid rgba(255,255,255,.1); color: rgba(238,246,251,.9); font-weight: 800; }
.feature-grid { margin-top: 58px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-grid article { padding: 26px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 24px; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.feature-grid article:hover { transform: translateY(-6px); border-color: rgba(255,90,31,.38); background: rgba(255,90,31,0.06); }
.feature-icon { display: inline-flex; color: var(--orange); font-weight: 1000; margin-bottom: 30px; letter-spacing: .08em; }
.feature-grid h3 { font-size: 22px; }
.feature-grid p { font-size: 15px; }

.section-heading { text-align: center; max-width: 820px; }
.process-visual { margin-top: 42px; }
.process-visual img { width: 100%; border-radius: 30px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.process-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.process-tab { min-height: 58px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); color: var(--text); font-weight: 900; cursor: pointer; transition: .2s ease; }
.process-tab.active, .process-tab:hover { background: rgba(255, 90, 31, 0.14); border-color: rgba(255, 90, 31, 0.45); color: #fff; }
.process-content { margin-top: 18px; min-height: 170px; }
.process-step { display: none; padding: 30px; border-radius: var(--radius); background: rgba(255,255,255,0.04); border: 1px solid var(--line); }
.process-step.active { display: block; animation: fadeUp .28s ease both; }
.process-step p { max-width: 900px; }

.impact-list { display: grid; gap: 14px; margin-top: 26px; }
.impact-list span { padding: 15px 18px; border-left: 3px solid var(--orange); background: rgba(255,255,255,0.04); border-radius: 0 16px 16px 0; color: var(--text); font-weight: 800; }
.calculator { padding: 30px; }
.calculator h3 { font-size: 32px; }
.calculator label { display: grid; gap: 12px; margin: 24px 0; color: var(--muted); font-weight: 800; }
.calculator input[type="range"] { width: 100%; accent-color: var(--orange); }
.calculator label strong { color: var(--text); font-size: 22px; }
.calc-results { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.calc-results div { padding: 20px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.calc-results small { display: block; color: var(--muted); margin-bottom: 6px; }
.calc-results strong { font-size: 24px; color: var(--orange); letter-spacing: -0.03em; }
.calc-note { font-size: 13px; margin-top: 16px; color: var(--muted-2); }

.poland-card { padding: 38px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(255,90,31,.12), rgba(15,93,148,.1)); border: 1px solid var(--line); }
.timeline { position: relative; display: grid; gap: 18px; }
.timeline::before { content: ""; position: absolute; top: 20px; bottom: 20px; left: 20px; width: 2px; background: linear-gradient(var(--orange), rgba(255,90,31,.05)); }
.timeline article { display: grid; grid-template-columns: 42px 1fr; gap: 18px; }
.timeline article > span { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,90,31,.15); border: 1px solid rgba(255,90,31,.45); position: relative; z-index: 1; }
.timeline article > span::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--orange); }
.timeline div { padding: 22px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); border-radius: 22px; }
.timeline h3 { font-size: 21px; }
.timeline p { font-size: 15px; margin-bottom: 0; }

.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.team-card { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; padding: 22px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.team-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -110px; bottom: -130px; background: radial-gradient(circle, rgba(15,93,148,.22), transparent 70%); pointer-events: none; }
.team-card img { width: 180px; height: 180px; object-fit: cover; border-radius: 22px; border: 1px solid rgba(255,255,255,.12); filter: saturate(0.98) contrast(1.03); }
.team-card h3 { font-size: 34px; margin-bottom: 2px; }
.role { color: var(--orange); font-weight: 1000; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.team-card p:last-child { margin-bottom: 0; }

.contact-section { background: radial-gradient(circle at 70% 50%, rgba(255,90,31,.12), transparent 34%); }
.contact-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 20px; margin-top: 26px; }
.mail-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: rgba(255, 90, 31, 0.17); color: var(--orange); font-size: 24px; }
.contact-card small { display: block; color: var(--muted-2); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
.contact-card a { color: var(--text); font-weight: 900; word-break: break-all; }
.copy-btn { border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); padding: 12px 15px; border-radius: 14px; cursor: pointer; font-weight: 900; }
.copy-btn:hover { border-color: rgba(255,90,31,.45); }
.contact-form { padding: 30px; display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 8px; color: var(--muted); font-weight: 800; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; color: var(--text); background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 14px 15px; outline: none; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: rgba(255,90,31,.58); box-shadow: 0 0 0 4px rgba(255,90,31,.09); }
.contact-form select option { color: #0a1622; }
.form-note { font-size: 13px; margin: 0; color: var(--muted-2); }

.site-footer { padding: 38px 0; border-top: 1px solid rgba(255,255,255,.08); background: rgba(4,12,21,.72); }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center; }
.footer-brand .brand-mark { width: 50px; height: 50px; }
.footer-brand .brand-text strong { font-size: 36px; }
.footer-brand .brand-text span { font-size: 16px; }
.footer-grid p { margin: 0; font-size: 14px; }
.footer-right { color: var(--muted-2); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1040px) {
  .main-nav { gap: 18px; }
  .hero-grid, .split-grid, .impact-grid, .poland-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 660px; }
  .hero-stats, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .image-card img { height: 360px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .site-header { height: 74px; padding-inline: 20px; }
  .brand-mark { width: 45px; height: 45px; }
  .brand-text strong { font-size: 34px; }
  .brand-text span { font-size: 14px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 74px 14px auto 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: rgba(5, 14, 24, 0.96);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }
  body.nav-open .main-nav { display: flex; }
  .main-nav a { padding: 14px; border-radius: 12px; background: rgba(255,255,255,0.035); }
  .main-nav a::after { display: none; }
  .header-actions .btn-small { display: none; }
  .hero { min-height: 880px; padding-top: 142px; }
  .hero-grid { gap: 28px; }
  .hero-lead { font-size: 18px; }
  .process-tabs { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card { grid-template-columns: 140px 1fr; }
  .team-card img { width: 140px; height: 140px; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, var(--max)); }
  .section { padding: 82px 0; }
  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
  .hero { min-height: auto; padding: 132px 0 40px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .hero-stats, .feature-grid, .calc-results { grid-template-columns: 1fr; }
  .stat-card { min-height: auto; }
  .image-card img { height: 280px; }
  .process-tabs { grid-template-columns: 1fr; }
  .team-card { grid-template-columns: 1fr; }
  .team-card img { width: 100%; height: 280px; }
  .contact-card { grid-template-columns: 1fr; }
}
