/*
 * Shared БиоАвтоном site shell.
 * The markup and content mirror the production header/footer, while every
 * selector is isolated so product and blog page styles cannot break it.
 */
.site-shell-header,
.site-shell-footer {
  --shell-green: #59b84a;
  --shell-green-dark: #47a13a;
  --shell-dark: #252a27;
  --shell-footer: #3f3f3f;
  color: #fff;
  font-family: Manrope, Arial, sans-serif;
  line-height: 1.4;
}

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

.site-shell-header a,
.site-shell-footer a {
  color: inherit;
  text-decoration: none;
}

.site-shell__container {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

.site-shell-header {
  position: relative;
  z-index: 120;
  background:
    radial-gradient(circle at 19% -35%, rgba(89, 184, 74, .18), transparent 32%),
    linear-gradient(135deg, #171c19, var(--shell-dark));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}

.site-shell-header__top {
  min-height: 108px;
  display: grid;
  grid-template-columns: minmax(330px, 1fr) auto auto;
  gap: 34px;
  align-items: center;
}

.site-shell-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-shell-brand img {
  width: 170px;
  height: auto;
  flex: 0 0 auto;
}

.site-shell-brand p {
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: 11px;
  line-height: 1.65;
  letter-spacing: .04em;
}

.site-shell-brand p strong {
  display: block;
  color: #fff;
  font-weight: 700;
}

.site-shell-consult {
  display: flex;
  align-items: center;
  gap: 13px;
}

.site-shell-consult__text {
  position: relative;
  margin: 0 3px 0 0;
  padding-left: 16px;
  color: rgba(255, 255, 255, .86);
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.site-shell-consult__text::before,
.site-shell-contact__hours::before {
  position: absolute;
  top: .52em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--shell-green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(89, 184, 74, .14);
  content: "";
}

.site-shell-social {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  transition: transform .2s ease, border-color .2s ease;
}

.site-shell-social:hover,
.site-shell-social:focus-visible {
  border-color: rgba(255, 255, 255, .55);
  transform: translateY(-2px);
}

.site-shell-social--telegram { background: #25a4e3; }
.site-shell-social--max { background: #9d5ddd; }
.site-shell-social--whatsapp { background: #39cb59; }

.site-shell-social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.site-shell-contact {
  min-width: 224px;
  display: grid;
  justify-items: end;
  gap: 4px;
}

.site-shell-contact__hours {
  position: relative;
  margin: 0;
  padding-left: 16px;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  letter-spacing: .03em;
}

.site-shell-contact__phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

.site-shell-contact__phone img {
  width: 12px;
  height: auto;
}

.site-shell-contact__callback {
  color: #9dde92 !important;
  border-bottom: 1px solid rgba(157, 222, 146, .5);
  font-size: 12px;
  font-weight: 600;
}

.site-shell-burger {
  display: none;
  width: 44px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  cursor: pointer;
}

.site-shell-burger span {
  width: 20px;
  height: 2px;
  display: block;
  margin: 4px auto;
  background: #fff;
  border-radius: 2px;
}

.site-shell-nav {
  border-top: 1px solid rgba(255, 255, 255, .09);
  background: rgba(0, 0, 0, .12);
}

.site-shell-nav__links {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-shell-nav__links a {
  position: relative;
  padding: 17px 0 15px;
  color: rgba(255, 255, 255, .92);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .025em;
  white-space: nowrap;
}

.site-shell-nav__links a::after {
  position: absolute;
  right: 100%;
  bottom: 11px;
  left: 0;
  height: 2px;
  background: var(--shell-green);
  border-radius: 99px;
  content: "";
  transition: right .2s ease;
}

.site-shell-nav__links a:hover,
.site-shell-nav__links a:focus-visible,
.site-shell-nav__links a[aria-current="page"] {
  color: #a8e89e;
}

.site-shell-nav__links a:hover::after,
.site-shell-nav__links a:focus-visible::after,
.site-shell-nav__links a[aria-current="page"]::after {
  right: 0;
}

.site-shell-nav__close {
  display: none;
}

.site-shell-footer {
  margin-top: 0;
  padding: 22px 0;
  background: var(--shell-footer);
}

.product-page .site-shell-footer {
  margin-top: 82px;
}

.site-shell-footer__row {
  display: grid;
  grid-template-columns: minmax(300px, 1.15fr) minmax(390px, 1.7fr) auto minmax(150px, .55fr);
  gap: 30px;
  align-items: center;
}

.site-shell-footer__brand {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-shell-footer__brand img {
  width: 150px;
  height: auto;
  flex: 0 0 auto;
}

.site-shell-footer__brand p,
.site-shell-footer__legal,
.site-shell-footer__extra {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: .035em;
}

.site-shell-footer__brand strong {
  color: #fff;
}

.site-shell-footer__legal {
  text-align: center;
}

.site-shell-footer__policy {
  color: var(--shell-green) !important;
  font-size: 10px;
  font-weight: 600;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.site-shell-footer__extra {
  text-align: right;
}

.site-shell-footer__extra a:hover,
.site-shell-footer__extra a:focus-visible {
  color: #a8e89e;
}

@media (max-width: 1080px) {
  .site-shell-header__top {
    grid-template-columns: minmax(280px, 1fr) auto;
  }

  .site-shell-consult {
    display: none;
  }

  .site-shell-footer__row {
    grid-template-columns: 1fr 1.5fr auto;
  }

  .site-shell-footer__extra {
    display: none;
  }
}

@media (max-width: 820px) {
  .site-shell__container {
    width: min(100% - 28px, 680px);
  }

  .site-shell-header__top {
    min-height: 74px;
    display: flex;
    gap: 14px;
  }

  .site-shell-brand {
    margin-right: auto;
  }

  .site-shell-brand img {
    width: 112px;
  }

  .site-shell-brand p,
  .site-shell-contact__hours,
  .site-shell-contact__callback {
    display: none;
  }

  .site-shell-contact {
    min-width: 0;
    display: block;
  }

  .site-shell-contact__phone {
    font-size: 14px;
  }

  .site-shell-contact__phone img {
    width: 11px;
  }

  .site-shell-burger {
    display: block;
    flex: 0 0 auto;
  }

  .site-shell-nav {
    max-height: 0;
    overflow: hidden;
    border-top: 0;
    background: #fff;
    color: #333;
    transition: max-height .28s ease, box-shadow .28s ease;
  }

  .site-shell-nav.is-open {
    max-height: 620px;
    border-top: 1px solid #e7ece8;
    box-shadow: 0 18px 34px rgba(10, 25, 17, .18);
  }

  .site-shell-nav__links {
    min-height: 0;
    display: grid;
    gap: 0;
    padding-block: 10px 18px;
  }

  .site-shell-nav__links a {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 10px 4px;
    color: #3f3f3f;
    border-bottom: 1px solid #edf0ed;
    font-size: 14px;
  }

  .site-shell-nav__links a::after {
    display: none;
  }

  .site-shell-nav__links a:hover,
  .site-shell-nav__links a:focus-visible,
  .site-shell-nav__links a[aria-current="page"] {
    color: var(--shell-green-dark);
  }

  .site-shell-footer {
    padding: 34px 0 42px;
  }

  .product-page .site-shell-footer {
    margin-top: 58px;
  }

  .site-shell-footer__row {
    grid-template-columns: 1fr;
    gap: 22px;
    justify-items: center;
    text-align: center;
  }

  .site-shell-footer__brand {
    flex-direction: column;
    gap: 14px;
  }

  .site-shell-footer__brand img {
    width: 170px;
  }

  .site-shell-footer__brand p,
  .site-shell-footer__legal,
  .site-shell-footer__policy,
  .site-shell-footer__extra {
    font-size: 11px;
    text-align: center;
  }

  .site-shell-footer__extra {
    display: block;
  }
}

@media (max-width: 520px) {
  .site-shell__container {
    width: calc(100% - 24px);
  }

  .site-shell-header__top {
    min-height: 68px;
    gap: 9px;
  }

  .site-shell-brand img {
    width: 102px;
  }

  .site-shell-contact__phone {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: transparent !important;
    background: rgba(89, 184, 74, .15);
    border-radius: 12px;
    font-size: 0;
  }

  .site-shell-contact__phone img {
    width: 14px;
    margin: 0;
  }

  .site-shell-burger {
    width: 42px;
    height: 42px;
  }
}
