*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #ffffff;
  background: radial-gradient(
    150% 150% at 0% 0%,
    #1b444d 0%,
    #011114 55%,
    #000809 100%
  );
}

.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.page__background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.page__bg-layer {
  position: absolute;
  background-repeat: no-repeat;
  background-size: cover;
}

.page__bg-layer_main {
  width: 2652.34px;
  height: 2652.34px;
  left: -618px;
  top: -925px;
  background-image: url("shutterstock_527303119.png");
  transform: rotate(-22.55deg);
  opacity: 0.9;
  filter: blur(1px);
}

.page__bg-layer_top {
  width: 263.76px;
  height: 275.06px;
  right: -60px;
  top: -167px;
  background-image: url("shutterstock_527303119.png");
  opacity: 0.51;
  filter: blur(17px);
  transform: rotate(-123.27deg);
}

.page__bg-layer_left {
  width: 382.26px;
  height: 398.63px;
  left: -305px;
  bottom: 80px;
  background-image: url("shutterstock_527303119.png");
  opacity: 0.51;
  filter: blur(17px);
  transform: rotate(-123.27deg);
}

.page__bg-layer_bottom {
  width: 526.8px;
  height: 528.91px;
  right: -40px;
  bottom: -120px;
  background-image: url("shutterstock_527303119.png");
  opacity: 0.5;
  filter: blur(19px);
  transform: matrix(-0.99, -0.17, -0.17, 0.99, 0, 0);
}

.header {
  position: relative;
  z-index: 2;
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 117px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: "Montserrat", system-ui, sans-serif;
}

.logo__any {
  font-weight: 500;
  font-size: 30px;
  line-height: 37px;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.33);
}

.logo__it {
  font-weight: 700;
  font-size: 30px;
  line-height: 37px;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.33);
}

.header__center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header__subtitle {
  font-size: 14px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__phone {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: #ffffff;
}

.header__phone:hover {
  color: #c0ba97;
}

.header__search {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header__search-icon {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid #9a9a9a;
  box-shadow: 0 0 0 2px #ffffff;
  position: relative;
}

.header__search-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: #000000;
  right: -4px;
  bottom: -2px;
  transform: rotate(45deg);
}

.header__search:hover .header__search-icon {
  box-shadow: 0 0 0 2px #1d8466;
}

.main {
  position: relative;
  z-index: 1;
}

.button {
  position: relative;
  min-width: 208px;
  padding: 16px 36px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.18s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.button_primary {
  background: linear-gradient(
    135deg,
    rgba(29, 132, 102, 0.92) 0%,
    rgba(19, 92, 117, 0.92) 100%
  );
  box-shadow: 0 18px 40px rgba(12, 49, 59, 0.45);
}

.button_primary:focus-visible {
  outline: 2px solid rgba(255, 233, 163, 0.85);
  outline-offset: 4px;
}

.button_primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(12, 49, 59, 0.55);
  filter: brightness(1.05);
}

.button_primary:active {
  transform: translateY(0);
  box-shadow: 0 12px 26px rgba(12, 49, 59, 0.4);
  filter: brightness(0.98);
}

.button__text {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #ffffff;
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 56px;
  min-height: calc(100vh - 117px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 40px;
}

.hero__content {
  max-width: 640px;
}

.hero__label {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #c0ba97;
  margin-bottom: 24px;
}

.hero__title {
  margin: 0 0 40px;
  font-weight: 600;
  font-size: 49px;
  line-height: 1.36;
  letter-spacing: 0.01em;
  text-shadow: 3px 2px 10px rgba(0, 0, 0, 0.51);
}

.hero__title-accent {
  color: #ffe9a3;
}

.hero__button {
  display: inline-flex;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__orb {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at 50% 30%,
    #3cfcb7 0%,
    #015a4a 40%,
    #011114 100%
  );
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.9);
}

.hero__orb-image {
  width: 140%;
  height: 140%;
  object-fit: cover;
  transform: rotate(-22.42deg);
}

.hero__social {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(80%, -50%);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.social__item {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.social__item::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
}

.social__item_telegram::before {
  border: 2px solid #ffffff;
}

.social__item_whatsapp::before {
  border: 2px solid #4caf50;
}

.social__item_instagram::before {
  border: 2px solid #ffffff;
}

.social__item:hover {
  border-color: #1d8466;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.35);
}

.steps {
  position: relative;
  z-index: 1;
  padding: 0 0 40px;
}

.steps__table {
  max-width: 1440px;
  margin: 0 auto;
  border-top: 0.5px solid rgba(255, 255, 255, 0.15);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.15);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps__item {
  padding: 30px 24px 40px;
  border-left: 0.5px solid rgba(255, 255, 255, 0.15);
}

.steps__item:last-child {
  border-right: 0.5px solid rgba(255, 255, 255, 0.15);
}

.steps__step {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #c0ba97;
  margin-bottom: 12px;
}

.steps__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.page-body_no-scroll {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.modal_active {
  opacity: 1;
  pointer-events: auto;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 16, 20, 0.78);
  backdrop-filter: blur(6px);
}

.modal__dialog {
  position: relative;
  max-width: 520px;
  width: 100%;
  background: rgba(0, 12, 15, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.modal__close::before,
.modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #ffffff;
}

.modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.05);
}

.modal__header {
  margin-bottom: 24px;
}

.modal__title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.modal__subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal__field-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.modal__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal__field-group_compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.modal__label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.72);
}

