.site-footer {
  position: relative;
  z-index: 5;
  display: block;
  width: 100%;
  height: calc(444px * var(--browser-layout-scale, 1));
  min-height: calc(444px * var(--browser-layout-scale, 1));
  padding: 0;
  overflow: hidden;
  background: #010102;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  letter-spacing: 0;
}

.site-footer-scale {
  position: absolute;
  left: 50%;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 1920px;
  height: 444px;
  padding: 40px 60px;
  gap: 36px;
  background: #010102;
  transform: translateX(-50%) scale(var(--browser-layout-scale, 1));
  transform-origin: top center;
}

body > main:not(.figma-page) + .site-footer {
  margin-top: 0;
}

@media (min-width: 1600px) {
  body > .news-page {
    min-height: max(100vh, calc(1099px * var(--browser-layout-scale, 1)));
  }

  body > .news-page > .news-artboard {
    height: 1099px;
  }

  body > .about-page {
    min-height: max(100vh, calc(1150px * var(--browser-layout-scale, 1)));
  }

  body > .about-page > .about-artboard {
    height: 1150px;
  }

  body > .services-page {
    min-height: max(100vh, calc(1412px * var(--browser-layout-scale, 1)));
  }

  body > .services-page > .services-artboard {
    height: 1412px;
  }
}

.site-footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 1800px;
  min-height: 257px;
  gap: 149px;
}

.site-footer-left,
.site-footer-right {
  display: flex;
  flex: 1 1 0;
  justify-content: space-between;
  align-items: flex-start;
  min-width: 0;
  max-width: 610px;
  min-height: 257px;
}

.site-footer-left {
  gap: 83px;
}

.site-footer-right {
  gap: 168px;
}

.site-footer-brand-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 382px;
  gap: 12px;
}

.site-footer-brand {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 14px;
}

.site-footer-mini-logo {
  display: block;
  flex: none;
  width: 76px;
  height: 38px;
}

.site-footer-brand div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 2px;
}

.site-footer-brand strong,
.site-footer-brand span,
.site-footer-navigation h2,
.site-footer-navigation a,
.site-footer-contacts h2,
.site-footer-phone,
.site-footer-location,
.site-footer-author span,
.site-footer-bottom p,
.site-footer-legal-links button {
  margin: 0;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  letter-spacing: 0;
}

.site-footer-brand strong {
  font-size: 24px;
  line-height: 28px;
}

.site-footer-brand span {
  font-size: 16px;
  line-height: 19px;
}

.site-footer-socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 270px;
  gap: 18px;
}

.site-footer-socials a {
  display: block;
  flex: none;
  width: 54px;
  height: 54px;
  transition: transform 150ms ease, filter 150ms ease;
}

.site-footer-socials img,
.site-footer-author-socials img {
  display: block;
  width: 100%;
  height: 100%;
}

.site-footer-socials a:hover,
.site-footer-author-socials a:hover,
.site-footer-navigation a:hover,
.site-footer-phone:hover,
.site-footer-location:hover,
.site-footer-legal-links button:hover {
  filter: brightness(1.16);
}

.site-footer-socials a:active,
.site-footer-author-socials a:active {
  transform: scale(0.96);
}

.site-footer-navigation {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-start;
  width: 145px;
  gap: 8px;
}

.site-footer-navigation h2,
.site-footer-contacts h2 {
  font-size: 24px;
  line-height: 28px;
}

.site-footer-navigation ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.site-footer-navigation li,
.site-footer-legal-links {
  display: flex;
  align-items: center;
}

.site-footer-navigation li {
  gap: 8px;
}

.site-footer-navigation li::before,
.site-footer-author-roles i,
.site-footer-legal-links button + button::before {
  content: "";
  display: block;
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 100px;
  background: #787878;
}

.site-footer-navigation a {
  font-size: 20px;
  line-height: 23px;
  transition: filter 150ms ease, color 150ms ease;
}

.site-footer-logo {
  display: block;
  flex: none;
  width: 257px;
  height: 257px;
}

