/* ==========================================================================
   style.css — ФАРМПРОЕКТ
   Премиальный дизайн в эстетике Apple: выверенная типографика, чистые белые
   и мягкие серые поверхности, diffused-тени, скругления 24px и тактильные
   анимации на cubic-bezier(0.16, 1, 0.3, 1).

   Контракт с script.js:
   body.page-home | page-purina | page-provipet
   #site-header(.is-scrolled .is-hidden), #main, #site-footer, #modal-root
   [data-reveal] + .is-in        — появление блока (--d = шаг задержки)
   [data-reveal="photo"]         — раскрытие фотографии маской (--shift = сдвиг)
   [data-reveal="tile"]          — плитка бренда (--tx/--ty = смещение под курсором)
   [data-media] img + .is-loaded — плавное проявление картинки
   ========================================================================== */


/* ---------- 1. Токены ---------- */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-dark: #000000;
  --bg-dark-2: #1d1d1f;

  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --on-dark: #f5f5f7;

  --hair: #d2d2d7;
  --hair-soft: rgba(0, 0, 0, 0.04);
  --hair-dark: rgba(255, 255, 255, 0.12);

  --link: #0066cc;
  --cta: #1d1d1f;
  --cta-hover: #000000;
  --neutral: #ffffff;
  --neutral-hover: #f5f5f7;

  --purina: #c8102e;
  --provipet: #3f7d3a;
  --brand: var(--ink);
  --brand-green: #195d3a;
  --brand-forest: #195d3a;
  --brand-green-hover: #144e30;

  --font: "SF Pro Display", "SF Pro Text", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, "Segoe UI", Roboto, Arial, sans-serif;

  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --r-pill: 980px;

  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-pop: 0 24px 60px rgba(0, 0, 0, 0.18);

  --container: 1180px;
  --measure: 692px;
  --header-h: 56px;
  --pad: 24px;
}

.page-purina   { --brand: var(--purina); }
.page-provipet { --brand: var(--provipet); }
.page-home     { --brand: var(--ink); }

body.page-purina {
  background-color: #f8f6f0;
  padding-top: var(--header-h);
}
body.page-purina .site-header {
  background: #f8f6f0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
body.page-purina .site-header::before {
  background: #f8f6f0;
}


/* ---------- 2. База ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--header-h) + 48px);
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
  background-color: #ffffff;
  overflow-x: clip;
  width: 100%;
}

body {
  margin: 0;
  font: 400 17px/1.47 var(--font);
  letter-spacing: -0.012em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
button { font: inherit; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.045em;
  text-wrap: balance;
  color: var(--ink);
}

::selection { background: rgba(0, 102, 204, 0.2); color: #000; }
:focus-visible { outline: 2px solid #0066cc; outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -120px;
  transform: translateY(-200%);
  z-index: 400;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--ink);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.skip-link:focus {
  top: 12px;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

html.modal-open, html.nav-open { overflow: hidden; }
html.modal-open { padding-right: var(--scrollbar-w, 0px); }


/* ---------- 3. Каркас ---------- */

#main { display: flow-root; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: clamp(40px, 5vw, 72px) 0; }

.section-title {
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  max-width: 22ch;
}
.section-title--center {
  max-width: none;
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-lead {
  max-width: var(--measure);
  margin-top: 16px;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow--dark {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}
.page-hero .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}


/* ---------- 4. Появление блоков и фотографий ---------- */

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--d, 0) * 60ms);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

[data-reveal="tile"] { transform: translate3d(0, 26px, 0) scale(0.985); }
[data-reveal="tile"].is-in { transform: none; }

