/**
 * Polygant theme UI (plain CSS).
 * Header toolbar, language switcher, mobile menu, breadcrumbs, footer strip.
 * Loaded after inc/css/style.css and inc/css/dop-style.css.
 */

/* ---------- Header toolbar & pills ---------- */
.header__wrapper--with-site-nav .header__nav {
  margin-left: 1.5rem;
  margin-right: auto;
}

.header__wrapper--with-site-nav .header__main {
  margin-left: 0;
  flex: 0 0 auto;
}

.header__main {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  margin-left: auto;
  justify-content: flex-end;
  min-width: 0;
}

.header__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.75rem;
  min-width: 0;
}

@media (max-width: 1300px) and (min-width: 1051px) {
  .header__toolbar {
    gap: 0.5rem;
  }
}

@media (max-width: 1050px) {
  .header__toolbar {
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 0.5rem;
  }
}

.header .header-menu__languages {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 1050px) {
  .header .header-menu__languages .lang-switcher {
    display: none;
  }
}

.header-mobile-menu__languages {
  margin-bottom: 1rem;
}

.header-mobile-menu__languages .lang-switcher {
  display: flex;
  width: 100%;
}

.header-mobile-menu__languages .lang-switcher__inner {
  width: 100%;
  justify-content: space-between;
}

.header-mobile-menu__languages .lang-switcher__item {
  flex: 1;
}

.header__desktop-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 1050px) {
  .header__desktop-pills {
    display: none;
  }
}

.header__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  min-height: 2.75rem;
  border-radius: 0.625rem;
  background: #f0f2f8;
  color: #000000;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.header__pill:hover {
  background: #e2e6f0;
  color: #000000;
}

@media (max-width: 1300px) and (min-width: 1051px) {
  .header__pill {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }
}

.header__pill-icon {
  flex-shrink: 0;
  color: #000000;
}

.header__btns {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: 0;
  flex-shrink: 0;
}

@media (max-width: 1050px) {
  .header__btns {
    margin-right: 0;
  }
}

.header__btn {
  border-radius: 0.625rem;
  padding: 0 1.25rem;
  min-height: 2.75rem;
  height: auto;
  font-size: 0.875rem;
  font-weight: 600;
}

@media (max-width: 1300px) and (min-width: 1051px) {
  .header__btn {
    padding: 0 1rem;
    font-size: 0.8125rem;
  }
}

.header__btn--whatsapp {
  background: #28a745;
  color: #ffffff;
  gap: 0.5rem;
}

.header__btn--whatsapp:hover {
  background: #218838;
  color: #ffffff;
}

.header__btn--cta {
  background: #0b84ff;
}

.header__btn--cta:hover {
  background: #0670db;
}

@media (max-width: 1050px) {
  .header.active .header__btn--cta,
  .header.active .header__btn--whatsapp {
    display: flex;
  }
}

/* ---------- Burger (mobile) ---------- */
.header__burger {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 0.625rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  margin-right: 0!important;
}

@media (max-width: 1050px) {
  .header__burger {
    display: flex;
  }
}

.header__burger .header__burger-close {
  display: none;
  align-items: center;
  justify-content: center;
  color: #29292d;
}

.header__burger.is-active .header__burger-sandwich {
  display: none;
}

.header__burger.is-active .header__burger-close {
  display: flex;
}

@media (max-width: 1050px) {
  .header__burger {
    border: none;
    padding: 0;
    height: auto;
  }
}

/* ---------- Language switcher ---------- */
.lang-switcher {
  flex-shrink: 0;
}

.lang-switcher__inner {
  display: inline-flex;
  align-items: center;
  padding: 5px;
  gap: 0.125rem;
  background: #f0f2f8;
  border-radius: 0.625rem;
}

.lang-switcher__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 10px 12px;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.lang-switcher__item:hover {
  color: #29292d;
}

.lang-switcher__item--active {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  cursor: default;
}

/* ---------- Mobile slide menu ---------- */
.header-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(41, 41, 45, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.header-mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.header-mobile-menu__inner {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 23.75rem);
  height: 100%;
  background: #ffffff;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
  padding: 1.5rem 1.5rem 2.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.header-mobile-menu.is-open .header-mobile-menu__inner {
  transform: translateX(0);
}

.header-mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.header-mobile-menu__logo {
  flex: 0 0 8.75rem;
}

.header-mobile-menu__logo img {
  width: 100%;
  height: auto;
  display: block;
}

.header-mobile-menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 0.625rem;
  background: #f0f2f8;
  color: #29292d;
  cursor: pointer;
  transition: background 0.2s ease;
}

