:root {
  --bg-white: #ffffff;
  --bg-light: #f5f2ed;
  --bg-beige: #ccab92;
  --bg-blue: #2e68d1;
  --bg-gray-light: #f8f8f8;
  --bg-gray: rgba(51, 51, 51, 0.12);

  --text-main: #333333;
  --text-gray: #717582;
  --text-beige: #ccab92;
  --text-blue: #2e68d1;
  --text-dark: #141414;
  --text-white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1,
h2,
h3 {
  font-size: inherit;
  font-weight: normal;
  line-height: normal;
  text-transform: none;
  letter-spacing: normal;
  text-align: left;
  color: inherit;
}
a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: "Work Sans", sans-serif;
  background: var(--bg-white);
  color: var(--text-main);
  -webkit-overflow-scrolling: touch;
}

.overflow-hidden {
  overflow: hidden;
}

.text-beige {
  color: var(--text-beige) !important;
}

.text-blue {
  color: var(--text-blue) !important;
}

.text-gray {
  color: var(--text-gray) !important;
}

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

.text-white {
  color: var(--text-white) !important;
}

.bg-light {
  background: var(--bg-light);
}

.bg-blue {
  background: var(--bg-blue);
}

.section-title {
  font-family: "Work Sans", sans-serif;
  font-size: 12px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 2.4px;
  color: var(--text-beige);
  text-transform: uppercase;
}

.section-container {
  max-width: 1200px;
  width: 100%;
  padding-inline: 15px;
}

.header {
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  user-select: none;
  background: transparent;
}

.header__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 106px;
  padding: 30px 0;
  position: relative;
}

.header__logo {
  font-family: "Work Sans", sans-serif;
  font-size: 32px;
  line-height: 48px;
  font-weight: 600;
  color: var(--text-blue);
  cursor: pointer;
}

.menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu__link {
  position: relative;
  text-decoration: none;
  margin: 12px 0;
  font-family: "Work Sans", sans-serif;
  font-size: 17px;
  line-height: 20px;
  font-weight: 400;
  color: var(--text-blue);
  transition: color 0.3s ease;
}

.menu__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #2e68d1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.menu__link:hover::after {
  transform: scaleX(1);
}

.menu__link:hover {
  color: #1e4ca1;
}

/* Burger */
.burger {
  width: 24px;
  height: 16px;
  display: none;
  position: relative;
  cursor: pointer;
  z-index: 1200;
  transition: all 0.3s ease;
}

.burger span {
  position: absolute;
  width: 100%;
  height: 2px;
  left: 0;
  transform: translateY(0) rotate(0);
  opacity: 1;
  background-color: currentColor;
  transform-origin: 50% 50%;
  transition: transform 0.2s ease-in, opacity 0.2s ease-in-out;
}

.burger span:nth-child(1) {
  top: 0;
}
.burger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.burger span:nth-child(3) {
  bottom: 0;
}

.burger:hover span {
  opacity: 0.5;
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-white);
  margin-top: 100px;
  align-items: center;
  transform: translateX(-100%);
  transition: transform 0.25s ease-in-out;
  z-index: 1000;
  flex-direction: column;
  text-align: center;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
}

