/* Контур 0.2.0 — тема rshop: каталог, карточка, корзина, оформление.
   Общий макет, токены, шрифты и анимация приходят от Site-темы «Контур» (kontur.base.css, kontur.motion.js).
   Здесь только оформление магазина; разметка и скрипты магазина не затрагиваются. */
.s-store {
  --k-cols: 4; --k-ratio: 1 / 1;
  --c-text: var(--text-color); --c-heading: var(--text-color); --c-muted: var(--k-muted, #858585);
  --c-line: var(--k-line, rgba(127,127,127,.3)); --c-surface: var(--k-surface, #fff);
  --c-accent: var(--accent-color); --c-on-accent: var(--button-text-color, #fff);
  --radius: var(--element-border-radius, 0px);
  /* переменные штатного оформления заказа 2.0 */
  --wa-order-accent: var(--accent-color); --wa-order-border: var(--k-line-strong, #999); --wa-order-muted: var(--c-muted);
  --wa-order-radius: var(--element-border-radius, 0px);
}
.s-store h1, .s-store h2, .s-store h3 { font-family: var(--k-display, inherit); }
.s-store a { transition: opacity .2s, color .2s; }
.s-store .hint { color: var(--c-muted); }

/* кнопки */
.s-store .button, .s-store button.button {
  background: var(--c-accent); color: var(--c-on-accent); border: 1px solid var(--c-accent); border-radius: var(--radius);
  padding: 12px 26px; font-weight: 500; letter-spacing: .02em; box-shadow: none; text-shadow: none; text-decoration: none;
  display: inline-block; cursor: pointer; transition: background .2s, color .2s;
}
.s-store .button:hover, .s-store button.button:hover { background: transparent; color: var(--c-heading); }
.s-store .button.gray, .s-store .button.light-gray { background: transparent; color: var(--c-heading); border-color: var(--k-line-strong, var(--c-heading)); }
.s-store .button.gray:hover, .s-store .button.light-gray:hover { background: var(--c-accent); color: var(--c-on-accent); border-color: var(--c-accent); }
.s-store .button.large { padding: 16px 36px; }

/* поля */
.s-store input[type=text], .s-store input[type=search], .s-store input[type=number], .s-store input[type=email], .s-store input[type=tel], .s-store select, .s-store textarea {
  border: 1px solid var(--k-line-strong, var(--c-line)); border-radius: var(--radius); background: transparent; padding: 11px 14px; font: inherit; color: var(--c-text); box-shadow: none;
}
.s-store input:focus, .s-store select:focus, .s-store textarea:focus { border-color: var(--c-heading); outline: 0; }
.s-store-search { max-width: 36rem; margin-bottom: 20px; }
.s-store .breadcrumbs { font-size: 13px; color: var(--c-muted); margin: 0 0 20px; }

/* число товаров в корзине (в меню магазина) */
.s-cart-count:not(:empty) { background: var(--c-accent); color: var(--c-on-accent); border-radius: min(10px, var(--radius)); }

/* страница категории */
.s-category-head { margin-bottom: 8px; }
.s-description { max-width: 72ch; margin: 0 0 24px;  color: var(--c-text); }
.s-categories { gap: 8px; margin-bottom: 24px; }
.s-categories li a { display: inline-block; padding: 8px 16px; border: 1px solid var(--k-line-strong, var(--c-line)); border-radius: var(--radius); color: var(--c-heading); text-decoration: none; background: transparent; transition: background .2s, color .2s; }
.s-categories li a:hover { background: var(--c-accent); color: var(--c-on-accent); }

/* фильтр: компактная панель */
.s-filter { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 20px; gap: 14px 28px; align-items: flex-start; }
.s-filter-feature { border: 0; padding: 0; margin: 0; min-width: 0; max-height: none; background: transparent; }
.s-filter-feature input[type=number] { background: transparent; }
.s-filter-feature legend { font-weight: 500; color: var(--c-heading); padding: 0; margin-bottom: 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.s-filter-feature label { display: inline-flex; align-items: center; gap: 8px; margin: 0 16px 6px 0; white-space: normal; }
.s-filter-reset { color: var(--c-muted); align-self: center; margin-left: 4px; }
.s-sorting { margin: 0 0 20px; color: var(--c-muted); font-size: 14px; }
.s-sorting-label { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; }
.s-sorting-label select { min-height: 40px; max-width: 100%; min-width: 0; padding: 0 34px 0 14px; border: 1px solid var(--c-line); border-radius: var(--radius); background-color: var(--c-surface); color: var(--c-heading); font: inherit; cursor: pointer; }
.s-sorting-label select:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
@media (max-width: 560px) { .s-sorting-label { display: flex; } .s-sorting-label select { flex: 1 1 auto; } }
@media (pointer: coarse) { .s-sorting-label select { min-height: 46px; } }

/* карточки товаров */
.s-products { grid-template-columns: repeat(var(--k-cols), minmax(0, 1fr)); gap: var(--k-gap, 16px); margin-bottom: 48px; }
.s-product { background: var(--c-surface); gap: 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.s-product-image { background: var(--c-surface); border-radius: 0; aspect-ratio: var(--k-ratio); padding: 20px; display: grid; place-items: center; overflow: hidden; position: relative; }
.s-product-image img { transition: transform .6s var(--k-ease, ease); max-width: 100%; max-height: 100%; }
.s-product:hover .s-product-image img { transform: scale(1.04); }
.s-noimage { background: color-mix(in srgb, var(--c-text) 5%, transparent); border-radius: 0; }
.s-badge { position: absolute; left: 12px; top: 12px; background: var(--c-accent); color: var(--c-on-accent); font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 4px 8px; border-radius: min(4px, var(--radius)); }
.s-product-name { padding: 14px 16px 0; font-weight: 500; color: var(--c-heading); text-decoration: none; line-height: 1.35; }
.s-product-name:hover { opacity: .6; }
.s-product-rating { padding: 4px 16px 0; }
.s-product-price { padding: 8px 16px 18px; font-size: 1rem; font-weight: 600; color: var(--c-heading); font-variant-numeric: tabular-nums; margin-top: auto; }
.s-compare { opacity: .5; font-weight: 400; }
.s-out { padding: 0 16px 14px; color: var(--c-muted); font-size: 13px; }
.s-product.is-out .s-product-image img { opacity: .45; filter: grayscale(1); }
.s-paging { margin: 8px 0 48px; }
.s-paging a, .s-paging li { border-radius: var(--radius); }

/* карточка товара */
.s-product-page { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 56px; align-items: start; margin-bottom: 48px; }
.s-product-page > h1, .s-product-page > .s-product-nav { grid-column: 1 / -1; }
.s-gallery { background: var(--c-surface); padding: 28px; border-radius: var(--radius); }
.s-product-page.is-sticky .s-gallery { position: sticky; top: calc(var(--k-header-h, 64px) + 24px); }
.s-main-image { border-radius: 0; display: block; margin: 0 auto; max-height: 620px; width: auto; max-width: 100%; }
.s-thumbs { margin-top: 16px; }
.s-thumbs img { border-radius: 0; border: 1px solid var(--c-line); width: 72px; height: 72px; object-fit: contain; background: var(--c-surface); transition: border-color .2s; }
.s-thumbs a:hover img { border-color: var(--c-heading); }
.s-info { padding-top: 4px; }
.s-sku-code { margin: 0 0 12px; font-size: 13px; }
.s-summary { max-width: 56ch; line-height: 1.6; }
.s-price { font-family: var(--k-display, inherit); font-size: 2rem; font-weight: 500; color: var(--c-heading); margin: 22px 0; letter-spacing: -.02em; }
.s-skus { margin: 16px 0; gap: 8px; }
.s-sku { display: block; padding: 12px 16px; border: 1px solid var(--k-line-strong, var(--c-line)); border-radius: var(--radius); background: transparent; cursor: pointer; transition: border-color .2s, background .2s; }
.s-sku:hover, .s-sku:has(input:checked) { border-color: var(--c-heading); background: var(--c-surface); }
.s-qty { width: 5rem; text-align: center; margin-right: 10px; }
.s-add2cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.s-add2cart .s-skus, .s-add2cart .s-price { flex: 0 0 100%; }
.s-note { margin: 16px 0 0; padding: 12px 16px; border-left: 2px solid var(--c-heading); background: var(--c-surface); font-size: 14px; line-height: 1.5; }
.s-features { width: 100%; margin-top: 32px; border-collapse: collapse; }
.s-features td { padding: 12px 12px 12px 0; border: 0; border-top: 1px solid var(--c-line); vertical-align: top; }
.s-features td:first-child { color: var(--c-muted); opacity: 1; width: 46%; }
.s-description { line-height: 1.65; }
.s-reviews { margin-top: 48px; }

/* корзина: товары слева, итог справа */
.s-cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.s-cart-main { min-width: 0; }
.s-cart-table { width: 100%; border-collapse: collapse; }
.s-cart-table td { border: 0; border-bottom: 1px solid var(--c-line); padding: 16px 10px 16px 0; vertical-align: middle; }
.s-cart-thumb { width: 84px; }
.s-cart-thumb img { width: 72px; height: 72px; object-fit: contain; background: var(--c-surface); display: block; }
.s-cart-name a { color: var(--c-heading); text-decoration: none; font-weight: 500; }
.s-cart-name a:hover { opacity: .6; }
.js-remove { color: var(--c-muted); text-decoration: none; }
.js-remove:hover { color: var(--c-heading); }
.s-cart-side { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px; position: sticky; top: calc(var(--k-header-h, 64px) + 24px); }
.s-cart-side .s-coupon { margin: 0 0 20px; }
.s-cart-side .s-coupon input { flex: 1; min-width: 0; }
.s-totals { margin: 0 0 20px; line-height: 1.8; }
.s-total { font-family: var(--k-display, inherit); font-size: 1.6rem; font-weight: 500; color: var(--c-heading); letter-spacing: -.02em; }
.s-cart-side .button.large { width: 100%; text-align: center; }
.s-cart-empty { margin: 72px 0; text-align: center; }
.s-cart-empty p { margin: 0 0 20px; font-size: 1.1rem; }
.s-error { color: #c0392b; }

/* оформление: штатные блоки приложения (checkout 2.0) и пошаговое (1.0) */
.s-order-page { gap: 40px; }
.s-order-note { max-width: 70ch; padding: 12px 16px; border-left: 2px solid var(--c-heading); background: var(--c-surface); margin: 0 0 24px; }
.s-order-section h2 { font-size: 1.4rem; }
.wa-order-cart-wrapper, .wa-order-form-wrapper { font-family: inherit; }
.wa-submit-button, .wa-order-form-wrapper button[type=submit] { border-radius: var(--radius); }
.s-method, .s-checkout-side { border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); transition: border-color .2s; }
.s-method:hover { border-color: var(--c-heading); }
.s-checkout-legacy .s-checkout-step { border-top: 1px solid var(--c-line); padding: 18px 0; }
.s-checkout-legacy .s-step-header { font-size: 1.1rem; margin: 0; opacity: .45; }
.s-checkout-legacy .is-current .s-step-header, .s-checkout-legacy .is-done .s-step-header { opacity: 1; }
.s-checkout-legacy .is-done .s-step-header a { color: var(--c-heading); }
.s-checkout-legacy .s-checkout-form { margin-top: 16px; }
.s-checkout-success { max-width: 60ch; }
.s-thankyou { line-height: 1.65; font-size: 1.05rem; }

/* личный кабинет */
.s-my-nav a { color: var(--c-heading); }
.s-my-orders th, .s-my-orders td { border-bottom-color: var(--c-line); }

/* ---------- главная ---------- */
.k-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: stretch; margin: 8px 0; }
.k-hero--single { grid-template-columns: 1fr; }
.k-hero--single .k-hero-copy { padding: 8vh 0; max-width: 60rem; }
.k-hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 16px 0; }
.k-hero-copy h1 { margin: 0; font-size: clamp(2.4rem, 5.6vw, 4.8rem); }
.k-eyebrow { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.k-lead { margin: 0; max-width: 46ch; font-size: 1.1rem; line-height: 1.6; }
.k-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.k-stage { background: var(--c-surface); display: grid; place-items: center; position: relative; min-height: 380px; padding: 28px; overflow: hidden; text-decoration: none; border-radius: var(--radius); }
.k-stage img { max-width: 100%; max-height: 460px; object-fit: contain; transition: transform .8s var(--k-ease, ease); will-change: transform; }
.k-stage:hover img { transform: scale(1.03); }
.k-stage-cap { position: absolute; left: 20px; bottom: 16px; font-size: 13px; color: var(--c-muted); }
.k-section { margin-top: 72px; }
.k-section > h2 { margin: 0 0 24px; }
.k-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; gap: var(--k-gap, 16px); }
.k-tile { background: var(--c-surface); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; color: var(--c-heading); border-radius: var(--radius); transition: background .25s, color .25s; }
.k-tile:hover { background: var(--c-accent); color: var(--c-on-accent); }
.k-tile:hover .k-tile-count { color: inherit; opacity: .7; }
.k-tile--big { grid-column: span 2; grid-row: span 2; }
.k-tile-name { font-family: var(--k-display, inherit); font-weight: 500; font-size: 1.15rem; letter-spacing: -.01em; }
.k-tile--big .k-tile-name { font-size: 1.9rem; }
.k-tile-count { font-size: 13px; color: var(--c-muted); }

@media (max-width: 1100px) { .s-products { grid-template-columns: repeat(min(var(--k-cols), 3), minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .k-hero { grid-template-columns: 1fr; }
  .k-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .s-product-page { grid-template-columns: 1fr; }
  .s-product-page.is-sticky .s-gallery { position: static; }
  .s-cart-layout { grid-template-columns: 1fr; }
  .s-cart-side { position: static; }
  .s-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .s-products { gap: 10px; }
  .s-product-name, .s-product-price, .s-product-rating { padding-left: 12px; padding-right: 12px; }
  .s-product-image { padding: 12px; }
  .k-tile--big { grid-column: span 2; grid-row: span 1; }
  .s-cart-thumb { display: none; }
}

/* 0.2.1: color swatches (finishes), category tile pictures, reduced motion */
.k-swatch { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--c-line); vertical-align: -4px; margin-right: 6px; background-size: cover; background-position: center; flex: none; }
.k-swatch-item { display: inline-flex; align-items: center; margin-right: 4px; }
.s-filter-feature label .k-swatch { margin-right: 0; }
.k-tile--img { position: relative; overflow: hidden; color: #fff; }
.k-tile--img .k-tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.k-tile--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 60%); z-index: 1; }
.k-tile--img .k-tile-name, .k-tile--img .k-tile-count { position: relative; z-index: 2; color: #fff; }
.k-tile--img:hover { color: #fff; }
.s-category-image img, .rshop-category-image img { display: block; max-width: 100%; height: auto; }
.rshop-category-image { margin: 0 0 24px; }
@media (prefers-reduced-motion: reduce) { .k-tile, .k-tile * , .s-product, .s-product * { transition: none !important; animation: none !important; } }

/* subcategories as tiles */
.k-subcats { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--k-gap, 16px); }
.k-subcat { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--c-heading); background: var(--c-surface); border-radius: var(--radius); padding: 16px; transition: background .25s, color .25s; }
.k-subcat img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: calc(var(--radius) / 2); display: block; }
.k-subcat span { font-weight: 500; }
.k-subcat:hover { background: var(--c-accent); color: var(--c-on-accent); }

/* slider of promo banners (Marketing -> Promos) */
.k-slider { position: relative; margin: 0 0 56px; border-radius: var(--radius); overflow: hidden; --k-slider-h: 440px; }
.k-slider--s { --k-slider-h: 320px; } .k-slider--l { --k-slider-h: 580px; }
.k-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.k-slides::-webkit-scrollbar { display: none; }
.k-slide { position: relative; flex: 0 0 100%; min-height: var(--k-slider-h); scroll-snap-align: start; display: flex; align-items: center; }
.k-slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k-slide-copy { position: relative; z-index: 2; max-width: 560px; padding: 40px 64px; }
.k-slide-copy h2 { margin: 0 0 12px; font-family: var(--k-display, inherit); font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 3rem); line-height: 1.08; letter-spacing: -.02em; color: inherit; }
.k-slide-copy p { margin: 0 0 22px; font-size: 1.05rem; color: inherit; opacity: .9; }
.k-slide-link { position: absolute; inset: 0; z-index: 1; }
.k-slider-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #000; font-size: 20px; line-height: 1; cursor: pointer; padding: 0; }
.k-slider-nav:hover { background: #fff; } .k-slider-prev { left: 16px; } .k-slider-next { right: 16px; }
.k-slider-dots { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.k-slider-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; }
.k-slider-dot.is-active { background: #fff; transform: scale(1.25); }
@media (max-width: 720px) { .k-slider { --k-slider-h: 300px; } .k-slider--l { --k-slider-h: 380px; } .k-slide-copy { padding: 24px 28px 48px; max-width: none; } .k-slider-nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .k-slides { scroll-behavior: auto; } }

/* 0.3.0: вид каталога, SEO-блок категории, вкладки товара */
.k-viewswitch { display: flex; gap: 4px; justify-content: flex-end; margin: 0 0 16px; }
.k-viewswitch a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--c-line); border-radius: var(--element-border-radius, 4px); color: var(--c-muted); transition: color .2s, border-color .2s, background .2s; }
.k-viewswitch a:hover { color: var(--c-text); border-color: var(--c-text); }
.k-viewswitch a.is-active { color: var(--bg-color, #fff); background: var(--c-text); border-color: var(--c-text); }
.s-products.is-list { grid-template-columns: 1fr; gap: 0; }
.s-products.is-list .s-product { display: grid; grid-template-columns: 140px 1fr auto; grid-template-areas: "img name price" "img rating price" "img out price"; column-gap: 24px; align-items: center; padding: 16px 0; border-top: 1px solid var(--c-line); }
.s-products.is-list .s-product:last-child { border-bottom: 1px solid var(--c-line); }
.s-products.is-list .s-product-image { grid-area: img; }
.s-products.is-list .s-product-name { grid-area: name; align-self: end; }
.s-products.is-list .s-product-rating { grid-area: rating; }
.s-products.is-list .s-out { grid-area: out; }
.s-products.is-list .s-product-price { grid-area: price; text-align: right; white-space: nowrap; }
@media (max-width: 600px) { .s-products.is-list .s-product { grid-template-columns: 96px 1fr; grid-template-areas: "img name" "img rating" "img price" "img out"; column-gap: 14px; } .s-products.is-list .s-product-price { text-align: left; } }

.k-seo { margin: 8px 0 56px; padding-top: 32px; border-top: 1px solid var(--c-line); }
.k-seo-h { font-family: var(--k-display, inherit); font-size: 20px; font-weight: 600; margin: 32px 0 12px; }
.k-faq details { border-top: 1px solid var(--c-line); padding: 14px 0; }
.k-faq details:last-child { border-bottom: 1px solid var(--c-line); }
.k-faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.k-faq summary::-webkit-details-marker { display: none; }
.k-faq summary::after { content: "+"; color: var(--c-muted); transition: transform .2s; }
.k-faq details[open] summary::after { transform: rotate(45deg); }
.k-faq-a { margin-top: 10px; max-width: 72ch; line-height: 1.65; color: var(--c-muted); }
.k-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; padding: 24px 28px; border: 1px solid var(--c-line); }
.k-cta-text { font-size: 17px; max-width: 60ch; }
@media (max-width: 600px) { .k-cta { flex-direction: column; align-items: flex-start; } }

.k-tabs { margin: 56px 0; }
.k-tablist { display: flex; gap: 28px; border-bottom: 1px solid var(--c-line); margin-bottom: 28px; overflow-x: auto; }
.k-tablist button { position: relative; background: none; border: 0; padding: 0 0 14px; font: inherit; font-size: 15px; color: var(--c-muted); cursor: pointer; white-space: nowrap; }
.k-tablist button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--c-text); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.k-tablist button:hover { color: var(--c-text); }
.k-tablist button.is-active { color: var(--c-text); }
.k-tablist button.is-active::after { transform: scaleX(1); }
.k-tabs.is-ready .k-tabpanel { display: none; }
.k-tabs.is-ready .k-tabpanel.is-active { display: block; }
.k-tabs:not(.is-ready) .k-tablist { display: none; }
.k-tabs:not(.is-ready) .k-tabpanel { margin-bottom: 32px; }
@media (prefers-reduced-motion: reduce) { .k-tablist button::after { transition: none; } }
.k-tabpanel .s-features { margin-top: 0; }

/* 0.3.1: блок «Доставка и оплата» (функция магазина), кнопка быстрого заказа */
.s-delivery-info { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--c-line); display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }
.s-delivery-info .s-di-title { grid-column: 1 / -1; font-family: var(--k-display, inherit); font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.s-delivery-info h3 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); font-weight: 500; margin: 0 0 8px; }
.s-delivery-info p { margin: 0 0 8px; line-height: 1.55; font-size: 14px; }
.s-di-methods { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.s-di-methods li { font-size: 14px; line-height: 1.45; }
.s-di-methods strong { display: block; font-weight: 500; }
.s-di-methods span { color: var(--c-muted); }
@media (max-width: 700px) { .s-delivery-info { grid-template-columns: 1fr; } }
.s-product .qb-open { width: 100%; margin: 8px 0 0; }

/* Бренды */
.k-brands, .k-brand-collections { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.k-brand a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 16px; border: 1px solid #e3e3e3; border-radius: 8px; text-decoration: none; min-width: 140px; }
.k-brand img { max-width: 120px; max-height: 60px; width: auto; height: auto; }
.k-brand-logo { max-height: 56px; width: auto; margin: 0 0 8px; display: block; }
.k-brand-banner { display: block; max-width: 100%; height: auto; margin: 0 0 20px; border-radius: 8px; }


/* focus: visible ring for keyboard users */
.s-store a:focus-visible, .s-store button:focus-visible, .s-store input:focus-visible, .s-store select:focus-visible, .s-store textarea:focus-visible,
.k-home a:focus-visible, .k-home button:focus-visible { outline: 2px solid var(--c-heading, #1a1a1a); outline-offset: 2px; }
.s-compare-btn { margin: 8px 0 0 8px; padding: 6px 12px; border: 1px solid #c9ced6; border-radius: 6px; background: transparent; cursor: pointer; font: inherit; font-size: .9em; }
.s-compare-btn[aria-pressed="true"] { background: var(--c-heading, #1a1a1a); color: #fff; border-color: var(--c-heading, #1a1a1a); }
.s-compare-count:not(:empty)::before { content: "("; } .s-compare-count:not(:empty)::after { content: ")"; }
.s-options { display: grid; gap: 10px; margin: 0 0 14px; }
.s-option { display: grid; gap: 4px; }
.s-option-name { font-size: .9em; color: #6b7280; }
.s-option select { max-width: 320px; padding: 8px 10px; border: 1px solid #c9ced6; border-radius: 6px; font: inherit; }

/* наличие в карточке товара */
.s-avail { margin: 0 0 12px; font-size: 14px; }
.s-avail-t { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--c-heading); }
.s-avail-t::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.s-avail--in .s-avail-t { color: #1f8a4c; }
.s-avail--order .s-avail-t { color: #b7791f; }
.s-avail--out .s-avail-t { color: var(--c-muted); }
.s-avail-low { color: var(--c-muted); margin-left: 6px; }
.s-avail-note { display: block; margin-top: 4px; color: var(--c-muted); }

/* visually hidden text (kept for search engines and screen readers) */
.k-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.k-slider-pause { position: absolute; right: 16px; bottom: 12px; z-index: 3; min-width: 36px; height: 28px; padding: 0 8px; border: 0; border-radius: 14px; background: rgba(255,255,255,.85); color: #111; font-size: 10px; letter-spacing: 1px; cursor: pointer; }
.k-slider-pause:hover { background: #fff; }

.k-trust ul { list-style: none; margin: 24px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.k-trust li > *, .k-trust li { display: block; }
.k-trust li { padding: 14px 16px; border: 1px solid var(--k-line, rgba(0,0,0,.12)); border-radius: var(--radius, 0); }
.k-trust a { color: inherit; text-decoration: none; }
.k-trust b { display: block; font-size: 15px; }
.k-trust span { display: block; margin-top: 4px; font-size: 13px; opacity: .7; }

.k-key { list-style: none; margin: 12px 0 16px; padding: 0; font-size: 14px; }
.k-key li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--k-line, rgba(0,0,0,.1)); }
.k-key li span { opacity: .65; }
.k-key li b { font-weight: 500; text-align: right; }
.k-ptrust { list-style: none; margin: 14px 0; padding: 0; font-size: 13px; }
.k-ptrust li { padding: 3px 0 3px 20px; position: relative; }
.k-ptrust li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; }
.s-product-page.is-sticky .s-info { position: sticky; top: calc(var(--k-header-h, 64px) + 24px); align-self: start; }
.k-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 990; display: none; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--k-line-strong, #999); transform: translateY(110%); transition: transform .2s ease; }
.k-buybar.is-on { transform: none; }
.k-buybar .k-bb-price { font-weight: 700; font-size: 17px; flex: 1; white-space: nowrap; }
.k-buybar .button { flex: 1.4; margin: 0; }
@media (max-width: 760px) { .k-buybar { display: flex; } body.has-buybar { padding-bottom: 72px; } }
@media (prefers-reduced-motion: reduce) { .k-buybar { transition: none; } }
@media (max-width: 900px) { .s-product-page.is-sticky .s-info { position: static; } }

/* mobile 0.7 (M1) */
.k-slider-dot { position: relative; }
.k-slider-dot::after, .k-slider-pause::after { content: ""; position: absolute; inset: -17px -8px; }
@media (max-width: 760px) {
  .k-slider-pause { min-width: 44px; min-height: 44px; }
  .s-filter-reset, .s-filter label, .s-filters label { display: inline-flex; align-items: center; min-height: 44px; }
  .s-filters input[type=checkbox], .s-filter input[type=checkbox] { width: 22px; height: 22px; }
  .s-product-name { display: inline-block; padding: 6px 0; }
  .s-store-search input, .s-store-search button { min-height: 44px; }
}
@media (max-width: 760px) { .breadcrumbs a, .s-product-nav a { display: inline-flex; align-items: center; min-height: 44px; } }

/* filters 0.7 (M3): chips, bottom sheet on phones */
.k-ftoolbar, .k-fsheet-head { display: none; }
.k-chips { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.k-chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 1px solid var(--c-line); border-radius: 999px; color: var(--c-text); text-decoration: none; font-size: 14px; background: var(--c-surface); }
.k-chips a span { font-size: 18px; line-height: 1; }
.k-chips-reset a { border-color: transparent; background: none; text-decoration: underline; }
@media (max-width: 760px) {
  .k-ftoolbar { display: flex; margin-bottom: 12px; }
  .k-ftoggle { flex: 1; min-height: 48px; }
  .k-chips a { min-height: 44px; }
  .s-filter[data-k-filters] { display: none; }
  .s-filter[data-k-filters].is-sheet-open { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; position: fixed; inset: 0; z-index: 10000; margin: 0; border: 0; border-radius: 0; background: #fff; overflow-y: auto; padding: 0 16px 96px; }
  .k-fsheet-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: #fff; min-height: 56px; margin: 0 -16px 8px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--c-line); z-index: 1; }
  .k-fsheet-close { width: 44px; height: 44px; border: 0; background: none; font-size: 32px; line-height: 1; color: #111; }
  .k-fsheet-foot { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 12px; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--c-line); }
  .k-fsheet-foot .button { flex: 1; min-height: 48px; margin: 0; }
  .s-filter-feature { padding: 12px 0; border-bottom: 1px solid var(--c-line); width: 100%; }
}
@media (max-width: 760px) { .k-fsheet-close { display: inline-flex; align-items: center; justify-content: center; padding: 0; } }

/* checkout 0.7 (M4): focused page, readable totals, theme button */
body:has(.js-submit-order-button) .s-store-search, body:has(.js-submit-order-button) .k-hsearch, body:has(.js-submit-order-button) .k-topbar { display: none; }
.wa-totals .wa-total-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: nowrap; }
.wa-totals .wa-total-row > :last-child { white-space: nowrap; }
.wa-totals .wa-total-row.wa-total { font-size: 20px; line-height: 1.25; }
.wa-submit-button.wa-button { background: var(--c-accent, #111); color: var(--c-on-accent, #fff); border: 0; border-radius: var(--radius, 0); min-height: 52px; font-size: 16px; font-weight: 600; width: 100%; }
@media (min-width: 761px) { .wa-submit-button.wa-button { width: auto; min-width: 280px; } }

/* documents and installation (module documents.html) */
.k-docs{margin:var(--k-gap-lg,32px) 0}
.k-docs-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px 28px}
.k-docs-h{font-size:.95rem;margin:0 0 6px;opacity:.7;font-weight:600}
.k-docs ul{list-style:none;margin:0;padding:0}
.k-docs li{padding:8px 0;border-bottom:1px solid var(--k-line,rgba(0,0,0,.1));min-height:44px;display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px}
.k-docs-meta{font-size:.8rem;opacity:.6}

/* buy row: availability on its own line, [stepper] [buy] [quick buy] */
.s-add2cart .s-avail, .s-add2cart .s-msg, .s-add2cart .k-ptrust { flex: 0 0 100%; margin-bottom: 0 }
.s-add2cart .s-avail { margin-bottom: 4px }
.s-add2cart .s-qty { margin-right: 0 }
.s-add2cart .button.large {   text-align: center }
.s-add2cart .qb-open {  background: transparent; border: 1px solid currentColor; color: inherit;  padding: 0 20px }
.s-add2cart .s-compare-btn { margin: 0 }
@media (max-width: 760px) {
  .s-add2cart .button.large { flex: 1 1 0; min-width: 0 }
  .s-add2cart .qb-open { flex: 0 0 100% }
}
/* quantity stepper (kontur.store.js wraps input.s-qty) */
.k-step { display: inline-flex; align-items: stretch; border: 1px solid var(--c-line, #c9ced6); background: #fff; height: 52px }
.k-step .s-qty { width: 3.2rem; height: auto; border: 0; border-radius: 0; text-align: center; padding: 0; margin: 0; -moz-appearance: textfield; appearance: textfield; background: transparent; box-shadow: none }
.k-step .s-qty::-webkit-outer-spin-button, .k-step .s-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0 }
.k-step-b { width: 44px; border: 0; background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center }
.k-step-b:hover { background: rgba(0,0,0,.06) }
.k-step-b:focus-visible { outline: 2px solid currentColor; outline-offset: -2px }
.s-cart .k-step, table .k-step { height: 44px }
/* group title is redundant when the link says the same */
.k-docs-group--same .k-docs-h { display: none }
.s-add2cart .k-step .s-qty, .k-step input.s-qty { border: 0 !important; box-shadow: none !important; outline: 0 }
.k-step:focus-within { outline: 2px solid currentColor; outline-offset: 1px }

/* product information: tabs / collapsed sections / flow */
.k-key-link{display:inline-block;margin-top:8px;font-size:.9rem}
.k-info{margin:48px 0}
.k-info--sections .k-sec{border-top:1px solid var(--c-line,#c9ced6)}
.k-info--sections .k-sec:last-child{border-bottom:1px solid var(--c-line,#c9ced6)}
.k-info--sections summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;min-height:56px;padding:12px 0;font-size:1.15rem;font-weight:500}
.k-info--sections summary::-webkit-details-marker{display:none}
.k-info--sections summary::after{content:"+";font-size:1.4rem;line-height:1;opacity:.7}
.k-info--sections details[open] summary::after{content:"\2212"}
.k-info--sections .k-sec-body{padding:0 0 24px}
.k-sec-flow{margin:0 0 40px}
.k-tabpanel .k-docs,.k-sec-body .k-docs{margin:0}
/* drawing inside a section: moderate size, click for full screen */
.k-drawing{margin:0}
.k-drawing-open{position:relative;display:block;width:100%;max-width:760px;padding:12px;margin:0;border:1px solid var(--c-line,#c9ced6);background:#fff;cursor:zoom-in;color:inherit}
.k-drawing-open img{display:block;width:100%;max-height:420px;height:auto;object-fit:contain;margin:0 auto}
.k-drawing-zoom{position:absolute;right:10px;bottom:10px;padding:6px 12px;background:#000;color:#fff;font-size:.8rem}
.k-drawing-dl{margin:10px 0 0}
.k-drawing-dl a{min-height:44px;display:inline-flex;align-items:center}
.k-dlg{border:0;padding:0;width:100vw;height:100vh;max-width:none;max-height:none;background:#fff}
.k-dlg::backdrop{background:rgba(0,0,0,.7)}
.k-dlg-bar{position:fixed;top:0;left:0;right:0;z-index:2;display:flex;justify-content:flex-end;gap:8px;padding:8px;background:rgba(255,255,255,.95)}
.k-dlg-bar button{min-width:44px;min-height:44px;border:1px solid #c9ced6;background:#fff;color:#000;font-size:18px;cursor:pointer}
.k-dlg-view{position:absolute;inset:0;overflow:auto;touch-action:pan-x pan-y pinch-zoom;-webkit-overflow-scrolling:touch;padding:64px 12px 12px}
.k-dlg-view img{display:block;width:100%;max-width:none;height:auto;margin:0 auto;transition:width .15s}
@media (max-width:760px){.k-drawing-open{padding:8px}.k-drawing-open img{max-height:none}.k-info{margin:32px 0}}

/* product page, desktop: three zones as on Amazon (gallery | title, options, key features | buy box) */
.k-buy { display: contents }
.s-product-page > h1 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.15; margin-bottom: 16px }
.s-store .s-product-page > h1 { font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1.15; margin: 0 0 20px }
@media (max-width: 760px) { .k-tablist { flex-wrap: wrap; gap: 4px 20px; overflow: visible } .k-tablist button { padding-bottom: 10px; min-height: 44px } }
/* the buy block is one width: the row [- 1 +][В корзину] and "Купить в 1 клик" end at the same edge */
.s-add2cart { max-width: 482px }
.s-add2cart .qb-open { flex: 1 1 100%; width: 100%; box-sizing: border-box; min-height: 48px }
.s-add2cart .button.large { flex: 1 1 200px; min-width: 0 }

/* catalog, desktop: filters in a left column, products on the right */
.k-catlayout { display: block }
@media (min-width: 900px) {
  .k-catlayout.has-side { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 0 40px; align-items: start }
  .k-catside { position: sticky; top: calc(var(--k-header-h, 64px) + 24px); max-height: calc(100vh - var(--k-header-h, 64px) - 48px); overflow: auto }
  .k-catside .s-filter[data-k-filters] { display: block; padding: 0; margin: 0; border: 0; background: transparent }
  .k-catside .s-filter-feature { padding: 16px 0; border-top: 1px solid var(--c-line); margin: 0 }
  .k-catside .s-filter-feature:first-of-type { border-top: 0; padding-top: 0 }
  .k-catside .s-filter-feature label { display: flex; margin: 0 0 8px; min-height: 28px }
  .k-catside .s-filter-feature input[type=number] { width: 48%; box-sizing: border-box }
  .k-catside .k-fsheet-foot { position: static; display: flex; gap: 12px; align-items: center; padding: 16px 0 0; border-top: 1px solid var(--c-line); background: transparent; box-shadow: none }
  .k-catside .k-fsheet-foot .button { flex: 0 0 auto }
  .k-catlayout.has-side .s-products { grid-template-columns: repeat(min(var(--k-cols), 3), minmax(0, 1fr)) }
}
@media (min-width: 900px) {
  .k-catside .k-fsheet-foot { flex-wrap: wrap }
  .k-catside .k-fsheet-foot .button { flex: 1 1 100% }
  .k-catside .s-filter-avail legend { width: auto }
  .k-catside .s-filter-avail { border-top: 1px solid var(--c-line) }
}
@media (max-width: 760px) {
  .s-product .button, .s-product button[type=submit], .s-product .s-product-buy a { height: auto; min-height: 44px; white-space: normal; line-height: 1.2; padding: 10px 8px; overflow: visible }
}

/* specs + drawing in one tab (kontur2) */
.k-specs--2 { display: grid; gap: 28px; align-items: start; }
.k-specs-d .k-drawing { margin: 0; }
.k-grp td { padding: 18px 0 6px !important; font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; border: 0 !important; }
@media (min-width: 900px) { .k-specs--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } .k-specs-d { position: sticky; top: 90px; } }

/* availability line of a catalog tile (kontur2) */
.s-status { display: flex; align-items: center; gap: 6px; padding: 14px 16px 0; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.s-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-status--in { color: #2f7d4f; }
.s-product .s-product-name { padding-top: 6px; }
.s-products.is-list .s-status { grid-area: auto; padding: 0; }
@media (max-width: 760px) { .s-status { padding: 10px 12px 0; } }

/* brand line (kontur2) */
.k-brand { display: inline-block; margin: 0 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); text-decoration: none; }
.k-brand:hover { color: var(--c-text); }
.s-brand { display: block; padding: 4px 16px 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); text-decoration: none; }
.s-brand:hover { color: var(--c-text); }
.s-brand + .s-product-name { padding-top: 2px; }
@media (max-width: 760px) { .s-brand { padding: 4px 12px 0; } }

/* colour swatches for variants (kontur2) */
.s-option.has-sw { display: block; }
.s-option.has-sw select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.k-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.k-swb { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); padding: 0; cursor: pointer; background-clip: padding-box; box-shadow: inset 0 0 0 3px #fff; transition: box-shadow .15s, border-color .15s; }
.k-swb:hover { border-color: var(--c-text); }
.k-swb.is-active { border-color: var(--c-text); box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--c-text); }
.k-swb:disabled { opacity: .35; cursor: not-allowed; }

/* colour dots in a catalog tile (kontur2) */
.s-dots { display: flex; align-items: center; gap: 5px; padding: 8px 16px 0; }
.s-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); display: inline-block; }
.s-dots-more { font-size: 11px; color: var(--c-muted); margin-left: 2px; }
@media (max-width: 760px) { .s-dots { padding: 6px 12px 0; } }

/* 0.9.1: no double layers (the site theme is the single switch for header search and the bottom bar) */
html[data-k-hsearch="1"] .s-store-search { display: none; }
@media (max-width: 760px) {
  body:has(.k-bbar) .k-buybar { bottom: calc(56px + env(safe-area-inset-bottom)); padding-bottom: 10px; }
  body:has(.k-bbar).has-buybar { padding-bottom: 136px; }
}

/* ===== list-view fix 2026-11-27 (исправление компоновки кнопок/строки; сетку не трогает) ===== */
.s-products.is-list .s-product {
  grid-template-columns: 140px 1fr auto;
  grid-template-areas: "img name price" "img meta price" "img out buy";
}
.s-products.is-list .s-product-name { grid-area: name; align-self: end; }
.s-products.is-list .s-status { grid-area: meta; padding: 0; align-self: start; }
.s-products.is-list .s-product-rating { grid-area: meta; align-self: start; }
.s-products.is-list .s-product-price { grid-area: price; align-self: start; }
.s-products.is-list .s-list-buy,
.s-products.is-list .s-list-choose { grid-area: out; justify-self: start; align-self: center; }
.s-products.is-list .s-list-buy { display: inline-flex; align-items: center; gap: 8px; width: auto; }
.s-products.is-list .s-list-buy .s-qty { width: 4.5rem; }
.s-products.is-list .s-list-buy .button { flex: 0 0 auto; padding: 0 24px; }
.s-products.is-list .s-list-choose { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 28px; white-space: nowrap; width: auto; min-width: 200px; }
.s-products.is-list .qb-place-list, .s-products.is-list .qb-place-product { grid-area: buy; justify-self: end; align-self: center; height: 48px; min-width: 170px; padding: 0 20px; margin: 0 !important; white-space: nowrap; border: 1px solid var(--c-line); background: transparent; box-sizing: border-box; }
@media (max-width: 600px) {
  .s-products.is-list .s-product { grid-template-columns: 96px 1fr; grid-template-areas: "img name" "img meta" "img price" "img out" "img buy"; }
  .s-products.is-list .s-product-price { text-align: left; }
  .s-products.is-list .qb-place-list, .s-products.is-list .qb-place-product { justify-self: start; margin: 0 !important; }
}
/* ===== /list-view fix ===== */
