/* РИФЕЙ — Footer 2026. Полная замена прежнего footer-2026.css.
   Все правила ограничены .sitefooter2026 и не затрагивают формы и Bitrix24. */
.sitefooter2026,
.sitefooter2026 *,
.sitefooter2026 *::before,
.sitefooter2026 *::after { box-sizing: border-box; }

.sitefooter2026 {
  width: 100%;
  min-width: 0;
  font-family: Montserrat, Arial, sans-serif;
  color: #171d24;
  background: #f9f9f9;
}

.sitefooter2026__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1500px;
  margin-inline: auto;
  padding-inline: 15px;
}

/* Фоновый знак РИФЕЙ: оригинальный размер Figma 1041 × 1203, X -316. */
.sitefooter2026__main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #f9f9f9;
}
.sitefooter2026__main::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 0;
  left: -316px;
  width: 1041px;
  height: 1203px;
  background: url('../img/footer-left-logo.png') left top / 100% 100% no-repeat;
  opacity: 1;
  pointer-events: none;
}

.sitefooter2026__layout {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  column-gap: clamp(24px, 3vw, 52px);
  align-items: start;
  padding-block: 60px;
}
.sitefooter2026__layout > *,
.sitefooter2026__nav,
.sitefooter2026__links { min-width: 0; }