.mobile-link {
  position: relative;
  font-family: "Work Sans", sans-serif;
  font-size: 17px;
  line-height: 20px;
  font-weight: 400;
  margin: 10px 5px;
  color: var(--text-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-link:hover {
  color: #1246e3;
}

.mobile-btn {
  margin-top: 30px;
}

.hero {
  background: url("../img/hero-vector.png") bottom center no-repeat,
    url("../img/hero-bg.webp") 40% 50% / cover no-repeat, #f5f2ed;
  background-size: contain, cover, auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-pd {
  padding-top: 205px;
  padding-bottom: 240px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  max-width: 430px;
}

.title {
  font-family: "Work Sans", sans-serif;
  font-size: 60px;
  line-height: 72px;
  font-weight: 600;
  color: var(--text-main);
}

.description {
  font-family: "Work Sans", sans-serif;
  font-size: 19px;
  line-height: 26px;
  font-weight: 500;
  color: var(--text-gray);
}

.btn-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Work Sans", sans-serif;
  padding: 14px 30px 14px 30px;
  font-size: 14px;
  line-height: 16px;
  font-weight: 600;
  text-wrap: nowrap;
  color: var(--text-white);
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease;
  height: 45px;
  width: fit-content;
}

.btn-primary {
  background: var(--bg-blue);
}

.btn-primary:hover {
  background: var(--bg-beige);
}

.btn-beige {
  background: var(--bg-beige);
}

.btn-beige:hover {
  background: var(--bg-blue);
}

.services {
  display: flex;
  justify-content: center;
}

.services-title {
  max-width: 550px;
  font-family: "Work Sans", sans-serif;
  font-size: 38px;
  line-height: 50px;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
}

.services-pd {
  padding-top: 120px;
  padding-bottom: 100px;
}

.grid-section {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-item {
  padding: 10px 0;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
}

.grid-item__icon {
  width: 70px;
  height: 70px;
}

.grid-item__title {
  font-family: "Work Sans", sans-serif;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  color: var(--text-main);
}

.grid-item__desc {
  font-family: "Work Sans", sans-serif;
  font-size: 17px;
  line-height: 27px;
  font-weight: 400;
  color: var(--text-gray);
}

.about {
  background-color: var(--bg-light);
  display: flex;
  justify-content: center;
}

.about-pd {
  padding-top: 120px;
  padding-bottom: 120px;
}

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

.about__title {
  font-family: "Work Sans", sans-serif;
  font-size: 42px;
  line-height: 54px;
  font-weight: 600;
  color: var(--text-main);
}

.about__desc,
.contacts__desc {
  font-family: "Work Sans", sans-serif;
  font-size: 19px;
  line-height: 27px;
  font-weight: 500;
  color: var(--text-gray);
}

.about__info {
  font-family: "Work Sans", sans-serif;
  font-size: 15px;
  line-height: 21px;
  font-weight: 500;
  color: var(--text-main);
}

.about__challenge {
  font-family: "Work Sans", sans-serif;
  font-size: 17px;
  line-height: 27px;
  font-weight: 400;
  color: var(--text-gray);
  text-align: center;
}

.about__challenge a {
  font-weight: 700;
  color: var(--text-main);
}

.about__desc--right {
  font-family: "Work Sans", sans-serif;
  font-size: 17px;
  line-height: 27px;
  font-weight: 400;
  color: var(--text-gray);
}

.about__cards,
.contacts__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.about__card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.about__card .btn {
  margin-top: 35px;
  margin-bottom: 60px;
}

.about__card--left {
  background: url("../img/about-section.webp") 50% 50% / cover no-repeat, rgb(245, 242, 237);
}

.about__card--right {
  background-color: var(--bg-blue);
}

.about__card-title {
  margin-top: 20px;
  font-family: "Work Sans", sans-serif;
  font-size: 32px;
  line-height: 42px;
  font-weight: 600;
  text-align: center;
}

.about__card-text {
  margin-top: 25px;
  font-family: "Work Sans", sans-serif;
  font-size: 17px;
  line-height: 27px;
  font-weight: 700;
  color: #ffffffab;
}

.contacts {
  display: flex;
  justify-content: center;
}

.contacts-pd {
  padding-top: 100px;
  padding-bottom: 100px;
}

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

.contacts__card--left {
  background: url("../img/contacts-section.webp") 50% 50% / cover no-repeat, rgb(245, 242, 237);
  padding: 40px 30px;
}

.contacts__card--right {
  background-color: var(--bg-light);
  padding: 70px 100px;
}

.contacts__card-title {
  font-family: "Work Sans", sans-serif;
  font-size: 42px;
  line-height: 54px;
  font-weight: 600;
  color: var(--text-blue);
}

.contacts__desc {
  margin-top: 25px;
}

.contacts__form-title {
  font-family: "Work Sans", sans-serif;
  font-size: 24px;
  margin-bottom: 32px;
  font-weight: 600;
  color: var(--text-main);
}

.contacts__form input,
.contacts__form textarea {
  width: 100%;
  padding: 14px 30px;
  margin-bottom: 24px;
  border: none;
  border-radius: 6px;
  background-color: rgba(51, 51, 51, 0.12);
  font-family: "Work Sans", sans-serif;
  font-size: 16px;
  line-height: 19px;
  font-size: 400;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.contacts__form input:focus,
.contacts__form textarea:focus {
  background-color: rgba(51, 51, 51, 0.12);
  border: 2px solid var(--text-blue);
}

.contacts__form .btn {
  margin-top: 44px;
  width: 100%;
}

.contacts__form textarea {
  resize: none;
  height: 150px;
  margin-bottom: 0;
}

.footer {
  display: flex;
  justify-content: center;
  background-color: var(--text-main);
}

.footer__content {
  padding-top: 90px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
}

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

.footer__logo {
  font-family: "Work Sans", sans-serif;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  color: var(--text-blue);
  cursor: pointer;
}

.footer__copyright {
  font-family: "Work Sans", sans-serif;
  font-size: 15px;
  line-height: 21px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.67);
}

.footer__mail {
  font-family: "Work Sans", sans-serif;
  font-size: 14px;
  line-height: 27px;
  font-weight: 400;
  color: var(--text-beige);
}

.footer__navigation {
  justify-content: center !important;
  gap: 8px;
}

.footer__details {
  font-family: "Work Sans", sans-serif;
  font-size: 14px;
  line-height: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.671);
}

.footer__separator {
  width: 100%;
  height: 1px;
  border-color: rgb(255, 255, 255, 0.2);
}

.footer__navigation a {
  font-family: "Work Sans", sans-serif;
  font-size: 14px;
  line-height: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.671);
  text-wrap: nowrap;
}

.terms__hero {
  position: relative;
  background: url(../img/terms-bg.jpg) 45.31% 21.94% / cover no-repeat;
  height: 205px;
  padding-top: 80px;
  padding-bottom: 70px;
  overflow: hidden;
}

.terms__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(42, 41, 41, 0.87);
  z-index: 1;
}

