/* ============================================================
   ROTANO — Каталог: расширенные блоки
   ============================================================ */

/* ── Catalog Hero ── */
.catalog-hero {
    background: oklch(96% 0.018 60);
    border-bottom: 1px solid oklch(89% 0.022 60);
    padding: 48px 0 40px;
}
.catalog-hero__inner { display: flex; flex-direction: column; gap: 20px; }
.catalog-hero__badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
    background: #fff; border: 1px solid oklch(85% 0.03 60); color: oklch(38% 0.06 50);
}
.hero-badge__dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0;
}
.catalog-hero__h1 {
    margin: 0 0 8px; font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700; line-height: 1.2; color: var(--text-main);
}
.catalog-hero__lead {
    margin: 0 0 20px; font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.6; color: oklch(44% 0.04 55); max-width: 640px;
}
.catalog-hero__stats { display: flex; flex-wrap: wrap; gap: 28px; margin-bottom: 4px; }
.catalog-hero__stat { display: flex; flex-direction: column; gap: 2px; }
.catalog-hero__stat-value { font-size: 1.5rem; font-weight: 700; color: var(--accent); line-height: 1; }
.catalog-hero__stat-label { font-size: 12px; color: oklch(52% 0.04 55); }
.catalog-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ── Category grid ── */
.catalog-cats { padding: 48px 0 16px; }
.catalog-cats__head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.catalog-section-title {
    margin: 0; font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; color: var(--text-main);
}
.catalog-section-link {
    font-size: 13px; font-weight: 600; color: var(--accent);
    text-decoration: none; white-space: nowrap;
}
.catalog-section-link:hover { text-decoration: underline; }
.catalog-cats__grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px;
}
.cat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; text-decoration: none;
    display: flex; flex-direction: column; transition: box-shadow 0.15s, transform 0.15s;
}
.cat-card:hover {
    box-shadow: 0 4px 20px oklch(30% 0.06 50 / 0.10);
    transform: translateY(-2px); text-decoration: none;
}
.cat-card__img {
    aspect-ratio: 4/3; background: oklch(95% 0.016 60);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cat-card__img img {
    width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s;
}
.cat-card:hover .cat-card__img img { transform: scale(1.05); }
.cat-card__placeholder { font-size: 2.8rem; opacity: 0.4; user-select: none; }
.cat-card__body {
    padding: 12px 14px 14px; flex: 1;
    display: flex; flex-direction: column; gap: 4px;
}
.cat-card__name { margin: 0; font-size: 14px; font-weight: 600; color: var(--text-main); line-height: 1.3; }
.cat-card__count { font-size: 12px; color: oklch(55% 0.04 55); }

/* ── Toolbar section ── */
.catalog-toolbar-section { padding: 32px 0 0; }

/* ── Why us ── */
.catalog-why {
    background: var(--bg-card); border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border); padding: 56px 0; margin-top: 48px;
}
.catalog-why__grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 32px; margin-top: 32px;
}
.why-card { display: flex; flex-direction: column; gap: 10px; }
.why-card__icon { font-size: 2rem; line-height: 1; }
.why-card__title { margin: 0; font-size: 15px; font-weight: 700; color: var(--text-main); }
.why-card__text { margin: 0; font-size: 14px; line-height: 1.6; color: oklch(44% 0.04 55); }

/* ── Wholesale ── */
.catalog-wholesale { background: oklch(26% 0.04 50); color: #fff; padding: 56px 0; }
.catalog-wholesale__inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.catalog-wholesale__title {
    margin: 0 0 12px; font-size: clamp(1.2rem, 2.5vw, 1.7rem); font-weight: 700; color: #fff;
}
.catalog-wholesale__lead {
    margin: 0 0 24px; font-size: 15px; line-height: 1.7; color: oklch(80% 0.02 50);
}
.wholesale-tiers {
    list-style: none; padding: 0; margin: 0 0 28px;
    display: flex; flex-direction: column; gap: 8px;
}
.wholesale-tier {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; background: oklch(32% 0.04 50); border-radius: 6px; font-size: 14px;
}
.wholesale-tier__range { color: oklch(85% 0.02 50); }
.wholesale-tier__discount { font-weight: 700; color: oklch(80% 0.12 75); }
.catalog-wholesale__docs { display: flex; flex-direction: column; gap: 12px; }
.doc-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px; background: oklch(32% 0.04 50); border-radius: 6px;
}
.doc-item__icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 1px; }
.doc-item__title { margin: 0 0 3px; font-size: 14px; font-weight: 600; color: #fff; }
.doc-item__text { margin: 0; font-size: 13px; color: oklch(72% 0.02 50); line-height: 1.5; }

/* ── Delivery brief ── */
.catalog-delivery-brief {
    padding: 56px 0; background: oklch(97% 0.012 60);
    border-top: 1px solid oklch(91% 0.018 60);
}
.catalog-delivery-brief__grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px;
}
.delivery-brief-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px 22px;
    display: flex; flex-direction: column; gap: 8px;
}
.delivery-brief-card__icon { font-size: 1.8rem; }
.delivery-brief-card__title { margin: 0; font-size: 15px; font-weight: 700; color: var(--text-main); }
.delivery-brief-card__text { margin: 0; font-size: 13.5px; line-height: 1.6; color: oklch(46% 0.04 55); }
.delivery-brief-card__cond { margin: 4px 0 0; font-size: 12px; font-weight: 600; color: var(--accent); }
.catalog-delivery-brief__footer { margin-top: 24px; text-align: center; }

