﻿.footer {
  width: 100%;
  margin: 0;
  padding: clamp(56px, 6vw, 88px) 0 46px;
  background: rgba(2, 7, 15, 1);
  color: #e6eeee;
  font-family: 'ManropeRegular', Arial, sans-serif;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer__inner {
  max-width: 1640px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(240px, .95fr) minmax(360px, 1.35fr) minmax(132px, .45fr);
  gap: clamp(24px, 3.4vw, 56px);
  align-items: start;
  padding: 0 0 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.footer__contact--social {
  justify-self: end;
}

.footer__label {
  margin: 0;
  color: rgba(230, 238, 238, .58);
  font-size: 16px;
  line-height: 1.35;
}

.footer__phone,
.footer__mail {
  color: #fff;
  font-family: 'AGAvalancheC', Arial, sans-serif;
  font-size: clamp(32px, 3.35vw, 48px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.footer__icons {
  display: flex;
  gap: 12px;
}

.footer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  color: #fff;
  font-family: 'ManropeBold', Arial, sans-serif;
  font-size: 14px;
  text-transform: lowercase;
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}

.footer__icon img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.footer__icon:hover {
  border-color: rgba(201, 156, 100, .95);
  color: rgba(201, 156, 100, .95);
}

.footer__middle {
  display: grid;
  grid-template-columns: minmax(280px, 418px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  padding: 48px 0 44px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer__subscribe {
  max-width: 418px;
}

.footer__input-wrap {
  position: relative;
  margin: 0 0 16px;
}

.footer__input {
  width: 100%;
  height: 44px;
  padding: 0 44px 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  background: transparent;
  color: #fff;
  font-family: 'ManropeRegular', Arial, sans-serif;
  font-size: 14px;
  outline: none;
}

.footer__input::placeholder {
  color: rgba(230, 238, 238, .62);
}

.footer__submit {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.footer__submit svg {
  width: 12px;
  height: 12px;
}

.footer__policy-text {
  margin: 0;
  color: rgba(230, 238, 238, .86);
  font-size: 12px;
  line-height: 1.55;
}

.footer__policy-text a {
  color: #23a7cd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__menu {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px clamp(22px, 3vw, 46px);
  padding-top: 8px;
  color: rgba(230, 238, 238, .88);
  font-size: 16px;
}

.footer__menu a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 42px 0 0;
}

.footer__copy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  color: rgba(230, 238, 238, .62);
  font-size: 14px;
  line-height: 1.4;
}

.footer__logo-img {
  width: 54px;
  height: auto;
  flex: 0 0 auto;
  filter: brightness(0) invert(1);
}

.footer__divider {
  opacity: .55;
}

.footer__privacy {
  color: rgba(230, 238, 238, .62);
  font-size: 14px;
}

.footer__phone,
.footer__mail,
.footer__input,
.footer__policy-text a,
.footer__menu a,
.footer__privacy {
  transition: color .2s ease, border-color .2s ease, opacity .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer__phone:hover,
  .footer__mail:hover,
  .footer__privacy:hover,
  .footer__menu a:hover,
  .footer__policy-text a:hover {
    color: rgba(216, 153, 75, 1);
    opacity: 1;
  }

  .footer__icon:hover {
    background: rgba(201, 156, 100, .12);
    transform: translateY(-2px);
  }

  .footer__input:hover,
  .footer__input:focus {
    border-bottom-color: rgba(216, 153, 75, 1);
  }

  .footer__submit:hover {
    background: rgba(216, 153, 75, 1);
    color: #021d1f;
    box-shadow: 0 12px 26px rgba(201, 156, 100, .22);
    transform: translateY(-2px);
  }
}

.footer__phone:focus-visible,
.footer__mail:focus-visible,
.footer__icon:focus-visible,
.footer__input:focus-visible,
.footer__submit:focus-visible,
.footer__menu a:focus-visible,
.footer__privacy:focus-visible {
  outline: 2px solid rgba(201, 156, 100, .76);
  outline-offset: 4px;
}

.object-modal.info-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(2, 7, 15, .66);
}

.object-modal.info-modal.is-open {
  display: flex;
}

.info-modal .object-modal__dialog {
  position: relative;
  border-radius: 24px;
  background: #fff;
  padding: 34px;
  box-shadow: 0 24px 80px rgba(2, 7, 15, .28);
}

.info-modal .info-modal__dialog {
  width: min(920px, 100%);
  max-height: calc(100vh - 64px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 153, 75, .78) rgba(18, 29, 47, .08);
}

.info-modal .info-modal__dialog::-webkit-scrollbar {
  width: 8px;
}

.info-modal .info-modal__dialog::-webkit-scrollbar-track {
  margin: 18px 0;
  border-radius: 999px;
  background: rgba(18, 29, 47, .08);
}

.info-modal .info-modal__dialog::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(216, 153, 75, .96), rgba(18, 29, 47, .86));
}

.info-modal .info-modal__dialog::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(216, 153, 75, 1), rgba(18, 29, 47, 1));
}

.info-modal .object-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.info-modal .object-modal__head h3 {
  margin: 0;
  color: #242728;
  font-family: 'AGAvalancheC', Arial, sans-serif;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 400;
  line-height: 1.05;
}

.info-modal .object-modal__close {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(36, 39, 40, .18);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.info-modal .object-modal__close::before,
.info-modal .object-modal__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: #242728;
  transform: translate(-50%, -50%) rotate(45deg);
}

.info-modal .object-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.info-modal__content {
  color: #4e5d6f;
  font-family: 'ManropeRegular', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.info-modal__content h2,
.info-modal__content h3,
.info-modal__content h4 {
  color: #242728;
}

.info-modal__content a {
  color: rgba(216, 153, 75, 1);
}

@media (max-width: 1200px) and (min-width: 961px) {
  .footer__top {
    grid-template-columns: 1fr;
  }

  .footer__contact--social,
  .footer__menu {
    justify-self: start;
  }

  .footer__middle {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 960px) {
  .footer {
    padding: 32px 0 28px;
  }

  .footer__inner {
    padding: 0 13px;
  }

  .footer__top,
  .footer__middle,
  .footer__bottom {
    display: block;
  }

  .footer__contact {
    margin-bottom: 28px;
    justify-self: self-start;
  }

  .footer__phone,
  .footer__mail {
    font-size: 30px;
    white-space: normal;
  }

  .footer__middle {
    padding: 30px 0;
  }

  .footer__menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
  }

  .footer__copy {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 28px;
  }

  .footer__privacy {
    display: inline-block;
    margin-top: 18px;
  }
}