.terms__hero h2 {
  position: relative;
  z-index: 2;
  font-size: 42px;
  line-height: 54px;
  font-weight: 600;
  color: var(--text-white);
}

.terms__content {
  padding-top: 100px;
  padding-bottom: 80px;
}

.terms__title {
  font-family: "Work Sans", sans-serif;
  font-size: 42px;
  line-height: 54px;
  font-weight: 600;
  color: var(--text-main);
}

.terms__effective_date {
  font-family: "Work Sans", sans-serif;
  font-size: 17px;
  line-height: 27px;
  font-weight: 400;
  color: var(--text-gray);
}

._paragraph-main-font {
  font-family: "Work Sans", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 27px;
  color: var(--text-color);
}

._third-heading-main-font {
  font-family: "Work Sans", sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 27px;
  color: var(--text-gray);
}

._paragraph-main-font {
  font-family: "Work Sans", sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 27px;
  color: var(--text-gray);
}

._margin-top-24 {
  margin-top: 24px;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-area {
  flex-grow: 1;
}

.form-checkbox {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  flex-shrink: 0;
  margin-top: 4px;
  -webkit-appearance: none;
  appearance: none;
  border: 1.5px solid #2e68d1;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  transition: 0.2s;
}

.form-checkbox:checked {
  background-color: #2e68d1;
  border-color: #2e68d1;
}

.form-checkbox:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.input-focus:focus {
  outline: none;
  border: 1px solid #2e68d1;
  box-shadow: 0px 1px 4px 0px #2e68d133;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
