@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

html {
  scroll-behavior: smooth;
}

:root {
  --primary: #ff974a;
  --secondary-dark: #1d2121;
  --secondary-light: #262c2c;
  --font-main: "Montserrat", sans-serif;
  --container-desk: 1500px;
  --container-laptop: 1120px;
  --container-mob: calc(100% - 40px);
  --scroll-desk: 126px;
  --scroll-mob: 70px;
}

body,
* {
  font-family: var(--font-main);
}

body {
  background-color: var(--secondary-dark);
  color: #fff;
}

.container {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: var(--container-desk);
  height: 100%;
}

.btn {
  background: none;
  border: none;
  height: 52px;
  width: 100%;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--secondary-dark);
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
}

.input {
  height: 52px;
  background: none;
  border-radius: 32px;
  border: 2px solid #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 0 25px;
  color: #fff;
  width: 100%;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 26px 0;
  z-index: 3;
  background: none;
  transition: all 0.3s;
}

.header.scroll {
  background: #1d2121ef;
  backdrop-filter: blur(10px);
}

.header::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  top: 72px;
  width: 85%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fff);
}

.header__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  width: 54px;
}

.header__logo img {
  width: 100%;
}

.header__main {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: auto;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-left: 136px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 64px;
}

.header__nav-item {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.header__nav-item:hover {
  font-weight: 700;
  position: relative;
}

.header__nav-item:hover::after {
  content: "";
  position: absolute;
  height: 4px;
  width: 100%;
  left: 0;
  bottom: -10px;
  background-color: #fff;
}

.header__right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transform: translateY(-18px);
}

.header__contacts {
  display: flex;
  align-items: center;
  gap: 25px;
}

.header__contacts-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
}

.header__btn {
  max-width: 216px;
  font-size: 12px;
  padding: 0 10px;
  border-radius: 15px;
  height: 30px;
  padding-left: 42px;
}

.burger {
  display: none;
}

.menu {
  display: none;
}

.hero {
  height: 970px;
  background-image: url(../img/hero.webp);
  background-size: cover;
  background-position: center;
}

.hero__content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 180px 0 42px;
}

.hero__title {
  font-size: 54px;
  font-weight: 600;
  text-transform: uppercase;
}

.hero__title b {
    color: var(--primary);
}

.hero__title span {
  font-size: 46px;
  display: block;
  margin-top: 15px;
}

.hero__gifts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-left: auto;
}

.hero__gifts-item {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--secondary-dark);
  font-size: 33px;
  font-weight: 600;
}

.action {
  background-color: var(--secondary-light);
}

