/* ===========================================================
   PHARMATAC — home page
   =========================================================== */

:root {
  --green-900: #00411f;
  --green-700: #346e4f;
  --green-accent: #56B983; /* Figma: dots/accents (Ellipse 2038/2040) */
  --green-b2b: #0f2419;
  --cream: #f7f3ea;
  --cream-2: #efeeea;
  --gray-bg: #eaeaea;
  --gray-border: #e2e2e0;
  --ink: #161616;
  --ink-soft: #4d4d4c;
  --text-gray: #767675;
  --white: #ffffff;
  --gold: #f0b429;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --container: 1416px;
  --font: 'Geist', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* ---- type scale (from Figma text styles) ---- */
  --h-xl-size: 78px; --h-xl-lh: 84%; --h-xl-track: -0.01em; --h-xl-weight: 600;
  --h-l-size: 52px;  --h-l-lh: 104%; --h-l-weight: 600;
  --h-m-size: 32px;  --h-m-lh: 120%; --h-m-weight: 600;
  --h-s-size: 24px;  --h-s-lh: 120%; --h-s-weight: 600;
  --h-xs-size: 20px; --h-xs-lh: 120%;
  --body-m-size: 16px; --body-m-semibold-lh: 120%; --body-m-regular-lh: 130%;
}

/* =========================================================
   TYPE SCALE UTILITY CLASSES (Figma: Desktop/Heading, Desktop/Body)
   ========================================================= */
.h-xl { font-size: var(--h-xl-size); line-height: var(--h-xl-lh); letter-spacing: var(--h-xl-track); font-weight: var(--h-xl-weight); }
.h-l  { font-size: var(--h-l-size);  line-height: var(--h-l-lh);  font-weight: var(--h-l-weight); }
.h-m  { font-size: var(--h-m-size);  line-height: var(--h-m-lh);  font-weight: var(--h-m-weight); }
.h-s  { font-size: var(--h-s-size);  line-height: var(--h-s-lh);  font-weight: var(--h-s-weight); }
.h-xs-semibold { font-size: var(--h-xs-size); line-height: var(--h-xs-lh); font-weight: 600; }
.h-xs-regular  { font-size: var(--h-xs-size); line-height: var(--h-xs-lh); font-weight: 400; }
.body-m-semibold { font-size: var(--body-m-size); line-height: var(--body-m-semibold-lh); font-weight: 600; }
.body-m-regular  { font-size: var(--body-m-size); line-height: var(--body-m-regular-lh); font-weight: 400; }

/* generic gray placeholder used wherever a real photo isn't wired up yet
   (will become an uploadable image field in WordPress) */
.ph-block {
  width: 100%;
  height: 100%;
  background: #d9d9d6;
  border-radius: inherit;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

button { font-family: inherit; cursor: pointer; }

input, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, background-color .15s ease;
}
.btn:hover { opacity: .92; }
.btn:active { transform: scale(.97); }

.btn--dark { background: var(--green-900); color: #fff; }
.btn--dark svg { stroke: #fff; }

.btn--outline {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--gray-border);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--gray-border);
  padding: 8px 14px;
  font-size: 13px;
}

.btn--sm { padding: 10px 16px; font-size: 13px; }
.btn--lg { padding: 16px 26px; font-size: 16px; }