.hero-title {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-title.is-in { opacity: 1; transform: none; }

[data-media] img {
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-media] img.is-loaded { opacity: 1; }

.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--bg-soft);
  aspect-ratio: var(--ratio, 16 / 9);
  box-shadow: var(--shadow-card);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06) translate3d(0, var(--shift, 0px), 0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.photo[data-reveal] {
  opacity: 1;
  transform: none;
  clip-path: inset(6% 6% 6% 6% round var(--r-lg));
  transition: clip-path 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.photo[data-reveal].is-in { clip-path: inset(0 0 0 0 round var(--r-lg)); }
.photo[data-reveal].is-in img { transform: scale(1) translate3d(0, var(--shift, 0px), 0); }

.photo--hero { max-width: calc(var(--container) - var(--pad) * 2); margin: 0 auto clamp(40px, 5vw, 72px); }
.photo--banner { max-width: calc(var(--container) - var(--pad) * 2); margin: 0 auto; }


/* ---------- 5. Кнопки и ссылки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  color: #ffffff;
  background: var(--cta);
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.22s ease;
  will-change: transform;
}
.btn:hover {
  background: var(--cta-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.btn:active {
  transform: translateY(1px) scale(0.97) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  transition-duration: 0.1s !important;
}

.btn--neutral {
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--hair);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.btn--neutral:hover {
  background: var(--bg-soft);
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.btn--light {
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.btn--light:hover {
  background: var(--bg-soft);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.btn--ghost {
  color: var(--link);
  background: none;
  padding: 11px 4px;
  border-radius: 0;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.btn--ghost:hover {
  color: var(--link);
  background: none;
  text-decoration: underline;
  transform: none;
  opacity: 0.85;
}

.btn--glass {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn--glass:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.36);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.chev { flex: none; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
a:hover > .chev, a:hover .chev { transform: translateX(3px); }

/* Универсальные стили плавности и тактильного отклика для всех интерактивных элементов */
button:not(:disabled),
.btn,
[role="button"],
input[type="button"]:not(:disabled),
input[type="submit"]:not(:disabled),
.price-btn,
.hero-pill-btn,
.cx-action-btn,
.cat-tab,
.chip,
.pur-prog-tab,
.pur-cat-tab,
.pur-subgroup-pill,
.pur-btn-cat,
.pur-btn-contact,
.pur-cta-phone-btn,
.pur-book-btn-read,
.pur-book-btn-dl,
.pur-card-btn,
.pur-modal-btn-order,
.pur-modal-btn-ask,
.pur-modal-nav-btn:not(:disabled),
.modal-close,
.pur-modal-close,
.pur-viewer-close-btn,
.pur-viewer-arrow,
.ab-btn,
.brochure {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

button:not(.pur-viewer-arrow):active:not(:disabled),
.btn:active,
[role="button"]:active,
input[type="button"]:active:not(:disabled),
input[type="submit"]:active:not(:disabled),
.hero-pill-btn:active,
.cx-action-btn:active,
.price-btn:active,
.cat-tab:active,
.chip:active,
.pur-prog-tab:active,
.pur-cat-tab:active,
.pur-subgroup-pill:active,
.pur-btn-cat:active,
.pur-btn-contact:active,
.pur-cta-phone-btn:active,
.pur-book-btn-read:active,
.pur-book-btn-dl:active,
.pur-card-btn:active,
.pur-modal-btn-order:active,
.pur-modal-btn-ask:active,
.pur-modal-nav-btn:active:not(:disabled),
.modal-close:active,
.pur-modal-close:active,
.ab-btn:active {
  transform: scale(0.96) translateY(1px) !important;
  transition-duration: 0.1s !important;
}


/* ---------- 6. Шапка (Sticky Navbar) ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  min-height: var(--header-h);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: -50vw;
  right: -50vw;
  height: 3000px;
  background: #ffffff;
  pointer-events: none;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
html.nav-open .site-header { transform: none !important; }

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  z-index: 2;
}
.logo img { height: clamp(27px, 3.15vw, 31.5px); width: auto; max-width: 191px; object-fit: contain; display: block; }
.logo-mark {
  width: 13.5px;
  height: 13.5px;
  border-radius: 50%;
  flex: none;
  background: conic-gradient(from 45deg, var(--purina) 0 50%, var(--provipet) 50% 100%);
  transition: transform 0.6s var(--ease-out);
}
.logo:hover .logo-mark { transform: rotate(180deg); }
.logo-text strong {
  font-size: 16.85px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin: 0;
  padding: 0;
}
@media (min-width: 834px) {
  .main-nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
  }
}
.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  height: 32px;
  padding: 0 4px;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: 0;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  opacity: 1;
  transition: color 0.25s var(--ease);
}
.main-nav a:hover {
  color: var(--ink-2);
  background: none;
}
.main-nav a.is-active {
  font-weight: 600;
  color: var(--ink);
  background: none;
}
.main-nav a.is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 2px;
  right: 2px;
  height: 2px;
  background: var(--brand, #236938);
  border-radius: 2px;
}

.header-cta {
  padding: 7px 16px;
  font-size: 13px;
  border-radius: var(--r-pill);
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; margin: auto;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.35s var(--ease), background 0.3s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after  { top: 5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-5px) rotate(-45deg); }



/* ---------- 6a. Меню прайса в шапке ---------- */

.price-menu {
  position: relative;
  justify-self: end;
  display: inline-flex;
  align-items: center;
}
.price-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  background: #1d1d1f;
  color: #ffffff;
  font: 500 13px/1 var(--font);
  animation: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: background-color 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.price-btn:hover,
.price-menu.is-open .price-btn {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}
.price-btn:active {
  transform: translateY(1px) scale(0.97) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
  transition-duration: 0.1s !important;
}
.price-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0s;
  transform-origin: 50% 50%;
}
.price-menu:hover .price-btn svg,
.price-menu:focus-within .price-btn svg {
  transform: rotate(180deg);
  transition-delay: 0.18s;
}
.price-menu.is-open .price-btn svg {
  transform: rotate(180deg);
  transition-delay: 0s;
}

.price-doc-icon {
  display: none;
}


.price-drop {
  position: absolute;
  right: 0;
  top: 100%;
  padding-top: 10px;
  width: min(290px, calc(100vw - 24px));
  max-width: 100vw;
  display: grid;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(0.96);
  transform-origin: top right;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1) 0s,
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) 0s,
              visibility 0s 0.22s;
  isolation: isolate;
  z-index: 120;
}
.price-drop::before {
  content: "";
  position: absolute;
  inset: 10px 0 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--r-md);
  box-shadow: 0 20px 48px -8px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* При наведении курсора: мягкая комфортная задержка (180ms), чтобы меню не распахивалось моментально при случайном движении мыши */
.price-menu:hover .price-drop,
.price-menu:focus-within .price-drop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.18s,
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.18s,
              visibility 0s 0.18s;
}

/* При явном клике мыши (состояние .is-open): открывается сразу без ожидания задержки */
.price-menu.is-open .price-drop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1) 0s,
              transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) 0s,
              visibility 0s 0s;
}
.pd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.2s ease;
  will-change: transform;
}
.pd-item:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: translateX(4px);
}
.pd-item:active {
  background: rgba(0, 0, 0, 0.08);
  transform: translateX(2px) scale(0.98) !important;
  transition-duration: 0.1s !important;
}
.pd-ic {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #1d1d1f;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  flex: none;
  transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.pd-item:hover .pd-ic {
  background: var(--brand, #195d3a);
  transform: scale(1.05);
}
.pd-t {
  flex: 1;
  font-weight: 500;
  color: var(--ink);
}

/* Полное отключение плавающей кнопки и шторки прайса */
.price-fab,
.price-sheet {
  display: none !important;
}


/* ---------- 7. Главная: первый экран ---------- */

.hero-full {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 40px) 0 0;
  color: #ffffff;
  background: #0b0b0c;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; background: #000; }
.hero-img, .hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  animation: kenburns 24s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.02); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(100% 75% at 50% 42%, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.6) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.12) 32%, rgba(0, 0, 0, 0.72) 100%);
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: clamp(28px, 5vh, 56px);
}

.wordmark {
  display: block;
  width: min(92vw, 1120px);
  margin: 0 auto;
  color: #ffffff;
  perspective: none;
  line-height: 0;
}
.wordmark-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.4));
}
.wordmark-svg text {
  font-family: var(--font);
  font-size: 150px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.wm-fill { opacity: 0; transition: opacity 1.5s var(--ease) 1.55s; }
.wm-line {
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.4px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 4000;
  stroke-dashoffset: 4000;
}
.wordmark.is-ready.is-in .wm-fill { opacity: 1; }
.wordmark.is-ready.is-in .wm-line {
  animation: wmDraw 2.3s cubic-bezier(0.62, 0, 0.3, 1) 0.1s forwards, wmLineOut 1.2s var(--ease) 2.4s forwards;
}
@keyframes wmDraw { to { stroke-dashoffset: 0; } }
@keyframes wmLineOut { to { stroke-opacity: 0; } }

.ltr {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 45%, 0) rotateX(-80deg);
  transform-origin: 50% 100%;
  transition: opacity 0.9s var(--ease-out), transform 1.2s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 65ms + 150ms);
}
.wordmark.is-in .ltr { opacity: 1; transform: none; }

