:root {
  --bmw-blue: #1c69d4;
  --ink: #17191d;
  --mist: #f3f5f7;
  --line: #d6dbe0;
  --deep: #101820;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: "bmw-next-light", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}
h1,
h2,
h3 {
  font-family: "bmw-next-light", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
}
strong {
  font-family: "bmw-next-bold", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
}
section {
  padding: 105px 0;
}
h2 {
  font-size: clamp(2.1rem, 4vw, 3.65rem);
  line-height: 1.06;
}
.site-nav {
  min-height: 82px;
  padding: 13px max(4vw, 30px);
  display: flex;
  align-items: center;
  gap: 28px;
  background: #fff;
}
.brand img {
  display: block;
  width: 52px;
}
.main-menu {
  display: flex;
  gap: 34px;
  margin-left: auto;
}
.main-menu a,
.text-link {
  color: var(--ink);
  text-decoration: none;
}
.main-menu a:hover,
.text-link:hover {
  color: var(--bmw-blue);
}
.blue-btn,
.white-btn {
  display: inline-block;
  padding: 14px 27px;
  border: 1px solid var(--bmw-blue);
  background: var(--bmw-blue);
  color: #fff;
  text-decoration: none;
  font-family: "bmw-next-bold", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.blue-btn:hover {
  background: #0753b9;
  color: #fff;
  text-decoration: none;
}
.white-btn {
  border-color: #fff;
  background: transparent;
}
.white-btn:hover {
  color: var(--ink);
  background: #fff;
  text-decoration: none;
}
.hero-section {
  position: relative;
  min-height: min(760px, calc(100vh - 82px));
  padding: 0;
  color: #fff;
  background: url("../img/bmw-seria-5-hero.webp") center/cover no-repeat;
}
.hero-section::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 68%;
  content: "";
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.18) 58%,
    transparent
  );
}
.hero-shade {
  min-height: inherit;
}
.hero-content {
  position: absolute;
  z-index: 1;
  bottom: 3.5rem;
  left: max(4vw, 30px);
}
.eyebrow {
  margin-bottom: 15px;
  color: var(--bmw-blue);
  font-family: "bmw-next-bold", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.hero-content .eyebrow {
  color: #fff;
}
.hero-content h1 {
  margin: 0 0 8px;
  font-size: clamp(4rem, 9vw, 7.8rem);
  line-height: 0.9;
}
.hero-price {
  max-width: 760px;
  margin-bottom: 30px;
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.section-intro {
  max-width: 900px;
}
.section-intro > p:not(.eyebrow) {
  max-width: 720px;
  font-size: 1.2rem;
}
.offer-section {
  background: var(--mist);
}
.offer-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: 500px;
  background: #fff;
}
.offer-copy {
  padding: clamp(34px, 5vw, 68px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.model-label,
.lease-label {
  margin-bottom: 5px;
  color: #555b63;
  font-size: 0.95rem;
}
.offer-copy h3 {
  margin-bottom: 38px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1;
}
.offer-value {
  margin: 0 0 12px;
  color: var(--bmw-blue);
  font-family: "bmw-next-bold", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(3rem, 5vw, 4.6rem);
  font-weight: 700;
  line-height: 0.9;
  white-space: nowrap;
}
.offer-value span {
  font-size: 0.42em;
}
.offer-value sup {
  font-size: 0.85rem;
  line-height: 0;
  vertical-align: super;
}
.catalogue-price {
  margin-bottom: 28px;
}
.offer-footnote {
  max-width: 440px;
  margin: 30px 0 22px;
  color: #555b63;
  font-size: 0.86rem;
  line-height: 1.45;
}
.offer-copy .blue-btn {
  margin-top: auto;
}
.offer-image {
  min-height: 400px;
  background: url("../img/bmw-5-side.webp") center/cover no-repeat;
}
.benefit-grid,
.package-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 54px;
  background: var(--line);
  border: 1px solid var(--line);
}
.benefit-card {
  min-height: 260px;
  padding: 32px;
  border: 0;
  background: #fff;
  color: var(--ink);
  text-align: left;
  display: flex;
  flex-direction: column;
}
.benefit-card span {
  color: var(--bmw-blue);
  font-family: "bmw-next-bold", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.3rem;
}
.benefit-card h3 {
  margin: 16px 0 12px;
  font-size: 1.8rem;
}
.benefit-card h3 sup {
  font-size: 0.65em;
}
.benefit-card p {
  max-width: 360px;
  margin: 0;
  color: #555b63;
}
.benefit-availability {
  display: block;
  margin-top: 12px;
  color: #6a717a;
  font-size: 0.82rem;
}
.benefit-grid {
  grid-template-columns: repeat(3, 1fr);
}
.packages-section {
  color: #fff;
  background: var(--deep);
}
.packages-section .eyebrow {
  color: #8ebeff;
}
.package-grid {
  background: #50606f;
  border-color: #50606f;
}
.package-card {
  min-height: 220px;
  padding: 34px;
  background: var(--deep);
}
.package-card p {
  margin-bottom: 35px;
  color: #c8d0d8;
}
.package-card h3 {
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}
.package-card span {
  color: #8ebeff;
  font-family: "bmw-next-bold", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.1;
}
.package-card-accent {
  background: #1b2d3d;
}
.design-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  padding: 0;
}
.design-image {
  min-height: 560px;
  background: url("../img/bmw-5-interior.webp") center/cover no-repeat;
}
.design-copy {
  padding: clamp(48px, 8vw, 120px) clamp(30px, 7vw, 105px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--mist);
}
.design-copy h2 {
  margin-bottom: 22px;
}
.design-copy p:not(.eyebrow) {
  margin-bottom: 35px;
  font-size: 1.13rem;
}
.text-link {
  font-family: "bmw-next-bold", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.offer-form {
  margin-top: 96px;
  padding: 0;
}
.offer-form .row {
  margin-right: 0;
  margin-left: 0;
}
.offer-form h2,
.offer-form > .container > .row > p {
  width: 100%;
  text-align: center;
}
.offer-form h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}
#main-form {
  width: 100%;
}
#main-form .col-lg-6 {
  float: left;
}
#main-form .form-item {
  margin-bottom: 20px;
}
#main-form label {
  display: block;
  margin-bottom: 7px;
}
#main-form input[type="text"],
#main-form input[type="email"],
#main-form select,
#main-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #69717b;
  background: #fff;
}
#main-form textarea {
  min-height: 152px;
}
.policy {
  clear: both;
  margin-top: 35px;
  padding: 28px;
  background: var(--mist);
  font-size: 0.84rem;
}
.policy input[type="checkbox"] {
  float: left;
  margin: 5px 10px 0 0;
}
.statement-item {
  margin-bottom: 18px;
  overflow: auto;
}
#main-form input[type="submit"] {
  display: block;
  margin: 30px auto 0;
  padding: 14px 35px;
  border: 0;
  background: var(--bmw-blue);
  color: #fff;
  font-family: "bmw-next-bold", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.phones-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  margin: 3rem 0 42px;
}
.phones-wrapper .col {
  padding: 16px 20px;
  border-left: 1px solid var(--line);
  text-align: center;
}
.phones-wrapper .col:first-child {
  border-left: 0;
}
.phones-wrapper a {
  color: var(--bmw-blue);
  font-family: "bmw-next-bold", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
}
.footer {
  padding: 42px 0;
  color: #fff;
  background: var(--deep);
}
.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}
.footer p {
  max-width: 520px;
  margin: 0;
  font-size: 0.92rem;
}
.footer p:last-child {
  text-align: right;
}
.footer a {
  margin-left: 15px;
  color: #fff;
}
.modal {
  background: rgba(0, 0, 0, 0.6);
}
@media (max-width: 991px) {
  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .offer-panel,
  .design-section {
    grid-template-columns: 1fr;
  }
  .offer-image {
    min-height: 370px;
  }
  .design-image {
    min-height: 420px;
  }
}
@media (max-width: 767px) {
  .site-nav {
    min-height: 68px;
    padding: 9px 18px;
  }
  .brand img {
    width: 43px;
  }
  .main-menu {
    display: none;
  }
  .site-nav .blue-btn {
    padding: 10px 15px;
    font-size: 0.82rem;
  }
  .hero-section {
    min-height: 680px;
    background-position: 57% center;
  }
  .hero-section::before {
    width: 100%;
    background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.72),
      rgba(0, 0, 0, 0.08) 78%
    );
  }
  .hero-content {
    right: 24px;
    bottom: 3rem;
    left: 24px;
  }
  .hero-content h1 {
    font-size: 4.2rem;
  }
  section {
    padding: 70px 0;
  }
  .offer-copy {
    min-height: 465px;
  }
  .offer-image {
    min-height: 300px;
  }
  .benefit-grid,
  .package-grid {
    grid-template-columns: 1fr;
  }
  .benefit-card {
    min-height: 220px;
  }
  .offer-value {
    white-space: normal;
  }
  .offer-form {
    margin-top: 64px;
  }
  #main-form .col-lg-6 {
    float: none;
  }
  .policy {
    padding: 20px;
  }
  .phones-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .phones-wrapper .col {
    min-width: 0;
    padding: 16px 10px;
    border-left: 0;
    border-top: 1px solid var(--line);
    overflow-wrap: anywhere;
  }
  .phones-wrapper .col:nth-child(-n + 2) {
    border-top: 0;
  }
  .footer .container {
    display: block;
  }
  .footer p:last-child {
    margin-top: 18px;
    text-align: left;
  }
}
