.ra-footer,
.ra-footer * {
  box-sizing: border-box;
}

.ra-footer {
  --ra-bg: #0f1217;
  --ra-bg-deep: #0a0c10;
  --ra-card: rgba(255, 255, 255, 0.035);
  --ra-card-strong: rgba(255, 255, 255, 0.055);
  --ra-text: #dedbb2;
  --ra-muted: #b0a89a;
  --ra-dim: #8f897f;
  --ra-gold: #c8a055;
  --ra-gold-light: #ffcd57;
  --ra-gold-deep: #f5a623;
  --ra-border: rgba(176, 168, 154, 0.15);
  --ra-shadow: rgba(200, 160, 85, 0.28);

  position: relative;
  overflow: hidden;
  width: 100%;
  --ra-side-padding: clamp(24px, 6vw, 100px);
  background:
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.01) 45%, transparent 70%),
    linear-gradient(rgb(23, 28, 35) 0%, rgb(20, 25, 32) 22%, rgb(17, 22, 29) 64%, rgb(15, 19, 25) 100%);
  color: var(--ra-text);
  font-family: 'Inter', sans-serif;
  padding: 38px var(--ra-side-padding) 22px;
}

.ra-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJmIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjc1IiBudW1PY3RhdmVzPSIzIiAvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNmKSIgb3BhY2l0eT0iMC4wMjUiIC8+PC9zdmc+");
}


.ra-footer__shine {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 40;
  width: calc(100% - 24px);
  max-width: none;
  height: 1px;
  min-height: 1px;
  pointer-events: none;
  transform: translate3d(-50%, 0, 0);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(224, 170, 82, 0.029) 2%,
    rgba(224, 170, 82, 0.09) 6%,
    rgba(224, 170, 82, 0.18) 14%,
    rgba(224, 170, 82, 0.259) 28%,
    rgba(224, 170, 82, 0.293) 50%,
    rgba(224, 170, 82, 0.259) 72%,
    rgba(224, 170, 82, 0.18) 86%,
    rgba(224, 170, 82, 0.09) 94%,
    rgba(224, 170, 82, 0.029) 98%,
    transparent 100%
  );
  box-shadow: 0 1px 0 rgba(224, 170, 82, 0.035);
  opacity: 1;
}


.ra-footer__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
}

.ra-footer__socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.ra-social {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--ra-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ra-text);
  font-size: 22px;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.ra-social::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255, 205, 87, 0.22), transparent 62%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}

.ra-social .rentarest-max-icon {
  display: block;
  width: 1.067em;
  height: 1.067em;
  fill: currentColor;
  flex: 0 0 auto;
}

.ra-social:hover {
  color: var(--ra-gold-light);
  border-color: var(--ra-gold-light);
  background: rgba(200, 160, 85, 0.10);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.ra-social:hover::after {
  opacity: 1;
}

.ra-footer__main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 500px);
  justify-content: space-between;
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}

.ra-footer__main::after {
  content: '';
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 50%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(200, 160, 85, 0.35) 20%,
    rgba(255, 205, 87, 0.85) 50%,
    rgba(200, 160, 85, 0.35) 80%,
    transparent 100%
  );
  transform: translateX(-50%);
  pointer-events: none;
}

.ra-footer__brand,
.ra-footer__contacts {
  min-width: 0;
}

.ra-footer__brand {
  width: 100%;
  max-width: 500px;
}

.ra-footer__logo {
  display: inline-block;
  max-width: 250px;
  margin-bottom: 18px;
  text-decoration: none;
}

.ra-footer__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.ra-footer__subtitle {
  max-width: 500px;
  margin: 0 0 18px;
  color: var(--ra-muted);
  font-size: 15px;
  line-height: 1.55;
}

.ra-footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.ra-footer__badges span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 205, 87, 0.18);
  border-radius: 999px;
  background: rgba(255, 205, 87, 0.055);
  color: #d9c99a;
  font-size: 13px;
  line-height: 1;
}