.hero-kicker {
  margin: clamp(12px, 2vw, 24px) 0 0;
  font-size: clamp(12px, 1.3vw, 15px);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  animation: rise 1s var(--ease-out) 1s forwards;
}
.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(26px, 5vh, 44px);
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  background: #1d1d1f;
  border: 0;
  border-radius: 99px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  animation: rise 1s var(--ease-out) 1.25s forwards;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-scroll:hover {
  background: #000000;
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.hero-scroll:active { transform: scale(0.97); }
.hero-scroll svg { stroke: #ffffff; animation: bob 2s ease-in-out infinite; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes bob { 50% { transform: translateY(3px); } }

.hero-badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100% - 48px, 1120px);
  margin: 0 auto clamp(24px, 4vh, 40px);
  padding: 0;
  list-style: none;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e5e5ea;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.hero-badge {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px clamp(16px, 2vw, 28px);
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  animation: rise 1s var(--ease-out) calc(1.5s + var(--i, 0) * 0.12s) forwards;
  border-right: 1px solid #e5e5ea;
  background: transparent;
}
.hero-badge:last-child { border-right: none; }
.hero-badge strong { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; color: #1d1d1f; }
.hero-badge span { font-size: 12px; color: #6e6e73; }

.hero-title {
  max-width: 22ch;
  font-size: clamp(38px, 6.4vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}


/* ---------- 7a. Карточки брендов (.tile) ---------- */

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(520px, 52vw, 640px);
  color: var(--ink);
  text-decoration: none;
  background: #ffffff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease);
}
.tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}
.tile-body {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 3.2vw, 44px) clamp(28px, 3.2vw, 44px) 0;
}
.tile-brand {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--panel-color, var(--brand));
}
.tile h2 {
  margin-bottom: 12px;
  max-width: 18ch;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.tile p {
  max-width: 38ch;
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}
.tile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.tile:hover .tile-link .chev { transform: translateX(4px); }

.tile-media {
  position: relative;
  flex: 1;
  min-height: 260px;
  margin-top: 12px;
  mix-blend-mode: normal;
}
.tile-media img {
  position: absolute;
  inset: 0 0 20px 0;
  width: 100%;
  height: calc(100% - 20px);
  object-fit: contain;
  object-position: center bottom;
  mix-blend-mode: normal;
  background: transparent;
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0) scale(1);
  transition: opacity 0.55s var(--ease), transform 0.8s var(--ease-out);
}
.tile:hover .tile-media img {
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0) scale(1.03);
}


/* ---------- 8. О компании ---------- */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.about--text { grid-template-columns: 1fr; }
.about--text .about-text { max-width: var(--measure); }

.about-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-text p {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--ink-2);
}
.about-text .section-title { margin-bottom: 20px; }

@media (min-width: 1069px) {
  .about--text .about-text {
    display: grid;
    grid-template-columns: 5fr 6fr;
    column-gap: clamp(40px, 6vw, 88px);
    align-items: start;
    max-width: none;
  }
  .about--text .about-text .section-title { grid-column: 1; margin-bottom: 0; }
  .about--text .about-text > p { grid-column: 2; }
  .about--text .about-text > p:last-child { margin-bottom: 0; }
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: 36px;
  border-top: 1px solid var(--hair-soft);
}
.fact strong {
  display: block;
  overflow: hidden;
  margin-bottom: 6px;
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.fact strong > span {
  display: inline-block;
  transform: translate3d(0, 105%, 0);
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 80ms + 120ms);
}
.fact.is-in strong > span { transform: none; }
.fact-label { display: block; font-size: 14px; line-height: 1.45; color: var(--ink-2); }


/* ---------- 9. Преимущества / Пункты ---------- */

.advantages, .why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(32px, 6vw, 80px);
  border-top: 1px solid var(--hair-soft);
}
.adv-card, .why-card {
  display: block;
  padding: 32px 0 36px;
  border-bottom: 1px solid var(--hair-soft);
}
.adv-card h3, .why-card h3 {
  margin-bottom: 8px;
  font-size: clamp(20px, 2vw, 24px);
  letter-spacing: -0.035em;
}
.adv-card p, .why-card p {
  max-width: 48ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
}

.why { padding: clamp(56px, 7vw, 104px) 0 0; }
.why .section-title { margin-bottom: 32px; }


/* ---------- 9б. Преимущества: Сцена при прокрутке (.story) ---------- */

.story {
  position: relative;
  height: calc(var(--n, 4) * 62vh + 100vh);
  background: #000000;
  color: #ffffff;
}
.story-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.story-grid {
  position: relative;
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.story-nav { margin: 0; padding: 0; list-style: none; }
.story-nav-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.28);
  transition: color 0.5s var(--ease), transform 0.5s var(--ease-out);
}
.story-nav-item span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.story-nav-item.is-past { color: rgba(255, 255, 255, 0.45); }
.story-nav-item.is-active { color: #ffffff; transform: translateX(10px); }

.story-stage { position: relative; min-height: clamp(300px, 44vh, 460px); }
.story-item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  filter: blur(8px);
  pointer-events: none;
  transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out), filter 0.7s var(--ease-out);
}
.story-item.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.story-item.is-past { transform: translate3d(0, -40px, 0); }

.story-num {
  position: absolute;
  top: -0.1em;
  right: 0;
  z-index: 0;
  font-size: clamp(300px, 40vw, 500px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.055em;
  color: #ffffff;
  opacity: 0.08;
  -webkit-text-stroke: 0;
  pointer-events: none;
  user-select: none;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.story-item h3 {
  position: relative;
  z-index: 1;
  max-width: 16ch;
  margin-bottom: 18px;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  color: #ffffff;
}
.story-item p {
  position: relative;
  z-index: 1;
  max-width: 46ch;
  margin: 0;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
}

.story-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
}
.story-progress i {
  display: block;
  height: 100%;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: 0 50%;
}


/* ---------- 10. Акция (Promo) ---------- */

.promo {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 4vw, 56px);
  background: var(--bg-soft);
  border-radius: var(--r-lg);
}
.promo-text .section-title { margin-bottom: 8px; }
.promo-note { margin: 18px 0 24px; font-size: 14px; color: var(--ink-3); }
.promo-text .btn { margin-top: 4px; }
.promo-media {
  display: block;
  overflow: hidden;
  border-radius: var(--r-md);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.promo-media:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}
.promo-media img { width: 100%; height: auto; }


/* ---------- 11. Прайс-листы и документы ---------- */

