.footer {
  padding: 56px var(--page) 24px;
  background: var(--bg);
  color: var(--white);
}

.footer-main {
  display: grid;
  /* Три равные колонки: контакты, меню, документы */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand { display: inline-block; }
.footer-brand img { display: block; width: 184px; height: auto; }
.footer-identity .footer-contact { margin-top: 24px; }
.footer-label { margin: 4px 0 18px; font-family: var(--body); font-size: 11px; font-weight: 600; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.footer-contact address { font-style: normal; }
.footer-contact address, .footer-phone { margin: 0; font-size: 19px; line-height: 1.5; }
.footer-phone { white-space: nowrap; }
.footer-contact a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid #30322e;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.footer-copyright { margin: 0; }

/* Контакты: адрес, телефон и иконки соцсетей одним блоком */
.footer-contact .footer-phone { margin-top: 6px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.footer-social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #3d3f3a; color: var(--white); transition: background .2s, border-color .2s; }
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #131313; text-decoration: none; }
.footer-social svg { width: 30px; height: 30px; }
/* Телеграм — круглый значок, чуть меньше, чтобы по весу совпадал с «vk» */
.social-icons a[href*="t.me"] svg { width: 24px; height: 24px; }
.social-icons a[href*="max.ru"] svg { width: 22px; height: 22px; }
/* Те же иконки в блоке «Контакты» */
.contacts-social { margin-top: 4px; }
.contacts-social a { width: 52px; height: 52px; }

/* Меню и документы */
.footer-nav ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { font-size: 15px; line-height: 1.5; color: #cecfcb; transition: color .2s; }
.footer-nav a:hover, .footer-nav a[aria-current] { color: var(--accent); }

.footer-docs ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-docs a { font-size: 15px; line-height: 1.5; color: #cecfcb; }
.footer-docs a:hover, .footer-docs a[aria-current] { color: var(--white); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* Кнопка «Настройки cookie» в подвале — выглядит как ссылка */
.footer-cookie { padding: 0; border: 0; background: none; font: inherit; font-size: 15px; line-height: 1.5; color: #cecfcb; text-align: left; cursor: pointer; }
.footer-cookie:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* Баннер о cookie */
.cookie-banner { position: fixed; z-index: 60; left: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 16px; width: auto; max-width: min(520px, calc(100% - 48px)); padding: 22px 24px; background: #111111; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.cookie-banner[hidden] { display: none; }
.cookie-text { margin: 0; font-size: 14px; line-height: 1.6; color: #cecfcb; }
.cookie-text a { color: var(--white); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.cookie-text a:hover { color: var(--accent); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .button { min-height: 42px; padding: 10px 20px; font-size: 13px; }
@media (max-width: 760px) {
  .cookie-banner { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; padding: 18px; }
  .cookie-actions .button { flex: 1 1 auto; }
  /* Пока баннер открыт, липкая кнопка записи не показывается */
  body.cookie-open .mobile-book { visibility: hidden; }
}
