/* AUTOCENTER native graphite shell v1.4.12 */

/* The child theme owns the site shell. Hide Blocksy's own header/footer output.
 * Keep the old Max Mega Menu wrapper suppressed until that plugin is removed separately. */
/* FAIL-OPEN shell ownership.
 * Blocksy is hidden only AFTER the corresponding custom shell has actually rendered.
 * If wp_body_open/wp_footer is interrupted for any reason, the native Blocksy shell remains visible. */
html.ac-shell-header-rendered body.ac-shell-active #header,
html.ac-shell-header-rendered body.ac-shell-active #masthead,
html.ac-shell-header-rendered body.ac-shell-active .ct-header,
html.ac-shell-header-rendered body.ac-shell-active #mega-menu-wrap-max_mega_menu_1 {
  display: none !important;
}

html.ac-shell-footer-rendered body.ac-shell-active .ct-footer,
html.ac-shell-footer-rendered body.ac-shell-active #footer,
html.ac-shell-footer-rendered body.ac-shell-active .site-footer:not(.ac-site-footer) {
  display: none !important;
}

.ac-site-header,
.ac-site-header *,
.ac-site-footer,
.ac-site-footer * { box-sizing: border-box; }

.ac-site-header {
  position: relative;
  z-index: 9990;
  width: 100%;
  background: var(--ac-graphite);
  color: var(--ac-text);
  border-bottom: 1px solid var(--ac-line-dark);
  box-shadow: 0 8px 28px rgba(0,0,0,.24);
  font-family: inherit;
}

