/*
 * Очки500 / Солнцезащитные очки — EDITORIAL 500 v13
 * ОДИН файл: /assets/templates/css/o500-sunglasses-dark-v2.css
 * Имя файла сохранено для совместимости с шаблоном MODX.
 *
 * Визуальное направление: каталог линз / белый фон, чёрный текст,
 * большой фотографический баннер во всю ширину, тёмно-синие кнопки.
 *
 * Баннер назначается отдельно в каждой категории через TV o500_sun_banner.
 * При пустом TV выводится тёмно-синий фон без сломанной картинки.
 *
 * Бренды: первые 10 строк, остальные прокручиваются внутри списка.
 * CSS самодостаточен: старый o500-sunglasses-catalog.css НЕ нужен.
 */

/* 01 / Палитра и основа */
.o500sun-page {
  --sun-bg: #fff;
  --sun-text: #20252b;
  --sun-heading: #111821;
  --sun-muted: #596776;
  --sun-dim: #718092;
  --sun-line: #e4e9ee;
  --sun-soft: #f7f9fb;
  --sun-soft-blue: #f1f5f8;
  --sun-photo: #fff;
  --sun-navy: #173d66;
  --sun-navy-hover: #275780;
  --sun-navy-pressed: #102e4b;
  --sun-focus: #2d6a9d;
  --o500sun-banner-image: none;
  background: var(--sun-bg);
  color: var(--sun-text);
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.58;
  overflow-x: clip;
}
.o500sun-page .o500sun,
.o500sun-page .o500sun *,
.o500sun-page .o500sun *::before,
.o500sun-page .o500sun *::after { box-sizing: border-box; }
.o500sun-page .o500sun {
  min-width: 0;
  width: 100%;
  padding: 0 0 46px;
  background: var(--sun-bg);
  color: var(--sun-text);
  font-size: 16px;
  line-height: 1.58;
}
.o500sun-page .o500sun [hidden] { display: none !important; }
.o500sun-page .o500sun a { color: inherit; text-decoration: none; }
.o500sun-page .o500sun button,
.o500sun-page .o500sun input,
.o500sun-page .o500sun select { font: inherit; }
.o500sun-page .o500sun button { cursor: pointer; }
.o500sun-page .o500sun img { max-width: 100%; }
.o500sun-page .o500sun :is(a, button, input, select, summary):focus-visible {
  outline: 3px solid var(--sun-focus);
  outline-offset: 3px;
}
.o500sun-page .o500sun-container {
  width: min(1320px, calc(100% - 44px));
  margin-inline: auto;
}
.o500sun-page .o500sun-eyebrow {
  display: block;
  color: #496d90;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.o500sun-page .o500sun-eyebrow--dark { color: #43678a; }
.o500sun-page .o500sun-crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  min-height: 59px;
  margin: 0;
  padding-block: 11px;
  color: var(--sun-dim);
  font-size: 14px;
}
.o500sun-page .o500sun-crumbs a { color: #536779; }
.o500sun-page .o500sun-crumbs a:hover { color: var(--sun-navy); text-decoration: underline; }
.o500sun-page .o500sun-crumbs [aria-current="page"] { color: #253444; font-weight: 500; }

/* 02 / Большой баннер на ширину экрана, как у линз */
.o500sun-page .o500sun-hero {
  position: relative;
  left: 50%;
  display: flex;
  align-items: center;
  isolation: isolate;
  width: 100vw;
  max-width: none;
  min-height: 620px;
  margin: 0 0 25px;
  padding: 60px 24px;
  transform: translateX(-50%);
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background-color: #172a3c;
  background-image:
    linear-gradient(
      90deg,
      rgba(7, 15, 25, .83) 0%,
      rgba(7, 15, 25, .67) 36%,
      rgba(7, 15, 25, .28) 65%,
      rgba(7, 15, 25, .07) 100%
    ),
    var(--o500sun-banner-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  box-shadow: none;
}
.o500sun-page .o500sun-hero::before,
.o500sun-page .o500sun-hero::after,
.o500sun-page .o500sun-hero__art { display: none !important; }
.o500sun-page .o500sun-hero__copy {
  position: relative;
  z-index: 1;
  width: min(670px, 100%);
  max-width: 670px;
  margin-left: clamp(30px, 12vw, 220px);
  color: #fff;
}
.o500sun-page .o500sun-hero .o500sun-eyebrow {
  margin: 0 0 20px;
  color: #c7dbed;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: .13em;
}
.o500sun-page .o500sun-hero h1 {
  max-width: 690px;
  margin: 0 0 22px;
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: clamp(38px, 3.55vw, 54px);
  font-weight: 620;
  line-height: 1.13;
  letter-spacing: -.027em;
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .22);
}
.o500sun-page .o500sun-hero p {
  max-width: 575px;
  margin: 0;
  color: #f1f4f7;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .21);
}
.o500sun-page .o500sun-hero__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 47px;
  margin-top: 27px;
  padding: 11px 23px;
  border: 0;
  border-radius: 8px;
  background: var(--sun-navy);
  color: #fff !important;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.3;
  transition: background-color .2s ease;
}
.o500sun-page .o500sun-hero__action:hover { background: var(--sun-navy-hover); }
.o500sun-page .o500sun-hero__action span { font-size: 17px; font-weight: 400; }

/* 03 / Разделы каталога */
.o500sun-page .o500sun-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 30px;
}
.o500sun-page .o500sun-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-width: 0;
  min-height: 65px;
  padding: 13px 19px;
  color: #26384b;
  background: #f5f7f9;
  border: 1px solid #e8edf1;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.4;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.o500sun-page .o500sun-category span:first-child { min-width: 0; overflow-wrap: anywhere; }
