/* Price catalogue module (/prices; ported from Klyaksa Laravel resources/css/catalog.css): iXBT-dense rows in rounded panels, graphite neutrals, lime only as a fill
   with dark text or a mark (accent text = --accent-ink). Radii: control 8, card 12, panel 16. Numbers tabular. */
.k-num { font-variant-numeric: tabular-nums; }
.k-cat { max-width: var(--page-max); margin: 12px auto 48px; padding: 0 var(--space-4); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.k-cat a:not([class]) { color: inherit; }

.k-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; line-height: 20px; color: var(--muted); }
.k-crumbs li { display: inline-flex; gap: 8px; min-width: 0; }
.k-crumbs li + li::before { content: "/"; color: var(--line-control); }
.k-crumbs a { color: var(--muted); text-decoration: none; }
.k-crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.k-crumbs [aria-current] { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 48ch; }

.k-cat__head { display: flex; flex-direction: column; gap: 4px; padding: 4px 0; }
.k-cat__head h1 { margin: 0; font-size: 28px; line-height: 36px; font-weight: 500; letter-spacing: -.015em; text-wrap: balance; }
.k-cat__lead { margin: 0; max-width: 68ch; font-size: 16px; line-height: 24px; color: var(--ink-2); }
.k-cat__note { margin: 4px 0 0; max-width: 88ch; font-size: 12px; line-height: 16px; color: var(--muted); }
.k-cat__seo { font-size: 15px; line-height: 24px; color: var(--ink-2); }

/* Section tiles */
.k-tiles { list-style: none; margin: 0; padding: 0 0 4px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.k-tile { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 12px 16px; border-radius: 12px; background: var(--bg); color: var(--ink); text-decoration: none; box-sizing: border-box; }
.k-tile__img { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 4px; border-radius: 8px; background: #fff; overflow: hidden; }
.k-tile__img img { width: 56px; height: 56px; object-fit: contain; }
.k-tile__img:empty { display: none; }
.k-tile__name { font-size: 16px; line-height: 22px; font-weight: 500; overflow-wrap: anywhere; hyphens: auto; }
.k-tile__from { margin-top: auto; padding-top: 4px; font-size: 14px; line-height: 20px; font-weight: 500; }
.k-tile:hover { background: var(--surface-2); }
.k-cat__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.k-cat__cols--one { grid-template-columns: minmax(0, 1fr); }

/* Compact model rows (catalogue home, home widget, search, similar) */
.k-minis { list-style: none; margin: 0; padding: 0; }
.k-minis li + li { border-top: 1px solid var(--line); }
.k-minis--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.k-minis--two li + li { border-top: 0; }
.k-minis--two li { border-bottom: 1px solid var(--line); }
.k-mini { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 0; color: var(--ink); text-decoration: none; }
.k-mini__img { width: 48px; height: 48px; border-radius: 8px; background: #fff; overflow: hidden; display: grid; place-items: center; }
.k-mini__img img { width: 44px; height: 44px; object-fit: contain; }
.k-mini__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.k-mini__name { font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.k-mini__price { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.k-mini__none { color: var(--muted); }

/* 7-day change: drops in the accent, rises muted */
.k-chg { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; line-height: 18px; font-weight: 500; white-space: nowrap; }
.k-chg svg { flex: none; }
.k-chg--down { color: var(--accent-ink); }
.k-chg--up { color: var(--muted); }

/* Section page: brand chips, filters | list */
.k-brands { gap: 8px; }
.k-brands .td-chip { text-decoration: none; }
.k-cat__grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 12px; align-items: start; }
.k-cat__main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.k-filters { padding: 0 16px 16px; }
.k-filters__sum { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 48px; font-size: 16px; line-height: 22px; font-weight: 500; cursor: pointer; }
.k-filters__sum::-webkit-details-marker { display: none; }
.k-filters__sum::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg) translateY(-2px); }
.k-filters[open] .k-filters__sum::after { transform: rotate(-135deg) translateX(-2px); }
.k-filters__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--lime); color: var(--on-lime); font-size: 12px; font-weight: 500; box-sizing: border-box; }
.k-filters__form { display: flex; flex-direction: column; gap: 16px; }
.k-facet { margin: 0; padding: 0; border: 0; min-width: 0; }
.k-facet legend { padding: 0 0 8px; font-size: 14px; line-height: 20px; font-weight: 500; }
.k-facet__list { display: flex; flex-direction: column; gap: 4px; max-height: 232px; overflow-y: auto; overscroll-behavior: contain; }
.k-check { display: flex; align-items: center; gap: 8px; min-height: 28px; font-size: 14px; line-height: 20px; color: var(--ink-2); cursor: pointer; }
.k-check input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.k-check__n { margin-left: auto; font-size: 12px; color: var(--muted); }
.k-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; color: var(--muted); }
.k-input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-control); border-radius: 8px; background: var(--bg); color: var(--ink); font: 400 14px/20px var(--font-sans); box-sizing: border-box; }
.k-input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.k-filters__btns { display: flex; gap: 8px; }
.k-filters__btns .td-btn { flex: 1; height: 40px; padding: 0 12px; border-radius: 8px; text-decoration: none; }