.action__content {
  height: 100%;
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.action__main {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.action__title {
  font-size: 34px;
  font-weight: 600;
}

.action__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action__form .form-row {
  display: flex;
  gap: 40px;
}

.agreement {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.agreement input {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}

.agreement input + span {
  width: 14px;
  height: 13px;
  border-radius: 2px;
  border: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.agreement input + span img {
  opacity: 0;
  transition: all 0.3s;
}

.agreement input:checked + span img {
  opacity: 1;
}

.agreement p {
  font-size: 8px;
  max-width: 260px;
  line-height: 1.2;
}

.agreement p a {
  text-decoration: underline;
  font-weight: 700;
}

.section {
  margin-top: 100px;
  scroll-margin-top: var(--scroll-desk)
}

.section__title {
  font-size: 50px;
  font-weight: 600;
}

.models__list {
  margin-top: 30px;
}

.model-card {
  position: relative;
  z-index: 1;
  height: 665px;
  background-color: var(--secondary-light);
}

.model-card__bg {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 250px;
  background-image: url(../img/model-bg.webp);
  background-size: cover;
  background-position: left;
}

.model-card__content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px 0;
  position: relative;
}

.model-card__images {
  position: absolute;
  height: 100%;
  width: 850px;
  right: 0;
  top: 20px;
}

.model-card__main-image {
  width: 100%;
  display: none;
}

.model-card__main-image.active {
    display: block;
}

.model-card__color-select {
  margin-top: -50px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.model-card__color-name {
  font-size: 14px;
}

.model-card__color-name span {
  font-weight: 700;
}

.model-card__colors-list {
  display: flex;
  gap: 16px;
}

.model-card__colors-list .color {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

.model-card__gallery {
  margin-top: 26px;
  width: 100%;
  display: flex;
  gap: 15px;
  height: 82px;
}

.model-card__gallery-item {
  height: 100%;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background-color: #fff;
}

.model-card__gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.model-card__colors-list .color.active {
  filter: drop-shadow(1px 0px 15px var(--primary));
}

.model-card__name {
  font-size: 64px;
  font-weight: 600;
  text-transform: uppercase;
}

.model-card__price {
  color: var(--primary);
  margin-top: 10px;
  font-size: 40px;
  font-weight: 700;
  text-transform: uppercase;
}

.model-card__payment {
  margin-top: 10px;
  font-size: 27px;
  font-weight: 600;
}

.model-card__benefits {
  display: grid;
  gap: 20px 25px;
  grid-template-columns: repeat(2, max-content);
}

.model-card__benefits-item {
  display: flex;
  gap: 18px;
  font-size: 25px;
  font-weight: 600;
  align-items: flex-start;
}

.model-card__benefits-item img {
  width: 24px;
  margin-top: 2px;
}

.model-card__buttons {
  display: flex;
  gap: 20px;
}

.model-card__buttons .btn {
  max-width: 256px;
}

.filter {
  display: grid;
  grid-template-columns: repeat(2, 370px);
  gap: 150px;
  margin-top: 58px;
}

.select2-container--default .select2-selection--single {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid #fff;
  background: none;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: #fff;
  padding: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
}

.select2-results__option--selectable {
    color: var(--secondary-dark);
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--primary);
}

.select2-selection__arrow {
  background-image: url(../img/select-arrow.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.select2-selection__arrow b {
  display: none !important;
}

.equipments__list {
  margin-top: 52px;
}

.equipment-card {
  position: relative;
  border-bottom: 1px solid #fff;
  height: 272px;
}

.equipment-card::before {
  content: url(../img/equipmnet-ellipse.svg);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: -1;
}

.equipment-card__content {
  display: grid;
  grid-template-areas:
    "image heading prices"
    "image specs buttons";
  grid-template-columns: 545px auto 300px;
  gap: 0 80px;
}

.equipment-card__image {
  grid-area: image;
  max-height: 260px;
}

.equipment-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.equipment-card__heading {
  grid-area: heading;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.equipment-card__model {
  font-size: 36px;
  font-weight: 600;
}

.equipment-card__equipment {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);
}

.equipment-card__specs {
  grid-area: specs;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  grid-template-rows: repeat(2, 25px);
  gap: 16px 50px;
}

.equipment-card__specs-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
}

.equipment-card__prices {
  grid-area: prices;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  text-align: right;
}

.equipment-card__old-price {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
}

.equipment-card__new-price {
  color: var(--primary);
  font-size: 37px;
  font-weight: 700;
}

.equipment-card__month-price {
  font-size: 22px;
  font-weight: 600;
}

.equipment-card__buttons {
  grid-area: buttons;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.equipment-card__buttons .btn {
  height: 45px;
}

.offers {
  display: flex;
  height: 680px;
  background-color: #000;
}

.offer {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.offer__bg {
  width: 100%;
  height: 100%;
  z-index: -1;
  position: absolute;
  left: 0;
  top: 0;
  background-size: cover;
}

#credit .offer__bg {
  background-image: url(../img/credit-bg.webp);
}

#trade-in .offer__bg {
  background-image: url(../img/trade-in-bg.webp);
}

.offer-container {
  height: 100%;
  width: calc(100% - (100vw - var(--container-desk)) / 2);
}

#credit .offer-container {
  margin-left: auto;
}

.offer__content {
  height: 100%;
  padding-top: 35px;
  position: relative;
}

#trade-in .offer__content {
  padding-left: 60px;
}

.offer__title {
  font-size: 38px;
  font-weight: 600;
  line-height: 1.2;
}

.offer__title span {
  display: block;
}

.offer__heading {
  font-size: 61px;
  font-weight: 600;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: absolute;
  right: 25px;
  top: 162px;
}

#trade-in .offer__heading {
  right: 0;
}

.offer__terms {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.offer__terms-item {
  display: flex;
  gap: 20px;
  font-size: 29px;
  font-weight: 600;
  align-items: flex-start;
}

.offer__terms-item img {
  margin-top: 6px;
}

.offer__terms-item span {
  color: var(--primary);
}

.offer__btn {
  position: absolute;
  right: 25px;
  bottom: 25px;
  max-width: 220px;
  height: 45px;
}

#trade-in .offer__btn {
  right: 0;
}

.footer {
  padding-top: 28px;
  position: relative;
  overflow: hidden;
  scroll-margin-top: var(--scroll-mob);
}

.contacts {
  position: relative;
  height: 390px;
  scroll-margin-top: var(--scroll-mob);
}

/* === ИЗМЕНЕНО: Контент занимает только левую половину === */
.contacts__content {
  display: flex;
  flex-direction: column;
  gap: 35px;
  max-width: 50%; /* Занимает левую половину */
  height: 100%;
  padding-top: 20px;
  position: relative;
  z-index: 2;
}

.contacts .section__title {
  text-align: center;
}

.contacts__list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.contacts__list-item {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 22px;
  font-weight: 500;
}

.contacts__btn {
  max-width: 272px;
  height: 45px;
  margin: 0 auto;
}

/* === ИЗМЕНЕНО: Карта занимает ПРАВУЮ половину на десктопе === */
.map {
  position: absolute;
  right: 0; /* Прижата к правому краю */
  top: 0;
  width: 50%; /* Занимает 50% ширины */
  height: 100%;
  background-color: var(--secondary-light);
  z-index: 1;
}

.legal {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 30px 0;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer__links-item {
  font-size: 12px;
  text-decoration: underline;
}

.legal p {
  font-size: 12px;
  font-weight: 500;
}

.disclaimer {
  font-weight: 400;
  max-width: 550px;
}

.footer__image {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: -1;
  width: 340px;
}

@media screen and (max-width: 1540px) {
  .container {
    max-width: var(--container-laptop);
  }

  .header__nav {
    gap: 15px;
  }

  .header__main {
    gap: 15px;
  }

  .header__contacts {
    gap: 15px;
  }

  .hero {
    height: 700px;
  }

  .hero__content {
    padding: 130px 0 30px;
  }

  .hero__title {
    font-size: 48px;
  }

  .action__content {
    gap: 40px;
  }

  .model-card {
    height: 600px;
  }

  .model-card__benefits-item {
    font-size: 20px;
  }

  .model-card__images {
    width: 600px;
  }

  .model-card__gallery {
    height: 66px;
  }

  .equipment-card__content {
    height: 100%;
    grid-template-columns: 325px auto 280px;
  }

  .offers {
    height: 520px;
  }

  .offer-container {
    width: calc(100% - (100vw - var(--container-laptop)) / 2);
  }

  .offer__title {
    font-size: 28px;
  }

  .offer__heading {
    font-size: 40px;
    top: 140px;
  }

  .offer__terms-item {
    font-size: 22px;
  }

  .disclaimer {
    max-width: 360px;
  }
}

@media screen and (max-width: 620px) {
  .container {
    max-width: var(--container-mob);
  }

  .header {
    padding: 12px 0;
  }

  .btn {
    height: 45px;
    padding: 0 20px;
    font-size: 12px;
    max-width: 100%;
  }

  .input {
    height: 45px;
    border-width: 1px;
    padding: 0 20px;
    font-size: 12px;
  }

  .header::after {
    top: auto;
    bottom: 0;
    width: 100%;
  }

  .header__nav,
  .header__address,
  .header__btn {
    display: none;
  }

  .header__logo {
    width: 32px;
  }

  .header__main {
    margin: 0;
    justify-content: center;
    padding-left: 0;
  }

  .header__right {
      transform: none;
  }

  .burger {
    display: block;
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary);
    padding: 0;
  }

  .burger img {
    width: 20px;
    transition: all 0.3s;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .burger .burger__close {
    opacity: 0;
  }

  .header.active {
    background: none;
    backdrop-filter: unset;
  }

  .header.active::after {
    display: none;
  }

  .header.active .burger .burger__close {
    opacity: 1;
  }

  .header.active .burger .burger__open {
    opacity: 0;
  }

  .menu {
    display: block;
    width: 100%;
    height: 470px;
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(100%);
    transition: all .3s;
    z-index: 2;
  }

  .menu::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      z-index: -1;
      width: 100%;
      height: 100%;
      backdrop-filter: blur(15px);
      -webkit-backdrop-filter: blur(15px);
  }

  .header.active + .menu {
    transform: none;
  }

  .menu__content {
    height: 100%;
    padding: 100px 0 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .menu__nav {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .menu__nav-item {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
  }

  .menu__nav-item a {
    position: relative;
  }

  .menu__nav-item.active {
    font-weight: 700;
  }

  .menu__nav-item.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    height: 1px;
    width: calc(100% + 20px);
    background-color: #fff;
    opacity: .2;
  }

  .menu__nav-item.active a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background: #fff;
  }

  .menu__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .menu__contacts {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .menu__contacts-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
  }

  .menu__btn {
    max-width: 160px;
    padding: 0 10px;
    height: 30px;
  }

  .hero {
    height: auto;
    aspect-ratio: 360/540;
    background-image: url(../img/hero-mob.webp);
  }

  .hero__content {
    padding: 96px 0 20px;
  }

  .hero__title {
    font-size: 25px;
    line-height: 1.2;
  }

  .hero__title span {
    font-size: 19px;
    margin-top: 8px;
  }

  .hero__gifts {
    gap: 0;
    margin-left: 0;
  }

  .hero__gifts-item {
    gap: 16px;
    font-size: 21px;
  }

  .hero__gifts-item svg {
    width: 30px;
  }

  .action__content {
    flex-direction: column;
    gap: 22px;
    padding: 20px 0 36px;
  }

  .action__main {
    gap: 20px;
  }

  .action__title {
    font-size: 20px;
  }

  .action__form .form-row {
    flex-direction: column;
    gap: 12px;
  }

  .section {
    margin-top: 50px;
    scroll-margin-top: var(--scroll-mob);
  }
  
  .section__title {
    font-size: 26px;
  }

  .model-card {
    height: auto;
  }

  .model-card__bg {
    height: 180px;
    background-image: url(../img/model-bg-mob.webp);
  }

  .model-card__content {
    padding: 40px 0 20px;
  }

  .model-card__name {
    font-size: 31px;
  }

  .model-card__price {
    margin-top: 6px;
    font-size: 24px;
  }

  .model-card__payment {
    font-size: 20px;
  }

  .model-card__images {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .model-card__color-select {
    margin-top: 0;
  }

  .model-card__color-name {
    font-size: 12px;
  }

  .model-card__colors-list {
    gap: 8px;
  }

  .model-card__colors-list .color {
    width: 24px;
    height: 24px;
  }

  .model-card__gallery {
    margin-top: 16px;
    gap: 8px;
    height: 40px;
  }

  .model-card__benefits {
    gap: 12px 10px;
    margin-top: 32px;
  }

  .model-card__benefits-item {
    font-size: 14px;
    gap: 8px;
  }

  .model-card__benefits-item img {
    width: 12px;
  }

  .model-card__buttons {
    margin-top: 16px;
    gap: 12px;
    flex-direction: column;
  }

  .model-card__buttons .btn {
    max-width: 100%;
  }

  .filter {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .equipment-card {
    height: auto;
  }

  .equipment-card__content {
    display: flex;
    flex-direction: column;
    padding-bottom: 22px;
    padding-top: 20px;
  }

  .equipment-card__model {
    font-size: 24px;
  }

  .equipment-card__equipment {
    font-size: 29px;
  }

  .equipment-card__specs {
    margin-top: 14px;
    gap: 12px 30px;
  }

  .equipment-card__specs-item {
    font-size: 15px;
  }

  .equipment-card__image {
    margin-top: 32px;
  }

  .equipment-card__prices {
    text-align: left;
  }

  .equipment-card__buttons {
    margin-top: 18px;
  }

  .offers {
    height: auto;
    flex-direction: column;
    background-color: var(--secondary-dark);
  }

  .offer {
    height: auto;
    border-bottom: 1px solid #fff;
    scroll-margin-top: var(--scroll-mob)
  }

  .offer__bg {
    position: relative;
    height: 210px;
    background-position: 0 220px;
  }

  .offer__bg::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 30px;
    width: 100%;
    background: linear-gradient(transparent, var(--secondary-dark));
  }

  .offer-container {
    width: var(--container-mob);
    margin: 0 auto;
    height: auto;
  }

  .offer__content {
    position: static;
    padding: 15px 0;
  }

  #trade-in .offer__content {
    padding-left: 0;
  }

  .offer__title {
    font-size: 22px;
  }

  .offer__title span {
    font-size: 16px;
  }

  .offer__heading {
    top: 20px;
    left: 20px;
    font-size: 35px;
  }

  #trade-in .offer__heading {
    right: 20px;
    text-align: right;
  }

  .offer__terms {
    margin-top: 15px;
    gap: 10px;
  }

  .offer__terms-item {
    font-size: 18px;
    gap: 12px;
  }

  .offer__terms-item img {
    width: 18px;
    margin-top: 2px;
  }

  .offer__btn {
    position: static;
    margin-top: 15px;
  }

  .contacts {
    height: auto;
  }

  .contacts .section__title {
    text-align: left;
  }

  /* === ИЗМЕНЕНО: На мобильных контент занимает всю ширину === */
  .contacts__content {
    gap: 20px;
    max-width: 100%; /* На всю ширину */
  }

  .contacts__list {
    gap: 8px;
  }

  .contacts__list-item {
    gap: 18px;
    font-size: 15px;
  }

  .contacts__list svg {
    width: 18px;
  }

  /* === ИЗМЕНЕНО: На мобильных карта внизу на всю ширину === */
  .map {
    position: static;
    width: 100%;
    height: 240px;
    background-color: var(--secondary-light);
    margin-top: 26px;
  }

  .legal {
    flex-direction: column;
    gap: 14px;
  }

  .footer__image {
    width: 180px;
  }
}

.showmore-hide,
.filtered-hide {
    display: none !important;
}