/* ============================================================
   MASTERPLAST — Footer (мягкий стиль)
   Background: #3c4249
   ============================================================ */

.site-footer {
  background-color: #3c4249;
  font-family: var(--font-sf-pro-text, 'SF Pro Text', system-ui, sans-serif);
}

/* ── Inner grid ── */
.footer__inner {
  max-width: var(--page-max-width, 1200px);
  margin: 0 auto;
  padding: 52px 32px 40px;

  display: grid;
  grid-template-columns: 210px 1px 1fr 1px 230px;
  gap: 0 40px;
  align-items: start;
}

/* ── Vertical dividers ── */
.footer__divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 20%,
    rgba(255, 255, 255, 0.12) 80%,
    transparent 100%
  );
}

/* ── Shared column styles ── */
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── Col 1: Brand ── */
.footer__logo-link {
  display: inline-block;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.footer__logo-link:hover {
  opacity: 1;
}

.footer__logo {
  display: block;
  height: 52px;
  width: auto;
  object-fit: contain;
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__legal-link {
  font-size: 12px;
  line-height: 1.5;
  color: rgb(210, 210, 215);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__legal-link:hover {
  color: rgb(236, 236, 241);
}

/* ── Col 2: Info ── */
.footer__address {
  font-size: 14px;
  line-height: 1.65;
  color: #c8c8cd;
  margin: 0;
  font-weight: 400;
}

.footer__requisites {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer__req-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(200, 200, 205);
  margin: 0 0 6px;
}

.footer__req-line {
  font-size: 12px;
  line-height: 1.6;
  color: rgb(225, 225, 228);
  margin: 0;
}

/* ── Col 3: Contacts ── */
.footer__phones {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer__phone {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: #dcdce0;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.footer__phone:hover {
  color: #ffffff;
}

.footer__email {
  font-size: 13px;
  color: rgb(200, 200, 205);
  text-decoration: none;
  margin-top: 6px;
  transition: color 0.2s ease;
}

.footer__email:hover {
  color: #c8c8cd;
}

/* ── Social icons ── */
.footer__social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.footer__social-link {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.08);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.footer__social-link:hover {
  background-color: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
  transform: scale(1.08);
}

/* ── Bottom bar ── */
.footer__bottom {
  max-width: var(--page-max-width, 1200px);
  margin: 0 auto;
  padding: 18px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.footer__copy {
  font-size: 12px;
  color: rgba(200, 200, 205, 0.7);
}

.footer__dev {
  font-size: 12px;
  color: rgb(200, 200, 205);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__dev:hover {
  color: rgb(217, 216, 216);
}

/* ── Responsive: tablet ── */
@media (max-width: 900px) {
  .footer__inner {
    grid-template-columns: 1fr 1px 1fr;
    grid-template-rows: auto auto;
    gap: 0 32px;
  }

  .footer__col--brand    { grid-column: 1; grid-row: 1; }
  .footer__divider:first-of-type { grid-column: 2; grid-row: 1 / 3; }
  .footer__col--contacts { grid-column: 3; grid-row: 1; }
  .footer__divider:last-of-type  { display: none; }
  .footer__col--info {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: 28px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .footer__bottom {
    padding: 18px 24px;
  }
}

/* ── Responsive: mobile ── */
@media (max-width: 600px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 36px 20px 28px;
  }

  .footer__divider { display: none !important; }

  .footer__col {
    padding-bottom: 28px;
  }

  .footer__col--brand,
  .footer__col--info {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 28px;
  }

  .footer__col--brand,
  .footer__col--info,
  .footer__col--contacts {
    grid-column: 1;
    grid-row: unset;
    padding-top: 0;
    border-top: none;
    margin-top: 0;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 20px;
  }
}