.ra-footer__call,
.ra-footer__contacts {
  border: 1px solid var(--ra-border);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.ra-footer__call {
  width: 100%;
  max-width: 420px;
  padding: 22px;
}

.ra-footer__call-title,
.ra-footer__section-title {
  margin: 0 0 16px;
  color: #e0b84a;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.ra-footer__call-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.ra-footer__call-title i {
  font-size: 22px;
}

.ra-footer__form {
  display: grid;
  gap: 13px;
}

.ra-footer__field {
  display: block;
}

.ra-footer__form-note {
  width: 100%;
  max-width: 352px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(218, 213, 170, 0.78);
  font-size: clamp(10.5px, 0.9vw, 12px);
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}

.ra-footer__form-note a,
.ra-footer__form-note a:visited {
  color: inherit;
  text-decoration: none;
  border-bottom: 0;
  box-shadow: none;
  transition: color 0.2s ease;
}

.ra-footer__form-note a:hover,
.ra-footer__form-note a:focus-visible {
  color: rgba(220, 180, 82, 0.74);
  text-decoration: none;
  border-bottom: 0;
  box-shadow: none;
  outline: none;
}


.ra-footer__hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ra-footer__hp input {
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.ra-footer__field-label {
  display: block;
  margin-bottom: 9px;
  color: var(--ra-dim);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
}

.ra-footer__field input,
.ra-footer__button,
.ra-footer__messenger {
  width: 100%;
  min-height: 50px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
}

.ra-footer__field input {
  padding: 14px 18px;
  border: 1px solid rgba(220, 180, 82, 0.20);
  outline: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.029), rgba(255, 255, 255, 0.007)), rgba(22, 31, 48, 0.98);
  color: #e7e1be;
  caret-color: #e1b759;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.038), inset 0 -1px 0 rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.09);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.ra-footer__field input::placeholder {
  color: rgba(231, 225, 190, 0.52);
  font-weight: 300;
  text-align: center;
}

.ra-footer__field input:hover {
  border-color: rgba(225, 183, 89, 0.36);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.009)), rgba(25, 36, 53, 0.99);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.042), inset 0 -1px 0 rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(225, 183, 89, 0.018);
}

.ra-footer__field input:focus {
  border-color: rgba(255, 224, 141, 0.68);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.039), rgba(255, 255, 255, 0.011)), rgba(27, 40, 59, 1);
  color: #f2eac4;
  box-shadow: 0 0 0 3px rgba(225, 183, 89, 0.14), 0 0 10px rgba(225, 183, 89, 0.035), inset 0 1px 0 rgba(255, 255, 255, 0.050);
}

.ra-footer__field input.is-error {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.13), 0 0 14px rgba(255, 107, 107, 0.055);
}

.ra-footer__field input:-webkit-autofill,
.ra-footer__field input:-webkit-autofill:hover,
.ra-footer__field input:-webkit-autofill:focus,
.ra-footer__field input:-webkit-autofill:active {
  -webkit-text-fill-color: #e7e1be !important;
  caret-color: #e1b759 !important;
  border-color: rgba(220, 180, 82, 0.28) !important;
  background-color: rgba(22, 31, 48, 0.98) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.029), rgba(255, 255, 255, 0.007)) !important;
  -webkit-box-shadow:
    0 0 0 1000px rgba(22, 31, 48, 0.98) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.038),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.09) !important;
  box-shadow:
    0 0 0 1000px rgba(22, 31, 48, 0.98) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.038),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.09) !important;
  transition: background-color 9999s ease-in-out 0s, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.ra-footer__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 14px 28px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024) 0%, rgba(255, 244, 204, 0.015) 42%, rgba(74, 43, 7, 0.057) 100%),
    linear-gradient(180deg, #edc25f 0%, #e6b44d 34%, #e3aa3e 58%, #d68f30 80%, #bd7b22 100%);
  color: #2a2114;
  -webkit-text-fill-color: #2a2114;
  font-weight: 700;
  letter-spacing: 0.12px;
  cursor: pointer;
  box-shadow: none;
  animation: none;
  transition:
    color 0.20s ease,
    -webkit-text-fill-color 0.20s ease,
    background 0.22s ease,
    box-shadow 0.24s ease,
    transform 0.18s cubic-bezier(.16, 1, .3, 1),
    filter 0.20s ease;
}

