/* ============================================================
   Catálogo Gelimo v2 — verstka в стиле PDF, реальные карточки.
   Подключается ПОСЛЕ gelimo-group.webflow.shared.*.css.
   ============================================================ */

:root {
  --g-blue: #02528a;
  --g-blue-dark: #013355;
  --g-red: #ed1c24;
  --g-red-dark: #b81e23;
  --g-gold: #c9a55a;
  --g-orange: #e88934;
  --g-cream: #faf6ec;
  --g-cream-soft: #fcf9f2;
  --g-ink: #0c1f2c;
  --g-ink-soft: #4a5b6c;
  --g-border: #e6ecef;
}

.cat2 { background: var(--g-cream-soft); color: var(--g-ink); }

/* ============================================================
   HERO
   ============================================================ */
.cat2-hero {
  background: linear-gradient(165deg, var(--g-blue) 0%, var(--g-blue-dark) 100%);
  color: #fff;
  padding: 140px 0 90px;
  position: relative;
  overflow: hidden;
}
.cat2-hero::before {
  content: "";
  position: absolute; right: -140px; top: -140px;
  width: 520px; height: 520px; border-radius: 50%;
  background: rgba(237, 28, 36, 0.28); filter: blur(80px);
}
.cat2-hero::after {
  content: "";
  position: absolute; left: -80px; bottom: -80px;
  width: 360px; height: 360px; border-radius: 50%;
  background: rgba(201, 165, 90, 0.18); filter: blur(60px);
}
.cat2-hero .container { position: relative; z-index: 1; }
.cat2-eyebrow {
  font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 700; color: #ffd68e; margin: 0 0 16px;
}
.cat2-h1 {
  font-size: clamp(48px, 7vw, 96px); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1; color: #fff; margin: 0;
}
.cat2-lead {
  font-size: clamp(18px, 1.8vw, 22px);
  color: rgba(255, 255, 255, 0.82); margin: 22px 0 32px;
  max-width: 680px; line-height: 1.55;
}
.cat2-lead strong { color: #ffd68e; font-weight: 700; }
.cat2-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.cat2-tabs a {
  display: inline-flex; align-items: center;
  padding: 11px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff; font-size: 14px; font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.cat2-tabs a:hover {
  background: rgba(237, 28, 36, 0.85);
  border-color: rgba(237, 28, 36, 1);
  transform: translateY(-1px);
}

/* ============================================================
   INFO 1 — QUALIDADE (8 пунктов с иконками)
   ============================================================ */
.cat2-quality {
  background: #fff;
  padding: 100px 0;
  position: relative;
}
.cat2-section-top {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 56px;
}
.cat2-eyebrow-red {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 800; color: var(--g-red);
  margin-bottom: 14px;
}
.cat2-h2 {
  font-size: clamp(32px, 4.2vw, 56px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.08;
  color: var(--g-blue); margin: 0 0 22px;
}
.cat2-intro {
  font-size: 18px; line-height: 1.6;
  color: var(--g-ink-soft); margin: 0;
}
.cat2-q-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  margin: 0 auto 44px; max-width: 980px;
}
.cat2-q-pills span {
  background: var(--g-cream);
  border: 1px solid var(--g-border);
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--g-ink-soft);
}
.cat2-q-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.cat2-q-card {
  background: var(--g-cream);
  border: 1px solid var(--g-border);
  border-radius: 16px;
  padding: 24px 22px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cat2-q-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(2, 42, 73, 0.08);
}
.cat2-q-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: #fff; border: 1px solid var(--g-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--g-red);
}
.cat2-q-icon svg { width: 28px; height: 28px; }
.cat2-q-card p {
  font-size: 14px; line-height: 1.5;
  color: var(--g-ink); margin: 0;
}
.cat2-footnote {
  font-size: 13px; line-height: 1.5;
  color: var(--g-ink-soft);
  background: var(--g-cream);
  border-left: 3px solid var(--g-red);
  padding: 14px 18px; border-radius: 4px;
  max-width: 900px; margin: 24px auto 0;
}

/* ============================================================
   INFO 2 — NUTRIENTES (dark hero + 5 categories)
   ============================================================ */
