/* Footer */

.footer {
    position: relative;
    overflow: hidden;
    color: rgba(246, 243, 234, 0.85);
    background-image:
        linear-gradient(273.33deg, rgba(26, 18, 10, 0.95) 13.11%, rgba(26, 18, 10, 0.95) 48.59%),
        var(--footer-bg-image);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}

.footer::after {
    /* лёгкая виньетка как на макете */
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(80% 80% at 50% 10%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.footer__container {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    padding: 64px 24px;
}

.footer__top {
    padding-bottom: 40px;
}

.footer__kicker {
    margin: 0 0 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 14px;
    color: #ca942c;
}

.footer__title {
    margin: 0 0 28px;
    font-weight: 700;
    line-height: 1.05;
    color: #f6f3ea;
    font-size: clamp(40px, 4.3vw, 72px);
}

.footer__form {
    border-radius: 24px;
    border: 1px solid rgba(246, 243, 234, 0.12);
    background: rgba(246, 243, 234, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 22px;
}

.footer__formRow {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: center;
}

.footer__field {
    display: block;
}

.footer__input {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    border: 1px solid rgba(246, 243, 234, 0.10);
    background: #f6f3ea;
    color: #33271a;
    padding: 0 18px;
    outline: none;
    font-size: 16px;
}

.footer__input::placeholder {
    color: rgba(51, 39, 26, 0.55);
}

.footer__input:focus {
    border-color: rgba(202, 148, 44, 0.6);
    box-shadow: 0 0 0 4px rgba(202, 148, 44, 0.12);
}

.footer__submit {
    height: 52px;
    padding: 0 22px;
    border-radius: 14px;
    border: 0;
    background: #ca942c;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: transform .15s ease, opacity .2s ease, background .2s ease;
    white-space: nowrap;
}

.footer__submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.footer__submit:not(:disabled):hover {
    transform: translateY(-1px);
    background: #b58325;
}

.footer__agree {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    text-align: center;
}

.footer__checkbox {
    width: 18px;
    height: 18px;
    accent-color: #ca942c;
}

.footer__agreeText {
    font-size: 14px;
    color: rgba(246, 243, 234, 0.65);
}

.footer__link {
    color: #ca942c;
    text-decoration: none;
}

.footer__link:hover {
    text-decoration: underline;
}

.footer__bottom {
    padding-top: 28px;
}

.footer__bottom {
    display: grid;
    grid-template-columns: 1fr auto 360px;
    gap: 32px;
    align-items: start;
}

.footer__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__menu li+li {
    margin-top: 10px;
}

.footer__menu a {
    color: rgba(246, 243, 234, 0.55);
    text-decoration: none;
    font-size: 16px;
    transition: color .2s ease;
}

.footer__menu a:hover {
    color: rgba(246, 243, 234, 0.85);
}

.footer__social {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.footer__socialBtn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(246, 243, 234, 0.12);
    background: rgba(246, 243, 234, 0.06);
    transition: transform .15s ease, border-color .2s ease, background .2s ease;
}

.footer__socialBtn:hover {
    transform: translateY(-1px);
    border-color: rgba(202, 148, 44, 0.35);
    background: rgba(246, 243, 234, 0.08);
}

.footer__contacts {
    display: grid;
    gap: 16px;
    justify-items: start;
}

.footer__contact {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: center;
}

.footer__contactIcon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(202, 148, 44, 0.25);
    background: rgba(26, 18, 10, 0.35);
}

.footer__contactLabel {
    font-size: 12px;
    color: rgba(246, 243, 234, 0.45);
    margin-bottom: 2px;
}

.footer__contactValue {
    font-size: 16px;
    color: rgba(246, 243, 234, 0.9);
}

.footer__contactLink {
    text-decoration: none;
}

.footer__contactLink:hover {
    text-decoration: underline;
    text-decoration-color: rgba(202, 148, 44, 0.7);
}

.footer__cta {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid rgba(202, 148, 44, 0.35);
    color: #ca942c;
    text-decoration: none;
    background: rgba(26, 18, 10, 0.25);
    transition: transform .15s ease, background .2s ease;
}

.footer__cta:hover {
    transform: translateY(-1px);
    background: rgba(26, 18, 10, 0.35);
}

.footer__legal {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(246, 243, 234, 0.10);
    font-size: 14px;
    text-align: center;
    flex-wrap: wrap;
}

.footer__legalText {
    color: rgba(246, 243, 234, 0.45);
}

.footer__legalLink {
    color: #ca942c;
    text-decoration: none;
}

.footer__legalLink:hover {
    text-decoration: underline;
}

/* A11y helper */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* CONTACT LINK EFFECT */
/* CONTACT LINK — smooth premium effect */

.footer__contact--link {
    text-decoration: none;
    transition: color .35s cubic-bezier(.22, 1, .36, 1);
}

.footer__contactValue {
    transition: color .35s cubic-bezier(.22, 1, .36, 1);
}

.footer__contactIcon {
    transition:
        background .35s cubic-bezier(.22, 1, .36, 1),
        border-color .35s cubic-bezier(.22, 1, .36, 1),
        transform .25s ease;
}

.footer__contactIcon img {
    transition: filter .35s cubic-bezier(.22, 1, .36, 1);
}

/* HOVER */

.footer__contact--link:hover {
    color: #ca942c;
}

.footer__contact--link:hover .footer__contactValue {
    color: #ca942c;
}

.footer__contact--link:hover .footer__contactIcon {
    background: #ca942c;
    border-color: #ca942c;
    transform: translateY(-2px);
}

.footer__contact--link:hover .footer__contactIcon img {
    filter: brightness(0) invert(1);
}


/* Responsive */
@media (max-width: 1100px) {
    .footer__formRow {
        grid-template-columns: 1fr 1fr;
    }

    .footer__submit {
        grid-column: 1 / -1;
    }

    .footer__bottom {
        grid-template-columns: 1fr;
    }

    .footer__social {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .footer__container {
        padding-top: 48px;
    }

    .footer__nav {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .footer__form {
        padding: 16px;
    }

    .footer__formRow {
        grid-template-columns: 1fr;
    }
}

.footer__notice {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(246, 243, 234, 0.14);
    background: rgba(246, 243, 234, 0.08);
    color: rgba(246, 243, 234, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.footer__notice--success {
    border-color: rgba(46, 204, 113, 0.35);
    background: rgba(46, 204, 113, 0.10);
}

.footer__notice--error {
    border-color: rgba(231, 76, 60, 0.35);
    background: rgba(231, 76, 60, 0.10);
}





/* =========================
   CONTACT MODAL
   ========================= */

.aw-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.aw-modal.is-open {
  display: block;
}

.aw-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 18, 10, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .25s ease;
}

.aw-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 32px));
  margin: 8vh auto 0;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
  padding: 22px 22px 18px;
  transform: translateY(12px);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}

.aw-modal.is-open .aw-modal__backdrop { opacity: 1; }
.aw-modal.is-open .aw-modal__dialog { opacity: 1; transform: translateY(0); }

.aw-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(26,18,10,.12);
  background: #fff;
  cursor: pointer;
}

.aw-modal__kicker {
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
  color: #ca942c;
  margin-bottom: 6px;
}

.aw-modal__title {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 800;
  color: #1a120a;
}

.aw-modal__subtitle {
  margin: 0 0 14px;
  color: rgba(26,18,10,.75);
  font-weight: 500;
}

.aw-modal__form {
  display: grid;
  gap: 12px;
}

.aw-modal__field { display: grid; gap: 6px; }

.aw-modal__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(26,18,10,.70);
}