/* ---------- eyebrow / section titles ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.eyebrow--light { color: #d8dfda; }
.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-accent);
  flex: none;
}

.section-title {
  font-size: var(--h-l-size);
  line-height: var(--h-l-lh);
  font-weight: var(--h-l-weight);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.section-title--wide { max-width: 900px; }
.section-title--light { color: #fff; }

.section-desc {
  color: var(--text-gray);
  font-size: 16px;
  margin: 8px 0 0;
  white-space: nowrap;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.section { padding: 88px 0; }
.section--gray { background: var(--gray-bg); }

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar { background: var(--cream); font-size: 13px; }
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 32px;
  color: var(--ink-soft);
}
.topbar__links { display: flex; gap: 24px; }
.topbar__links a:hover { color: var(--ink); }
.topbar__right { display: flex; align-items: center; gap: 20px; }
.topbar__phone { font-weight: 600; color: var(--ink); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: calc(1416px + 64px);
  margin: 0 auto;
  padding: 16px 32px;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  flex: none;
}
.logo__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-900);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.catalog-btn {
  flex: none;
  border-color: #346F4F;
  color: #346F4F;
  padding: 12px 16px;
  gap: 6px;
  font-size: 16px;
}

/* ---------- mega menu ---------- */
.megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 0 32px;
}
.megamenu__inner {
  width: 100%;
  max-width: 1416px;
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .14);
  display: flex;
  overflow: hidden;
  max-height: 72vh;
}
.megamenu__sidebar {
  width: 300px;
  flex: none;
  padding: 16px 12px;
  border-right: 1px solid var(--gray-border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.megamenu__sidebar-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--text-gray);
  padding: 10px 12px 6px;
  margin: 0;
}
.megamenu__sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.megamenu__sidebar-link:hover,
.megamenu__sidebar-link.is-active { background: var(--gray-bg); }
.megamenu__sidebar-icon { width: 20px; height: 20px; flex: none; display: flex; color: var(--text-gray); }
.megamenu__sidebar-link.is-active .megamenu__sidebar-icon { color: var(--green-700); }
.megamenu__chevron { margin-left: auto; flex: none; color: var(--text-gray); }

.megamenu__panel { flex: 1; padding: 24px 28px; overflow-y: auto; }
.megamenu__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px;
}
.megamenu__group h4 { font-size: 15px; font-weight: 700; margin: 0 0 12px; }
.megamenu__group a {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 4px 0;
  text-decoration: none;
}
.megamenu__group a:hover { color: var(--ink); }
.megamenu__all { color: var(--green-900) !important; font-weight: 600; margin-top: 6px; }
.megamenu__empty { color: var(--text-gray); font-size: 14px; margin: 0 0 12px; }

/* =========================================================
   BREADCRUMBS (shared across every page — must live here, not in a
   page-specific stylesheet, since legal pages don't load catalog.css)
   ========================================================= */
.site-header:has(~ main .breadcrumbs) { border-bottom: none; }
.breadcrumbs { background: #fff; border-top: 1px solid #A9A9A9; border-bottom: 1px solid #A9A9A9; }
.breadcrumbs__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  font-size: 13px;
  color: var(--text-gray);
}
.breadcrumbs__inner a:hover { color: var(--ink); }
.breadcrumbs__current { color: var(--ink); font-weight: 600; }

.search {
  flex: 1;
  display: flex;
  align-items: center;
  background: transparent;
  border: 1px solid #A9A9A9;
  border-radius: var(--radius-pill);
  padding: 6px;
  gap: 6px;
  min-width: 0;
  position: relative;
}
.search__input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
  color: var(--ink);
  min-width: 0;
}
.search__input::placeholder { color: #9a9a98; }
.search__btn { flex: none; }

.search__results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .1);
  max-height: 360px;
  overflow-y: auto;
  z-index: 60;
}
.search__result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--ink);
}
.search__result:hover { background: var(--gray-bg); }
.search__result .ph-block,
.search__result-thumb { width: 36px; height: 36px; border-radius: 8px; flex: none; object-fit: cover; }
.search__result-name { font-size: 14px; font-weight: 600; flex: 1; }
.search__result-price { font-size: 13px; color: var(--text-gray); flex: none; }
.search__results-empty { padding: 14px; font-size: 14px; color: var(--text-gray); }

.cart-btn-wrap { position: relative; flex: none; }
.cart-btn { flex: none; }
.cart-btn__count {
  background: var(--gray-bg);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* ---- mobile header controls (hidden on desktop) ---- */
.burger,
.header-search-toggle { display: none; }

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gray-border);
  background: #fff;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex: none;
  cursor: pointer;
}
.icon-btn:hover { background: var(--gray-bg); }