.price-section { padding: clamp(48px, 6vw, 88px) 0; }
.price-wrap {
  padding: clamp(32px, 5vw, 64px);
  color: var(--on-dark);
  background: var(--bg-dark);
  border-radius: var(--r-lg);
}
.price-wrap .section-title { margin-bottom: 32px; color: #ffffff; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 2.6vw, 32px);
  background: #ffffff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}
.price-card-text h3 {
  margin-bottom: 4px;
  font-size: clamp(19px, 2vw, 24px);
  letter-spacing: -0.035em;
}
.price-card-text p { margin: 0; font-size: 15px; color: var(--ink-2); }
.price-card .btn { flex: none; }
.price-card--wide { align-items: center; }

.price-grid .price-card {
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 190px;
  gap: 28px;
  color: #ffffff;
  background: var(--bg-dark-2);
  border: 1px solid var(--hair-dark);
  box-shadow: none;
}
.price-grid .price-card h3 { color: #ffffff; }
.price-grid .price-card p { color: #a1a1a6; }
.price-grid .price-card .btn { color: var(--ink); background: #ffffff; }
.price-grid .price-card .btn:hover { background: var(--bg-soft); }

.docs-list {
  display: grid; gap: 0; margin: 24px 0 0; padding: 0; list-style: none;
  border-top: 1px solid var(--hair-soft);
}
.doc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 2px;
  font-size: clamp(17px, 1.6vw, 19px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  border-bottom: 1px solid var(--hair-soft);
  transition: color 0.25s var(--ease);
}
.doc-link:hover { color: var(--link); }
.doc-link-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--link);
}
.doc-link:hover .doc-link-action { text-decoration: underline; }


/* ---------- 12. Контакты (Bento & Cards) ---------- */

.cx-head {
  max-width: 680px;
  margin: 0 auto clamp(36px, 4.5vw, 56px);
  text-align: center;
}
.cx-eyebrow {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purina);
}
.cx-head .section-title {
  margin: 0 0 16px;
  font-size: clamp(34px, 4.8vw, 56px);
}
.cx-head p {
  margin: 0;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
}

.cx-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.cx-place {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 420px;
  padding: clamp(32px, 3.8vw, 48px);
  border-radius: var(--r-lg);
  color: #ffffff;
  background: #1d1d1f;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
.cx-pin {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}
.cx-pin svg { width: 24px; height: 24px; }
.cx-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cx-place .cx-label { color: rgba(255, 255, 255, 0.55); }
.cx-company {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}
.cx-address {
  margin: 12px 0 0;
  max-width: 18ch;
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.cx-place .cx-actions {
  margin-top: auto;
  padding-top: 32px;
}

.cx-people {
  display: grid;
  gap: 16px;
  grid-auto-rows: 1fr;
}
.cx-person {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: clamp(24px, 2.8vw, 36px);
  border-radius: var(--r-lg);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease);
}
.cx-person:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}
.cx-phone {
  margin-top: 6px;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-decoration: none;
}
.cx-phone:hover { color: #000000; }
.cx-mail {
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
  word-break: break-all;
}
.cx-mail:hover { color: var(--link); }
.cx-person .cx-actions {
  margin-top: auto;
  padding-top: 20px;
}

.cx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cx-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--hair);
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}
.cx-pill svg { width: 15px; height: 15px; }
.cx-pill:hover {
  background: var(--bg-soft);
  border-color: var(--ink);
  transform: scale(1.02);
}
.cx-pill:active { transform: scale(0.98); }
.cx-pill--fill {
  color: #ffffff;
  background: #1d1d1f;
  border-color: #1d1d1f;
}
.cx-pill--fill:hover {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}
.cx-pill--light {
  color: #1d1d1f;
  background: #ffffff;
  border-color: #ffffff;
}
.cx-pill--light:hover {
  background: var(--bg-soft);
  border-color: var(--bg-soft);
}
.cx-pill--ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}
.cx-pill--ghost:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.32);
}

/* Contacts классический вариант */
.contacts {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  color: #ffffff;
  background: #1d1d1f;
  border-radius: var(--r-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}
.contacts-text .section-title { margin-bottom: 14px; color: #ffffff; }
.contacts-text .section-lead { color: rgba(255, 255, 255, 0.7); }
.contacts-text .eyebrow { display: inline-flex; width: fit-content; margin-bottom: 18px; }
.contacts-address { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0 24px; font-size: 16px; color: rgba(255, 255, 255, 0.88); }
.contacts-address svg { flex: none; margin-top: 3px; color: rgba(255, 255, 255, 0.6); }

.contacts-people { display: grid; gap: 14px; }
.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease-out);
}
.contact-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px);
}
.contact-label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.contact-phone, .contact-mail { color: #ffffff; text-decoration: none; width: fit-content; }
.contact-phone { font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.contact-mail { font-size: 15px; color: rgba(255, 255, 255, 0.72); }
.contact-phone:hover, .contact-mail:hover { text-decoration: underline; }


/* ---------- 13. Каталог: заголовок страницы ---------- */

.page-hero {
  padding: calc(var(--header-h) + clamp(40px, 5vw, 72px)) 0 clamp(28px, 4vw, 44px);
  margin-top: calc(var(--header-h) * -1);
  background: var(--bg-soft);
}
.page-hero-inner { text-align: center; padding-bottom: clamp(24px, 3vw, 40px); }
.page-hero-logo { display: block; margin: 0 auto 22px; }
.page-hero-logo img { height: 46px; width: auto; margin: 0 auto; object-fit: contain; }
.page-hero h1 {
  max-width: 1000px;
  margin: 0 auto 16px;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.page-hero p {
  max-width: 660px;
  margin: 0 auto;
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.45;
  color: var(--ink-2);
}

.category-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  display: flex;
  gap: 28px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair-soft);
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.category-nav::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  padding: 15px 0;
  font-size: 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.chip:hover { color: var(--ink); }
.chip.is-active { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }


/* ---------- 14. Каталог: категории и товары ---------- */

.catalog { padding: 0 0 clamp(56px, 7vw, 104px); }
.category-section { padding-top: clamp(48px, 6vw, 88px); }

.category-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}
.category-head-text { max-width: var(--measure); }
.category-head h2 { margin-bottom: 10px; font-size: clamp(28px, 3.8vw, 44px); letter-spacing: -0.045em; }
.category-head p { margin: 0; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.45; color: var(--ink-2); }
.category-count { flex: none; padding-bottom: 6px; font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.group-title {
  margin: 44px 0 18px;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.035em;
}
.group-title:first-of-type { margin-top: 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border-radius: var(--r-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.product-card:active {
  transform: translateY(-1px) scale(0.99) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06) !important;
  transition-duration: 0.1s !important;
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  padding: 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--hair-soft);
  overflow: hidden;
}
.product-media.is-empty { background: var(--bg-soft); }
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s var(--ease-out);
}
.product-card:hover .product-media img { transform: scale(1.04); }

.media-fallback {
  display: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.product-media.is-empty .media-fallback { display: block; }

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 22px;
}
.product-body h3 {
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.product-body p {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}
.product-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  margin-bottom: 12px;
}
.product-price { font-size: 16px; font-weight: 600; letter-spacing: -0.012em; }
.product-pack { font-size: 13px; color: var(--ink-3); }
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--link);
}
.product-card:hover .card-more { text-decoration: underline; }
.empty-note { color: var(--ink-2); }


/* ---------- 15. Брошюры ---------- */

