/* v1.1.69 — header/footer wide chrome + footer bottom cleanup.
   Hero is accepted and untouched.
   Fixes v1.1.68 footer bottom split and removes the custom footer-link JS dependency. */

.rk-site-footer-v1165,
html body footer.rk-site-footer-v1165,
html body #rk-site-footer.rk-site-footer-v1165,
html body.rkv3c-body #landing-footer.rk-footer-v2473,
html body.rkv3c-body footer#landing-footer.rk-footer-v2473,
html body.rkv3c-body .rkv3c-main-style-footer.rk-footer-v2473 {
  --rk-footer-v1165-bg:#2a2826;
  --rk-footer-v1165-text:#f4eedf;
  --rk-footer-v1165-link:rgba(244,238,223,.88);
  --rk-footer-v1165-muted:rgba(244,238,223,.66);
  --rk-footer-v1165-soft:rgba(244,238,223,.56);
  --rk-footer-v1165-line:rgba(244,238,223,.12);
  --rk-footer-v1165-gold:#d6aa52;
  --rk-shell-wide-max:1440px;

  position:relative !important;
  display:block !important;
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:clamp(42px,5vw,64px) 0 32px !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
  background:var(--rk-footer-v1165-bg) !important;
  background-color:var(--rk-footer-v1165-bg) !important;
  background-image:none !important;
  border:0 !important;
  border-top:1px solid var(--rk-footer-v1165-line) !important;
  border-radius:0 !important;
  box-shadow:none !important;
  color:var(--rk-footer-v1165-text) !important;
  -webkit-text-fill-color:initial !important;
  font-family:var(--font-main,Manrope,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif) !important;
  text-align:initial !important;
  color-scheme:dark !important;
}

.rk-site-footer-v1165::before,
.rk-site-footer-v1165::after,
html body.rkv3c-body #landing-footer.rk-footer-v2473::before,
html body.rkv3c-body #landing-footer.rk-footer-v2473::after {
  display:none !important;
  content:none !important;
}

.rk-site-footer-v1165 *,
.rk-site-footer-v1165 *::before,
.rk-site-footer-v1165 *::after,
html body.rkv3c-body #landing-footer.rk-footer-v2473 *,
html body.rkv3c-body #landing-footer.rk-footer-v2473 *::before,
html body.rkv3c-body #landing-footer.rk-footer-v2473 *::after {
  box-sizing:border-box !important;
  font-family:var(--font-main,Manrope,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif) !important;
  text-shadow:none !important;
  filter:none !important;
  mix-blend-mode:normal !important;
}

.rk-site-footer-v1165__inner,
html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__inner,
html body.rkv3c-body #landing-footer.rk-footer-v2473 .rkv3c-container {
  display:block !important;
  /* ЭТАП (пересборка): ширина футера приведена к общей переменной --rk-layout-max
     (main.css: 1200px → 1280px от 1440px → 1360px от 1920px), как у остальных
     7 секций контента главной. Раньше был жёстко зашит 1440px — футер оказывался
     шире контента на широких экранах. Fallback 1440px сохранён на случай,
     если переменная почему-то недоступна. */
  width:min(var(--rk-layout-max,1440px),calc(100vw - 96px)) !important;
  max-width:var(--rk-layout-max,1440px) !important;
  min-width:0 !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  color:var(--rk-footer-v1165-text) !important;
  -webkit-text-fill-color:initial !important;
}

/* Same wide chrome rhythm for the accepted header. */
html body .site-header:not(.rkv3c-site-header) .container.header-layout,
html body .site-header:not(.rkv3c-site-header) .header-layout {
  /* ЭТАП (пересборка): та же переменная, что и футер/контент — единая ширина
     хедер → Hero → секции → футер по всей странице. */
  width:min(var(--rk-layout-max,1440px),calc(100vw - 96px)) !important;
  max-width:var(--rk-layout-max,1440px) !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding-left:0 !important;
  padding-right:0 !important;
}

.rk-site-footer-v1165__top,
html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__top {
  display:grid !important;
  grid-template-columns:minmax(260px,1fr) minmax(520px,1.45fr) minmax(260px,1fr) !important;
  align-items:start !important;
  gap:clamp(28px,4vw,64px) !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
}

.rk-site-footer-v1165__brand,
html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__brand {
  min-width:0 !important;
  text-align:left !important;
  margin:0 !important;
  padding:0 !important;
}