/* ── SEO text ── */
.catalog-seo {
    padding: 56px 0; background: var(--bg-card); border-top: 1px solid var(--border);
}
.catalog-seo__body {
    display: grid; grid-template-columns: 2fr 1fr;
    gap: 48px; align-items: start; margin-top: 24px;
}
.catalog-seo__text { font-size: 15px; line-height: 1.8; color: oklch(38% 0.04 50); }
.catalog-seo__text h3 {
    font-size: 17px; font-weight: 700; color: var(--text-main); margin: 24px 0 10px;
}
.catalog-seo__text h3:first-child { margin-top: 0; }
.catalog-seo__text p { margin: 0 0 14px; }
.catalog-seo__text p:last-child { margin-bottom: 0; }
.catalog-seo__aside {
    background: oklch(96% 0.018 60); border: 1px solid oklch(89% 0.022 60);
    border-radius: var(--radius); padding: 20px 22px;
}
.catalog-seo__aside h3 { margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--text-main); }
.catalog-seo__aside ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.catalog-seo__aside li {
    font-size: 13.5px; color: oklch(40% 0.05 50);
    padding-left: 16px; position: relative; line-height: 1.5;
}
.catalog-seo__aside li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }

/* ── FAQ ── */
.catalog-faq {
    padding: 56px 0; background: oklch(97% 0.012 60);
    border-top: 1px solid oklch(91% 0.018 60);
}
.catalog-faq__grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px;
}

