/* Очки500 — SEO-категории линз MODX 3. Совместимо с o500-lens-shop.css. */
.o500ls.o500-lcat { background:#f7f9fc; color:#12263d; min-height:70vh; }
.o500-lcat, .o500-lcat * { box-sizing:border-box; }
.o500-lcat .o500-lcat__container {
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    padding: 24px 28px 70px;
}
.o500-lcat__crumbs { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:0 0 22px; color:#547089; font-size:14px; line-height:1.5; }
.o500-lcat__crumbs a { text-decoration:none; color:#185385; }
.o500-lcat__crumbs a:hover { text-decoration:underline; }
.o500-lcat__hero { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,.85fr); gap:28px; align-items:center; overflow:hidden; border-radius:22px; background:linear-gradient(118deg,#09213c,#173f68 62%,#26669c); color:#fff; box-shadow:0 18px 45px rgba(10,33,60,.12); padding:36px 40px; }
.o500-lcat__kicker { margin:0 0 10px; color:#aad7ff; font-weight:700; font-size:14px; letter-spacing:.11em; text-transform:uppercase; }
.o500-lcat__hero h1 { margin:0 0 16px; font-weight:700; font-size:clamp(30px,3.3vw,48px); line-height:1.16; color:#fff; }
.o500-lcat__lead { margin:0; color:#e9f2fb; font-size:17px; line-height:1.7; max-width:670px; }
.o500-lcat__hero-image { display:block; width:100%; min-height:230px; max-height:310px; aspect-ratio:4/3; object-fit:cover; border-radius:16px; background:#e7eff9; }
.o500-lcat__hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin:22px 0 0; }
.o500-lcat__btn { display:inline-flex; align-items:center; justify-content:center; min-height:45px; border-radius:9px; background:#fff; color:#123d63; padding:10px 18px; text-decoration:none!important; font-size:15px; font-weight:700; }
.o500-lcat__btn--ghost { background:transparent; border:1px solid rgba(255,255,255,.5); color:#fff; }
.o500-lcat__advantages { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; margin:20px 0 28px; }
.o500-lcat__adv { background:#fff; border:1px solid #dae6f2; border-radius:14px; padding:17px 20px; }
.o500-lcat__adv strong { display:block; font-size:16px; color:#173d64; margin-bottom:5px; }
.o500-lcat__adv p { margin:0; font-size:15px; color:#526477; line-height:1.6; }
.o500-lcat__intro, .o500-lcat__seo { font-size:16px; line-height:1.75; color:#30485f; }
.o500-lcat__intro:empty, .o500-lcat__seo:empty { display:none; }
.o500-lcat__intro { margin:0 0 20px; }
.o500-lcat__intro p:first-child { margin-top:0; }
.o500-lcat__section-title { margin:0 0 13px; color:#142d47; font-size:clamp(21px,2.6vw,28px); font-weight:700; line-height:1.3; }
.o500-lcat__nav { margin:24px 0 30px; }
.o500-lcat__nav-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.o500-lcat__nav-item { display:flex; align-items:center; justify-content:space-between; gap:8px; text-decoration:none!important; padding:12px 15px; min-height:50px; color:#21496f; background:#fff; border:1px solid #dce8f3; border-radius:10px; font-size:14px; font-weight:600; line-height:1.35; transition:border-color .15s,background .15s; }
.o500-lcat__nav-item:hover { background:#eaf4fc; border-color:#9dc7e9; }
.o500-lcat__nav-item.is-current { background:#173f68; color:#fff; border-color:#173f68; }
.o500-lcat__nav-item span:last-child { font-size:18px; flex:none; }
.o500-lcat__catalog { background:#fff; border:1px solid #e0eaf2; border-radius:16px; padding:16px; margin:0 0 28px; }
.o500-lcat__seo { background:#fff; padding:24px 26px; border:1px solid #e1eaf4; border-radius:14px; }
.o500-lcat__seo h2 { font-size:24px; color:#173b60; margin:14px 0; }
.o500-lcat__seo h3 { font-size:19px; color:#173b60; }
.o500-lcat__seo a { color:#17659d; }
.o500-lcat__contacts { margin:28px 0 0; padding:22px; background:#eaf3fb; border-radius:14px; display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px; }
.o500-lcat__contacts p { margin:0; font-size:16px; }
.o500-lcat__contacts a { color:#185385; font-weight:700; text-decoration:none; }
.o500-lcat :is(a,button,input,select,summary):focus-visible { outline:3px solid #54aaff; outline-offset:3px; }
@media(max-width:950px){.o500-lcat__nav-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.o500-lcat__hero{grid-template-columns:1.2fr .8fr;gap:20px;padding:26px}.o500-lcat__hero-image{min-height:205px}}
@media(max-width:680px){.o500-lcat .o500-lcat__container{padding:15px 12px 45px}.o500-lcat__hero{grid-template-columns:1fr;padding:24px 20px}.o500-lcat__hero-image{height:190px;min-height:0;max-height:none}.o500-lcat__lead{font-size:16px}.o500-lcat__nav-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.o500-lcat__advantages{grid-template-columns:1fr}.o500-lcat__catalog{padding:8px}.o500-lcat__seo{padding:18px}}
@media(max-width:380px){.o500-lcat__nav-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.o500-lcat__nav-item{transition:none}}











/* ====================================
   ОЧКИ500 — ШИРОКИЙ КАТАЛОГ КАТЕГОРИЙ
==================================== */

.o500-lcat .o500ls-main {
    min-width: 0;
}

/* Размер и расстояние между карточками */
.o500-lcat .o500ls-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* Карточки */
.o500-lcat .o500ls-product {
    min-width: 0;
}

/* Название товара */
.o500-lcat .o500ls-product h3 {
    font-size: 16px;
    line-height: 1.4;
}

/* Характеристики */
.o500-lcat .o500ls-spec {
    font-size: 14px;
    line-height: 1.5;
}

/* Фильтры */
.o500-lcat .o500ls-facet summary,
.o500-lcat .o500ls-option {
    font-size: 15px;
}

/* На больших мониторах — четыре товара */
@media (min-width: 1700px) {
    .o500-lcat .o500ls-products {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Планшеты */
@media (max-width: 1100px) {
    .o500-lcat .o500ls-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }
}

/* Телефоны */
@media (max-width: 680px) {
    .o500-lcat .o500ls-products {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}








/* SEO-текст категории линз */

.o500-lcat .o500-lcat__seo {
    padding: 32px 38px;
    font-size: 16px;
    line-height: 1.75;
}

.o500-lcat__seo h2 {
    font-size: 28px;
    line-height: 1.3;
    margin: 0 0 18px;
    color: #173b60;
}

.o500-lcat__seo h3 {
    font-size: 22px;
    line-height: 1.35;
    margin: 26px 0 12px;
    color: #173b60;
}

.o500-lcat__seo p {
    margin: 0 0 16px;
}

.o500-lcat__seo ul,
.o500-lcat__seo ol {
    padding-left: 24px;
    margin: 0 0 20px;
}

.o500-lcat__seo li {
    margin-bottom: 8px;
}

.o500-lcat__seo a {
    color: #17659d;
    text-decoration: underline;
}

@media (max-width: 680px) {
    .o500-lcat .o500-lcat__seo {
        padding: 22px 18px;
    }

    .o500-lcat__seo h2 {
        font-size: 24px;
    }

    .o500-lcat__seo h3 {
        font-size: 20px;
    }
}




/* =====================================
   ОЧКИ500 — ОБНОВЛЕНИЕ КАТЕГОРИЙ
===================================== */

/* Три преимущества в один ряд */
.o500-lcat .o500-lcat__advantages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

/* Исправление невидимого текста кнопки */
.o500ls.o500-lcat
.o500-lcat__hero-actions
.o500-lcat__btn:not(.o500-lcat__btn--ghost) {
    background: #ffffff !important;
    color: #123d63 !important;
    border: 1px solid #ffffff;
}

/* Вторая кнопка остаётся с белым текстом */
.o500ls.o500-lcat
.o500-lcat__hero-actions
.o500-lcat__btn--ghost {
    background: transparent;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,.5);
}

/* Бренды — пять колонок на широком экране */
.o500-lcat .o500-lcat__nav-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

/* Карточки брендов */
.o500-lcat .o500-lcat__nav-item {
    justify-content: center;
    text-align: center;
    min-height: 54px;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 12px;
}

/* Убираем стрелки в старых карточках категорий */
.o500-lcat .o500-lcat__nav-item
> span[aria-hidden="true"] {
    display: none !important;
}

/* Планшеты */
@media (max-width: 1100px) {
    .o500-lcat .o500-lcat__nav-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .o500-lcat .o500-lcat__advantages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Телефоны */
@media (max-width: 680px) {
    .o500-lcat .o500-lcat__nav-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .o500-lcat .o500-lcat__advantages {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .o500-lcat .o500-lcat__nav-grid {
        grid-template-columns: 1fr;
    }
}




/* =========================================
   ОЧКИ500 — ОБНОВЛЕНИЕ БАННЕРА И БРЕНДОВ
========================================= */

/* Весь текст — чёрный */
.o500-lcat,
.o500-lcat p,
.o500-lcat li,
.o500-lcat span,
.o500-lcat strong,
.o500-lcat a,
.o500-lcat h1,
.o500-lcat h2,
.o500-lcat h3,
.o500-lcat h4 {
  color: #111111;
}

/* Баннер с фото */
.o500-lcat__hero {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 22px;
  padding: 44px 40px;
  min-height: 320px;
  background-color: #f3f6fa;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  box-shadow: 0 18px 45px rgba(10,33,60,.10);
}

.o500-lcat__hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.78);
  z-index: 1;
}

.o500-lcat__hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.o500-lcat__kicker {
  margin: 0 0 10px;
  color: #111111 !important;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.o500-lcat__hero h1 {
  margin: 0 0 16px;
  font-weight: 700;
  font-size: clamp(30px,3.3vw,48px);
  line-height: 1.16;
  color: #111111 !important;
}

.o500-lcat__lead {
  margin: 0;
  color: #111111 !important;
  font-size: 18px;
  line-height: 1.7;
  max-width: 720px;
}

/* Кнопки баннера */
.o500-lcat__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
}

.o500-lcat__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 9px;
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #cfd9e3;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 700;
}

.o500-lcat__btn:hover {
  background: #f4f7fa !important;
  color: #111111 !important;
}

.o500-lcat__btn--ghost {
  background: transparent !important;
  color: #111111 !important;
  border: 1px solid #111111;
}

.o500-lcat__btn--ghost:hover {
  background: rgba(255,255,255,.45) !important;
}

/* 3 преимущества */
.o500-lcat__advantages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 15px;
  margin: 20px 0 28px;
}

.o500-lcat__adv {
  background: #fff;
  border: 1px solid #dae6f2;
  border-radius: 14px;
  padding: 17px 20px;
}

.o500-lcat__adv strong {
  display: block;
  font-size: 16px;
  color: #111111 !important;
  margin-bottom: 5px;
}

.o500-lcat__adv p {
  margin: 0;
  font-size: 15px;
  color: #111111 !important;
  line-height: 1.6;
}

/* Бренды */
.o500-lcat__nav {
  margin: 24px 0 30px;
}

.o500-lcat__nav-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 12px;
}

.o500-lcat__nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none !important;
  min-height: 88px;
  padding: 14px 12px;
  background: #fff;
  border: 1px solid #dce8f3;
  border-radius: 12px;
  color: #111111 !important;
  text-align: center;
}

.o500-lcat__nav-item:hover {
  background: #f7fbff;
  border-color: #b7d3e8;
}

.o500-lcat__nav-item.is-current {
  background: #eef5fb;
  border-color: #9dc4df;
  color: #111111 !important;
}

.o500-lcat__nav-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  width: 100%;
}

.o500-lcat__nav-logo {
  display: block;
  max-width: 140px;
  max-height: 34px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.o500-lcat__nav-title {
  display: block;
  color: #111111 !important;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
}

/* Убираем стрелки */
.o500-lcat__nav-item span[aria-hidden="true"] {
  display: none !important;
}

/* SEO-блок и интро — чёрный текст */
.o500-lcat__intro,
.o500-lcat__intro p,
.o500-lcat__seo,
.o500-lcat__seo p,
.o500-lcat__seo li,
.o500-lcat__seo h2,
.o500-lcat__seo h3,
.o500-lcat__seo h4,
.o500-lcat__contacts,
.o500-lcat__contacts p,
.o500-lcat__contacts a,
.o500-lcat__section-title {
  color: #111111 !important;
}

/* Адаптив */
@media (max-width: 1100px) {
  .o500-lcat__nav-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }

  .o500-lcat__advantages {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 680px) {
  .o500-lcat__hero {
    padding: 28px 20px;
    min-height: 260px;
  }

  .o500-lcat__nav-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .o500-lcat__advantages {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .o500-lcat__nav-grid {
    grid-template-columns: 1fr;
  }
}







/* Кнопка «Все линзы» */
.o500ls.o500-lcat .o500-lcat__hero
.o500-lcat__btn--ghost {
    background: #185385 !important;
    color: #ffffff !important;
    border: 1px solid #185385 !important;
    font-weight: 600;
    transition: background .2s ease;
}

/* При наведении */
.o500ls.o500-lcat .o500-lcat__hero
.o500-lcat__btn--ghost:hover {
    background: #103b61 !important;
    color: #ffffff !important;
    border-color: #103b61 !important;
}