.burger {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gray-bg);
  border: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: none;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

/* =========================================================
   MOBILE MENU DRAWER
   ========================================================= */
.mnav { position: fixed; inset: 0; z-index: 200; }
.mnav[hidden] { display: none; }
.mnav__backdrop { position: absolute; inset: 0; background: rgba(10,15,12,.5); }
.mnav__panel {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: min(86vw, 360px);
  background: #fff;
  padding: 20px 24px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: translateX(0);
}
.mnav__head { display: flex; align-items: center; justify-content: space-between; }
.mnav__title { font-size: 18px; font-weight: 800; }
.mnav__close {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--gray-border); background: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.mnav__group { display: flex; flex-direction: column; gap: 2px; }
.mnav__label {
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-gray);
  margin: 0 0 8px;
}
.mnav__group a {
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--gray-border);
}
.mnav__group a:last-child { border-bottom: none; }
.mnav__phone {
  margin-top: auto;
  font-size: 18px;
  font-weight: 800;
  color: var(--green-900);
}

/* =========================================================
   HERO
   ========================================================= */
.hero { background: var(--white); position: relative; }

/* Outer wrapper carries the side gutter (padding). The inner box is the
   1416px-wide photo card itself and must have NO padding of its own:
   .hero__media is position:absolute + inset:0, which fills the padding box
   of its containing block — if padding lived here, the photo would ignore
   it and bleed under it anyway, leaving zero visible gutter on narrow/mid
   viewports where max-width hasn't kicked in yet. */
.hero__outer {
  width: 100%;
  max-width: calc(1416px + 64px);
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

/* full-bleed banner: photo fills the section, text overlays on top */
.hero__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1416 / 576;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: 24px;
}

.hero__text {
  position: relative;
  z-index: 2;
  max-width: 627px;
  padding: 56px 0 40px 40px;
}