.aw-modal__input,
.aw-modal__textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(26,18,10,.12);
  background: rgba(246,243,234,0.55);
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
  color: #33271a;
}

.aw-modal__input:focus,
.aw-modal__textarea:focus {
  border-color: rgba(202,148,44,0.6);
  box-shadow: 0 0 0 4px rgba(202,148,44,0.12);
  background: rgba(246,243,234,0.75);
}

.aw-modal__agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: rgba(26,18,10,.75);
}

.aw-modal__checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #ca942c;
}

.aw-modal__submit {
  height: 52px;
  border-radius: 14px;
  border: 0;
  background: #ca942c;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform .15s ease, opacity .2s ease, background .2s ease;
}

.aw-modal__submit:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.aw-modal__submit:not(:disabled):hover {
  transform: translateY(-1px);
  background: #b58325;
}

.aw-modal__notice {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(26,18,10,.12);
  background: rgba(246,243,234,0.55);
  font-weight: 600;
}

.aw-modal__notice.is-success {
  border-color: rgba(46,204,113,.35);
  background: rgba(46,204,113,.10);
}

.aw-modal__notice.is-error {
  border-color: rgba(231,76,60,.35);
  background: rgba(231,76,60,.10);
}

@media (max-width: 640px) {
  .aw-modal__dialog { margin-top: 6vh; padding: 18px 16px 14px; border-radius: 18px; }
  .aw-modal__title { font-size: 24px; }
}