/* ── Final CTA ── */
.catalog-cta-final {
    background: linear-gradient(135deg, var(--accent) 0%, oklch(42% 0.12 50) 100%);
    padding: 64px 0; text-align: center;
}
.catalog-cta-final__title {
    margin: 0 0 12px; font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 700; color: #fff;
}
.catalog-cta-final__text {
    font-size: 16px; line-height: 1.6; color: oklch(95% 0.02 60);
    max-width: 560px; margin: 0 auto 32px;
}
.catalog-cta-final__contacts {
    display: flex; justify-content: center; gap: 32px; margin-bottom: 32px; flex-wrap: wrap;
}
.catalog-cta-final__contact { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.catalog-cta-final__contact-label {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: oklch(85% 0.04 60);
}
.catalog-cta-final__contact-value {
    font-size: 17px; font-weight: 700; color: #fff; text-decoration: none;
}
.catalog-cta-final__contact-value:hover { text-decoration: underline; }
.catalog-cta-final__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.btn--light {
    background: #fff; color: var(--accent); border: none;
    padding: 12px 28px; border-radius: var(--radius); font-size: 15px; font-weight: 700;
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    cursor: pointer; transition: background 0.15s;
}
.btn--light:hover { background: oklch(96% 0.012 60); text-decoration: none; }
.btn--outline-light {
    background: transparent; color: #fff; border: 2px solid oklch(100% 0 0 / 0.55);
    padding: 10px 26px; border-radius: var(--radius); font-size: 15px; font-weight: 600;
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.btn--outline-light:hover { border-color: #fff; background: oklch(100% 0 0 / 0.08); text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .catalog-wholesale__inner     { grid-template-columns: 1fr; gap: 32px; }
    .catalog-delivery-brief__grid { grid-template-columns: 1fr 1fr; }
    .catalog-faq__grid            { grid-template-columns: 1fr; }
    .catalog-seo__body            { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
    .catalog-hero                 { padding: 32px 0 28px; }
    .catalog-cats__grid           { grid-template-columns: repeat(2, 1fr); }
    .catalog-delivery-brief__grid { grid-template-columns: 1fr; }
    .catalog-why__grid            { grid-template-columns: 1fr 1fr; }
    .catalog-hero__stats          { gap: 20px; }
    .catalog-cta-final__contacts  { gap: 20px; }
}
@media (max-width: 360px) {
    .catalog-cats__grid { grid-template-columns: 1fr; }
    .catalog-why__grid  { grid-template-columns: 1fr; }
}
.btn--sm { padding: 7px 14px; font-size: 13px; }

/* ── Как заказать (страницы категорий) ── */
.cat-steps { padding: 56px 0; background: var(--bg-card); border-top: 1px solid var(--border); }
.cat-steps__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.cat-steps__item { position: relative; padding: 20px 22px; background: oklch(97% 0.012 60); border: 1px solid oklch(91% 0.018 60); border-radius: var(--radius); display: flex; flex-direction: column; gap: 8px; }
.cat-steps__num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; }
.cat-steps__title { margin: 0; font-size: 15px; font-weight: 700; color: var(--text-main); }
.cat-steps__text { margin: 0; font-size: 13.5px; line-height: 1.6; color: oklch(46% 0.04 55); }
@media (max-width: 900px) { .cat-steps__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cat-steps__list { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .catalog-delivery-brief__grid { grid-template-columns: 1fr; } .catalog-seo__body { grid-template-columns: 1fr; } .catalog-faq__grid { grid-template-columns: 1fr; } .catalog-wholesale__inner { grid-template-columns: 1fr; } }

/* ── Двухколоночный hero на страницах категорий ── */
.catalog-hero--category .catalog-hero__inner {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}
.cat-hero-visual {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 80px;
}
.cat-hero-visual__label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: oklch(55% .04 55);
}
.cat-hero-visual__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.cat-hero-stat {
    background: oklch(96% .016 65);
    border-radius: 8px;
    padding: 14px 14px 12px;
}
.cat-hero-stat__val {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.cat-hero-stat__lbl {
    font-size: .72rem;
    color: oklch(52% .04 55);
    margin-top: 4px;
    line-height: 1.35;
}
.cat-hero-visual__promo {
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: .82rem;
    line-height: 1.5;
}
.cat-hero-visual__cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
@media (max-width: 900px) {
    .catalog-hero--category .catalog-hero__inner {
        grid-template-columns: 1fr;
    }
    .cat-hero-visual { position: static; }
}

/* ===== Hero: заполнение пустоты ===== */
.catalog-hero__fill { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }

/* Быстрый подбор */
.hero-quicknav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.hero-quicknav__label {
  font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase;
  color: #9b8a7c; margin-right: 2px;
}
.hero-quicknav__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.qnav-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; line-height: 1;
  color: #4a3a2c; background: #fff;
  border: 1px solid rgba(74, 58, 44, .16);
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.qnav-chip:hover { background: #f7f1ea; border-color: rgba(74, 58, 44, .3); transform: translateY(-1px); }
.qnav-chip:active { transform: translateY(0); }
.qnav-chip:focus-visible { outline: 2px solid #b8703a; outline-offset: 2px; }
.qnav-chip--accent {
  color: #fff; background: #b8703a; border-color: #b8703a;
}
.qnav-chip--accent:hover { background: #a4642f; border-color: #a4642f; }

/* Гарантии */
.hero-usp {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px; list-style: none; margin: 0;
  padding: 20px 0 0; border-top: 1px solid rgba(74, 58, 44, .12);
}
.hero-usp__item { display: flex; gap: 10px; align-items: flex-start; }
.hero-usp__icon { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; color: #b8703a; }
.hero-usp__title { display: block; font-size: 13.5px; font-weight: 600; color: #2f2418; line-height: 1.25; }
.hero-usp__text  { display: block; font-size: 12.5px; color: #7d6d5f; line-height: 1.35; margin-top: 2px; }

@media (max-width: 640px) {
  .hero-usp { grid-template-columns: 1fr; gap: 12px; padding-top: 16px; }
  .catalog-hero__fill { margin-top: 20px; }
}

/* Фикс: не блокировать кнопки */
.catalog-hero__content { display: flex; flex-direction: column; }

/* Фикс: кнопки поверх всех элементов */
.catalog-hero__actions { position: relative; z-index: 10; }

/* Фикс перекрытия: fill пропускает клики, но его дети — нет */
.catalog-hero__fill { pointer-events: none; }
.catalog-hero__fill a,
.catalog-hero__fill button { pointer-events: auto; }

/* Фикс: кнопка "Запросить прайс" видна на светлом фоне */
.catalog-hero__actions .btn--secondary {
  background-color: #fff;
  border: 2px solid #b8703a;
  color: #4a3a2c;
}
.catalog-hero__actions .btn--secondary:hover {
  background-color: #b8703a;
  color: #fff;
}
