/* source-md5: f35a26621b6767bc7da1e24fefde7d16 | 7362: отражённая копия footer-responsive.css для dir="rtl", собрана local/scripts/rtl-css/build.js — не править вручную */
/**
 * Footer: tablet band (481px–992px) — единая вёрстка для mobile/desktop разметки.
 */

@media screen and (min-width: 481px) and (max-width: 992px) {
  section.footer .content,
  section.footer-bottom-menu .content {
    width: calc(100% - 32px);
    max-width: 100%;
    box-sizing: border-box;
  }

  section.footer {
    padding-top: 32px;
    padding-bottom: 24px;
  }

  section.footer .footer-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "logo contacts"
      "jobs jobs"
      "infolinks infolinks"
      "nav nav";
    column-gap: 24px;
    row-gap: 16px;
    align-items: start;
  }

  section.footer .footer-left {
    display: contents;
  }

  section.footer .footer-left__info {
    grid-area: logo;
    margin: 0;
    height: auto;
    align-items: flex-start;
    justify-content: flex-start;
  }

  section.footer .footer-left__info .logo,
  section.footer .footer-left__info > a.logo {
    max-width: 100px;
  }

  section.footer .footer-left__info .footer-how-find,
  section.footer .footer-left__info > span {
    display: none;
  }

  section.footer .footer-left__info .group {
    display: none;
  }

  section.footer .footer-right.footer-right__info {
    display: contents;
  }

  section.footer .footer-right.footer-right__info > .group:first-child {
    grid-area: contacts;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    text-align: left;
    margin: 0;
    padding: 0;
  }

  section.footer .footer-right.footer-right__info > .group:first-child a,
  section.footer .footer-right.footer-right__info > .group:first-child #footer-phone {
    font-size: 14px;
    line-height: 14px;
  }

  section.footer .footer-right.footer-right__info > .group:last-child {
    grid-area: infolinks;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    align-items: stretch;
    margin: 0;
    padding: 0;
  }

  section.footer .footer-right.footer-right__info > .group:last-child a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background-color: #f7f7f7;
    color: #5c5c5c;
    font-family: "Helvetica Neue", "HelveticaNeueCyr-Roman", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
    text-decoration: none;
    box-sizing: border-box;
  }

  section.footer .footer-right.footer-right__info > .group:last-child a::after {
    display: none;
  }

  section.footer .footer-right.footer-right__info > .group:last-child a::before {
    content: "";
    flex-shrink: 0;
    margin-right: auto;
    width: 6.67px;
    height: 11.66px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7.99957 13.9875'%3E%3Cpath fill-rule='evenodd' fill='%23BEBEBE' d='M0.29279 13.69471c0.18753 0.18747 0.44184 0.29279 0.707 0.29279 0.26516 0 0.51947-0.10532 0.707-0.29279l6-6c0.18747-0.18753 0.29279-0.44184 0.29278-0.707 0-0.26516-0.10532-0.51947-0.29278-0.707l-6-6c-0.1886-0.18216-0.4412-0.28295-0.7034-0.28067-0.2622 0.00228-0.51301 0.10745-0.69842 0.29285-0.18541 0.18541-0.29058 0.43622-0.29286 0.69842-0.00228 0.2622 0.09852 0.5148 0.28068 0.7034l5.293 5.293-5.293 5.293c-0.18747 0.18753-0.29279 0.44184-0.29279 0.707 0 0.26516 0.10532 0.51947 0.29279 0.707z'/%3E%3C/svg%3E")
      no-repeat center / contain;
  }

  section.footer .footer-mobile-menu {
    grid-area: infolinks;
    order: unset;
    flex: unset;
    width: 100%;
  }

  section.footer .footer-jobs {
    grid-area: jobs;
    order: unset;
    margin: 0;
    padding: 12px;
    border-radius: 8px;
    background: #f7f7f7;
    box-sizing: border-box;
  }

  section.footer .footer-left .footer-menu {
    grid-area: nav;
    display: flex !important;
    order: unset;
    width: 100%;
    margin: 0;
    flex: unset;
  }

  section.footer .footer-menu nav.menu ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-template-rows: unset;
    gap: 8px 24px;
    width: 100%;
  }

  section.footer .footer-menu nav.menu ul a {
    font-size: 13px;
    line-height: 16px;
    padding: 6px 0;
  }

  /* Mobile-разметка: контакты в шапке футера */
  section.footer .footer-left__info:has(.group) .group {
    display: flex;
    grid-area: unset;
  }

  section.footer .footer-left__info:has(.group) {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  section.footer .footer-left__info:has(.group) .group {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }
}

@media screen and (min-width: 481px) and (max-width: 767px) {
  section.footer .footer-menu nav.menu ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
  }
}

@media screen and (min-width: 481px) and (max-width: 992px) {
  section.footer-bottom-menu {
    padding: 12px 0 16px;
  }

  section.footer-bottom-menu .content {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  section.footer-bottom-menu__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
    width: 100%;
    padding: 12px 16px 14px;
    border-bottom: 1px solid #efefef;
    background: #f7f7f7;
    border-radius: 8px 8px 0 0;
    box-sizing: border-box;
  }

  section.footer-bottom-menu__list li a {
    font-size: 12px;
    line-height: 15px;
    white-space: normal;
    text-decoration: none;
  }

  section.footer-bottom-menu__list li a:hover {
    color: #689ae3;
  }

  section.footer-bottom-menu__credits {
    width: 100%;
    justify-content: space-between;
    align-items: flex-end;
    padding: 12px 16px 14px;
    background: #f7f7f7;
    border-radius: 0 0 8px 8px;
    box-sizing: border-box;
  }

  section.footer-bottom-menu__credits-left {
    display: none;
  }

  section.footer-bottom-menu__credits-right {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 12px;
    width: 100%;
  }

  section.footer-bottom-menu__studio-text {
    white-space: normal;
    text-align: left;
    font-size: 11px;
    line-height: 14px;
  }
}

@media screen and (min-width: 768px) and (max-width: 992px) {
  section.footer-bottom-menu__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 24px;
  }
}