.brochures {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.brochure {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
button.brochure {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.brochure-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #ffffff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease);
}
.brochure-img { width: 100%; height: 100%; object-fit: cover; }
.brochure:hover .brochure-media {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}
.brochure-title { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.brochure:hover .brochure-title { color: var(--link); }


/* ---------- 16. Модальное окно (Apple Sheet / Dialog) ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }

.modal {
  position: relative;
  display: grid;
  grid-template-columns: 5fr 6fr;
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  max-width: 940px;
  height: min(720px, calc(100vh - 48px));
  height: min(720px, calc(100dvh - 48px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  background: #ffffff;
  border-radius: var(--r-lg);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); opacity: 1; }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  color: var(--ink-2);
  background: var(--bg-soft);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.modal-close:hover {
  color: var(--ink);
  background: var(--hair);
  transform: scale(1.08);
}
.modal-close:active {
  transform: scale(0.94) !important;
  transition-duration: 0.1s !important;
}

.modal-media {
  min-height: 0;
  height: 100%;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.modal-media img {
  width: auto;
  max-width: 100%;
  max-height: min(440px, calc(100% - 24px));
  height: auto;
  object-fit: contain;
  display: block;
  margin: auto;
}

.modal-content {
  min-height: 0;
  height: 100%;
  padding: 48px 44px 36px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-content > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.modal-overlay.is-open .modal-content > * { opacity: 1; transform: none; }
.modal-overlay.is-open .modal-content > :nth-child(1) { transition-delay: 0.08s; }
.modal-overlay.is-open .modal-content > :nth-child(2) { transition-delay: 0.12s; }
.modal-overlay.is-open .modal-content > :nth-child(3) { transition-delay: 0.16s; }
.modal-overlay.is-open .modal-content > :nth-child(4) { transition-delay: 0.2s; }
.modal-overlay.is-open .modal-content > :nth-child(5) { transition-delay: 0.24s; }

.modal-brand {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.modal-title {
  margin-bottom: 8px;
  padding-right: 36px;
  font-size: clamp(24px, 2.8vw, 34px);
  letter-spacing: -0.04em;
  line-height: 1.12;
}
.modal-price {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mchip {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--ink);
}
.mchip--price {
  background: #1d1d1f;
  color: #ffffff;
}
.modal-desc {
  margin-bottom: 28px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}
.modal-desc p { margin: 0 0 12px; }
.modal-desc p.is-note {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bg-soft);
  border-left: 3px solid #1d1d1f;
  color: var(--ink);
}
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--hair-soft);
}
.modal-media[hidden] + .modal-content { grid-column: 1 / -1; }

.modal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--hair-soft);
}
.modal-nav button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.modal-nav button:hover {
  background: var(--hair);
  transform: scale(1.06);
}
.modal-nav .chev { width: 14px; height: 14px; }
.modal-prev .chev { transform: rotate(180deg); }
.modal-count { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }


/* ---------- 17. Состояния и плавное открытие сайта ---------- */

.site-header {
  animation: siteHeaderIn 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#main:not(.is-loading) {
  animation: siteMainIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes siteHeaderIn {
  0% {
    opacity: 0;
    transform: translate3d(0, -10px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes siteMainIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

#main.is-loading { min-height: 100vh; }
#main.is-loading ~ .site-footer { display: none; }

.is-loading .state-box {
  animation: preloaderSoftIn 0.35s ease 0.15s both;
}

@keyframes preloaderSoftIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.state-box {
  margin: 120px auto;
  max-width: 520px;
  padding: 32px;
  text-align: center;
  color: var(--ink-2);
}
.state-box.is-error {
  background: var(--bg-soft);
  border-radius: var(--r-md);
}
.is-loading .state-box::after {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  margin: 18px auto 0;
  border: 2px solid var(--hair);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }


/* ---------- 18. Подвал ---------- */

.site-footer {
  padding: 32px 0 20px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-3);
  background: #f8faf9;
  border-top: 1px solid var(--hair-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 36px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hair);
}
.footer-col {
  display: flex;
  flex-direction: column;
}
.footer-col-title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-links li {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink-3);
}
.footer-links a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer-links a:hover {
  color: #195d3a;
  text-decoration: none;
}
.page-home .footer-links a:hover {
  color: #165535;
}
.footer-contact-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  color: #64748b;
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer-contact-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: #94a3b8;
  transition: color 0.18s ease;
}
.footer-contact-link:hover {
  color: #195d3a;
}
.page-home .footer-contact-link:hover {
  color: #165535;
}
.footer-contact-link:hover .footer-contact-ic {
  color: #195d3a;
}
.page-home .footer-contact-link:hover .footer-contact-ic {
  color: #165535;
}
.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 16px;
  text-align: center;
}
.footer-bottom p {
  margin: 0;
  font-size: 11.5px;
  color: #94a3b8;
}


/* ---------- 19. Страницы брендов (Hero, Tabs, Why, Состав) ---------- */

.cat-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(520px, 80vh, 760px);
  margin-top: calc(var(--header-h) * -1);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 64px;
  background: var(--bg-soft);
  container-type: inline-size;
}
.cat-hero-bg, .cat-hero-veil { position: absolute; inset: 0; }
.cat-hero-bg { z-index: -2; background: #000; }
.cat-hero-bg img, .cat-hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cat-hero-img { animation: catZoom 2.8s var(--ease-out) both; }
@keyframes catZoom { from { transform: scale(1.1); } to { transform: scale(1); } }

.cat-hero-veil {
  z-index: -1;
  background:
    linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.92) 38%, rgba(255, 255, 255, 0.35) 68%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(0deg, #ffffff 0%, rgba(255, 255, 255, 0) 24%);
}
.cat-hero-inner { text-align: left; }
.cat-logo {
  display: block;
  margin: 0 0 24px;
  width: fit-content;
}
.cat-logo img {
  display: block;
  height: clamp(52px, 6.8vw, 80px);
  width: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.12));
}
.cat-title {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: clamp(36px, 5.8vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.cat-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.cat-title .w > span {
  display: inline-block;
  transform: translateY(110%);
  animation: catWord 0.95s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 85ms + 200ms);
}
@keyframes catWord { to { transform: none; } }
.cat-sub {
  max-width: 560px;
  margin: 0 0 32px;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  opacity: 0;
  animation: catFade 0.9s var(--ease-out) 800ms forwards;
}
.cat-go {
  opacity: 0;
  animation: catFade 0.9s var(--ease-out) 1000ms forwards;
}
@keyframes catFade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   Category Chips (Purina Animals) & Brand Hero Veil
   ========================================================================== */
.purina-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0 28px;
}

.purina-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #1a2c22;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s var(--ease);
}

.purina-chip:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.28);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.purina-chip-icon {
  width: 18px;
  height: 18px;
  color: #38483e;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.purina-chip:hover .purina-chip-icon {
  color: #0c2317;
}

