/* ==========================================================================
   footer.css — подвал (footer). База 1920, десктоп. Без @media.
   Ноды Figma: Section 10 79:2356 / Top 79:2357 / Bottom 79:2463.
   ========================================================================== */

.footer {
  /* Зазор body(фотобанк)→подвал — Figma Frame 68: 120px на 1920 (адаптив ниже) */
  margin-top: 120px;
  background-color: var(--c-dark);
  color: #fff;
}

.footer__inner {
  padding-top: 60px;
  padding-bottom: 24px;
}

/* ---------- Top: лого+меню слева, контакты+соцсети справа ---------- */
.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

/* ---------- Лого + меню (439px, justify-between) ---------- */
.footer__logo-links {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 439px;
}

/* Логотип — текст/placeholder (нода Logo 176×66) */
.footer__logo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 176px;
  color: #fff;
  transition: opacity 0.2s ease;
}

.footer__logo:hover {
  opacity: 0.85;
}

.footer__logo-title {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 16px;
  text-transform: uppercase;
}

.footer__logo-sub {
  font-family: var(--font-text);
  font-size: 9px;
  line-height: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: var(--o-label);
}

/* Меню-ссылки (95px) */
.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 95px;
}

.footer__nav-link {
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 28px;
  color: #fff;
  opacity: var(--o-label);
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.footer__nav-link:hover {
  opacity: 1;
}

/* ---------- Контакты + соцсети (gap 64) ---------- */
.footer__contacts-social {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

/* ---------- Контакты (638px, gap 40) ---------- */
.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 638px;
  font-style: normal;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__contact-label {
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 24px;
  opacity: var(--o-label);
}

.footer__contact-value {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 32px;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

a.footer__contact-value:hover {
  opacity: 0.85;
}

/* ---------- Соцсети / чат-боты (210px, gap 32) ---------- */
.footer__social {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 210px;
}

.footer__social-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__social-title {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  text-transform: none;
  color: #fff;
}

.footer__social-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-8);
  border: 1px solid var(--border-on-dark);
  color: #fff;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.footer__social-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.footer__social-link--filled {
  background-color: var(--c-btn-gray);
  border-color: transparent;
}

.footer__social-link--filled:hover {
  background-color: var(--c-btn-gray);
  opacity: 0.85;
}

.footer__social-tag {
  font-family: var(--font-text);
  font-size: 11px;
  line-height: 1;
  font-weight: 500;
}

/* ---------- Bottom: копирайт + политики ---------- */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(214, 191, 163, 0.2);
}

.footer__copyright {
  font-family: var(--font-text);
  font-size: 12px;
  line-height: 16px;
  opacity: 0.8;
  white-space: nowrap;
}

.footer__policies {
  display: flex;
  align-items: center;
  gap: 40px;
}

.footer__policy-link {
  font-family: var(--font-text);
  font-size: 12px;
  line-height: 16px;
  color: #fff;
  opacity: var(--o-label);
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.footer__policy-link:hover {
  opacity: 1;
}

/* ==========================================================================
   Адаптив footer
   ========================================================================== */

/* ≤1440: контакты уже, соцсети ближе (Figma 1440: contacts 440, social 210, gap 20 → 670) ---- */
@media (max-width: 1919px) {
  .footer {
    margin-top: 60px;
  }
  .footer__contacts {
    width: 440px;
  }
  .footer__contacts-social {
    gap: 20px;
  }
}

/* ≤768: колонка — лого + ссылки-ряд, ниже контакты + соцсети ---- */
@media (max-width: 1023px) {
  .footer__top {
    flex-direction: column;
    gap: 40px;
  }
  .footer__logo-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
  }
  .footer__nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
    gap: 16px 32px;
  }
  .footer__contacts-social {
    width: 100%;
    justify-content: space-between;
  }
  .footer__contacts {
    width: 511px;
  }
  .footer__social {
    flex-shrink: 0;
  }
}

/* ≤360: всё в один столбец ---- */
@media (max-width: 767px) {
  .footer {
    margin-top: 40px;
    /* Figma 360 (нода 105:2919): фон #2a3b45 (--c-dark-soft), не #091e25 */
    background-color: var(--c-dark-soft);
    /* Figma 360: верхние углы скруглены 24px */
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
  }
  .footer__inner {
    padding-top: 40px;
  }
  /* Figma Logo+Links: лого h64 → Links y88, gap 24 (не 40 из 768) */
  .footer__logo-links {
    gap: 24px;
  }
  .footer__nav-list {
    flex-direction: column;
    gap: 24px;
  }
  /* Ссылки меню 16/24 (Figma 360: каждая h24, шаг 48 — не 18/28 из базы). */
  .footer__nav-link {
    font-size: 16px;
    line-height: 24px;
  }
  /* Figma: Contacts h216 → Social y256, gap 40 (не 32) */
  .footer__contacts-social {
    flex-direction: column;
    gap: 40px;
  }
  /* Figma: контакты на всю 328, между 3 блоками gap 24 (не 40 из десктопа) */
  .footer__contacts {
    width: 100%;
    gap: 24px;
  }
  /* email/телефон/адрес: на узком экране переносить, не растягивать вьюпорт
     (длинный e-mail с white-space:nowrap давал гориз. скролл +57px) */
  .footer__contact-value {
    font-size: 16px;
    line-height: 24px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  /* Figma Social: 2 группы [Соцсети | Чат-боты] РЯДОМ (по 148w), gap 32, на всю 328 */
  .footer__social {
    flex-direction: row;
    width: 100%;
    gap: 32px;
  }
  .footer__social-group {
    flex: 1 1 0;
    min-width: 0;
  }
  /* Figma Bottom: политики СНАЧАЛА, копирайт ПОСЛЕ; вертикальный стек, gap 24 */
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .footer__policies {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .footer__copyright {
    order: 2;
  }
  /* Figma 360 (нода 105:3031 Bottom): ссылки-политики opacity 0.8 (не 0.7 из базы) */
  .footer__policy-link {
    opacity: 0.8;
  }
}
