:root {
  --blue: #0085ff;
  --blue-dark: #0177e3;
  --green: #a0c22e;
  --bg: #0f172a;
  --bg-soft: #212a37;
  --text: #e7f6ff;
  --white: #ffffff;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
  text-align: center;
}

.site-header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: saturate(140%) blur(6px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}

.logo {
  width: 210px;
}

.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav > ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.main-nav a {
  color: #2c3571;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.25rem;
}

.main-nav a:hover {
  color: var(--green);
}

.main-nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.05rem;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.2s ease;
}

.main-nav > ul > li > a:hover::after {
  width: 100%;
}

.has-dropdown {
  position: relative;
}

.has-dropdown > a {
  padding-right: 1rem;
}

.has-dropdown > a::before {
  content: "";
  position: absolute;
  right: 0;
  top: 46%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 290px;
  display: none;
  background: rgba(20, 30, 52, 0.98);
  border-top: 2px solid var(--blue);
  padding: 0.85rem;
  border-radius: 0 0 0.5rem 0.5rem;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.has-dropdown:hover > .dropdown {
  display: block;
}

.dropdown a {
  color: var(--white);
  padding: 0.4rem 0;
  display: block;
  font-size: 0.9rem;
  text-align: center;
}

.dropdown .has-dropdown > a {
  padding-right: 1rem;
}

.dropdown .has-dropdown > a::before {
  right: 0;
}

.dropdown .has-dropdown .dropdown {
  top: 0;
  left: 100%;
  transform: none;
  min-width: 260px;
  border-top: 0;
  border-left: 2px solid var(--blue);
  border-radius: 0.5rem;
}

.dropdown .has-dropdown:hover > .dropdown {
  display: block;
}

.hero {
  position: relative;
  padding: 13rem 0 12rem;
  background: url("../img/hero-home.jpg") center center / cover no-repeat;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(9, 14, 30, 0.45);
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  color: var(--white);
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.2;
}

.hero h1 {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: 0.02em;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.9);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
}

.hero p {
  max-width: 900px;
  margin: 0 auto;
  font-family: "Roboto", sans-serif;
  line-height: 1.35;
  text-shadow: 0 1px 7px #000;
}

.section {
  padding: 5rem 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #b9d9ff;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
}

.center {
  text-align: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  justify-items: center;
}

.about-media {
  position: relative;
  padding-bottom: 2rem;
  margin-inline: auto;
}

.about-media img {
  border-radius: 0.8rem;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
}

.about-media .secondary {
  position: absolute;
  right: -1rem;
  bottom: 0;
  width: 45%;
  border: 3px solid var(--bg);
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  background: var(--blue);
  color: var(--white);
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  font-weight: 700;
  font-size: 0.88rem;
}

.btn:hover {
  background: var(--blue-dark);
}

.reason-grid,
.service-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.reason-grid article,
.service-card {
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.8rem;
  padding: 1.2rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
  text-align: center;
}

.reason-grid article:hover,
.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(160, 194, 46, 0.4);
}

.reasons {
  background: #f4f4f4 url("../img/shape-3.png") center center / cover no-repeat;
}

.reasons h2,
.reasons h3,
.reasons p,
.reasons .eyebrow {
  color: #2c3571;
}

.reason-grid article {
  text-align: center;
  background: #0f172a;
}

.reason-grid article h3,
.reason-grid article p {
  color: var(--white);
}

.reason-grid article h3 {
  color: var(--blue);
}

.reason-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.service-card img {
  height: 85px;
  object-fit: contain;
  margin-bottom: 0.8rem;
  margin-inline: auto;
}