/* Мягкий градиент первого экрана Purina */
body.page-purina .cat-hero-veil {
  background:
    linear-gradient(90deg, #f7f4ed 0%, rgba(247, 244, 237, 0.94) 40%, rgba(247, 244, 237, 0.4) 70%, rgba(247, 244, 237, 0) 100%),
    linear-gradient(0deg, #f7f4ed 0%, rgba(247, 244, 237, 0) 24%);
}

/* Вкладки каталога (Apple Segmented Control) */
.cat-tabs-wrap {
  display: flex;
  justify-content: center;
  padding: clamp(36px, 5vw, 64px) var(--pad) 0;
}
.cat-tabs {
  position: relative;
  display: flex;
  gap: 4px;
  max-width: 100%;
  padding: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg-soft);
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--hair-soft);
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  position: relative;
  z-index: 1;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  cursor: pointer;
  font: 500 14px/1 var(--font);
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.cat-tab:hover { color: var(--ink); }
.cat-tab.is-active { color: #ffffff; }
.cat-tab-n {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.07);
  transition: background 0.25s;
}
.cat-tab.is-active .cat-tab-n { background: rgba(255, 255, 255, 0.25); }
.cat-tab-ind {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 0;
  border-radius: var(--r-pill);
  background: #1d1d1f;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out);
}
.category-section { display: none; }
.category-section.is-active {
  display: block;
  animation: panelIn 0.6s var(--ease-out);
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Карточки «Почему…» */
.why-grid { perspective: 1100px; }
.why-card { padding: 0; background: none; border: 0; box-shadow: none; }
.why-in {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 0%;
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: 36px 30px 32px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-card);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.25s ease-out, box-shadow 0.4s var(--ease);
}
.why-in:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}
.why-num {
  position: absolute;
  right: 18px;
  top: 4px;
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.08);
  transition: transform 0.5s var(--ease-out);
}
.why-in:hover .why-num { transform: translateY(4px); }
.why-bar {
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 4px;
  margin-bottom: 22px;
  background: var(--brand);
  transition: width 0.4s var(--ease-out);
}
.why-in:hover .why-bar { width: 72px; }

/* «Состав» */
.ing-sec { background: var(--bg-dark-2); color: var(--on-dark); overflow: hidden; }
.ing-sec .section-title { color: #ffffff; }
.ing-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 56px;
}
.ing-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 30px 0 34px;
}
.ing-item::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.1s var(--ease-out) 0.15s;
}
.ing-item.is-in::before { transform: scaleX(1); }
.ing-n {
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.35);
  min-width: 1.5em;
}
.ing-item h3 { margin: 0 0 8px; font-size: 21px; color: #ffffff; letter-spacing: -0.03em; }
.ing-item p { margin: 0; color: #a1a1a6; line-height: 1.55; }


/* ---------- 20. Акция 2 (Promo2) ---------- */

.promo2 {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--r-lg);
  color: #ffffff;
  background: #1d1d1f;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}
.promo2-glow {
  position: absolute;
  z-index: -1;
  width: 500px;
  height: 500px;
  right: -100px;
  top: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.28), transparent 65%);
}
.promo2-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 18px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.promo2-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purina);
}
.promo2 h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: #ffffff;
}
.promo2-text p {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}
.promo2-text .promo2-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}
.promo2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.promo2-actions .btn {
  background: #ffffff;
  color: #1d1d1f;
}
.promo2-actions .btn:hover {
  background: var(--bg-soft);
  color: #000000;
}
.promo2-media {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  transition: transform 0.4s var(--ease-out);
}
.promo2-media:hover { transform: scale(1.02); }
.promo2-media img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}


/* ---------- 21. Листалка брошюр (Viewer) ---------- */

