/* ═══════════════════════════════════════════════════════════
    FOOTER
════════════════════════════════════════════════════════════ */

.site-footer {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
}

/* ── Left: document list ──────────────────────────────── */
.footer-docs {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: var(--section-padding) var(--section-padding) var(--section-padding) var(--site-h-padding);
  background-color: var(--color-mid-gray);
}

/* ── Right: contacts + map ────────────────────────────── */
.footer-contacts {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: var(--section-padding) var(--site-h-padding) var(--section-padding) var(--section-padding);
  background-color: var(--color-dark);
}

.doc-row {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: flex-start;
}

.doc-row--center {
  align-items: center;
}

.doc-row__text {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.21;
  flex: 1 1 0;
  color: var(--color-dark);
}

.doc-row__title {
  text-decoration: none;
}

.footer-docs .doc-row .doc-row__text a,
.footer-docs .doc-row .doc-row__text a:link,
.footer-docs .doc-row .doc-row__text a:visited,
.footer-docs .doc-row .doc-row__text a:active {
  color: #2b2b2b !important;
  text-decoration: underline !important;
}

.footer-docs .doc-row .doc-row__text a:hover {
  color: #6d6d6d !important;
  text-decoration: underline !important;
}

.doc-row__note {
  font-weight: 400;
}

.doc-row__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-row__icon img {
  max-width: 22px;
  max-height: 22px;
}

.footer-contact-info {
  font-size: 14px;
  line-height: 1.21;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-contact-info__org {
  font-weight: 700;
  text-transform: uppercase;
}

.footer-map {
  width: 100%;
  flex: 1 1 auto;
  min-height: 200px;
  border-radius: 4px;
  overflow: hidden;
}

.footer-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Divider between docs and SZI links ────────────────── */
.footer-docs .hr-style {
  border: none;
  border-top: 2px solid rgba(0, 0, 0, 0.2);
  margin: 8px 0;
  width: 100%;
}

.footer__title {
  font-weight: 700;
  font-size: 16px;
  color: var(--color-dark);
  margin-bottom: 0;
}

/* ── Text container for SZI links ───────────────────── */
.text-container {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.text-container a {
  color: var(--color-dark);
  text-decoration: none;
}

.text-container a:hover {
  text-decoration: underline;
}

/* ── Icon container for SZI links ──────────────────── */
.icon-container {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  border-radius: 8px;
  padding: 4px;
}

.icon-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── Footer SZI "Смотрите также" section ──────────────── */
.footer__szi {
  width: 100%;
  background: #000;
  padding: 8px var(--site-h-padding);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__szi .footer__title {
  color: var(--color-white);
  margin-bottom: 12px;
}

.footer__szi .hr-style {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 12px 0;
  width: 100%;
}

.footer__szi > div {
  width: 100%;
}

.footer__szi > div > a {
  display: inline-block;
  text-decoration: none;
}

/* Logos grid */
.logos {
  display: grid;
  gap: 16px;
}

/* Individual logo + text row */
.footer__szi .logos-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.footer__szi > div > a:first-child .logos-container img {
  width: 34px;
  height: 17.5px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer__szi .logos-container img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  flex-shrink: 0;
}

.logos-container p {
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  color: #fff;
  margin-bottom: 0;
}

.footer__szi a {
  color: #fff;
  text-decoration: none;
}

.footer__szi a:hover .logos-container p {
  text-decoration: underline;
}

.footer__mobile-logo {
  display: none;
}