.rk-site-footer-v1165__logo,
html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__logo {
  display:inline-flex !important;
  margin:0 0 14px !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  color:var(--rk-footer-v1165-text) !important;
  -webkit-text-fill-color:var(--rk-footer-v1165-text) !important;
  text-decoration:none !important;
  font-size:clamp(24px,2.4vw,32px) !important;
  line-height:1 !important;
  font-weight:680 !important;
  letter-spacing:-.04em !important;
}

.rk-site-footer-v1165__tagline,
html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__tagline,
html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__tagline span {
  max-width:300px !important;
  margin:0 !important;
  padding:0 !important;
  color:var(--rk-footer-v1165-muted) !important;
  -webkit-text-fill-color:var(--rk-footer-v1165-muted) !important;
  font-size:14px !important;
  line-height:1.45 !important;
  font-weight:430 !important;
  background:transparent !important;
}

.rk-site-footer-v1165__nav,
html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__nav {
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px 24px !important;
  min-width:0 !important;
  margin:4px 0 0 !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  text-align:center !important;
}

.rk-site-footer-v1165__contacts,
html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__contacts {
  display:grid !important;
  gap:7px !important;
  justify-items:end !important;
  align-items:start !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  text-align:right !important;
  background:transparent !important;
  border:0 !important;
}

.rk-site-footer-v1165 a,
html body.rkv3c-body #landing-footer.rk-footer-v2473 a {
  color:var(--rk-footer-v1165-link) !important;
  -webkit-text-fill-color:var(--rk-footer-v1165-link) !important;
  text-decoration:none !important;
  text-decoration-color:transparent !important;
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
  border-radius:0 !important;
  box-shadow:none !important;
  outline-offset:4px !important;
  pointer-events:auto !important;
  position:relative !important;
  z-index:2 !important;
}

.rk-site-footer-v1165__nav a,
html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__nav a {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 !important;
  padding:0 !important;
  color:var(--rk-footer-v1165-link) !important;
  -webkit-text-fill-color:var(--rk-footer-v1165-link) !important;
  font-size:15px !important;
  line-height:1.2 !important;
  font-weight:550 !important;
  letter-spacing:-.01em !important;
}

.rk-site-footer-v1165__phone,
.rk-site-footer-v1165__email,
html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__phone,
html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__email {
  color:var(--rk-footer-v1165-text) !important;
  -webkit-text-fill-color:var(--rk-footer-v1165-text) !important;
  font-weight:630 !important;
  line-height:1.25 !important;
}

.rk-site-footer-v1165__phone,
html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__phone {font-size:17px !important;}
.rk-site-footer-v1165__email,
html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__email {font-size:15px !important;}

.rk-site-footer-v1165__formats,
html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__formats {
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  align-items:stretch !important;
  justify-content:stretch !important;
  gap:0 !important;
  width:100% !important;
  margin:clamp(28px,4vw,42px) 0 0 !important;
  padding:18px 0 !important;
  background:transparent !important;
  border:0 !important;
  border-top:1px solid var(--rk-footer-v1165-line) !important;
  border-bottom:1px solid var(--rk-footer-v1165-line) !important;
}

.rk-site-footer-v1165__formats a,
html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__formats a {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 !important;
  padding:0 26px !important;
  background:transparent !important;
  border:0 !important;
  border-right:1px solid rgba(244,238,223,.18) !important;
  border-radius:0 !important;
  box-shadow:none !important;
  color:var(--rk-footer-v1165-link) !important;
  -webkit-text-fill-color:var(--rk-footer-v1165-link) !important;
  font-size:14px !important;
  line-height:1.35 !important;
  font-weight:620 !important;
  white-space:normal !important;
}
.rk-site-footer-v1165__formats a:last-child,
html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__formats a:last-child {border-right:0 !important;}

/* Bottom returns to the accepted calm layout: legal links centered, legal text centered under them. */
.rk-site-footer-v1165__bottom,
html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__bottom,
html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2475__bottom {
  display:block !important;
  width:100% !important;
  margin:24px 0 0 !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  text-align:center !important;
}

.rk-site-footer-v1165__links,
html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__links,
html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2475__links {
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  justify-content:center !important;
  gap:0 !important;
  margin:0 0 18px !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  text-align:center !important;
}