.cat2-nutrients {
  background: linear-gradient(165deg, var(--g-blue-dark) 0%, #051e36 100%);
  color: #fff;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cat2-nutrients::before {
  content: "";
  position: absolute; right: 8%; top: 12%;
  width: 380px; height: 380px; border-radius: 50%;
  background: rgba(237, 28, 36, 0.2); filter: blur(80px);
}
.cat2-nutrients .container { position: relative; z-index: 1; }
.cat2-section-top-dark { color: #fff; }
.cat2-eyebrow-gold {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 800; color: #ffd68e; margin-bottom: 14px;
}
.cat2-h2-dark {
  font-size: clamp(32px, 4.2vw, 56px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.06;
  color: #fff; margin: 0 0 22px;
}
.cat2-big-number {
  display: inline-block;
  font-size: clamp(56px, 7vw, 96px); font-weight: 900;
  color: var(--g-red); letter-spacing: -0.05em;
  line-height: 0.9; vertical-align: -8px;
}
.cat2-intro-dark {
  font-size: 18px; line-height: 1.6;
  color: rgba(255, 255, 255, 0.78); margin: 0;
}
.cat2-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}
.cat2-cat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 28px 26px;
  backdrop-filter: blur(8px);
}
.cat2-cat-card h3 {
  font-size: 20px; font-weight: 800;
  color: #ffd68e; letter-spacing: -0.01em;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 16px;
}
.cat2-cat-card p {
  font-size: 14px; line-height: 1.55;
  color: rgba(255, 255, 255, 0.78); margin: 0;
}
/* Make last category card span single column nicely in 3-col layout */
.cat2-cat-card:nth-child(4) { grid-column: 1 / 2; }
.cat2-cat-card:nth-child(5) { grid-column: 2 / 4; }

/* ============================================================
   PRODUCT LINES
   ============================================================ */
.cat2-line {
  padding: 100px 0;
  background: #fff;
  border-top: 1px solid var(--g-border);
}
.cat2-line.cat2-line-alt { background: var(--g-cream); }
.cat2-line-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 56px;
}
.cat2-line-badge {
  display: inline-block;
  padding: 10px 26px; border-radius: 8px;
  font-size: 14px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.cat2-badge-1965 {
  background: var(--g-red);
  font-family: ui-serif, Georgia, serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: none;
  padding: 6px 22px;
}
.cat2-badge-velvet {
  background: linear-gradient(135deg, #6e0a14 0%, var(--g-red) 100%);
  font-family: ui-serif, Georgia, serif;
  font-style: italic;
  font-size: 22px;
  text-transform: none;
  letter-spacing: 0.04em;
  padding: 6px 24px;
}
.cat2-badge-red { background: var(--g-red); }
.cat2-badge-orange { background: var(--g-orange); }

.cat2-line-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--g-red);
  margin: 0 0 10px;
}
.cat2-line-subtitle {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g-blue);
  margin: 0 0 14px;
}
.cat2-line-quote {
  font-family: ui-serif, Georgia, serif;
  font-style: italic;
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--g-blue);
  margin: 0 0 16px;
}
.cat2-line-desc {
  font-size: 17px; line-height: 1.6;
  color: var(--g-ink-soft);
  margin: 0;
}

/* ============================================================
   PRODUCT CARDS GRID
   ============================================================ */
.cat2-products {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.cat2-products-single {
  grid-template-columns: minmax(280px, 380px);
  justify-content: center;
}
.cat2-card {
  background: #fff;
  border: 1px solid var(--g-border);
  border-radius: 18px;
  padding: 12px 14px 18px;
  display: flex; flex-direction: column;
  gap: 14px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
}
.cat2-line-alt .cat2-card { background: #fff; }
.cat2-card:hover {
  transform: translateY(-4px);
  border-color: rgba(237, 28, 36, 0.35);
  box-shadow: 0 18px 36px rgba(2, 42, 73, 0.12);
}
.cat2-card-photo {
  display: block;
  margin: -2px -14px 0;        /* выходим за горизонтальные паддинги карточки */
  padding: 6px 0 4px;
}
.cat2-card-photo img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(2, 42, 73, 0.18));
  transition: transform 0.3s;
  cursor: zoom-in;
}
.cat2-card:hover .cat2-card-photo img {
  transform: scale(1.05);
}
.cat2-card-title {
  font-size: 15px; font-weight: 800;
  color: var(--g-ink);
  letter-spacing: -0.005em;
  line-height: 1.3;
  margin: 6px 0 0;
  text-transform: uppercase;
}
.cat2-card-desc {
  font-size: 13px; line-height: 1.5;
  color: var(--g-ink-soft);
  margin: 0;
}

