.page-section--footer {
  --section-bg: #f4f2eb;
  overflow: hidden;
  border-top: 0;
  background:
    radial-gradient(ellipse at 83% 0%, rgb(207 216 196 / 58%), transparent 34%),
    radial-gradient(ellipse at 4% 100%, rgb(234 217 199 / 48%), transparent 36%),
    linear-gradient(125deg, #f8f6f0 0%, #f0efe7 52%, #f7f4ec 100%);
  color: #292922;
}

.page-section--footer::before,
.page-section--footer::after {
  position: absolute;
  z-index: 0;
  top: -145%;
  right: -5%;
  width: min(60vw, 860px);
  aspect-ratio: 1;
  border: 1px solid rgb(76 92 75 / 10%);
  border-radius: 50%;
  content: '';
  pointer-events: none;
}

.page-section--footer::after {
  top: -128%;
  right: -2%;
  width: min(48vw, 690px);
}

.footer {
  display: grid;
  grid-template-columns: minmax(230px, 1.25fr) repeat(3, minmax(150px, .8fr));
  align-items: start;
  gap: 44px clamp(24px, 4vw, 64px);
  padding: clamp(48px, 5.2vw, 76px) 0 22px;
  border-top: 0;
  color: inherit;
}

.footer-brand img {
  width: 72px;
  height: 65px;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

.footer-brand p {
  margin: 18px 0 0;
  color: #292922;
  font-family: var(--heading, 'Monomakh', Georgia, serif);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.14;
}

.footer-label,
.footer-col > span {
  display: block;
  margin: 4px 0 17px;
  color: #778073;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer-col {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-col > span { margin-bottom: 9px; }

.footer-col a,
.footer-col p {
  margin: 0;
  color: #42473f;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.footer-col a {
  transition: color .2s ease, opacity .2s ease;
}

.footer-col a:hover { color: var(--sage, #485d49); }

.footer-col .footer-phone {
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 600;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.footer-col .footer-note {
  max-width: 220px;
  margin-top: 3px;
  color: #77776e;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
}

.footer-social { margin-top: 27px; }

.footer-social .footer-label { margin: 0 0 12px; }

.footer-social__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-social__links a {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid rgb(76 92 75 / 22%);
  border-radius: 50%;
  color: #485d49;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.footer-social__links a:hover {
  transform: translateY(-2px);
  border-color: #485d49;
  background: linear-gradient(145deg, #e3e8d9, #f7f5ef);
  color: #354838;
}

.footer-social__links a:focus-visible {
  outline: 2px solid #e7c0a8;
  outline-offset: 3px;
}

.footer-social__links svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-social__links .social-icon__filled {
  fill: currentColor;
  stroke: none;
}

.footer-social__links .social-icon__dot { fill: currentColor; stroke: none; }

.footer-bottom {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid rgb(76 92 75 / 18%);
  color: #77776e;
  font-size: 10px;
  letter-spacing: .04em;
}

.footer-bottom a { color: var(--sage, #485d49); }

@media (max-width: 950px) {
  .footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 28px;
  }

  .footer-brand { grid-column: 1 / -1; }
  .footer-social { margin-top: 20px; }
}

@media (max-width: 600px) {
  .page-section--footer::before,
  .page-section--footer::after { display: none; }

  .footer {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 30px 20px;
    padding-block: 34px 18px;
  }

  .footer-brand,
  .footer-bottom { grid-column: 1; }

  .footer-brand { grid-column: 1 / -1; }
  .footer-brand img { display: none; }
  .footer-brand p { max-width: 21ch; margin: 0; font-size: 25px; line-height: 1.14; }
  .footer-social { margin-top: 24px; }
  .footer-social .footer-label { margin-bottom: 12px; }
  .footer-social__links { gap: 8px; }
  .footer-social__links a { width: 38px; height: 38px; }

  .footer-col--contact { grid-column: 1; grid-row: 2; }
  .footer-col--nav {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    gap: 13px;
    margin: -4px 0 0 -8px;
    padding: 4px 8px 10px;
    background: transparent;
  }
  .footer-col--production {
    grid-column: 1;
    grid-row: 3;
    margin: -2px 0 0 -8px;
    padding: 4px 8px 10px;
    background: rgb(235 229 216 / 24%);
  }
  .footer-col > span { margin-bottom: 9px; }
  .footer-col .footer-phone { font-size: 19px; }
  .footer-col a,
  .footer-col p { font-size: 13px; line-height: 1.6; }
  .footer-col .footer-note { font-size: 11px; }

  .footer-bottom {
    grid-column: 1 / -1;
    grid-row: 4;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 6px 10px;
    margin-top: 2px;
    padding-top: 16px;
    font-size: clamp(6px, 1.7vw, 8px);
    letter-spacing: .02em;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-col a,
  .footer-social__links a { transition: none; }
}