.site-footer-contacts {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-start;
  width: max-content;
  max-width: 190px;
  gap: 8px;
}

.site-footer-contact-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.site-footer-phone,
.site-footer-location {
  font-size: 16px;
  line-height: 19px;
  transition: filter 150ms ease, color 150ms ease;
}

.site-footer-location {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-footer-location img {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
}

.site-footer-location span {
  overflow-wrap: anywhere;
}

.site-footer-author {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  width: 243px;
  gap: 4px;
}

.site-footer-author-roles {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
}

.site-footer-author-roles span {
  font-size: 24px;
  line-height: 28px;
  white-space: nowrap;
}

.site-footer-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 30px;
}

.site-footer-author-row > span {
  font-size: 20px;
  line-height: 23px;
  white-space: nowrap;
}

.site-footer-author-socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.site-footer-author-socials a {
  display: block;
  flex: none;
  width: 36px;
  height: 36px;
  transition: transform 150ms ease, filter 150ms ease;
}

.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 1800px;
  min-height: 71px;
  padding: 26px 0;
  gap: 40px;
  border-top: 0.6px solid #787878;
}

.site-footer-bottom p {
  flex: none;
  font-size: 16px;
  line-height: 19px;
}

.site-footer-legal-links {
  justify-content: center;
  gap: 20px;
}

.site-footer-legal-links button {
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  line-height: 19px;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 150ms ease, color 150ms ease;
}

.site-footer-legal-links button + button {
  gap: 20px;
}

.site-footer a:focus-visible,
.site-footer button:focus-visible {
  outline: 3px solid #7ea4f5;
  outline-offset: 4px;
}

.footer-legal-source[hidden],
.footer-legal-modal-backdrop[hidden] {
  display: none;
}

.footer-legal-modal-backdrop {
  position: fixed;
  z-index: 10020;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: transparent;
}

.footer-legal-modal {
  box-sizing: border-box;
  position: relative;
  width: min(1136px, calc(100vw - 48px));
  height: min(598px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: #0c0c0c;
}

.footer-legal-modal-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  font: 300 34px/38px "Roboto", sans-serif;
  cursor: pointer;
  opacity: 0.72;
  transition: color 150ms ease, opacity 320ms ease, transform 240ms ease;
}

.footer-legal-modal-close:hover {
  color: #8dbbff;
  opacity: 1;
  transform: translateY(-2px) scale(1.08);
}

.footer-legal-modal-scroll {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 40px 70px 56px 40px;
  scrollbar-width: none;
}

.footer-legal-modal-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.footer-legal-modal-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 10px;
  margin-bottom: 26px;
}

.footer-legal-modal-header h2,
.footer-legal-modal-header p,
.footer-legal-modal-content,
.footer-legal-modal-content p {
  margin: 0;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  letter-spacing: 0;
}

.footer-legal-modal-header h2 {
  padding-right: 42px;
  font-size: 36px;
  font-weight: 700;
  line-height: 42px;
}

.footer-legal-modal-header p {
  font-size: 20px;
  font-weight: 300;
  line-height: 23px;
}

.footer-legal-modal-content {
  font-size: 16px;
  font-weight: 300;
  line-height: 22px;
  white-space: normal;
}