.k-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 40px; }
.k-toolbar__found { margin: 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.k-sort { display: flex; flex-wrap: wrap; gap: 4px; }
.k-sort a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; font-size: 14px; line-height: 20px; color: var(--ink-2); text-decoration: none; }
.k-sort a:hover { background: var(--surface-2); color: var(--ink); }
.k-sort a[aria-current] { background: var(--ink); color: var(--bg); }

.k-plist { padding-top: 4px; padding-bottom: 4px; }
.k-prow { display: grid; grid-template-columns: 96px minmax(0, 1fr) 200px; gap: 16px; padding: 16px 0; align-items: start; }
.k-prow + .k-prow { border-top: 1px solid var(--line); }
.k-prow__img { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 12px; background: #fff; overflow: hidden; }
.k-prow__img img { width: 88px; height: 88px; object-fit: contain; }
/* No photo yet (a promoted model before its first Kaspi read): a quiet picture outline, not an empty white box. */
.k-prow__img .k-noimg, .k-mini__img .k-noimg { color: var(--muted); opacity: .5; }
.k-prow__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.k-prow__name { margin: 0; font-size: 16px; line-height: 22px; font-weight: 500; overflow-wrap: anywhere; }
.k-prow__name a { color: var(--ink); text-decoration: none; }
.k-prow__name a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.k-prow__specs { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.k-prow__price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.k-prow__from { font-size: 18px; line-height: 24px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; }
.k-prow__from:hover { text-decoration: underline; text-underline-offset: 3px; }

.k-cmp-btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; margin-top: 4px; padding: 0 12px; border: 1px solid var(--line-control); border-radius: 8px;
  background: var(--bg); color: var(--ink-2); font: 500 13px/1 var(--font-sans); cursor: pointer; }
.k-cmp-btn:hover { background: var(--surface-2); color: var(--ink); }
.k-cmp-btn [data-on] { display: none; }
.k-cmp-btn[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.k-cmp-btn[aria-pressed="true"] [data-on] { display: inline; }
.k-cmp-btn[aria-pressed="true"] [data-off] { display: none; }
.k-cmp-btn:focus-visible, .k-sort a:focus-visible, .k-tile:focus-visible, .k-mini:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.k-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; }
.k-pager .td-btn { height: 40px; border-radius: 8px; text-decoration: none; }
.k-pager__n { display: inline-grid; place-items: center; min-width: 40px; height: 40px; border-radius: 8px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.k-pager__n:hover { background: var(--surface-2); }
.k-pager__n[aria-current] { background: var(--ink); color: var(--bg); }

/* Compare tray */
.k-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 11; /* under the cookie card */ padding: 8px var(--space-4) calc(8px + env(safe-area-inset-bottom)); background: var(--bar); color: var(--bar-ink); }
.k-tray__in { max-width: var(--page-max); margin: 0 auto; display: flex; align-items: center; gap: 12px; min-width: 0; }
.k-tray__count { flex: none; font-size: 14px; font-weight: 500; }
.k-tray__names { flex: 1; min-width: 0; font-size: 13px; color: var(--bar-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-tray__clear { flex: none; border: 0; background: none; color: var(--bar-muted); font: 500 13px/1 var(--font-sans); cursor: pointer; padding: 8px; }
.k-tray__clear:hover { color: var(--bar-ink); }
.td-btn.k-tray__go { flex: none; height: 36px; border-radius: 8px; background: var(--lime); border-color: var(--lime); color: var(--on-lime); text-decoration: none; }
.k-tray__full { max-width: var(--page-max); margin: 4px auto 0; font-size: 13px; color: var(--bar-muted); }
html.has-tray body { padding-bottom: 64px; }

/* Product page */
.k-prod__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 12px; align-items: start; }
.k-gal { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.k-gal__main { display: grid; place-items: center; aspect-ratio: 4 / 3; }
.k-gal__main img { width: 100%; height: 100%; max-height: 420px; object-fit: contain; }
.k-gal__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.k-gal__thumb { flex: none; display: grid; place-items: center; width: 64px; height: 64px; padding: 0; border: 1px solid #e4e4e7; border-radius: 8px; background: #fff; cursor: pointer; }
.k-gal__thumb img { width: 56px; height: 56px; object-fit: contain; }
.k-gal__thumb[aria-current] { border-color: #0b0b0c; box-shadow: inset 0 0 0 1px #0b0b0c; }
.k-prod__summary { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.k-prod__title { margin: 0; font-size: 28px; line-height: 36px; font-weight: 500; letter-spacing: -.015em; overflow-wrap: anywhere; text-wrap: pretty; }
.k-prod__summary .k-meta { font-size: 13px; line-height: 20px; }
.k-prod__summary .k-meta a { color: var(--ink-2); }
.k-pricebox { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: var(--panel); }
.k-pricebox__row { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.k-pricebox__row > div { display: flex; flex-direction: column; gap: 4px; }
.k-pricebox__min { font-size: 32px; line-height: 40px; font-weight: 500; letter-spacing: -.01em; }
.k-pricebox__max { font-size: 20px; line-height: 40px; font-weight: 400; color: var(--ink-2); }
.k-pricebox__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.k-pricebox__none { margin: 0; font-size: 18px; line-height: 24px; color: var(--ink-2); }
.k-pricebox__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.k-pricebox__btns .td-btn { height: 40px; border-radius: 8px; text-decoration: none; }
.k-pricebox__btns .k-cmp-btn { height: 40px; margin: 0; font-size: 14px; }
.k-keyspecs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.k-keyspecs div { display: flex; flex-direction: column; min-width: 0; }
.k-keyspecs dt { font-size: 12px; line-height: 16px; color: var(--muted); }
.k-keyspecs dd { margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; }
.k-prod__all { margin-left: 0; align-self: flex-start; }
.k-prod__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; align-items: start; }
.k-prod__main, .k-prod__side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.k-prod__about { font-size: 15px; line-height: 24px; }

/* Offers */
.k-offers { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.k-offers th { padding: 8px 8px 8px 0; text-align: left; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line); }
.k-offers td { padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.k-offers tr:last-child td { border-bottom: 0; }
.k-offers .k-offers__num { text-align: right; white-space: nowrap; }
.k-offers__store { display: flex; flex-direction: column; gap: 4px; }
.k-offers__name { font-weight: 500; overflow-wrap: anywhere; }
.k-offers__price { display: block; font-size: 16px; line-height: 22px; font-weight: 500; }
.k-offers__go { width: 1%; padding-right: 0 !important; text-align: right; }
.k-offers__go .td-btn { height: 36px; padding: 0 12px; border-radius: 8px; font-size: 14px; white-space: nowrap; text-decoration: none; }
.k-offers tr.is-out td { color: var(--muted); }
.k-offers__note { margin: 8px 0 0; }
.k-offers__toggle { position: absolute; opacity: 0; pointer-events: none; }
.k-offers__wrap:has(.k-offers__toggle:not(:checked)) tr.is-more { display: none; }
.k-offers__all { margin-top: 8px; height: 40px; border-radius: 8px; cursor: pointer; }
.k-offers__all [data-on], .k-offers__toggle:checked ~ .k-offers__all [data-off] { display: none; }
.k-offers__toggle:checked ~ .k-offers__all [data-on] { display: inline; }
.k-offers__toggle:focus-visible ~ .k-offers__all { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Price history */
.k-hist { display: flex; flex-direction: column; gap: 8px; }
.k-seg { display: inline-flex; align-self: flex-start; padding: 2px; border-radius: 8px; background: var(--surface-2); }
.k-seg input { position: absolute; opacity: 0; pointer-events: none; }
.k-seg label { padding: 6px 12px; border-radius: 8px; font-size: 13px; line-height: 16px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.k-seg input:checked + label { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.k-seg input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 1px; }
.k-hist__chart { margin: 0; position: relative; }
.k-hist__chart[data-days="90"] { display: none; }
.k-hist:has(#hist-90:checked) .k-hist__chart[data-days="90"] { display: block; }
.k-hist:has(#hist-90:checked) .k-hist__chart[data-days="30"] { display: none; }
.k-hist__chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.k-hist__grid { stroke: var(--line); stroke-width: 1; }
.k-hist__line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.k-hist__dot { fill: var(--lime); stroke: var(--ink); stroke-width: 1.5; }
.k-hist__scale { display: flex; justify-content: space-between; font-size: 12px; line-height: 16px; color: var(--muted); padding-bottom: 4px; }
.k-hist__dates { display: flex; justify-content: space-between; padding-top: 4px; }
.k-hist__table summary { font-size: 13px; line-height: 20px; color: var(--muted); cursor: pointer; }
.k-hist__table summary:hover { color: var(--ink); }
.k-hist__empty { margin: 0 0 4px; }

/* Specs (also the history table) */
.k-specs { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.k-specs th, .k-specs td { padding: 8px 12px 8px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.k-specs tbody th { width: 44%; font-weight: 400; color: var(--muted); }
.k-specs thead th { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted); }
.k-specs td { overflow-wrap: anywhere; }
.k-specs tr:last-child th, .k-specs tr:last-child td { border-bottom: 0; }
.k-specs__group { margin: 12px 0 0; font-size: 14px; line-height: 20px; font-weight: 500; }
.k-specs__group:first-of-type { margin-top: 0; }

/* Compare page */
.k-cmp__diff { align-self: flex-start; }
.k-cmp { padding: 0; }
.k-cmp__scroll { overflow-x: auto; }
.k-cmp__table { width: 100%; min-width: calc(216px + var(--cols) * 200px); border-collapse: collapse; table-layout: fixed; font-size: 14px; line-height: 20px; }
.k-cmp__table th, .k-cmp__table td { padding: 8px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.k-cmp__table tbody th[scope="row"] { width: 216px; font-weight: 400; color: var(--muted); }
.k-cmp__corner, .k-cmp__table thead th:first-child { width: 216px; }
.k-cmp__head { font-weight: 400; }
.k-cmp__head > * { display: block; }
.k-cmp__img { display: grid !important; place-items: center; width: 96px; height: 96px; margin-bottom: 8px; border-radius: 12px; background: #fff; }
.k-cmp__img img { width: 88px; height: 88px; object-fit: contain; }
.k-cmp__name { font-weight: 500; color: var(--ink); text-decoration: none; }
.k-cmp__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.k-cmp__price { margin-top: 4px; font-size: 16px; line-height: 22px; font-weight: 500; }
.k-cmp__remove { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--muted); font: 500 13px/20px var(--font-sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.k-cmp__remove:hover { color: var(--ink); }
.k-cmp__group th { padding-top: 16px; font-weight: 500; background: var(--panel); }
.k-cmp__table tr.is-diff td { background: var(--surface); font-weight: 500; }
.k-cmp__table tr.is-diff th[scope="row"] { box-shadow: inset 3px 0 0 var(--lime); }
.k-cmp.is-only-diff tr[data-same] { display: none; }

/* Home widget and search block */
.k-cwidget .k-mini__name { font-size: 14px; }
.k-csearch { margin-bottom: 16px; }

@media (hover: hover) and (pointer: fine) {
  .k-mini:hover .k-mini__name, .k-tile:hover .k-tile__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
}

/* Category / brand filters stay in view while the list scrolls (they scroll inside themselves when taller). */
@media (min-width: 901px) {
  .k-cat__grid { align-items: stretch; }
  .k-cat__main { align-self: start; }
  .k-cat__side > .k-filters { position: sticky; top: calc(var(--header-h) + 12px); max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto; overscroll-behavior: contain; }
}
/* Compare: the model row (photo, name, price) sticks under the header through a long spec table. overflow: clip
   keeps the rounded panel without making it a scroll container (sticky would stop working inside one). */
.k-cmp { overflow: clip; }
@media (min-width: 1101px) {
  .k-cmp__scroll { overflow: visible; }
  .k-cmp__table thead th, .k-cmp__table thead td { position: sticky; top: var(--header-h); z-index: 2; background: var(--panel); box-shadow: inset 0 -1px 0 var(--line); }
}

/* Product aside: the last block sticks under the header while the specs scroll (as the home side columns do). */
@media (min-width: 1101px) {
  .k-prod__grid { align-items: stretch; }
  .k-prod__main { align-self: start; }
  .k-prod__side > :last-child { position: sticky; top: calc(var(--header-h) + 12px); }
}
@media (max-width: 1100px) {
  .k-prod__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .k-prod__top { grid-template-columns: minmax(0, 1fr); }
  .k-gal__main img { max-height: 320px; }
}
@media (max-width: 767px) {
  .k-cat { margin-top: 8px; gap: 8px; }
  .k-cat__head h1, .k-prod__title { font-size: 22px; line-height: 28px; }
  .k-cat__grid { grid-template-columns: minmax(0, 1fr); }
  .k-cat__cols, .k-minis--two { grid-template-columns: minmax(0, 1fr); }
  .k-minis--two li:last-child { border-bottom: 0; }
  .k-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k-tile { padding: 12px 8px; }
  .k-tile__name { font-size: 15px; line-height: 20px; }
  .k-brands { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--space-4)); padding: 0 var(--space-4); }
  .k-brands .td-chip { flex: none; }
  /* Sort chips scroll edge to edge (like .k-brands): the first chip stays on the content edge, the rest pass under
     the gutter and fade there instead of being cut mid-chip at the column edge. */
  .k-sort { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--space-4)); padding: 0 var(--space-4); scroll-padding-inline: var(--space-4); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--space-4), #000 calc(100% - var(--space-4)), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 var(--space-4), #000 calc(100% - var(--space-4)), transparent 100%); }
  .k-sort a { flex: none; }
  .k-prow { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .k-prow__img { width: 72px; height: 72px; }
  .k-prow__img img { width: 64px; height: 64px; }
  .k-prow__price { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 4px 12px; text-align: left; }
  .k-prow__price .k-cmp-btn { margin: 0 0 0 auto; }
  /* Dense phone rows (≈140 px, qiymeti-like): 2-line name, 1-line specs, price row with a 32 px compare icon. */
  .k-prow { padding: 12px 0; }
  .k-prow__body { gap: 4px; }
  .k-prow__name { font-size: 15px; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .k-prow__specs { font-size: 13px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .k-prow__from { font-size: 16px; line-height: 20px; }
  .k-prow__price .k-cmp-btn { width: 32px; height: 32px; padding: 0; justify-content: center; gap: 0; }
  .k-prow__price .k-cmp-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .k-pricebox__min { font-size: 28px; line-height: 36px; }
  .k-keyspecs { grid-template-columns: minmax(0, 1fr); }
  /* Offers: one card per store */
  .k-offers thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .k-offers, .k-offers tbody { display: block; }
  .k-offers tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .k-offers tr:last-child { border-bottom: 0; }
  .k-offers td { padding: 0; border: 0; }
  .k-offers .k-offers__cell { grid-column: 1; grid-row: 1; }
  .k-offers .k-offers__num { grid-column: 2; grid-row: 1; }
  .k-offers .k-offers__del { grid-column: 1; grid-row: 2; font-size: 13px; color: var(--ink-2); }
  .k-offers .k-offers__src { display: none; }
  .k-offers .k-offers__go { grid-column: 2; grid-row: 2; width: auto; }
  .k-cmp__table { min-width: calc(112px + var(--cols) * 150px); font-size: 13px; }
  .k-cmp__table tbody th[scope="row"], .k-cmp__corner, .k-cmp__table thead th:first-child { width: 112px; }
  .k-cmp__table th, .k-cmp__table td { padding: 8px; }
  .k-cmp__img { width: 72px; height: 72px; }
  .k-cmp__img img { width: 64px; height: 64px; }
  .k-tray__names { display: none; }
  .k-crumbs [aria-current] { max-width: 24ch; }
}

/* Links that carry their own colour: raise them over `.td-root a { color: inherit }`. */
.td-root a.td-btn--primary, .td-root .k-sort a[aria-current], .td-root a.k-pager__n[aria-current] { color: var(--bg); }
.td-root a.k-tray__go { color: var(--on-lime); }
.td-root a.k-pager__n, .td-root .k-sort a { color: var(--ink-2); }
.td-root .k-sort a[aria-current] { color: var(--bg); }
.td-root a.k-panel__link { color: var(--muted); }
.td-root a.k-panel__link:hover { color: var(--ink); }

/* SEO / GEO layer (spec §4): answer sentence, variants, offer check time, monthly table, FAQ, other names,
   source line, methodology, landings intro, footer «Популярные цены». */
.k-answer { margin: 0; max-width: 72ch; font-size: 16px; line-height: 24px; color: var(--ink); text-wrap: pretty; }
.k-cat__head .k-answer { margin: 4px 0; color: var(--ink-2); }
.k-cat__intro { max-width: 72ch; margin-top: 8px; font-size: 16px; line-height: 24px; color: var(--ink-2); }
.k-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); font-size: 12px; line-height: 16px; font-weight: 500; }
.k-variants { display: flex; flex-direction: column; gap: 8px; }
.k-variants .td-chip { gap: 8px; text-decoration: none; }
.k-variants__price { color: var(--muted); font-size: 13px; }
.td-chips .td-chip[aria-current="page"] .k-variants__price { color: inherit; opacity: .8; }
.k-offers__upd { white-space: nowrap; }
.k-vtable { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.k-vtable th { padding: 8px 8px 8px 0; text-align: left; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line); }
.k-vtable td { padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.k-vtable tr:last-child td { border-bottom: 0; }
.k-vtable__num { text-align: right !important; white-space: nowrap; padding-right: 0 !important; }
.k-vtable__name { font-weight: 500; }
.k-vtable__price { font-size: 16px; line-height: 22px; font-weight: 500; }
.k-hist__stat { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.k-monthly td:nth-child(2) { white-space: nowrap; }
.k-faq__q { margin: 12px 0 4px; font-size: 16px; line-height: 24px; font-weight: 500; }
.k-faq__q:first-of-type { margin-top: 0; }
.k-faq__a { margin: 0; max-width: 72ch; font-size: 15px; line-height: 24px; color: var(--ink-2); }
.k-aliases { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-2); overflow-wrap: anywhere; }
.k-source { display: flex; flex-direction: column; gap: 4px; }
.k-source a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.k-method { max-width: 72ch; }
.k-method h1 { margin: 0 0 8px; font-size: 28px; line-height: 36px; font-weight: 500; letter-spacing: -.015em; }
.k-method h2 { margin: 24px 0 8px; font-size: 20px; line-height: 28px; font-weight: 500; }
.k-foot-prices { display: flex; flex-direction: column; gap: 8px; padding-top: var(--space-4); border-top: 1px solid var(--line); }
.k-foot-prices__h { margin: 0; font-size: 15px; line-height: 20px; font-weight: 500; }
.k-foot-prices__h a { color: var(--ink); }
.k-foot-prices__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; line-height: 20px; }
.k-foot-prices__list a { color: var(--muted); }
.k-foot-prices__list a:hover { color: var(--ink); }
.k-foot-prices__sec { color: var(--muted); font-size: 12px; }
@media (max-width: 767px) {
  .k-answer { font-size: 15px; line-height: 22px; }
  /* Offer card: store + price, then delivery · check time · button on one line. */
  .k-offers tr { grid-template-columns: auto minmax(0, 1fr) auto; }
  .k-offers .k-offers__cell { grid-column: 1 / 3; }
  .k-offers .k-offers__num { grid-column: 3; }
  .k-offers .k-offers__del { grid-column: 1; grid-row: 2; align-self: center; }
  .k-offers .k-offers__upd { grid-column: 2; grid-row: 2; align-self: center; font-size: 12px; }
  .k-offers .k-offers__upd::before { content: "· "; }
  .k-offers .k-offers__go { grid-column: 3; grid-row: 2; }
  .k-vtable { font-size: 13px; }
}