.o500sun-page .o500sun-category span:last-child { color: #7b95ab; font-size: 18px; font-weight: 400; }
.o500sun-page .o500sun-category:hover { background: #edf2f6; border-color: #b7cbdc; }
.o500sun-page .o500sun-category[aria-current="page"] {
  background: #e8f0f7;
  border-color: #a5bfd4;
  color: var(--sun-navy);
}
.o500sun-page .o500sun-category[aria-current="page"] span:last-child { color: var(--sun-navy); }

/* 04 / Каталог: фильтры без обрезания, сортировка как в оправных */
.o500sun-page .o500sun-catalog { margin-bottom: 34px; }
.o500sun-page .o500sun-layout {
  display: grid;
  grid-template-columns: minmax(220px, 235px) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}
.o500sun-page .o500sun-filter {
  position: static !important;
  top: auto !important;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: auto !important;
  max-height: none !important;
  padding: 15px 15px 18px 0;
  overflow: visible !important;
  background: #fff;
  border: 0;
  border-right: 1px solid #e9edf0;
  border-radius: 0;
  box-shadow: none;
  color: #171b20;
}
.o500sun-page .o500sun-filter > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 5px 0 12px;
  margin: 0;
  list-style: none;
  cursor: pointer;
  color: #11151a;
  font-size: 18px;
  font-weight: 630;
}
.o500sun-page .o500sun-filter > summary::-webkit-details-marker { display: none; }
.o500sun-page .o500sun-filter__toggle {
  display: none;
  color: #4c555f;
  font-size: 14px;
  font-weight: 450;
}
.o500sun-page .o500sun-filter__form {
  display: block;
  min-width: 0;
  width: 100%;
  max-width: none;
  padding: 0;
  overflow: visible !important;
}
.o500sun-page .o500sun-filter__search { padding: 4px 0 16px; }
.o500sun-page .o500sun-filter__search label,
.o500sun-page .o500sun-filter__price label {
  display: block;
  min-width: 0;
  margin-bottom: 5px;
  color: #22272c;
  font-size: 14px;
  font-weight: 450;
}
.o500sun-page .o500sun-filter__search input,
.o500sun-page .o500sun-filter__price input,
.o500sun-page .o500sun-sort select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  background: #fff;
  color: #141a20;
  border: 1px solid #ccd8e2;
  border-radius: 7px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 450;
}
.o500sun-page .o500sun-filter input::placeholder { color: #6a727b; opacity: 1; }
.o500sun-page .o500sun-filter__group {
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0 0 8px;
  border: 0;
  border-top: 1px solid #edf0f2;
  overflow: visible !important;
}
.o500sun-page .o500sun-filter__group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 11px 0;
  list-style: none;
  cursor: pointer;
  color: #181c21;
  font-size: 14px;
  font-weight: 620;
  line-height: 1.42;
}
.o500sun-page .o500sun-filter__group > summary::-webkit-details-marker { display: none; }
.o500sun-page .o500sun-filter__group > summary::after {
  content: "+";
  flex: none;
  color: #56718b;
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
}
.o500sun-page .o500sun-filter__group[open] > summary::after { content: "−"; }
.o500sun-page .o500sun-filter__group legend {
  padding: 12px 0 10px;
  color: #181c21;
  font-size: 14px;
  font-weight: 620;
}
.o500sun-page .o500sun-filter__options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  min-width: 0;
  width: 100%;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  margin: 0;
  padding: 0 0 11px;
  overflow: visible !important;
}
/* Только бренд: видно десять строк, остальные доступны прокруткой.
   Точную высоту десяти пунктов задаёт локальный JS — с учётом переносов. */
.o500sun-page .o500sun-filter__group--brand-scroll .o500sun-filter__options {
  position: relative;
  max-height: var(--sun-brand-visible-height, 360px) !important;
  padding-right: 8px;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #a4b5c5 #eef3f7;
}
.o500sun-page .o500sun-filter__group--brand-scroll .o500sun-filter__options::-webkit-scrollbar {
  width: 7px;
}
.o500sun-page .o500sun-filter__group--brand-scroll .o500sun-filter__options::-webkit-scrollbar-thumb {
  background: #a4b5c5;
  border-radius: 8px;
}
.o500sun-page .o500sun-filter__check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px;
  min-width: 0;
  width: 100%;
  min-height: 34px;
  padding: 6px 0;
  margin: 0;
  color: #252a30;
  cursor: pointer;
  font-size: 14px;
  font-weight: 430;
  line-height: 1.5;
  white-space: normal;
}
.o500sun-page .o500sun-filter__check:hover { color: var(--sun-navy); }
.o500sun-page .o500sun-filter__check input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-width: 17px;
  margin: 2px 0 0;
  accent-color: var(--sun-navy);
}
.o500sun-page .o500sun-filter__check span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}
.o500sun-page .o500sun-filter__check small {
  margin: 0 0 0 3px;
  color: #606b75;
  font-size: 14px;
  font-weight: 400;
  text-align: right;
}
.o500sun-page .o500sun-filter__price {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 0 0 11px;
}
.o500sun-page .o500sun-filter__price input { margin-top: 5px; padding-inline: 8px; }
.o500sun-page .o500sun-filter__actions { display: grid; gap: 9px; margin-top: 10px; }