.rk-site-footer-v1165__links a,
html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__links a,
html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2475__links a {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 !important;
  padding:0 22px !important;
  background:transparent !important;
  border:0 !important;
  border-right:1px solid rgba(244,238,223,.20) !important;
  border-radius:0 !important;
  box-shadow:none !important;
  color:var(--rk-footer-v1165-muted) !important;
  -webkit-text-fill-color:var(--rk-footer-v1165-muted) !important;
  font-size:12px !important;
  line-height:1.25 !important;
  font-weight:580 !important;
}
.rk-site-footer-v1165__links a:last-child,
html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__links a:last-child,
html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2475__links a:last-child {border-right:0 !important;}

.rk-site-footer-v1165__legal,
html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__legal,
html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2475__legal {
  display:block !important;
  max-width:860px !important;
  margin:0 auto !important;
  padding:0 !important;
  color:var(--rk-footer-v1165-soft) !important;
  -webkit-text-fill-color:var(--rk-footer-v1165-soft) !important;
  font-size:11px !important;
  line-height:1.45 !important;
  font-weight:420 !important;
  text-align:center !important;
  background:transparent !important;
  border:0 !important;
}

.rk-site-footer-v1165 a:hover,
.rk-site-footer-v1165 a:focus-visible,
html body.rkv3c-body #landing-footer.rk-footer-v2473 a:hover,
html body.rkv3c-body #landing-footer.rk-footer-v2473 a:focus-visible {
  color:var(--rk-footer-v1165-gold) !important;
  -webkit-text-fill-color:var(--rk-footer-v1165-gold) !important;
}

@media (max-width:1360px) {
  html body .site-header:not(.rkv3c-site-header) .container.header-layout,
  html body .site-header:not(.rkv3c-site-header) .header-layout,
  .rk-site-footer-v1165__inner,
  html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__inner,
  html body.rkv3c-body #landing-footer.rk-footer-v2473 .rkv3c-container {
    width:calc(100vw - 64px) !important;
    max-width:calc(100vw - 64px) !important;
  }
}

@media (max-width:960px) {
  .rk-site-footer-v1165,
  html body footer.rk-site-footer-v1165,
  html body.rkv3c-body #landing-footer.rk-footer-v2473 {padding:42px 0 30px !important;}
  html body .site-header:not(.rkv3c-site-header) .container.header-layout,
  html body .site-header:not(.rkv3c-site-header) .header-layout,
  .rk-site-footer-v1165__inner,
  html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__inner,
  html body.rkv3c-body #landing-footer.rk-footer-v2473 .rkv3c-container {
    width:calc(100vw - 40px) !important;
    max-width:calc(100vw - 40px) !important;
  }
  .rk-site-footer-v1165__top,
  html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__top {
    grid-template-columns:1fr !important;
    gap:26px !important;
    text-align:center !important;
  }
  .rk-site-footer-v1165__brand,
  .rk-site-footer-v1165__contacts,
  html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__brand,
  html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__contacts {
    justify-items:center !important;
    align-items:center !important;
    text-align:center !important;
  }
  .rk-site-footer-v1165__tagline,
  html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__tagline {margin-left:auto !important;margin-right:auto !important;}
  .rk-site-footer-v1165__nav,
  html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__nav {justify-content:center !important;}
}

@media (max-width:640px) {
  html body .site-header:not(.rkv3c-site-header) .container.header-layout,
  html body .site-header:not(.rkv3c-site-header) .header-layout,
  .rk-site-footer-v1165__inner,
  html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__inner,
  html body.rkv3c-body #landing-footer.rk-footer-v2473 .rkv3c-container {
    width:calc(100vw - 28px) !important;
    max-width:calc(100vw - 28px) !important;
  }
  .rk-site-footer-v1165__nav,
  html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__nav {gap:10px 16px !important;}
  .rk-site-footer-v1165__formats,
  html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__formats {grid-template-columns:1fr !important;}
  .rk-site-footer-v1165__formats a,
  html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__formats a {
    width:100% !important;
    justify-content:center !important;
    border-right:0 !important;
    padding:8px 0 !important;
  }
  .rk-site-footer-v1165__links {gap:10px !important;}
  .rk-site-footer-v1165__links a {border-right:0 !important;padding:0 !important;}
  .rk-site-footer-v1165__legal,
  html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2473__legal,
  html body.rkv3c-body #landing-footer.rk-footer-v2473 .rk-footer-v2475__legal {font-size:10.5px !important;}
  .rk-site-footer-v1165__legal br {display:none !important;}
}
