/*
 * Очки500 / Контактные линзы и растворы — EDITORIAL 500 v1.
 * Один файл /assets/templates/css/o500-contact-catalog-v1.css.
 * Не использует Bootstrap, внешние шрифты или CSS солнцезащитного каталога.
 * Для баннера нет искусственного затемняющего слоя.
 */
.o500cl-page {
  --cl-navy: #193f78;
  --cl-blue: #193f78;
  --cl-emerald: #17635d;
  --cl-text: #111111;
  --cl-muted: #252525;
  --cl-line: #e0e7ed;
  --cl-soft: #f4f7fa;
  --cl-white: #ffffff;
  margin: 0;
  background: #fff;
  color: var(--cl-text);
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  overflow-x: clip;
}
.o500cl-page .o500cl,
.o500cl-page .o500cl *,
.o500cl-page .o500cl *::before,
.o500cl-page .o500cl *::after { box-sizing: border-box; }
.o500cl-page .o500cl { width: 100%; padding-bottom: 65px; }
.o500cl-page .o500cl a { text-decoration: none; }
.o500cl-page .o500cl input,
.o500cl-page .o500cl button,
.o500cl-page .o500cl select { font: inherit; }
.o500cl-page .o500cl img { max-width: 100%; }
.o500cl-page .o500cl :is(a, button, input, select, summary):focus-visible {
  outline: 3px solid #538cc4;
  outline-offset: 3px;
}
.o500cl-page .o500cl-container { width: min(1440px, calc(100% - 32px)); margin-inline: auto; }
.o500cl-page .o500cl-eyebrow {
  display: block;
  color: #d5e1ed;
  font-size: 14px;
  font-weight: 520;
  line-height: 1.5;
  letter-spacing: .12em;
}
.o500cl-page .o500cl-eyebrow--dark { color: #111; }
.o500cl-page .o500cl-crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding-block: 22px 18px;
  font-size: 14px;
  color: #222;
}
.o500cl-page .o500cl-crumbs a { color: #111; }
.o500cl-page .o500cl-crumbs a:hover { text-decoration: underline; }
.o500cl-page .o500cl-crumbs [aria-current="page"] { color: #111; }

/* Баннер — полноширинная фотография, без тёмного градиента поверх неё. */
.o500cl-page .o500cl-hero {
  position: relative;
  left: 50%;
  display: flex;
  align-items: center;
  width: 100vw;
  min-height: 575px;
  margin: 0 0 24px;
  padding: 60px 24px;
  transform: translateX(-50%);
  background-color: #122f4e;
  background-image: var(--o500cl-banner-image, none);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  overflow: hidden;
}
.o500cl-page .o500cl-hero--solutions { background-color: #113e3f; }
.o500cl-page .o500cl-hero::before,
.o500cl-page .o500cl-hero::after { content: none !important; }
.o500cl-page .o500cl-hero__copy {
  position: relative;
  z-index: 1;
  width: min(660px, 100%);
  margin-left: max(0px, calc((100vw - 1440px) / 2));
  color: #fff;
}
.o500cl-page .o500cl-hero h1 {
  margin: 16px 0 20px;
  color: #fff;
  font-size: clamp(37px, 3.8vw, 57px);
  font-weight: 610;
  line-height: 1.13;
  letter-spacing: -.035em;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0,0,0,.20);
}
.o500cl-page .o500cl-hero p {
  max-width: 570px;
  margin: 0;
  color: #f4f7fa;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.68;
  text-shadow: 0 1px 14px rgba(0,0,0,.22);
}
.o500cl-page .o500cl-hero__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 47px;
  margin-top: 27px;
  padding: 11px 24px;
  background: var(--cl-navy);
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 550;
  transition: background-color .2s ease;
}
.o500cl-page .o500cl-hero__action:hover { background: #285a99; }

.o500cl-page .o500cl-categories {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  gap: 48px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e4e8ec;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.o500cl-page .o500cl-category {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 16px 3px 17px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #111;
  font-size: 15px;
  font-weight: 460;
  line-height: 1.35;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease;
}
.o500cl-page .o500cl-category span:last-child { display: none; }
.o500cl-page .o500cl-category:hover { background: transparent; color: #111; border-color: #a6c0d8; }
.o500cl-page .o500cl-category[aria-current="page"] {
  border-color: var(--cl-navy);
  background: transparent;
  color: #111;
  font-weight: 650;
}
.o500cl-page .o500cl-category--sub { background: transparent; }
.o500cl-page .o500cl-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
  padding: 23px 27px;
  border-radius: 13px;
  border: 1px solid #dfe9f2;
  background: #f2f6fa;
}
.o500cl-page .o500cl-note strong {
  display: block;
  color: #111;
  font-size: 18px;
  font-weight: 610;
}
.o500cl-page .o500cl-note p {
  margin: 7px 0 0;
  color: #222;
  font-size: 15px;
  line-height: 1.6;
}
.o500cl-page .o500cl-note > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--cl-navy);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 580;
}
.o500cl-page .o500cl-note > a:hover { background: #285a99; }

/* Каталог и фильтры — та же спокойная эстетика, что в каталоге очков. */
.o500cl-page .o500cl-layout {
  display: grid;
  grid-template-columns: minmax(215px, 238px) minmax(0, 1fr);
  align-items: start;
  gap: 26px;
}
.o500cl-page .o500cl-filter {
  padding: 8px 21px 18px 0;
  border: 0;
  border-right: 1px solid var(--cl-line);
  border-radius: 0;
  background: #fff;
}
.o500cl-page .o500cl-filter > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 51px;
  margin: 0 0 13px;
  list-style: none;
  cursor: pointer;
  color: #111;
  font-size: 18px;
  font-weight: 630;
}
.o500cl-page .o500cl-filter > summary::-webkit-details-marker { display: none; }
.o500cl-page .o500cl-filter > summary span { color: #111; }
.o500cl-page .o500cl-filter__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
.o500cl-page .o500cl-filter__form > label,
.o500cl-page .o500cl-filter__legend {
  display: block;
  margin-top: 12px;
  color: #111;
  font-size: 14px;
  font-weight: 580;
}
.o500cl-page .o500cl-filter__form > input,
.o500cl-page .o500cl-filter__form > select,
.o500cl-page .o500cl-price-range input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cddae5;
  border-radius: 7px;
  outline: none;
  background: #fff;
  color: #111;
  font-size: 14px;
}
.o500cl-page .o500cl-filter__form > :is(input,select):focus,
.o500cl-page .o500cl-price-range input:focus { border-color: #2f6e9e; }
.o500cl-page .o500cl-price-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 9px;
}
.o500cl-page .o500cl-price-range label { color: #111; font-size: 14px; }
.o500cl-page .o500cl-price-range input { margin-top: 5px; padding-inline: 8px; }
.o500cl-page .o500cl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 560;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
}
.o500cl-page .o500cl-btn--primary {
  color: #fff;
  background: var(--cl-navy);
  transition: background-color .2s ease;
}
.o500cl-page .o500cl-btn--primary:hover { background: #285a99; }
.o500cl-page .o500cl-filter .o500cl-btn { width: 100%; margin-top: 16px; }
.o500cl-page .o500cl-filter__reset {
  justify-self: center;
  padding: 8px;
  color: #111;
  font-size: 14px;
  text-decoration: underline !important;
}
.o500cl-page .o500cl-results { min-width: 0; }
.o500cl-page .o500cl-catalog { scroll-margin-top: 90px; }
.o500cl-page .o500cl-results__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 17px;
}
.o500cl-page .o500cl-results__head h2 {
  margin: 5px 0 0;
  color: #111;
  font-size: clamp(24px, 2vw, 31px);
  font-weight: 610;
  letter-spacing: -.02em;
}
.o500cl-page .o500cl-results__count {
  padding-bottom: 4px;
  color: #222;
  font-size: 14px;
}
.o500cl-page .o500cl-results__tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 20px;
}
.o500cl-page .o500cl-sort {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.o500cl-page .o500cl-sort label {
  color: #111;
  font-size: 14px;
  font-weight: 520;
}
.o500cl-page .o500cl-sort select {
  min-width: 182px;
  min-height: 43px;
  padding: 8px 12px;
  border: 1px solid #ccd8e2;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: 14px;
  cursor: pointer;
}
.o500cl-page .o500cl-sort__submit {
  min-height: 43px;
  padding: 8px 15px;
  border: 1px solid var(--cl-navy);
  border-radius: 8px;
  background: var(--cl-navy);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.o500cl-page .o500cl-sort__submit[hidden] { display: none !important; }
.o500cl-page .o500cl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.o500cl-page .o500cl-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e3e9ee;
  border-radius: 13px;
  background: #fff;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.o500cl-page .o500cl-card:hover {
  border-color: #bbcfdd;
  box-shadow: 0 9px 25px rgba(23,61,102,.06);
  transform: translateY(-2px);
}
.o500cl-page .o500cl-card__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 310px;
  padding: 0;
  background: #fff;
  overflow: hidden;
}
.o500cl-page .o500cl-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform .25s ease;
}
.o500cl-page .o500cl-card:hover .o500cl-card__visual img { transform: none; }
.o500cl-page .o500cl-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #bac9d5;
}
.o500cl-page .o500cl-card__placeholder svg { width: 94px; }
.o500cl-page .o500cl-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border: 1px solid #d3e0e9;
  border-radius: 5px;
  background: #fff;
  color: #111;
  font-size: 14px;
}
.o500cl-page .o500cl-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 17px 16px 18px;
}
.o500cl-page .o500cl-card__brand {
  color: var(--cl-navy);
  font-size: 14px;
  font-weight: 630;
  text-transform: uppercase;
  letter-spacing: .065em;
}
.o500cl-page .o500cl-card h3 {
  margin: 0;
  color: #111;
  font-size: 16px;
  font-weight: 585;
  line-height: 1.47;
  overflow-wrap: anywhere;
}
.o500cl-page .o500cl-card h3 a { color: inherit; }
.o500cl-page .o500cl-card h3 a:hover { color: #2b6597; }
.o500cl-page .o500cl-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: #222;
  font-size: 14px;
  line-height: 1.5;
}
.o500cl-page .o500cl-card__specs span + span::before {
  content: "·";
  margin-right: 10px;
  color: #aab8c4;
}
.o500cl-page .o500cl-card__bottom {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 11px;
}
.o500cl-page .o500cl-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 9px;
}
.o500cl-page .o500cl-card__price strong {
  color: #111;
  font-size: 21px;
  font-weight: 640;
  line-height: 1.25;
}
.o500cl-page .o500cl-card__price del { color: #8597a6; font-size: 14px; }
.o500cl-page .o500cl-card__button {
  width: 100%;
  color: #fff !important;
  background: var(--cl-navy) !important;
}
.o500cl-page .o500cl-card__button:hover { background: #285a99 !important; }
.o500cl-page .o500cl-empty {
  padding: 35px 24px;
  border: 1px dashed #ccdce8;
  border-radius: 13px;
  background: #f8fafc;
  color: #111;
}
.o500cl-page .o500cl-empty h2,
.o500cl-page .o500cl-empty h3 { margin: 0 0 10px; color: #111; font-size: 21px; }
.o500cl-page .o500cl-empty p { margin: 0 0 17px; font-size: 15px; line-height: 1.6; }
.o500cl-page .o500cl-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 29px;
}
.o500cl-page .o500cl-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #dce6ee;
  border-radius: 8px;
  background: #f3f7fa;
  color: #111;
  font-size: 14px;
  font-weight: 550;
}
.o500cl-page .o500cl-pagination a[aria-current="page"] {
  background: #224f79;
  color: #fff;
  border-color: #224f79;
}
.o500cl-page .o500cl-section-heading { margin-bottom: 20px; }
.o500cl-page .o500cl-section-heading h2 {
  margin: 8px 0 11px;
  color: #111;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 610;
  letter-spacing: -.025em;
}
.o500cl-page .o500cl-section-heading p {
  max-width: 740px;
  margin: 0;
  color: #222;
  font-size: 15px;
  line-height: 1.65;
}
.o500cl-page .o500cl-advice,
.o500cl-page .o500cl-faq { margin-top: 64px; }
.o500cl-page .o500cl-advice__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.o500cl-page .o500cl-advice__item {
  padding: 25px;
  border: 1px solid #e2e9ef;
  border-radius: 12px;
  background: #f7f9fb;
}
.o500cl-page .o500cl-advice__item > span {
  color: #111;
  font-size: 14px;
  letter-spacing: .06em;
}
.o500cl-page .o500cl-advice__item h3 {
  margin: 11px 0 9px;
  color: #111;
  font-size: 19px;
  font-weight: 610;
}
.o500cl-page .o500cl-advice__item p { margin: 0; color: #222; font-size: 15px; line-height: 1.65; }
.o500cl-page .o500cl-faq__list { display: grid; gap: 10px; }
.o500cl-page .o500cl-faq details {
  padding: 0 22px;
  border: 1px solid #e1e9ef;
  border-radius: 10px;
  background: #fff;
}
.o500cl-page .o500cl-faq summary {
  position: relative;
  padding: 20px 28px 20px 0;
  list-style: none;
  color: #111;
  font-size: 16px;
  font-weight: 580;
  cursor: pointer;
}
.o500cl-page .o500cl-faq summary::-webkit-details-marker { display: none; }
.o500cl-page .o500cl-faq summary::after {
  content: "+";
  position: absolute;
  top: 17px;
  right: 0;
  color: #111;
  font-size: 23px;
  font-weight: 400;
}
.o500cl-page .o500cl-faq details[open] summary::after { content: "−"; }
.o500cl-page .o500cl-faq details p {
  margin: -3px 0 20px;
  color: #222;
  font-size: 15px;
  line-height: 1.7;
}
.o500cl-page .o500cl-editorial {
  max-width: 990px;
  margin: 65px auto 0;
  color: #111;
  font-size: 16px;
  line-height: 1.8;
}
.o500cl-page .o500cl-editorial :is(h2,h3) {
  margin: 27px 0 12px;
  color: #111;
  font-weight: 610;
  line-height: 1.3;
}
.o500cl-page .o500cl-editorial p { margin: 0 0 14px; }
.o500cl-page .o500cl-editorial--geo {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--cl-line);
}

@media (max-width: 1150px) {
  .o500cl-page .o500cl-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .o500cl-page .o500cl-categories { gap: 32px; }
  .o500cl-page .o500cl-hero__copy { margin-left: 5vw; }
}
@media (max-width: 900px) {
  .o500cl-page .o500cl-categories { justify-content: flex-start; }
}
@media (max-width: 780px) {
  .o500cl-page .o500cl-container { width: min(100% - 26px, 680px); }
  .o500cl-page .o500cl-hero {
    min-height: 520px;
    padding: 58px 24px;
    background-position: 60% center;
  }
  .o500cl-page .o500cl-hero__copy { margin-left: 0; width: min(560px,100%); }
  .o500cl-page .o500cl-hero h1 { font-size: clamp(34px,6.8vw,45px); }
  .o500cl-page .o500cl-hero p { font-size: 16px; }
  .o500cl-page .o500cl-categories { gap: 22px; }
  .o500cl-page .o500cl-note { align-items: flex-start; flex-direction: column; gap: 15px; padding: 21px; }
  .o500cl-page .o500cl-layout { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .o500cl-page .o500cl-filter { padding: 0; border: 1px solid #dce6ee; border-radius: 10px; }
  .o500cl-page .o500cl-filter > summary { min-height: 52px; margin: 0; padding: 12px 16px; }
  .o500cl-page .o500cl-filter__form { padding: 0 16px 20px; }
  .o500cl-page .o500cl-advice__grid { grid-template-columns: 1fr; }
  .o500cl-page .o500cl-results__tools { justify-content: space-between; width: 100%; }
}
@media (max-width: 540px) {
  .o500cl-page .o500cl-crumbs { padding-block: 15px 13px; }
  .o500cl-page .o500cl-hero { min-height: 495px; padding: 38px 18px; background-position: 63% center; }
  .o500cl-page .o500cl-hero h1 { font-size: 35px; }
  .o500cl-page .o500cl-hero p { font-size: 15px; line-height: 1.6; }
  .o500cl-page .o500cl-hero__action { margin-top: 22px; }
  .o500cl-page .o500cl-categories { gap: 22px; }
  .o500cl-page .o500cl-category { min-height: 56px; padding: 12px 2px; font-size: 14px; }
  .o500cl-page .o500cl-results__tools { align-items: flex-start; }
  .o500cl-page .o500cl-sort { width: 100%; }
  .o500cl-page .o500cl-sort select { flex: 1; min-width: 0; }
  .o500cl-page .o500cl-note strong { font-size: 17px; }
  .o500cl-page .o500cl-grid { grid-template-columns: 1fr; gap: 12px; }
  .o500cl-page .o500cl-card__visual { height: 340px; }
  .o500cl-page .o500cl-card__body { padding: 17px 18px 18px; }
  .o500cl-page .o500cl-advice,
  .o500cl-page .o500cl-faq { margin-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .o500cl-page .o500cl * { transition: none !important; scroll-behavior: auto !important; }
  .o500cl-page .o500cl-card:hover { transform: none; }
}
