/**
 * Dark B2B SEO/AEO footer — kgcrystal.ru
 */

/*
 * Bono parent: `#page.site { min-height: 100vh }` and
 * `.site-footer-container:not(--disable-sticky) { position: absolute; bottom: 0 }`.
 * With kgc footer in normal flow that leaves a white body strip under `.kgc-footer-bottom`.
 */
#page.site:has(.kgc-footer-wrap),
.site:has(.kgc-footer-wrap) {
  min-height: 0 !important;
  height: auto !important;
}

.site-footer-container.kgc-footer-wrap,
.site-footer-container.site-footer-container--disable-sticky.kgc-footer-wrap {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

html:has(.kgc-footer-wrap),
body:has(.kgc-footer-wrap) {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.block-after-site:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
}

.kgc-footer__trust-chip,
.kgc-footer-city,
.kgc-footer__social {
  border-radius: 0 !important;
}

/* Full-bleed dark footer: paint edge-to-edge (100vw layer) while `.fixed` inners
   stay in the site content column — same pattern as grey section bands. */
.kgc-footer-wrap,
.site-footer-container.kgc-footer-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: none !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
  padding: 0;
  position: relative;
  z-index: 1;
  background: transparent;
}

/* Seamless #contact bridge → footer #22232b (no white body strip above colophon) */
.site-footer-container.kgc-footer-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  background: #22232b;
  pointer-events: none;
}

.kgc-footer,
#colophon.kgc-footer {
  position: relative;
  z-index: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: none !important;
  margin-left: auto;
  margin-right: auto;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
  line-height: 1.55;
}

#colophon.kgc-footer::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  background: #22232b;
  pointer-events: none;
}

.kgc-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.kgc-footer a:hover,
.kgc-footer a:focus {
  color: #ffffff;
  text-decoration: none;
}

/* Parent Bono applies max-width to `.fixed.site-content` etc., not `.kgc-footer__inner`. */
.kgc-footer-wrap .kgc-footer__inner.fixed,
.kgc-footer-wrap .kgc-footer-bottom__inner.fixed {
  box-sizing: border-box;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .kgc-footer-wrap .kgc-footer__inner.fixed,
  .kgc-footer-wrap .kgc-footer-bottom__inner.fixed {
    max-width: 992px;
  }
}

@media (min-width: 992px) {
  .kgc-footer-wrap .kgc-footer__inner.fixed,
  .kgc-footer-wrap .kgc-footer-bottom__inner.fixed {
    max-width: 1200px;
  }
}

@media (min-width: 1200px) {
  .kgc-footer-wrap .kgc-footer__inner.fixed,
  .kgc-footer-wrap .kgc-footer-bottom__inner.fixed {
    max-width: 1190px;
  }
}

@media (min-width: 1400px) {
  .kgc-footer-wrap .kgc-footer__inner.fixed,
  .kgc-footer-wrap .kgc-footer-bottom__inner.fixed {
    max-width: 1320px;
  }
}

.kgc-footer__inner {
  padding: 28px 16px 18px;
}

.kgc-footer__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.kgc-footer__title,
.kgc-footer__col--nav > summary.kgc-footer__title {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
  list-style: none;
  cursor: default;
}

.kgc-footer__col--nav > summary.kgc-footer__title::-webkit-details-marker {
  display: none;
}

.kgc-footer__col--nav > summary.kgc-footer__title::after {
  content: none;
}

.kgc-footer__col--brand {
  max-width: 280px;
}

.kgc-footer__logo {
  display: inline-block;
  margin-bottom: 10px;
  max-width: 280px;
}

.kgc-footer__logo img {
  display: block;
  width: auto;
  max-width: 180px;
  height: auto;
}

.kgc-footer__blurb {
  margin: 0 0 12px;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.55;
}

.kgc-footer__trust {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 14px;
  max-width: 280px;
}

.kgc-footer__trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.kgc-footer__trust-chip svg {
  flex: 0 0 14px;
  color: #6c92e8;
}

.kgc-footer-city {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 280px;
  margin: 0 0 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
  text-align: left;
}

.kgc-footer-city:hover,
.kgc-footer-city:focus {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.kgc-footer-city__pin {
  display: inline-flex;
  color: #6c92e8;
  flex: 0 0 auto;
}

.kgc-footer-city__text {
  flex: 1 1 auto;
  min-width: 0;
}

.kgc-footer-city__text strong {
  font-weight: 600;
}

.kgc-footer-city__caret-svg {
  flex: 0 0 auto;
  opacity: 0.75;
  color: rgba(255, 255, 255, 0.85);
}

.kgc-footer__socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kgc-footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.kgc-footer__social:hover,
.kgc-footer__social:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.kgc-footer__social svg {
  width: 20px;
  height: 20px;
  display: block;
}

.kgc-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kgc-footer__list li {
  margin: 0 0 5px;
  padding: 0;
  line-height: 1.55;
}

.kgc-footer__nav a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.55;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.kgc-footer__nav a:hover,
.kgc-footer__nav a:focus {
  color: #ffffff;
  transform: translateX(3px);
}

.kgc-footer__chev {
  flex: 0 0 10px;
  opacity: 0.55;
  color: #6c92e8;
}

.kgc-footer__nav a:hover .kgc-footer__chev,
.kgc-footer__nav a:focus .kgc-footer__chev {
  opacity: 0.95;
}

.kgc-footer__list li:last-child {
  margin-bottom: 0;
}

.kgc-footer__list-sep {
  margin: 10px 0 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.kgc-footer__list-sep span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kgc-footer__card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(6px);
}

.kgc-footer__contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
}

.kgc-footer__contact-row:last-of-type {
  margin-bottom: 14px;
}

.kgc-footer__contact-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 0;
  background: rgba(52, 86, 163, 0.35);
  color: #ffffff;
}