/* Логотип, телефон, почта, мессенджеры, реквизиты — сверху вниз. */
.sitefooter2026__company {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  text-align: left;
}
.sitefooter2026__brand {
  display: block;
  width: 242px;
  max-width: 100%;
  text-decoration: none;
}
.sitefooter2026__brand img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
}
.sitefooter2026__phone {
  display: block;
  max-width: 100%;
  margin-top: 18px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: #171d24;
  text-decoration: none;
}
/* В footer-2026.php используется именно __mail, не __email. */
.sitefooter2026__mail {
  display: block;
  max-width: 100%;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: #171d24;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.sitefooter2026__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 17px 0 18px;
}
.sitefooter2026__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease;
}
.sitefooter2026__socials img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}
/* В известном PHP WhatsApp и Telegram имеют встроенные белые SVG. */
.sitefooter2026__socials .sitefooter2026__social--whatsapp { background: #25d366; }
.sitefooter2026__socials .sitefooter2026__social--telegram { background: #168bd2; }
.sitefooter2026__socials svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.sitefooter2026__socials a:hover { opacity: .82; transform: translateY(-2px); }

.sitefooter2026__requisites {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  min-width: 0;
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: #59616b;
}
.sitefooter2026__requisites > div { max-width: 100%; overflow-wrap: anywhere; }

/* Три колонки навигации. */
.sitefooter2026__nav {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(15px, 2vw, 32px);
  align-items: start;
  padding-top: 16px;
}
.sitefooter2026__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sitefooter2026__links li { margin: 0; padding: 0; list-style: none; }
.sitefooter2026__links a {
  display: inline-block;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #28303a;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .2s ease;
}
.sitefooter2026__phone:hover,
.sitefooter2026__mail:hover,
.sitefooter2026__links a:hover,
.sitefooter2026__legal-inner a:hover { color: #1154a3; }

.sitefooter2026__legal { background: #e9e9e9; }
.sitefooter2026__legal-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  align-items: center;
  padding-block: 15px;
}
.sitefooter2026__legal-inner a {
  font-size: 12px;
  line-height: 1.4;
  color: #59616b;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sitefooter2026__legal-inner a:first-child { text-align: left; }
.sitefooter2026__legal-inner a:last-child { text-align: right; }

@media (max-width: 1279px) {
  .sitefooter2026__layout { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); column-gap: 24px; }
  .sitefooter2026__nav { gap: 15px; }
  .sitefooter2026__links { gap: 18px; }
  .sitefooter2026__links a { font-size: 14px; }
}

@media (max-width: 1199px) {
  .sitefooter2026__main::before { width: 780px; height: 901px; left: -260px; top: 0; }
}

@media (max-width: 991px) {
  .sitefooter2026__layout { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 42px; }
  .sitefooter2026__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 0; gap: 24px; }
  .sitefooter2026__links a { font-size: 16px; }
}

/* Mobile-only components hidden on desktop/tablet. */
.sitefooter2026__mobile-nav,
.sitefooter2026__mobile-requisites { display: none; }

/* ============================================================
   MOBILE <= 767px: centered footer with accessible accordions.
   Desktop rules and Figma decorative mark remain unchanged.
   ============================================================ */
@media (max-width: 767px) {
  .sitefooter2026__main::before {
    width: 460px;
    height: 532px;
    top: 0;
    left: -190px;
    opacity: .38;
  }
  .sitefooter2026__container { padding-inline: 18px; }
  .sitefooter2026__layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-block: 34px 38px;
  }
  .sitefooter2026__company {
    width: 100%;
    align-items: center;
    text-align: center;
  }
  .sitefooter2026__brand { width: min(242px, 75vw); }
  .sitefooter2026__brand img { object-position: center; }
  .sitefooter2026__phone {
    margin-top: 13px;
    font-size: clamp(24px, 6vw, 30px);
    text-align: center;
    white-space: normal;
  }
  .sitefooter2026__mail { font-size: 15px; text-align: center; }
  .sitefooter2026__socials {
    justify-content: center;
    margin: 17px 0 0;
    gap: 14px;
  }
  .sitefooter2026__requisites,
  .sitefooter2026__nav { display: none; }
  .sitefooter2026__mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 470px;
    margin: 29px auto 0;
  }
  .sitefooter2026__accordion {
    width: 100%;
    margin: 0;
    border: 1px solid #e7edf5;
    border-radius: 12px;
    background: #f3f6fa;
    overflow: hidden;
  }
  .sitefooter2026__accordion > summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 16px 48px;
    color: #152c48;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    cursor: pointer;
    list-style: none;
  }
  .sitefooter2026__accordion > summary::-webkit-details-marker { display: none; }
  .sitefooter2026__accordion > summary::after {
    content: '';
    position: absolute;
    right: 19px;
    top: calc(50% - 5px);
    width: 9px;
    height: 9px;
    border-right: 2px solid #1154a3;
    border-bottom: 2px solid #1154a3;
    transform: rotate(45deg);
    transition: transform .2s ease;
  }
  .sitefooter2026__accordion[open] > summary {
    background: #e4eefb;
  }
  .sitefooter2026__accordion[open] > summary::after { transform: rotate(225deg); top: calc(50% - 1px); }
  .sitefooter2026__accordion > summary:focus-visible {
    outline: 2px solid #1154a3;
    outline-offset: -3px;
  }
  .sitefooter2026__accordion ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 12px 14px;
    list-style: none;
    background: rgba(255,255,255,.85);
  }
  .sitefooter2026__accordion li { margin: 0; padding: 0; list-style: none; }
  .sitefooter2026__accordion li a {
    display: block;
    width: 100%;
    padding: 9px 10px;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 400;
    color: #28303a;
    text-decoration: none;
    text-align: center;
    overflow-wrap: anywhere;
  }
  .sitefooter2026__accordion li a:hover,
  .sitefooter2026__accordion li a:focus-visible { color: #1154a3; text-decoration: underline; }
  .sitefooter2026__mobile-requisites {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    max-width: 470px;
    margin: 27px auto 0;
    color: #59616b;
    font-size: 11px;
    line-height: 1.55;
    text-align: center;
    overflow-wrap: anywhere;
  }
  .sitefooter2026__legal-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-block: 18px;
    align-items: center;
  }
  .sitefooter2026__legal-inner a,
  .sitefooter2026__legal-inner a:first-child,
  .sitefooter2026__legal-inner a:last-child { text-align: center; }
}

@media (max-width: 360px) {
  .sitefooter2026__accordion > summary { padding-inline: 40px; font-size: 15px; }
  .sitefooter2026__accordion > summary::after { right: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .sitefooter2026__socials a,
  .sitefooter2026__links a,
  .sitefooter2026__accordion > summary::after { transition: none; }
}