.viewer {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s 0.4s;
}
.viewer.is-open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.viewer-back {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.viewer.is-open .viewer-back { opacity: 1; }
.viewer-box {
  position: relative;
  width: min(1000px, 100%);
  height: 100%;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 16px 20px 14px;
  color: #ffffff;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.viewer.is-open .viewer-box { opacity: 1; transform: translateY(0) scale(1); }
.viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
}
.viewer-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.viewer-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.viewer-dl { padding: 8px 18px; font-size: 13px; }
.viewer-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.viewer-close:hover { background: rgba(255, 255, 255, 0.26); transform: scale(1.05); }
.viewer-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  perspective: 1600px;
}
.viewer-page { flex: 1; min-width: 0; height: 100%; display: grid; place-items: center; }
.viewer-page img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.viewer-page img.turn-next { animation: turnNext 0.6s var(--ease-out); transform-origin: 0 50%; }
.viewer-page img.turn-prev { animation: turnPrev 0.6s var(--ease-out); transform-origin: 100% 50%; }
@keyframes turnNext { from { opacity: 0; transform: rotateY(-36deg) translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes turnPrev { from { opacity: 0; transform: rotateY(36deg) translateX(-40px); } to { opacity: 1; transform: none; } }

.viewer-nav {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
}
.viewer-nav:hover:not(:disabled) { background: rgba(255, 255, 255, 0.28); transform: scale(1.06); }
.viewer-nav:disabled { opacity: 0.25; cursor: default; }
.viewer-prev .chev { transform: rotate(180deg); }
.viewer-nav .chev { width: 16px; height: 16px; }

.viewer-foot { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 12px; }
.viewer-thumbs { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; padding: 2px; }
.viewer-thumb {
  flex: none;
  width: 44px;
  height: 60px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}
.viewer-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.viewer-thumb:hover { opacity: 0.85; }
.viewer-thumb.is-active { opacity: 1; border-color: #ffffff; transform: translateY(-2px); }
.viewer-count { font-size: 13px; color: rgba(255, 255, 255, 0.7); font-variant-numeric: tabular-nums; }
.viewer.is-single .viewer-nav, .viewer.is-single .viewer-count { display: none; }


/* ---------- 22. Блок со статистикой (.stats) ---------- */

.stats {
  padding: clamp(48px, 6vw, 96px) 0;
  background: var(--bg-soft);
  color: var(--ink);
}
.stats .section-title { color: var(--ink); margin-bottom: 36px; }
.stats-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: 28px;
  text-align: center;
}
.stat { padding: 8px 12px; border-left: 1px solid var(--hair); }
.stat:first-child { border-left: 0; }
.stat-val {
  display: block;
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.stat-val b { font-weight: 700; color: var(--ink); }
.stat-val i { font-style: normal; color: var(--purina); margin-left: 4px; }
.stat-label { display: block; margin-top: 12px; font-size: 15px; color: var(--ink-2); }


/* ---------- 23. Водяные знаки (Минимальные) ---------- */

body { position: relative; }
.wm-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.wm {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  translate: -50% calc(-50% + var(--py, 0px));
  opacity: var(--o, 0.05);
  will-change: translate;
}
.wm img {
  display: block;
  width: 100%;
  height: auto;
  rotate: var(--r, 0deg);
  transform-origin: 50% 50%;
}


/* ---------- 24. Служебные правила из админки ---------- */

[style*="--ox"] { translate: var(--ox, 0%) var(--oy, 0%) !important; }
[style*="--zoom"] { scale: var(--zoom, 1) !important; }
.hero-bg, .cat-hero-bg { background: #000; }
.product-media:has([style*="--ox"]),
.about-media:has([style*="--ox"]),
.modal-media:has([style*="--ox"]),
.cx-warehouse-media:has([style*="--ox"]),
.hp-card-farm-media:has([style*="--ox"]),
.hp-card-feed-media:has([style*="--ox"]),
.hp-card-pets-media:has([style*="--ox"]),
.hp-pcard-img-col:has([style*="--ox"]) { background: #000; }
.cat-hero:has(.cat-hero-bg [style*="--ox"]) { background: #000; }

.cat-logo[style*="--ls"] {
  translate: var(--lx, 0) var(--ly, 0);
  scale: var(--ls, 1);
  transform-origin: 0 0;
}


/* ---------- 25. Адаптив ---------- */

@media (max-width: 1068px) {
  .facts { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .about, .contacts, .cx-grid { grid-template-columns: 1fr; }
  .about-media { aspect-ratio: 16 / 10; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .promo, .promo2 { grid-template-columns: 1fr; }
  .promo-media { max-width: 420px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-nav { display: none; }
}

@media (max-width: 833px) {
  :root { --header-h: 52px; }
  .header-inner { display: flex; gap: 10px; }
  .price-menu { margin-left: auto; }
  .price-btn { padding: 7px 14px; font-size: 12px; }
  .nav-toggle { display: block; margin-left: 0; }
  .logo-text strong { font-size: 14px; letter-spacing: 0.1em; }
  .logo img { max-width: 155px; height: 28px; }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 100;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    margin: 0;
    padding: calc(var(--header-h) + 24px) var(--pad) 40px;
    background: rgba(255, 255, 255, 0.98);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; }
  .main-nav a {
    width: 100%;
    padding: 16px 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--ink);
    border-bottom: 1px solid var(--hair-soft);
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  }
  .main-nav.is-open a { transform: none; opacity: 1; }
  .main-nav.is-open a:nth-child(2) { transition-delay: 0.04s; }
  .main-nav.is-open a:nth-child(3) { transition-delay: 0.08s; }
  .main-nav.is-open a:nth-child(4) { transition-delay: 0.12s; }
  .main-nav.is-open a:nth-child(5) { transition-delay: 0.16s; }
  .main-nav.is-open a:nth-child(6) { transition-delay: 0.2s; }

  html.nav-open body.page-home .site-header .main-nav a,
  html.nav-open body.page-home .site-header .logo { color: var(--ink); }
  html.nav-open body.page-home .site-header .nav-toggle span::before,
  html.nav-open body.page-home .site-header .nav-toggle span::after { background: var(--ink); }

  .hero-badges { grid-template-columns: 1fr 1fr; width: calc(100% - 32px); border-radius: 20px; }
  .hero-badge + .hero-badge { border-right: none; border-left: none; }
  .hero-badge:nth-child(odd) { border-right: 1px solid #e5e5ea; }
  .hero-badge:nth-child(n+3) { border-top: 1px solid #e5e5ea; }

  .hero-split { grid-template-columns: 1fr; gap: 16px; }
  .tile { min-height: 480px; }
  .tile-media { min-height: 240px; }

  /* Преимущества на телефоне: настраиваются в home.css */
  .story { height: calc(var(--n, 6) * 75vh + 100vh); }
  .story-sticky { position: -webkit-sticky; position: sticky; top: 0; height: 100vh; height: 100svh; }

  .advantages, .why-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .category-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .category-count { padding-bottom: 0; }

  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal {
    display: block;
    height: auto;
    max-height: 92vh;
    max-height: 92dvh;
    overflow-y: auto;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    transform: translateY(100%);
    opacity: 1;
  }
  .modal-media { padding: 28px; height: auto; }
  .modal-media img { max-height: 220px; width: auto; }
  .modal-content { padding: 28px 22px 32px; overflow: visible; height: auto; }

  .cat-hero { min-height: 540px; align-items: flex-end; padding-bottom: 44px; }
  .cat-hero-veil { background: linear-gradient(0deg, #ffffff 0%, rgba(255, 255, 255, 0.94) 48%, rgba(255, 255, 255, 0.25) 100%); }
  .ing-list { grid-template-columns: 1fr; }
  .cat-tab { padding: 9px 16px; font-size: 13px; }
  .promo2 { border-radius: var(--r-md); }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .stat:nth-child(odd) { border-left: 0; }
  .wm { width: calc(var(--s) * 0.6); }
}

@media (max-width: 560px) {
  :root { --pad: 18px; }
  body { font-size: 16px; }
  .hero-title { font-size: clamp(32px, 9vw, 44px); }
  .facts { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .product-grid { grid-template-columns: 1fr; }
  .contacts { padding: 28px 22px; }
  .cx-place { min-height: 340px; padding: 26px 20px; }
  .cx-person { padding: 22px 18px; }
  .hero-kicker { letter-spacing: 0.14em; }
  .cat-hero { min-height: 480px; padding-bottom: 32px; }
  .cat-title { font-size: clamp(28px, 8vw, 40px); }
}

@media (max-width: 440px) {
  :root { --pad: 14px; }
  .logo img { max-width: 130px; height: 25px; }
  .price-btn { padding: 6px 10px; font-size: 11px; gap: 4px; }
  .price-btn svg { width: 12px; height: 12px; }
  .nav-toggle { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
}

@media (max-width: 360px) {
  :root { --pad: 10px; }
  .logo img { max-width: 110px; height: 22px; }
  .price-btn { padding: 5px 8px; font-size: 10px; }
}


/* ---------- 26. Accessibility & Print ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  [data-reveal], .hero-title, .ltr, .hero-kicker, .hero-scroll, .hero-badge {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .photo[data-reveal] { clip-path: none !important; }
  .photo img, .hero-img, .hero-video, .cat-hero-img { transform: none !important; animation: none !important; }
  .fact strong > span { transform: none !important; }
  .story-item { transition: none !important; }
  .category-section.is-active, .promo2-glow, .viewer-page img { animation: none !important; }
  .wm-layer { display: none !important; }
}

@media print {
  .site-header, .category-nav, .modal-overlay, .nav-toggle, .wm-layer { display: none !important; }
  [data-reveal], .hero-title { opacity: 1 !important; transform: none !important; }
  .photo[data-reveal] { clip-path: none !important; }
}

/* ==========================================================================
   ПЛАВАЮЩИЕ ПОДСКАЗКИ (Floating Toast Alert) ДЛЯ ФОРМ И ЗАЯВОК
   ========================================================================== */

.pur-floating-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.pur-floating-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(225, 29, 72, 0.2);
  border-left: 5px solid #e11d48;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(225, 29, 72, 0.08);
  max-width: 380px;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.pur-floating-toast.is-visible {
  transform: translateX(0);
  opacity: 1;
}

.pur-floating-toast .pur-toast-icon {
  color: #e11d48;
  flex-shrink: 0;
  margin-top: 1px;
}

.pur-floating-toast .pur-toast-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pur-floating-toast .pur-toast-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #9f1239;
}

.pur-floating-toast .pur-toast-msg {
  font-size: 13px;
  line-height: 1.4;
  color: #334155;
}

.pur-floating-toast .pur-toast-close {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 0 0 8px;
  margin-left: auto;
}

.pur-floating-toast .pur-toast-close:hover {
  color: #0f172a;
}

/* Глобальная защита: центрирование и разделение строк в экранах успешной отправки заявки */
.provi-ord-success-head,
.pur-ws-success-head {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.provi-ord-success-badge-wrap,
.pur-ws-success-badge-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 16px !important;
}

.provi-ord-success-kicker-row,
.pur-ws-success-kicker-row {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 0 auto 16px !important;
}

/* ===== MOBILE ===== */

/* Безопасные зоны iPhone */
:root {
  --sat: env(safe-area-inset-top, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
}

/* Формы и элементы ввода */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
input[type="search"],
textarea,
select {
  box-sizing: border-box;
  max-width: 100%;
}

@media (max-width: 768px) {
  /* Защита от автозума на iOS (шрифт полей не меньше 16px) */
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  input[type="number"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px !important;
  }

  /* Переопределение десктопных сдвигов фото: локальный сброс в 0 
     с поддержкой будущих мобильных переменных --mx, --my, --mzoom */
  [style*="--ox"] {
    translate: var(--mx, 0%) var(--my, 0%) !important;
  }
  [style*="--zoom"] {
    scale: var(--mzoom, 1) !important;
  }

  /* — ПРОБЛЕМА 5: Шапка сайта на мобильных без бургера (одна строка) — */
  :root {
    --header-h: 54px;
  }

  .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
    height: auto !important;
    min-height: calc(var(--header-h) + var(--sat)) !important;
    padding-top: var(--sat) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
  }

  body.page-purina,
  body.page-provipet {
    padding-top: calc(var(--header-h) + var(--sat)) !important;
  }
  body.page-purina .site-header {
    background: rgba(248, 246, 240, 0.96) !important;
  }
  body.page-provipet .site-header {
    background: rgba(253, 251, 247, 0.96) !important;
  }

  .header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: var(--header-h) !important;
    padding: 0 clamp(8px, 2.4vw, 16px) !important;
    gap: clamp(6px, 1.8vw, 12px) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Логотип: компактный слева */
  .logo {
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    gap: 6px !important;
  }
  .logo img {
    height: clamp(20px, 5.2vw, 25px) !important;
    max-width: clamp(76px, 21vw, 102px) !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
  }
  .logo-text strong {
    font-size: 13px !important;
    letter-spacing: 0.08em !important;
  }

  /* Меню: в одну строку рядом с логотипом без оверлея */
  .main-nav {
    position: static !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(4px, 1.6vw, 10px) !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    overflow: visible !important;
    flex: 1 1 auto !important;
    max-width: none !important;
  }

  .main-nav a {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: 32px !important;
    padding: 0 clamp(5px, 1.4vw, 10px) !important;
    font-size: clamp(12px, 3.4vw, 14px) !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    color: #334155 !important;
    border: none !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: color 0.2s, background-color 0.2s !important;
  }

  /* Активный раздел визуально выделен мягкой плашкой */
  .main-nav a.is-active,
  .main-nav a[aria-current="page"] {
    color: #165535 !important;
    background: #ebf5ee !important;
  }
  body.page-purina .main-nav a.is-active,
  body.page-purina .main-nav a[aria-current="page"],
  body.page-provipet .main-nav a.is-active,
  body.page-provipet .main-nav a[aria-current="page"] {
    color: #195d3a !important;
    background: #ebf5ee !important;
  }

  /* Кнопка прайсов: круглая красная с пульсацией волнами */
  @keyframes pricePulse {
    0% {
      box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.65), 0 2px 6px rgba(0, 0, 0, 0.16);
    }
    70% {
      box-shadow: 0 0 0 7px rgba(200, 16, 46, 0), 0 2px 6px rgba(0, 0, 0, 0.16);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(200, 16, 46, 0), 0 2px 6px rgba(0, 0, 0, 0.16);
    }
  }

  .price-menu {
    position: relative !important;
    margin-left: 0 !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .price-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #c8102e !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16) !important;
    cursor: pointer !important;
    animation: pricePulse 2.2s infinite ease-out !important;
  }
  .price-btn:active {
    transform: scale(0.94) !important;
    background: #a50d26 !important;
  }
  .price-btn svg.price-btn-ic,
  .price-btn span {
    display: none !important;
  }
  .price-btn .price-doc-icon {
    display: block !important;
    width: 17px !important;
    height: 17px !important;
    stroke: #ffffff !important;
  }

  /* Выпадающая панель прайс-листов под кнопкой */
  .price-drop {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    min-width: 250px !important;
    max-width: calc(100vw - 24px) !important;
    width: max-content !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    padding: 8px !important;
    z-index: 1001 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-8px) scale(0.96) !important;
    transition: opacity 0.22s var(--ease-apple), transform 0.22s var(--ease-apple), visibility 0.22s !important;
    display: block !important;
    pointer-events: none !important;
  }
  .price-menu.is-open .price-drop {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
  }

  .price-drop .pd-item {
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    text-decoration: none !important;
  }
  .price-drop .pd-item:hover,
  .price-drop .pd-item:active {
    background: #f1f5f9 !important;
  }

  /* Бургер-кнопка скрыта на мобильных */
  .nav-toggle {
    display: none !important;
  }

  /* Якорные ссылки с учётом шапки и выреза iPhone */
  [id] {
    scroll-margin-top: calc(var(--header-h) + var(--sat) + 16px) !important;
  }

  /* Модальные окна на 100dvh */
  .modal-overlay {
    height: 100vh;
    height: 100dvh;
  }
  .modal {
    max-height: calc(100dvh - 30px);
    -webkit-overflow-scrolling: touch;
  }
  .modal-close {
    min-width: 44px;
    min-height: 44px;
  }

  /* Защита от горизонтального скролла */
  html, body {
    overflow-x: clip !important;
    max-width: 100%;
  }

  /* Подвал: безопасный отступ снизу под нижнюю панель Safari */
  .site-footer {
    padding-bottom: calc(36px + var(--sab) + 24px) !important;
  }

  /* Кликабельные контакты */
  a[href^="tel:"],
  a[href^="mailto:"] {
    word-break: break-all;
  }
}

@media (max-width: 340px) {
  .header-inner {
    padding: 0 6px !important;
    gap: 4px !important;
  }
  .logo img {
    max-width: 68px !important;
    height: 18px !important;
  }
  .main-nav {
    gap: 3px !important;
  }
  .main-nav a {
    font-size: 11px !important;
    padding: 0 4px !important;
  }
  .price-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
  }
}

@media (max-width: 600px) {
  html,
  body,
  body.page-home,
  body.page-purina,
  body.page-provipet {
    min-width: 1200px !important;
    width: 1200px !important;
    max-width: none !important;
    overflow-x: auto !important;
    touch-action: pan-x pan-y !important;
  }

  .site-header,
  #main,
  .site-footer,
  .container {
    min-width: 1200px !important;
    width: 1200px !important;
    max-width: none !important;
  }
}

