:root {
  --green-900: #173d23;
  --green-800: #23532e;
  --green-700: #2d6136;
  --green-600: #3f7b47;
  --yellow: #eee62b;
  --yellow-strong: #f4ea16;
  --ink: #17191d;
  --text: #3f4447;
  --muted: #f4f6f2;
  --line: #d9ded8;
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(23, 25, 29, 0.12);
  --container: 1180px;
  --font: "Source Sans 3", Arial, sans-serif;
  --heading-font: "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.main-menu,
.button,
.topbar__inner {
  font-family: var(--heading-font);
}

img,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding-left: 22px;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.visually-hidden,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link:focus {
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.topbar {
  background: #12171c;
  color: #d7dbd5;
}

.topbar__inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
  font-weight: 500;
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.topbar__socials {
  display: flex;
  gap: 10px;
}

.topbar__socials a {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 4px;
  color: #9ea59c;
  font-size: 14px;
  font-weight: 800;
}

.topbar__socials a:hover,
.topbar__socials a:focus {
  color: var(--yellow);
}

.top-icon,
.button__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: currentColor;
}

.top-icon {
  color: var(--yellow);
}

.top-icon svg,
.button__icon svg,
.service-item__icon svg,
.contact-summary__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.navbar {
  position: sticky;
  z-index: 50;
  top: 0;
  background: linear-gradient(180deg, var(--green-700), var(--green-600));
}

.navbar__inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.header-yellow {
  height: 40px;
  background: linear-gradient(180deg, var(--yellow-strong), var(--yellow));
}

.brand img {
  width: 226px;
  height: auto;
}

.main-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
}

.main-menu a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: var(--white);
  transition: border-color 160ms ease, color 160ms ease;
}

.main-menu a:hover,
.main-menu a:focus,
.main-menu .active {
  border-color: var(--yellow);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
}

.menu-toggle__bar {
  display: block;
  width: 24px;
  height: 3px;
  margin: 4px auto;
  border-radius: 10px;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  background: var(--ink);
}

.hero--electric {
  display: grid;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(5, 13, 10, 0.94) 0%, rgba(13, 42, 25, 0.86) 44%, rgba(7, 17, 16, 0.7) 100%),
    url("../img/site/slider1-1024x443.jpg");
  background-position: center;
  background-size: cover;
}

.hero--electric::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero--electric::before {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.36)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 96px);
}

.hero__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 70px;
  align-items: center;
  padding: 86px 0 92px;
}

.hero__copy {
  max-width: 760px;
}

.hero__eyebrow {
  display: inline-flex;
  margin: 0 0 22px;
  padding: 8px 12px;
  border: 1px solid rgba(238, 230, 43, 0.55);
  border-radius: 999px;
  background: rgba(238, 230, 43, 0.12);
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--white);
  font-size: 58px;
  font-weight: 800;
  line-height: 1.06;
  overflow-wrap: break-word;
}

.hero__lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: #e5ece8;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.42;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__panel {
  align-self: end;
  padding: 28px;
  border: 1px solid rgba(238, 230, 43, 0.44);
  border-radius: 8px;
  background: rgba(10, 22, 18, 0.78);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
  color: var(--white);
}

.hero__panel p {
  margin: 0 0 16px;
  color: var(--yellow);
  font-family: var(--heading-font);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero__panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__panel li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.hero__panel li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
}

.energy-strip {
  background: var(--green-900);
  color: var(--white);
}