.footer-legal-modal-scrollbar {
  position: absolute;
  z-index: 3;
  top: 60px;
  right: 8px;
  bottom: 60px;
  width: 4px;
  overflow: hidden;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.footer-legal-modal-scrollbar span {
  position: absolute;
  inset: 0 auto auto 0;
  display: block;
  width: 4px;
  min-height: 44px;
  border-radius: 999px;
  background: #0051ff;
}

.footer-legal-modal-scrollbar.is-visible {
  opacity: 1;
}

.footer-legal-modal-scrollbar[hidden] {
  display: none;
}

@media (min-width: 1200px) {
  .footer-legal-modal-backdrop {
    padding: calc(24px * var(--browser-layout-scale, 1));
  }

  .footer-legal-modal {
    width: min(
      calc(1136px * var(--browser-layout-scale, 1)),
      calc(100vw - (48px * var(--browser-layout-scale, 1)))
    );
    height: min(
      calc(598px * var(--browser-layout-scale, 1)),
      calc(100vh - (48px * var(--browser-layout-scale, 1)))
    );
    border-radius: calc(24px * var(--browser-layout-scale, 1));
  }

  .footer-legal-modal-close {
    top: calc(10px * var(--browser-layout-scale, 1));
    right: calc(10px * var(--browser-layout-scale, 1));
    width: calc(42px * var(--browser-layout-scale, 1));
    height: calc(42px * var(--browser-layout-scale, 1));
    font-size: calc(34px * var(--browser-layout-scale, 1));
    line-height: calc(38px * var(--browser-layout-scale, 1));
  }

  .footer-legal-modal-scroll {
    padding:
      calc(40px * var(--browser-layout-scale, 1))
      calc(70px * var(--browser-layout-scale, 1))
      calc(56px * var(--browser-layout-scale, 1))
      calc(40px * var(--browser-layout-scale, 1));
  }

  .footer-legal-modal-scrollbar {
    top: calc(60px * var(--browser-layout-scale, 1));
    right: calc(8px * var(--browser-layout-scale, 1));
    bottom: calc(60px * var(--browser-layout-scale, 1));
    width: calc(4px * var(--browser-layout-scale, 1));
  }

  .footer-legal-modal-scrollbar span {
    width: calc(4px * var(--browser-layout-scale, 1));
    min-height: calc(44px * var(--browser-layout-scale, 1));
  }

  .footer-legal-modal-header {
    gap: calc(10px * var(--browser-layout-scale, 1));
    margin-bottom: calc(26px * var(--browser-layout-scale, 1));
  }

  .footer-legal-modal-header h2 {
    padding-right: calc(42px * var(--browser-layout-scale, 1));
    font-size: calc(36px * var(--browser-layout-scale, 1));
    line-height: calc(42px * var(--browser-layout-scale, 1));
  }

  .footer-legal-modal-header p {
    font-size: calc(20px * var(--browser-layout-scale, 1));
    line-height: calc(23px * var(--browser-layout-scale, 1));
  }

  .footer-legal-modal-content,
  .footer-legal-modal-content p {
    font-size: calc(16px * var(--browser-layout-scale, 1));
    line-height: calc(22px * var(--browser-layout-scale, 1));
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  body > main:not(.figma-page),
  body > main:not(.figma-page) > [class$="-artboard"] {
    min-height: 0 !important;
  }

  body > main:not(.figma-page) + .site-footer {
    margin-top: 0;
  }

  .site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 0;
    padding: 40px clamp(28px, 4vw, 48px) 34px;
    gap: 0;
    overflow: visible;
  }

  .site-footer-scale {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    height: auto;
    padding: 0;
    gap: 28px;
    background: transparent;
    transform: none;
  }

  .site-footer-main {
    display: grid;
    grid-template-columns:
      minmax(220px, 1fr)
      clamp(132px, 18vw, 180px)
      minmax(220px, 1fr);
    grid-template-areas:
      "brand logo contacts"
      "nav logo author";
    align-items: start;
    width: 100%;
    min-height: 0;
    gap: 28px clamp(24px, 4.2vw, 44px);
  }

  .site-footer-left,
  .site-footer-right {
    display: contents;
    min-height: 0;
  }

  .site-footer-brand-social {
    grid-area: brand;
    width: 100%;
    min-height: 0;
    gap: 14px;
  }

  .site-footer-navigation {
    grid-area: nav;
    width: 100%;
    gap: 10px;
  }

  .site-footer-contacts {
    grid-area: contacts;
    justify-self: start;
    width: 100%;
    max-width: 270px;
    margin: 0;
    gap: 10px;
  }

  .site-footer-contact-list {
    gap: 9px;
  }

  .site-footer-author {
    grid-area: author;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    max-width: 270px;
    min-height: 0;
    margin: 0;
    gap: 8px;
  }

  .site-footer-socials {
    justify-content: flex-start;
    width: auto;
    flex-wrap: wrap;
    gap: 10px;
  }

  .site-footer-socials a {
    width: 42px;
    height: 42px;
  }

  .site-footer-logo {
    grid-area: logo;
    align-self: center;
    justify-self: center;
    width: clamp(132px, 18vw, 180px);
    height: clamp(132px, 18vw, 180px);
  }

  .site-footer-navigation h2,
  .site-footer-contacts h2,
  .site-footer-author-roles span,
  .site-footer-brand strong {
    font-size: clamp(20px, 2.2vw, 22px);
    line-height: 1.2;
  }

  .site-footer-navigation a,
  .site-footer-author-row > span {
    font-size: clamp(17px, 1.9vw, 18px);
    line-height: 1.22;
  }

  .site-footer-brand span,
  .site-footer-phone,
  .site-footer-location,
  .site-footer-bottom p,
  .site-footer-legal-links button {
    font-size: 15px;
    line-height: 19px;
  }

  .site-footer-navigation ul {
    gap: 8px;
  }

  .site-footer-author-roles {
    width: auto;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 7px;
  }

  .site-footer-author-row {
    justify-content: flex-start;
    width: auto;
    max-width: 100%;
    gap: 14px;
  }

  .site-footer-author-socials a {
    width: 32px;
    height: 32px;
  }

  .site-footer-bottom {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    width: 100%;
    min-height: 0;
    padding: 24px 0 0;
    gap: 18px 28px;
  }

  .site-footer-legal-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 18px;
  }

}

