/* ============================================================
   КАТАЛОГ — catalog.css
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */
.cat-hero {
  padding: 64px 0 52px;
}

.cat-hero__title {
  font-family: var(--font-primary);
  font-size: 54px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-brown-900);
  margin-bottom: 16px;
}
.cat-hero__title em {
  font-family: var(--font-primary);
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent);
}

.cat-hero__subtitle {
  font-size: 16px;
  color: var(--color-brown-600);
  line-height: 1.6;
}

/* ============================================================
   FILTER
   ============================================================ */
.cat-filter {
  padding: 28px 0;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-beige-300);
}

.cat-filter__label {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: #1A1713;
  margin-bottom: 12px;
}

.cat-filter__pills {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
  width: fit-content;
  max-width: 100%;
  height: 52px;
  background: #FDFBF7;
  border: 1px solid #DDD6CC;
  border-radius: 100px;
  padding: 6px;
  box-sizing: border-box;
}

.cat-filter__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 10px 24px;
  border-radius: 100px;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  border: none;
  outline: none;
  box-sizing: border-box;
  background: transparent;
  color: #1A1713;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}
.cat-filter__pill:hover {
  background-color: var(--color-beige-100);
  color: var(--color-brown-900);
}
.cat-filter__pill--active {
  background-color: #D4522A;
  color: #FFFFFF;
  font-weight: 700;
}
.cat-filter__pill--active:hover {
  background-color: #D4522A;
  color: #FFFFFF;
}

/* ============================================================
   CATEGORY SECTIONS
   ============================================================ */
.cat-section {
  padding: 56px 0;
  background-color: var(--color-white);
}