.energy-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.energy-strip__grid div {
  padding: 24px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.energy-strip__grid div:last-child {
  border-right: 0;
}

.energy-strip strong,
.energy-strip span {
  display: block;
}

.energy-strip strong {
  color: var(--yellow);
  font-size: 22px;
  line-height: 1.15;
}

.energy-strip span {
  margin-top: 4px;
  color: #d6ded7;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.section,
.page-main {
  padding: 92px 0;
}

.section-heading {
  text-align: center;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 42px;
  line-height: 1.15;
  font-weight: 800;
  text-transform: none;
}

.section-heading span {
  display: block;
  width: 64px;
  height: 4px;
  margin: 18px auto 36px;
  border-radius: 999px;
  background: var(--green-700);
}

.section-heading .yellow {
  background: var(--yellow);
}

.intro__copy,
.page-lead {
  width: min(100%, 980px);
  margin: 0 auto 42px;
  color: var(--ink);
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.75;
}

.intro__copy p,
.page-lead p {
  margin: 0 0 12px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 36px rgba(23, 25, 29, 0.07);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 4 / 2.7;
  object-fit: cover;
}

.feature-card h3,
.feature-card p,
.feature-card ul {
  margin-right: 24px;
  margin-left: 24px;
}

.feature-card h3 {
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.feature-card p,
.feature-card li {
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
}

.feature-card ul {
  margin-bottom: 28px;
}

.cta-band {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: var(--white);
  padding: 88px 0 96px;
}

.cta-band__inner {
  text-align: center;
}

.cta-band h2 {
  max-width: 980px;
  margin: 0 auto 34px;
  color: var(--white);
  font-size: 48px;
  line-height: 1.14;
  font-weight: 800;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  padding: 15px 34px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.button--outline {
  border: 2px solid var(--white);
  color: var(--white);
}

.button--outline:hover,
.button--outline:focus {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--ink);
}

.button--energy {
  border: 2px solid var(--yellow);
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 0 26px rgba(238, 230, 43, 0.28);
}

.button--energy:hover,
.button--energy:focus {
  border-color: var(--white);
  background: var(--white);
}

.button--ghost {
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.button--ghost:hover,
.button--ghost:focus {
  border-color: var(--yellow);
  background: rgba(238, 230, 43, 0.14);
}

.button--dark {
  border: 2px solid var(--green-700);
  background: var(--green-700);
  color: var(--white);
}

.button--dark:hover,
.button--dark:focus {
  border-color: var(--ink);
  background: var(--ink);
}

.services {
  background: linear-gradient(180deg, var(--white), var(--muted));
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  align-items: start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-item__icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
}

.service-item__icon svg {
  width: 32px;
  height: 32px;
}

.service-item h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}

.service-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.content-section {
  margin: 38px 0 0;
  color: var(--ink);
}

.content-section h3 {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
}

.content-section h4 {
  margin: 28px 0 12px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}

.content-section p,
.content-section li {
  font-size: 15px;
  line-height: 1.75;
}

.content-section p {
  margin: 0 0 14px;
}

.tab-panel[hidden] {
  display: none;
}

.tab-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 54px 0 30px;
}

.tab-control {
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  font-family: var(--heading-font);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.tab-control:hover,
.tab-control:focus {
  border-color: var(--green-700);
  box-shadow: 0 10px 22px rgba(23, 25, 29, 0.08);
  outline: none;
}

.tab-control.active-tab {
  border-color: var(--green-700);
  background: var(--green-700);
  color: var(--white);
}

.service-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.service-tabs .tab-control {
  width: 100%;
  padding: 12px 8px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.project-grid img {
  width: 100%;
  height: 230px;
  border-radius: 8px;
  object-fit: cover;
}

.partner-logo {
  max-width: 483px;
  margin-top: 18px;
}

.contact-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 60px 0 54px;
  padding: 24px 18px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
}

.contact-summary__item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: start;
  padding: 0 8px;
}

.contact-summary__icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
}

.contact-summary__icon svg {
  width: 25px;
  height: 25px;
}

.contact-summary p {
  margin: 1px 0 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.contact-summary strong {
  display: block;
  font-size: 15px;
  line-height: 1.6;
}

.contact-tabs .tab-control {
  min-width: 200px;
  padding: 15px 30px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  gap: 70px;
  align-items: start;
  padding-top: 28px;
  color: var(--ink);
}

.contact-panel__copy {
  font-size: 20px;
  line-height: 1.7;
}

.contact-panel__copy p {
  margin: 0;
}

.contact-panel iframe {
  width: 100%;
  min-height: 430px;
  border: 0;
  border-radius: 8px;
}

.contact-panel--people {
  display: block;
}

.contact-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 8px 70px;
  max-width: 860px;
  font-size: 18px;
  line-height: 1.65;
}

.contact-people p {
  margin: 0 0 18px;
}

.blog-empty {
  max-width: 760px;
  margin: 0 auto;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--muted);
  text-align: center;
  color: var(--ink);
}

.blog-post {
  max-width: 980px;
  margin: 0 auto;
  color: var(--ink);
}

.blog-post + .blog-post {
  margin-top: 64px;
  padding-top: 54px;
  border-top: 1px solid var(--line);
}

.blog-post__header {
  max-width: 820px;
  margin-bottom: 34px;
}

.blog-post__meta {
  margin: 0 0 10px;
  color: var(--green-700);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.blog-post__header h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 42px;
  line-height: 1.14;
}

.blog-post__header p,
.blog-post__body p,
.blog-post__body li {
  font-size: 19px;
  line-height: 1.7;
}

.blog-post__images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 44px;
}

.blog-post__images figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.blog-post__images img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.blog-post__images figcaption {
  padding: 14px 18px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 700;
}

.blog-post__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 44px;
}

.blog-post__gallery figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 34px rgba(23, 25, 29, 0.08);
}

.blog-post__gallery-feature {
  grid-column: span 2;
  grid-row: span 2;
}