/* =========================================
   Scroll To Top Button
   ========================================= */

.scroll-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--color-border-light);

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  z-index: 999;

  /* Жидкое стекло */
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow: var(--shadow-md);

  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);

  transition:
    opacity var(--transition-base),
    transform var(--transition-base),
    background var(--transition-fast),
    box-shadow var(--transition-fast);
}

/* Активное состояние */
.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Иконка */
.scroll-top__icon {
  font-size: 22px;
  color: #fff;
  transition: color var(--transition-fast),
              transform var(--transition-fast);
}

/* Hover */
.scroll-top:hover {
  background: var(--color-accent-soft);
  box-shadow: var(--shadow-lg);
}

.scroll-top:hover .scroll-top__icon {
  color: var(--color-accent);
  transform: translateY(-4px);
}

/* Active click */
.scroll-top:active {
  transform: scale(0.95);
}

/* =========================================
   Discount Popup
   ========================================= */

.aw-discount-popup {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  width: min(360px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 48px 16px 16px;
  border-radius: 20px;
  border: 1px solid rgba(202, 148, 44, 0.28);
  background: rgba(255, 255, 255, 0.94);
  color: #33271a;
  box-shadow: 0 18px 44px rgba(26, 18, 10, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px) scale(0.98);
  transition:
    opacity .25s ease,
    visibility .25s ease,
    transform .25s ease;
}

.aw-discount-popup.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.aw-discount-popup__badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #ca942c;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(202, 148, 44, 0.26);
}

.aw-discount-popup__content {
  min-width: 0;
}

.aw-discount-popup__title {
  font-weight: 800;
  font-size: 17px;
  line-height: 1.15;
  color: #1a120a;
}

.aw-discount-popup__text {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(51, 39, 26, 0.78);
}

.aw-discount-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 10px;
  background: rgba(26, 18, 10, 0.06);
  color: rgba(26, 18, 10, 0.72);
  cursor: pointer;
  line-height: 1;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.aw-discount-popup__close:hover {
  background: rgba(202, 148, 44, 0.16);
  color: #1a120a;
  transform: scale(1.04);
}

@media (max-width: 640px) {
  .aw-discount-popup {
    top: 14px;
    right: 14px;
    width: calc(100vw - 28px);
    grid-template-columns: 46px 1fr;
    gap: 12px;
    padding: 14px 44px 14px 14px;
    border-radius: 18px;
  }

  .aw-discount-popup__badge {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 16px;
  }

  .aw-discount-popup__title {
    font-size: 16px;
  }

  .aw-discount-popup__text {
    font-size: 13px;
  }
}
