/*
Theme Name: Аверсус
Theme URI: https://aversus.ru/
Author: ООО «Аверсус»
Description: Индивидуальная блочная тема каталога технических средств реабилитации.
Version: 0.2.0
Requires at least: 7.0
Requires PHP: 8.2
Text Domain: aversus
*/

@font-face {
  font-family: "Aversus Hand";
  src: url("assets/fonts/caveat-semibold.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

:root {
  --av-green: #2f7935;
  --av-green-dark: #245f2a;
  --av-green-soft: #dcebd9;
  --av-bg: #f8faf8;
  --av-ink: #0f172a;
  --av-muted: #64748b;
  --av-line: #e2e8e4;
  --av-shadow: 0 18px 50px rgba(17, 70, 43, 0.1);
  --av-about-gradient: linear-gradient(to bottom,#eef6ec 0%,#e5f0e3 100%);
  --av-about-lead-gradient-previous: linear-gradient(145deg,#eef6ec 0%,#fff 75%);
  --av-page-gutter: clamp(1rem, 2vw, 2rem);
  --av-mobile-gutter: var(--av-page-gutter);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--av-bg);
  text-rendering: optimizeLegibility;
}
a { text-underline-offset: .18em; }

.aversus-topbar {
  min-height: 40px;
  background: var(--av-green-dark);
  color: #fff;
}

.aversus-topbar__inner {
  min-height: 40px;
  padding-top: .45rem;
  padding-bottom: .45rem;
  font-size: .875rem;
}

.aversus-topbar p { margin: 0; }
.aversus-topbar__secondary { color: #cde7d5; }

.site-header {
  border-bottom: 1px solid #dfe7e2;
  background: #fff;
}

.site-header__inner {
  position: relative;
  isolation: isolate;
  min-height: 82px;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-header__brand { position: relative; z-index: 1; display: flex; min-width: 470px; align-items: center; gap: 1rem; }
.aversus-logo { display: block; flex: 0 0 auto; margin: 0; }
.aversus-logo img { display: block; width: auto !important; height: 48px !important; object-fit: contain; }
.site-header__slogan { position: relative; display: flex; flex: 0 0 auto; min-width: 238px; min-height: 62px; align-items: center; justify-content: center; }
.site-header__slogan p { position: relative; z-index: 2; margin: 0; padding: .15rem .58rem .28rem; border-radius: 999px; background: rgba(255,255,255,.72); color: var(--av-green-dark); font-family: "Aversus Hand", cursive; font-size: 1.42rem; font-style: normal; font-weight: 600; line-height: 1; letter-spacing: .005em; white-space: nowrap; }
.site-header__slogan img { position: absolute; top: 50%; left: 205%; z-index: 1; width: 720px; max-width: none; height: auto; opacity: .7; object-fit: contain; transform: translate(-50%,-50%); pointer-events: none; -webkit-mask-image: linear-gradient(to right, #000 0%, #000 48%, transparent 96%); mask-image: linear-gradient(to right, #000 0%, #000 48%, transparent 96%); }
.site-header .wp-block-search { position: relative; z-index: 2; width: min(24vw, 290px); margin-left: auto; }
.site-header .wp-block-search__inside-wrapper {
  min-height: 48px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.site-header .wp-block-search__inside-wrapper:focus-within {
  border-color: var(--av-green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(34, 123, 42, .1);
}
.site-header .wp-block-search__input { padding-left: 1rem; border: 0; background: transparent; font-size: 1rem; }
.site-header .wp-block-search__button { margin: 4px; border-radius: 9px; }
.site-header .wp-block-navigation { position: relative; z-index: 3; font-size: .84rem; font-weight: 600; }
.site-header .wp-block-navigation__container { flex-wrap: nowrap; gap: .15rem; }
.site-header .wp-block-navigation-item__content {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: .55rem .48rem !important;
  border-radius: 9px;
}
.site-header .wp-block-navigation-item__content:hover { background: var(--av-green-soft); }
.site-header .wp-block-navigation-item.current-menu-item > a,
.site-header .wp-block-navigation a:hover { color: var(--av-green); }

.home-page { padding-bottom: 0; }
.home-hero { min-height: auto; align-items: center !important; gap: clamp(2rem,5vw,5rem) !important; padding-top: clamp(2.4rem,5vw,4.6rem); padding-bottom: 1.5rem; }
.home-hero > .wp-block-column { min-width: 0; align-self: center; }
.home-hero__copy { position: relative; isolation: isolate; padding: clamp(1rem,2.4vw,2rem) clamp(.15rem,1vw,.75rem); }
.home-hero__copy::before { position: absolute; top: 29%; left: -15%; z-index: -1; width: 125%; height: 210px; background: url("assets/aversus-airy-motif.png") center / 100% auto no-repeat; content: ""; opacity: .28; transform: rotate(-3deg); pointer-events: none; -webkit-mask-image: linear-gradient(to right,transparent 0%,#000 16%,#000 76%,transparent 100%); mask-image: linear-gradient(to right,transparent 0%,#000 16%,#000 76%,transparent 100%); }
.home-hero__copy::after { position: absolute; top: 8%; left: -8%; z-index: -2; width: 82%; height: 82%; border-radius: 50%; background: radial-gradient(circle,rgba(220,235,217,.72) 0%,rgba(238,246,236,.35) 48%,transparent 72%); content: ""; filter: blur(4px); pointer-events: none; }
.home-hero h1 { max-width: 760px; margin-top: 0; margin-bottom: 1.35rem; letter-spacing: -.04em; }
.home-hero__title { text-wrap: balance; }
.home-hero__title span { display: block; }
.home-hero__title span:first-child { margin-bottom: .12em; font-weight: 720; }
.home-hero__title span:nth-child(2) { font-weight: 620; }
.home-hero__title-accent { position: relative; width: fit-content; margin-top: .12em; color: var(--av-green-dark); font-weight: 720; }
.home-hero__lead { max-width: 650px; margin: 0; color: #526258; font-size: clamp(1rem,1.35vw,1.16rem); line-height: 1.7; }
.home-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.65rem; }
.home-hero__actions a { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .72rem 1.1rem; border-radius: 12px; font-weight: 750; text-decoration: none; transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease; }
.home-hero__primary { gap: .65rem; background: var(--av-green); color: #fff; box-shadow: 0 10px 24px rgba(47,121,53,.18); }
.home-hero__primary:hover { background: var(--av-green-dark); color: #fff; transform: translateY(-2px); }
.home-hero__primary span { font-size: 1.25rem; line-height: 1; }
.home-hero__secondary { border: 1px solid #c9d8cd; background: rgba(255,255,255,.72); color: var(--av-green-dark); }
.home-hero__secondary:hover { border-color: var(--av-green); background: #fff; color: var(--av-green-dark); }
.home-showcase {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin-inline: auto;
}
.home-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; padding: .85rem; border: 1px solid #d5e3d7; border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(17,70,43,.06); }
.home-facts article { display: grid; min-width: 0; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: .75rem; padding: .45rem .9rem; }
.home-facts article + article { border-left: 1px solid #dfe9e1; }
.home-facts strong { color: var(--av-green-dark); font-size: clamp(1.35rem,2.3vw,2rem); line-height: 1; letter-spacing: -.035em; white-space: nowrap; }
.home-facts span { color: #526258; font-size: .86rem; font-weight: 650; line-height: 1.35; }
:is(.home-purchase, .contacts-purchase) {
  --av-purchase-columns: minmax(0, 1fr) minmax(0, 23rem);
  container-type: inline-size;
}
.home-purchase { margin-block: clamp(1.25rem, 2.5vw, 2rem); }
@media (max-width: 900px) {
  .home-hero { gap: 1.5rem !important; }
  .home-facts { grid-template-columns: 1fr; }
  .home-facts article { grid-template-columns: 105px minmax(0,1fr); }
  .home-facts article + article { border-top: 1px solid #dfe9e1; border-left: 0; }
}
@media (max-width: 700px) {
  .home-hero { padding-top: 2rem; }
  .home-hero__copy { padding: .8rem 0; }
  .home-hero__copy::before { top: 32%; left: -24%; width: 145%; height: 180px; opacity: .2; }
}
@media (max-width: 460px) {
  .home-hero__actions { display: grid; grid-template-columns: 1fr; }
  .home-hero__actions a { width: 100%; }
  .home-facts { padding: .6rem; }
  .home-facts article { grid-template-columns: 88px minmax(0,1fr); padding: .55rem .6rem; }
}
.home-advantages { display: grid; gap: .75rem; max-width: 520px; margin: 0 0 1.65rem; padding: 0; list-style: none; }
.home-advantages li { display: flex; min-height: 66px; align-items: center; gap: .85rem; padding: .7rem .85rem; border: 1px solid #dfe6e1; border-left: 3px solid var(--av-green); border-radius: 0 12px 12px 0; background: var(--av-about-gradient); color: #334155; box-shadow: 0 8px 24px rgba(15,23,42,.04); }
.home-advantages__icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 10px; background: var(--av-green-soft); color: var(--av-green); }
.home-advantages__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.home-advantages strong, .home-advantages small { display: block; }
.home-advantages strong { color: var(--av-ink); font-size: .96rem; line-height: 1.3; }
.home-advantages small { margin-top: .12rem; color: var(--av-muted); font-size: .82rem; line-height: 1.35; }
.home-slider { position: relative; overflow: hidden; border-radius: 22px; background: var(--av-green-soft); box-shadow: var(--av-shadow); }
.home-slider__track { display: flex; transition: transform .55s cubic-bezier(.22,.7,.2,1); }
.home-slider__slide { flex: 0 0 100%; margin: 0; }
.home-slider__slide img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.home-slider__arrow { position: absolute; top: 50%; z-index: 2; display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--av-ink); font-size: 1.35rem; cursor: pointer; box-shadow: 0 4px 18px rgba(15,23,42,.15); opacity: 0; pointer-events: none; transform: translateY(-50%); transition: opacity .22s ease, background-color .2s ease, color .2s ease; }
.home-slider__arrow:hover { background: #fff; color: var(--av-green); }
.home-slider__arrow--prev { left: .85rem; }
.home-slider__arrow--next { right: .85rem; }
.home-slider__dots { position: absolute; bottom: 1rem; left: 50%; z-index: 2; display: flex; gap: .5rem; padding: .45rem .6rem; border-radius: 999px; background: rgba(15,23,42,.34); opacity: 0; pointer-events: none; transform: translateX(-50%); transition: opacity .22s ease; }
.home-slider:hover .home-slider__arrow,
.home-slider:hover .home-slider__dots,
.home-slider:focus-within .home-slider__arrow,
.home-slider:focus-within .home-slider__dots { opacity: 1; pointer-events: auto; }
.home-slider__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; }
.home-slider__dots button[aria-current="true"] { width: 24px; border-radius: 999px; background: #fff; }
@media (hover: none) {
	.home-slider__arrow,
	.home-slider__dots { opacity: 1; pointer-events: auto; }
}
.home-directions { display: none; padding-top: 1rem; }
.home-directions > h2 { margin-bottom: 1.5rem; }
.home-direction-grid { gap: 1rem !important; }
.home-direction-card {
	position: relative;
  display: flex;
  min-height: 245px;
  flex-direction: column;
  padding: 1.35rem;
  border: 1px solid #dfe6e1;
  border-radius: 16px;
  background: #fff;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.home-direction-card:hover { transform: translateY(-2px); border-color: rgba(34,123,42,.3); box-shadow: var(--av-shadow); }
.home-direction-card__icon { display: grid; width: 46px; height: 46px; place-items: center; margin: 0 0 1.6rem; border-radius: 13px; background: var(--av-green-soft); color: var(--av-green); }
.home-direction-card__icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.home-direction-card:first-child .home-direction-card__icon svg { fill: currentColor; stroke: none; }
.home-direction-card h3 { margin: 0 0 .65rem; }
.home-direction-card p { color: var(--av-muted); }
.home-direction-card p:last-child { margin-top: auto; margin-bottom: 0; }
.home-direction-card p:last-child a { color: var(--av-green); font-weight: 700; text-decoration: none; }
.home-direction-card p:last-child a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.home-direction-card:focus-within { border-color: var(--av-green); box-shadow: 0 0 0 4px rgba(34,123,42,.12); }
.home-direction-card:focus-within p:last-child a { outline: none; }
.content-page { min-height: 56vh; padding-top: clamp(3rem,7vw,6rem); padding-bottom: clamp(4rem,8vw,7rem); }
.content-page > h1 { width: 100%; max-width: 760px; margin-bottom: 2rem; padding-bottom: 1.25rem; border-bottom: 1px solid #dfe6e1; }
.content-page .wp-block-post-content { width: 100%; }

.page-id-16 .content-page { padding-top: clamp(2.5rem,5vw,4.5rem); }
.page-id-16 .content-page > h1 { max-width: 1100px; margin-bottom: 1.4rem; padding-bottom: 0; border-bottom: 0; }
.page-id-16 .wp-block-post-content { max-width: none; }
.about-layout { width: 100%; max-width: 1100px; margin: 0 auto; }
.about-lead {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(320px,.65fr);
  gap: clamp(1.5rem,4vw,4rem);
  align-items: center;
  padding: clamp(1.5rem,3vw,2.5rem);
  border: 1px solid var(--av-line);
  border-radius: 20px;
  background: var(--av-about-lead-gradient-previous);
  box-shadow: 0 16px 45px rgba(15,23,42,.05);
}
.about-lead__text { margin: 0; color: var(--av-ink); font-size: clamp(1.25rem,2vw,1.65rem); font-weight: 620; line-height: 1.45; letter-spacing: -.02em; }
.about-lead__note { margin: .9rem 0 0; color: #334b38; font-size: 1rem; line-height: 1.75; }
.about-facts { display: grid; grid-template-columns: 1fr; gap: .65rem; min-width: 0; }
.about-fact { display: grid; min-width: 0; min-height: 76px; grid-template-columns: 84px minmax(0,1fr); align-items: center; gap: .8rem; padding: .85rem 1rem; border-radius: 14px; background: var(--av-green-soft); }
.about-fact strong, .about-fact span { display: block; }
.about-fact strong { color: var(--av-green-dark); font-size: clamp(1.65rem,3vw,2.15rem); line-height: 1; letter-spacing: -.035em; }
.about-fact span { min-width: 0; color: #36543b; font-size: .82rem; font-weight: 650; line-height: 1.35; }
.about-sections { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin-top: 1rem; }
.about-card { padding: clamp(1.25rem,2.5vw,1.8rem); border: 1px solid #c8ddc6; border-radius: 18px; background: var(--av-about-gradient); }
.about-card h2 { margin: 0 0 .85rem; color: var(--av-ink); font-size: 1.2rem; letter-spacing: -.02em; }
.about-card p { margin: 0; color: #334b38; font-size: 1rem; line-height: 1.72; }
.about-card p + p { margin-top: .85rem; }
.about-card--accent { border-color: #c8ddc6; }

@media (max-width: 900px) {
  .about-lead { grid-template-columns: 1fr; }
  .about-sections { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .page-id-16 .content-page { padding-top: 2rem; }
  .about-lead { padding: 1.2rem; border-radius: 16px; }
  .about-facts { grid-template-columns: 1fr; }
  .about-fact { min-height: 0; }
}

.page-id-17 .content-page { padding-top: clamp(2.5rem,5vw,4.5rem); }
.page-id-17 .content-page > h1 { max-width: 1100px; margin-bottom: 1.4rem; padding-bottom: 0; border-bottom: 0; }
.page-id-17 .wp-block-post-content { max-width: none; }
.contacts-layout { display: grid; width: 100%; max-width: 1100px; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 1rem; margin: 0 auto; }
.contacts-card { padding: clamp(1.4rem,3vw,2rem); border: 1px solid #c8ddc6; border-radius: 20px; background: var(--av-about-gradient); box-shadow: 0 16px 45px rgba(15,23,42,.05); }
.contacts-card h2 { margin: 0 0 1.2rem; color: var(--av-ink); font-size: 1.25rem; letter-spacing: -.02em; }
.contacts-list { display: grid; gap: 1.1rem; margin: 0; }
.contacts-item dt { margin: 0 0 .28rem; color: var(--av-green-dark); font-size: .78rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.contacts-item dd { margin: 0; color: #334b38; font-size: 1rem; line-height: 1.6; }
.contacts-item a { color: var(--av-ink); font-weight: 680; text-decoration-color: rgba(47,121,53,.35); }
.contacts-item a:hover { color: var(--av-green); }
.contacts-phone { display: block; width: fit-content; font-size: 1.12rem; }
.contacts-phone + .contacts-phone { margin-top: .2rem; }
.contacts-purchase { grid-column: 1 / -1; }
.contacts-purchase .contacts-card h2 { margin: 0; font-size: 1.25rem; }
.marketplace-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .7rem; }
.marketplace-link { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .7rem 1.15rem; border-radius: 12px; color: #fff; font-weight: 750; text-decoration: none; box-shadow: 0 8px 22px rgba(15,23,42,.11); transition: transform .18s ease, box-shadow .18s ease; }
.marketplace-link:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15,23,42,.16); }
.marketplace-link--wb { background: linear-gradient(135deg,#a728c1,#7a2cd0); }
.marketplace-link--ozon { background: #1265e5; }
.home-marketplaces { grid-column: auto; grid-template-columns: 1fr; gap: .9rem; max-width: 520px; margin: 1.25rem 0 0; padding: 1.05rem 1.1rem; border-radius: 16px; }
.home-marketplaces h2 { font-size: 1.08rem; line-height: 1.3; }
.home-marketplaces p { margin-top: .35rem; font-size: .88rem; line-height: 1.45; }
.home-marketplaces .marketplace-links { justify-content: flex-start; }
.home-marketplaces .marketplace-link { min-height: 42px; padding: .55rem .9rem; font-size: .9rem; }
.home-marketplaces:not(.home-b2b) .marketplace-link { width: 124px; }
.home-catalog-link { background: var(--av-green); }
.home-catalog-link:hover { background: var(--av-green-dark); }

@media (max-width: 800px) {
  .contacts-layout { grid-template-columns: 1fr; }
  .marketplace-links { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .page-id-17 .content-page { padding-top: 2rem; }
  .contacts-card { padding: 1.2rem; border-radius: 16px; }
  .marketplace-links { display: grid; }
}

.page-id-18 .content-page { padding-top: clamp(2.5rem,5vw,4.5rem); }
.page-id-18 .content-page > h1 { max-width: 1100px; margin-bottom: 1.4rem; padding-bottom: 0; border-bottom: 0; }
.page-id-18 .wp-block-post-content { max-width: none; }
.representatives-grid { display: grid; width: 100%; max-width: 1100px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin: 0 auto; }
.representative-card { display: flex; min-width: 0; flex-direction: column; padding: clamp(1.4rem,3vw,2rem); border: 1px solid #c8ddc6; border-radius: 20px; background: var(--av-about-gradient); box-shadow: 0 16px 45px rgba(15,23,42,.05); }
.representative-card__country { width: fit-content; margin: 0 0 1rem; padding: .38rem .68rem; border-radius: 999px; background: rgba(47,121,53,.12); color: var(--av-green-dark); font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.representative-card h2 { margin: 0 0 .55rem; color: var(--av-ink); font-size: clamp(1.35rem,2vw,1.65rem); letter-spacing: -.025em; }
.representative-card__role { margin: 0 0 1.35rem; color: #526858; font-size: .9rem; line-height: 1.55; }
.representative-details { display: grid; gap: 1rem; margin: 0; }
.representative-details dt { margin: 0 0 .25rem; color: var(--av-green-dark); font-size: .76rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.representative-details dd { margin: 0; color: #334b38; line-height: 1.6; }
.representative-details a { color: var(--av-ink); font-weight: 680; text-decoration-color: rgba(47,121,53,.35); }
.representative-details a:hover { color: var(--av-green); }
.representative-card__action { display: inline-flex; width: fit-content; min-height: 44px; align-items: center; justify-content: center; margin-top: 1.4rem; padding: .65rem 1rem; border-radius: 11px; background: var(--av-green); color: #fff; font-weight: 750; text-decoration: none; }
.representative-card__action:hover { background: var(--av-green-dark); color: #fff; }

@media (max-width: 760px) {
  .representatives-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .page-id-18 .content-page { padding-top: 2rem; }
  .representative-card { padding: 1.2rem; border-radius: 16px; }
}

.catalog-shell { padding-top: clamp(1.75rem, 3.5vw, 2.75rem); padding-bottom: 4rem; }
.catalog-heading {
  margin-bottom: 1.65rem;
}
.catalog-heading__copy { max-width: 700px; }
.catalog-heading h1 { max-width: 850px; margin: .35rem 0 0; letter-spacing: -.035em; }
.catalog-heading__description { max-width: 600px; margin: 0 0 .15rem; color: var(--av-muted); line-height: 1.7; }
.catalog-kicker { margin: 0; color: var(--av-green); font-size: .82rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }

.category-chips,
.catalog-category-filters .wc-block-product-filter-chips__items {
  display: flex;
  gap: .5rem;
  margin: 0 0 1.75rem;
  padding: 0 0 .35rem;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}
.category-chips::-webkit-scrollbar,
.catalog-category-filters .wc-block-product-filter-chips__items::-webkit-scrollbar { display: none; }
.category-chips a,
.catalog-category-filters .wc-block-product-filter-chips__item {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  white-space: nowrap;
  padding: .55rem 1rem;
  border: 1px solid #dbe4de;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.category-chips a:hover,
.catalog-category-filters .wc-block-product-filter-chips__item:hover { border-color: rgba(34,123,42,.45); color: var(--av-green); }
.catalog-category-filters .wc-block-product-filter-chips__item:focus {
  outline: none !important;
  box-shadow: none !important;
}
.catalog-category-filters .wc-block-product-filter-chips__item:focus-visible {
  outline: 2px solid rgba(34,123,42,.55) !important;
  outline-offset: 3px;
}
.category-chips a.is-active,
.catalog-category-filters .wc-block-product-filter-chips__item[aria-checked="true"],
.catalog-category-filters .catalog-all-products[aria-checked="true"] {
  border-color: #b6ceb4;
  background: var(--av-about-gradient);
  color: var(--av-green-dark);
  box-shadow: inset 0 0 0 1px rgba(47,121,53,.05);
}
.catalog-category-filters { margin-bottom: 1.75rem; }
.catalog-category-filters .wp-block-woocommerce-product-filter-taxonomy { width: 100%; }
.catalog-category-filters .wc-block-product-filter-chips__fieldset { margin: 0; padding: 0; border: 0; }
.catalog-category-filters .wc-block-product-filter-chips__items { margin-bottom: 0; }

.catalog-category-menu {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .6rem;
  width: 100%;
}
.catalog-category-menu button {
  width: 100%;
  min-height: 46px;
  padding: .65rem .85rem;
  border: 1px solid #d7e2d9;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.catalog-category-menu button:hover { border-color: rgba(47,121,53,.48); color: var(--av-green-dark); }
.catalog-category-menu button:focus { outline: none; }
.catalog-category-menu button:focus-visible { outline: 2px solid rgba(47,121,53,.55); outline-offset: 3px; }
.catalog-category-menu__all[aria-pressed="true"],
.catalog-category-menu__group:has(.catalog-category-menu__choice[aria-checked="true"]) > [data-category-toggle],
.catalog-category-menu__choice[aria-checked="true"] {
  border-color: #9fc59e;
  background: var(--av-about-gradient);
  color: var(--av-green-dark);
  box-shadow: inset 0 0 0 1px rgba(47,121,53,.08);
}
.catalog-category-menu__group { position: relative; min-width: 0; }
.catalog-category-menu__trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
}
.catalog-category-menu__trigger span:first-child { min-width: 0; }
.catalog-category-menu__chevron {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}
.catalog-category-menu__group.is-open .catalog-category-menu__chevron { transform: translateY(2px) rotate(225deg); }
.catalog-category-menu__panel {
  position: absolute;
  top: calc(100% + .55rem);
  left: 0;
  z-index: 30;
  display: grid;
  width: max-content;
  min-width: max(100%, 230px);
  max-width: min(330px, calc(100vw - 2rem));
  gap: .42rem;
  padding: .55rem;
  border: 1px solid #d7e2d9;
  border-radius: 14px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 16px 38px rgba(34,60,40,.15);
}
.catalog-category-menu__panel[hidden] { display: none; }
.catalog-category-menu__panel .catalog-category-menu__choice {
  min-height: 42px;
  text-align: left;
}

.catalog-layout {
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: flex-start !important;
  gap: 1.75rem !important;
  transition: grid-template-columns .26s ease, gap .26s ease;
}
.catalog-layout > .wp-block-column { min-width: 0; }
.catalog-layout > .wp-block-column:first-child {
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity .18s ease, visibility 0s linear;
}
.catalog-shows-all .catalog-layout,
.catalog-page-shows-all .catalog-layout { grid-template-columns: 0 minmax(0, 1fr); gap: 0 !important; }
.catalog-shows-all .catalog-layout > .wp-block-column:first-child,
.catalog-page-shows-all .catalog-layout > .wp-block-column:first-child {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .14s ease, visibility 0s linear .26s;
}
.catalog-sidebar {
  position: sticky;
  top: 1.25rem;
  padding: 1.25rem;
  border: 1px solid #dfe6e1;
  border-radius: 16px;
  background: #fff;
}
.catalog-sidebar__title { margin: 0 0 1.2rem !important; font-size: 1rem !important; }
.catalog-sidebar .wc-block-product-filter-taxonomy { margin: 0; }
.catalog-sidebar label { color: #334155; font-size: .9rem; }
.catalog-sidebar .wc-block-product-filter-taxonomy__header { font-size: .9rem; font-weight: 700; }
.catalog-sidebar .wp-block-woocommerce-product-filter-attribute + .wp-block-woocommerce-product-filter-attribute { margin-top: 1.35rem; padding-top: 1.35rem; border-top: 1px solid #edf1ee; }
.catalog-sidebar .wp-block-woocommerce-product-filter-checkbox-list fieldset { margin: 0; padding: 0; border: 0; }
.catalog-sidebar .wp-block-woocommerce-product-filter-checkbox-list legend.screen-reader-text {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 0 .7rem !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  color: var(--av-ink);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.3;
}
.catalog-sidebar .wc-block-product-filter-checkbox-list__items {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.catalog-sidebar .wc-block-product-filter-checkbox-list__item { margin: 0; }
.catalog-sidebar .wc-block-product-filter-checkbox-list__label {
  position: relative;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: .5rem .85rem;
  border: 1px solid #dbe4de;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.catalog-sidebar .wc-block-product-filter-checkbox-list__input-wrapper {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.catalog-sidebar .wc-block-product-filter-checkbox-list__label:hover {
  border-color: rgba(47,121,53,.4);
  color: var(--av-green-dark);
}
.catalog-sidebar .wc-block-product-filter-checkbox-list__label:has(input:checked) {
  border-color: #b6ceb4;
  background: var(--av-about-gradient);
  color: var(--av-green-dark);
  box-shadow: inset 0 0 0 1px rgba(47,121,53,.05);
}
.catalog-sidebar .wc-block-product-filter-checkbox-list__label:has(input:focus-visible) {
  outline: 2px solid rgba(47,121,53,.55);
  outline-offset: 3px;
}
.catalog-sidebar .wc-block-product-filter-checkbox-list__text-wrapper { gap: .3rem; }
.catalog-sidebar .wc-block-product-filter-checkbox-list__count { color: var(--av-muted); font-size: .8rem; }

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .875rem;
  min-height: 42px;
  margin: 0 0 1.15rem;
}
.catalog-toolbar > * { margin-block: 0; }
.catalog-toolbar > [data-wp-router-region]:has(> .woocommerce-result-count[hidden]) { display: none; }
.catalog-toolbar p { margin: 0; color: var(--av-muted); font-size: .9rem; }
.catalog-filter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
  min-height: 42px;
  padding: .5rem .1rem;
  border: 0;
  background: transparent;
  color: var(--av-ink);
  font: inherit;
  font-weight: 700;
  text-align: start;
  cursor: pointer;
}
.catalog-filter-toggle::after {
  content: "";
  flex: 0 0 .45rem;
  height: .45rem;
  margin-inline-end: .3rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.catalog-filter-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
.catalog-filter-toggle:hover { color: var(--av-green-dark); }
.catalog-sidebar .catalog-filter-toggle + fieldset legend.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
.catalog-filter-toggle[aria-expanded="false"] + fieldset { display: none; }
.catalog-sidebar:has(.catalog-filter-toggle) .wp-block-woocommerce-product-filter-attribute + .wp-block-woocommerce-product-filter-attribute {
  margin-top: .35rem;
  padding-top: .35rem;
}
.catalog-sidebar .catalog-filter-toggle[aria-expanded="true"] + fieldset { padding-block: .2rem .35rem; }
.catalog-selected-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
}
.catalog-selected-filters[hidden], .catalog-back-to-top[hidden] { display: none !important; }
.catalog-selected-filters__link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 36px;
  padding: .3rem .65rem;
  border: 1px solid #b6ceb4;
  border-radius: 9px;
  background: var(--av-about-gradient);
  color: var(--av-green-dark);
  font-size: .86rem;
  line-height: 1.25;
  text-decoration: none;
}
.catalog-selected-filters__link span { font-size: 1.15rem; line-height: 1; }
.catalog-selected-filters__link:hover { border-color: var(--av-green); }
.catalog-selected-filters__reset {
  border-color: transparent;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.catalog-back-to-top {
  position: fixed;
  z-index: 20;
  inset-inline-end: max(1rem, env(safe-area-inset-right));
  inset-block-end: calc(1rem + env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #b6ceb4;
  border-radius: 11px;
  background: #fff;
  color: var(--av-green-dark);
  box-shadow: 0 3px 14px rgba(34, 56, 40, .14);
  font: 700 1.35rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.catalog-back-to-top:hover { background: var(--av-about-gradient); border-color: var(--av-green); }
.catalog-back-to-top:focus-visible, .catalog-filter-toggle:focus-visible, .catalog-selected-filters__link:focus-visible {
  outline: 2px solid var(--av-green);
  outline-offset: 3px;
}
.catalog-toolbar select {
  min-height: 40px;
  padding: .45rem 2.25rem .45rem .75rem;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background-color: #fff;
  font-size: .875rem;
}

.wc-block-product-template { gap: 1rem !important; }
.wc-block-product-template > li {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dfe6e1;
  border-radius: 16px;
  background: linear-gradient(145deg, #e2efdf 0%, #eef6ec 44%, #fff 100%);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.wc-block-product-template > li:hover {
  transform: translateY(-2px);
  border-color: rgba(34,123,42,.3);
  box-shadow: var(--av-shadow);
}
.wc-block-product-template > li:focus-within {
  border-color: rgba(47,121,53,.55);
  box-shadow: 0 0 0 3px rgba(47,121,53,.14), var(--av-shadow);
}
.wc-block-components-product-image {
  position: relative;
  display: flex;
  height: auto;
  aspect-ratio: 3 / 4;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  overflow: hidden;
  background: transparent;
}
.wc-block-components-product-image a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.wc-block-product-template .wc-block-components-product-image img {
  display: block;
  width: 100%;
  height: 100% !important;
  aspect-ratio: auto;
  object-fit: contain !important;
  object-position: center;
}
.aversus-card-sku { margin: 1rem 1.2rem 0 !important; color: var(--av-green-dark); font-size: 1.05rem; font-weight: 750; line-height: 1.35; }
.wc-block-product-template .wp-block-post-title { margin: .45rem 1.2rem 1.35rem !important; font-size: 1.08rem !important; line-height: 1.38 !important; letter-spacing: -.015em; }
.wc-block-product-template .wp-block-post-title a { color: var(--av-ink); text-decoration: none; }
.wc-block-product-template .wp-block-post-title a::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  border-radius: 16px;
}
.wc-block-product-template .wp-block-post-title a:focus { outline: none; }

.wp-block-query-pagination { margin-top: 2rem; }

[data-aversus-continuous] .wp-block-query-pagination,
.catalog-loaded-products[hidden],
.catalog-load-more button[hidden] { display: none !important; }
.catalog-loaded-products {
  margin-block-start: var(--catalog-row-gap, 1rem) !important;
  margin-block-end: 0 !important;
  padding: 0;
  list-style: none;
}
.catalog-load-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-block-start: 1.5rem;
  text-align: center;
}
.catalog-load-more button {
  padding: .55rem 1.1rem;
  border: 1px solid var(--av-green-dark);
  border-radius: 9px;
  background: transparent;
  color: var(--av-green-dark);
  font: inherit;
  cursor: pointer;
}
.catalog-load-more button:disabled { opacity: .6; cursor: wait; }
.catalog-load-more [role="status"]:empty { margin: 0; }
.wp-block-query-pagination a, .wp-block-query-pagination .current {
  min-width: 40px;
  min-height: 40px;
  padding: .5rem .7rem;
  border: 1px solid #dbe4de;
  border-radius: 9px;
  background: #fff;
  text-align: center;
  text-decoration: none;
}

.product-detail { padding-top: 1.15rem; padding-bottom: 4rem; }
.product-detail__back-row { width: 100%; max-width: var(--wp--style--global--wide-size); margin: 0 auto 1.15rem; }
.product-detail > .wp-block-columns {
  align-items: flex-start;
  gap: 1rem !important;
  margin-block-start: 0 !important;
}
.product-detail__gallery,
.product-detail__summary { align-self: flex-start; }
.product-detail__back {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: .55rem;
  padding: .55rem 1rem;
  border: 1px solid #c8d9c5;
  border-radius: 999px;
  background: var(--av-about-gradient);
  color: var(--av-green-dark);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.product-detail__back span[aria-hidden="true"] { font-size: 1.25rem; line-height: 1; transition: transform .18s ease; }
.product-detail__back:hover { border-color: rgba(47,121,53,.45); color: var(--av-green-dark); box-shadow: 0 8px 24px rgba(17,70,43,.1); transform: translateY(-1px); }
.product-detail__back:hover span[aria-hidden="true"] { transform: translateX(-2px); }
.product-detail__back:focus-visible { outline: 2px solid rgba(47,121,53,.55); outline-offset: 3px; }
.product-detail__summary, .contact-panel { padding: clamp(1.1rem, 2vw, 1.75rem); border: 1px solid #dfe6e1; border-radius: 16px; background: #fff; }
.product-detail__identity { margin: 0 !important; }
.product-detail__identity .wp-block-post-title { margin: 0 !important; }
.product-detail__identity .wc-block-components-product-sku { margin: .45rem 0 0 !important; color: var(--av-green-dark); font-size: 1.02rem; font-weight: 750; }

.product-hero {
  display: grid;
  grid-template: "back back" auto "gallery identity" auto "gallery purchase" 1fr / minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: start;
  column-gap: clamp(1rem, 2.3vw, 2rem);
  row-gap: clamp(.85rem, 1.4vw, 1.25rem);
  padding: clamp(.9rem, 2vw, 1.55rem);
  border: 1px solid #dfe6e1;
  border-radius: 18px;
  background: #fff;
}
.product-hero > * { min-width: 0; margin-block: 0 !important; }
.product-hero__back { grid-area: back; }
.product-hero__back .product-detail__back {
  min-height: 40px;
  padding: .45rem .85rem;
  border-radius: 10px;
}
.product-hero__identity { grid-area: identity; padding-top: .35rem; }
.product-hero__identity h1.wp-block-post-title {
  margin: .75rem 0 0 !important;
  color: var(--av-ink);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 650;
  line-height: 1.25;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.product-hero__identity .wc-block-components-product-sku {
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  margin: 0 !important;
  padding: .28rem .65rem;
  border: 1px solid #d2e3d0;
  border-radius: 8px;
  background: #edf5eb;
}
.product-hero__identity .wp-block-post-terms__prefix {
  color: #506857;
  font-size: .81rem;
  font-weight: 600;
}
.product-hero__identity .sku {
  color: var(--av-green-dark);
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.25;
}
.product-hero .product-hero__gallery {
  --av-gallery-height: clamp(340px, 34vw, 490px);
  grid-area: gallery;
  box-sizing: border-box;
  padding: clamp(.6rem, 1.35vw, 1rem);
  border-radius: 14px;
  background: var(--av-about-gradient);
}
.product-hero__gallery .flex-viewport { border-radius: 9px; }
.product-hero__gallery .woocommerce-product-gallery:has(.woocommerce-product-gallery__image:only-child):not(:has(.flex-viewport)) {
  display: block;
}
.product-hero__gallery .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__image:only-child > a {
  width: 100%;
  height: var(--av-gallery-height);
}
.product-hero__purchase {
  grid-area: purchase;
  container-type: inline-size;
}
:is(.product-hero__purchase, .home-purchase, .contacts-purchase) .product-purchase { --av-purchase-gap: .65rem; }
:is(.product-hero__purchase, .home-purchase) .product-purchase {
  margin: 0;
  padding: clamp(.9rem, 1.6vw, 1.25rem);
  border: 1px solid #d8e5d6;
  border-radius: 14px;
  background: var(--av-about-gradient);
}
:is(.product-hero__purchase, .home-purchase, .contacts-purchase) .product-purchase__groups {
  grid-template-columns: 1fr;
  gap: var(--av-purchase-gap);
  margin-top: .9rem;
}
:is(.product-hero__purchase, .home-purchase, .contacts-purchase) .product-purchase__group {
  display: grid;
  grid-template-columns: var(--av-purchase-columns, minmax(0, 1fr) minmax(0, 1.15fr));
  align-items: center;
  gap: .5rem var(--av-purchase-gap);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
:is(.product-hero__purchase, .home-purchase, .contacts-purchase) .product-purchase__group + .product-purchase__group {
  padding-top: var(--av-purchase-gap);
  border-top: 1px solid #d8e5d6;
}
:is(.product-hero__purchase, .home-purchase, .contacts-purchase) .product-purchase__actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: var(--av-purchase-gap);
}
:is(.product-hero__purchase, .home-purchase, .contacts-purchase) .product-purchase__button {
  box-sizing: border-box;
  min-height: 46px;
  padding-inline: .5rem;
  white-space: normal;
}
:is(.product-hero__purchase, .home-purchase, .contacts-purchase) :is(.product-purchase__button--wildberries, .product-purchase__button--ozon) {
  border: 1px solid #cbd9ce;
  background: #fff;
}
:is(.product-hero__purchase, .home-purchase, .contacts-purchase) .product-purchase__button--wildberries { --av-purchase-button-color: #87199e; }
:is(.product-hero__purchase, .home-purchase, .contacts-purchase) .product-purchase__button--ozon { --av-purchase-button-color: #135bc5; }
@container (max-width: 420px) {
  :is(.product-hero__purchase, .home-purchase, .contacts-purchase) .product-purchase__group { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .product-hero {
    grid-template: "back" "identity" "gallery" "purchase" / minmax(0, 1fr);
  }
  .product-hero__identity { padding-top: 0; }
  .product-hero .product-hero__gallery { --av-gallery-height: clamp(230px, 80vw, 420px); }
}

.aversus-description {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(.75rem, 1.5vw, 1.1rem);
}
.aversus-description__section {
  grid-column: span 6;
  min-width: 0;
  padding: clamp(1rem, 2.25vw, 1.65rem);
  border: 1px solid #dfe6e1;
  border-radius: 16px;
  background: #fff;
}
.aversus-description__section[data-layout="lead"],
.aversus-description__section[data-layout="full"] { grid-column: 1 / -1; }
.aversus-description__section[data-layout="lead"] { background: var(--av-about-gradient); }
.aversus-description__section[data-layout="wide"] { grid-column: span 8; }
.aversus-description__section[data-layout="compact"] { grid-column: span 4; }
.aversus-description__section :is(h3, p) { margin: 0; }
.aversus-description__section h3 {
  color: var(--av-green-dark);
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.2;
}
.aversus-description__section h3 + p,
.aversus-description__value + .aversus-description__text { margin-top: .65rem; }
.aversus-description__value {
  color: var(--av-green);
  font-size: clamp(1.65rem, 3.5vw, 2.6rem);
  font-weight: 750;
  line-height: 1.1;
}
.aversus-description__text { color: var(--av-ink); line-height: 1.6; white-space: pre-line; }
.aversus-description__section :is(h3, p) { overflow-wrap: anywhere; }
@media (max-width: 650px) {
  .aversus-description__section[data-layout] { grid-column: 1 / -1; }
}
.product-detail__gallery {
  --av-gallery-height: clamp(430px, 42vw, 620px);
  flex: 0 0 500px !important;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
}
.product-detail__summary {
  position: relative;
  z-index: 2;
  flex: 1 1 0 !important;
  min-width: 0;
  margin-left: 0 !important;
}
.product-detail__gallery .wp-block-woocommerce-product-image-gallery {
  width: 100% !important;
  max-width: none !important;
  margin-block-end: 0 !important;
}
.product-detail__gallery .woocommerce-product-gallery { width: 100% !important; }
.product-detail__gallery .woocommerce-product-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  grid-template-rows: var(--av-gallery-height);
  gap: .65rem;
}
.product-detail__gallery .woocommerce-product-gallery__trigger { display: none !important; }
.product-detail__gallery .flex-viewport {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: var(--av-gallery-height) !important;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
}
.product-detail__gallery .woocommerce-product-gallery__wrapper,
.product-detail__gallery .woocommerce-product-gallery__image {
  height: 100% !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.product-detail__gallery .woocommerce-product-gallery__image > a {
  display: flex;
  width: auto;
  height: auto;
  align-items: center;
  justify-content: center;
  margin: auto;
  cursor: zoom-in;
  pointer-events: auto;
}
.product-detail__gallery .woocommerce-product-gallery__image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: var(--av-gallery-height);
  object-fit: contain;
}
.product-detail__gallery .zoomImg { display: none !important; pointer-events: none !important; }
.aversus-gallery-thumbs {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  height: var(--av-gallery-height);
  min-height: 0;
  grid-template-rows: 30px minmax(0, 1fr) 30px;
  gap: .35rem;
  pointer-events: auto;
}
.product-detail__gallery .flex-control-thumbs {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: .55rem;
  margin: 0;
  padding: 0 3px;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.product-detail__gallery .flex-control-thumbs::-webkit-scrollbar { display: none; }
.product-detail__gallery .flex-control-thumbs li {
  width: 76px !important;
  height: 76px;
  flex: 0 0 76px;
  margin: 0 !important;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.product-detail__gallery .flex-control-thumbs li:hover { border-color: rgba(47,121,53,.42); }
.product-detail__gallery .flex-control-thumbs li:has(img.flex-active) {
  border-color: var(--av-green);
  box-shadow: 0 0 0 2px rgba(47,121,53,.1);
}
.product-detail__gallery .flex-control-thumbs img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  opacity: 1;
}
.aversus-gallery-thumb-arrow,
.aversus-gallery-arrow {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--av-ink);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(15,23,42,.15);
  transition: opacity .2s ease, color .18s ease, background-color .18s ease;
}
.aversus-gallery-thumb-arrow {
  width: 34px;
  height: 28px;
  justify-self: center;
  font-size: 1rem;
}
.aversus-gallery-thumb-arrow:hover,
.aversus-gallery-arrow:hover { background: #fff; color: var(--av-green); }
.aversus-gallery-thumb-arrow:disabled { opacity: .3; cursor: default; }
.aversus-gallery-thumb-arrow.is-unneeded { visibility: hidden; pointer-events: none; }
.aversus-gallery-thumb-arrow[hidden] { display: none; }
.aversus-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 36px;
  height: 36px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
}
.aversus-gallery-arrow svg { display: block; width: 17px; height: 17px; }
.aversus-gallery-arrow--prev { left: var(--av-gallery-arrow-inset, 8px); }
.aversus-gallery-arrow--next { right: var(--av-gallery-arrow-inset, 8px); left: auto; }
.product-detail__gallery .flex-viewport:hover .aversus-gallery-arrow,
.product-detail__gallery .flex-viewport:focus-within .aversus-gallery-arrow {
  opacity: 1;
  pointer-events: auto;
}
.aversus-gallery-arrow[hidden] { display: none; }
.pswp__bg { background: #e4e8e5 !important; }
.contact-panel { margin-top: 1.15rem; background: var(--av-green-soft); }
.contact-panel a { font-weight: 700; }
.product-purchase h2 { margin: 0; font-size: 1.15rem; }
.product-purchase__groups { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: .7rem; margin-top: .75rem; }
.product-purchase__groups.is-single { grid-template-columns: 1fr; }
.product-purchase__group { padding: .82rem; border: 1px solid rgba(47,121,53,.18); border-radius: 12px; background: rgba(255,255,255,.55); }
.product-purchase__group h3 { margin: 0; color: #173e20; font-size: .95rem; line-height: 1.25; }
.product-purchase__group p { margin: .35rem 0 .72rem; color: #405447; font-size: .82rem; line-height: 1.4; }
.product-purchase__actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.product-purchase__group--retail .product-purchase__button { min-width: 0; flex: 1 1 0; }
.product-purchase__button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: .55rem .85rem;
  border-radius: 10px;
  color: var(--av-purchase-button-color, #fff);
  font-size: .84rem;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.product-purchase__button:hover { color: var(--av-purchase-button-color, #fff); box-shadow: 0 7px 18px rgba(15,23,42,.14); transform: translateY(-1px); }
.product-purchase__button--sales { background: var(--av-green); }
.product-purchase__button--wildberries { background: linear-gradient(135deg,#cb11ab,#8d26d6); }
.product-purchase__button--ozon { background: #1268f3; }
.product-purchase__button.is-disabled { opacity: .42; cursor: not-allowed; }
.woocommerce-Tabs-panel > h2:first-child { display: none; }
.product-documents { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.product-documents__card {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) auto;
  align-items: center;
  gap: .8rem;
  padding: .8rem .9rem;
  border: 1px solid #dbe5dc;
  border-radius: 12px;
  background: var(--av-green-soft);
  color: var(--av-ink);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.product-documents__card:hover { border-color: rgba(47,121,53,.42); box-shadow: 0 8px 22px rgba(15,23,42,.08); transform: translateY(-1px); }
.product-documents__icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 9px; background: #e5252a; color: #fff; font-size: .7rem; font-weight: 800; }
.product-documents__info { min-width: 0; }
.product-documents__info strong, .product-documents__info small { display: block; overflow-wrap: anywhere; }
.product-documents small { margin-top: .15rem; color: #617065; }
.product-documents__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.product-documents__view,
.product-documents__download,
.aversus-pdf-modal__download,
.document-page__download {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: .55rem .8rem;
  border: 1px solid var(--av-green);
  border-radius: 9px;
  font: inherit;
  font-size: .84rem;
  font-weight: 750;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
}
.product-documents__view { background: var(--av-green); color: #fff; }
.product-documents__view:hover { background: var(--av-green-dark); color: #fff; }
.product-documents__download { background: transparent; color: var(--av-green-dark); }
.product-documents__download:hover { background: rgba(255,255,255,.65); color: var(--av-green-dark); }

.document-library-page { padding-top: clamp(1.5rem,3vw,2.6rem); padding-bottom: 4rem; }
.document-library { display: grid; gap: 1.35rem; }
.document-library__hero { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(340px,.8fr); align-items: center; gap: clamp(1.25rem,3vw,3rem); padding: clamp(1.3rem,3vw,2.3rem); border: 1px solid #c8ddc6; border-radius: 18px; background: linear-gradient(120deg,#e5f0e3 0%,#f3f8f2 58%,#dcebd9 100%); box-shadow: 0 12px 34px rgba(17,70,43,.06); }
.document-library__intro h1 { margin: 0 0 .65rem; letter-spacing: -.035em; font-size: clamp(2rem,4vw,3.25rem); }
.document-library__intro p { max-width: 720px; margin: 0; color: #425249; line-height: 1.65; }
.document-library__search { display: grid; gap: .5rem; min-width: 0; padding: 1rem; border: 1px solid rgba(47,121,53,.2); border-radius: 14px; background: rgba(255,255,255,.58); }
.document-library__search > label { color: var(--av-ink); font-size: .92rem; font-weight: 750; }
.document-library__search-field { position: relative; }
.document-library__search-field svg { position: absolute; top: 50%; left: .9rem; width: 20px; height: 20px; fill: none; stroke: var(--av-green-dark); stroke-width: 1.8; stroke-linecap: round; transform: translateY(-50%); pointer-events: none; }
.document-library__search-field input { width: 100%; min-height: 48px; padding: .65rem 1rem .65rem 2.8rem; border: 1px solid #c4d5c6; border-radius: 11px; background: rgba(255,255,255,.9); color: var(--av-ink); font: inherit; }
.document-library__search-field input:focus { border-color: var(--av-green); outline: 0; box-shadow: 0 0 0 4px rgba(47,121,53,.11); }
.document-library__groups { display: grid; gap: 1.2rem; }
.document-library__group { overflow: hidden; border: 1px solid #cddfcb; border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(17,70,43,.06); }
.document-library__group[hidden], .document-library__list > li[hidden], .document-library__empty[hidden] { display: none !important; }
.document-library__group-heading { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; border-bottom: 1px solid #cddfcb; background: var(--av-about-gradient); }
.document-library__group-heading > div { display: flex; min-width: 0; align-items: center; gap: .8rem; }
.document-library__group-heading h2 { margin: 0; overflow-wrap: anywhere; font-size: clamp(1.05rem,2vw,1.3rem); }
.document-library__group-icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 10px; background: #e5252a; color: #fff; font-size: .68rem; font-weight: 850; }
.document-library__count { display: grid; min-width: 34px; height: 34px; place-items: center; padding: 0 .5rem; border-radius: 999px; background: rgba(255,255,255,.72); color: var(--av-green-dark); font-size: .82rem; font-weight: 800; }
.document-library__list { display: grid; gap: .65rem; margin: 0; padding: .85rem; list-style: none; }
.document-library__item { display: flex; min-width: 0; min-height: 68px; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem .9rem; border: 1px solid #e0e9e1; border-radius: 12px; background: linear-gradient(135deg,#f1f7ef 0%,#fff 88%); color: var(--av-ink); text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.document-library__item:hover { border-color: rgba(47,121,53,.42); color: var(--av-ink); box-shadow: 0 8px 22px rgba(15,23,42,.07); transform: translateY(-1px); }
.document-library__item-copy { min-width: 0; }
.document-library__item-copy strong, .document-library__item-copy small { display: block; overflow-wrap: anywhere; }
.document-library__item-copy strong { line-height: 1.4; }
.document-library__item-copy small { margin-top: .25rem; color: var(--av-muted); }
.document-library__item-arrow { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 50%; background: var(--av-green-soft); color: var(--av-green-dark); font-size: 1.05rem; transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.document-library__item:hover .document-library__item-arrow { background: var(--av-green); color: #fff; transform: translateX(2px); }
.document-library__empty { margin: 0; padding: 1.5rem; border: 1px solid #d9e4da; border-radius: 14px; background: #fff; color: var(--av-muted); text-align: center; }

.aversus-pdf-is-open { overflow: hidden; }
.aversus-pdf-modal[hidden] { display: none; }
.aversus-pdf-modal { position: fixed; z-index: 100000; inset: 0; display: grid; place-items: center; padding: clamp(.6rem,2vw,1.4rem); }
.aversus-pdf-modal__backdrop { position: absolute; inset: 0; background: rgba(36,45,39,.68); backdrop-filter: blur(3px); }
.aversus-pdf-modal__dialog { position: relative; display: grid; width: min(1180px,100%); height: min(900px,calc(100vh - 2rem)); grid-template-rows: auto minmax(0,1fr); overflow: hidden; border: 1px solid rgba(47,121,53,.24); border-radius: 16px; background: #eef2ef; box-shadow: 0 24px 70px rgba(15,23,42,.28); }
.aversus-pdf-modal__header { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-bottom: 1px solid #ced9d0; background: var(--av-green-soft); }
.aversus-pdf-modal__header h2 { overflow: hidden; margin: 0; font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.aversus-pdf-modal__actions { display: flex; flex: 0 0 auto; align-items: center; gap: .55rem; }
.aversus-pdf-modal__download { min-height: 36px; background: var(--av-green); color: #fff; }
.aversus-pdf-modal__download:hover { background: var(--av-green-dark); color: #fff; }
.aversus-pdf-modal__close { display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.76); color: var(--av-ink); font-size: 1.75rem; line-height: 1; cursor: pointer; }
.aversus-pdf-modal__close:hover { background: #fff; }
.aversus-pdf-modal__body { min-height: 0; padding: .6rem; }
.aversus-pdf-modal__body .aversus-pdf-viewer { height: 100%; }

.document-page { width: min(1480px,calc(100% - 2rem)); margin: 0 auto; padding: clamp(1.5rem,4vw,3rem) 0; }
.document-page__content { display: grid; gap: 1rem; }
.document-page__heading { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 1.5rem; min-height: 146px; padding: clamp(1rem,2.5vw,1.5rem); border: 1px solid rgba(47,121,53,.18); border-radius: 16px; background: linear-gradient(180deg,#dcebd9 0%,#edf5eb 100%); }
.document-page__heading > div { min-width: 0; }
.document-page__heading h1 { margin: 0; overflow-wrap: anywhere; font-size: clamp(1.65rem,3vw,2.45rem); }
.document-page__type { margin: 0 0 .3rem; overflow-wrap: anywhere; color: var(--av-green-dark); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.document-page__details { margin: .45rem 0 0; overflow-wrap: anywhere; color: #526258; }
.document-page__download-wrap { flex: 0 0 auto; margin: 0; }
.document-page__download { width: 190px; min-height: 44px; padding-inline: 1.1rem; background: var(--av-green); color: #fff; white-space: nowrap; }
.document-page__download:hover { background: var(--av-green-dark); color: #fff; }
.document-page__audio { display: grid; grid-template-columns: minmax(0, 1fr); gap: .55rem; min-width: 0; padding: 1rem 1.25rem; border: 1px solid rgba(47,121,53,.18); border-radius: 16px; background: var(--av-green-soft); scroll-margin-top: 6rem; }
.document-page__audio h2 { margin: 0; font-size: 1.1rem; }
.document-page__audio audio { display: block; width: 100%; }
.aversus-pdf-viewer { display: grid; height: min(76vh,920px); min-height: 620px; grid-template-rows: auto minmax(0,1fr) auto; overflow: hidden; border: 1px solid rgba(47,121,53,.18); border-radius: 16px; background: #d9dedb; }
.aversus-pdf-viewer:fullscreen { width: 100%; height: 100%; border: 0; border-radius: 0; }
.aversus-pdf-viewer__toolbar { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .7rem; border-bottom: 1px solid #cad5cc; background: var(--av-green-soft); }
.aversus-pdf-viewer__controls, .aversus-pdf-viewer__actions { display: flex; align-items: center; gap: .75rem; }
.aversus-pdf-viewer__group { display: flex; align-items: center; gap: .4rem; }
.aversus-pdf-viewer__toolbar button { display: inline-flex; min-width: 34px; min-height: 34px; align-items: center; justify-content: center; padding: .38rem .6rem; border: 1px solid rgba(47,121,53,.25); border-radius: 8px; background: rgba(255,255,255,.72); color: var(--av-ink); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.aversus-pdf-viewer__toolbar button:hover { border-color: var(--av-green); background: #fff; }
.aversus-pdf-viewer__toolbar button[data-pdf-action="fullscreen"].is-active { border-color: var(--av-green); background: var(--av-green); color: #fff; }
.aversus-pdf-viewer__toolbar button[data-pdf-action="fullscreen"].is-active:hover { background: var(--av-green-dark); }
.aversus-pdf-viewer__toolbar input { width: 54px; min-height: 34px; padding: .25rem; border: 1px solid rgba(47,121,53,.25); border-radius: 8px; background: #fff; text-align: center; }
.aversus-pdf-viewer__pages, [data-pdf-zoom] { color: #506157; font-size: .78rem; white-space: nowrap; }
.aversus-pdf-viewer__stage { position: relative; overflow: auto; padding: 16px; background: #5f6661; }
.aversus-pdf-viewer__pages-list { display: flex; min-width: 100%; flex-direction: column; align-items: center; gap: 16px; }
.aversus-pdf-viewer__page { position: relative; flex: 0 0 auto; overflow: hidden; background: #f7f8f7; box-shadow: 0 5px 20px rgba(0,0,0,.22); }
.aversus-pdf-viewer__page::after { position: absolute; inset: 0; display: grid; place-items: center; color: #7a847d; content: "Страница " attr(data-page-number); font-size: .82rem; }
.aversus-pdf-viewer__page.is-rendered::after { display: none; }
.aversus-pdf-viewer__page canvas { position: relative; z-index: 1; display: block; max-width: none; margin: 0; background: #fff; }
.aversus-pdf-viewer__status { position: absolute; z-index: 1; top: 50%; left: 50%; margin: 0; padding: .65rem .9rem; border-radius: 9px; background: rgba(255,255,255,.92); color: var(--av-ink); transform: translate(-50%,-50%); }
.aversus-pdf-viewer__error { margin: 0; padding: .65rem 1rem; border-top: 1px solid #d2ddd4; background: #fff4f4; color: #712629; font-size: .82rem; }
.document-page__empty { padding: 2rem; border-radius: 16px; background: var(--av-green-soft); text-align: center; }

.aversus-about { margin-top: 4rem !important; padding-top: clamp(2.5rem,5vw,4rem); padding-bottom: clamp(2.5rem,5vw,4rem); background: var(--av-green-dark); color: #fff; }
.aversus-about h2 { color: #fff; }
.site-footer {
  border-top: 1px solid #bfd4bd;
  background-color: #d8e7d6;
  background-image: url("assets/aversus-background.jpg");
  background-position: center 18%;
  background-size: cover;
  color: var(--av-ink);
}
.site-footer .has-white-color { color: var(--av-ink) !important; }
.site-footer a { color: var(--av-green-dark); font-weight: 700; }
.site-footer__inner { padding-top: 2.1rem; padding-bottom: 2.1rem; }
.site-footer__contacts h3, .site-footer__addresses h3 { margin-top: 0; margin-bottom: .6rem; }
.site-footer__contacts p, .site-footer__addresses p { margin: 0; line-height: 1.75; }
.site-footer__contacts { align-self: stretch; padding-right: 1.25rem; padding-left: 1.25rem; border-right: 1px solid rgba(47,121,53,.18); border-left: 1px solid rgba(47,121,53,.18); text-align: left; }
.site-footer__business-note { padding: 1.15rem; border: 1px solid rgba(47,121,53,.2); border-radius: 14px; background: rgba(255,255,255,.58); }
.site-footer__business-note h3 { margin-top: 0; margin-bottom: .55rem; }
.site-footer__business-note p { margin: 0; color: #31533a; line-height: 1.6; }

.aversus-topbar__inner,
.site-header__inner,
.site-footer__inner,
.home-page,
.catalog-shell,
.content-page,
.product-detail,
.document-page,
.wp-site-blocks > main.alignwide {
  padding-right: max(var(--av-page-gutter), env(safe-area-inset-right));
  padding-left: max(var(--av-page-gutter), env(safe-area-inset-left));
}

@media (max-width: 1500px) {
  .site-header__brand { min-width: 440px; }
  .site-header .wp-block-search { order: 2; width: min(34vw, 340px); margin-left: auto; }
  .site-header .wp-block-navigation { order: 3; width: 100%; margin-left: auto; justify-content: flex-end; }
  .site-header .wp-block-navigation > .wp-block-navigation__container { margin-left: auto; }
}
@media (max-width: 1200px) {
	.product-detail > .wp-block-columns {
		display: flex !important;
		width: 100%;
		max-width: 100%;
		flex-direction: column !important;
		flex-wrap: nowrap !important;
	}
	.product-detail__gallery,
	.product-detail__summary {
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 auto !important;
		min-width: 0 !important;
	}
	.product-detail__gallery { --av-gallery-height: min(72vw, 590px); }
	.product-detail__gallery .wp-block-woocommerce-product-image-gallery,
	.product-detail__gallery .woocommerce-product-gallery,
	.product-detail__gallery .flex-viewport { max-width: 100% !important; min-width: 0 !important; }
	.product-detail__summary h1,
	.product-detail__summary p { overflow-wrap: anywhere; }
}
@media (max-width: 900px) {
  .aversus-topbar__secondary { display: none; }
  .site-header__inner { gap: .75rem; }
  .site-header .wp-block-search { order: 3; width: 100%; }
  .site-header .wp-block-navigation { order: 2; width: auto; margin-left: auto; }
  .site-header__slogan { display: none; }
  .site-header__brand { min-width: auto; }
  .site-footer__contacts { padding: 0; border: 0; text-align: left; }
  .catalog-heading { align-items: flex-start !important; }
  .catalog-layout { flex-wrap: wrap !important; }
  .catalog-layout > .wp-block-column { flex-basis: 100% !important; }
  .catalog-sidebar { position: static; padding: 0; border: 0; background: transparent; }
  .catalog-sidebar__title { display: none; }
  .catalog-sidebar .catalog-attribute-filters { display: flex !important; width: 100%; }
  .catalog-sidebar .wc-block-product-filters__open-overlay {
    display: flex !important;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .65rem 1rem !important;
    border: 1px solid #b6ceb4 !important;
    border-radius: 12px;
    background: var(--av-about-gradient) !important;
    color: var(--av-green-dark) !important;
    font-size: .92rem !important;
    font-weight: 750;
    cursor: pointer;
  }
  .catalog-sidebar .wc-block-product-filters__overlay {
    position: fixed !important;
    z-index: 100000;
    inset: 0 !important;
    display: block !important;
    background: transparent !important;
    pointer-events: none !important;
    transition: background-color .25s ease !important;
  }
  .catalog-sidebar .wc-block-product-filters__overlay-wrapper { width: 100% !important; height: 100% !important; }
  .catalog-sidebar .wc-block-product-filters__overlay-dialog {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    max-height: 100% !important;
    flex-direction: column !important;
    background: var(--av-bg) !important;
    color: var(--av-ink) !important;
    transform: translateY(100%) !important;
    transition: transform .25s ease !important;
  }
  .catalog-sidebar .catalog-attribute-filters.is-overlay-opened .wc-block-product-filters__overlay {
    background: rgba(36,45,39,.38) !important;
    pointer-events: auto !important;
  }
  .catalog-sidebar .catalog-attribute-filters.is-overlay-opened .wc-block-product-filters__overlay-dialog { transform: translateY(0) !important; }
  .catalog-sidebar .wc-block-product-filters__overlay-header,
  .catalog-sidebar .wc-block-product-filters__overlay-footer { display: flex !important; flex: 0 0 auto; padding: 1rem !important; }
  .catalog-sidebar .wc-block-product-filters__overlay-header { justify-content: flex-end; border-bottom: 1px solid #dfe6e1; }
  .catalog-sidebar .wc-block-product-filters__close-overlay {
    min-height: 42px;
    padding: .55rem .8rem !important;
    border: 1px solid #d4dfd6 !important;
    border-radius: 10px;
    background: #fff !important;
    color: var(--av-ink) !important;
    font-weight: 700;
  }
  .catalog-sidebar .wc-block-product-filters__overlay-footer { border-top: 1px solid #dfe6e1; background: #fff; }
  .catalog-sidebar .wc-block-product-filters__apply { min-height: 44px; border-radius: 10px; background: var(--av-green); }
  .catalog-sidebar .wc-block-product-filters__overlay-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1rem .75rem;
    flex: 1 1 auto;
    padding: 1rem !important;
    overflow-y: auto !important;
  }
  .catalog-sidebar .wc-block-product-filters__overlay-content:has(.catalog-filter-toggle) {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .catalog-sidebar .wc-block-product-filters__overlay-content:has(.catalog-filter-toggle) .wp-block-woocommerce-product-filter-attribute {
    width: 100%;
    flex: 0 0 auto;
  }
  .catalog-sidebar .wc-block-product-filters__overlay-content:has(.catalog-filter-toggle) .wp-block-woocommerce-product-filter-attribute + .wp-block-woocommerce-product-filter-attribute {
    border-top: 1px solid #dfe6e1;
  }
  .catalog-sidebar .wp-block-woocommerce-product-filter-attribute,
  .catalog-sidebar .wp-block-woocommerce-product-filter-attribute + .wp-block-woocommerce-product-filter-attribute {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .catalog-sidebar .wc-block-product-filter-checkbox-list__items { gap: .4rem; }
  .catalog-sidebar .wc-block-product-filter-checkbox-list__label {
    min-height: 34px;
    padding: .42rem .68rem;
    font-size: .84rem;
  }
  .catalog-sidebar .wp-block-woocommerce-product-filter-checkbox-list legend.screen-reader-text {
    margin-bottom: .5rem !important;
    font-size: .86rem;
  }
  .home-hero { min-height: auto; padding-top: 2.5rem; padding-bottom: 2.5rem; }
}
@media (max-width: 600px) {
  .aversus-logo img { height: 40px !important; }
  .site-header .wp-block-navigation__responsive-container-open {
    display: flex !important;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #dbe4de;
    border-radius: 11px;
    background: #fff;
    color: var(--av-ink);
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
  }
  .site-header .wp-block-navigation__responsive-container-open svg { display: none; }
  .site-header .wp-block-navigation__responsive-container-open::before {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
    content: "";
  }
  .site-header .wp-block-navigation.aversus-mobile-menu-open .wp-block-navigation__responsive-container-open {
    border-color: var(--av-green);
    background: var(--av-green);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(47,121,53,.13);
  }
  .site-header .wp-block-navigation__responsive-container {
    position: absolute !important;
    top: calc(100% + .75rem) !important;
    right: 0 !important;
    bottom: auto !important;
    left: auto !important;
    display: none !important;
    width: calc(100vw - 2rem) !important;
    max-width: calc(100vw - 2rem) !important;
    height: 100px !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    color: var(--av-ink) !important;
  }
  .site-header .wp-block-navigation__responsive-container.is-menu-open { display: block !important; }
  .site-header .wp-block-navigation__responsive-close,
  .site-header .wp-block-navigation__responsive-dialog,
  .site-header .wp-block-navigation__responsive-container-content {
    width: 100% !important;
    height: 100px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .site-header .wp-block-navigation__responsive-container-close { display: none !important; }
  .site-header .wp-block-navigation__responsive-container-content {
    display: block !important;
    overflow: hidden;
    border: 1px solid #c7d8c8;
    border-radius: 12px;
    background: #f3f8f2;
    box-shadow: 0 8px 24px rgba(15,23,42,.08);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .site-header .wp-block-navigation__responsive-container-content::-webkit-scrollbar { display: none; }
  .site-header .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
    display: grid !important;
    width: 100%;
    min-width: 0;
    height: 98px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(2, 47px);
    align-items: center !important;
    gap: 0 !important;
    padding: 2px .2rem !important;
  }
  .site-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
    width: auto !important;
    min-width: 0;
    grid-column: span 2;
  }
  .site-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item:nth-child(n+4) {
    grid-column: span 3;
  }
  .site-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    padding: .45rem .15rem !important;
    font-size: clamp(.86rem, 3.8vw, 1rem);
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
  }
  .site-header__inner:has(.wp-block-navigation.aversus-mobile-menu-open) .wp-block-search {
    min-height: 100px;
    visibility: hidden;
    pointer-events: none;
  }
  .catalog-shell { padding-top: 1.6rem; }
  .catalog-heading h1 { font-size: 2rem !important; }
  .catalog-heading__description { font-size: .95rem; }
  .document-library-page { padding-top: 1.35rem; padding-bottom: 2.5rem; }
  .document-library__hero { grid-template-columns: minmax(0,1fr); gap: 1rem; }
  .document-library__search { padding: .85rem; }
  .document-library__group-heading { min-height: 64px; padding: .75rem .8rem; }
  .document-library__group-icon { width: 36px; height: 36px; flex-basis: 36px; }
  .document-library__list { padding: .65rem; }
  .document-library__item { min-height: 62px; padding: .7rem .75rem; }
  .catalog-toolbar { align-items: center !important; }
  .wc-block-product-template { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: .75rem !important; }
  .wc-block-product-template .wp-block-post-title { margin-left: .8rem !important; margin-right: .8rem !important; font-size: .95rem !important; }
  .wc-block-product-template .wp-block-post-terms, .aversus-card-sku { margin-left: .8rem !important; margin-right: .8rem !important; }
  .wc-block-product-template > li::before { display: none; }
  .home-hero { gap: 2rem; }
  .home-hero h1 { font-size: 2.1rem !important; }
  .home-hero__title span { display: inline; }
  .home-hero__title span:not(:last-child)::after { content: " "; }
  .home-hero__title-accent { display: inline; }
  .home-direction-grid { display: grid !important; grid-template-columns: 1fr; }
  .home-direction-card { min-height: 205px; }
  .wc-block-product-template .wp-block-read-more { margin: 1rem .8rem .8rem; padding: .6rem .75rem; }
	.product-detail { padding-top: .85rem; }
	.product-detail__gallery { --av-gallery-height: min(92vw, 500px); }
	.product-purchase__groups { grid-template-columns: 1fr; }
	.woocommerce-tabs ul.tabs.wc-tabs {
		display: flex !important;
		width: 100%;
		max-width: 100%;
		flex-wrap: nowrap;
		gap: .35rem;
		margin: 0 0 1rem !important;
		padding: 0 0 .2rem !important;
		overflow-x: auto;
		overflow-y: hidden;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.woocommerce-tabs ul.tabs.wc-tabs::-webkit-scrollbar { display: none; }
	.woocommerce-tabs ul.tabs.wc-tabs::before,
	.woocommerce-tabs ul.tabs.wc-tabs li::before,
	.woocommerce-tabs ul.tabs.wc-tabs li::after { display: none !important; }
	.woocommerce-tabs ul.tabs.wc-tabs li {
		display: block !important;
		width: auto !important;
		min-width: max-content;
		flex: 1 0 auto;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		background: transparent !important;
	}
	.woocommerce-tabs ul.tabs.wc-tabs li a {
		display: flex !important;
		min-height: 38px;
		align-items: center;
		justify-content: center;
		padding: .5rem .7rem !important;
		border: 1px solid #dbe4de;
		border-radius: 999px;
		background: #fff;
		font-size: .84rem;
		line-height: 1.1;
		white-space: nowrap;
	}
	.woocommerce-tabs ul.tabs.wc-tabs li.active a {
		border-color: #b6ceb4;
		background: var(--av-about-gradient);
		color: var(--av-green-dark);
	}
	.product-detail__gallery .woocommerce-product-gallery {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: var(--av-gallery-height) 82px;
		gap: .75rem;
	}
	.product-detail__gallery .flex-viewport { grid-column: 1; grid-row: 1; }
	.aversus-gallery-thumbs {
		grid-column: 1;
		grid-row: 2;
		display: block;
		width: 100%;
		height: 82px;
	}
	.product-detail__gallery .flex-control-thumbs { flex-direction: row; gap: .45rem; padding: 3px 0; overflow-x: auto; overflow-y: hidden; }
	.product-detail__gallery .flex-control-thumbs li { width: 72px !important; height: 72px; flex-basis: 72px; }
	.aversus-gallery-thumb-arrow { display: none; }
	.product-documents__card { grid-template-columns: 40px minmax(0,1fr); }
	.product-documents__icon { width: 40px; height: 40px; }
	.product-documents__actions { grid-column: 1 / -1; }
	.product-documents__view, .product-documents__download { flex: 1; }
	.aversus-pdf-modal { padding: 0; }
	.aversus-pdf-modal__dialog { width: 100%; height: 100%; border: 0; border-radius: 0; }
	.aversus-pdf-modal__header { padding: .6rem .7rem; }
	.aversus-pdf-modal__download { display: none; }
	.aversus-pdf-modal__body { padding: .25rem; }
	.document-page { width: 100%; padding-top: 1rem; padding-right: max(var(--av-mobile-gutter),env(safe-area-inset-right)); padding-left: max(var(--av-mobile-gutter),env(safe-area-inset-left)); }
	.document-page__heading { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: .9rem; }
	.document-page__heading h1 { font-size: clamp(1.35rem,7vw,1.8rem); }
	.document-page__download-wrap { width: 100%; }
	.document-page__download { width: 100%; }
	.aversus-pdf-viewer { height: 72vh; min-height: 480px; }
	.aversus-pdf-viewer__toolbar {
		display: grid;
		grid-template-columns: minmax(0,1fr) auto;
		align-items: stretch;
		gap: .8rem;
		padding: .75rem;
		overflow: visible;
	}
	.aversus-pdf-viewer__controls {
		display: grid;
		align-content: center;
		align-items: center;
		gap: .75rem;
	}
	.aversus-pdf-viewer__actions {
		display: grid;
		align-content: center;
		align-items: stretch;
		gap: .75rem;
	}
	.aversus-pdf-viewer__group { min-width: 0; gap: .35rem; }
	.aversus-pdf-viewer__toolbar button { min-width: 38px; min-height: 40px; }
	.aversus-pdf-viewer__actions button { min-width: 108px; padding-right: .55rem; padding-left: .55rem; }
	.aversus-pdf-viewer__toolbar input { width: 48px; min-height: 40px; }
	.aversus-pdf-viewer__stage { padding: 8px; }
	.aversus-pdf-viewer__pages-list { gap: 8px; }
}
@media (max-width: 1180px) {
  .catalog-category-menu { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wc-block-product-template { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 900px) {
  .catalog-layout { display: block !important; }
  .catalog-layout > .wp-block-column:first-child { margin-bottom: 1.25rem; }
  .catalog-shows-all .catalog-layout > .wp-block-column:first-child,
  .catalog-page-shows-all .catalog-layout > .wp-block-column:first-child { display: none; margin-bottom: 0; }
  .catalog-category-menu { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .catalog-category-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .catalog-category-menu__all { grid-column: 1 / -1; }
  .catalog-category-menu__panel { width: min(300px, calc(100vw - (2 * var(--av-mobile-gutter)))); min-width: 100%; }
  .catalog-category-menu__group:nth-child(odd) .catalog-category-menu__panel { right: 0; left: auto; }
}
@media (max-width: 410px) { .wc-block-product-template { grid-template-columns: 1fr !important; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; } }
