/* «Инструкции и помощь» (/instruktsii). Палитра магазина: тёплый фон, белые поверхности, чёрные заголовки, оранжевый акцент CARDVD. */
.ih { --ink: #1f1a16; --text: #2f2924; --muted: #6f6a64; --faint: #9a9189; --line: #e7dfd5; --line-strong: #d8cbbf; --bg: #fbf7f1; --card: #fff; --chip: #f6efe5; --soft: #fff3e8; --accent: #ea580c; --accent-ink: #c2410c;
    position: relative; background: var(--bg); box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax);
    color: var(--ink); font-family: "Space Grotesk", "Manrope", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.ih *, .ih *::before, .ih *::after { box-sizing: border-box; }
.ih [hidden] { display: none !important; }
.ih a { color: inherit; text-decoration: none; }
.ih svg { display: block; }
.ih-wrap { max-width: 1240px; margin: 0 auto; padding: 40px 20px 72px; }

/* ── шапка ── */
.ih-head { margin-bottom: 36px; }
.ih-title { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; }
.ih-title::after { content: ""; display: block; width: 44px; height: 4px; margin-top: 14px; border-radius: 4px; background: var(--accent); }
.ih-lead { margin: 14px 0 24px; max-width: 640px; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.5; color: var(--muted); }
.ih-search { position: relative; max-width: 760px; margin: 0; }
.ih-search__icon { position: absolute; left: 20px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--faint); pointer-events: none; transition: color .15s; }
.ih-search__input { display: block; width: 100%; height: 56px; padding: 0 56px 0 54px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font: inherit; font-size: 16px; color: var(--ink); box-shadow: 0 2px 10px rgba(80, 50, 20, .05); transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.ih-search__input::placeholder { color: var(--faint); }
.ih-search__input::-webkit-search-cancel-button { display: none; }
.ih-search__input:hover { border-color: var(--line-strong); }
.ih-search__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(234, 88, 12, .14); }
.ih-search:focus-within .ih-search__icon { color: var(--accent); }
.ih-search__kbd { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); min-width: 24px; height: 24px; padding: 0 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--chip); color: var(--faint); font: 500 13px/22px inherit; text-align: center; pointer-events: none; }
.ih-search__clear { position: absolute; right: 10px; top: 50%; width: 38px; height: 38px; margin-top: -19px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.ih-search__clear:hover { background: var(--chip); color: var(--ink); }

/* компактные разделы-«пилюли» */
.ih-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ih-cat { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); white-space: nowrap; transition: border-color .15s, background .15s, color .15s; }
.ih-cat:hover { border-color: var(--accent); }
.ih-cat:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ih-cat__icon { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; background: var(--soft); color: var(--accent-ink); transition: background .15s, color .15s; }
.ih-cat__icon svg { width: 15px; height: 15px; }
.ih-cat__name { font-size: 14px; line-height: 1; font-weight: 600; }
.ih .ih-head a.ih-cat, .ih .ih-head a.ih-cat:visited { color: var(--ink); }
.ih-cat__name { color: inherit; }
.ih .ih-head a.ih-cat.is-active, .ih .ih-head a.ih-cat.is-active:visited { color: #fff; }
.ih-cat.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.ih-cat.is-active .ih-cat__icon { background: rgba(255, 255, 255, .2); color: #fff; }

.ih-status { margin: -16px 0 20px; font-size: 14px; color: var(--muted); }

/* ── контент ── */
.ih-label { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.ih-featured { margin-bottom: 44px; }
.ih-featured__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ih-feat { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 168px; padding: 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(80, 50, 20, .04); transition: border-color .18s, box-shadow .18s, transform .18s; }
.ih-feat:nth-child(1) { background: var(--soft); border-color: #f6d9bf; }
.ih-feat:hover { border-color: var(--accent); box-shadow: 0 14px 30px rgba(120, 60, 10, .12); transform: translateY(-2px); }
.ih-feat:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ih-feat__icon { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; background: var(--accent); color: #fff; }
.ih-feat__icon svg { width: 22px; height: 22px; }
.ih-feat__body { display: flex; flex-direction: column; gap: 6px; padding-right: 8px; }
.ih-feat__title { font-size: 17px; line-height: 1.28; font-weight: 700; letter-spacing: -.012em; }
.ih-feat__desc { font-size: 13.5px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.ih-feat__go { position: absolute; right: 18px; top: 20px; width: 18px; height: 18px; color: var(--line-strong); transition: color .18s, transform .18s; }
.ih-feat:hover .ih-feat__go { color: var(--accent); transform: translate(2px, -2px); }

/* разделы — белые панели в две колонки (masonry), без пустот у коротких разделов */
.ih-secs { column-count: 2; column-gap: 20px; }
.ih-sec { break-inside: avoid; margin: 0 0 20px; padding: 8px 8px 8px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: 0 2px 10px rgba(80, 50, 20, .04); scroll-margin-top: 20px; }
.ih-sec__title { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 14px 10px; font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.ih-sec__title::before { content: ""; flex: none; width: 4px; height: 18px; border-radius: 4px; background: var(--accent); }
.ih-sec--flat { padding-top: 8px; }
.ih-list { display: flex; flex-direction: column; }
.ih-item { position: relative; display: flex; align-items: flex-start; gap: 14px; min-width: 0; padding: 12px 40px 12px 14px; border-radius: 14px; transition: background .15s; }
.ih-item + .ih-item::before { content: ""; position: absolute; left: 64px; right: 14px; top: 0; height: 1px; background: var(--line); opacity: .7; }
.ih-item:hover { background: var(--bg); }
.ih-item:hover::before, .ih-item:hover + .ih-item::before { opacity: 0; }
.ih-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ih-item__icon { flex: none; display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 11px; background: var(--chip); color: var(--text); transition: background .16s, color .16s; }
.ih-item__icon svg { width: 19px; height: 19px; }
.ih-item:hover .ih-item__icon { background: var(--soft); color: var(--accent-ink); }
.ih-item__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ih-item__title { font-size: 15.5px; line-height: 1.3; font-weight: 600; letter-spacing: -.008em; color: var(--ink); overflow-wrap: anywhere; }
.ih-item:hover .ih-item__title { color: var(--accent-ink); }
.ih-item__desc { font-size: 13.5px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.ih-item__go { position: absolute; right: 14px; top: 16px; width: 16px; height: 16px; color: var(--accent); opacity: 0; transform: translate(-3px, 3px); transition: opacity .16s, transform .16s; }
.ih-item:hover .ih-item__go { opacity: 1; transform: none; }

.ih-empty { padding: 56px 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 20px; background: var(--card); }
.ih-empty__title { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.ih-empty__text { margin: 0 auto; max-width: 460px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.ih-link { display: inline-flex; align-items: center; min-height: 42px; margin-top: 12px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--ink); font: inherit; font-weight: 600; color: #fff; cursor: pointer; }
.ih-link:hover { background: var(--accent); }

/* ── планшет ── */
@media (max-width: 1080px) {
  .ih-featured__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .ih-secs { column-count: 1; }
}

/* ── телефон: свой макет, не уменьшенный десктоп ── */
@media (max-width: 640px) {
  .ih { margin-inline: -12px; }
  .ih-wrap { padding: 24px 0 48px; }
  .ih-head { margin-bottom: 24px; }
  .ih-title::after { margin-top: 12px; }
  .ih-lead { margin: 10px 0 18px; }
  .ih-search__input { height: 52px; padding-left: 46px; padding-right: 14px; }
  .ih-search__input::placeholder { font-size: 14px; }
  .ih-search__icon { left: 17px; }
  .ih-search__kbd { display: none; }
  .ih-cats { flex-wrap: nowrap; gap: 8px; margin: 16px -16px 0; padding: 2px 16px 4px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ih-cats::-webkit-scrollbar { display: none; }
  .ih-cat { flex: none; scroll-snap-align: start; }
  .ih-status { margin: -8px 0 14px; }
  .ih-featured { margin-bottom: 28px; }
  .ih-featured__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ih-feat { flex-direction: row; align-items: center; min-height: 0; gap: 14px; padding: 14px 16px; border-radius: 16px; }
  .ih-feat__icon { width: 40px; height: 40px; flex: none; }
  .ih-feat__title { font-size: 16px; }
  .ih-feat__desc { display: none; }
  .ih-feat__go { top: 50%; margin-top: -9px; }
  .ih-sec { margin-bottom: 14px; padding: 4px; border-radius: 18px; }
  .ih-sec__title { padding: 12px 12px 6px; font-size: 17px; }
  .ih-item { padding: 12px 12px; gap: 12px; align-items: center; min-height: 60px; }
  .ih-item + .ih-item::before { left: 58px; right: 12px; }
  .ih-item__icon { width: 34px; height: 34px; }
  .ih-item__go { display: none; }
  .ih-empty { padding: 36px 18px; }
}
@media (prefers-reduced-motion: reduce) { .ih * { transition: none !important; } .ih-feat:hover { transform: none; } }
@media (max-width: 380px) { .ih-search__input::placeholder { font-size: 13.5px; } }