.kgc-footer__contact-body {
  flex: 1 1 auto;
  min-width: 0;
}

.kgc-footer__phone-block {
  margin: 0 0 10px;
}

.kgc-footer__phone {
  display: inline-block;
  color: #ffffff !important;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}

.kgc-footer__phone:hover,
.kgc-footer__phone:focus {
  color: #6c92e8 !important;
}

.kgc-footer__phone-note {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12.5px;
}

.kgc-footer__nap {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.kgc-footer__nap > li {
  margin: 0 0 7px;
}

.kgc-footer__nap-label {
  display: block;
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.kgc-footer__addr,
.kgc-footer__hours {
  color: rgba(255, 255, 255, 0.72);
}

.kgc-footer__addr-extra {
  color: rgba(255, 255, 255, 0.55);
}

.kgc-footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 16px;
  border-radius: 0;
  background: #3456a3;
  color: #ffffff !important;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
  border: 1px solid transparent;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.kgc-footer-cta__ico {
  flex: 0 0 16px;
}

.kgc-footer-cta:hover,
.kgc-footer-cta:focus {
  background: #2c4a8f;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(52, 86, 163, 0.35);
}

.kgc-footer-bottom {
  position: relative;
  z-index: 0;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.kgc-footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  background: #191a21;
  pointer-events: none;
}

.kgc-footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 72px 18px 16px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}

.kgc-footer-bottom__left {
  flex: 1 1 auto;
  max-width: 62%;
}

.kgc-footer-bottom__copy {
  margin: 0;
}

.kgc-footer-bottom__req {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.kgc-footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 16px;
  flex: 0 1 auto;
}

.kgc-footer-bottom__links a {
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  text-decoration: none;
}

.kgc-footer-bottom__links a:hover,
.kgc-footer-bottom__links a:focus {
  color: #ffffff;
}

.kgc-footer-bottom__note {
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

/* Kill leftover parent footer widget styles inside our wrap */
.kgc-footer-wrap .footer-widgets,
.kgc-footer-wrap .footer-bottom,
.kgc-footer-wrap .site-footer {
  display: none !important;
}

/* Scrolltop — square dark blue, inline SVG chevron */
.scrolltop.js-scrolltop,
.kgc-scrolltop {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: #3456a3 !important;
  box-shadow: 0 6px 18px rgba(26, 32, 48, 0.35) !important;
  border: 0 !important;
  right: 20px !important;
  bottom: 20px !important;
  z-index: 90 !important;
  color: #ffffff !important;
}

.scrolltop.js-scrolltop::before,
.kgc-scrolltop::before {
  content: none !important;
  display: none !important;
}

.kgc-scrolltop__ico {
  display: block;
  pointer-events: none;
}

.scrolltop.js-scrolltop:hover,
.kgc-scrolltop:hover {
  background: #2c4a8f !important;
}

@media (max-width: 991px) {
  .kgc-footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .kgc-footer__col--brand {
    grid-column: 1 / -1;
    max-width: none;
  }

  .kgc-footer-bottom__inner {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 16px;
  }

  .kgc-footer-bottom__left {
    max-width: 100%;
  }

  .kgc-footer-bottom__links {
    justify-content: flex-start;
  }
}

@media (max-width: 639px) {
  .kgc-footer__inner {
    padding: 28px 14px 20px;
  }

  .kgc-footer__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .kgc-footer__col--nav > summary.kgc-footer__title {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .kgc-footer__col--nav > summary.kgc-footer__title::after {
    content: "+";
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1;
  }

  .kgc-footer__col--nav[open] > summary.kgc-footer__title::after {
    content: "▾";
    font-size: 14px;
  }

  .kgc-footer__col--nav[open] > summary.kgc-footer__title {
    margin-bottom: 12px;
  }

  .kgc-footer__col--nav .kgc-footer__nav {
    padding-bottom: 4px;
  }

  .kgc-footer-city {
    max-width: none;
  }

  .scrolltop.js-scrolltop,
  .kgc-scrolltop {
    right: 20px !important;
    bottom: 88px !important;
  }
}

@media (min-width: 640px) {
  /* Accordion always open for crawlers / desktop UX (JS also forces open) */
  .kgc-footer__col--nav > summary.kgc-footer__title {
    pointer-events: none;
  }

  .kgc-footer__col--nav .kgc-footer__nav {
    display: block !important;
  }
}

/* /o-kompanii/ legal requisites card (B2B, shares kgc_requisites() source) */
.entry-content .kgc-requisites,
.kgc-requisites {
  margin: 28px 0 8px;
  padding: 18px 20px;
  border: 1px solid rgba(34, 35, 43, 0.12);
  border-left: 3px solid #3456a3;
  border-radius: 8px;
  background: #f6f7f9;
}

.kgc-requisites__title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #22232b;
}

.kgc-requisites__name {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #22232b;
}

.kgc-requisites__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
}

.kgc-requisites__item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}

.kgc-requisites__item dt {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.kgc-requisites__item dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #22232b;
  font-variant-numeric: tabular-nums;
}

.kgc-requisites__addr {
  margin: 12px 0 0;
  font-size: 13px;
  color: #4b5563;
}

.kgc-requisites__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 40px;
}

.kgc-requisites__grid .kgc-requisites__list {
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 639px) {
  .kgc-requisites__grid {
    grid-template-columns: 1fr;
  }
}

/* Footer compact requisites line */
.kgc-footer-req__name {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.kgc-footer-req__sep {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 2px;
}

.kgc-footer-bottom__req .kgc-footer-req__link {
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.kgc-footer-bottom__req .kgc-footer-req__link:hover,
.kgc-footer-bottom__req .kgc-footer-req__link:focus {
  color: #ffffff;
}