.extra {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.extra ul {
  margin: 1.3rem 0;
  padding-left: 0;
  list-style-position: inside;
}

.extra li {
  margin-bottom: 0.75rem;
}

.consult {
  background: var(--bg-soft);
}

.news ul {
  margin: 0;
  padding-left: 0;
  list-style-position: inside;
}

.news li {
  margin-bottom: 0.85rem;
}

.news a {
  color: #bdddff;
}

.news a:hover {
  color: var(--white);
}

.site-footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  padding: 2.8rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.footer-logo {
  width: 180px;
  margin-inline: auto;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer a,
.site-footer address {
  color: var(--text);
  font-style: normal;
  text-align: center;
}

.copyright {
  text-align: center;
  color: #9eb7cc;
  font-size: 0.72rem;
  padding: 0.7rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-toggle {
  display: none;
}

.about-hero {
  min-height: 500px;
  margin-top: 84px;
  background:
    linear-gradient(360deg, rgba(44, 53, 113, 0.52) 17%, rgba(162, 192, 61, 0.38) 100%),
    url("../img/about-hero.jpg") top center / contain no-repeat;
}

.about-company {
  background: #0f172a;
}

.about-company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.about-company h1 {
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(1.8rem, 3.4vw, 2.45rem);
}

.about-company .eyebrow {
  color: var(--blue);
  font-family: "Roboto Condensed", sans-serif;
}

.about-process {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.8rem;
  padding: 1.25rem;
}

.about-process h2 {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 1.5rem;
}

.about-process ol {
  margin: 1rem 0;
  padding-left: 0;
  list-style-position: inside;
}

.about-process li {
  margin-bottom: 0.65rem;
}

.contact-box {
  margin-top: 1.25rem;
  background: #111d33;
  border-radius: 0.7rem;
  padding: 1rem;
}

.contact-box h3 {
  margin-bottom: 0.4rem;
  font-family: "Roboto Condensed", sans-serif;
}

.partners {
  background: #f4f4f4 url("../img/shape-3.png") center center / cover no-repeat;
}

.partners h2 {
  font-family: "Roboto Condensed", sans-serif;
  color: #2c3571;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  margin-top: 1.2rem;
  border: 1px solid rgba(44, 53, 113, 0.18);
  background: rgba(44, 53, 113, 0.18);
}

.partners-grid figure {
  margin: 0;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.62);
}

.partners-grid img {
  width: 77%;
  margin: 0 auto;
  object-fit: contain;
}

.products-hero {
  min-height: 500px;
  margin-top: 84px;
  background:
    linear-gradient(360deg, rgba(44, 53, 113, 0.52) 17%, rgba(162, 192, 61, 0.38) 100%),
    #0f172a url("../img/products-hero.jpg") center center / contain no-repeat;
}

.products-intro {
  background: #0f172a;
  padding-bottom: 1.25rem;
}

.products-intro h1 {
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}

.products-intro .eyebrow {
  margin-top: 0.6rem;
  font-family: "Roboto Condensed", sans-serif;
}

.products-services {
  background: #0f172a;
  padding-top: 0.6rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.product-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  padding: 1.2rem;
}

.product-card img {
  width: auto;
  max-width: min(160px, 55%);
  max-height: 120px;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.product-card h2 {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
}

.products-extra {
  background: #2c3571;
}

.products-extra .eyebrow {
  color: #a2c03d;
}

.ups-page-intro {
  margin-top: 84px;
  background: #0f172a;
  padding-bottom: 0.8rem;
}

.ups-page-intro h1 {
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
}

.ups-page-content {
  background: #0f172a;
  padding-top: 0.6rem;
}

.ups-page-content h2 {
  font-family: "Roboto Condensed", sans-serif;
}

.ups-cover {
  width: min(100%, 860px);
  border-radius: 0.8rem;
  margin-top: 1rem;
}

.ups-projects {
  background: #2c3571;
}

.ups-project-card {
  width: min(100%, 340px);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.75rem;
  padding: 1rem;
}

.ups-project-card img {
  width: 100%;
  max-width: 260px;
  margin: 0 auto 0.8rem;
  border-radius: 0.6rem;
}

.ups-project-card h3 {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 1.2rem;
}

.catalog-hero {
  min-height: 380px;
  margin-top: 84px;
  background:
    linear-gradient(360deg, rgba(44, 53, 113, 0.45) 17%, rgba(162, 192, 61, 0.3) 100%),
    #0f172a var(--hero-image) center center / cover no-repeat;
}

.energy-hero {
  background-size: auto, contain;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
}

.ev-hero {
  background-size: auto, contain;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
}

.catalog-intro {
  background: #0f172a;
  padding-bottom: 1rem;
}

.ev-intro-no-hero {
  margin-top: 84px;
}

.catalog-intro h1 {
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
}

.catalog-intro h2 {
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}

.catalog-grid-section {
  background: #0f172a;
  padding-top: 0.5rem;
}

.catalog-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.catalog-grid.single {
  grid-template-columns: minmax(280px, 420px);
  justify-content: center;
}

.catalog-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.7rem;
  padding: 1rem;
}

.catalog-card img {
  width: 100%;
  max-width: 260px;
  margin: 0 auto 0.8rem;
  object-fit: contain;
}

.catalog-card h3 {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 1.2rem;
}

.ev-feature {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 0.2rem 0;
  text-align: center;
}

.ev-feature img {
  width: min(100%, 420px);
  margin: 0 auto 0.8rem;
  border-radius: 0.5rem;
}

.ev-feature h3 {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 1.2rem;
}

.contact-page {
  margin-top: 84px;
  background: #0f172a;
}

.contact-page h1 {
  font-family: "Roboto Condensed", sans-serif;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.2rem;
  margin-top: 1rem;
}

.contact-map,
.contact-info-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.contact-info-card {
  padding: 1rem;
}

.contact-info-card h2 {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 1.25rem;
  margin-top: 0.5rem;
}

.product-detail-page {
  margin-top: 84px;
  background: #0f172a;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.2rem;
  align-items: start;
}

.product-media,
.product-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  padding: 1.2rem;
}

.product-media img {
  width: min(100%, 420px);
  margin: 0 auto;
}

.product-media .product-spec-image {
  margin-top: 1rem;
  border-radius: 0.6rem;
}

.product-slider {
  position: relative;
}

.product-slide {
  display: none;
}

.product-slide.active {
  display: block;
}

.product-slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.product-slider-btn {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  cursor: pointer;
}

.product-slider-dots {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  flex: 1;
}

.product-slider-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  border: 0;
  cursor: pointer;
}

