@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;1,500&display=swap');

:root {
  --cyan: #1694c3;
  --blue: #2a46a0;
  --blue-dark: #142a67;
  --green: #7fcc28;
  --ink: #353543;
  --muted: #6f7480;
  --line: #dfe5ed;
  --surface: #f5f8fb;
  --white: #fff;
  --shadow: 0 24px 70px rgba(21, 42, 103, .12);
  --radius: 24px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
::selection { color: white; background: var(--blue); }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 110px 0; }
.section--soft { background: var(--surface); }
.section--dark { color: white; background: var(--blue-dark); }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before { width: 28px; height: 2px; content: ''; background: var(--green); }
.section--dark .eyebrow { color: #aee1f4; }
h1, h2, h3 { margin: 0; color: var(--blue-dark); line-height: 1.14; letter-spacing: -.035em; }
h1 { font-size: clamp(2.7rem, 5.8vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: 1.25rem; letter-spacing: -.02em; }
p { margin: 0 0 1.2rem; }
.lead { max-width: 700px; color: var(--muted); font-size: clamp(1.06rem, 2vw, 1.24rem); }
.section--dark h2, .section--dark h3 { color: white; }
.section--dark .lead { color: #c8d3e7; }
.accent { color: var(--green); }
.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 100px;
  color: white;
  background: var(--blue);
  font-size: .88rem;
  font-weight: 700;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn::after { content: '↗'; font-size: 1.05rem; }
.btn:hover { background: var(--green); box-shadow: 0 14px 36px rgba(127, 204, 40, .25); transform: translateY(-2px); }
.btn--light { color: var(--blue-dark); background: white; }
.btn--light:hover { color: white; }
.btn--ghost { color: white; border-color: rgba(255,255,255,.35); background: transparent; }

/* Header */
.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.site-header.scrolled, .site-header.inner { border-color: var(--line); background: rgba(255,255,255,.96); box-shadow: 0 10px 30px rgba(20,42,103,.07); backdrop-filter: blur(14px); }
.nav { display: flex; height: 82px; align-items: center; gap: 28px; }
.brand { position: relative; z-index: 102; width: 196px; height: 58px; overflow: hidden; }
.brand img { width: 100%; height: 100%; object-fit: cover; }
.site-header:not(.scrolled):not(.inner) .brand { padding: 5px 12px; border-radius: 10px; background: rgba(255,255,255,.94); }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-links a { position: relative; color: white; font-size: .78rem; font-weight: 600; }
.site-header.scrolled .nav-links a, .site-header.inner .nav-links a { color: var(--ink); }
.nav-links a::after { position: absolute; right: 0; bottom: -9px; left: 0; height: 2px; content: ''; background: var(--green); transform: scaleX(0); transition: transform .25s; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.lang-switch { display: flex; gap: 3px; padding: 4px; border: 1px solid rgba(255,255,255,.25); border-radius: 100px; }
.site-header.scrolled .lang-switch, .site-header.inner .lang-switch { border-color: var(--line); }
.lang-switch button { width: 38px; height: 32px; padding: 0; border: 0; border-radius: 100px; color: rgba(255,255,255,.7); background: transparent; font-size: .68rem; font-weight: 700; }
.site-header.scrolled .lang-switch button, .site-header.inner .lang-switch button { color: var(--muted); }
.lang-switch button.active { color: white !important; background: var(--blue); }
.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; padding: 10px; border: 0; background: transparent; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: white; transition: .25s; }
.site-header.scrolled .menu-toggle span, .site-header.inner .menu-toggle span { background: var(--blue-dark); }

/* Hero */
.hero { position: relative; display: grid; min-height: 790px; align-items: end; overflow: hidden; color: white; background: #10214f; }
.hero::before { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, rgba(7,21,55,.93) 0%, rgba(13,38,78,.74) 43%, rgba(14,31,68,.08) 76%), url('../images/energy-hero.webp') center/cover no-repeat; }
.hero::after { position: absolute; right: -180px; bottom: -340px; width: 760px; height: 760px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; content: ''; box-shadow: 0 0 0 90px rgba(22,148,195,.06), 0 0 0 180px rgba(255,255,255,.035); }
.hero-content { position: relative; z-index: 2; max-width: 880px; padding: 210px 0 106px; }
.hero .eyebrow { color: #bdeafa; }
.hero h1 { max-width: 900px; color: white; }
.hero .lead { max-width: 710px; margin: 28px 0 38px; color: #e2e8f2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 76px; border-top: 1px solid rgba(255,255,255,.2); }
.hero-stat { padding: 28px 32px 0 0; }
.hero-stat strong { display: block; color: white; font-size: 1.1rem; }
.hero-stat span { color: #b8c7dc; font-size: .77rem; }

.page-hero { padding: 190px 0 90px; background: radial-gradient(circle at 85% 15%, rgba(22,148,195,.2), transparent 28%), linear-gradient(135deg, #edf7fb, #f8fafc 60%); }
.page-hero .lead { margin-top: 24px; }
.breadcrumbs { display: flex; gap: 10px; margin-top: 34px; color: var(--muted); font-size: .78rem; }
.breadcrumbs a { color: var(--blue); }

/* Reusable cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: transform .3s, box-shadow .3s, border-color .3s; }
.card:hover { border-color: rgba(22,148,195,.35); box-shadow: var(--shadow); transform: translateY(-6px); }
.card-number { display: block; margin-bottom: 42px; color: var(--cyan); font-size: .7rem; font-weight: 700; letter-spacing: .14em; }
.card-icon { display: grid; width: 54px; height: 54px; margin-bottom: 28px; place-items: center; border-radius: 16px; color: var(--blue); background: #eef4ff; }
.card-icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.card h3 { margin-bottom: 14px; }
.card p { margin: 0; color: var(--muted); font-size: .93rem; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--blue); font-size: .8rem; font-weight: 700; }
.text-link::after { content: '→'; transition: transform .2s; }
.text-link:hover::after { transform: translateX(4px); }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(50px, 9vw, 120px); }
.image-frame { position: relative; }
.image-frame img { width: 100%; min-height: 500px; border-radius: 28px; object-fit: cover; box-shadow: var(--shadow); }
.image-frame::after { position: absolute; right: -22px; bottom: -22px; z-index: -1; width: 58%; height: 58%; border-radius: 24px; content: ''; background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.feature-list { display: grid; gap: 20px; margin-top: 34px; }
.feature { display: grid; grid-template-columns: 38px 1fr; gap: 15px; }
.feature-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: var(--blue); background: rgba(127,204,40,.18); font-weight: 700; }
.feature h3 { margin: 3px 0 5px; font-size: 1rem; }
.feature p { color: var(--muted); font-size: .88rem; }

.value-chain { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 55px; border: 1px solid rgba(255,255,255,.18); border-radius: 24px; overflow: hidden; }
.value-step { min-height: 180px; padding: 30px; border-right: 1px solid rgba(255,255,255,.18); }
.value-step:last-child { border: 0; }
.value-step span { color: var(--green); font-size: .7rem; font-weight: 700; }
.value-step h3 { margin-top: 42px; }

.cta-band { position: relative; overflow: hidden; padding: 76px 0; color: white; background: linear-gradient(110deg, var(--blue-dark), var(--blue)); }
.cta-band::after { position: absolute; top: -180px; right: 3%; width: 430px; height: 430px; border: 70px solid rgba(22,148,195,.18); border-radius: 50%; content: ''; }
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { max-width: 720px; color: white; }

/* About */
.quote { padding: 45px; border-left: 4px solid var(--green); border-radius: 0 20px 20px 0; background: var(--surface); color: var(--blue-dark); font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-style: italic; font-weight: 500; }
.principles { counter-reset: principle; }
.principle { padding: 32px 0; border-top: 1px solid rgba(255,255,255,.16); }
.principle::before { color: var(--green); content: '0' counter(principle); counter-increment: principle; font-size: .72rem; font-weight: 700; }
.principle h3 { margin: 18px 0 9px; }
.principle p { color: #becbe0; }

/* Services */
.service-grid { grid-template-columns: repeat(4, 1fr); }
.service-grid .card:first-child { color: white; border-color: transparent; background: linear-gradient(145deg, var(--blue), var(--blue-dark)); }
.service-grid .card:first-child h3 { color: white; }
.service-grid .card:first-child p { color: #cad5e7; }
.training-panel { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 520px; overflow: hidden; border-radius: 30px; background: var(--blue-dark); }
.training-copy { align-self: center; padding: clamp(40px, 7vw, 80px); color: white; }
.training-copy h2 { color: white; }
.training-copy p { margin: 25px 0 34px; color: #c8d3e7; }
.training-image { background: linear-gradient(rgba(20,42,103,.08), rgba(20,42,103,.08)), url('../images/consulting-team.webp') 42% center/cover no-repeat; }

/* Clients */
.client-list { display: grid; gap: 18px; }
.client-row { display: grid; grid-template-columns: 70px .85fr 1.3fr; align-items: center; gap: 28px; padding: 28px 32px; border: 1px solid var(--line); border-radius: 20px; transition: .25s; }
.client-row:hover { border-color: var(--cyan); box-shadow: 0 16px 40px rgba(20,42,103,.08); }
.client-row .index { color: var(--cyan); font-size: .75rem; font-weight: 700; }
.client-row p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(45px, 8vw, 100px); }
.contact-details { display: grid; gap: 20px; margin-top: 36px; }
.contact-detail { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.contact-detail small { display: block; margin-bottom: 5px; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.contact-detail a { color: var(--blue-dark); font-weight: 600; word-break: break-word; }
.contact-detail a:hover { color: var(--green); }
.contact-form { padding: clamp(30px, 5vw, 52px); border-radius: 28px; background: var(--surface); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--blue-dark); font-size: .75rem; font-weight: 700; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; outline: 0; color: var(--ink); background: white; transition: border .2s, box-shadow .2s; }
.field input { height: 52px; padding: 0 16px; }
.field textarea { min-height: 150px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(22,148,195,.1); }
.field input:invalid:not(:placeholder-shown), .field textarea:invalid:not(:placeholder-shown) { border-color: #c64d4d; }
.form-note { margin: 16px 0 0; color: var(--muted); font-size: .75rem; }
.form-status { display: none; margin-top: 16px; padding: 12px 16px; border-radius: 10px; color: #315d0d; background: #e9f7dd; font-size: .8rem; }

/* Footer */
.site-footer { color: #c4cee0; background: #0c193d; }
.footer-main { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 70px; padding: 76px 0 58px; }
.footer-brand { width: 230px; padding: 10px 14px; border-radius: 12px; background: white; }
.footer-copy { max-width: 460px; margin-top: 22px; font-size: .86rem; }
.footer-title { margin-bottom: 20px; color: white; font-size: .76rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.footer-links { display: grid; gap: 11px; font-size: .82rem; }
.footer-links a:hover { color: var(--green); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .7rem; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; }
.footer-legal a:hover, .form-note a { color: var(--green); }
.form-note a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.footer-top-button { padding: 7px 0; border: 0; color: white; background: transparent; font-size: .72rem; font-weight: 700; }
.footer-top-button:hover { color: var(--green); }
.footer-top-button:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }

/* Legal */
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 780px); justify-content: space-between; gap: clamp(50px, 8vw, 110px); }
.legal-nav { position: sticky; top: 125px; align-self: start; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.legal-nav strong { display: block; margin-bottom: 16px; color: var(--blue-dark); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.legal-nav a { display: block; padding: 8px 0; color: var(--muted); font-size: .8rem; }
.legal-nav a:hover { color: var(--blue); }
.legal-content { min-width: 0; }
.legal-meta { margin-bottom: 42px; color: var(--muted); font-size: .78rem; }
.legal-section { padding-bottom: 38px; margin-bottom: 38px; border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.legal-section:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.legal-section h2 { margin-bottom: 20px; font-size: clamp(1.55rem, 3vw, 2rem); }
.legal-section h3 { margin: 28px 0 12px; font-size: 1.05rem; }
.legal-section p, .legal-section li { color: var(--muted); font-size: .92rem; }
.legal-section a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.legal-list { padding-left: 1.25rem; margin: 14px 0 20px; }
.legal-list li { margin-bottom: 9px; padding-left: 5px; }
.legal-callout { padding: 24px 26px; margin: 24px 0; border-left: 4px solid var(--green); border-radius: 0 14px 14px 0; background: var(--surface); }
.legal-callout p:last-child { margin-bottom: 0; }
.legal-table-wrap { margin: 24px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.legal-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .82rem; }
.legal-table th, .legal-table td { padding: 17px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { color: var(--blue-dark); background: var(--surface); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.legal-table td { color: var(--muted); }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table code { color: var(--blue-dark); font-size: .78rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .section { padding: 85px 0; }
  .grid-4, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 50px; }
  body.menu-open::before { position: fixed; inset: 0; z-index: 99; content: ''; background: var(--white); }
  body.menu-open .site-header { border-color: var(--line); background: var(--white); box-shadow: none; backdrop-filter: none; }
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 125px 40px 50px;
    background: var(--white);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-15px);
    transition: .25s;
  }
  .nav-links.open { background: var(--white); opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a, .site-header:not(.scrolled):not(.inner) .nav-links a { color: var(--blue-dark); font-size: 1.5rem; }
  .menu-toggle { position: relative; z-index: 102; display: block; }
  .menu-open .menu-toggle span { background: var(--blue-dark) !important; }
  .menu-open .menu-toggle span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .lang-switch { position: relative; z-index: 102; }
  .menu-open .lang-switch { border-color: var(--line) !important; }
  .menu-open .lang-switch button { color: var(--muted) !important; }
  .value-chain { grid-template-columns: repeat(2, 1fr); }
  .value-step:nth-child(2) { border-right: 0; }
  .value-step:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.18); }
  .training-panel { grid-template-columns: 1fr; }
  .training-image { min-height: 420px; }
  .contact-layout { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .nav { height: 72px; }
  .brand { width: 152px; height: 50px; }
  .lang-switch button { width: 34px; height: 30px; }
  .hero { min-height: 760px; }
  .hero::before { background: linear-gradient(90deg, rgba(7,21,55,.95), rgba(13,38,78,.7)), url('../images/energy-hero.webp') 66% center/cover no-repeat; }
  .hero-content { padding: 160px 0 70px; }
  .hero h1 { font-size: clamp(2.55rem, 12vw, 4rem); }
  .hero-stats { grid-template-columns: 1fr; margin-top: 55px; }
  .hero-stat { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .page-hero { padding: 145px 0 65px; }
  .grid-3, .grid-4, .service-grid, .split { grid-template-columns: 1fr; }
  .card { padding: 28px; }
  .image-frame img { min-height: 360px; }
  .value-chain { grid-template-columns: 1fr; }
  .value-step, .value-step:nth-child(2) { min-height: 145px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .value-step h3 { margin-top: 25px; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .client-row { grid-template-columns: 45px 1fr; }
  .client-row p { grid-column: 2; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .footer-main { grid-template-columns: 1fr; gap: 38px; padding-top: 60px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
