:root {
  --clr-white: #FFFFFF;
  --clr-black: #000000;
  --def-transition: .35s;
  --def-opacity: .8;
  --p-inline: 30px;
  --mp-tb-value: 32px;
  --def-font: "Arial", sans-serif;
}

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

html,
body {
  min-width: 320px;
}

html {
  height: 100%;
  font-family: var(--def-font);
  font-size: 16px;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  height: 100%;
  color: var(--clr-black);
  -webkit-font-smoothing: antialiased;
  background-color: var(--clr-white);
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
}

body.modal-active {
  overflow: hidden;
}

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

main {
  display: block;
}

a {
  text-decoration: none;
  outline: none;
}

a:not([class]) {
  -webkit-text-decoration-skip: ink;
          text-decoration-skip-ink: auto;
}

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

input,
textarea,
select,
button {
  font: inherit;
  border-radius: 0;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  outline: none;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

audio,
canvas,
iframe,
img,
svg,
video,
textarea {
  vertical-align: middle;
}

fieldset {
  border: 0;
}

section {
  position: relative;
}

.visually-hidden {
  position: absolute;
  margin: -1px;
  padding: 0;
  width: 1px;
  height: 1px;
  border: 0;
  white-space: nowrap;
  -webkit-clip-path: inset(100%);
          clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.content {
  flex: 1 0 auto;
}

.logo {
  display: inline-block;
  transition: var(--def-transition);
}

.logo:hover,
.logo:focus {
  opacity: var(--def-opacity);
}

.container {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  padding-inline: var(--p-inline);
  width: 100%;
  max-width: calc(980px + var(--p-inline) * 2);
}

.fade-in {
  transition: 1s;
  opacity: 0.1;
}

.fade-in.appear {
  opacity: 1;
}

.social-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 5px;
}

.social-link-icon {
  width: 30px;
  height: 30px;
}

.section-heading {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.35em;
  color: rgb(3, 0, 170);
  text-align: center;
}

.custom-form {
  margin-inline: auto;
  max-width: 400px;
}

.custom-form-heading {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
}

.custom-form-desc {
  margin-top: 10px;
  font-size: 19px;
  font-weight: 400;
  color: rgb(98, 98, 98);
  text-align: center;
}

.custom-form-grid {
  margin-top: 20px;
}

.custom-form-grid .custom-input + .custom-input,
.custom-form-grid .custom-input + .custom-form-phone,
.custom-form-grid .custom-form-phone + .custom-input,
.custom-form-grid .custom-form-phone + .custom-form-phone {
  margin-top: 15px;
}

.custom-form-btn.btn-blue {
  margin-top: 20px;
  padding: 17px 15px 18px;
  width: 100%;
  font-size: 18px;
  line-height: 1.4em;
  background-color: rgb(5, 0, 255);
  border-radius: 20px;
}

.custom-form-btn.btn-blue:hover {
  background-color: rgb(3, 0, 170);
}

.custom-form-phone {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.custom-form-phone-select {
  width: 100%;
  max-width: 144px;
}

.custom-input {
  display: block;
  width: 100%;
}

.custom-input.error .custom-input-field {
  border: 0;
  border-bottom: 2px solid rgb(255, 64, 64);
}

.custom-input-title {
  display: block;
  margin-bottom: 9px;
  font-size: 14px;
  line-height: 1.4em;
  color: rgb(40, 26, 57);
}

.custom-input-field {
  padding: 3px 7px;
  width: 100%;
  min-height: 49px;
  font-size: 14px;
  line-height: 1.4em;
  background-color: transparent;
  border: 1px solid rgb(197, 197, 197);
  border-radius: 8px;
}

.custom-select {
  display: block;
  min-height: 49px;
}

.custom-select select {
  display: none;
}

.custom-select-field {
  display: flex;
  position: relative;
  padding: 3px 45px 3px 7px;
  width: 100%;
  min-height: 49px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4em;
  color: rgb(40, 26, 57);
  background-color: transparent;
  border: 1px solid rgb(197, 197, 197);
  border-radius: 8px;
  transition: var(--def-transition);
  align-items: center;
}

.custom-select-field.choosed {
  color: rgb(40, 26, 57);
}

.custom-select-field .current {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
}

.custom-select-field.open {
  border: 1px solid rgb(197, 197, 197);
}

.custom-select-field.open:after {
  transform-origin: 50% 50%;
  transform: rotate(180deg);
}

.custom-select-field.open .nice-select-dropdown {
  visibility: visible;
}

.custom-select-field:after {
  margin: 0;
  top: 20px;
  right: 16px;
  width: 12px;
  height: 6px;
  background-image: url("../images/general/icon/arrow-d-icon.svg");
  background-size: 100% auto;
  background-position: center center;
  background-repeat: no-repeat;
  pointer-events: none;
  transition: var(--def-transition);
  transform: rotate(0);
  border: 0;
}

.custom-select-field .nice-select-dropdown {
  margin: 0;
  left: -1px;
  width: calc(100% + 2px);
  background-color: #F6F8F9;
  border: 1px solid rgb(255, 203, 5);
  border-radius: 6px;
  box-shadow: none;
  visibility: hidden;
}

.custom-select-field .nice-select-dropdown .list {
  border-radius: 6px;
  max-height: 200px;
}

.custom-select-field .nice-select-dropdown .option {
  padding: 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4em;
  color: rgb(255, 203, 5);
  text-overflow: ellipsis;
  border-bottom: 1px solid #EDF1F3;
  text-align: left;
  overflow: hidden;
}

.custom-select-field .nice-select-dropdown .option:last-child {
  border: 0;
}

.custom-select-field .nice-select-dropdown .option.selected,
.custom-select-field .nice-select-dropdown .option.focus,
.custom-select-field .nice-select-dropdown .option:hover {
  color: rgb(155, 155, 155);
  background-color: rgb(44, 216, 215);
}

.contact-link {
  display: flex;
  width: -moz-fit-content;
  width: fit-content;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.79em;
  color: rgb(40, 26, 57);
  align-items: center;
  gap: 5px;
}

.contact-link-icon {
  width: 24px;
  height: 24px;
  transition: var(--def-transition);
}

.contact-link-icon:hover {
  transform: scale(1.1);
}

.cta-btn {
  font-size: 16px;
  font-weight: 400;
  color: rgb(5, 0, 255);
  text-decoration: underline;
  background-color: transparent;
  border: 0;
  cursor: pointer;
}

.btn-def {
  display: block;
  padding: 21px 32px;
  width: -moz-fit-content;
  width: fit-content;
  font-size: 18px;
  font-weight: 400;
  color: #F6F6F6;
  background-color: #0E23FF;
  border: 1px solid #0500FF;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-def:hover {
  color: #0E23FF;
  background-color: #F6F6F6;
}

.btn-blue {
  display: block;
  padding: 19px;
  width: -moz-fit-content;
  width: fit-content;
  font-size: 16px;
  font-weight: 400;
  color: #F6F6F6;
  background-color: #0500FF;
  transition: all 0.2s ease;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.btn-blue:hover {
  background-color: #020055;
}

.header {
  padding-block: 42px;
  flex: 0 0 auto;
  z-index: 1;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.header-logo {
  max-width: 150px;
}

.header-nav-list {
  display: flex;
  list-style: none;
  align-items: center;
}

.header-nav-link {
  padding-inline: 15px;
  font-size: 14px;
  font-weight: 400;
  color: rgb(98, 98, 98);
  transition: var(--def-transition);
}

.header-nav-link.active {
  color: rgb(5, 0, 255);
  pointer-events: none;
}

.header-nav-link:hover,
.header-nav-link:focus {
  color: rgb(3, 0, 85);
}

.header-nav-dd {
  position: relative;
}

.header-nav-dd:hover .header-nav-dd-container,
.header-nav-dd:focus-within .header-nav-dd-container {
  -webkit-padding-before: 15px;
          padding-block-start: 15px;
}

.header-nav-dd:hover .header-nav-dd-content,
.header-nav-dd:focus-within .header-nav-dd-content {
  padding-block: 10px;
  max-height: 100%;
  pointer-events: all;
  opacity: 1;
}

.header-nav-dd-container {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: -moz-max-content;
  min-width: max-content;
}

.header-nav-dd-content {
  max-height: 0;
  background-color: var(--clr-white);
  box-shadow: 0px 10px 25px rgba(10, 13, 19, 0.1);
  border-radius: 4px;
  list-style: none;
  transition: var(--def-transition);
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
}

.header-nav-dd-content li {
  padding-block: 5px;
}

.header-phone {
  margin-top: 15px;
}

.header-phone-btn {
  display: none;
  background-color: transparent;
  border: 0;
}

.header-phone-btn-icon {
  width: 31px;
  height: 31px;
}

.header-menu-btn {
  display: none;
  position: relative;
  width: 22px;
  height: 20px;
  background-color: transparent;
  border: 0;
  z-index: 910;
}

.header-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg);
}

.header-menu-btn.active span:nth-child(2) {
  width: 0;
}

.header-menu-btn.active span:nth-child(3) {
  top: 0;
  transform: rotate(-45deg);
}

.header-menu-btn span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: rgb(40, 26, 57);
  border-radius: 2px;
  transition: all 0.25s ease-in-out;
}

.header-menu-btn span:nth-child(1) {
  top: 0;
}

.header-menu-btn span:nth-child(2) {
  margin: auto;
  top: 50%;
}

.header-menu-btn span:nth-child(3) {
  top: 100%;
}

.footer {
  flex: 0 0 auto;
}

.footer-container {
  display: flex;
  padding-block: 30px;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  max-width: 169px;
}

.footer-contact .contact-link + .contact-link {
  margin-top: 20px;
}

.footer-copyright {
  padding-bottom: 10px;
  font-size: 12px;
  color: rgb(112, 112, 112);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: var(--def-transition);
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  z-index: 1000;
}

.modal.active {
  display: block;
  visibility: visible;
}

.modal-wrap {
  display: flex;
  position: relative;
  padding: 50px var(--p-inline);
  min-height: 100%;
  justify-content: center;
  align-items: center;
}

.modal-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: var(--clr-black);
  opacity: 0.3;
  z-index: 0;
}

