:root {
  --navy: #0b2239;
  --navy-2: #123654;
  --green: #25a968;
  --green-dark: #188553;
  --green-soft: #eaf8f1;
  --blue-soft: #edf5fa;
  --text: #17212b;
  --muted: #65717c;
  --line: #dfe7ec;
  --white: #ffffff;
  --off-white: #f7fafb;
  --shadow: 0 24px 70px rgba(11, 34, 57, .12);
  --shadow-soft: 0 12px 34px rgba(11, 34, 57, .08);
  --radius: 24px;
  --container: 1200px;
}

* { 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;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 110px 0; }
.section-sm { padding: 78px 0; }
.section-soft { background: var(--off-white); }
.section-dark { background: var(--navy); color: var(--white); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--green-dark);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.section-title {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.section-lead {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}
.section-dark .section-lead { color: rgba(255,255,255,.7); }

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  transition: background .25s ease, box-shadow .25s ease, color .25s ease;
  color: var(--white);
}
.site-header.scrolled,
.site-header.inner-header {
  background: rgba(255,255,255,.96);
  color: var(--navy);
  box-shadow: 0 6px 30px rgba(11,34,57,.08);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: .05em; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green), #70d89f); color: var(--white);
  box-shadow: 0 10px 24px rgba(37,169,104,.28);
}
.brand-copy { line-height: 1; }
.brand-copy strong { display: block; font-size: 1.15rem; }
.brand-copy small { display: block; margin-top: 5px; font-size: .66rem; font-weight: 700; opacity: .7; letter-spacing: .18em; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { position: relative; font-weight: 700; font-size: .94rem; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px;
  background: var(--green); transition: right .2s ease;
}
.nav a:hover::after, .nav a.active::after { right: 0; }
.header-cta { display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 999px; background: var(--green); color: var(--white); font-weight: 800; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 0; border-radius: 14px; background: rgba(255,255,255,.12); color: currentColor; }
.site-header.scrolled .menu-toggle, .site-header.inner-header .menu-toggle { background: var(--blue-soft); }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 22px; height: 2px; background: currentColor; margin: auto; position: relative; transition: .2s ease; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.hero {
  min-height: 850px;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,25,43,.92) 0%, rgba(6,25,43,.72) 46%, rgba(6,25,43,.18) 100%),
              url('../img/fotovoltaika-montaz-zhora.jpeg') center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%; right: -260px; bottom: -300px;
  border: 1px solid rgba(255,255,255,.18); box-shadow: 0 0 0 80px rgba(255,255,255,.035), 0 0 0 160px rgba(255,255,255,.025);
}
.hero-content { position: relative; z-index: 2; padding-top: 70px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); border-radius: 999px; backdrop-filter: blur(10px); font-size: .88rem; font-weight: 750; }
.hero h1 { margin: 26px 0 24px; font-size: clamp(3rem, 6.3vw, 6.2rem); line-height: .98; letter-spacing: -.06em; }
.hero h1 span { color: #78d9a7; }
.hero p {font-size: clamp(1.05rem, 1.8vw, 1.28rem); color: rgba(255,255,255,.78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font-weight: 850; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: var(--white); box-shadow: 0 16px 34px rgba(37,169,104,.3); }
.btn-primary:hover { background: var(--green-dark); }
.btn-light { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.26); color: var(--white); backdrop-filter: blur(10px); }
.btn-outline { border-color: var(--line); background: var(--white); color: var(--navy); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 24px 34px; margin-top: 50px; color: rgba(255,255,255,.8); }
.hero-meta span { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .92rem; }
.hero-meta i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(37,169,104,.16); }

.trust-strip { position: relative; z-index: 3; margin-top: -72px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; }
.trust-item { padding: 30px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item b { display: block; color: var(--navy); font-size: 1.05rem; }
.trust-item span { display: block; margin-top: 8px; color: var(--muted); font-size: .92rem; line-height: 1.5; }

.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 54px; }
.service-card { position: relative; min-height: 360px; padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-soft); border-color: transparent; }
.service-card::after { content: ""; position: absolute; width: 210px; height: 210px; right: -100px; bottom: -100px; border-radius: 50%; background: var(--green-soft); transition: transform .3s ease; }
.service-card:hover::after { transform: scale(1.15); }
.service-icon { position: relative; z-index: 1; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: var(--green-soft); color: var(--green-dark); }
.service-card h3 { position: relative; z-index: 1; margin: 28px 0 12px; font-size: 1.55rem; line-height: 1.2; }
.service-card p { position: relative; z-index: 1; margin: 0; color: var(--muted); }
.text-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--green-dark); font-weight: 850; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 78px; }
.split.reverse { grid-template-columns: .95fr 1.05fr; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 1.12; object-fit: cover; border-radius: 30px; box-shadow: var(--shadow); }
.split-media::before { content: ""; position: absolute; inset: auto -18px -18px auto; width: 55%; height: 55%; border-radius: 26px; background: var(--green-soft); z-index: -1; }
.check-list { display: grid; gap: 16px; padding: 0; margin: 30px 0 0; list-style: none; }
.check-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--muted); }
.check-list li::before { content: "✓"; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green-dark); font-weight: 900; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.stat { padding: 30px; border: 1px solid rgba(255,255,255,.14); border-radius: 22px; background: rgba(255,255,255,.05); }
.stat strong { display: block; font-size: 2rem; line-height: 1; color: #7ce0ad; }
.stat span { display: block; margin-top: 12px; color: rgba(255,255,255,.72); }

.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 54px; counter-reset: step; }
.step { counter-increment: step; position: relative; padding: 32px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); }
.step::before { content: "0" counter(step); display: inline-flex; color: var(--green); font-weight: 900; font-size: 1.05rem; letter-spacing: .08em; }
.step h3 { margin: 42px 0 10px; }
.step p { margin: 0; color: var(--muted); }

