:root {
  --blue: #0F2F3A;
  --blue-dark: #0A222B;
  --blue-soft: #E7F2F0;
  --orange: #E07A2F;
  --orange-dark: #C46622;
  --green: #1A7A72;
  --ink: #0F2F3A;
  --muted: #3E5158;
  --white: #fff;
  --shadow: 0 20px 50px rgba(15, 47, 58, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Lexend Deca", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.brand-bar {
  background: #fff;
  padding: 14px 0 2px;
}

.brand-bar__logo {
  height: 38px;
  width: auto;
}

.trust-bar {
  background: #fff;
  border-bottom: 1px solid #d5e4e1;
}

.trust-bar__logos {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.trust-bar__logos img {
  max-height: 58px;
  width: auto;
  justify-self: end;
  object-fit: contain;
}

.trust-bar__logos .trust-bar__brand {
  max-height: 51px;
  justify-self: start;
}

.trust-bar__logos .trust-bar__republic {
  max-height: 63px;
}

.hero {
  position: relative;
  isolation: isolate;
  padding: 62px 0;
  background:
    linear-gradient(115deg, rgba(15, 47, 58, 0.92) 0%, rgba(20, 80, 84, 0.78) 54%, rgba(26, 122, 114, 0.52) 100%),
    url("../images/rurexok-solar-home.webp") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 14% 20%, rgba(224, 122, 47, 0.22), transparent 28%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: 56px;
  align-items: center;
}

.hero__copy {
  color: #fff;
}

.hero__title {
  margin: 0 0 16px;
  padding-left: 18px;
  border-left: 5px solid var(--blue);
  font-size: clamp(29px, 3.1vw, 43px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero__title span {
  display: inline;
  padding: 0 0.15em;
  background: var(--blue);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero__icon {
  width: 58px;
  margin: 18px 0 10px 18px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
}

.hero__intro {
  max-width: 650px;
  margin: 0 0 16px;
  font-size: 15px;
}

.hero__list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: 14px;
  font-weight: 500;
}

.hero__list li + li {
  margin-top: 5px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(224, 122, 47, 0.25);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(224, 122, 47, 0.32);
}

.btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.hero__legal {
  max-width: 660px;
  margin: 12px 0 0;
  font-size: 9px;
  line-height: 1.45;
  opacity: 0.82;
}

.form-card {
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 25px 65px rgba(2, 18, 31, 0.35);
}

.form-card__title {
  margin: 0;
  padding: 24px 30px 8px;
  color: var(--blue);
  font-size: 24px;
  line-height: 1.25;
  text-align: center;
}

.form-card__title strong,
.form-card__title span {
  display: block;
}

.form-card__title span {
  margin-top: 3px;
  font-size: 16px;
  font-weight: 400;
}

.partners {
  padding: 20px 0;
  border-bottom: 1px solid #e8edf1;
  background: #fff;
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 34px;
}

.partners__grid img {
  width: 100%;
  max-height: 82px;
  object-fit: contain;
}

.section {
  padding: 82px 0;
}

.section-title {
  max-width: 900px;
  margin: 0 auto 42px;
  padding-left: 16px;
  border-left: 5px solid var(--blue);
  color: var(--blue);
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-title--left {
  margin: 0 0 22px;
}

.benefits {
  background:
    linear-gradient(180deg, #fff 0%, var(--blue-soft) 100%);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.benefit-card {
  position: relative;
  min-height: 310px;
  padding: 28px 23px;
  border: 1px solid #dce7f0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  text-align: center;
  box-shadow: 0 12px 35px rgba(23, 54, 83, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.benefit-card img {
  width: 82px;
  margin: 0 auto 20px;
}

.benefit-card h3 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 18px;
  line-height: 1.35;
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.how {
  overflow: hidden;
  padding-top: 90px;
}

.how__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 58px;
  align-items: center;
}

.how__copy > p {
  margin: 0 0 16px;
  color: #2c4358;
  font-size: 15px;
}

.how__highlight {
  padding: 16px 18px;
  border-left: 4px solid var(--orange);
  background: #E7F2F0;
  color: #0F4A44 !important;
  font-weight: 600;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 27px;
}

.check-list li {
  position: relative;
  padding-left: 27px;
  margin-bottom: 8px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.how__media {
  position: relative;
}

.how__media::before {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -38px;
  width: 68%;
  height: 68%;
  border-radius: 18px;
  background: var(--orange);
}

.how__media img {
  position: relative;
  width: 100%;
  min-height: 620px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.footer {
  position: relative;
  margin-top: 90px;
  padding: 75px 0 40px;
  background: var(--blue);
  color: #fff;
}

.footer__wave {
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 42px;
  overflow: hidden;
}

.footer__wave svg {
  width: 300%;
  height: 100%;
  fill: var(--blue);
}

.footer__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.1fr 1.05fr;
  align-items: center;
  gap: 45px;
}

.footer__brand {
  width: 240px;
  max-height: 80px;
  object-fit: contain;
}

.footer__cta {
  text-align: center;
}

.footer__cta p {
  margin: 18px 0 0;
  font-size: 15px;
}

.btn--light {
  border-radius: 999px;
  background: #fff;
  color: var(--orange);
  box-shadow: 0 10px 28px rgba(15, 47, 58, 0.18);
}

.btn--light:hover,
.btn--light:focus-visible {
  background: #E7F2F0;
}

.footer__certs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 16px;
}

.footer__certs img {
  max-width: 120px;
  max-height: 72px;
  margin: auto;
  object-fit: contain;
  filter: drop-shadow(0 5px 12px rgba(9, 37, 64, 0.16));
}

.footer__certs img:nth-child(2) {
  max-width: 82px;
  max-height: 82px;
}

@media (max-width: 960px) {
  .hero__grid,
  .how__grid {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    max-width: 720px;
    margin-inline: auto;
  }

  .form-card {
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how__media img {
    min-height: 420px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    display: none;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .trust-bar__logos {
    min-height: 76px;
    justify-content: center;
    gap: 18px;
  }

  .trust-bar__logos img {
    max-height: 43px;
  }

  .trust-bar__logos .trust-bar__brand {
    max-height: 38px;
  }

  .trust-bar__republic {
    display: none;
  }

  .hero {
    padding: 40px 0 48px;
  }

  .hero__grid {
    gap: 36px;
  }

  .hero__title {
    padding-left: 13px;
    border-left-width: 4px;
    font-size: 25px;
    line-height: 1.35;
  }

  .hero__intro {
    font-size: 14px;
  }

  .hero__legal {
    font-size: 8px;
  }

  .form-card__title {
    padding-inline: 18px;
    font-size: 21px;
  }

  .partners__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 24px;
  }

  .section {
    padding: 58px 0;
  }

  .section-title {
    margin-bottom: 30px;
    font-size: 25px;
  }

  .benefits__grid {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    min-height: 0;
  }

  .how__grid {
    gap: 38px;
  }

  .how__media::before {
    right: -18px;
    bottom: -18px;
  }

  .how__media img {
    min-height: 300px;
  }

  .footer {
    margin-top: 55px;
    padding-top: 50px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
