:root {
  --color-primary: #ffffff;
  --color-secondary: #fdca3b;
  --color-gradient: linear-gradient(223deg, #fdde3b 0%, #fe9b3d 100%);
  --color-text: #1a1a1a;
  --color-placeholder: #cfcfcf;
}

*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: 1s;
}

html {
  font-size: 62.5%;
}

@media screen and (max-width: 1024px) {
  html {
    font-size: 56%;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 62.5%;
  }
}

ul,
li,
button,
label,
input {
  font-family: "Geologica", sans-serif;
  margin: 0;
  padding: 0;
}

input {
  width: 100%;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6,
p,
body {
  color: var(--color-text);
  font-family: "Geologica", sans-serif;
}

h1,
p {
  line-height: 150%;
}

h2,
h4 {
  font-weight: 400;
}

h1 {
  font-weight: 500;
  font-size: 6.4rem;
}

h2 {
  font-size: 4.8rem;
}

h3 {
  font-size: 3.6rem;
  font-weight: 500;
}

h4 {
  font-size: 2.4rem;
}

h5 {
  font-size: 1.8rem;
  line-height: 2.4rem;
  letter-spacing: 0.315px;
  text-transform: uppercase;
  font-weight: 400;
}

p {
  font-size: 1.6rem;
}

.btn {
  width: 100%;
  padding: 9px 24px;
  border-radius: 5px;
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 2.6rem;
  letter-spacing: 0.315px;
}

.color-secondary {
  color: var(--color-secondary);
}

.color-primary {
  color: var(--color-primary);
}

.color-dark {
  color: var(--color-text);
}

.btn--accent {
  background-color: var(--color-gradient);
  color: var(--color-primary);
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 3.6rem;
  }

  h2 {
    font-size: 2.8rem;
    font-weight: 600;
  }

  h3,
  h4,
  p,
  button {
    font-size: 1.4rem;
  }

  h5 {
    font-size: 1.4rem;
  }
}

/* CONTAINER */
.section {
  padding: 24px 0;
}
.container {
  margin: 0 auto;
  max-width: 1240px;
}

@media screen and (max-width: 1240px) {
  .container {
    width: 90vw;
  }
}

/* HEADER */
.header {
  padding: 27px;
  width: 100%;
  height: 100%;
  max-height: 94px;
}
.nav {
  display: flex;
  justify-content: space-between;
}
.logo {
  width: 100%;
  height: 100%;
}

.nav__logo {
  max-width: 157px;
  height: 67px;
}

.logo--primary {
  background: url(../img/icons/logo-primary.svg) center/contain no-repeat;
}

.nav__list {
  display: flex;
  align-items: center;
}

.nav__item {
  margin-left: 32px;
}

/* MAIN SECTION */
.main__container {
  display: grid;
}

.main__subheading,
.img__wrapper,
.main__heading,
.main__img,
.main__link {
  align-self: center;
  justify-self: center;
  max-width: 600px;
  text-align: center;
}
.main__subheading {
  margin: 16px 0 24px 0;
}

.img__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.main__img {
  width: 100%;
}
.phone-img {
  max-width: 1022px;
}

.main__bg {
  z-index: -1;
  width: 100%;
  position: absolute;
  top: 0;
}

/* ABOUT US SECTION */
.section__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.social-logo {
  width: 50px;
  height: 50px;
  margin-left: 15px;
}

.form__paragraph:hover {
  color: white;
}

.line {
  height: 1px;
  width: 100%;
  background-color: var(--color-secondary);
}
.section__header {
  grid-column-start: 2;
  display: flex;
  align-items: center;
  margin-bottom: 48px;
}

.section__heading {
  min-width: fit-content;
  text-transform: uppercase;
  margin-right: 16px;
}

.arrow__btn {
  background: url(../img/icons/arrow_btn.svg) center/cover no-repeat;
  width: 36px;
  height: 36px;
  position: absolute;
  z-index: 1;
  bottom: 0;
  right: 0;
}

.about__video {
  width: 100%;
  max-width: 297px;
  max-height: 646px;
  border-radius: 30px;
  border: 4px solid var(--color-text);
}
.left-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 3fr 2fr;
}
.about__bg {
  position: absolute;
  z-index: -1;
  max-width: 397px;
  left: 0;
  top: 12%;
}

.about__video {
  justify-self: center;
  grid-column-start: 2;
}

.about__heading {
  margin-bottom: 60px;
}

.about__subheading {
  margin: 36px 0;
}

.carousel__item {
  display: grid;
  grid-template-columns: 0.5fr 5fr;
  gap: 16px;
}

.carousel__heading {
  margin-bottom: 16px;
}

.carousel {
  position: relative;
}

.carousel__text {
  height: 168px;
}

.hidden {
  display: none;
}

.rectangle {
  display: none;
}

/* FORM SECTION */

.form__section .section__header {
  grid-column-start: 1;
  flex-direction: row-reverse;
}

.section__heading {
  margin-right: 0;
  margin-left: 16px;
}

.form__img {
  position: absolute;
  right: 0;
}

.form {
  height: 500px;
  background-color: #fdca3b;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-direction: column;
  /*width: 400px;*/
}

.form__row {
  flex-direction: row;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-left: 15px;
  cursor: pointer;
}


.main__bg--mob {
  display: none;
}

/* FOOTER */

.footer {
  background-color: var(--color-secondary);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

@media screen and (max-width: 1024px) {
  .about__section {
    position: relative;
  }
  .header {
    padding: 12px;
    background-color: var(--color-secondary);
    border-radius: 0 0 36px 36px;
    max-height: fit-content;
  }
  .section__container {
    grid-template-columns: 1fr;
  }

  .section__header {
    grid-column-start: unset;
    margin-bottom: 24px;
  }
  .section__heading {
    margin-right: 16px;
    margin-left: 0;
  }

  .about__bg {
    display: none;
  }

  .left-content {
    grid-template-columns: 1fr 3fr 1fr;
    grid-row-start: 2;
  }

  .right-content {
    margin-bottom: 24px;
  }

  .about__heading {
    margin-bottom: 32px;
  }

  .form__section .section__heading {
    margin-right: 0;
    margin-left: 16px;
  }

  .form__img {
    position: static;
    justify-self: end;
    margin-top: 24px;
    width: 100%;
  }
  .carousel__text {
    height: fit-content;
  }

  .main__bg--mob {
    display: flex;
    width: 100%;
  }

  .main__bg, .main__img {
    display: none;
  }

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

  .nav__logo {
    max-width: 112px;
  }

  .rectangle {
    display: block;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 503px;
    z-index: -1;
    background: url(../img/rectangle.png) center/cover no-repeat;
  }
}

@media screen and (max-width: 768px) {
  .footer .container {
    justify-content: center;
  }
}