.cat-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cat-section__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cat-dot--green  { background-color: #3A9E5F; }
.cat-dot--orange { background-color: var(--color-accent); }
.cat-dot--blue   { background-color: #7DA2D9; }
.cat-dot--purple { background-color: #8A6EC8; }

.cat-section__name {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-brown-900);
}

.cat-section__desc {
  font-size: var(--text-sm);
  color: #1A1713;
}

/* ============================================================
   GRIDS
   ============================================================ */
.cat-grid {
  display: grid;
  gap: 16px;
}
.cat-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cat-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ============================================================
   CATALOG PRODUCT CARDS — scoped to .cat-section
   (home.css not loaded on catalog page; all card styles live here)
   ============================================================ */
.cat-section .product-card {
  background-color: #FDFBF7;
  border: 1px solid #DDD6CC;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat-section .product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(26, 23, 19, 0.09);
}

.cat-section .product-card__body {
  padding: 24px;
  background: #FDFBF7;
  border-top: 1px solid #DDD6CC;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cat-section .product-card__type {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 700;
  color: rgba(26, 23, 19, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cat-section .product-card__name {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  color: #1A1713;
  line-height: 1.2;
}

.cat-section .product-card__desc {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  color: #5F5A55;
  line-height: 1.55;
}

.cat-section .product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.cat-section .product-card__price {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 700;
  color: #D4522A;
}

.cat-section .product-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 100px;
  background: #D4522A;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.cat-section .product-card__btn:hover {
  background: #C94722;
  transform: translateY(-1px);
}

/* ============================================================
   PRODUCT CARD PREVIEW — CATALOG VERSION
   ============================================================ */
.cat-preview {
  height: 196px;
  padding: 20px;
  position: relative;
  display: flex;
  align-items: stretch;
}
.cat-preview--green  { background: #E8F5ED; }
.cat-preview--orange { background: #FFF0E8; }
.cat-preview--blue   { background: #EEF3FF; }
.cat-preview--purple { background: #F2EEFF; }

.cat-preview__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  width: 100%;
  height: 100%;
}
.cat-preview__block { border-radius: 8px; }
.cat-preview__block:nth-child(1) { grid-column: span 3; }
.cat-preview__block:nth-child(2) { grid-column: span 3; }
.cat-preview__block:nth-child(3) { grid-column: span 2; }
.cat-preview__block:nth-child(4) { grid-column: span 2; }
.cat-preview__block:nth-child(5) { grid-column: span 2; }

/* Green (Pack) */
.cat-preview--green .cat-preview__block:nth-child(1) { background: #6ABF8A; }
.cat-preview--green .cat-preview__block:nth-child(2) { background: #A5D9B8; }
.cat-preview--green .cat-preview__block:nth-child(3) { background: #A5D9B8; }
.cat-preview--green .cat-preview__block:nth-child(4) { background: #C8E8D5; }
.cat-preview--green .cat-preview__block:nth-child(5) { background: #3A9E5F; }

/* Orange (Kit) */
.cat-preview--orange .cat-preview__block:nth-child(1) { background: #F0A070; }
.cat-preview--orange .cat-preview__block:nth-child(2) { background: #F5C4A5; }
.cat-preview--orange .cat-preview__block:nth-child(3) { background: #D97040; }
.cat-preview--orange .cat-preview__block:nth-child(4) { background: #F0A070; }
.cat-preview--orange .cat-preview__block:nth-child(5) { background: #FDE8D8; }

/* Blue (Mega Kit) */
.cat-preview--blue .cat-preview__block:nth-child(1) { background: #7DA2D9; }
.cat-preview--blue .cat-preview__block:nth-child(2) { background: #B8CAEE; }
.cat-preview--blue .cat-preview__block:nth-child(3) { background: #B8CAEE; }
.cat-preview--blue .cat-preview__block:nth-child(4) { background: #7DA2D9; }
.cat-preview--blue .cat-preview__block:nth-child(5) { background: #EEF3FF; }

/* Card badges */
.cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: var(--text-xxs);
  font-weight: 700;
  z-index: 2;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cat-badge__icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.cat-badge--new {
  background-color: #D4522A;
  color: #FFFFFF;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
}
.cat-badge--hit {
  background-color: #1A1713;
  color: #FFFFFF;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border: none;
  line-height: normal;
}

/* ============================================================
   BUNDLE CARD
   ============================================================ */
.bundle-card {
  display: grid;
  grid-template-columns: minmax(0, 692fr) minmax(0, 506fr);
  width: 100%;
  border: 1px solid #DDD6CC;
  border-radius: 20px;
  overflow: hidden;
  box-sizing: border-box;
}

/* Left: purple/lavender */
.bundle-card__left {
  width: auto;
  min-width: 0;
  background-color: #F5F0FF;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14.4px;
  justify-content: space-between;
  box-sizing: border-box;
}

.bundle-card__content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bundle-card__type {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(138, 110, 200, 0.08);
  border: 1px solid rgba(138, 110, 200, 0.15);
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 700;
  color: #8A6EC8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  align-self: flex-start;
}

.bundle-card__title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 700;
  color: #1A1713;
  line-height: 1.12;
}
.bundle-card__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  color: #8A6EC8;
}

.bundle-card__subtitle {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 400;
  color: #5F5A55;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.bundle-card__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bundle-card__item {
  display: flex;
  align-items: center;
  height: 45px;
  padding: 10px 16px;
  gap: 12px;
  background: rgba(138, 110, 200, 0.08);
  border: 1px solid rgba(138, 110, 200, 0.15);
  border-radius: 10px;
  box-sizing: border-box;
  justify-content: space-between;
}

.bundle-card__item-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background-color: #8A6EC8;
  flex: 0 0 8px;
}

.bundle-card__item-name {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  color: #8A6EC8;
  flex: 1;
}

.bundle-card__item-price {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 400;
  color: #8A6EC8;
  text-decoration: line-through;
  white-space: nowrap;
}

.bundle-card__pricing {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 8px;
  margin-top: 0;
}

.bundle-card__old-price {
  font-family: var(--font-primary);
  font-style: italic;
  font-size: 17px;
  font-weight: 400;
  color: #1A1713;
  opacity: 0.5;
  text-decoration: line-through;
}

.bundle-card__price {
  font-family: var(--font-primary);
  font-size: 34px;
  font-weight: 700;
  color: #8A6EC8;
  line-height: 1;
}

/* Right: white with mini previews */
.bundle-card__right {
  width: auto;
  min-width: 0;
  background-color: #FDFBF7;
  padding: 24px;
  border-left: 1px solid #DDD6CC;
  display: flex;
  flex-direction: column;
  gap: 16.2px;
  box-sizing: border-box;
}

/* Right column cards */
.bundle-right-card {
  background: #FFFFFF;
  border: 1px solid #DDD6CC;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}

.bundle-right-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bundle-right-card__title {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 700;
  color: #1A1713;
  line-height: 1.25;
}

.bundle-right-card__meta {
  font-family: var(--font-primary);
  font-size: 8px;
  font-weight: 400;
  color: #5F5A55;
  opacity: 0.55;
}

.bundle-right-card__bars {
  height: 38px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bundle-right-card__row {
  display: grid;
  gap: 6px;
  height: 16px;
}

.bundle-right-card__row--r1 { grid-template-columns: 142fr 284fr; }
.bundle-right-card__row--r2 { grid-template-columns: 181fr 152fr 87fr; }

.bundle-right-card__bar {
  height: 16px;
  border-radius: 3px;
  opacity: 0.65;
}

/* Orange card bar colors (SaaS Landing Kit, Dashboard UI Kit) */
.bundle-right-card--orange .bundle-right-card__row--r1 .bundle-right-card__bar:nth-child(1) { background: #F0A070; }
.bundle-right-card--orange .bundle-right-card__row--r1 .bundle-right-card__bar:nth-child(2) { background: #D97040; }
.bundle-right-card--orange .bundle-right-card__row--r2 .bundle-right-card__bar:nth-child(1) { background: #F5C4A5; }
.bundle-right-card--orange .bundle-right-card__row--r2 .bundle-right-card__bar:nth-child(2) { background: #F0A070; }
.bundle-right-card--orange .bundle-right-card__row--r2 .bundle-right-card__bar:nth-child(3) { background: #D97040; }

/* Green card bar colors (Form Elements Pack) */
.bundle-right-card--green .bundle-right-card__row--r1 .bundle-right-card__bar:nth-child(1) { background: #6ABF8A; }
.bundle-right-card--green .bundle-right-card__row--r1 .bundle-right-card__bar:nth-child(2) { background: #3A9E5F; }
.bundle-right-card--green .bundle-right-card__row--r2 .bundle-right-card__bar:nth-child(1) { background: #A5D9B8; }
.bundle-right-card--green .bundle-right-card__row--r2 .bundle-right-card__bar:nth-child(2) { background: #6ABF8A; }
.bundle-right-card--green .bundle-right-card__row--r2 .bundle-right-card__bar:nth-child(3) { background: #3A9E5F; }

/* Bundle CTA button */
.bundle-cta-btn {
  height: 41px;
  padding: 8.5px 22px;
  background: #D4522A;
  color: #FFFFFF;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-full);
  box-shadow: 0 5.73px 22.91px 0 rgba(212, 82, 42, 0.216);
  line-height: 1;
}
.bundle-cta-btn:hover { background: #BF4A25; }

.bundle-card__btn-row {
  display: flex;
  justify-content: flex-end;
}

/* ============================================================
   CATALOG FAQ
   ============================================================ */
.cat-faq {
  padding: 80px 0;
  background-color: var(--color-beige-100);
}

.cat-faq__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.cat-faq__title {
  font-family: var(--font-primary);
  font-size: 54px;
  font-weight: 700;
  line-height: 1.08;
  color: var(--color-brown-900);
  margin-bottom: 16px;
}
.cat-faq__title em {
  font-family: var(--font-primary);
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent);
}

.cat-faq__subtitle {
  font-size: 17px;
  color: var(--color-brown-600);
  line-height: 1.6;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1024px) {
  .cat-hero__title      { font-size: 40px; }
  .cat-grid--3          { grid-template-columns: 1fr 1fr; }
  .bundle-card          { grid-template-columns: 1fr; }
  .bundle-card__left    { padding: 24px; }
  .bundle-card__right   { border-left: none; border-top: 1px solid #DDD6CC; }
  .cat-faq__inner       { grid-template-columns: 1fr; gap: 40px; }
  .cat-faq__title       { font-size: 36px; }
}

@media (max-width: 767px) {
  .cat-hero__title      { font-size: 30px; }
  .cat-grid--3          { grid-template-columns: 1fr; }
  .cat-grid--2          { grid-template-columns: 1fr; }
  .bundle-card__title   { font-size: 26px; }
  .cat-faq__title       { font-size: 28px; }

  .cat-filter__pills {
    width: 100%;
    height: auto;
    min-height: 52px;
    flex-wrap: wrap;
    border-radius: 24px;
    align-items: center;
  }

  .cat-filter__pill {
    flex: 1 1 auto;
    min-width: max-content;
  }

  .cat-section__head {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
  }

  .cat-section__left {
    max-width: 100%;
  }

  .cat-section__desc {
    max-width: 100%;
    line-height: 1.45;
  }
}