.modal-content {
  position: relative;
  margin: 0 auto;
  padding: 40px 40px 40px;
  width: 100%;
  max-width: 704px;
  background-color: var(--clr-white);
  border-radius: 16px;
  isolation: isolate;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 40px;
  right: 40px;
  padding: 2px;
  width: 23px;
  height: 23px;
  background-color: transparent;
  border: 0;
  transition: var(--def-transition);
  cursor: pointer;
}

.modal-grid .custom-input + .custom-input,
.modal-grid .custom-input + .custom-form-phone,
.modal-grid .custom-form-phone + .custom-input,
.modal-grid .custom-form-phone + .custom-form-phone {
  margin-top: 10px;
}

.menu {
  display: none;
  position: fixed;
  padding: 80px 20px;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: tomato;
  text-align: center;
  background-color: rgb(246, 246, 246);
  transition: var(--def-transition);
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  flex-flow: column;
  align-items: center;
  z-index: 900;
}

.menu.active {
  display: flex;
  visibility: visible;
}

.menu-nav-list {
  display: grid;
  list-style: none;
  gap: 24px;
}

.menu-nav-link {
  display: block;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.67em;
  color: rgb(40, 26, 57);
}

.menu-nav-link.active {
  color: rgb(5, 0, 255);
}

.menu-nav-dd.is-active .menu-nav-dd-btn {
  transform: rotate(-135deg);
}

