:root {
  --color-white: #ffffff;
  --color-black: #212121;
  --color-grey-blue: #989abd;
  --color-blue: #2b3196;
  --color-yellow: #f8df06;
  --color-dark-grey: #5c5f82;
  --color-red: #ff3a44;
  --color-green: #1dcc00;
  --color-dark-blue: #252a82;
  --transition: all 400ms ease;
  --main-font: "Circe";
  --container-width-lg: 138rem;
  --container-width-md: 88%;
  --container-width-sm: 90%;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: 0;
  border: 0;
}

@font-face {
  font-family: "Agency";
  src: url("../fonts/Agency.ttf") format("truetype");
  src: url("../fonts/AgencyB.ttf") format("truetype");
}

@font-face {
  font-family: "TT Hoves";
  src: url("../fonts/TT\ Hoves\ Bold.otf") format("truetype");
  src: url("../fonts/TT\ Hoves\ DemiBold.otf") format("truetype");
  src: url("../fonts/TT\ Hoves\ Medium.otf") format("truetype");
  src: url("../fonts/TT\ Hoves\ Regular.otf") format("truetype");
}

html {
  box-sizing: border-box;
  /*10px/16px = 62.5% -> 1rem = 10px */
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: "TT Hoves";
  font-style: normal;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 2.4rem;
  letter-spacing: 0.001em;
  color: var(--color-dark-grey);
  background-color: #f8f8f8;
  overflow-x: hidden;
}

body.active__nav {
  overflow: hidden;
}

img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

h1 {
  font-weight: 700;
  font-size: 13rem;
  line-height: 17.5rem;
}

h2 {
  font-weight: 700;
  font-size: 8rem;
  line-height: 8.6rem;
}

h3 {
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 3.2rem;
}

h4 {
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 3rem;
}

h5 {
  font-weight: 400;
  font-size: 1.8rem;
  line-height: 2.4rem;
}

h6 {
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 2.2rem;
}

h2,
h3,
h4,
h5,
h6 {
  font-family: "Agency";
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

body.active__nav {
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: var(--container-width-lg);
  margin: 0 auto;
  /* padding: 0 4rem; */
}

.second__container {
  max-width: 914px;
  width: 100%;
  margin: 0 auto;
}

.detail__container {
  width: 100%;
  max-width: 1146px;
  margin: 0 auto;
}

@media screen and (max-width: 1440px) {
  .container {
    width: var(--container-width-md);
  }

  .detail__container {
    width: var(--container-width-md);
  }

  .second__container {
    width: 90%;
  }
}

@media screen and (max-width: 992px) {
  h2 {
    font-size: 5rem;
    line-height: 5rem;
  }

  h4 {
    font-size: 2.2rem;
    line-height: 3rem;
  }
}

@media screen and (max-width: 768px) {
  .detail__container {
    width: 100%;
  }

  .second__container {
    width: 80%;
  }
}

@media screen and (max-width: 576px) {
  h2 {
    font-size: 3.2rem;
    line-height: 3.2rem;
  }

  .container {
    width: var(--container-width-sm);
  }

  h4 {
    font-size: 1.8rem;
    line-height: 2.6rem;
  }
}

.btn {
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: "Agency";
  transition: var(--transition);
}

.btn--outline {
  border: 1px solid var(--color-blue);
  background-color: var(--color-white);
  color: var(--color-blue);
}

.btn--outline:hover {
  border: 1px solid var(--color-white);
  background-color: var(--color-blue);
  color: var(--color-white);
}

.btn--dark {
  border: 1px solid var(--color-blue);
  background-color: var(--color-blue);
  color: var(--color-white);
}

.btn--dark:hover {
  border: 1px solid var(--color-white);
  background-color: var(--color-white);
  color: var(--color-blue);
}

.input {
  position: relative;
  min-height: 5rem;
}

.input > :is(input, select, textarea) {
  width: 100%;
  padding: 1.3rem 2rem;
  font-family: "TT Hoves";
  font-style: normal;
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 2.4rem;
  letter-spacing: -0.008em;
  color: var(--color-grey-blue);
  background: var(--color-white);
  border: 1px solid var(--color-blue);

  resize: vertical;
}

.input > input:focus-visible {
  color: var(--color-blue);
}

.input.invalid {
  border-color: var(--color-red);
}

.input::after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f06a";
  color: var(--color-red);
  display: none;
  position: absolute;
  right: 2rem;
  top: 2.6rem;
  transform: translateY(-50%);
}

.input.invalid::after {
  display: inline-block;
}

.input > .error-text {
  display: none;
}

.input.invalid > .error-text {
  font-family: "TT Hoves";
  font-style: normal;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 2.4rem;

  letter-spacing: -0.008em;

  color: var(--color-red);
  display: block;
}
