/* AROS — тёмная тема (первый слой; шапка/подвал у сайта уже тёмные) */
.theme-switch{display:inline-block;width:26px;height:26px;margin-left:14px;cursor:pointer;vertical-align:middle;opacity:.85}
.theme-switch:hover{opacity:1}
.theme-switch-ico{display:block;width:22px;height:22px;border-radius:50%;
  background:radial-gradient(circle at 32% 32%, #ffd76a 0 42%, #f4b400 43% 100%);box-shadow:0 0 0 2px rgba(255,255,255,.15)}
html[data-theme-resolved="dark"] .theme-switch-ico{background:#2a2d33;box-shadow:inset -5px -3px 0 0 #cfd3da}
html[data-theme-resolved="dark"]{--bg:#15171a;--surface:#1d2024;--surface2:#23272c;--text:#dfe2e7;--muted:#a4a9b2;--border:#2e333a;--accent:#41a0ee}
html[data-theme-resolved="dark"] body{background:var(--bg);color:var(--text)}
html[data-theme-resolved="dark"] .wrapper{background:var(--bg)}
html[data-theme-resolved="dark"] .card-content-wrap,
html[data-theme-resolved="dark"] .net-content-wrap,
html[data-theme-resolved="dark"] .cat-content-text-wrap,
html[data-theme-resolved="dark"] .article,
html[data-theme-resolved="dark"] .contacts-content-wrap,
html[data-theme-resolved="dark"] .why-wrap,
html[data-theme-resolved="dark"] .intro-wrap{background:var(--bg);color:var(--text)}
html[data-theme-resolved="dark"] .card-content-text,
html[data-theme-resolved="dark"] .article-content,
html[data-theme-resolved="dark"] .cat-content-text-content,
html[data-theme-resolved="dark"] .public-offer{color:var(--muted)}
html[data-theme-resolved="dark"] .net-content-slider li,
html[data-theme-resolved="dark"] .netout-item,
html[data-theme-resolved="dark"] .main-item,
html[data-theme-resolved="dark"] .card-content-right,
html[data-theme-resolved="dark"] .why-item{background:var(--surface);border-color:var(--border)}
html[data-theme-resolved="dark"] .netout-item-title,
html[data-theme-resolved="dark"] .card-content-right-title,
html[data-theme-resolved="dark"] .tech-title,
html[data-theme-resolved="dark"] .net-top-bg-title,
html[data-theme-resolved="dark"] .why-item-title,
html[data-theme-resolved="dark"] h1,html[data-theme-resolved="dark"] h2,html[data-theme-resolved="dark"] h3{color:var(--text)}
html[data-theme-resolved="dark"] .netout-item-intro,
html[data-theme-resolved="dark"] .card-content-right-price{color:#7fc4ff}
html[data-theme-resolved="dark"] .card-content-right-char table,
html[data-theme-resolved="dark"] .card-content-right-char td{color:var(--text);border-color:var(--border)}
html[data-theme-resolved="dark"] a{color:var(--accent)}
html[data-theme-resolved="dark"] .bread-wrap,
html[data-theme-resolved="dark"] .bread a,html[data-theme-resolved="dark"] .bread{color:var(--muted)}
html[data-theme-resolved="dark"] input,html[data-theme-resolved="dark"] textarea{background:var(--surface2);color:var(--text);border-color:var(--border)}
html[data-theme-resolved="dark"] img.invert-dark{filter:invert(1) hue-rotate(180deg)}

/* ── Фикс каталога: детерминированный размер карточки/фото (без гонки equalHeight) ── */
.net-content-slider li a{height:auto !important;box-sizing:border-box;vertical-align:top;padding-bottom:14px;border-radius:4px;overflow:hidden}
.net-content-slider li a .netout-item-img{height:200px;display:flex;align-items:center;justify-content:center;overflow:hidden;margin-bottom:6px}
.net-content-slider li a .netout-item-img img{max-width:100%;max-height:200px;width:auto !important;height:auto !important;object-fit:contain}
.netout-item-title{min-height:2.6em;display:block}
html[data-theme-resolved="dark"] .net-content-slider li a{box-shadow:0 0 0 1px #2e333a}

/* H1 карточки товара — без дефолтных отступов браузера, стиль из класса */
h1.card-content-right-title{margin:0;font-weight:inherit;font-size:inherit;line-height:inherit}
/* Тёмная тема: модалка заказа */
html[data-theme-resolved="dark"] #modal_form{background:#1d2024;color:#dfe2e7}
html[data-theme-resolved="dark"] #modal_form .vvod{background:#23272c;color:#dfe2e7;border-color:#2e333a}
html[data-theme-resolved="dark"] #modal_form .form-text,html[data-theme-resolved="dark"] #modal_form .form-text-anons{color:#dfe2e7}