.product-slider-dot.active {
  background: #fff;
}

.product-content h1 {
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: left;
}

.product-content h2 {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 1.2rem;
  text-align: left;
}

.product-content p {
  text-align: left;
}

.product-content ul {
  margin: 0.9rem 0;
  padding-left: 1.1rem;
  list-style-position: outside;
  text-align: left;
}

.product-content li {
  margin-bottom: 0.5rem;
}

.product-tags {
  margin-top: 0.8rem;
  color: #9ec0e8;
  font-size: 0.92rem;
}

.bess-spec-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
}

.bess-spec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.9rem;
}

.bess-spec-table th,
.bess-spec-table td {
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.5rem 0.6rem;
  text-align: left;
}

.bess-spec-table thead th {
  background: rgba(29, 78, 216, 0.22);
}

.bess-spec-table td.current-col,
.bess-spec-table th.current-col {
  background: rgba(162, 192, 61, 0.18);
}

@media (max-width: 921px) {
  .mobile-toggle {
    display: inline-block;
    border: 0;
    background: var(--blue);
    color: #fff;
    padding: 0.6rem 0.9rem;
    border-radius: 0.5rem;
    font-weight: 700;
  }

  .main-nav {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem;
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav > ul {
    flex-direction: column;
    align-items: center;
  }

  .dropdown {
    position: static;
    display: none;
    transform: none;
    min-width: 0;
    margin-top: 0.5rem;
    box-shadow: none;
    background: #edf2fa;
    width: 100%;
  }

  .dropdown a {
    color: #2c3571;
    padding: 0.5rem 0.75rem;
  }

  .dropdown .dropdown {
    margin-top: 0.35rem;
    margin-left: 0.75rem;
    width: calc(100% - 0.75rem);
    background: #e6edf8;
    border-top: 0;
    border-left: 2px solid var(--blue);
  }

  .dropdown .dropdown a {
    text-align: left;
  }

  .has-dropdown.open > .dropdown {
    display: block;
  }

  .has-dropdown > a::before {
    right: -14px;
  }

  .about-grid,
  .about-company-grid,
  .catalog-grid,
  .product-detail-grid,
  .contact-grid,
  .products-grid,
  .reason-grid,
  .service-grid,
  .partners-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-hero {
    min-height: 320px;
    background-size: 822px auto;
  }

  .products-hero {
    min-height: 260px;
    background-size: 822px auto;
  }

  .catalog-hero {
    min-height: 220px;
  }

  .energy-hero {
    background-size: auto, contain;
  }

  .ev-hero {
    background-size: auto, contain;
  }

  .partners-grid figure {
    border-bottom: 0;
  }

  .hero {
    padding: 8rem 0 6rem;
  }
}
