.footer-info-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
}

.footer-info-links a,
.footer-info-links button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #6f636c;
  cursor: pointer;
  padding: 5px 0;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  transition: color .18s ease;
}

.footer-info-links a:hover,
.footer-info-links button:hover {
  color: var(--coral, #ec6759);
}

.footer-info-links a:focus-visible,
.footer-info-links button:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(181, 67, 114, .2);
  outline-offset: 4px;
}

.footer-wrap {
  flex-wrap: wrap;
}

.footer-social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-social-links a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(74, 54, 70, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #4f4350;
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 7px 18px rgba(64, 42, 58, .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.footer-social-links svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: currentColor;
}

.footer-social-link--facebook svg {
  color: #1877f2;
}

.footer-social-link--viber svg {
  color: #7360f2;
}

.footer-social-links a:hover {
  border-color: currentColor;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(64, 42, 58, .12);
}

.footer-social-links a:focus-visible {
  outline: 3px solid rgba(181, 67, 114, .2);
  outline-offset: 3px;
}

body.footer-modal-open {
  overflow: hidden;
}

.footer-modal[hidden] {
  display: none !important;
}

.footer-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.footer-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 18, 30, .7);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.footer-modal-card {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100dvh - 44px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 30px;
  background:
    radial-gradient(circle at 95% 5%, rgba(239, 187, 92, .25), transparent 27%),
    linear-gradient(145deg, #fffdf9, #fbf3f5);
  box-shadow: 0 30px 90px rgba(20, 10, 20, .38);
  animation: footer-modal-in .22s ease both;
  overscroll-behavior: contain;
}

.footer-modal-card--privacy {
  width: min(660px, 100%);
}

.footer-modal-card--about {
  width: min(1040px, 100%);
}

.footer-modal-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(72, 48, 66, .13);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #4b3445;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(50, 30, 45, .14);
}

.footer-modal-close:hover {
  color: var(--coral, #ec6759);
}

.footer-modal-close:focus-visible,
.footer-modal-ok:focus-visible {
  outline: 3px solid rgba(181, 67, 114, .22);
  outline-offset: 3px;
}

.footer-about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: 18px;
  padding: 18px;
}

.footer-about-media {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border: 4px solid #fff;
  border-radius: 22px;
  background: #f2e7e4;
  box-shadow: 0 16px 38px rgba(75, 43, 64, .14);
}

.footer-about-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.footer-about-media figcaption {
  position: absolute;
  right: 13px;
  bottom: 13px;
  left: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 14px;
  background: rgba(32, 22, 32, .72);
  color: #fff;
  padding: 10px 13px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.footer-about-media figcaption span {
  color: #f6c6cf;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 900;
}

.footer-about-media figcaption strong {
  text-align: right;
  font-size: 10px;
  line-height: 1.35;
}

.footer-about-story {
  display: contents;
}

.footer-about-heading {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(80, 51, 72, .09);
  border-radius: 22px;
  background: rgba(255, 255, 255, .78);
  padding: 27px 28px 24px;
  box-shadow: 0 12px 32px rgba(75, 43, 64, .07);
}

.footer-about-heading h2 {
  margin: 0;
  color: #211524;
  letter-spacing: -.03em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3.2vw, 38px);
  font-weight: 500;
  line-height: 1.08;
}

.footer-about-heading h2 em {
  color: #b54372;
  font-weight: 500;
}

.footer-about-heading p {
  margin: 17px 0 0;
  border-left: 3px solid #efbb5c;
  color: #594a56;
  padding-left: 13px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;
}

.footer-about-chapters {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.footer-about-chapter {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(80, 51, 72, .09);
  border-radius: 18px;
  background: rgba(255, 255, 255, .8);
  padding: 17px 17px 16px;
  box-shadow: 0 10px 26px rgba(75, 43, 64, .06);
  transition: transform .18s ease, box-shadow .18s ease;
}

.footer-about-chapter:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 32px rgba(75, 43, 64, .1);
}

.footer-about-chapter::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #ec6759, #b54372, #207f7b);
}

.footer-about-number {
  display: block;
  margin-bottom: 8px;
  color: #b54372;
  letter-spacing: .12em;
  font-size: 9px;
  font-weight: 950;
}

