/* Shared navigation and footer for standalone page templates. */
.site-footer {
  --red: #ef252b;
  --ink: #202020;
  --soft: #f3f3f3;
  --line: #dedede;
  --max: 1220px;
  box-sizing: border-box;
  font-family: "Onest", Arial, Helvetica, sans-serif;
}
.site-footer *, .gb-mobile-nav * { box-sizing: border-box; }
.site-footer .footer-logo { display: block; width: 170px; text-decoration: none; }
.site-footer .footer-logo picture,
.site-footer .footer-logo img { display: block; width: 100%; height: auto; }
.site-footer button, .gb-mobile-nav button { font-family: inherit; }

/* Full navigation footer. The logo markup and asset remain shared with the header. */
.site-footer {
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
  color: var(--ink);
  background: var(--soft);
  border-top: 1px solid var(--line);
  font-size: 14px;
  text-align: left;
}
.site-footer > .site-footer-main {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 54px;
  display: grid;
  grid-template-columns: minmax(250px, 1.35fr) minmax(190px, 1fr) minmax(150px, .8fr) minmax(220px, 1fr);
  align-items: start;
  gap: clamp(34px, 5vw, 76px);
}
.site-footer .footer-logo { margin: 0 0 30px; }
.site-footer-title {
  margin: 0 0 18px;
  color: var(--ink);
  font: 800 12px/1.2 "Onest", Arial, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.site-footer-about > p {
  max-width: 300px;
  margin: 0;
  color: #4f4f4f;
  font-size: 15px;
  line-height: 1.6;
}
.site-footer-location {
  margin-top: 24px !important;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.site-footer-location strong,
.site-footer-location span { display: block; }
.site-footer-location strong { margin-bottom: 3px; color: var(--ink); }
.site-footer-nav { display: flex; flex-direction: column; align-items: flex-start; }
.site-footer-nav a,
.site-footer-contact a,
.site-footer-project {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  color: #4f4f4f;
  line-height: 1.35;
  text-decoration: none;
}
.site-footer-nav a:hover,
.site-footer-nav a:focus-visible,
.site-footer-contact a:hover,
.site-footer-contact a:focus-visible,
.site-footer-project:hover,
.site-footer-project:focus-visible { color: var(--red); }
.site-footer-nav .site-footer-all,
.site-footer-contact .site-footer-telegram,
.site-footer-project { color: var(--red); font-weight: 750; }
.site-footer-contact { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.site-footer-contact > a { max-width: 100%; overflow-wrap: anywhere; }
.site-footer-contact .site-footer-phone {
  color: var(--ink);
  font: 700 20px/1.25 "Onest", Arial, sans-serif;
}
.site-footer-project {
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: 750 14px/1.35 "Onest", Arial, sans-serif;
  cursor: pointer;
}
.site-footer > .site-footer-bottom {
  width: min(var(--max), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #656565;
  border-top: 1px solid var(--line);
}
.site-footer-bottom small { font-size: 12px; line-height: 1.45; }
.site-footer-signature { letter-spacing: .035em; }
.site-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}
.site-footer-legal a {
  color: #656565;
  font-size: 11px;
  line-height: 1.45;
  text-decoration: underline;
  text-decoration-color: #aaa;
  text-underline-offset: 2px;
}
.site-footer-legal a:hover,
.site-footer-legal a:focus-visible { color: var(--red); text-decoration-color: var(--red); }

@media(max-width:900px) {
  .site-footer > .site-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 46px 54px;
  }
}

@media(max-width:560px) {
  .site-footer > .site-footer-main,
  .site-footer > .site-footer-bottom { width: min(100% - 28px, var(--max)); }
  .site-footer > .site-footer-main {
    padding: 48px 0 36px;
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .site-footer .footer-logo { margin: 0 0 27px; }
  .site-footer-nav a,
  .site-footer-contact a,
  .site-footer-project { min-height: 44px; }
  .site-footer > .site-footer-bottom {
    min-height: 0;
    padding: 24px 0 30px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
  }
  .site-footer-legal { flex-direction: column; align-items: flex-start; gap: 0; }
  .site-footer-legal a { min-height: 36px; display: flex; align-items: center; }
}

/* Global mobile navigation v2 */
.gb-mobile-nav {
  display: none;
}

@media (max-width: 1100px) {
  body.gb-mobile-menu-open {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  .gb-menu-toggle-ready {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  .gb-menu-toggle-ready::before,
  .gb-menu-toggle-ready::after,
  .gb-menu-toggle-ready .gb-menu-toggle-lines::before,
  .gb-menu-toggle-ready .gb-menu-toggle-lines::after {
    content: none !important;
    display: none !important;
  }

  .gb-menu-toggle-lines {
    position: static !important;
    inset: auto !important;
    width: 22px;
    height: 16px;
    display: inline-flex;
    flex: 0 0 22px;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 !important;
    transform: none !important;
  }

  .gb-menu-toggle-lines i {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: 2px !important;
    min-height: 2px !important;
    display: block !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: currentColor !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .gb-mobile-nav {
    position: fixed;
    z-index: 10050;
    inset: 0;
    display: block;
    visibility: hidden;
    pointer-events: none;
  }

  .gb-mobile-nav.is-open {
    visibility: visible;
    pointer-events: auto;
  }

  .gb-mobile-nav__backdrop {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(10, 17, 15, .54);
    opacity: 0;
    cursor: pointer;
    transition: opacity .28s ease;
  }

  .gb-mobile-nav__sheet {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    width: min(430px, 100%);
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    color: #111613;
    background: #fff;
    box-shadow: -24px 0 70px rgba(0, 0, 0, .2);
    transform: translateX(105%);
    transition: transform .32s cubic-bezier(.2, .8, .2, 1);
  }

  .gb-mobile-nav.is-open .gb-mobile-nav__backdrop {
    opacity: 1;
  }

  .gb-mobile-nav.is-open .gb-mobile-nav__sheet {
    transform: translateX(0);
  }

  .gb-mobile-nav__panel {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 18px 18px 22px;
    background: #fff;
    scrollbar-width: thin;
    overscroll-behavior: contain;
  }

  .gb-mobile-nav__panel.is-active {
    display: flex;
    animation: gb-mobile-panel-in .22s ease both;
  }

  @keyframes gb-mobile-panel-in {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
  }

  .gb-mobile-nav__header {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
  }

  .gb-mobile-nav__brand {
    display: inline-flex;
    align-items: baseline;
    color: #0d1110;
    font: italic 800 25px/1 Georgia, serif;
    letter-spacing: -.055em;
    text-decoration: none;
  }

  .gb-mobile-nav__brand strong {
    color: #ed1c24;
    font: 900 10px/1 "Onest", Arial, sans-serif;
    letter-spacing: -.02em;
  }

  .gb-mobile-nav__close,
  .gb-mobile-nav__back {
    border: 0;
    color: #111613;
    background: transparent;
    cursor: pointer;
  }

  .gb-mobile-nav__close {
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: #f4f5f4;
  }

  .gb-mobile-nav__close span::before,
  .gb-mobile-nav__close span::after {
    content: "";
    position: absolute;
    top: 21px;
    left: 13px;
    width: 18px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
  }

  .gb-mobile-nav__close span::before { transform: rotate(45deg); }
  .gb-mobile-nav__close span::after { transform: rotate(-45deg); }

  .gb-mobile-nav__back {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 4px;
    color: #626864;
    font: 500 13px/1 "Onest", Arial, sans-serif;
  }

  .gb-mobile-nav__back span:first-child {
    color: #111613;
    font-size: 23px;
    line-height: 1;
  }

  .gb-mobile-nav__panel h2 {
    margin: 1px 8px 17px;
    color: #0d1110;
    font: 800 clamp(27px, 7vw, 34px)/1.08 "Onest", Arial, sans-serif;
    letter-spacing: -.045em;
  }

  .gb-mobile-nav__list {
    display: flex;
    flex-direction: column;
  }

  .gb-mobile-nav__row {
    position: relative;
    width: 100%;
    min-height: 59px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 10px;
    padding: 8px 7px;
    border: 0;
    border-bottom: 1px solid #e8ebe9;
    border-radius: 0;
    color: #101512;
    background: transparent;
    font: 570 15px/1.25 "Onest", Arial, sans-serif;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    appearance: none;
  }

  .gb-mobile-nav__row:hover,
  .gb-mobile-nav__row:focus-visible,
  .gb-mobile-nav__row[aria-current="page"] {
    z-index: 1;
    border-bottom-color: transparent;
    border-radius: 10px;
    background: linear-gradient(100deg, #edfdf5, #e3faee);
  }

  .gb-mobile-nav__row-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
  }

  .gb-mobile-nav__row-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .gb-mobile-nav__arrow {
    display: grid;
    place-items: center;
    color: #65706a;
  }

  .gb-mobile-nav__arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .gb-mobile-nav__contact {
    margin-top: 18px;
    padding: 18px 7px 2px;
    border-top: 1px solid #e2e6e3;
  }

  .gb-mobile-nav__phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #111613;
    font: 800 21px/1.2 "Onest", Arial, sans-serif;
    text-decoration: none;
  }

  .gb-mobile-nav__phone span {
    color: #08100c;
    font-size: 18px;
  }

  .gb-mobile-nav__contact p {
    margin: 5px 0 17px 28px;
    color: #737a76;
    font: 450 12px/1.45 "Onest", Arial, sans-serif;
  }

  .gb-mobile-nav__call,
  .gb-mobile-nav__telegram,
  .gb-mobile-nav__help > button {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 18px;
    border: 0;
    border-radius: 12px;
    font: 700 13px/1.2 "Onest", Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
  }

  .gb-mobile-nav__call,
  .gb-mobile-nav__help > button {
    color: #fff;
    background: #0d1512;
  }

  .gb-mobile-nav__telegram {
    margin-top: 9px;
    color: #151a18;
    background: #f4f5f4;
  }

  .gb-mobile-nav__socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
  }

  .gb-mobile-nav__socials a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #e2e6e3;
    border-radius: 50%;
    color: #111613;
    background: #f7f8f7;
    font: 800 13px/1 "Onest", Arial, sans-serif;
    text-decoration: none;
  }

  .gb-mobile-nav__help {
    margin-top: auto;
    padding: 15px 12px 12px;
    border-radius: 14px;
    background: linear-gradient(120deg, #f4faf7, #f3f6f4);
  }

  .gb-mobile-nav__help-title {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 10px;
    color: #161b18;
    font: 700 13px/1.35 "Onest", Arial, sans-serif;
  }

  .gb-mobile-nav__help-title > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #008d58;
    background: #d7fae9;
  }

  .gb-mobile-nav__help-title svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .gb-mobile-nav__help p {
    margin: 7px 0 14px 44px;
    color: #747c77;
    font: 450 11px/1.55 "Onest", Arial, sans-serif;
  }

  .gb-mobile-nav__help > button {
    justify-content: space-between;
  }

  .gb-mobile-nav__help > button b {
    font-size: 18px;
    font-weight: 500;
  }
}

@media (max-width: 560px) {
  .gb-menu-toggle-label { display: none; }

  .gb-mobile-nav__backdrop { background: #edf0ee; }

  .gb-mobile-nav__sheet {
    top: 8px;
    right: 8px;
    width: calc(100% - 16px);
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
    border: 1px solid #e2e6e3;
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(16, 30, 24, .16);
  }

  .gb-mobile-nav__panel { padding: 14px 15px 18px; }
  .gb-mobile-nav__header { margin-bottom: 8px; }
  .gb-mobile-nav__row { min-height: 57px; font-size: 14px; }
  .gb-mobile-nav__contact { margin-top: 14px; padding-top: 15px; }
  .gb-mobile-nav__phone { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .gb-mobile-nav__backdrop,
  .gb-mobile-nav__sheet { transition: none; }
  .gb-mobile-nav__panel.is-active { animation: none; }
}

/* Global footer: complete service catalogue */
.site-footer > .site-footer-main {
  grid-template-columns: minmax(230px, 1.05fr) minmax(340px, 1.55fr) minmax(150px, .72fr) minmax(210px, .92fr);
  gap: clamp(28px, 3.7vw, 58px);
}

.site-footer .site-footer-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  align-items: start;
  column-gap: 26px;
}

.site-footer .site-footer-services .site-footer-title,
.site-footer .site-footer-services .site-footer-all {
  grid-column: 1 / -1;
}

.site-footer .site-footer-services a {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 1040px) {
  .site-footer > .site-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 54px;
  }
}

@media (max-width: 560px) {
  .site-footer > .site-footer-main {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: 34px 24px;
  }

  .site-footer-about,
  .site-footer-contact {
    grid-column: 1 / -1;
  }

  .site-footer .site-footer-services {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .site-footer .site-footer-services .site-footer-title,
  .site-footer .site-footer-services .site-footer-all {
    grid-column: auto;
  }

  .site-footer-nav a,
  .site-footer-contact a,
  .site-footer-project {
    min-height: 31px;
    font-size: 12px;
  }

  .site-footer-title { margin-bottom: 13px; }
  .site-footer-contact { padding-top: 3px; }
}

/* Authoritative footer sizing: cancels legacy page-specific miniature footers. */
body .site-footer > .site-footer-main {
  grid-template-columns: minmax(230px, 1.05fr) minmax(340px, 1.55fr) minmax(150px, .72fr) minmax(210px, .92fr) !important;
  padding: 56px 0 48px !important;
  gap: clamp(28px, 3.7vw, 58px) !important;
}

body .site-footer .footer-logo {
  width: 150px !important;
  max-width: 150px !important;
  margin: 0 0 24px !important;
}

body .site-footer-title,
body .site-footer h2 {
  margin: 0 0 14px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}

body .site-footer-about > p {
  font-size: 13px !important;
  line-height: 1.5 !important;
}

body .site-footer-nav a,
body .site-footer-contact a,
body .site-footer-project {
  min-height: 32px !important;
  padding: 0 !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
}

body .site-footer-contact .site-footer-phone {
  font-size: 19px !important;
}

body .site-footer-contact > span {
  margin: 2px 0 6px;
  color: #737379;
  font-size: 11px;
  line-height: 1.4;
}

body .site-footer > .site-footer-bottom {
  min-height: 64px !important;
  padding: 17px 0 !important;
  font-size: 11px !important;
}

@media (max-width: 1040px) {
  body .site-footer > .site-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 42px 50px !important;
  }
}

@media (max-width: 560px) {
  body .site-footer > .site-footer-main {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) !important;
    padding: 42px 14px 34px !important;
    gap: 32px 22px !important;
  }

  body .site-footer-about,
  body .site-footer-contact {
    grid-column: 1 / -1 !important;
  }

  body .site-footer .site-footer-services {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  body .site-footer .footer-logo {
    width: 138px !important;
    max-width: 138px !important;
    margin: 0 0 20px !important;
  }

  body .site-footer-about > p {
    font-size: 12px !important;
  }

  body .site-footer-nav a,
  body .site-footer-contact a,
  body .site-footer-project {
    min-height: 29px !important;
    font-size: 11px !important;
  }

  body .site-footer-contact .site-footer-phone {
    font-size: 18px !important;
  }

  body .site-footer > .site-footer-bottom {
    min-height: 0 !important;
    padding: 22px 14px 26px !important;
    font-size: 10px !important;
  }
}