.hero__title {
  font-size: var(--h-xl-size);
  line-height: var(--h-xl-lh);
  font-weight: var(--h-xl-weight);
  letter-spacing: var(--h-xl-track);
  margin: 0 0 20px;
}
.hero__title-accent { color: #494b49; }

.hero__desc {
  font-size: var(--body-m-size);
  line-height: var(--body-m-regular-lh);
  font-weight: 400;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 460px;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__tabbar-wrap {
  background: var(--white);
  position: relative;
  padding: 12px 0;
}
.hero__tabbar {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.tabbar {
  display: flex;
  flex: 1;
  gap: 8px;
  padding: 4px;
  background: var(--gray-bg);
  border-radius: calc(var(--radius-md) + 4px);
}

.tab {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 32px;
  cursor: pointer;
  color: var(--text-gray);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.tab--active {
  background: #fff;
  border-color: #d6d6d6;
  color: var(--ink);
}

.tab__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--text-gray);
}
.tab--active .tab__icon { background: var(--cream-2); color: var(--ink); }

.tab__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tab__text strong {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: inherit;
}
.tab__text em {
  font-style: normal;
  font-size: 13px;
  color: var(--text-gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* sticky consultation button — fixed bottom-right on every page */
.consult-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #346F4F;
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 16px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  cursor: pointer;
}
.consult-fab:hover { opacity: .92; }
.consult-fab svg { flex: none; }

@media (max-width: 640px) {
  .consult-fab { right: 16px; bottom: 16px; padding: 14px 18px; }
  .consult-fab-label { display: none; }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 64px;
  row-gap: 40px;
}
.about__head-left { grid-column: 1; grid-row: 1; align-self: end; }
.about__head-right { grid-column: 2; grid-row: 1; align-self: end; }
.about__body-left { grid-column: 1; grid-row: 2; }
.about__body-right { grid-column: 2; grid-row: 2; }

.directions { margin-top: 0; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.directions__count {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  max-width: 144px;
}
.directions__count-num { color: var(--ink); font-size: 16px; line-height: 1.2; font-weight: 600; flex: none; }
.directions__count-divider {
  width: 20px;
  flex: none;
  height: 1px;
  background-image: repeating-linear-gradient(to right, rgba(102, 104, 102, .6) 0, rgba(102, 104, 102, .6) 2px, transparent 2px, transparent 4px);
}
.directions__count-label {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .08em;
  color: #666866;
  white-space: nowrap;
}

.directions__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px;
  background: var(--gray-bg);
  border-radius: 16px;
}
.directions__list li {
  border-radius: 12px;
  cursor: pointer;
  transition: background-color .15s ease;
}
.directions__list li.is-active { background: #fff; }
.directions__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  color: inherit;
  text-decoration: none;
}
.directions__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
}
.directions__label {
  flex: 1;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 400;
  color: var(--ink);
}
.directions__list li.is-active .directions__label { font-weight: 600; }
.directions__arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.directions__arrow-icon--active { display: none; }
.directions__list li.is-active .directions__arrow-icon--active { display: block; }
.directions__list li.is-active .directions__arrow-icon--inactive { display: none; }

/* card image used only by the mobile slider (injected by main.js) */
.directions__card-media { display: none; }

.about__desc {
  max-width: 638px;
  font-size: var(--body-m-size);
  line-height: var(--body-m-regular-lh);
  font-weight: 400;
  color: #666866;
  margin: 0 0 28px;
}

.about__body-right,
.about__media {
  height: 100%;
}
.about__media img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border-radius: var(--radius-xl);
  object-fit: cover;
}

/* =========================================================
   CATEGORY GRID
   ========================================================= */
/* 4-column grid: card 1 spans 2 columns (row 1: 2+1+1),
   row 2 is 4 equal cards. Every card shares the same media height,
   regardless of its column span. */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cat-card {
  display: block;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,.08); }

.cat-card__media { height: 280px; border-radius: 20px; overflow: hidden; }
.cat-card__media .ph-block,
.cat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.cat-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}
.cat-card__body h3 { font-size: 16px; margin: 0 0 4px; font-weight: 600; line-height: 1.2; }
.cat-card__body span { font-size: 12px; color: var(--text-gray); line-height: 1.2; }

.cat-card__arrow {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #11251A;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-card__arrow svg { width: 20px; height: 20px; }

/* =========================================================
   404 PAGE (Figma 3031-54463 / mobile 2935-52363)
   ========================================================= */
.error404-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 96px 32px 140px;
}
.error404-art { width: 510px; max-width: 100%; height: auto; margin-bottom: 24px; }
.error404-title { margin: 0 0 8px; font-size: 32px; font-weight: 600; line-height: 1.2; }
.error404-desc { margin: 0 0 28px; font-size: 16px; line-height: 1.3; color: var(--text-gray); max-width: 548px; }
.error404-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.error404-actions .btn--dark { min-width: 218px; justify-content: center; background: #11251A; }

@media (max-width: 640px) {
  .error404-section { padding: 56px 20px 96px; }
  .error404-art { width: 320px; }
  .error404-title { font-size: 24px; }
  .error404-actions { flex-direction: column; width: 100%; }
  .error404-actions .btn { width: 100%; }
}

/* =========================================================
   PRODUCT GRID
   ========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--gray-bg);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.product-card__media {
  position: relative;
  height: 252px;
  padding: 8px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #ebebeb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__media img { width: 100%; height: 100%; object-fit: contain; }
.product-card__media .ph-block { width: 100%; height: 100%; }

.product-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
}
.badge--accent { background: var(--green-700); color: #fff; }
.badge--outline { background: #fff; color: var(--ink); }

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 8px;
}
.product-card__rating span { color: var(--text-gray); }

.product-card__title {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 6px;
}
.product-card__brand { font-size: 12px; line-height: 1.2; color: var(--text-gray); margin: 0 0 10px; }

.product-card__stock {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.2;
  color: var(--green-700);
  margin: 0 0 14px;
}
.product-card__stock span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green-700);
}

.product-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.product-card__price { font-weight: 600; font-size: 16px; line-height: 1.2; color: var(--ink); }

.product-card__buy {
  background: #11251A;
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 16px;
  gap: 4px;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.product-card__buy svg { stroke: #fff; flex: none; }

/* =========================================================
   WHY US
   ========================================================= */
.why-head {
  text-align: center;
  max-width: 970px;
  margin: 0 auto;
}
.why-head .eyebrow { justify-content: center; }
.why-head .section-title { margin: 0 auto; }

.why-section { padding: 58px 0; }
.why-section__inner { padding-left: 44px; padding-right: 44px; }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 638px;
  gap: 44px;
  margin-top: 40px;
  align-items: stretch;
}

