/* Подвал */
.site-footer {
  flex-wrap: wrap;
  gap: 24px 36px;
}

.footer-privacy {
  max-width: 350px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.025em;
  color: var(--muted);
  text-underline-offset: 4px;
}

.footer-privacy:hover {
  color: var(--lime);
  text-decoration: underline;
}

.footer-copyright {
  white-space: nowrap;
}

/* Уведомление Cookie */
.cookie-notice {
  position: fixed;
  z-index: 50;
  left: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  max-width: calc(100% - 88px);
  padding: 20px 24px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #c3c6b5;
  border-radius: 12px;
  box-shadow: 0 12px 50px rgb(0 0 0 / 20%);
}

.cookie-notice p {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.cookie-notice a {
  color: #3e5621;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-notice small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0;
  color: #566047;
}

.cookie-notice button {
  flex-shrink: 0;
  padding: 14px 22px;
  border: 1px solid #a8c656;
  border-radius: 7px;
  color: var(--ink);
  background: var(--lime);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.cookie-notice button:hover {
  background: #c7ec59;
}

.cookie-notice-open .site-footer {
  padding-bottom: calc(
    var(--cookie-notice-height, 110px) + 50px + env(safe-area-inset-bottom, 0px)
  );
}

/* Страница политики */
.privacy-header {
  justify-content: space-between;
}

.privacy-header .header-contact {
  margin-left: auto;
}

.privacy-hero {
  padding: 64px var(--gutter) 80px;
}

.privacy-hero .tiny-label {
  color: var(--lime);
}

.privacy-hero h1 {
  position: static;
  margin: 36px 0 30px;
  font-size: clamp(34px, 5.3vw, 92px);
  line-height: 1.08;
  letter-spacing: -0.055em;
  font-weight: 550;
  white-space: normal;
  overflow-wrap: break-word;
}

.privacy-hero p {
  max-width: 630px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(170px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(40px, 8vw, 140px);
  padding: 64px var(--gutter) 100px;
  color: var(--ink);
  background: var(--paper);
}

.policy-nav {
  position: sticky;
  top: 35px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 12px;
  line-height: 1.6;
}

.policy-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.policy-content {
  max-width: 820px;
}

.policy-content section + section {
  margin-top: 48px;
  border-top: 1px solid #c3c6b5;
  padding-top: 40px;
}

.policy-content h2 {
  margin: 0 0 22px;
  font-size: clamp(23px, 2.4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-weight: 650;
}

.policy-content p,
.policy-content li,
.cookie-facts {
  font-size: 16px;
  line-height: 1.75;
}

.policy-content p {
  margin: 16px 0;
}

.policy-content ul {
  padding-left: 23px;
}

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

.policy-content a {
  color: #3e5621;
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.cookie-facts {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 3px solid #9cba53;
  background: #e6e8dd;
}

.cookie-facts > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  margin: 8px 0;
}

.cookie-facts dt {
  color: #59634b;
}

.cookie-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.policy-button {
  padding: 13px 18px;
  border: 1px solid #73805a;
  border-radius: 4px;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}

.policy-button:hover {
  background: #e1e6d6;
}

.policy-button[hidden] {
  display: none;
}

/* Телефоны */
@media (max-width: 760px) {
  .site-footer {
    gap: 22px 20px;
  }

  .footer-privacy {
    order: 4;
    width: 100%;
    max-width: none;
    font-size: 9px;
  }

  .footer-copyright {
    margin-left: auto;
  }

  .site-footer > a:last-child {
    margin-left: 0;
  }

  .cookie-notice {
    left: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 24px);
    max-width: none;
    gap: 15px;
    padding: 16px;
  }

  .cookie-notice p {
    font-size: 15px;
  }

  .cookie-notice small {
    font-size: 10px;
  }

  .cookie-notice button {
    padding: 13px 14px;
    font-size: 11px;
  }

  .cookie-notice-open .motion-control {
    bottom: calc(var(--cookie-notice-height, 110px) + 24px + env(safe-area-inset-bottom, 0px));
  }

  .privacy-hero {
    padding: 42px var(--gutter) 52px;
  }

  .privacy-hero h1 {
    margin: 28px 0;
    font-size: clamp(32px, 7.8vw, 55px);
  }

  .privacy-hero p {
    font-size: 14px;
  }

  .policy-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-top: 35px;
    padding-bottom: 65px;
  }

  .policy-nav {
    position: static;
    padding-bottom: 28px;
    border-bottom: 1px solid #c3c6b5;
    gap: 10px;
  }

  .policy-content p,
  .policy-content li,
  .cookie-facts {
    font-size: 14px;
  }

  .cookie-facts {
    padding: 15px;
  }

  .cookie-facts > div {
    grid-template-columns: 1fr;
    gap: 1px;
    margin: 14px 0;
  }
}