@media (min-width: 768px) and (max-width: 899px) {
  .site-footer {
    padding: 36px 24px 32px;
  }

  .site-footer-main {
    grid-template-columns:
      minmax(190px, 1fr)
      clamp(112px, 16vw, 136px)
      minmax(190px, 1fr);
    gap: 24px 18px;
  }

  .site-footer-brand {
    gap: 10px;
  }

  .site-footer-mini-logo {
    width: 64px;
    height: 32px;
  }

  .site-footer-logo {
    width: clamp(112px, 16vw, 136px);
    height: clamp(112px, 16vw, 136px);
  }

  .site-footer-socials a {
    width: 38px;
    height: 38px;
  }

  .site-footer-navigation h2,
  .site-footer-contacts h2,
  .site-footer-author-roles span,
  .site-footer-brand strong {
    font-size: 19px;
    line-height: 23px;
  }

  .site-footer-navigation a,
  .site-footer-author-row > span {
    font-size: 16px;
    line-height: 20px;
  }

  .site-footer-brand span,
  .site-footer-phone,
  .site-footer-location,
  .site-footer-bottom p,
  .site-footer-legal-links button {
    font-size: 14px;
    line-height: 18px;
  }

  .site-footer-bottom {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .site-footer-legal-links {
    justify-content: flex-start;
    gap: 10px 16px;
  }
}

@media (min-width: 1200px) and (max-width: 1199px) {
  body > main:not(.figma-page),
  body > main:not(.figma-page) > [class$="-artboard"] {
    min-height: 0 !important;
  }

  body > main:not(.figma-page) + .site-footer {
    margin-top: 0;
  }

  .site-footer {
    min-height: 0;
    padding: 38px clamp(44px, 6.2vw, 80px);
    gap: 30px;
  }

  .site-footer-main {
    display: grid;
    grid-template-columns:
      minmax(260px, 1fr)
      clamp(150px, 12vw, 220px)
      minmax(260px, 1fr);
    align-items: start;
    width: 100%;
    min-height: 0;
    gap: clamp(28px, 4vw, 64px);
  }

  .site-footer-left,
  .site-footer-right {
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    max-width: none;
    gap: 24px;
  }

  .site-footer-brand-social,
  .site-footer-navigation,
  .site-footer-contacts,
  .site-footer-author {
    width: 100%;
    max-width: none;
  }

  .site-footer-socials {
    justify-content: flex-start;
    width: auto;
    gap: 12px;
  }

  .site-footer-socials a {
    width: 46px;
    height: 46px;
  }

  .site-footer-logo {
    width: clamp(150px, 12vw, 220px);
    height: clamp(150px, 12vw, 220px);
  }

  .site-footer-author {
    align-items: flex-start;
  }

  .site-footer-author-row {
    justify-content: flex-start;
    gap: 16px;
  }

  .site-footer-author-roles {
    width: auto;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .site-footer-author-roles span {
    font-size: clamp(20px, 1.5vw, 24px);
    line-height: 1.16;
  }

  .site-footer-bottom {
    width: 100%;
    min-height: 0;
    padding: 22px 0 0;
    gap: 24px;
  }

  .site-footer-legal-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 18px;
  }
}

@media (max-width: 767px) {
  body > main:not(.figma-page),
  body > main:not(.figma-page) > [class$="-artboard"] {
    min-height: 0 !important;
  }

  body > main:not(.figma-page) + .site-footer {
    margin-top: 0;
  }

  .site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 0;
    padding: 30px 20px;
    gap: 0;
    overflow: visible;
  }

  .site-footer-scale {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    height: auto;
    padding: 0;
    gap: 24px;
    background: transparent;
    transform: none;
  }

  .site-footer-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-height: 0;
    gap: 0;
  }

  .site-footer-left,
  .site-footer-right {
    display: contents;
  }

  .site-footer-brand-social,
  .site-footer-navigation,
  .site-footer-contacts,
  .site-footer-author {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
  }

  .site-footer-logo {
    display: none;
  }

  .site-footer-brand-social {
    order: 1;
    gap: 16px;
    margin-bottom: 24px;
  }

  .site-footer-contacts {
    order: 2;
    gap: 8px;
    margin-bottom: 24px;
  }

  .site-footer-navigation {
    order: 3;
    gap: 8px;
    margin-bottom: 24px;
  }

  .site-footer-author {
    order: 4;
    align-items: flex-start;
    gap: 8px;
  }

  .site-footer-mini-logo {
    width: 64px;
    height: 32px;
  }

  .site-footer-brand strong,
  .site-footer-navigation h2,
  .site-footer-contacts h2,
  .site-footer-author-roles span {
    font-size: 20px;
    line-height: 24px;
  }

  .site-footer-brand span,
  .site-footer-phone,
  .site-footer-location,
  .site-footer-bottom p,
  .site-footer-legal-links button {
    font-size: 15px;
    line-height: 20px;
  }

  .site-footer-navigation a,
  .site-footer-author-row > span {
    font-size: 17px;
    line-height: 22px;
  }

  .site-footer-socials {
    justify-content: flex-start;
    width: 100%;
    gap: 12px;
  }

  .site-footer-socials a {
    width: 44px;
    height: 44px;
  }

  .site-footer-author-row {
    justify-content: flex-start;
    gap: 16px;
  }

  .site-footer-author-roles {
    width: auto;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .site-footer-author-roles span {
    white-space: normal;
  }

  .site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-height: 0;
    padding: 22px 0 0;
    gap: 16px;
  }

  .site-footer-legal-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .site-footer-legal-links button + button {
    gap: 0;
  }

  .site-footer-legal-links button + button::before {
    display: none;
  }

  .footer-legal-modal-backdrop {
    align-items: stretch;
    padding: 12px;
  }

  .footer-legal-modal {
    width: 100%;
    height: 100%;
    border-radius: 18px;
  }

  .footer-legal-modal-close {
    top: 6px;
    right: 6px;
  }

  .footer-legal-modal-scroll {
    padding: 28px 42px 40px 20px;
  }

  .footer-legal-modal-scrollbar {
    top: 52px;
    right: 5px;
    bottom: 38px;
  }

  .footer-legal-modal-header h2 {
    padding-right: 38px;
    font-size: 31px;
    line-height: 38px;
  }

  .footer-legal-modal-header p {
    font-size: 18px;
    line-height: 23px;
  }

  .footer-legal-modal-content {
    font-size: 16px;
    line-height: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer a,
  .site-footer button,
  .footer-legal-modal-close,
  .footer-legal-modal-scrollbar {
    transition: none;
  }
}