/* 05 / Кнопки в цвете фирменного тёмно-синего */
.o500sun-page .o500sun-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 17px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 580;
  line-height: 1.4;
  text-align: center;
  transition: background-color .18s ease, color .18s ease;
}
.o500sun-page .o500sun-btn--primary { background: var(--sun-navy); color: #fff !important; }
.o500sun-page .o500sun-btn--primary:hover { background: var(--sun-navy-hover); }
.o500sun-page .o500sun-btn--primary:active { background: var(--sun-navy-pressed); }
.o500sun-page .o500sun-btn--ghost { background: #e9f0f5; color: #284b6b !important; }
.o500sun-page .o500sun-btn--ghost:hover { background: #dce8f1; }

/* 06 / Сортировка и карточки товаров */
.o500sun-page .o500sun-main { min-width: 0; }
.o500sun-page .o500sun-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 60px;
  margin: 0 0 15px;
  padding: 8px 0 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--sun-line);
  border-radius: 0;
  box-shadow: none;
}
.o500sun-page .o500sun-toolbar__count { color: #526679; font-size: 14px; font-weight: 450; }
.o500sun-page .o500sun-toolbar__count strong { color: #1b2938; font-size: 17px; font-weight: 620; }
.o500sun-page .o500sun-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #53687c;
  font-size: 14px;
  font-weight: 450;
}
.o500sun-page .o500sun-sort select { width: auto; min-width: 192px; min-height: 43px; padding-right: 28px; }
.o500sun-page .o500sun-grid,
.o500sun-page .o500sun-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}
.o500sun-page .o500sun-card,
.o500sun-page .o500sun-product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--sun-text);
  transition: box-shadow .2s ease, transform .2s ease;
}
.o500sun-page .o500sun-card:hover,
.o500sun-page .o500sun-product:hover {
  transform: none;
  box-shadow: none;
}
.o500sun-page .o500sun-card__picture {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  /* 600 x 500 matches the dimensions emitted by O500SunglassesCatalog.
     The photo now occupies the full card width without a padded frame. */
  aspect-ratio: 6 / 5;
  padding: 0;
  overflow: hidden;
  background: #fff !important;
  border: 0;
  border-radius: 0;
}
.o500sun-page .o500sun-card__picture img,
.o500sun-page .o500sun-product img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  padding: 0;
  object-fit: contain;
  object-position: center;
  background: #fff;
  transition: transform .2s ease;
}
.o500sun-page .o500sun-card:hover .o500sun-card__picture img { transform: scale(1.025); }
.o500sun-page .o500sun-card__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #b7c4cf;
}
.o500sun-page .o500sun-card__empty svg { width: min(60%, 165px); height: auto; }
.o500sun-page .o500sun-card__badges {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.o500sun-page .o500sun-badge {
  padding: 4px 10px;
  color: #294861;
  background: #fff;
  border: 0;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.4;
}
.o500sun-page .o500sun-badge--sale {
  background: #dff0fc;
  color: #194d76;
  border: 1px solid #c7e4f6;
}
.o500sun-page .o500sun-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px 16px 17px;
}
.o500sun-page .o500sun-card__brand {
  color: #496f91;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.o500sun-page .o500sun-card__name {
  display: block;
  margin: 0;
  color: #172a3b;
  font-size: 15px;
  font-weight: 570;
  line-height: 1.47;
  overflow-wrap: anywhere;
}
.o500sun-page .o500sun-card__name:hover { color: #1b5b91; }
.o500sun-page .o500sun-card__sku { display: none; }
.o500sun-page .o500sun-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 11px;
  color: #617284;
}
.o500sun-page .o500sun-card__specs span {
  padding: 0;
  color: #617284;
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 440;
  line-height: 1.5;
}
.o500sun-page .o500sun-card__bottom {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}
.o500sun-page .o500sun-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  color: #192a3b;
  font-size: 20px;
  font-weight: 640;
  line-height: 1.3;
}
.o500sun-page .o500sun-card__price del { color: #8896a3; font-size: 14px; font-weight: 440; }
.o500sun-page .o500sun-card__price--unknown { font-size: 15px; font-weight: 540; }
.o500sun-page .o500sun-card__stock {
  margin: 0 0 4px;
  color: #66798b;
  font-size: 14px;
  font-weight: 450;
}
.o500sun-page .o500sun-card__stock--in { color: #2d7759; }
.o500sun-page .o500sun-card__stock--out { color: #8f6b44; }
.o500sun-page .o500sun-card__link {
  width: 100%;
  max-width: 100%;
  min-height: 45px;
  padding: 10px 12px;
}
/* Более спокойный акцент: внимание остаётся на товаре и цене.
   Только ссылки в карточках; кнопки фильтров остаются тёмно-синими. */
.o500sun-page .o500sun-card__link.o500sun-btn--primary {
  background: #edf2f6;
  color: #234563 !important;
  font-weight: 540;
  box-shadow: none;
}
.o500sun-page .o500sun-card__link.o500sun-btn--primary:hover {
  background: #e1eaf1;
  color: #173d66 !important;
}
.o500sun-page .o500sun-card__link.o500sun-btn--primary:active {
  background: #d6e3ed;
}

/* 07 / Пагинация и пустой результат */
.o500sun-page .o500sun-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 27px 0 0;
}
.o500sun-page .o500sun-pages a,
.o500sun-page .o500sun-pages span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 7px 13px;
  color: #284d6d;
  background: #f2f5f7;
  border: 1px solid #e2e9ef;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 550;
}
.o500sun-page .o500sun-pages a:hover { background: #e5eff6; }
.o500sun-page .o500sun-pages [aria-current="page"] {
  background: var(--sun-navy);
  border-color: var(--sun-navy);
  color: #fff;
}
.o500sun-page .o500sun-empty {
  display: grid;
  justify-items: center;
  gap: 13px;
  padding: clamp(34px, 5vw, 60px) 22px;
  background: #f8fafb;
  border: 1px solid #e4e9ee;
  border-radius: 11px;
  text-align: center;
}
.o500sun-page .o500sun-empty h2 { margin: 0; color: #1e2e3d; font-size: clamp(23px, 3vw, 32px); font-weight: 550; }
.o500sun-page .o500sun-empty p { max-width: 440px; margin: 0; color: #617487; }

/* 08 / Экспертные блоки: чистые, без нагромождения рамок */
.o500sun-page .o500sun-advice {
  display: grid;
  grid-template-columns: minmax(250px, .9fr) minmax(0, 1.7fr);
  align-items: start;
  gap: clamp(24px, 4vw, 48px);
  margin: 55px 0 44px;
  padding: clamp(25px, 3vw, 40px);
  background: #f5f8fa;
  border: 0;
  border-radius: 13px;
}
.o500sun-page .o500sun-advice h2,
.o500sun-page .o500sun-faq h2 {
  margin: 7px 0 14px;
  color: #172534;
  font-size: clamp(27px, 2.8vw, 37px);
  font-weight: 570;
  line-height: 1.22;
  letter-spacing: -.024em;
}
.o500sun-page .o500sun-advice__heading p,
.o500sun-page .o500sun-advice p,
.o500sun-page .o500sun-faq p {
  margin: 0;
  color: #586c7e;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.67;
}
.o500sun-page .o500sun-advice__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.o500sun-page .o500sun-advice__item {
  padding: 0 0 0 17px;
  background: transparent;
  border: 0;
  border-left: 1px solid #cad8e3;
  border-radius: 0;
}
.o500sun-page .o500sun-advice__item > span {
  color: #436d90;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: .04em;
}
.o500sun-page .o500sun-advice__item h3 {
  margin: 12px 0 9px;
  color: #1d2e3e;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.42;
}
.o500sun-page .o500sun-faq {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
  gap: 40px;
  margin: 0 0 40px;
  padding: 24px 4px 0;
  background: #fff;
  border: 0;
  border-top: 1px solid var(--sun-line);
}
.o500sun-page .o500sun-faq__list details { border: 0; border-bottom: 1px solid #e0e7ed; }
.o500sun-page .o500sun-faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  color: #223548;
  font-size: 15px;
  font-weight: 580;
}
.o500sun-page .o500sun-faq__list summary::-webkit-details-marker { display: none; }
.o500sun-page .o500sun-faq__list summary::after {
  content: "+";
  flex: none;
  color: #4e7597;
  font-size: 21px;
  font-weight: 400;
}
.o500sun-page .o500sun-faq__list details[open] summary::after { content: "−"; }
.o500sun-page .o500sun-faq__list p { padding: 0 22px 19px 0; }

/* 08 / Редактируемые SEO- и экспертные поля текущей категории.
   Разметку TV можно вводить в MODX как простой текст или HTML. */
.o500sun-page .o500sun-editorial {
  max-width: 1120px;
  margin: 24px auto 0;
  padding: 18px 0 8px;
  border-top: 1px solid var(--sun-line);
}
.o500sun-page .o500sun-editorial__block {
  min-width: 0;
  padding: 16px 0 20px;
  color: var(--sun-text);
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.o500sun-page .o500sun-editorial__block + .o500sun-editorial__block {
  margin-top: 8px;
}
.o500sun-page .o500sun-editorial__block :is(h2, h3, h4) {
  margin: 0 0 14px;
  color: var(--sun-heading);
  font-weight: 570;
  line-height: 1.26;
  text-wrap: balance;
}
.o500sun-page .o500sun-editorial__block h2 { font-size: clamp(24px, 2.7vw, 32px); }
.o500sun-page .o500sun-editorial__block h3 { font-size: clamp(20px, 2.2vw, 25px); }
.o500sun-page .o500sun-editorial__block h4 { font-size: 17px; }
.o500sun-page .o500sun-editorial__block p { margin: 0 0 15px; }
.o500sun-page .o500sun-editorial__block :is(ul, ol) {
  margin: 0 0 16px;
  padding-left: 24px;
}
.o500sun-page .o500sun-editorial__block li { margin: 0 0 7px; }
.o500sun-page .o500sun-editorial__block a:not(.o500sun-btn) {
  color: var(--sun-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.o500sun-page .o500sun-editorial__block img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.o500sun-page .o500sun-editorial__block > :last-child { margin-bottom: 0; }

/* 09 / Планшет и телефон */
@media (max-width: 1120px) {
  .o500sun-page .o500sun-layout {
    grid-template-columns: minmax(208px, 225px) minmax(0, 1fr);
    gap: 14px;
  }
  .o500sun-page .o500sun-grid,
  .o500sun-page .o500sun-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .o500sun-page .o500sun-hero { min-height: 575px; }
  .o500sun-page .o500sun-hero__copy { margin-left: clamp(18px, 6vw, 65px); width: min(610px, 65%); }
  .o500sun-page .o500sun-advice { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 840px) {
  .o500sun-page .o500sun-container { width: min(100% - 30px, 760px); }
  .o500sun-page .o500sun-hero { min-height: 555px; padding: 50px 24px; }
  .o500sun-page .o500sun-hero__copy { width: min(100%, 640px); margin-left: 0; }
  .o500sun-page .o500sun-hero h1 { font-size: clamp(34px, 5.5vw, 47px); }
  .o500sun-page .o500sun-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .o500sun-page .o500sun-layout { grid-template-columns: 1fr; }
  .o500sun-page .o500sun-filter {
    margin-bottom: 16px;
    padding: 12px 0 18px;
    border-right: 0;
    border-bottom: 1px solid #e9edf0;
  }
  .o500sun-page .o500sun-filter__toggle { display: inline; }
  .o500sun-page .o500sun-advice__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .o500sun-page .o500sun-faq { grid-template-columns: 1fr; gap: 15px; }
}
@media (max-width: 610px) {
  .o500sun-page .o500sun-container { width: calc(100% - 24px); }
  .o500sun-page .o500sun-crumbs { min-height: 50px; }
  .o500sun-page .o500sun-hero {
    min-height: 500px;
    padding: 48px 21px;
    background-position: 65% center;
    background-image:
      linear-gradient(90deg, rgba(7, 15, 25, .84), rgba(7, 15, 25, .63)),
      var(--o500sun-banner-image);
  }
  .o500sun-page .o500sun-hero h1 { font-size: clamp(33px, 8vw, 43px); }
  .o500sun-page .o500sun-hero p { font-size: 16px; line-height: 1.6; }
  .o500sun-page .o500sun-hero__action { width: 100%; }
  .o500sun-page .o500sun-categories { gap: 8px; margin-bottom: 21px; }
  .o500sun-page .o500sun-category { min-height: 58px; padding: 11px 13px; font-size: 14px; }
  .o500sun-page .o500sun-toolbar { align-items: stretch; }
  .o500sun-page .o500sun-sort { flex: 1; justify-content: space-between; }
  .o500sun-page .o500sun-sort select { flex: 1; min-width: 0; }
  .o500sun-page .o500sun-grid,
  .o500sun-page .o500sun-products { grid-template-columns: 1fr; gap: 14px; }
  .o500sun-page .o500sun-card__picture { aspect-ratio: 6 / 5; }
  .o500sun-page .o500sun-advice { margin: 39px 0 29px; padding: 25px 20px; }
  .o500sun-page .o500sun-advice__grid { grid-template-columns: 1fr; gap: 20px; }
  .o500sun-page .o500sun-faq { margin-bottom: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .o500sun-page .o500sun *,
  .o500sun-page .o500sun *::before,
  .o500sun-page .o500sun *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  .o500sun-page .o500sun-card:hover { transform: none; }
}

/* ===============================================================
   10 / EDITORIAL 500 — журнальный каталог (концепция №2).
   Дизайн только каталога солнцезащитных очков. Сниппет продолжает
   обрабатывать GET-фильтры и сортировку без дополнительных скриптов.
   =============================================================== */
.o500sun-page {
  --sun-editorial-paper: #fff;
  --sun-editorial-note: #708296;
  --sun-editorial-hairline: #e9edef;
}
.o500sun-page .o500sun-container {
  width: min(1400px, calc(100% - 48px));
}
.o500sun-page .o500sun-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 4.2vw, 68px);
  letter-spacing: -.035em;
  line-height: 1.12;
}
.o500sun-page .o500sun-hero__action {
  border-radius: 3px;
  background: #173d66;
}
.o500sun-page .o500sun-categories {
  gap: 10px;
  margin-block: 0 27px;
}
.o500sun-page .o500sun-category {
  min-height: 55px;
  background: #f7f9fa;
  border-color: #edf0f2;
  border-radius: 3px;
  padding: 11px 15px;
  font-weight: 500;
}
.o500sun-page .o500sun-layout {
  grid-template-columns: minmax(198px, 212px) minmax(0, 1fr);
  gap: clamp(19px, 2.2vw, 30px);
}
.o500sun-page .o500sun-filter {
  padding-right: 12px;
  border-right: 1px solid #edf0f2;
}
.o500sun-page .o500sun-toolbar {
  min-height: 56px;
  margin-bottom: 18px;
  border-bottom-color: var(--sun-editorial-hairline);
}
.o500sun-page .o500sun-grid,
.o500sun-page .o500sun-products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.7vw, 25px);
  align-items: stretch;
}
.o500sun-page .o500sun-card,
.o500sun-page .o500sun-product {
  min-width: 0;
  border-radius: 0;
  background: #fff;
  border: 0;
  box-shadow: none;
  overflow: hidden;
}
.o500sun-page .o500sun-card__picture {
  aspect-ratio: 1.29;
  background: #fff !important;
  border: 0;
  border-radius: 0;
}
.o500sun-page .o500sun-card__picture img {
  object-fit: contain;
  background: transparent;
  transition: transform .45s cubic-bezier(.2,.65,.25,1);
}
.o500sun-page .o500sun-card:hover .o500sun-card__picture img,
.o500sun-page .o500sun-card:focus-within .o500sun-card__picture img {
  transform: scale(1.045);
}
.o500sun-page .o500sun-card__body {
  gap: 5px;
  padding: 16px 4px 7px;
}
.o500sun-page .o500sun-card__brand {
  font-size: 14px;
  font-weight: 550;
  letter-spacing: .105em;
  color: #496e92;
}
.o500sun-page .o500sun-card__name {
  min-width: 0;
  margin: 1px 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.46;
  color: #192734;
  text-wrap: pretty;
}
.o500sun-page .o500sun-card__specs {
  gap: 5px 10px;
  margin: 4px 0 10px;
  color: #748293;
}
.o500sun-page .o500sun-card__specs span {
  font-size: 14px;
  color: #748293;
}
.o500sun-page .o500sun-card__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-auto-rows: min-content;
  column-gap: 10px;
  row-gap: 5px;
  align-items: end;
  padding: 6px 0 0;
  margin-top: auto;
}
.o500sun-page .o500sun-card__price {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  font-size: 19px;
  font-weight: 620;
  line-height: 1.4;
}
.o500sun-page .o500sun-card__stock {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  margin: 0;
  font-size: 14px;
}
.o500sun-page .o500sun-card__link.o500sun-btn--primary {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  align-self: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 0 7px 6px;
  color: var(--sun-navy) !important;
  background: transparent !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  font-weight: 540;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: #a9bed1;
  text-underline-offset: 5px;
  white-space: nowrap;
}
.o500sun-page .o500sun-card__link.o500sun-btn--primary:is(:hover,:focus-visible,:active) {
  color: #0e2e4d !important;
  background: transparent !important;
  text-decoration-color: #0e2e4d;
}

/* Редакционные развороты: две большие модели на каждой странице выдачи.
   Применяется к порядку, который уже сформирован серверной сортировкой. */
.o500sun-page .o500sun-grid > .o500sun-card:nth-child(1),
.o500sun-page .o500sun-grid > .o500sun-card:nth-child(7) {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr);
  min-height: 330px;
  align-items: stretch;
  background: var(--sun-editorial-paper);
}
.o500sun-page .o500sun-grid > .o500sun-card:nth-child(1) .o500sun-card__picture,
.o500sun-page .o500sun-grid > .o500sun-card:nth-child(7) .o500sun-card__picture {
  width: 100%;
  height: 100%;
  min-height: 310px;
  aspect-ratio: auto;
  background: #fff !important;
}
.o500sun-page .o500sun-grid > .o500sun-card:nth-child(1) .o500sun-card__body,
.o500sun-page .o500sun-grid > .o500sun-card:nth-child(7) .o500sun-card__body {
  justify-content: center;
  gap: 9px;
  padding: clamp(20px, 2.35vw, 36px);
}
.o500sun-page .o500sun-grid > .o500sun-card:nth-child(1) .o500sun-card__name,
.o500sun-page .o500sun-grid > .o500sun-card:nth-child(7) .o500sun-card__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 1.8vw, 27px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -.018em;
}
.o500sun-page .o500sun-grid > .o500sun-card:nth-child(1) .o500sun-card__brand,
.o500sun-page .o500sun-grid > .o500sun-card:nth-child(7) .o500sun-card__brand {
  font-size: 14px;
}
.o500sun-page .o500sun-grid > .o500sun-card:nth-child(1) .o500sun-card__bottom,
.o500sun-page .o500sun-grid > .o500sun-card:nth-child(7) .o500sun-card__bottom {
  margin-top: clamp(10px, 3vw, 32px);
}
.o500sun-page .o500sun-grid > .o500sun-card:nth-child(1) .o500sun-card__price,
.o500sun-page .o500sun-grid > .o500sun-card:nth-child(7) .o500sun-card__price {
  font-size: 22px;
}
/* При CSS Grid такие «развороты» не должны растягиваться по вертикали
   из-за длинной соседней карточки. */
.o500sun-page .o500sun-grid { grid-auto-flow: row; }

/* Контрастная, но спокойная навигация, без широких цветных полос. */
.o500sun-page .o500sun-pages a,
.o500sun-page .o500sun-pages span {
  border-radius: 3px;
}
@media (max-width: 1180px) {
  .o500sun-page .o500sun-layout {
    grid-template-columns: minmax(200px, 210px) minmax(0, 1fr);
    gap: 18px;
  }
  .o500sun-page .o500sun-grid,
  .o500sun-page .o500sun-products {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .o500sun-page .o500sun-grid > .o500sun-card:nth-child(1),
  .o500sun-page .o500sun-grid > .o500sun-card:nth-child(7) {
    grid-template-columns: minmax(0, 1.15fr) minmax(0,1fr);
  }
  .o500sun-page .o500sun-grid > .o500sun-card:nth-child(1) .o500sun-card__body,
  .o500sun-page .o500sun-grid > .o500sun-card:nth-child(7) .o500sun-card__body {
    padding: 18px;
  }
  /* В двухколоночной сетке второй разворот создавал бы пустую
     ячейку после шестой модели. Оставляем один акцент. */
  .o500sun-page .o500sun-grid > .o500sun-card:nth-child(7) {
    grid-column: auto;
    display: flex;
    min-height: 0;
    background: #fff;
  }
  .o500sun-page .o500sun-grid > .o500sun-card:nth-child(7) .o500sun-card__picture {
    min-height: 0;
    height: auto;
    aspect-ratio: 1.29;
    background: #fff !important;
  }
  .o500sun-page .o500sun-grid > .o500sun-card:nth-child(7) .o500sun-card__body {
    justify-content: flex-start;
    gap: 5px;
    padding: 16px 4px 7px;
  }
  .o500sun-page .o500sun-grid > .o500sun-card:nth-child(7) .o500sun-card__body::before {
    content: none;
  }
  .o500sun-page .o500sun-grid > .o500sun-card:nth-child(7) .o500sun-card__name {
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.46;
  }
  .o500sun-page .o500sun-grid > .o500sun-card:nth-child(7) .o500sun-card__bottom {
    margin-top: auto;
  }
  .o500sun-page .o500sun-grid > .o500sun-card:nth-child(7) .o500sun-card__price {
    font-size: 19px;
  }
}
@media (max-width: 840px) {
  .o500sun-page .o500sun-container { width: calc(100% - 32px); }
  .o500sun-page .o500sun-layout { grid-template-columns: minmax(0,1fr); }
  .o500sun-page .o500sun-filter {
    padding-right: 0;
    border-right: 0;
  }
  .o500sun-page .o500sun-grid,
  .o500sun-page .o500sun-products {
    gap: 19px;
  }
}
@media (max-width: 610px) {
  .o500sun-page .o500sun-container { width: calc(100% - 24px); }
  .o500sun-page .o500sun-grid,
  .o500sun-page .o500sun-products {
    grid-template-columns: minmax(0,1fr);
    row-gap: 28px;
  }
  .o500sun-page .o500sun-grid > .o500sun-card:nth-child(1),
  .o500sun-page .o500sun-grid > .o500sun-card:nth-child(7) {
    grid-column: auto;
    display: flex;
    min-height: 0;
    flex-direction: column;
  }
  .o500sun-page .o500sun-grid > .o500sun-card:nth-child(1) .o500sun-card__picture,
  .o500sun-page .o500sun-grid > .o500sun-card:nth-child(7) .o500sun-card__picture {
    min-height: 0;
    height: auto;
    aspect-ratio: 6/5;
  }
  .o500sun-page .o500sun-grid > .o500sun-card:nth-child(1) .o500sun-card__body,
  .o500sun-page .o500sun-grid > .o500sun-card:nth-child(7) .o500sun-card__body {
    padding: 18px 14px;
  }
  .o500sun-page .o500sun-card__body { padding: 15px 9px 8px; }
  .o500sun-page .o500sun-card__bottom { grid-template-columns: minmax(0,1fr) auto; }
  .o500sun-page .o500sun-grid > .o500sun-card:nth-child(1) .o500sun-card__name,
  .o500sun-page .o500sun-grid > .o500sun-card:nth-child(1) .o500sun-card__name {
    font-size: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .o500sun-page .o500sun-card:hover .o500sun-card__picture img,
  .o500sun-page .o500sun-card:focus-within .o500sun-card__picture img {
    transform: none;
  }
}

/* ===============================================================
   11 / EDITORIAL 500 v12 — тихая навигация и витрина фотографий.
   Весь этап реализован только CSS: PHP, TV и каталог не изменяем.
   =============================================================== */
.o500sun-page {
  --sun-editorial-ink-blue: #173d66;
}

/* Вместо четырёх прямоугольных карточек — лёгкая линейная навигация.
   Активный раздел подчёркнут фирменной тёмно-синей линией. */
.o500sun-page .o500sun-categories {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: clamp(20px, 3.2vw, 50px);
  margin: 0 0 29px;
  padding: 0 12px;
  border-bottom: 1px solid #e4e9ee;
}
.o500sun-page .o500sun-category {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  min-height: 56px;
  padding: 12px 3px 15px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #415166;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .2s ease;
}
.o500sun-page .o500sun-category span:first-child {
  overflow-wrap: normal;
}
.o500sun-page .o500sun-category span:last-child {
  display: none;
}
.o500sun-page .o500sun-category::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--sun-editorial-ink-blue);
  content: "";
  opacity: 0;
  transform: scaleX(.7);
  transition: opacity .2s ease, transform .2s ease;
}
.o500sun-page .o500sun-category:hover,
.o500sun-page .o500sun-category[aria-current="page"] {
  background: transparent;
  border: 0;
  color: var(--sun-editorial-ink-blue);
}
.o500sun-page .o500sun-category:hover::after { opacity: .55; transform: scaleX(1); }
.o500sun-page .o500sun-category[aria-current="page"] {
  font-weight: 650;
}
.o500sun-page .o500sun-category[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Счётчик скрыт без изменения PHP-сниппета; сортировка справа. */
.o500sun-page .o500sun-toolbar { justify-content: flex-end; }
.o500sun-page .o500sun-toolbar__count { display: none; }

/* У всех фото единое белое поле, чтобы разные исходные фоны
   выглядели как часть одной коллекции. Файлы JPG не меняются. */
.o500sun-page .o500sun-card__picture {
  padding: clamp(8px, 1vw, 14px);
  background: #fff !important;
}
.o500sun-page .o500sun-card__picture img {
  background: #fff;
  filter: brightness(1.035) contrast(1.035);
}
.o500sun-page .o500sun-grid > .o500sun-card:nth-child(1) .o500sun-card__picture,
.o500sun-page .o500sun-grid > .o500sun-card:nth-child(7) .o500sun-card__picture {
  padding: clamp(12px, 1.25vw, 19px);
}

/* Одинаковый тёмно-синий для бренда и ссылки «О модели». */
.o500sun-page .o500sun-card__brand {
  color: var(--sun-editorial-ink-blue);
  font-weight: 600;
}
.o500sun-page .o500sun-card__link.o500sun-btn--primary,
.o500sun-page .o500sun-card__link.o500sun-btn--primary:visited {
  color: var(--sun-editorial-ink-blue) !important;
  text-decoration-color: #a1bacf;
}
.o500sun-page .o500sun-card__link.o500sun-btn--primary:hover {
  color: #0c2b49 !important;
  text-decoration-color: #0c2b49;
}

/* Крупные карточки 1 и 7: современный шрифт без засечек. */
.o500sun-page .o500sun-grid > .o500sun-card:nth-child(1) .o500sun-card__name,
.o500sun-page .o500sun-grid > .o500sun-card:nth-child(7) .o500sun-card__name {
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 550;
  line-height: 1.27;
  letter-spacing: -.025em;
}

@media (max-width: 1180px) {
  .o500sun-page .o500sun-grid > .o500sun-card:nth-child(7) .o500sun-card__name {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.46;
    letter-spacing: normal;
  }
}
@media (max-width: 610px) {
  .o500sun-page .o500sun-categories {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 24px;
    margin-bottom: 19px;
    padding: 0 3px;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .o500sun-page .o500sun-category {
    min-height: 50px;
    padding: 10px 1px 13px;
    font-size: 14px;
  }
  .o500sun-page .o500sun-grid > .o500sun-card:nth-child(1) .o500sun-card__name,
  .o500sun-page .o500sun-grid > .o500sun-card:nth-child(7) .o500sun-card__name {
    font-size: 22px;
  }
  .o500sun-page .o500sun-grid > .o500sun-card:nth-child(1) .o500sun-card__picture,
  .o500sun-page .o500sun-grid > .o500sun-card:nth-child(7) .o500sun-card__picture {
    padding: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .o500sun-page .o500sun-category,
  .o500sun-page .o500sun-category::after {
    transition: none;
  }
}








/* ==========================================
   УБРАТЬ ЗАТЕМНЕНИЕ БАННЕРА
   Компьютеры, планшеты и телефоны
   ========================================== */

.o500sun-page .o500sun-hero {
    background-image: var(--o500sun-banner-image) !important;
}








/* =======================================================
   O500 SUN EDITORIAL v3: таблицы, карточки, экспертные блоки.
   Добавить в конец /assets/templates/css/o500-sunglasses-dark-v2.css
   Для TV-HTML из файлов 01, 02, 03.
   ======================================================= */

.o500sun-page .o500sun-editorial {
  width: min(100%, 1160px);
  max-width: 1160px;
  margin: clamp(28px, 4vw, 50px) auto 0;
  padding: 0 0 42px;
  border: 0;
  display: grid;
  gap: clamp(18px, 2.5vw, 28px);
}
.o500sun-page .o500sun-editorial__block,
.o500sun-page .o500sun-editorial__block + .o500sun-editorial__block {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: #171c23;
  font-size: 16px;
  line-height: 1.7;
}
.o500sun-page .o500sun-guide {
  --sun-guide-ink: #171c23;
  --sun-guide-blue: #183f6d;
  --sun-guide-line: #dce6ef;
  padding: clamp(24px, 3.8vw, 46px);
  border: 1px solid var(--sun-guide-line);
  border-radius: 18px;
  background: #f8fafc;
  color: var(--sun-guide-ink);
  box-shadow: 0 10px 28px rgba(22, 54, 87, .035);
}
.o500sun-page .o500sun-editorial__block:nth-child(odd) .o500sun-guide {
  background: #fff;
}
.o500sun-page .o500sun-guide__head {
  max-width: 90ch;
  margin-bottom: clamp(24px, 3vw, 34px);
}
.o500sun-page .o500sun-guide__eyebrow {
  margin: 0 0 16px;
  color: var(--sun-guide-blue);
  font: 700 14px/1.4 system-ui, sans-serif;
  letter-spacing: .09em;
}
.o500sun-page .o500sun-editorial__block .o500sun-guide h2 {
  margin: 0 0 15px;
  padding: 0;
  border: 0;
  color: #111822;
  font: 400 clamp(28px, 3.4vw, 40px)/1.16 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.o500sun-page .o500sun-editorial__block .o500sun-guide h3 {
  margin: clamp(26px, 3.5vw, 38px) 0 16px;
  color: #172335;
  font: 600 clamp(21px, 2.15vw, 25px)/1.32 system-ui, sans-serif;
  letter-spacing: -.025em;
}
.o500sun-page .o500sun-editorial__block .o500sun-guide h4 {
  margin: 0 0 9px;
  color: #1d2c3b;
  font: 650 17px/1.4 system-ui, sans-serif;
}
.o500sun-page .o500sun-guide :is(p, li, td, th, .o500sun-guide__row) {
  font-size: 16px;
  line-height: 1.7;
}
.o500sun-page .o500sun-guide p {
  max-width: 90ch;
  margin: 0 0 15px;
  color: #1e2731;
}
.o500sun-page .o500sun-guide__lead {
  color: #263443;
  font-size: clamp(16px, 1.3vw, 18px) !important;
  line-height: 1.68 !important;
}
.o500sun-page .o500sun-guide strong {color:#192c41;font-weight:650}
.o500sun-page .o500sun-guide__tiles {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin:18px 0 28px;
}
.o500sun-page .o500sun-guide__tiles--three {
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.o500sun-page .o500sun-guide__tile {
  min-width:0;
  padding:20px;
  border:1px solid #dce6ef;
  border-radius:12px;
  background:#fff;
}
.o500sun-page .o500sun-guide__tile p {margin:0}
.o500sun-page .o500sun-guide__metric {
  display:block;
  margin-bottom:11px;
  color:var(--sun-guide-blue);
  font:700 clamp(23px,2.7vw,31px)/1.1 Georgia,serif;
}
.o500sun-page .o500sun-guide__rows {
  border-top:1px solid var(--sun-guide-line);
  margin:18px 0 26px;
}
.o500sun-page .o500sun-guide__row {
  min-width:0;
  display:grid;
  grid-template-columns:minmax(160px,29%) minmax(0,1fr);
  gap:clamp(16px,3vw,30px);
  padding:17px 0;
  border-bottom:1px solid var(--sun-guide-line);
}
.o500sun-page .o500sun-guide__row-title {
  color:#172335;
  font-weight:650;
}
.o500sun-page .o500sun-guide__note {
  margin-top:25px;
  padding:16px 18px;
  border-left:3px solid var(--sun-guide-blue);
  border-radius:0 8px 8px 0;
  background:#eef3f8;
  color:#1d2b3c;
  font-size:16px;
  line-height:1.65;
}
.o500sun-page .o500sun-guide__table-wrap {
  margin:20px 0 30px;
  border:1px solid var(--sun-guide-line);
  border-radius:10px;
  overflow:hidden;
}
.o500sun-page .o500sun-guide__table {
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
  color:#18222c;
}
.o500sun-page .o500sun-guide__table :is(th,td) {
  padding:13px 16px;
  border-bottom:1px solid var(--sun-guide-line);
  text-align:left;
  vertical-align:top;
}
.o500sun-page .o500sun-guide__table thead {background:#e8f0f8}
.o500sun-page .o500sun-guide__table thead th {font-weight:700}
.o500sun-page .o500sun-guide__table thead th:first-child {width:15%}
.o500sun-page .o500sun-guide__table thead th:nth-child(2) {width:25%}
.o500sun-page .o500sun-guide__table tbody tr:nth-child(even) {background:#f4f7fa}
.o500sun-page .o500sun-guide__table tbody tr:last-child :is(th,td) {border-bottom:0}
.o500sun-page .o500sun-guide__table tbody th {font-weight:700}

@media(max-width:800px){
  .o500sun-page .o500sun-guide__tiles--three {grid-template-columns:1fr}
  .o500sun-page .o500sun-guide__tiles--two {grid-template-columns:1fr}
}
@media(max-width:640px){
  .o500sun-page .o500sun-editorial {gap:16px;padding-bottom:24px}
  .o500sun-page .o500sun-guide {padding:22px 17px;border-radius:14px}
  .o500sun-page .o500sun-editorial__block .o500sun-guide h2 {font-size:28px}
  .o500sun-page .o500sun-editorial__block .o500sun-guide h3 {font-size:21px}
  .o500sun-page .o500sun-guide__row {
    display:block;
    padding:15px 0;
  }
  .o500sun-page .o500sun-guide__row-title {margin-bottom:7px}
  .o500sun-page .o500sun-guide__tile {padding:17px}
  .o500sun-page .o500sun-guide__table-wrap {border:0;overflow:visible}
  .o500sun-page .o500sun-guide__table,
  .o500sun-page .o500sun-guide__table tbody,
  .o500sun-page .o500sun-guide__table tr,
  .o500sun-page .o500sun-guide__table :is(th,td) {display:block;width:100%}
  .o500sun-page .o500sun-guide__table thead {display:none}
  .o500sun-page .o500sun-guide__table tbody tr {
    margin:0 0 10px;
    padding:12px 14px;
    border:1px solid var(--sun-guide-line);
    border-radius:10px;
    background:#fff !important;
  }
  .o500sun-page .o500sun-guide__table tbody :is(th,td) {
    padding:4px 0;
    border:0;
  }
  .o500sun-page .o500sun-guide__table tbody th {font-size:18px}
  .o500sun-page .o500sun-guide__table td::before {
    content:attr(data-label) ": ";
    font-weight:650;
    color:#253b53;
  }
}





/* ЧЁРНЫЙ ТЕКСТ В ЭКСПЕРТНЫХ БЛОКАХ */

.o500sun-page .o500sun-editorial .o500sun-guide,
.o500sun-page .o500sun-editorial .o500sun-guide * {
    color: #111111 !important;
}

/* ЧЁРНЫЕ ПОДПИСИ И МАРКЕРЫ */

.o500sun-page .o500sun-editorial .o500sun-guide *::before,
.o500sun-page .o500sun-editorial .o500sun-guide li::marker {
    color: #111111 !important;
}









/* ============================================================
   O500 MALE SUNGLASSES EDITORIAL v1.0
   Экспертные блоки мужских солнцезащитных очков
   MODX 3 / без JS / без внешних библиотек
   ============================================================ */

.o500sun .o500sun-male-guide {
    --male-blue: #173e68;
    --male-blue-dark: #102e50;
    --male-text: #17191d;
    --male-muted: #4b5563;
    --male-line: #dce5ee;
    --male-light: #f6f9fc;

    box-sizing: border-box;
    width: 100%;
    max-width: 1160px;
    margin: 24px auto;
    padding: clamp(22px, 4vw, 44px);

    color: var(--male-text);
    background: #ffffff;

    border: 1px solid var(--male-line);
    border-radius: 18px;

    box-shadow: 0 8px 30px rgba(19, 48, 79, .035);
}

.o500sun .o500sun-male-guide *,
.o500sun .o500sun-male-guide *::before,
.o500sun .o500sun-male-guide *::after {
    box-sizing: border-box;
}

.o500sun .o500sun-male-guide--soft {
    background: var(--male-light);
}

/* Надзаголовки */

.o500sun .o500sun-male-guide__eyebrow {
    display: block;
    margin: 0 0 16px;

    color: var(--male-blue) !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .11em;
    text-transform: uppercase;
}

/* Заголовки */

.o500sun .o500sun-male-guide h2 {
    max-width: 900px;
    margin: 0 0 19px;

    color: #111111 !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 400;
    line-height: 1.19;
    letter-spacing: -.025em;
}

.o500sun .o500sun-male-guide h3 {
    margin: 0 0 12px;

    color: #111111 !important;
    font-size: clamp(18px, 1.6vw, 21px);
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: -.012em;
}

/* Текст */

.o500sun .o500sun-male-guide p,
.o500sun .o500sun-male-guide li {
    color: #20242a !important;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0;
}

.o500sun .o500sun-male-guide p {
    margin: 0 0 16px;
}

.o500sun .o500sun-male-guide p:last-child {
    margin-bottom: 0;
}

.o500sun .o500sun-male-guide strong {
    color: #111111 !important;
    font-weight: 650;
}

.o500sun .o500sun-male-guide__lead {
    max-width: 870px;
    margin-bottom: 27px !important;

    font-size: clamp(16px, 1.35vw, 18px) !important;
    line-height: 1.75 !important;
}

.o500sun .o500sun-male-guide__intro {
    max-width: 870px;
}

/* Разделитель */

.o500sun .o500sun-male-guide__divider {
    height: 1px;
    margin: 27px 0;
    background: var(--male-line);
}

/* Карточки */

.o500sun .o500sun-male-guide__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;

    margin: 25px 0;
}

.o500sun .o500sun-male-guide__grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.o500sun .o500sun-male-guide__card {
    min-width: 0;
    padding: 24px;

    background: var(--male-light);
    border: 1px solid var(--male-line);
    border-radius: 13px;
}

.o500sun .o500sun-male-guide--soft
.o500sun-male-guide__card {
    background: #ffffff;
}

.o500sun .o500sun-male-guide__card-label {
    display: block;
    margin-bottom: 16px;

    color: var(--male-blue) !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.o500sun .o500sun-male-guide__card p {
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.7;
}

/* Строки: заголовок слева, объяснение справа */

.o500sun .o500sun-male-guide__rows {
    margin-top: 26px;
    border-top: 1px solid var(--male-line);
}

.o500sun .o500sun-male-guide__row {
    display: grid;
    grid-template-columns: minmax(190px, .38fr) minmax(0, 1fr);
    gap: clamp(20px, 4vw, 54px);

    padding: 23px 0;
    border-bottom: 1px solid var(--male-line);
}

.o500sun .o500sun-male-guide__row h3 {
    margin: 0;
    font-size: 17px;
}

.o500sun .o500sun-male-guide__row p {
    margin: 0;
}

/* Бренды */

.o500sun .o500sun-male-guide__brands {
    margin: 25px 0;
    padding: 24px;

    background: #f8fafc;
    border: 1px solid var(--male-line);
    border-radius: 13px;
}

.o500sun .o500sun-male-guide__brands h3 {
    margin-bottom: 17px;
}

.o500sun .o500sun-male-guide__brand-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.o500sun .o500sun-male-guide__brand-list li {
    margin: 0;
    padding: 9px 14px;

    color: #173e68 !important;
    background: #ffffff;

    border: 1px solid #d5e0eb;
    border-radius: 7px;

    font-size: 14px;
    font-weight: 650;
    line-height: 1.4;
}

/* Памятка */

.o500sun .o500sun-male-guide__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 25px 0;
}

.o500sun .o500sun-male-guide__step {
    min-width: 0;
    padding: 20px;

    background: #ffffff;
    border: 1px solid var(--male-line);
    border-radius: 12px;
}

.o500sun .o500sun-male-guide__step-number {
    display: block;
    margin-bottom: 12px;

    color: var(--male-blue) !important;
    font-family: Georgia, serif;
    font-size: 27px;
    line-height: 1.1;
}

.o500sun .o500sun-male-guide__step h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

/* Экспертная рекомендация */

.o500sun .o500sun-male-guide__note {
    margin-top: 25px;
    padding: 18px 22px;

    background: #eef4fa;
    border: 1px solid #dce6f0;
    border-left: 3px solid var(--male-blue);
    border-radius: 0 10px 10px 0;
}

.o500sun .o500sun-male-guide__note p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

.o500sun .o500sun-male-guide__note strong {
    color: var(--male-blue-dark) !important;
}

/* Списки */

.o500sun .o500sun-male-guide ul:not(.o500sun-male-guide__brand-list) {
    margin: 13px 0 18px;
    padding-left: 23px;
}

.o500sun .o500sun-male-guide li + li {
    margin-top: 7px;
}

.o500sun .o500sun-male-guide li::marker {
    color: var(--male-blue);
}

/* Ссылки */

.o500sun .o500sun-male-guide a {
    color: var(--male-blue) !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.o500sun .o500sun-male-guide a:hover {
    color: #0b294a !important;
}

.o500sun .o500sun-male-guide a:focus-visible {
    outline: 2px solid var(--male-blue);
    outline-offset: 4px;
}

/* Планшеты */

@media (max-width: 960px) {
    .o500sun .o500sun-male-guide__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .o500sun .o500sun-male-guide__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Телефоны */

@media (max-width: 640px) {
    .o500sun .o500sun-male-guide {
        margin: 16px auto;
        padding: 23px 18px;
        border-radius: 13px;
    }

    .o500sun .o500sun-male-guide h2 {
        font-size: clamp(26px, 7vw, 32px);
        line-height: 1.2;
    }

    .o500sun .o500sun-male-guide h3 {
        font-size: 18px;
    }

    .o500sun .o500sun-male-guide p,
    .o500sun .o500sun-male-guide li {
        font-size: 16px;
        line-height: 1.7;
    }

    .o500sun .o500sun-male-guide__grid,
    .o500sun .o500sun-male-guide__steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .o500sun .o500sun-male-guide__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
        padding: 20px 0;
    }

    .o500sun .o500sun-male-guide__card,
    .o500sun .o500sun-male-guide__brands {
        padding: 20px 17px;
    }

    .o500sun .o500sun-male-guide__note {
        padding: 17px;
    }

    .o500sun .o500sun-male-guide__brand-list {
        gap: 7px;
    }

    .o500sun .o500sun-male-guide__brand-list li {
        padding: 8px 11px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .o500sun .o500sun-male-guide {
        padding: 20px 14px;
    }
}








/* ==========================================
   ОЧКИ500 — ДЕТСКИЕ СОЛНЦЕЗАЩИТНЫЕ ОЧКИ
   Дополнительные стили
   ========================================== */

.o500sun-page .o500sun-kids-guide {
  color: #111111;
}

/* Заголовки */

.o500sun-page .o500sun-kids-guide h2,
.o500sun-page .o500sun-kids-guide h3 {
  color: #111111;
  font-weight: 600;
}

/* Основной текст */

.o500sun-page .o500sun-kids-guide p,
.o500sun-page .o500sun-kids-guide li {
  color: #111111;
  font-size: clamp(16px, 1.15vw, 17px);
  line-height: 1.75;
}

/* Дополнительные подписи */

.o500sun-page
.o500sun-kids-guide
.o500sun-male-guide__eyebrow,

.o500sun-page
.o500sun-kids-guide
.o500sun-male-guide__card-label {
  color: #173f70;
}

/* Выделенные рекомендации */

.o500sun-page
.o500sun-kids-guide
.o500sun-male-guide__note {
  border-left-color: #173f70;
}

.o500sun-page
.o500sun-kids-guide
.o500sun-male-guide__note strong {
  color: #111111;
}

/* Ссылки */

.o500sun-page .o500sun-kids-guide a {
  color: #173f70;
  text-decoration: none;
  font-weight: 600;
}

.o500sun-page .o500sun-kids-guide a:hover {
  text-decoration: underline;
}

/* Планшеты и телефоны */

@media (max-width: 767px) {

  .o500sun-page .o500sun-kids-guide h2 {
    font-size: clamp(23px, 6vw, 30px);
    line-height: 1.25;
  }

  .o500sun-page .o500sun-kids-guide h3 {
    font-size: 18px;
    line-height: 1.4;
  }

  .o500sun-page .o500sun-kids-guide p,
  .o500sun-page .o500sun-kids-guide li {
    font-size: 16px;
    line-height: 1.7;
  }

  .o500sun-page
  .o500sun-kids-guide
  .o500sun-male-guide__grid {
    grid-template-columns: minmax(0, 1fr);
  }

}




/* ==========================================
   ОЧКИ500 — ЧЁРНЫЙ ТЕКСТ
   Мужские, женские и детские очки
   ========================================== */

/* Общий цвет текста */

.o500sun-page .o500sun-editorial .o500sun-male-guide {
    color: #000000 !important;
}

/* Все заголовки */

.o500sun-page .o500sun-editorial .o500sun-male-guide h2,
.o500sun-page .o500sun-editorial .o500sun-male-guide h3,
.o500sun-page .o500sun-editorial .o500sun-male-guide h4 {
    color: #000000 !important;
}

/* Абзацы, списки и выделенный текст */

.o500sun-page .o500sun-editorial .o500sun-male-guide p,
.o500sun-page .o500sun-editorial .o500sun-male-guide li,
.o500sun-page .o500sun-editorial .o500sun-male-guide strong,
.o500sun-page .o500sun-editorial .o500sun-male-guide span {
    color: #000000 !important;
}

/* Размер и удобство чтения */

.o500sun-page .o500sun-editorial .o500sun-male-guide p,
.o500sun-page .o500sun-editorial .o500sun-male-guide li {
    font-size: clamp(16px, 1.15vw, 17px);
    line-height: 1.75;
}

/* Ссылки оставляем тёмно-синими */

.o500sun-page .o500sun-editorial .o500sun-male-guide a {
    color: #173f70;
}





















