:root {
  --main-color: #FFFFFF;
  --secondary-color: #000000;
  --accent-color: #D2D91C;
  --main-font: "Luckiest Guy";
  --secondary-font: "Inter";
  --max-width: 1440px;
}

html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--main-font), sans-serif;
  color: var(--main-color);
  background-color: #141420;
  position: relative;
}

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

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6, p, label {
  margin-top: 0;
  margin-bottom: 0;
}

button, input {
  border: none;
}

button {
  cursor: pointer;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.main {
  padding-bottom: 33px;
}

@media (min-width: 1174px) {
  .container {
    padding-left: 48px;
    padding-right: 48px;
  }

  .main {
    padding-bottom: 75px;
  }
}

/* Header */
.header {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 50%;
  transform: translateX(50%);
  padding-top: 24px;
}

.logo {
  width: 90px;
}

@media (min-width: 1174px) {
  .header {
    right: 0;
    left: 0;
    transform: none;
    padding-top: 40px;
  }

  .logo {
    width: 154px;
  }
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 115px;
  padding-bottom: 84px;
  background-image: url("images/hero-bg.png");
  background-size: cover;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 196px;
  background: linear-gradient(360deg, #141420 0%, rgba(8, 28, 71, 0) 85.06%);
}

@media (max-width: 393px) {
  background-image: url("images/hero-bg-mob.png");
}

.hero__blocks {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 16px;
}

.hero__text {
  display: flex;
  flex-direction: column;
}

.hero__title {
  margin-bottom: 12px;
  color: var(--accent-color);
  text-transform: uppercase;
  font-size: 20px;
  line-height: 24px;
  text-align: center;
}

.hero__description {
  max-width: 651px;
  text-transform: uppercase;
  font-size: 25px;
  line-height: 30px;
  text-shadow: -1px -1px 0 black, 1px -1px 0 black, 1px 1px 0 black, 1px 1px 0 black;
  text-align: center;
}

.hero__image {
  max-width: 266px;
}

@media (min-width: 1174px) {
  .hero {
    height: 1024px;
    padding-top: 216px;
  }

  .hero__blocks {
    flex-direction: row;
    justify-content: space-between;
    gap: 32px;
  }

  .hero__text {
    flex: 1 1 40%;
  }

  .hero__title {
    text-align: left;
    margin-bottom: 16px;
    font-size: 28px;
  }

  .hero__description {
    text-align: left;
    margin-bottom: 60px;
    font-size: 38px;
    line-height: 50px;
    letter-spacing: 0.01em;
  }

  .hero__image {
    max-width: 542px;
    flex: 1 1 30%;
  }
}

/* Form */
.form {
  position: relative;
  margin-bottom: 32px;
  margin-top: 56px;
}

.form--success .form__description, .form--success .form__phone {
  display: none;
}

.success {
  display: none;
  margin-bottom: 32px;
  font-family: var(--secondary-font), sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;
  color: var(--accent-color);
  max-width: 528px;
}

.form__description {
  position: absolute;
  top: -28px;
  height: 28px;
  padding: 0 16px;
  background-color: #3E5690;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.form__phone {
  position: relative;
  display: inline-flex;
  margin-bottom: 37px;
}

.input--error .select--selected {
  border-top: 2px solid #FF0004;
  border-bottom: 2px solid #FF0004;
  border-left: 2px solid #FF0004;
}

.form__phone .select--selected, .form__phone .input, .form__phone .button {
  height: 64px;
}

.select {
  position: relative;
}

.select__icon {
  width: 38px;
}

.select--selected {
  display: flex;
  align-items: center;
  background-color: var(--main-color);
  border-radius: 0 0 0 16px;
  border-right: 1px solid #C6C6C6;
  padding: 0 16px;
  cursor: pointer;
}

.select--selected:after {
  content: "";
  display: inline-block;
  background-image: url("images/dropdown.png");
  background-size: contain;
  background-repeat: no-repeat;
  width: 12px;
  height: 12px;
  margin-left: 16px;
}

.select--selected.select--active {
  border-radius: 0;
  border-bottom: 1px solid #C6C6C6;
}

.select--selected.select--active:after {
  transform: rotate(180deg);
}

.select__items {
  position: absolute;
  background-color: var(--main-color);
  z-index: 99;
  width: 100%;
  top: 100%;
  left: 0;
}

.select__items li {
  display: flex;
  justify-content: center;
  padding: 10px;
  cursor: pointer;
}

.select__items li:not(:last-child) {
  border-bottom: 1px solid #C6C6C6;
}

.select__items li:hover {
  background-color: #F1F1F1;
}

.select--hide {
  display: none;
}

.input {
  font-family: var(--main-font), sans-serif;
  width: 256px;
  padding: 0 16px;
  font-size: 24px;
}

.input::placeholder {
  font-family: var(--main-font), sans-serif;
  color: #C2C2C2;
  font-size: 24px;
}

.input--error .input {
  border-top: 2px solid #FF0004;
  border-bottom: 2px solid #FF0004;
}

.button {
  padding: 0 32px;
  background-color: var(--accent-color);
  font-family: var(--main-font), sans-serif;
  -webkit-text-fill-color: white;
  -webkit-text-stroke: 1px black;
  font-size: 24px;
  color: var(--main-color);
  border-radius: 0 16px 16px 0;
}

.input--error .button {
  border-top: 2px solid #FF0004;
  border-bottom: 2px solid #FF0004;
  border-right: 2px solid #FF0004;
}

.form__consent {
  font-family: var(--secondary-font), sans-serif;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 554px;
}

.consent__input {
  display: none;
}

.consent__label {
  position: relative;
  padding-left: 36px;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 24px;
}

.consent__label a {
  text-decoration: underline;
  color: #FFFFFF;
}

.consent__label::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background-color: var(--main-color);
  transition: background-color 0.3s;
}

.consent__input:checked + .consent__label::before {
  background-color: var(--accent-color);
}

.consent--error .consent__input + .consent__label::before {
  border: 2px solid #FF0004;
  background-color: #FFCFCF;
}

.consent__input:checked + .consent__label::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 6px;
  height: 12px;
  border: solid var(--main-color);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.error {
  display: none;
  position: absolute;
  bottom: -24px;
  left: 0;
  font-family: var(--secondary-font), sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 16px;
  color: #FF0004;
}

.hero__footer {
  display: none;
  position: absolute;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 39px;
  width: max-content;
  padding: 0 20px;
  border-radius: 9px;
  background-color: rgba(255, 255, 255, 0.07);
}

.hero__footer li {
  font-family: var(--secondary-font), sans-serif;
  font-size: 20px;
  font-weight: 600;
}

.hero__footer li:not(:last-child)::after {
  content: "•";
  margin-left: 20px;
}

@media (min-width: 1174px) {
  .hero__footer {
    display: flex;
  }

  .form {
    margin-top: 0;
  }
}

/* Install Buttons */
.install {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding-top: 86px;
  padding-bottom: 96px;
}

.install__now {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: transparent;
}

.install__now img {
  width: 182px;
}

.install__buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.install__buttons a {
  width: 162px;
  background-color: transparent;
}

.install__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.install__footer li {
  font-family: var(--secondary-font), sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 14px;
  background-color: rgba(255, 255, 255, 0.07);
  border-radius: 9px;
}

.install__footer li::after {
  content: "•";
  margin-left: 8px;
}

.install__footer li::before {
  content: "•";
  margin-right: 8px;
}

@media (min-width: 1174px) {
  .install {
    display: none;
  }
}

/* Testimonials Section */
.testimonials {
  text-align: center;
  padding-bottom: 155px;
}

.slider {
  position: relative;
  margin: 0 auto;
  max-width: 344px;
  height: 174px;
  background-image: url("images/quote.png");
  background-size: contain;
  background-repeat: no-repeat;
}

.slider__container {
  margin: 0 auto;
  max-width: 300px;
  height: 100%;
  overflow: hidden;
}

.slider__wrapper {
  width: 100%;
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slider__slide {
  padding-top: 32px;
  min-width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.testimonial {
  font-family: var(--secondary-font), sans-serif;
  font-style: italic;
  font-size: 16px;
  font-weight: 500;
  line-height: 19px;
  color: var(--secondary-color);
}

.stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.star {
  width: 18px;
  height: 18px;
  background-image: url(images/star.png);
  background-size: contain;
  background-repeat: no-repeat;
}

.star--half {
  background-image: url(images/star-half.png);
}

.star--empty {
  background-image: url(images/star-empty.png);
}

.slider__arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 51px;
  background-color: transparent;
}

.slider__arrow--prev {
  left: -64px;
}

.slider__arrow--next {
  right: -64px;
}

.slider__pagination {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

.slider__pagination-dot {
  width: 11px;
  height: 11px;
  background-color: rgba(255, 255, 255, 0.37);
  border-radius: 50%;
  margin: 0 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.slider__pagination-dot--active {
  background-color: var(--accent-color);
}

.slider__earth {
  width: 70px;
  position: absolute;
  top: -35px;
  right: 0;
}

@media (min-width: 1174px) {
  .testimonials {
    padding-top: 40px;
    padding-bottom: 160px;
  }

  .slider {
    max-width: 629px;
    height: 306px;
  }

  .slider__container {
    max-width: 500px;
  }

  .slider__slide {
    gap: 24px;
    padding-top: 72px;
  }

  .testimonial {
    font-size: 20px;
    line-height: 24px;
  }

  .stars {
    gap: 8px;
  }

  .star {
    width: 40px;
    height: 40px;
  }

  .slider__arrow {
    display: block;
  }

  .slider__pagination {
    bottom: -56px;
  }

  .slider__pagination-dot {
    width: 14px;
    height: 14px;
    margin: 0 8px;
  }

  .slider__earth {
    width: 118px;
    top: -55px;
    right: -55px;
  }
}

/* Features Section */
.features {
  padding-bottom: 92px;
}

.features__title {
  margin-bottom: 34px;
  font-size: 22px;
  line-height: 26px;
  letter-spacing: 0.01em;
  text-shadow: -1px -1px 0 black, 1px -1px 0 black, 1px 1px 0 black, 1px 1px 0 black;
}

.features__title span {
  color: var(--accent-color);
}

.cards {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cards__item {
  position: relative;
  background-color: #1C2133;
  border-radius: 14px;
  padding: 180px 8px 14px;
  width: 164px;
  overflow: hidden;
}

.cards__item img {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.cards__item p {
  font-size: 14px;
  line-height: 14px;
  text-shadow: -1px -1px 0 black, 1px -1px 0 black, 1px 1px 0 black, 1px 1px 0 black;
}

@media (min-width: 1174px) {
  .features {
    padding-bottom: 172px;
  }

  .features__title {
    margin-bottom: 40px;
    font-size: 28px;
    line-height: 55px;
    text-align: center;
  }

  .cards {
    gap: 32px;
  }

  .cards__item {
    border-radius: 26px;
    padding: 349px 24px 28px;
    width: 312px;
  }

  .cards__item p {
    font-size: 24px;
    line-height: 24px;
  }
}

/* CTA Section */
.cta {
  padding-bottom: 140px;
  background-image: url("images/cta-bg.png");
  background-size: cover;
  background-repeat: no-repeat;
}

@media (max-width: 393px) {
  background-image: url("images/cta-bg-mob.png");
}

.cta__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta__logo {
  width: 116px;
  margin-bottom: 52px;
}

.cta__title {
  max-width: 346px;
  font-size: 32px;
  line-height: 37px;
  letter-spacing: 0.01em;
  margin-bottom: 40px;
  text-shadow: -1px -1px 0 black, 1px -1px 0 black, 1px 1px 0 black, 1px 1px 0 black;
}

.cta__button {
  background-color: transparent;
}

.cta__button img {
  width: 182px;
}

@media (min-width: 1174px) {
  .cta__logo {
    width: 188px;
    margin-bottom: 64px;
  }

  .cta__title {
    max-width: 825px;
    font-size: 52px;
    line-height: 55px;
    margin-bottom: 84px;
  }

  .cta__button img {
    width: 228px;
  }
}

/* Footer */
.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background-color: #0163BA;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  border-radius: 15px 15px 0 0;
}

.footer a {
  color: var(--main-color);
  font-size: 14px;
}

@media (min-width: 1174px) {
  .footer {
    height: 110px;
    border-radius: 30px 30px 0 0;
  }
}