.footer-about-chapter h3 {
  margin: 0 0 9px;
  color: #302130;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

.footer-about-chapter p {
  margin: 0 0 8px;
  color: #695d68;
  font-size: 11px;
  line-height: 1.58;
}

.footer-about-chapter p:last-child {
  margin-bottom: 0;
}

.footer-about-closing {
  color: #3f303d !important;
  font-weight: 800;
}

.footer-about-story > .footer-modal-actions {
  grid-column: 1 / -1;
  margin-top: 0;
}

.footer-modal-copy {
  padding: 26px 28px;
}

.footer-modal-card--privacy .footer-modal-copy {
  padding: 42px 42px 34px;
}

.footer-modal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  color: #207f7b;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 900;
}

.footer-modal-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(32, 127, 123, .1);
}

.footer-modal-copy h2 {
  margin: 0 44px 17px 0;
  color: #211524;
  letter-spacing: -.035em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 4vw, 46px);
  font-weight: 500;
  line-height: 1.02;
}

.footer-modal-copy p {
  margin: 0 0 12px;
  color: #695d68;
  font-size: 13px;
  line-height: 1.68;
}

.footer-modal-copy p:first-of-type {
  color: #3c2c39;
  font-weight: 750;
}

.footer-photo-points {
  display: grid;
  gap: 10px;
  margin: 21px 0 0;
  padding: 0;
  list-style: none;
}

.footer-photo-points li {
  position: relative;
  border: 1px solid rgba(101, 53, 110, .1);
  border-radius: 15px;
  background: rgba(255, 255, 255, .75);
  color: #5f5360;
  padding: 12px 14px 12px 42px;
  font-size: 12px;
  line-height: 1.5;
}

.footer-photo-points li::before {
  content: "✓";
  position: absolute;
  top: 12px;
  left: 15px;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: #e6f5ee;
  color: #2f8c65;
  font-size: 12px;
  font-weight: 900;
}

.footer-privacy-contact {
  margin-top: 15px !important;
  font-size: 11px !important;
}

.footer-privacy-contact a {
  color: #65356e;
  font-weight: 850;
  text-underline-offset: 3px;
}

.footer-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.footer-modal-ok {
  min-width: 112px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ec6759, #b54372);
  color: #fff;
  cursor: pointer;
  padding: 12px 22px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 12px 25px rgba(177, 66, 101, .23);
}

.footer-modal-ok:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

@keyframes footer-modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  .footer-wrap .footer-info-links {
    display: flex !important;
    width: 100%;
    gap: 7px 17px;
  }

  .footer-info-links a,
  .footer-info-links button {
    font-size: 10px;
  }

  .footer-wrap .footer-social-links {
    display: flex !important;
    width: 100%;
    gap: 9px;
  }

  .footer-social-links a {
    min-width: 118px;
    min-height: 42px;
    padding: 10px 14px;
    font-size: 11px;
  }

  .footer-modal {
    padding: 10px;
  }

  .footer-modal-card {
    max-height: calc(100dvh - 20px);
    border-radius: 22px;
  }

  .footer-about-layout {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 13px;
  }

  .footer-about-media {
    border-width: 4px;
    border-radius: 18px;
  }

  .footer-about-media img {
    height: auto;
  }

  .footer-about-media figcaption {
    right: 9px;
    bottom: 9px;
    left: 9px;
    padding: 8px 10px;
  }

  .footer-about-media figcaption strong {
    max-width: 58%;
    font-size: 9px;
  }

  .footer-about-heading {
    border-radius: 18px;
    padding: 21px 17px 19px;
  }

  .footer-about-heading h2 {
    font-size: 27px;
  }

  .footer-about-heading p {
    margin-top: 13px;
    font-size: 11px;
  }

  .footer-about-chapters {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-about-chapter {
    border-radius: 16px;
    padding: 15px;
  }

  .footer-about-chapter h3 {
    font-size: 16px;
  }

  .footer-about-chapter p {
    font-size: 10.8px;
  }

  .footer-modal-copy,
  .footer-modal-card--privacy .footer-modal-copy {
    padding: 25px 10px 10px;
  }

  .footer-modal-card--privacy .footer-modal-copy {
    padding: 36px 20px 22px;
  }

  .footer-modal-copy h2 {
    margin-right: 34px;
    font-size: 31px;
  }

  .footer-modal-copy p {
    font-size: 12px;
    line-height: 1.6;
  }

  .footer-modal-close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    font-size: 21px;
  }

  .footer-photo-points {
    gap: 8px;
  }

  .footer-photo-points li {
    padding: 11px 12px 11px 38px;
    font-size: 11px;
  }

  .footer-photo-points li::before {
    top: 11px;
    left: 12px;
  }

  .footer-modal-actions {
    margin-top: 17px;
  }

  .footer-modal-ok {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-modal-card {
    animation: none;
  }

  .footer-modal-ok {
    transition: none;
  }
}