/* ====== Product attrs row ====== */
.cat2-attrs {
  list-style: none;
  padding: 12px 0 0;
  margin: auto 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  border-top: 1px solid var(--g-border);
}
.cat2-attrs li {
  display: flex; align-items: center;
  gap: 8px;
  font-size: 12px;
  position: relative;
  padding-left: 22px;
}
.cat2-attrs li::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  background: var(--g-red);
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.cat2-attrs li[data-attr="weight"]::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 2h6l3 6c0 5-2 12-6 12s-6-7-6-12l3-6z'/><line x1='12' y1='9' x2='12' y2='14'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 2h6l3 6c0 5-2 12-6 12s-6-7-6-12l3-6z'/><line x1='12' y1='9' x2='12' y2='14'/></svg>");
}
.cat2-attrs li[data-attr="fat"]::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 6h12l-2 12H8z'/><path d='M9 6V4a3 3 0 016 0v2'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 6h12l-2 12H8z'/><path d='M9 6V4a3 3 0 016 0v2'/></svg>");
}
.cat2-attrs li[data-attr="box"]::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'><path d='M21 8L12 3 3 8v8l9 5 9-5V8z'/><path d='M3 8l9 5 9-5M12 13v10'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'><path d='M21 8L12 3 3 8v8l9 5 9-5V8z'/><path d='M3 8l9 5 9-5M12 13v10'/></svg>");
}
.cat2-attrs li[data-attr="sku"]::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'><rect x='3' y='6' width='18' height='12' rx='3'/><circle cx='8' cy='12' r='1.5' fill='black' stroke='none'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'><rect x='3' y='6' width='18' height='12' rx='3'/><circle cx='8' cy='12' r='1.5' fill='black' stroke='none'/></svg>");
}
.attr-l { display: none; }
.attr-v {
  font-size: 13px; font-weight: 700;
  color: var(--g-blue);
  letter-spacing: -0.01em;
}
.cat2-attrs li[data-attr="sku"] .attr-v {
  color: var(--g-red);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  white-space: nowrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
  .cat2-q-grid { grid-template-columns: repeat(2, 1fr); }
  .cat2-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat2-cat-card:nth-child(4),
  .cat2-cat-card:nth-child(5) { grid-column: auto; }
}
@media (max-width: 767px) {
  .cat2-hero { padding: 110px 0 70px; }
  .cat2-quality,
  .cat2-nutrients,
  .cat2-line { padding: 64px 0; }
  .cat2-q-grid { grid-template-columns: 1fr; }
  .cat2-cat-grid { grid-template-columns: 1fr; }
  .cat2-products { grid-template-columns: 1fr; }
  /* .cat2-card-photo height auto by intrinsic image aspect (см. базовое правило) */
  .cat2-tabs a { padding: 9px 14px; font-size: 13px; }
}

/* Логика "белый логотип над hero → синий после скролла" вынесена
   в общий css/language-switcher.css (класс body.nav-over-hero) */

/* ============================================================
   Lightbox — клик на product image → увеличение в оверлее.
   Закрытие по клику снаружи изображения, на самом изображении
   или по нажатию Esc.
   ============================================================ */
.cat-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 32, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 96px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
  z-index: 9999;
  cursor: zoom-out;
}
.cat-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.cat-lightbox img {
  /* Заполняем всю доступную область (с учётом padding на оверлее),
     object-fit:contain держит исходные пропорции PNG. */
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Прозрачный фон — мокапы продуктов с alpha-каналом, без рамки.
     Тень оставляем через filter (работает на форме объекта, не на bbox). */
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: zoom-out;
}
.cat-lightbox.is-open img {
  transform: scale(1);
}
.cat-lightbox-close,
.cat-lightbox-nav {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  font-family: inherit;
  padding: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.cat-lightbox-close { top: 20px; right: 24px; font-size: 24px; }
.cat-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: rotate(90deg);
}
.cat-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 38px;
  font-weight: 300;
  padding-bottom: 4px;
}
.cat-lightbox-prev { left: 24px; }
.cat-lightbox-next { right: 24px; }
.cat-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}
.cat-lightbox-prev:hover { transform: translateY(-50%) translateX(-3px); }
.cat-lightbox-next:hover { transform: translateY(-50%) translateX(3px); }
.cat-lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 7px 16px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  font-family: ui-monospace, Menlo, monospace;
}
body.cat-lightbox-open { overflow: hidden; }

@media (max-width: 640px) {
  .cat-lightbox { padding: 24px 60px; }
  .cat-lightbox-nav { width: 44px; height: 44px; font-size: 32px; }
  .cat-lightbox-prev { left: 8px; }
  .cat-lightbox-next { right: 8px; }
  .cat-lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .cat-lightbox-counter { bottom: 16px; font-size: 12px; padding: 6px 12px; }
}