.modal__input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 21, 26, 0.78);
  color: #ffffff;
  font-size: 15px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.modal__input_select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #3cfcb7 50%),
    linear-gradient(135deg, #3cfcb7 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 13px) calc(50% - 3px);
  background-size: 7px 7px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.modal__input:focus-visible {
  outline: none;
  border-color: rgba(60, 252, 183, 0.7);
  box-shadow: 0 0 0 4px rgba(60, 252, 183, 0.18);
}

.modal__input_textarea {
  resize: vertical;
  min-height: 132px;
}

.modal__footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.modal__submit {
  min-width: auto;
}

.modal__status {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
  min-height: 18px;
}

.modal__status_error {
  color: #ff8a8a;
}

.modal__fieldset {
  margin: 0;
  padding: 0;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal__legend {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.72);
}

.modal__hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

.modal__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.modal__option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 21, 26, 0.64);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.modal__option:hover {
  border-color: rgba(60, 252, 183, 0.5);
  background: rgba(4, 32, 40, 0.78);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.modal__option-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.modal__option-control {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.modal__option-control::after {
  content: "";
  width: 6px;
  height: 12px;
  border-right: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(45deg) scale(0.9);
  transform-origin: center;
  transition: border-color 0.18s ease;
}

.modal__option-input:focus-visible + .modal__option-control {
  border-color: rgba(60, 252, 183, 0.7);
  box-shadow: 0 0 0 4px rgba(60, 252, 183, 0.2);
}

.modal__option-input:checked + .modal__option-control {
  border-color: rgba(60, 252, 183, 0.9);
  background: rgba(60, 252, 183, 0.28);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.5);
}

.modal__option-input:checked + .modal__option-control::after {
  border-right-color: rgba(0, 18, 20, 0.9);
  border-bottom-color: rgba(0, 18, 20, 0.9);
}

.modal__option-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (max-width: 960px) {
  .header__inner {
    padding: 0 20px;
    height: 80px;
  }
  .header__center {
    display: none;
  }
  .header__phone {
    font-size: 13px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 20px 32px;
    min-height: auto;
    row-gap: 32px;
  }
  .hero__content {
    max-width: none;
  }
  .hero__label {
    font-size: 14px;
    margin-bottom: 16px;
  }
  .hero__title {
    font-size: 30px;
    line-height: 1.3;
    margin-bottom: 28px;
  }
  .hero__button {
    width: 100%;
  }
  .hero__visual {
    order: -1;
  }
  .hero__orb {
    width: 260px;
    height: 260px;
  }
  .hero__social {
    position: static;
    transform: none;
    margin-left: 16px;
    flex-direction: row;
  }
  .steps__table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 0.5px solid rgba(255, 255, 255, 0.15);
    border-right: 0.5px solid rgba(255, 255, 255, 0.15);
    margin: 0 20px 24px;
  }
  .steps__item {
    padding: 20px 16px 24px;
    border-right: 0.5px solid rgba(255, 255, 255, 0.15);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.15);
  }
  .steps__item:nth-child(2n) {
    border-right: none;
  }
  .steps__item:last-child {
    border-right: none;
  }
}

@media (max-width: 640px) {
  .modal {
    padding: 24px 12px;
    align-items: flex-end;
  }
  .modal__dialog {
    padding: 28px 20px;
    border-radius: 20px;
  }
  .modal__field-group {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
  }
  .modal__title {
    font-size: 24px;
  }
  .modal__subtitle {
    font-size: 14px;
  }
  .modal__close {
    width: 32px;
    height: 32px;
  }
}