.why-media { position: relative; border-radius: var(--radius-xl); overflow: hidden; }
.why-media img,
.why-media .ph-block { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 800/430; }

.why-cards { display: flex; flex-direction: column; gap: 8px; }
.why-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.why-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.why-card__head h3 { font-size: 20px; margin: 0; font-weight: 600; }
.why-card__dots { display: flex; align-items: center; gap: 4px; flex: none; }
.why-card__dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green-accent);
}
.why-card p { margin: 0; max-width: 514px; color: var(--text-gray); font-size: 16px; line-height: 1.3; }

/* =========================================================
   REVIEWS
   ========================================================= */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: #fff;
  border: 1px solid #A9A9A9;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.review-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.review-card__head strong { font-size: 16px; font-weight: 600; }
.review-card__head time { font-size: 12px; color: var(--text-gray); }

.stars { display: flex; gap: 0; }

.review-card__text {
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
  min-height: 63px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card__product {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gray-bg);
  border-radius: 12px;
  padding: 12px;
}
.review-card__product img {
  width: 48px; height: 48px;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
  flex: none;
}
.review-card__product div { flex: 1; min-width: 0; }
.review-card__product p {
  margin: 0 0 2px;
  font-size: 12px;
  color: var(--ink);
  line-height: 1.2;
}
.review-card__product strong { font-size: 12px; font-weight: 600; }
.review-card__product button {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid #A9A9A9;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
}

