/* ============================================
   ГРАНДШИНА — Footer
   Dark footer with 4 columns
   ============================================ */

/* ============================================
   Footer Container
   ============================================ */

.site-footer {
  --footer-bg: #1a1a1f;
  --footer-text: #cccccc;
  --footer-text-hover: #ffffff;
  --footer-title-color: #ffffff;
  --footer-link-color: #cccccc;
  --footer-link-hover: #e94560;
  --footer-border-color: rgba(255, 255, 255, 0.1);
  --footer-padding-y: 35px;
  --footer-padding-x: 30px;
  --footer-max-width: 1200px;
  --footer-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --footer-btn-bg: #007bff;
  --footer-btn-hover: #0056b3;
  --footer-btn-text: #ffffff;
  --footer-social-color: #cccccc;
  --footer-social-hover: #e94560;
  --footer-transition: 0.3s ease;

  background-color: var(--footer-bg);
  box-shadow: var(--footer-shadow);
  padding: var(--footer-padding-y) 0;
  margin: 0;
  width: 100%;
}

.footer-container {
  max-width: var(--footer-max-width);
  margin: 0 auto;
  padding: 0 var(--footer-padding-x);
}

/* ============================================
   Footer Grid
   ============================================ */

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.2fr;
  gap: 25px;
  margin-bottom: 25px;
}

/* ============================================
   Footer Column
   ============================================ */

.footer-column h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--footer-title-color);
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-column p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--footer-text);
  margin: 0;
}

/* Footer Links List */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links li:last-child {
  margin-bottom: 0;
}

.footer-links a {
  font-size: 14px;
  color: var(--footer-link-color);
  text-decoration: none;
  transition: color var(--footer-transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--footer-link-hover);
}

/* ============================================
   Contacts Column
   ============================================ */

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Compact contact rows */
.footer-contact-item {
  padding: 6px 0;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact-item__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--footer-link-hover);
}

.footer-contact-item__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-contact-item__content {
  flex: 1;
  min-width: 0;
}

.footer-contact-item__label {
  font-size: 11px;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 2px 0;
}

.footer-contact-item__value {
  font-size: 13px;
  color: var(--footer-text);
  margin: 0;
}

.footer-contact-item__value a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color var(--footer-transition);
}

.footer-contact-item__value a:hover {
  color: var(--footer-link-hover);
}

/* ============================================
   Social Icons
   ============================================ */

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.footer-social__link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: var(--footer-social-color);
  text-decoration: none;
  transition: all var(--footer-transition);
}

.footer-social__link:hover {
  background-color: var(--footer-link-hover);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-social__link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ============================================
   Callback Button
   ============================================ */

.footer-callback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  color: var(--footer-btn-text);
  background-color: var(--footer-btn-bg);
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--footer-transition);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  margin-top: 12px;
}

.footer-callback-btn:hover {
  background-color: var(--footer-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 123, 255, 0.4);
}

.footer-callback-btn:active {
  transform: translateY(0);
}

.footer-callback-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================
   Footer Bottom
   ============================================ */

.footer-bottom {
  border-top: 1px solid var(--footer-border-color);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #888888;
  margin: 0;
}

.footer-bottom a {
  color: var(--footer-link-hover);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ============================================
   Tablet Styles (768px – 1024px)
   ============================================ */

@media (max-width: 1024px) {
  :root {
    --footer-padding-x: 20px;
    --footer-padding-y: 30px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* ============================================
   Mobile Styles (<768px)
   ============================================ */

@media (max-width: 768px) {
  :root {
    --footer-padding-y: 25px;
    --footer-padding-x: 15px;
  }

  .site-footer {
    margin: 0;
  }

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

  .footer-column h3 {
    font-size: 16px;
  }

  .footer-callback-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   Accessibility
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .footer-social__link,
  .footer-callback-btn,
  .footer-links a {
    transition: none;
  }

  .footer-social__link:hover {
    transform: none;
  }
}

/* ============================================
   Social Images
   ============================================ */

.footer-social__image {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
  transition: opacity var(--footer-transition);
}

.footer-social__link:hover .footer-social__image {
  opacity: 0.8;
}