.ra-footer__button:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.033) 0%, rgba(255, 244, 204, 0.018) 42%, rgba(74, 43, 7, 0.045) 100%),
    linear-gradient(180deg, #f0ca69 0%, #eabd56 34%, #e5ad47 58%, #d79635 80%, #c98a2d 100%);
  color: #2a2114;
  -webkit-text-fill-color: #2a2114;
  transform: translateY(-1px);
  filter: brightness(1.026) saturate(1.018);
  box-shadow:
    0 0 0 4px rgba(232, 181, 75, 0.090),
    0 0 14px rgba(232, 181, 75, 0.105),
    0 6px 18px rgba(190, 125, 34, 0.070);
  animation: none;
}

.ra-footer__button:active {
  background:
    linear-gradient(180deg, rgba(255, 244, 204, 0.020) 0%, rgba(70, 40, 7, 0.085) 100%),
    linear-gradient(180deg, #d29c39 0%, #c88c30 56%, #ae7121 100%);
  transform: translateY(0) scale(0.997);
  box-shadow: inset 0 0 0 999px rgba(45, 28, 6, 0.055);
}

.ra-footer__button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
  animation: none;
}

@keyframes raGoldPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 205, 87, 0.34);
  }

  70% {
    box-shadow: 0 0 0 9px rgba(255, 205, 87, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 205, 87, 0);
  }
}

.ra-footer__messenger {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 10px;
  border: 1px solid rgba(37, 211, 102, 0.28);
  background: rgba(37, 211, 102, 0.08);
  color: #bdf3cf;
  font-weight: 600;
  text-decoration: none;
}

.ra-footer__contacts {
  width: 100%;
  max-width: 500px;
  justify-self: end;
  padding: 27px;
  background:
    radial-gradient(circle at top left, rgba(255, 205, 87, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.032);
}

.ra-footer__contacts-list {
  display: grid;
  gap: 13px;
}

.ra-footer__contacts-list p {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--ra-text);
  font-size: 17px;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.02);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.ra-footer__contacts-list i {
  flex: 0 0 20px;
  margin-top: 4px;
  color: #d1a834;
  font-size: 16px;
  text-align: center;
}

.ra-footer__contacts-list a {
  color: inherit;
  text-decoration: none;
}

.ra-footer__contacts-list p:hover {
  color: var(--ra-gold-light);
  background: rgba(255, 205, 87, 0.055);
  transform: translateX(5px);
}

.ra-footer__contact-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--ra-border);
  color: var(--ra-muted);
  font-size: 14px;
  line-height: 1.55;
}

.ra-footer__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  margin-inline: -28px;
  padding-top: 22px;
  color: var(--ra-dim);
  font-size: 14px;
  line-height: 1.45;
}

.ra-footer__bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(-1 * var(--ra-side-padding));
  width: calc(100% + (var(--ra-side-padding) * 2));
  height: 1px;
  background: var(--ra-border);
}

.ra-footer__bottom p {
  margin: 0;
}