.menu-nav-dd.is-active .menu-nav-dd-list {
  -webkit-margin-before: 24px;
          margin-block-start: 24px;
  max-height: 100%;
  visibility: visible;
  pointer-events: all;
  opacity: 1;
}

.menu-nav-dd-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.menu-nav-dd-btn {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid rgb(40, 26, 57);
  border-right: 2px solid rgb(40, 26, 57);
  border-top: 0;
  border-left: 0;
  transition: var(--def-transition);
  transform: rotate(45deg);
  cursor: pointer;
}

.menu-nav-dd-list {
  max-height: 0;
  width: 100%;
  border-top: 1px solid rgba(40, 26, 57, 0.1);
  border-bottom: 1px solid rgba(40, 26, 57, 0.1);
  transition: var(--def-transition);
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  list-style: none;
  order: 1;
}

.menu-nav-dd-list li {
  padding-block: 10px;
}

.menu-nav-dd-list li + li {
  border-top: 1px solid rgba(40, 26, 57, 0.1);
}

.menu .contact-link {
  margin-top: 50px;
}

.menu .cta-btn {
  margin-top: 10px;
}

.menu-social {
  margin-top: 50px;
}

@media screen and (max-width: 1440px) {
  .custom-select-field .nice-select-dropdown .option {
    font-size: 14px;
  }
}

@media screen and (max-width: 1024px) {
  .social-list {
    gap: 20px;
  }

  .social-link-icon {
    width: 40px;
    height: 40px;
  }

  .header {
    padding-block: 22px;
    z-index: unset;
  }

  .header-container {
    flex-wrap: wrap;
  }

  .header-logo {
    max-width: 127px;
  }

  .header-nav {
    display: none;
  }

  .header-phone {
    display: none;
  }

  .header .cta-btn {
    display: none;
  }

  .header-contact {
    margin-top: 20px;
    width: 100%;
  }

  .header-social {
    margin-inline: auto;
    width: -moz-fit-content;
    width: fit-content;
  }

  .header-phone-btn {
    display: block;
    margin-left: 15px;
  }

  .header-menu-btn {
    display: block;
    margin-right: 15px;
  }
}

@media screen and (max-width: 768px) {
  .footer-container {
    flex-flow: column;
    text-align: center;
  }

  .footer-contact .contact-link {
    margin-inline: auto;
  }

  .footer-copyright {
    text-align: center;
  }
}

@media screen and (max-width: 624px) {
  :root {
    --p-inline: 20px;
  }

  .section-heading {
    font-size: 28px;
  }

  .custom-form-heading {
    font-size: 26px;
  }

  .custom-form-desc {
    font-size: 18px;
  }

  .custom-form-phone-select {
    max-width: 87px;
  }

  .custom-select-field .nice-select-dropdown .option {
    padding: 12px 16px;
  }

  .modal-wrap {
    padding-block: 0;
  }

  .modal-content {
    display: block;
    padding: 60px 15px;
    min-height: 100%;
    border-radius: 0;
  }

  .modal-close {
    top: 20px;
    right: 15px;
  }
}