/* Figma 5369:6169. Keep the original footer styles available for footer-original.php. */
/* Prevent the inline image baseline from exposing a light gap above the footer. */
main > .per:last-child > img { display: block; }
.site-footer {
    --footer-background: #212121;
    --footer-accent: #f93b1d;
    --footer-muted: #ffffff80;
    margin: -1px 0 0;
    padding: 0 30px 60px;
    background: var(--footer-background);
    color: #fff;
    font: 400 16px/1 var(--font-family);
}
.site-footer__inner { width: 100%; max-width: 1500px; margin: 0 auto; }
.site-footer a { color: inherit; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--footer-accent); }
.site-footer a:focus-visible,
.site-footer button:focus-visible { outline: 2px solid var(--footer-accent); outline-offset: 5px; }
.site-footer__brand,
.site-footer__grid,
.site-footer__legal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 40px; }
.site-footer__logo { display: block; width: fit-content; }
.site-footer__logo img { display: block; }
.site-footer__copyright { margin-top: 32px; color: #ffffff4d; font-size: 12px; line-height: 12px; }
.site-footer__description { grid-column: span 2; margin-top: 48px; }
.site-footer__grid { margin-top: 60px; }
.site-footer__grid > * { min-width: 0; }
.site-footer__nav { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.site-footer__menu { margin: 0; padding: 0; list-style: none; }
.site-footer__menu > li + li { margin-top: 20px; }
.site-footer__menu .sub-menu { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; list-style: none; color: var(--footer-muted); font-size: 14px; line-height: 14px; }
.site-footer__addresses { display: flex; flex-direction: column; gap: 16px; margin-top: 40px; color: var(--footer-muted); font-style: normal; line-height: 1.2; }
.site-footer__addresses p:first-child { max-width: 256px; }
.site-footer__addresses p + p { max-width: 311px; }
.site-footer__contacts .button { padding: 13px 23px; font-size: 16px; font-weight: 400; line-height: 16px; white-space: nowrap; }
.site-footer__phone { display: block; width: fit-content; margin-top: 30px; font-size: 20px; line-height: 20px; }
.site-footer__phone-note { margin-top: 6px; color: var(--footer-accent); font-size: 14px; line-height: 14px; }
.site-footer__email { display: inline-block; margin-top: 30px; overflow-wrap: anywhere; }
.site-footer__hours { margin-top: 20px; font-size: 14px; line-height: 14px; }
.site-footer__hours dt { margin-bottom: 10px; color: var(--footer-muted); font-size: 12px; line-height: 12px; }
.site-footer__channel { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 133px; padding: 20px; overflow: hidden; border-radius: 12px; background: #353535; }
.site-footer__channel strong { position: relative; z-index: 1; font: 500 20px/24px var(--second-family); }
.site-footer__channel span { position: relative; z-index: 1; }
.site-footer__plane { position: absolute; left: 187px; top: 46px; mask: url('../images/footer/telegram-mask.svg') -187px -46px / 345px 133px no-repeat; }
.site-footer__socials { display: flex; align-items: center; gap: 4px; margin-top: 30px; }
.site-footer__socials img { display: block; flex: none; }
.site-footer__socials .site-footer__badge { display: inline-flex; flex: none; align-items: center; justify-content: center; height: 40px; padding: 9px 11px 9px 9px; border: 0; border-radius: 20px; background: #fff; transition: background-color .2s ease; }
.site-footer__badge--maps { gap: 8.17px; padding-right: 13px; }
.site-footer__socials .site-footer__telegram { display: inline-flex; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; transition: background-color .2s ease; }
.site-footer__socials .site-footer__badge:hover,
.site-footer__socials .site-footer__telegram:hover { background-color: #f93b1d; }
.site-footer__legal { margin-top: 60px; padding-top: 50px; background: url('../images/footer/divider.svg') center top / 100% 1px no-repeat; }
.site-footer__legal h2 { font: inherit; }
.site-footer__legal > div { display: flex; flex-direction: column; gap: 20px; color: var(--footer-muted); font-size: 14px; line-height: 14px; }
.site-footer__legal > div:nth-child(2) p:first-child { max-width: 290px; }
.site-footer__inactive { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; }
.site-footer button:disabled { opacity: 1; cursor: default; }
/* Figma keeps the artwork at 1920 × 120 and crops it at each viewport.
   X offsets at 1920 / 992 / 768 / 576 / 375 px: 0 / -508 / -785 / -788 / -1008.
   Interpolate between those frames without stretching the notches. */
.site-footer-transition {
    --footer-transition-x: clamp(-508px, calc((100vw - 1920px) * .5474137931), 0px);
    height: 120px;
    background: #ebebeb url('../images/footer/transition.svg') var(--footer-transition-x) bottom / 1920px 120px no-repeat;
}
@media (max-width: 992px) {
    .site-footer-transition { --footer-transition-x: clamp(-785px, calc(-508px + (100vw - 992px) * 1.2366071429), -508px); }
}
@media (max-width: 768px) {
    .site-footer-transition { --footer-transition-x: clamp(-788px, calc(-785px + (100vw - 768px) * .015625), -785px); }
}
@media (max-width: 576px) {
    .site-footer-transition { --footer-transition-x: clamp(-1008px, calc(-788px + (100vw - 576px) * 1.0945273632), -788px); }
}

@media (max-width: 1200px) {
    .site-footer__brand,
    .site-footer__grid,
    .site-footer__legal { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
    .site-footer__description { grid-column: auto; }
    .site-footer__channel { max-width: 345px; }
    .site-footer__legal { line-height: 1.35; }
    .site-footer__legal > div { line-height: 1.35; }
}
@media (max-width: 600px) {
    .site-footer { padding: 24px 20px 40px; }
    .site-footer__brand,
    .site-footer__grid,
    .site-footer__legal { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .site-footer__description { margin-top: 0; max-width: 423px; line-height: 1.35; }
    .site-footer__description br { display: none; }
    .site-footer__grid { margin-top: 40px; }
    .site-footer__addresses { margin-top: 30px; }
    .site-footer__menu .sub-menu { line-height: 1.35; }
    .site-footer__channel { width: 100%; }
    .site-footer__plane { left: auto; right: 22px; }
    .site-footer__socials { flex-wrap: wrap; margin-top: 24px; }
    .site-footer__legal { margin-top: 40px; padding-top: 32px; gap: 24px; }
}