.ra-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.ra-footer__legal a {
  color: var(--ra-muted);
  text-decoration: none;
  background-image: repeating-linear-gradient(
    to right,
    currentColor 0 1px,
    transparent 1px 3px
  );
  background-repeat: no-repeat;
  background-position: left calc(100% - 1px);
  background-size: 0 1px;
  transition:
    color 0.28s ease,
    background-size 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.ra-footer__legal a:hover,
.ra-footer__legal a:focus-visible {
  color: var(--ra-gold-light);
  background-size: 100% 1px;
}

.ra-footer__legal a:focus-visible {
  outline: 1px solid rgba(225, 183, 89, 0.38);
  outline-offset: 4px;
}

.ra-footer__notification {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid rgba(62, 201, 114, 0.35);
  border-radius: 16px;
  background: rgba(16, 25, 19, 0.94);
  color: #d8f8df;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
}

.ra-footer__notification.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ra-footer__notification.is-error {
  border-color: rgba(255, 107, 107, 0.38);
  background: rgba(35, 15, 18, 0.95);
  color: #ffd4d4;
}

.ra-footer__notification-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  font-weight: 700;
}

.ra-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid rgba(28, 31, 38, 0.3);
  border-top-color: #1c1f26;
  border-radius: 50%;
  animation: raSpin 0.65s linear infinite;
}

@keyframes raSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 920px) {
  .ra-footer {
    --ra-side-padding: 18px;
    padding: 42px var(--ra-side-padding) 26px;
  }

  .ra-footer__inner {
    width: 100%;
  }

  .ra-footer__socials {
    margin-bottom: 30px;
  }

  .ra-footer__main {
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 24px;
  }

  .ra-footer__main::after {
    display: none;
  }

  .ra-footer__brand {
    max-width: 100%;
    text-align: center;
  }

  .ra-footer__logo {
    max-width: 220px;
    margin-inline: auto;
  }

  .ra-footer__subtitle {
    margin-inline: auto;
  }

  .ra-footer__badges {
    justify-content: center;
  }

  .ra-footer__call {
    max-width: 100%;
  }

  .ra-footer__call-title {
    justify-content: center;
  }

  .ra-footer__messenger {
    display: flex;
  }

  .ra-footer__contacts {
    max-width: 100%;
    justify-self: stretch;
    padding: 22px;
  }

  .ra-footer__section-title {
    text-align: center;
  }

  .ra-footer__contacts-list p:hover {
    transform: none;
  }

  .ra-footer__bottom {
    flex-direction: column;
    margin-inline: 0;
    text-align: center;
  }

  .ra-footer__legal {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .ra-footer {
    --ra-side-padding: 16px;
    padding: 36px var(--ra-side-padding) calc(24px + env(safe-area-inset-bottom));
  }

  .ra-footer__socials {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    max-width: 340px;
    margin-inline: auto;
    margin-bottom: 28px;
  }

  .ra-social {
    width: 48px;
    height: 48px;
    justify-self: center;
    font-size: 19px;
  }

  .ra-footer__logo {
    max-width: 190px;
  }

  .ra-footer__subtitle {
    font-size: 14px;
  }

  .ra-footer__badges {
    gap: 7px;
  }

  .ra-footer__badges span {
    font-size: 12px;
    min-height: 30px;
  }

  .ra-footer__call,
  .ra-footer__contacts {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .ra-footer__call-title,
  .ra-footer__section-title {
    font-size: 18px;
  }

  .ra-footer__field-label {
    white-space: normal;
  }


  .ra-footer__contacts-list p {
    font-size: 15px;
  }

  .ra-footer__field input,
  .ra-footer__button,
  .ra-footer__messenger {
    min-height: 48px;
    font-size: 15px;
  }

  .ra-footer__bottom {
    font-size: 13px;
  }

  .ra-footer__notification {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
  }
}

@media (max-width: 360px) {
  .ra-footer__form-note {
    font-size: 10px;
    letter-spacing: -0.01em;
  }

  .ra-footer__socials {
    grid-template-columns: repeat(3, 1fr);
    max-width: 210px;
  }
}

@media (hover: none) {
  .ra-social:hover,
  .ra-footer__button:hover,
  .ra-footer__contacts-list p:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ra-footer__button,
  .ra-spinner {
    animation: none !important;
  }

  .ra-social,
  .ra-footer__field input,
  .ra-footer__button,
  .ra-footer__contacts-list p,
  .ra-footer__notification {
    transition: none !important;
  }
}