.cta-panel { position: relative; overflow: hidden; padding: 64px; border-radius: 32px; background: var(--navy); color: var(--white); }
.cta-panel::after { content: ""; position: absolute; width: 430px; height: 430px; border-radius: 50%; right: -120px; top: -220px; background: radial-gradient(circle, rgba(58,195,122,.45), transparent 68%); }
.cta-panel-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-panel h2 { margin: 0; max-width: 700px; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.05; letter-spacing: -.04em; }
.cta-panel p { margin: 16px 0 0; color: rgba(255,255,255,.7); }

.page-hero { padding: 170px 0 90px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: var(--white); }
.page-hero h1 { margin: 10px 0 18px; font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; letter-spacing: -.055em; }
.page-hero p { margin: 0; color: rgba(255,255,255,.72); font-size: 1.12rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; color: rgba(255,255,255,.58); font-size: .9rem; }
.breadcrumbs span { color: #7ce0ad; }

.detail-grid { display: grid; gap: 34px; }
.detail-card { display: grid; grid-template-columns: 78px 1fr; gap: 26px; padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.detail-card .service-icon { width: 72px; height: 72px; }
.detail-card h2 { margin: 0 0 12px; font-size: 1.75rem; }
.detail-card p { margin: 0; color: var(--muted); }
.detail-card ul { margin: 18px 0 0; padding-left: 20px; color: var(--muted); }
.detail-card li + li { margin-top: 8px; }

.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.value-card { padding: 32px; border: 1px solid var(--line); border-radius: 22px; }
.value-card h3 { margin: 20px 0 10px; }
.value-card p { margin: 0; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: start; }
.contact-card { padding: 36px; border-radius: 26px; background: var(--navy); color: var(--white); }
.contact-card h2 { margin-top: 0; font-size: 2rem; }
.contact-list { display: grid; gap: 20px; margin-top: 30px; }
.contact-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.contact-item .service-icon { width: 44px; height: 44px; border-radius: 14px; }
.contact-item small { display: block; color: rgba(255,255,255,.58); }
.contact-item a, .contact-item span { font-weight: 750; }
.form-card { padding: 40px; border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 800; font-size: .92rem; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 14px 15px; outline: none; background: var(--white); transition: border-color .2s ease, box-shadow .2s ease; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(37,169,104,.12); }
.form-note { margin: 16px 0 0; color: var(--muted); font-size: .86rem; }
.form-status { margin-top: 16px; padding: 13px 15px; border-radius: 12px; background: var(--green-soft); color: var(--green-dark); display: none; }

.site-footer { padding: 72px 0 30px; background: #071827; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.35fr .75fr .9fr; gap: 60px; }
.footer-about { color: rgba(255,255,255,.64); max-width: 460px; margin-top: 18px; }
.footer-title { margin: 0 0 18px; font-size: .92rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.5); }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.76); }
.footer-links a:hover { color: #7ce0ad; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.48); font-size: .86rem; }

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

svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 980px) {
  .nav { position: fixed; inset: 82px 20px auto; display: grid; gap: 0; padding: 14px; border-radius: 20px; background: var(--white); color: var(--navy); box-shadow: var(--shadow); transform: translateY(-20px); opacity: 0; pointer-events: none; transition: .2s ease; }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 12px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .header-cta { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse .split-media { order: 0; }
  .steps { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 78px 0; }
  .section-sm { padding: 58px 0; }
  .header-inner { min-height: 72px; }
  .nav { inset: 74px 14px auto; }
  .brand-copy small { display: none; }
  .hero { min-height: 760px; }
  .hero-content { padding-top: 65px; }
  .hero h1 { font-size: clamp(2.7rem, 14vw, 4.6rem); }
  .hero-actions .btn { width: 100%; }
  .hero-meta { display: grid; gap: 14px; }
  .trust-strip { margin-top: -38px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px; }
  .trust-item:last-child { border-bottom: 0; }
  .services-grid, .values-grid, .stats-grid, .steps { grid-template-columns: 1fr; }
  .service-card { min-height: 0; padding: 28px; }
  .cta-panel { padding: 40px 26px; }
  .cta-panel-inner { align-items: flex-start; flex-direction: column; }
  .page-hero { padding: 135px 0 70px; }
  .detail-card { grid-template-columns: 1fr; padding: 26px; }
  .form-card, .contact-card { padding: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}