.header-mobile-menu__close:hover {
  background: #e2e6f0;
}

.header-mobile-menu__separator {
  height: 1px;
  background: #e3e7ef;
  margin-bottom: 1rem;
}

.header-mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 2rem;
}

.header-mobile-menu__link {
  display: block;
  padding: 0.75rem 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: #29292d;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.header-mobile-menu__link:hover {
  background: #f0f2f8;
  color: #000000;
}

.header-mobile-menu__btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.header-mobile-menu__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.25rem;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.header-mobile-menu__btn:hover {
  opacity: 0.92;
}

.header-mobile-menu__btn--green {
  background: #28a745;
  color: #ffffff;
}

.header-mobile-menu__btn--blue {
  background: #0b84ff;
  color: #ffffff;
}

/* ---------- Breadcrumbs ---------- */
.bread {
  margin-bottom: 24px;
}

.bread .container {
  width: 100%;
  margin-bottom: 24px;
}

.bread #breadcrumbs {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  color: #4b5563;
}

.bread #breadcrumbs > span:only-child {
  display: contents;
}

.bread a {
  font-size: 0.875rem;
  font-weight: 400;
  color: #4b5563;
  text-decoration: none;
  transition: color 0.15s ease;
}

.bread a:hover {
  color: #111827;
}

.bread span {
  font-size: 0.875rem;
  font-weight: 400;
  color: #4b5563;
}

.bread .breadcrumb_last {
  color: #4b5563;
}

.bread__sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 0.125rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1;
  color: #9ca3af;
  user-select: none;
}

.bread #breadcrumbs .breadcrumb-separator,
.bread #breadcrumbs .breadcrumb_separator,
.bread #breadcrumbs .separator,
.bread #breadcrumbs .bs-sep,
.bread #breadcrumbs .cs-separator {
  color: #9ca3af;
  font-weight: 400;
}

.category-page .bread {
  justify-content: center;
}

.category-page .bread #breadcrumbs {
  justify-content: center;
}

.pageserv .bread #breadcrumbs {
  justify-content: center;
}

/* Breadcrumbs above the blog category hero: tighter vertical rhythm than the
   default in-hero usage that sets margin-bottom: 75px. */
.bread.blog-page-breadcrumbs {
  margin-top: 0;
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .bread.blog-page-breadcrumbs {
    margin-top: 16px;
    margin-bottom: 16px;
  }
}

@media (max-width: 600px) {
  .bread span,
  .bread a,
  .bread .bread__sep {
    font-size: 0.875rem;
  }
}

/* ---------- Footer strip ---------- */
.footer.footer--with-content {
  padding: 1.5rem 0;
  background: #ffffff;
}

.footer.footer--with-content .page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer.footer--with-content .page-footer__copyright {
  margin: 0;
  flex: 0 1 auto;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #29292d;
}

.footer.footer--with-content .page-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
  flex: 1 1 17.5rem;
  min-width: 0;
}

.footer.footer--with-content .page-footer__link {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
  color: #1a1a1a;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.footer.footer--with-content .page-footer__link:hover {
  color: #000000;
  opacity: 0.85;
}

.footer.footer--with-content .page-footer__socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.625rem;
  flex-shrink: 0;
}

.footer.footer--with-content .page-footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
  background: #f0f2f8;
  transition: background 0.2s ease, transform 0.15s ease;
}

.footer.footer--with-content .page-footer__social:hover {
  background: #e2e6f0;
}

.footer.footer--with-content .page-footer__social img {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}

@media (max-width: 1050px) {
  .footer.footer--with-content .page-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .footer.footer--with-content .page-footer__nav {
    justify-content: flex-start;
    flex: none;
    width: 100%;
    gap: 1rem 1.5rem;
  }

  .footer.footer--with-content .page-footer__link {
    white-space: normal;
    font-size: 14px;
    text-align: left;
    flex-basis: 100%;
  }

  .footer.footer--with-content .page-footer__socials {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Заголовки h1: Manrope; !important перебивает наследование и стили плагинов */
.page-strtd h1,
.page-strtd.lang-en h1,
.page-strtd.lang-ru h1,
h1.blog-page-hero__title,
h1.hero__title,
h1.info-page__title,
h1.page-cases-title,
h1.page404-title,
body:not(.home) h1 {
  font-family: "Manrope", sans-serif !important;
}
