@font-face {
  font-family: "Nadezhdik Footer";
  src: url("/fonts/impact.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Одна композиция для всех страниц, с координатами исходного подвала.
   На узких экранах макет масштабируется вместе с изображениями и текстом. */
.site-footer {
  --footer-top: #ff532c;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0091cf;
  color: #e1e1c2;
  font-family: "Nadezhdik Footer", Impact, sans-serif;
  font-weight: 400;
  line-height: 1;
}

.site-footer--english { --footer-top: #20234e; }

.site-footer__canvas {
  position: relative;
  width: 1200px;
  height: 940px;
  margin-inline: auto;
}

.site-footer__canvas > * {
  position: absolute;
  box-sizing: border-box;
  margin: 0;
}

/* Маска сохраняет исходный скос и хвост, позволяя менять только цвет. */
.site-footer__backdrop {
  z-index: 0;
  top: -348px;
  left: 0;
  width: 1200px;
  height: 940.47px;
  background: var(--footer-top);
  mask: url("/tilda/img/tild3766-3932-4034-a539-356230623537__rectangle_17.svg") 0 0 / 100% 100% no-repeat;
}

.site-footer__fill {
  z-index: 1;
  top: -785px;
  left: -1032px;
  width: 2896px;
  height: 1286px;
  background: var(--footer-top);
  transform: rotate(171deg);
}

.site-footer__wordmark {
  z-index: 2;
  top: 68px;
  left: 20px;
  width: 1158px;
  max-width: none;
  height: auto;
  display: block;
}

.site-footer__credit {
  z-index: 2;
  top: 413px;
  left: 776px;
  width: 405px;
  display: block;
}

.site-footer__credit img { display: block; width: 100%; height: auto; }
.site-footer__mascot {
  z-index: 2;
  top: 613px;
  left: 556px;
  width: 240px;
  height: auto;
  display: block;
}

.site-footer__legal {
  z-index: 2;
  top: 819px;
  left: 20px;
  width: 457px;
  font: inherit;
  font-size: 22px;
}

.site-footer__phone {
  z-index: 2;
  top: 798px;
  left: 896px;
  width: 284px;
  color: inherit;
  text-align: right;
  text-decoration: none;
  white-space: nowrap;
  font-size: 43px;
}

.site-footer a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .site-footer__credit img { transition: transform .2s ease-in-out; }
  .site-footer__credit:hover img { transform: scale(1.06); }
}

@media (max-width: 1199px) {
  .site-footer__canvas { width: 960px; height: 760px; }
  .site-footer__backdrop { top: -409px; left: -83px; width: 1127px; height: 883.27px; }
  .site-footer__fill { top: -590px; left: -2072px; width: 838px; height: 196px; }
  .site-footer__wordmark { top: 22px; left: 10px; width: 941px; }
  .site-footer__credit { top: 296px; left: 550px; }
  .site-footer__mascot { top: 453px; left: 470px; width: 200px; }
  .site-footer__legal { top: 629px; left: 10px; width: 447px; }
  .site-footer__phone { top: 608px; left: 654px; width: 296px; }
}

@media (max-width: 959px) {
  .site-footer__canvas { width: 640px; height: 690px; zoom: calc(100vw / 640px); }
  .site-footer__backdrop { top: -234px; left: -35px; width: 703px; height: 550.96px; }
  .site-footer__wordmark { width: 620px; }
  .site-footer__credit { top: 209px; left: 310px; width: 318px; }
  .site-footer__mascot { top: 299px; left: 220px; }
  .site-footer__legal { top: 599px; left: 10px; width: 619px; text-align: center; }
  .site-footer__phone { top: 530px; left: 172px; }
}

@media (max-width: 639px) {
  .site-footer__canvas { width: 480px; height: 580px; zoom: calc(100vw / 480px); }
  .site-footer__backdrop { top: -197px; left: -57px; width: 574px; height: 449.89px; }
  .site-footer__wordmark { width: 462px; }
  .site-footer__credit { top: 174px; left: 230px; width: 240px; }
  .site-footer__mascot { top: 246px; left: 180px; width: 120px; }
  .site-footer__legal { top: 463px; left: 10px; width: 460px; }
  .site-footer__phone { top: 394px; left: 92px; }
}

@media (max-width: 479px) {
  .site-footer__canvas { width: 320px; height: 480px; zoom: calc(100vw / 320px); }
  .site-footer__backdrop { top: -112px; left: -29px; width: 378px; height: 296.25px; }
  .site-footer__fill { top: -2106px; left: -1837px; width: 1148px; height: 1287px; }
  .site-footer__wordmark { top: 25px; width: 302px; }
  .site-footer__credit { top: 135px; left: 135px; width: 177px; }
  .site-footer__mascot { top: 225px; left: 96px; }
  .site-footer__legal { top: 423px; left: 10px; width: 300px; font-size: 13px; }
  .site-footer__phone { top: 364px; left: 12px; font-size: 36px; text-align: center; }
}