.blog-post__gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.blog-post__gallery figcaption {
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.blog-post__body {
  max-width: 820px;
}

.blog-post__body h3 {
  margin: 34px 0 10px;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.25;
}

.blog-post__body p {
  margin: 0 0 18px;
}

.blog-post__body ul {
  margin: 0 0 28px;
  padding-left: 24px;
}

.site-footer {
  background: var(--white);
}

.footer-cta {
  padding: 130px 0;
  background-image: linear-gradient(rgba(23, 25, 29, 0.24), rgba(23, 25, 29, 0.34)), url("../img/site/bottom-homepage.png");
  background-position: center;
  background-size: cover;
  text-align: center;
}

.footer-cta h2 {
  max-width: 980px;
  margin: 0 auto 32px;
  color: var(--white);
  font-size: 46px;
  line-height: 1.16;
  font-weight: 800;
}

.copyright {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--white);
  text-align: center;
}

.copyright p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .container {
    width: min(calc(100% - 30px), 940px);
  }

  .main-menu {
    gap: 18px;
  }

  .hero {
    min-height: auto;
  }

  .hero__layout {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 72px 0;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero__lead {
    font-size: 20px;
  }

  .hero__panel {
    max-width: 520px;
    align-self: start;
  }

  .energy-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid,
  .service-grid,
  .contact-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-summary {
    gap: 28px 10px;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-post__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-post__header h2 {
    font-size: 34px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .topbar__inner {
    justify-content: center;
  }

  .topbar__hide-mobile,
  .topbar__socials {
    display: none;
  }

  .navbar__inner {
    min-height: 84px;
  }

  .brand img {
    width: 190px;
  }

  .menu-toggle {
    display: block;
  }

  .main-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .main-menu.is-open {
    display: flex;
  }

  .main-menu a {
    display: flex;
    width: 100%;
    min-height: 52px;
    padding: 0 20px;
    border-top: 1px solid var(--line);
    border-bottom: 0;
    color: var(--ink);
  }

  .main-menu a:hover,
  .main-menu a:focus,
  .main-menu .active {
    border-top-color: var(--line);
    background: var(--muted);
    color: var(--green-700);
  }

  .hero {
    min-height: auto;
  }

  .hero__layout {
    gap: 20px;
    padding: 32px 0;
    justify-items: center;
    text-align: center;
  }

  .hero__copy,
  .hero__lead,
  .hero__panel {
    max-width: 100%;
  }

  .hero h1 {
    max-width: 10.2em;
    margin-right: auto;
    margin-left: auto;
    font-size: 30px;
    line-height: 1.1;
  }

  .hero__lead {
    max-width: 18em;
    margin: 14px auto 0;
    font-size: 17px;
    line-height: 1.4;
    overflow-wrap: break-word;
  }

  .hero__eyebrow {
    margin-bottom: 14px;
    font-size: 11px;
    padding: 6px 10px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    margin-top: 18px;
  }

  .hero__actions .button {
    width: min(100%, 320px);
  }

  .hero__panel {
    width: min(100%, 320px);
    padding: 22px;
    text-align: left;
  }

  .blog-post__header h2 {
    font-size: 29px;
  }

  .blog-post__header p,
  .blog-post__body p,
  .blog-post__body li {
    font-size: 17px;
  }

  .blog-post__images {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 34px;
  }

  .blog-post__gallery {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 34px;
  }

  .blog-post__gallery-feature {
    grid-column: auto;
    grid-row: auto;
  }

  .energy-strip__grid {
    grid-template-columns: 1fr;
  }

  .energy-strip__grid div {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .energy-strip__grid div:last-child {
    border-bottom: 0;
  }

  .section,
  .page-main {
    padding: 70px 0;
  }

  .section-heading h1,
  .section-heading h2 {
    font-size: 32px;
  }

  .intro__copy,
  .page-lead {
    font-size: 16px;
  }

  .feature-grid,
  .service-grid,
  .service-tabs,
  .project-grid,
  .contact-summary,
  .contact-people {
    grid-template-columns: 1fr;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .service-item__icon {
    margin: 0 auto;
  }

  .tab-controls {
    gap: 10px;
    margin-top: 38px;
  }

  .tab-control,
  .contact-tabs .tab-control {
    width: 100%;
    min-height: 56px;
    padding: 12px 18px;
  }

  .contact-summary {
    padding: 22px;
  }

  .contact-summary__item {
    grid-template-columns: 58px 1fr;
    padding: 0;
  }

  .contact-summary strong,
  .contact-panel__copy {
    font-size: 16px;
  }

  .cta-band,
  .footer-cta {
    padding: 70px 0;
  }

  .cta-band h2,
  .footer-cta h2 {
    font-size: 32px;
  }
}