.ac-header__inner {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.ac-header__bar {
  background: var(--ac-graphite-deep);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 12.5px;
}

.ac-header__inner--bar {
  min-height: 36px;
  gap: 18px;
}

.ac-header__meta { color: rgba(255,255,255,.76); white-space: nowrap; }
.ac-header__meta strong { color: #fff; font-weight: 800; }

.ac-lang { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.ac-lang__link {
  min-width: 34px;
  padding: 4px 7px;
  border-radius: 7px;
  color: rgba(255,255,255,.65) !important;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
}
.ac-lang__link:hover,
.ac-lang__link--current { color: #fff !important; background: rgba(255,255,255,.12); }

.ac-header__main { background: var(--ac-graphite); }
.ac-header__inner--main { min-height: 72px; gap: 16px; position: relative; }

.ac-brand { flex: 0 0 auto; }
.ac-brand__link { display: inline-flex; align-items: center; color: #fff; text-decoration: none; }
.ac-brand .custom-logo-link,
.ac-footer__logo .custom-logo-link { display: flex; align-items: center; }
.ac-brand .custom-logo { display: block; max-height: 58px; width: auto; max-width: 210px; }
.ac-brand__text { color: #fff; font-size: 20px; letter-spacing: -.03em; font-weight: 750; }
.ac-brand__text b { color: var(--ac-red); }

.ac-nav { flex: 1 1 auto; min-width: 0; position: static; }
.ac-nav__list,
.ac-nav__list ul { list-style: none; margin: 0; padding: 0; }
.ac-nav__list { display: flex; align-items: center; justify-content: center; gap: 2px; position: static; }
.ac-nav__list > li { position: relative; }
@media (min-width: 1081px) {
  .ac-nav__list > li.ac-hover-open { z-index: 30; }
  .ac-nav__list > li > .sub-menu { z-index: 40; }
  .ac-nav__list > li.ac-mega > .sub-menu { z-index: 35; }
  .ac-nav__list > li.ac-menu-compact > .sub-menu { z-index: 50; }
}
@media (min-width: 1081px) {
  /* The large Services panel is anchored to the page/header container, not to the Services button. */
  .ac-nav__list > li.ac-mega { position: static; }
}
/* Invisible hover bridge closes the physical gap between a top-level item and its dropdown. */
@media (min-width: 1081px) {
  .ac-nav__list > li.menu-item-has-children::after {
    content: "";
    position: absolute;
    z-index: 4;
    top: 100%;
    left: -12px;
    right: -12px;
    height: 18px;
    pointer-events: auto;
  }
}
.ac-nav__list a {
  display: flex;
  align-items: center;
  color: #f4f5f6 !important;
  text-decoration: none;
  font-weight: 760;
  line-height: 1.2;
}
.ac-nav__list > li > a {
  min-height: 40px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 13px;
}
.ac-nav__list > li > a:hover,
.ac-nav__list > li.current-menu-item > a,
.ac-nav__list > li.current-menu-ancestor > a {
  color: #fff !important;
  background: rgba(255,255,255,.08);
}

/* Mega dropdown only for the Services branch. */
.ac-nav__list > li.ac-mega > .sub-menu,
.ac-nav__list > li:not(.ac-menu-compact) > .sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, 8px);
  width: min(1180px, calc(100% - 24px));
  padding: 20px;
  background: #292a2c;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  box-shadow: 0 26px 68px rgba(0,0,0,.38);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.ac-nav__list > li:focus-within > .sub-menu,
.ac-nav__list > li.ac-hover-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.ac-nav__list > li > .sub-menu > li { min-width: 0; }
.ac-nav__list > li > .sub-menu > li > a {
  padding: 6px 8px;
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 850;
}
.ac-nav__list .sub-menu .sub-menu { margin-top: 3px; }
.ac-nav__list .sub-menu .sub-menu a {
  padding: 6px 8px;
  border-radius: 7px;
  color: #bdc0c5 !important;
  font-size: 12.5px;
  font-weight: 650;
}
.ac-nav__list .sub-menu .sub-menu a:hover { color: #fff !important; background: rgba(255,255,255,.08); }

.ac-nav__list .sub-menu .sub-menu li.ac-menu-all { margin-top: 4px; padding-top: 4px; border-top: 1px solid rgba(255,255,255,.09); }
.ac-nav__list .sub-menu .sub-menu li.ac-menu-all > a { color: #fff !important; font-weight: 850; }
.ac-nav__list .sub-menu .sub-menu li.ac-menu-all > a:hover { color: #fff !important; background: rgba(227,27,35,.18); }

/* Compact dropdowns for Blog and Import. */
.ac-nav__list > li.ac-menu-compact > .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  padding: 10px;
  background: #292a2c;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  box-shadow: 0 22px 54px rgba(0,0,0,.34);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(var(--ac-submenu-shift-x, 0px), 8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.ac-nav__list > li.ac-menu-compact:focus-within > .sub-menu,
.ac-nav__list > li.ac-menu-compact.ac-hover-open > .sub-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(var(--ac-submenu-shift-x, 0px), 0);
}
.ac-nav__list > li.ac-menu-compact > .sub-menu a {
  padding: 9px 10px;
  border-radius: 8px;
  color: #d3d5d8 !important;
  font-size: 13px;
}
.ac-nav__list > li.ac-menu-compact > .sub-menu a:hover { background: rgba(255,255,255,.08); color: #fff !important; }

.ac-header__cta {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ac-red);
  color: #fff !important;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(227,27,35,.24);
}
.ac-header__cta:hover { background: var(--ac-red-dark); color: #fff !important; transform: translateY(-1px); }
.ac-header__cta-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.14); }

.ac-nav-toggle { display: none; }
.ac-submenu-toggle { display: none; }

/* Footer */
.ac-site-footer {
  position: relative;
  z-index: 20;
  background: var(--ac-graphite);
  color: var(--ac-text);
  border-top: 1px solid rgba(255,255,255,.1);
  font-family: inherit;
}
.ac-footer__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 20px;
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(560px, 1.6fr);
  gap: 52px;
  align-items: center;
}
.ac-footer__brand { max-width: 390px; }
.ac-footer__logo { display: inline-flex; align-items: center; margin-bottom: 6px; text-decoration: none; color: #fff; }
.ac-footer__logo .custom-logo { display: block; width: auto; max-width: 190px; max-height: 64px; }
.ac-footer__brand p { margin: 0 0 7px; color: #bfc2c6; font-size: 12.75px; line-height: 1.5; max-width: 430px; }
.ac-footer__operator {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 0 15px;
  border-radius: 9px;
  background: var(--ac-red);
  color: #fff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}
.ac-footer__operator:hover { background: var(--ac-red-dark); }
.ac-footer__col h2 { margin: 0 0 9px; color: #fff; font-size: 14px; line-height: 1.3; font-weight: 850; }
.ac-footer__facts {
  display: grid;
  grid-template-columns: .78fr 1fr 1fr;
  gap: 10px;
}
.ac-footer__fact {
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
}
.ac-footer__fact strong,
.ac-footer__fact span { display: block; }
.ac-footer__fact strong {
  margin-bottom: 3px;
  color: #fff;
  font-size: 12.5px;
  line-height: 1.25;
}
.ac-footer__fact span {
  color: #bfc2c6;
  font-size: 12.25px;
  line-height: 1.35;
}
.ac-footer__subhead { margin-top: 24px !important; }
.ac-footer__col ul { list-style: none; margin: 0; padding: 0; }
.ac-footer__col li { margin: 0; padding: 0; }
.ac-footer__col li + li { margin-top: 8px; }
.ac-footer__col a { color: #bfc2c6 !important; text-decoration: none; font-size: 13.5px; line-height: 1.45; }
.ac-footer__col a:hover { color: #fff !important; }
.ac-footer__phone { display: inline-block; margin-bottom: 12px; color: #fff !important; font-size: 20px !important; font-weight: 900; }
.ac-footer__contacts strong { color: #fff; }
.ac-footer__legal {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.ac-footer__legal a {
  color: #aeb3ba !important;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}
.ac-footer__legal a:hover { color: #fff !important; }
.ac-footer__copyright { white-space: nowrap; }
.ac-footer__bottom { background: var(--ac-graphite-deep); border-top: 1px solid rgba(255,255,255,.08); }
.ac-footer__bottom-inner {
  width: min(1440px, calc(100% - 40px));
  min-height: 52px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #8f949b;
  font-size: 12px;
}

@media (max-width: 900px) {
  .ac-footer__bottom-inner {
    min-height: 0;
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .ac-footer__legal { justify-content: flex-start; gap: 8px 14px; }
}

@media (max-width: 1240px) {
  .ac-header__meta:nth-of-type(3) { display: none; }
  .ac-header__inner--main { gap: 14px; }
  .ac-nav__list > li > a { padding: 0 8px; font-size: 13px; }
  .ac-header__cta { padding: 0 12px; }
  .ac-footer__inner { width: min(1000px, calc(100% - 36px)); grid-template-columns: minmax(270px, .9fr) minmax(500px, 1.5fr); gap: 34px; }
  .ac-footer__facts { grid-template-columns: .8fr 1fr 1fr; gap: 8px; }
}

@media (max-width: 1080px) {
  .ac-header__meta { display: none; }
  .ac-header__inner--main { flex-wrap: wrap; min-height: 72px; padding: 10px 0; }
  .ac-nav-toggle {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 9px;
    background: #26282a;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
  }
  .ac-nav-toggle__icon { width: 19px; display: grid; gap: 4px; }
  .ac-nav-toggle__icon span { display: block; width: 100%; height: 2px; border-radius: 2px; background: currentColor; }
  .ac-nav { order: 4; flex: 0 0 100%; display: none; padding: 8px 0 2px; }
  .ac-site-header.ac-nav-open .ac-nav { display: block; }
  .ac-nav__list { display: block; }
  .ac-nav__list > li { border-top: 1px solid rgba(255,255,255,.1); }
  .ac-nav__list > li:first-child { border-top: 0; }
  .ac-nav__list > li > a { min-height: 48px; padding: 0 4px; border-radius: 0; font-size: 14px; }
  .ac-nav__list > li > .sub-menu,
  .ac-nav__list > li.ac-menu-compact > .sub-menu,
  .ac-nav__list .sub-menu .sub-menu {
    position: static;
    transform: none;
    width: auto;
    min-width: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 4px 0 10px 14px;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .ac-nav__list li.ac-submenu-open > .sub-menu { display: block; }
  .ac-nav__list li.menu-item-has-children { position: relative; }
  .ac-nav__list li.menu-item-has-children > a { padding-right: 44px; }
  .ac-nav__list .sub-menu > li > a,
  .ac-nav__list .sub-menu .sub-menu a { color: #c7cacf !important; }
  .ac-submenu-toggle {
    display: inline-flex;
    position: absolute;
    top: 6px;
    right: 0;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: #fff;
    cursor: pointer;
  }
  .ac-submenu-toggle::before { content: "+"; font-size: 20px; line-height: 1; }
  .ac-submenu-open > .ac-submenu-toggle::before { content: "−"; }
}

@media (max-width: 760px) {
  .ac-header__inner { width: min(100% - 24px, 1440px); }
  .ac-header__bar .ac-header__inner { min-height: 34px; gap: 8px; }
  .ac-header__phone { font-size: 12px; }
  .ac-lang__link { min-width: 30px; padding: 3px 5px; }
  .ac-header__inner--main { gap: 10px; }
  .ac-brand .custom-logo { max-width: 150px; max-height: 46px; }
  .ac-nav-toggle__label { display: none; }
  .ac-header__cta {
    flex: 0 1 144px;
    min-width: 0;
    max-width: 144px;
    min-height: 42px;
    padding: 7px 9px;
    font-size: 11.5px;
    line-height: 1.12;
    white-space: normal;
    text-align: center;
    overflow-wrap: normal;
  }
  .ac-header__cta-dot { display: none; }
  .ac-footer__inner { width: min(100% - 28px, 760px); padding: 24px 0 18px; grid-template-columns: 1fr; gap: 20px; }
  .ac-footer__brand, .ac-footer__contacts { grid-column: auto; }
  .ac-footer__facts { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .ac-footer__bottom-inner { width: min(100% - 28px, 1440px); padding: 14px 0; min-height: 0; display: block; }
}

@media (max-width: 480px) {
  .ac-header__bar .ac-lang { margin-left: auto; }
  .ac-header__inner--main { min-height: 66px; }
  .ac-brand .custom-logo { max-width: 108px; max-height: 42px; }
  .ac-header__cta { flex-basis: 132px; max-width: 132px; font-size: 10.8px; padding-inline: 7px; }
  .ac-footer__inner { grid-template-columns: 1fr; }
  .ac-footer__brand, .ac-footer__contacts { grid-column: auto; }
}


@media (max-width: 390px) {
  .ac-header__inner { width: min(100% - 14px, 1440px); }
  .ac-header__inner--main { gap: 6px; }
  .ac-brand .custom-logo { max-width: 96px; }
  .ac-nav-toggle { min-height: 40px; padding: 0 10px; }
  .ac-header__cta {
    flex-basis: 122px;
    max-width: 122px;
    min-height: 40px;
    padding: 6px;
    font-size: 10px;
  }
}

@media (max-width: 560px) {
  .ac-footer__inner { grid-template-columns: 1fr; }
  .ac-footer__brand, .ac-footer__contacts { grid-column: auto; }
  .ac-footer__facts { grid-template-columns: 1fr; gap: 7px; }
  .ac-footer__fact { padding: 8px 10px; }
}