.review-nav { display: flex; gap: 10px; justify-content: center; margin-top: 36px; }
.review-nav__btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gray-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
}
.review-nav__btn--active { background: var(--green-900); border-color: var(--green-900); color: #fff; }

/* =========================================================
   B2B
   ========================================================= */
.b2b { background: var(--green-b2b); color: #fff; }
.b2b__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.b2b__head .eyebrow { justify-content: center; }
.b2b__head .section-title { text-align: center; }
.b2b__desc { color: #c7d1cb; font-size: 16px; margin: 12px 0 0; }

.b2b-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.b2b-feature {
  background: transparent;
  border: 1px solid #2e543f;
  border-radius: 20px;
  padding: 24px;
}
.b2b-feature__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #faf5ed;
  color: #161616;
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 20px;
}
.b2b-feature h3 { font-size: 20px; font-weight: 600; color: #fff; margin: 0 0 8px; }
.b2b-feature p { margin: 0; color: #d6d6d6; font-size: 16px; line-height: 1.3; }

.b2b-panel {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  display: grid;
  grid-template-columns: 670px 1fr;
  gap: 44px;
  align-items: stretch;
  color: var(--ink);
}

.b2b-form h3 { font-size: 24px; line-height: 1.2; margin: 0 0 32px; font-weight: 600; }

.field { display: block; margin-bottom: 16px; position: relative; }
.b2b-form textarea { height: 130px; resize: none; }
.field > span:first-child { display: block; font-size: 16px; font-weight: 400; line-height: 1.3; color: var(--ink); margin-bottom: 8px; }
.field__counter span { display: inline; font-size: inherit; margin: 0; }
.field input, .field textarea {
  width: 100%;
  border: none;
  background: #EBEBEB;
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
  outline: none;
  color: var(--ink);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #9a9a98; }
.field__counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-size: 12px;
  color: var(--text-gray);
  white-space: nowrap;
}

.b2b-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.b2b-form__footer p { margin: 0; font-size: 12px; color: var(--text-gray); }

.b2b-form__status {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  background: #e7f3ec;
  color: #1d5c3a;
  border: 1px solid #bfdccb;
}
.b2b-form__status.is-error { background: #fdeaea; color: #8f1f1f; border-color: #efc4c4; }

.b2b-panel__media { border-radius: 16px; overflow: hidden; }
.b2b-panel__media img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: #cfcfcd; }

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 88px 32px 0;
}

.footer-brand p { margin: 4px 0; font-size: 16px; color: #d6d6d6; }
.logo--footer { color: #fff; margin-bottom: 16px; }
.footer-social { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.footer-social a { display: flex; align-items: center; gap: 8px; font-size: 16px; color: #d6d6d6; }
.footer-social a:hover { color: #fff; }

.footer-col h4 {
  font-size: 12px;
  letter-spacing: .08em;
  color: #666866;
  margin: 0 0 20px;
  font-weight: 400;
}
.footer-col a { display: block; font-size: 16px; color: #fff; margin-bottom: 10px; }
.footer-col a:hover { opacity: .7; }
.footer-col > p { margin: 0; font-size: 16px; color: #d6d6d6; }
.footer-tel { font-weight: 700; font-size: 14px; color: #fff; margin-bottom: 4px; display: block; }

.footer-license {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 24px;
  padding: 24px 32px;
  margin-top: 120px;
  border-top: 1px solid #2a2a2a;
  font-size: 12px;
  color: #d6d6d6;
}
.footer-license__logo img { display: block; width: 48px; height: 48px; }
.footer-license__text p, .footer-license__addr p { margin: 3px 0; }
.footer-license__addr { text-align: right; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 32px;
  border-top: 1px solid rgba(226,226,226,.08);
  border-bottom: 1px solid rgba(226,226,226,.08);
  font-size: 12px;
  color: #666866;
}
.footer-bottom__links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom__links a:hover { color: #fff; }

.footer-disclaimer {
  padding: 24px 32px 44px;
}
.footer-disclaimer img {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================================================
   CART FLYOUT (header hover popover)
   ========================================================= */
.cart-flyout {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,.16);
  border: 1px solid var(--gray-border);
  padding: 20px;
  z-index: 150;
}
.cart-flyout[hidden] { display: none; }

.cart-flyout__title { font-weight: 700; font-size: 15px; margin: 0 0 14px; }

.cart-flyout__items { max-height: 320px; overflow-y: auto; }

.cart-flyout__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--gray-border);
}
.cart-flyout__item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.cart-flyout__item-thumb {
  width: 48px; height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex: none;
  background: var(--gray-bg);
}
.cart-flyout__item-thumb img,
.cart-flyout__item-thumb .ph-block { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

.cart-flyout__item > div { flex: 1; min-width: 0; }
.cart-flyout__item strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 3px;
}
.cart-flyout__item span { font-size: 12.5px; color: var(--text-gray); }

.cart-flyout__remove {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-flyout__remove:hover { background: var(--gray-bg); color: var(--ink); }

.cart-flyout__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 16px 0;
}
.cart-flyout__total strong { font-size: 16px; color: var(--ink); font-weight: 800; }

.cart-flyout__empty { font-size: 14px; color: var(--text-gray); text-align: center; padding: 24px 0; }
.cart-flyout__go { width: 100%; justify-content: center; }

/* Розмиття контенту сторінки, поки відкритий ховер-попап кошика.
   z-index 45: нижче за шапку (50), тому шапка і попап лишаються чіткими. */
.cart-flyout-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
html.flyout-open .cart-flyout-backdrop { opacity: 1; }

@media (max-width: 980px) {
  .cart-flyout { display: none !important; }
}

/* =========================================================
   ADD-TO-CART MODAL
   ========================================================= */
body.no-scroll { overflow: hidden; }

.cart-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cart-modal[hidden] { display: none; }

.cart-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 12, .55);
}

.cart-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 32px;
}

.cart-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.cart-modal__header h3 { font-size: 22px; font-weight: 800; margin: 0; }
.cart-modal__close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gray-border);
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.cart-modal__close:hover { background: var(--gray-bg); }

.cart-modal__body {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  margin-bottom: 24px;
}

.cart-modal__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-bg);
  aspect-ratio: 1/1;
}
.cart-modal__media img,
.cart-modal__media .ph-block { width: 100%; height: 100%; object-fit: cover; }

.cart-modal__stock {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.cart-modal__stock span { width: 6px; height: 6px; border-radius: 50%; background: var(--green-700); }

.cart-modal__name { font-size: 19px; font-weight: 700; margin: 0 0 4px; }
.cart-modal__brand { color: var(--text-gray); font-size: 14px; margin: 0 0 24px; }

.cart-modal__qty-row { display: flex; gap: 24px; }
.qty-field span { display: block; font-size: 13px; color: var(--text-gray); margin-bottom: 8px; }
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}
.qty-control button {
  width: 36px; height: 36px;
  border: none;
  background: #fff;
  font-size: 17px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}
.qty-control button:hover { background: var(--gray-bg); }
.qty-control input {
  width: 42px;
  height: 36px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--gray-border);
  border-right: 1px solid var(--gray-border);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.cart-modal__total {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
  color: var(--ink-soft);
  padding-top: 20px;
  border-top: 1px solid var(--gray-border);
  margin-bottom: 24px;
}
.cart-modal__total strong { font-size: 22px; color: var(--ink); font-weight: 800; }

.cart-modal__actions { display: flex; flex-direction: row-reverse; gap: 14px; }
.cart-modal__actions .btn { flex: 1; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: span 3; }
  .why-grid { grid-template-columns: 1fr; }
  .b2b-panel { grid-template-columns: 1fr; }
  .b2b-panel__media { order: -1; aspect-ratio: 16/9; }
}

@media (max-width: 980px) {
  .container { padding: 0 20px; }

  /* the one-line section subtitle overflows narrow viewports and drags the
     whole page sideways — let it wrap on mobile */
  .section-desc { white-space: normal; }

  /* ---- mobile header: burger + logo + search icon + cart icon ---- */
  .burger { display: flex; }
  .header-search-toggle { display: inline-flex; }
  .site-header__inner { position: relative; gap: 12px; padding: 16px 20px; }
  .catalog-btn { display: none; }
  .logo { margin-right: auto; }

  .search {
    position: absolute;
    top: calc(100% + 1px);
    left: 0; right: 0;
    max-width: none;
    border-radius: 0;
    padding: 12px 20px;
    background: #fff;
    border-bottom: 1px solid var(--gray-border);
    display: none;
    z-index: 20;
  }
  .site-header.search-open .search { display: flex; }

  .cart-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    position: relative;
  }
  .cart-btn__label { display: none; }
  .cart-btn__count {
    position: absolute;
    top: -4px; right: -4px;
    width: 18px; height: 18px;
    background: var(--green-900);
    color: #fff;
  }

  /* mobile hero keeps the desktop overlay pattern: the text lives INSIDE the
     rounded photo card (media is absolute inset:0 from the base rules), the
     card just switches to the tall mobile aspect ratio. */
  .hero__outer { padding: 0 20px; }
  .hero__inner { aspect-ratio: 366 / 629; margin-top: 12px; }
  .hero__text { padding: 28px 20px 0; max-width: none; }
  .hero__title { font-size: 40px; }
  .hero__desc { max-width: none; }
  .about__grid { grid-template-columns: 1fr; grid-template-rows: none; gap: 24px; }
  .about__head-left, .about__head-right, .about__body-left, .about__body-right {
    grid-column: 1; grid-row: auto; align-self: auto;
    min-width: 0; /* дає слайдеру напрямків реальну межу ширини */
  }

  /* «Про нас» on mobile (Figma 2900-32085): the directions turn into a
     horizontal card slider — each card carries its own photo on top and the
     icon/name/arrow row below. The big hover-image column is hidden. */
  .about__body-right { display: none; }
  .directions__list {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    background: transparent;
    padding: 0 0 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .directions__list::-webkit-scrollbar { display: none; }
  .directions__list li {
    flex: 0 0 78%;
    scroll-snap-align: center;
    background: var(--gray-bg);
    border-radius: 16px;
    padding: 8px;
  }
  .directions__list li.is-active { background: var(--gray-bg); }
  .directions__card-media {
    display: block;
    aspect-ratio: 1 / 0.95;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    margin-bottom: 8px;
  }
  .directions__link { background: #fff; border-radius: 12px; padding: 10px 12px; gap: 12px; }
  .directions__label { font-size: 16px; }
  .directions__list li .directions__arrow-icon--active { display: block; }
  .directions__list li .directions__arrow-icon--inactive { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card__media { height: 260px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  /* mobile tabbar = horizontal swipe slider under the hero (one card ≈ viewport) */
  .tabbar {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 8px;
    padding: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabbar::-webkit-scrollbar { display: none; }
  .tab {
    flex: 0 0 88%;
    scroll-snap-align: center;
    border-right: none;
    border-radius: 16px;
  }
  .tab--active { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
  .consult-btn { margin: 16px 12px; align-self: stretch; justify-content: center; }
  .b2b-features { grid-template-columns: 1fr; }
  .footer-license { grid-template-columns: 1fr; text-align: left; }
  .footer-license__addr { text-align: left; }
}

@media (max-width: 640px) {
  .topbar__links { display: none; }
  .section { padding: 56px 0; }
  .hero__title { font-size: 32px; }
  .section-title { font-size: 30px; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card__media { height: 220px; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .catalog-btn span { display: none; }

  .cart-modal__panel { padding: 20px; border-radius: var(--radius-lg); }
  .cart-modal__body { grid-template-columns: 1fr; gap: 20px; }
  .cart-modal__media { aspect-ratio: 16/10; }
  .cart-modal__total { justify-content: flex-start; border-top: none; padding-top: 0; }
  .cart-modal__actions { flex-direction: column; }
  .cart-flyout { width: calc(100vw - 40px); right: -12px; }

  /* ---- mobile footer: single column + collapsible nav ---- */
  .footer-top { grid-template-columns: 1fr; gap: 0; }
  .footer-brand { grid-column: auto; padding-bottom: 24px; }
  .footer-col:nth-child(5) { order: -1; padding-bottom: 24px; }   /* free-call block above nav */

  nav.footer-col { border-top: 1px solid rgba(255,255,255,.12); }
  nav.footer-col > h4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 18px 0;
    cursor: pointer;
    color: #cfcfcd;
    font-size: 14px;
    letter-spacing: 0;
  }
  nav.footer-col > h4::after {
    content: "";
    width: 9px; height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform .2s ease;
  }
  nav.footer-col.is-open > h4::after { transform: rotate(45deg); }
  nav.footer-col > a { display: none; }
  nav.footer-col.is-open > a { display: block; padding: 8px 0; }
  nav.footer-col.is-open { padding-bottom: 14px; }
}

/* «Доступність»: активний стан кнопки, коли шрифти збільшені */
.a11y-boost .topbar .btn--ghost { background: var(--ink); color: #fff; border-color: var(--ink); }
