:root {
  --col-bg: #fbfcfc;
  --col-nav: #fff;
  --col-1: #e8ecf5;
  --col-2: #ebe94a;
  --col-3: #050708;
}

html {
  scroll-behavior: smooth;
}

body {
  /* min-height: 100svh; */
  /* min-height: 100vh; */
  background: var(--col-bg) url(../img/bg.svg) repeat;
  background-size: 50px;
  color: var(--col-3);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  width: 100%;
  overflow-x: hidden;
}

#page {
  width: 100%;
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
}

.top-nav {
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid var(--col-1);
  border-radius: 10px;
  padding: 10px 15px;
  background: var(--col-nav);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: calc(100vw - 40px);
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
}

.top-logo {
  display: block;
}

.top-logo img {
  /* max-width: 105px; */
  height: 30px;
}

.top-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  padding-right: 10px;
  font-weight: bold;
  font-size: 0.9rem;
}

.top-menu a {
  position: relative;
}

.top-menu a:hover:before {
  position: absolute;
  left: 0;
  bottom: -5px;
  content: "";
  width: 100%;
  height: 2px;
  background: var(--col-2);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px;
}

.hero {
  position: relative;
  background: var(--col-bg);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../img/topleft.png);
  background-size: 30%;
  background-repeat: no-repeat;
  background-position: bottom left;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: url(../img/topright.png);
  background-size: 30%;
  background-repeat: no-repeat;
  background-position: bottom right;
  pointer-events: none;
}

.hero-fade {
  /* background: rgb(251, 252, 252); */
  background: linear-gradient(
    180deg,
    rgba(251, 252, 252, 1) 0%,
    rgba(251, 252, 252, 0) 100%
  );
  position: relative;
  top: 50px;
  height: 50px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12vh 20px;
  margin: 0 auto;
}

.hero-title {
  text-align: center;
  line-height: 1.2;
  font-size: 2.5rem;
  margin-bottom: 30px;
  font-weight: 800;
}

.btn {
  display: block;
  width: fit-content;
  padding: 15px 30px;
  border-radius: 5px;
  background: var(--col-2);
  font-weight: 800;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.btn:hover,
.btn:focus {
  background: var(--col-3);
  color: var(--col-2);
}

.btn-secondary {
  width: 100%;
  text-align: center;
  background: var(--col-3);
  color: var(--col-2);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--col-2);
  color: var(--col-3);
}

.section {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding: 50px 0;
}

.section .icon {
  max-width: 360px;
  display: block;
  width: 100%;
}

.section .content {
  max-width: 360px;
}

.section .content .title {
  line-height: 1.2;
  font-size: 2rem;
  margin-bottom: 30px;
  font-weight: 800;
}

.section .content .text {
  font-weight: 500;
  max-width: 320px;
  margin-bottom: 30px;
}

.section-why {
}
.section-why .title {
  text-align: center;
  font-size: 2rem;
  margin: 80px 0;
  font-weight: 800;
}
.why-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
}
.why-block {
  max-width: 300px;
}
.why-block .icon {
  max-width: 120px;
}
.why-block h2 {
  margin: 20px 0;
  font-weight: 800;
}
.why-block p {
  font-weight: 500;
}

.section-partners {
  padding: 150px 0 0 0;
}

.section-partners .marquee {
  position: relative;
  width: 100vw;
  max-width: 100%;
  height: 100px;
  overflow-x: hidden;
}

.section-partners .track {
  display: flex;
  width: 2000px;
  gap: 20px;
  position: absolute;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 15s linear infinite;
}

.section-partners .track img {
  height: 50px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-1500px);
  }
}

.section-contacts {
  position: relative;
  background: var(--col-2);
  padding: 100px 0 50px 0;
  -webkit-border-top-left-radius: 30px;
  -webkit-border-top-right-radius: 30px;
  -moz-border-radius-topleft: 30px;
  -moz-border-radius-topright: 30px;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}

.section-contacts .container {
  max-width: 600px;
}

.contacts-top {
  display: flex;
  gap: 20px;
}

.contacts-top a:focus,
.contacts-top a:hover {
  text-decoration: underline;
}

.contacts-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  max-width: 460px;
}

.contacts-form {
  position: relative;
  padding: 30px 0;
}

#contacts-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--col-2);
  opacity: 0.95;
  z-index: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  display: none;
}

#contacts-overlay.show {
  display: flex;
}

.contacts-overlay-content {
  display: flex;
  max-width: 600px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 5vw;
}

.contacts-overlay-content img {
  max-width: 180px;
  width: 100%;
  display: block;
  margin-bottom: 30px;
}

.contacts-overlay-content p {
  margin-bottom: 30px;
}

.form-group {
  --pad: 0.75rem;
  position: relative;
  font-weight: 600;
  padding-bottom: 20px;
}
textarea,
input {
  padding: var(--pad);
  padding-left: 0;
  background: transparent;
  border: none;
  border-bottom: 3px solid var(--col-3);
  color: inherit;
  width: 100%;
  outline: none;
  resize: vertical;
}

.form-group label {
  position: absolute;
  left: 0;
  top: var(--pad);
  background: var(--bg);
  padding-inline: 0.3em;
  transition: transform 200ms;
  pointer-events: none;
  transform-origin: left;
  translate: -0.3em;
}

textarea::placeholder,
input::placeholder {
  opacity: 0;
}
textarea:focus + label,
textarea:not(:placeholder-shown) + label,
input:focus + label,
input:not(:placeholder-shown) + label {
  transform: translateY(calc(-50% - var(--pad))) scale(0.8);
}

.form-group-title {
  font-weight: 600;
  margin: 20px 0;
}

.form-checkbox-group {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 20px;
}

.form-checkbox {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.form-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: transparent;
  border: 3px solid var(--col-3);
  border-radius: 6px;

  box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 1);
  -webkit-box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 1);
  -moz-box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 1);
}

/* On mouse-over, add a grey background color */
.form-checkbox:hover input ~ .checkmark {
  /* background-color: var(--col-3); */
}

/* When the checkbox is checked, add a blue background */
.form-checkbox input:checked ~ .checkmark {
  background-color: var(--col-3);
}

.form-checkbox:focus-within input:not(:checked) ~ .checkmark:after,
.form-checkbox:hover input:not(:checked) ~ .checkmark:after {
  display: block;
  border-color: var(--col-3);
  /* border-color: red; */
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.form-checkbox input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.form-checkbox .checkmark:after {
  left: 8px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid var(--col-2);
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.form-submit {
  margin-top: 25px;
}

footer {
  background: var(--col-3);
  color: var(--col-2);
  padding: 60px 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo img {
  height: 50px;
}

.footer-row {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 0;
}

.footer-row a:nth-child(2) {
  padding-left: 25px;
}

.footer-row a:focus,
.footer-row a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin-top: 30px;
  text-align: center;
  font-size: 0.8rem;
}

/* Responsivenes */

@media only screen and (max-width: 600px) {
  .section {
    flex-direction: column;
    align-items: center;
  }

  .section-2 {
    flex-direction: column-reverse;
  }

  .footer-row {
    flex-direction: column;
    gap: 10px;
  }

  .footer-row a:nth-child(2) {
    padding-left: 0;
  }

  .hero-content {
    padding: 12vh 20px 0 20px;
  }
}

@media only screen and (max-width: 500px) {
  .form-checkbox-group {
    grid-template-columns: 1fr;
  }

  .m-hide {
    display: none;
  }

  .top-menu {
    gap: 10px;
    padding-right: 0;
  }
}
