/* === СертКонтроль — футер по эталону (предфутер + 4 колонки + legal) === */

/* ========== 1. ПРЕДФУТЕР (финальный CTA) ========== */
.pre-footer {
  max-width: 1200px;
  margin: 56px auto 80px;
  padding: 56px 40px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  overflow: visible;
  width: 100%;
  box-sizing: border-box;
}

.pre-footer-inner {
  max-width: 560px;
  margin: 0 auto;
}

.pre-footer-title {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 12px;
  color: #1e293b;
  font-weight: 700;
}

.pre-footer-lead {
  font-size: 18px;
  opacity: 0.85;
  color: #475569;
  margin: 0 0 24px;
  line-height: 1.4;
}

.pre-footer-btn {
  display: inline-block;
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 14px;
  margin-bottom: 28px;
}

.pre-footer-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 32px;
  font-size: 15px;
  color: #64748b;
}

.pre-footer-stats span {
  white-space: nowrap;
}

/* ========== 2. ОСНОВНОЙ ФУТЕР ========== */
.footer {
  background: linear-gradient(180deg, #f5f7fb 0%, #eef2f8 100%);
  padding: 80px 20px 24px;
  color: #1e293b;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: visible;
  width: 100%;
  box-sizing: border-box;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 48px;
}

/* ========== 3. Левая колонка — бренд ========== */
.footer-brand {
  max-width: 320px;
}

.footer-brand-name {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #1e293b;
}

.footer-brand-desc {
  font-size: 14px;
  opacity: 0.75;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 16px;
}

.footer-brand-trust {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-brand-trust li {
  font-size: 13px;
  margin-top: 6px;
  color: #64748b;
}

/* ========== 4. Навигация (О компании / Услуги) ========== */
.footer-nav h5 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
  color: #1e293b;
  font-weight: 600;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  font-size: 14px;
  opacity: 0.75;
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #2563eb;
  opacity: 1;
}

/* ========== 5. Контакты (главный акцент) ========== */
.footer-contacts {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.footer-contacts-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin: 0 0 4px;
}

.footer-contacts-label:not(:first-child) {
  margin-top: 16px;
}

.footer-phone {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-phone:hover {
  color: #2563eb;
}

.footer-email {
  font-size: 14px;
  opacity: 0.8;
  color: #475569;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
  transition: color 0.2s;
}

.footer-email:hover {
  color: #2563eb;
  opacity: 1;
}

/* ========== 6. Соцсети (реальные иконки + glass) ========== */
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.footer-social {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  background-size: 18px 18px;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.2s, background-color 0.2s;
}

.footer-social:hover {
  background-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.05);
}

/* Реальные иконки (PNG) — в стиле trust-logos-row: приглушённые, в цветах сайта, один размер */
.footer-social--img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  opacity: 0.75;
  transition: opacity 0.3s ease, filter 0.3s ease, background 0.3s ease, box-shadow 0.25s ease;
}

.footer-social--img:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.footer-social--img img {
  height: 28px;
  width: auto;
  max-width: 28px;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.footer-social--img:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ========== 7. Legal ========== */
.footer-legal {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 12px;
  opacity: 0.6;
  text-align: center;
  color: #64748b;
}

.footer-legal p {
  margin: 0;
}

/* ========== Адаптив ========== */
@media (max-width: 900px) {
  .pre-footer {
    margin-left: 20px;
    margin-right: 20px;
    padding: 40px 24px;
    margin-bottom: 56px;
  }

  .pre-footer-title {
    font-size: 26px;
  }

  .pre-footer-lead {
    font-size: 16px;
  }

  .pre-footer-stats {
    flex-direction: column;
    gap: 8px;
  }

  .footer {
    padding: 56px 20px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    max-width: none;
    grid-column: 1 / -1;
  }

  .footer-contacts {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .pre-footer {
    margin-left: 16px;
    margin-right: 16px;
    padding: 32px 20px;
    border-radius: 16px;
  }

  .pre-footer-title {
    font-size: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-legal {
    margin-top: 32px;
    padding-top: 12px;
    font-size: 11px;
  }
}
