.site-footer.footer-modern {
  --footer-gold: #f5d69b;
  --footer-muted: #ecdae0;
  --footer-rule: #f4d1a442;
  position: relative;
  padding: clamp(42px, 5vw, 72px) 0 34px;
  border-top: 2px solid #bc8956;
  background:
    radial-gradient(ellipse at 12% 0%, #613044 0%, transparent 60%),
    linear-gradient(135deg, #442334, #2c1828 68%, #351b2a);
  color: #fff7f1;
}

.footer-modern .footer-main {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(260px, 1.15fr) auto;
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  padding-bottom: clamp(28px, 4vw, 52px);
}

.footer-modern .footer-brand {
  display: block;
  width: min(100%, 340px);
}

.footer-modern .footer-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-modern .footer-main > p {
  margin: 0;
  color: #fff7f1;
  font: 800 clamp(23px, 2.35vw, 34px)/1.24 'Manrope Impact', Manrope, sans-serif;
  letter-spacing: -.035em;
}

.footer-modern .footer-countries {
  gap: 9px;
  color: var(--footer-muted);
  font-size: 16px;
  font-weight: 700;
}

.footer-modern .footer-countries img {
  width: 25px;
  height: auto;
  border-radius: 2px;
}

.footer-modern .footer-plus {
  margin-inline: 4px;
  color: var(--footer-gold);
}

.footer-modern .footer-info {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr) minmax(0, .86fr);
  gap: clamp(28px, 5vw, 72px);
  border-color: var(--footer-rule);
  padding: clamp(30px, 4vw, 54px) 0;
}

.footer-modern .footer-info h3 {
  margin: 0 0 15px;
  color: var(--footer-gold);
  font: 800 clamp(20px, 1.9vw, 25px)/1.25 'Manrope Impact', Manrope, sans-serif;
  letter-spacing: -.018em;
}

.footer-modern .footer-company address,
.footer-modern .footer-products ul {
  color: var(--footer-muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
}

.footer-modern .footer-products li + li {
  margin-top: 6px;
}

.footer-modern .footer-contact-label {
  margin: 18px 0 4px;
  color: var(--footer-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-modern .footer-contact > a {
  max-width: 100%;
  color: #fff7f1;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.footer-modern .footer-partner {
  gap: 22px;
  border-color: var(--footer-rule);
  padding: 28px 0;
}

.footer-modern .partner-label {
  margin: 0;
  color: var(--footer-gold);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .12em;
}

.footer-modern .footer-partner strong {
  color: #fff5ee;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

.footer-modern .footer-partner p {
  color: var(--footer-muted);
  font-size: 15px;
  line-height: 1.6;
}

.footer-modern .footer-partner a,
.footer-modern .footer-contact > a:hover {
  color: var(--footer-gold);
}

.footer-modern .footer-bottom {
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  border-color: var(--footer-rule);
  padding-top: 24px;
}

.footer-modern .footer-links {
  width: auto;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
}

.footer-modern .footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #fff4ed;
  font-size: 16px;
  font-weight: 700;
  transition: border-color .2s, background-color .2s, color .2s;
}

.footer-modern .footer-links a[data-legal-open] {
  border-color: var(--footer-rule);
  background-color: #fff5e209;
}

.footer-modern .footer-links a:hover {
  border-color: #e8bd807f;
  background-color: #f5d69b12;
  color: var(--footer-gold);
}

.footer-modern .footer-links .icon {
  width: 17px;
  height: 17px;
  color: var(--footer-gold);
  flex: 0 0 auto;
}

.footer-modern .footer-bottom > p,
.footer-modern .legal-note {
  max-width: none;
  color: var(--footer-muted);
  font-size: 14px;
  line-height: 1.65;
}

.footer-modern .legal-note {
  margin-top: 22px;
}

.footer-modern a:focus-visible {
  outline: 2px solid var(--footer-gold);
  outline-offset: 3px;
}

html:has(.footer-document[open]) {
  overflow: hidden;
  scrollbar-gutter: stable;
}

.footer-document {
  width: min(780px, calc(100% - 32px));
  max-width: none;
  max-height: min(820px, calc(100dvh - 36px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d7ad74;
  border-radius: 16px;
  background: #fff9ef;
  color: #202532;
  box-shadow: 0 24px 96px #1408129e;
}

.footer-document[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.footer-document::backdrop {
  background: #1a111acc;
  backdrop-filter: blur(4px);
}

.footer-document-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(19px, 4vw, 34px);
  background: linear-gradient(123deg, #552a3d, #341c2d);
  color: #fff9f1;
}

.footer-document-kicker {
  margin-bottom: 7px;
  color: #f5d69b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
}

.footer-document-header h2 {
  margin: 0;
  color: inherit;
  font: 800 clamp(25px, 4.2vw, 40px)/1.14 'Manrope Impact', Manrope, sans-serif;
  letter-spacing: -.034em;
}

.footer-document-header p:last-child {
  margin-top: 9px;
  color: #f0dfe4;
  font-size: 14px;
  line-height: 1.45;
}

.footer-document-close {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid #f5d69b78;
  border-radius: 6px;
  background: transparent;
  color: #fff9f1;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.footer-document-close .icon {
  width: 18px;
  height: 18px;
}

.footer-document-close:hover {
  background: #f5d69b22;
}

.footer-document-close:focus-visible {
  outline: 2px solid #f5d69b;
  outline-offset: 3px;
}

.footer-document-content {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(19px, 4vw, 34px);
}

.footer-document-content h3 {
  margin: 0 0 4px;
  color: #492639;
  font: 800 clamp(18px, 2.5vw, 22px)/1.3 'Manrope Impact', Manrope, sans-serif;
  letter-spacing: -.018em;
}

.footer-document-content p {
  color: #34313a;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
}

.footer-document-content p + h3 {
  margin-top: 17px;
}

.footer-document-source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px clamp(19px, 4vw, 34px);
  border-top: 1px solid #e5ceb0;
  background: #f8ebd7;
  color: #59412b;
  font-size: 14px;
}

.footer-document-source a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: #512239;
  font-size: 16px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-document-source .icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.footer-document-source a:focus-visible,
.footer-document-content:focus-visible {
  outline: 2px solid #7a4651;
  outline-offset: -2px;
}

@media (max-width: 950px) {
  .footer-modern .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-modern .footer-countries {
    grid-column: 1 / -1;
  }

  .footer-modern .footer-info {
    gap: 28px;
  }
}

@media (max-width: 650px) {
  .footer-modern .footer-main,
  .footer-modern .footer-info {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-modern .footer-brand {
    width: min(100%, 285px);
  }

  .footer-modern .footer-main > p {
    font-size: 26px;
  }

  .footer-modern .footer-partner {
    display: grid;
    gap: 8px;
  }

  .footer-modern .footer-links a {
    padding-inline: 10px;
  }

  .footer-document-source {
    justify-content: flex-start;
    row-gap: 0;
  }
}
