/**
 * footer.css — Gradbau.com
 * Two-tier site footer + cookie banner.
 *
 * Top tier: 3 navigation columns (Услуги / Компания / Реквизиты)
 *           — structure from concept pages.
 * Bottom tier: copyright + privacy/cookies/cookie_settings links
 *              — links from production footer (kept via i18n keys
 *              footer_privacy, footer_cookies, footer_cookie_settings).
 *
 * Cookie banner (#cookie-banner) is included as-is from production —
 * it works through storage.js. Not refactored in this iteration.
 */

/* ── Site footer ── */
.site-footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 40%, var(--bg));
  padding: var(--space-10) 36px var(--space-6);
}

/* ── Top tier: navigation columns ── */
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}
.footer-col__title {
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 14px;
}
.footer-col p,
.footer-col a {
  font-family: var(--font-b);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-2);
  text-decoration: none;
  margin: 0 0 4px;
  display: block;
  transition: color var(--transition-fast);
}
.footer-col a:hover {
  color: var(--accent);
}

/* ── Bottom tier: copyright + legal links ── */
.footer-bot {
  max-width: 1160px;
  margin: var(--space-8) auto 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-bot__copy {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: .04em;
}
.footer-bot__links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.footer-bot__links a {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--text-3);
  text-decoration: none;
  transition: color var(--transition-fast);
  letter-spacing: .04em;
}
.footer-bot__links a:hover {
  color: var(--accent);
}

/* ── Cookie banner (kept as-is from production, works via storage.js) ── */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-toast);
  padding: var(--space-5) 36px;
  background: color-mix(in srgb, var(--bg-2) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  box-shadow: var(--shadow-toast);
}
.cookie-text-wrap {
  flex: 1;
  min-width: 240px;
}
.cookie-text-wrap h3 {
  font-family: var(--font-d);
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--text);
}
.cookie-text-wrap p {
  font-family: var(--font-b);
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.btn-cookie-acc {
  padding: 10px 20px;
  border: none;
  border-radius: var(--r-md);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.btn-cookie-acc:hover {
  background: var(--accent-h);
}
.btn-cookie-ess {
  padding: 10px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.btn-cookie-ess:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.cookie-actions a {
  font-family: var(--font-m);
  font-size: 12px;
  color: var(--accent);
  margin-left: 8px;
}

/* ── Mobile ── */
@media (max-width: 760px) {
  .site-footer { padding: var(--space-10) 18px var(--space-6); }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .footer-bot {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
  #cookie-banner { padding: var(--space-5) 18px; }
}
