/* ═══════════════════════════════════════════════════════════════════
   NKG_DESKTOP · полная версия витрины и кабинета для компьютера
   (октябрь 2026)

   Работает только когда на <html> стоит класс nkd. Его ставит ранний
   скрипт в index.php и profile.php, если экран от 1024 px и это
   компьютер с мышью. На телефоне, планшете и в Telegram класса нет,
   и ни одно правило этого файла не срабатывает: мобильная версия
   остаётся ровно такой, какая есть.

   Цвета и шрифты не зашиты: всё берётся из дизайна магазина через
   переменные, которые ставит script.js (--bg-color, --text-color,
   --btn-bg-color, --font-family и остальные). Свои переменные --nkd-*
   только пересчитывают их в оттенки для линий и подписей.
   ═══════════════════════════════════════════════════════════════════ */

html.nkd {
    --nkd-w: 1320px;
    --nkd-g: 32px;
    --nkd-ink: var(--text-color, #141416);
    --nkd-bg: var(--bg-color, #ffffff);
    --nkd-mute: color-mix(in srgb, var(--nkd-ink) 56%, var(--nkd-bg));
    --nkd-faint: color-mix(in srgb, var(--nkd-ink) 34%, var(--nkd-bg));
    --nkd-line: color-mix(in srgb, var(--nkd-ink) 10%, var(--nkd-bg));
    --nkd-soft: color-mix(in srgb, var(--nkd-ink) 4.5%, var(--nkd-bg));
    --nkd-soft2: color-mix(in srgb, var(--nkd-ink) 8%, var(--nkd-bg));
    --nkd-acc: var(--btn-bg-color, var(--nkd-ink));
    --nkd-on-acc: var(--btn-text-color, var(--nkd-bg));
    --nkd-font: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    --nkd-logo-font: var(--tg-stories-title-font, var(--header-font, var(--nkd-font)));
    --nkd-r: 18px;
    --nkd-head-h: 0px;
}
@media (max-width: 1279px) { html.nkd { --nkd-g: 24px; } }

/* ── Общий каркас ───────────────────────────────────────────────── */
html.nkd body { min-width: 1024px; }
html.nkd body.loaded { scroll-padding-top: calc(var(--nkd-head-h) + 16px); }
html.nkd #bottomNav,
html.nkd .bottom-nav,
html.nkd .pwa-powered-by,
html.nkd #shopClosedBanner,
html.nkd #emailBanner,
html.nkd .upsell-popup,
html.nkd .snowflakes-catalog { display: none !important; }
html.nkd ::selection { background: color-mix(in srgb, var(--nkd-acc) 22%, transparent); }
html.nkd button,
html.nkd [onclick] { cursor: pointer; }
/* «вдавливание» карточек и кнопок мышкой не нужно, на телефоне оно остаётся */
html.nkd .product-card:active,
html.nkd .story-card:active { transform: none; }

/* до загрузки витрины шапку не показываем, как и остальной каталог */
html.nkd body:not(.loaded) .nkd-top,
html.nkd body:not(.loaded) .nkd-head { visibility: hidden; }

/* ── Верхняя строка: режим работы ───────────────────────────────── */
.nkd-top { display: none; }
html.nkd .nkd-top {
    display: block;
    background: var(--nkd-bg);
    border-bottom: 1px solid var(--nkd-line);
    font-family: var(--nkd-font);
    color: var(--nkd-mute);
    font-size: 13px;
    position: relative;
    z-index: 60;
}
html.nkd .nkd-top-in {
    max-width: var(--nkd-w); margin: 0 auto; padding: 9px var(--nkd-g);
    display: flex; align-items: center; gap: 14px; min-height: 42px;
}
html.nkd .nkd-st {
    display: inline-flex; align-items: center; gap: 7px; flex: none;
    padding: 5px 11px; border-radius: 99px; font-weight: 700; font-size: 12.5px;
    background: color-mix(in srgb, #16a34a 11%, var(--nkd-bg)); color: #15803d;
}
html.nkd .nkd-st i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: block; }
html.nkd .nkd-st.off { background: color-mix(in srgb, #d97706 13%, var(--nkd-bg)); color: #b45309; }
html.nkd .nkd-st.stop { background: color-mix(in srgb, #dc2626 11%, var(--nkd-bg)); color: #b91c1c; }
html.nkd .nkd-top-msg { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.nkd .nkd-top-links { display: flex; gap: 20px; flex: none; }
html.nkd .nkd-top-links button {
    background: none; border: 0; padding: 0; font: inherit; color: var(--nkd-mute);
    text-decoration: underline; text-decoration-color: var(--nkd-line); text-underline-offset: 4px;
}
html.nkd .nkd-top-links button:hover { color: var(--nkd-ink); text-decoration-color: currentColor; }

/* ── Шапка ─────────────────────────────────────────────────────── */
.nkd-head { display: none; }
html.nkd .nkd-head {
    display: block;
    position: sticky; top: 0; z-index: 50;
    background: var(--nkd-bg);
    border-bottom: 1px solid var(--nkd-line);
    font-family: var(--nkd-font);
    color: var(--nkd-ink);
}
html.nkd .nkd-head-row {
    max-width: var(--nkd-w); margin: 0 auto; padding: 14px var(--nkd-g);
    display: grid; grid-template-columns: auto minmax(240px, 1fr) auto;
    align-items: center; gap: 28px; position: relative; z-index: 2;
}
html.nkd .nkd-logo {
    display: flex; align-items: center; gap: 12px; min-width: 0;
    background: none; border: 0; padding: 0; text-align: left; color: var(--nkd-ink);
}
html.nkd .nkd-logo img { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; flex: none; }
html.nkd .nkd-logo b {
    display: block; font-family: var(--nkd-logo-font); font-weight: 800; font-size: 25px;
    letter-spacing: .12em; text-transform: uppercase; line-height: 1;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html.nkd .nkd-logo small {
    display: block; margin-top: 6px; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase;
    color: var(--nkd-mute); font-weight: 600; white-space: nowrap;
}
html.nkd .nkd-logo small:empty { display: none; }

html.nkd .nkd-search-slot { min-width: 0; position: relative; width: 100%; max-width: 720px; justify-self: start; margin-left: 24px; }
html.nkd .nkd-search-slot .nkg-search { margin: 0 !important; padding: 0 !important; position: relative; }
html.nkd .nkd-search-slot .nkg-search-field {
    padding: 0 18px; height: 46px; border-radius: 99px; gap: 11px;
    background: var(--nkd-soft); border: 1px solid transparent;
}
html.nkd .nkd-search-slot .nkg-search-field:focus-within { background: var(--nkd-bg); border-color: var(--nkd-ink); }
html.nkd .nkd-search-slot .nkg-search-field input { font-size: 14.5px; font-family: var(--nkd-font); }
/* сколько нашли, показывает строка над каталогом, подсказка под полем не нужна */
html.nkd .nkd-search-slot .nkg-search-hint { display: none !important; }

html.nkd .nkd-act { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
html.nkd .nkd-ib {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
    min-width: 68px; padding: 6px 8px; border-radius: 14px; background: none; border: 0;
    color: var(--nkd-ink); font-family: var(--nkd-font); font-size: 11.5px; font-weight: 600;
    transition: background .15s ease;
}
html.nkd .nkd-ib:hover { background: var(--nkd-soft); }
html.nkd .nkd-ib svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html.nkd .nkd-ib span { max-width: 96px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--nkd-mute); }
html.nkd .nkd-ib em {
    position: absolute; top: 1px; left: calc(50% + 5px); min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 99px; background: var(--nkd-ink); color: var(--nkd-bg); font-style: normal;
    font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--nkd-bg);
}
html.nkd .nkd-ib em:empty, html.nkd .nkd-ib em[data-n="0"] { display: none; }
html.nkd .nkd-cart {
    display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 8px 0 18px; margin-left: 8px;
    border-radius: 99px; border: 0; background: var(--nkd-acc); color: var(--nkd-on-acc);
    font-family: var(--nkd-font); font-weight: 700; font-size: 14.5px; white-space: nowrap;
    box-shadow: 0 8px 22px color-mix(in srgb, var(--nkd-acc) 26%, transparent);
    transition: transform .18s ease, box-shadow .18s ease;
}
html.nkd .nkd-cart:hover { transform: translateY(-1px); box-shadow: 0 12px 28px color-mix(in srgb, var(--nkd-acc) 32%, transparent); }
html.nkd .nkd-cart svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
html.nkd .nkd-cart b {
    min-width: 30px; height: 32px; padding: 0 9px; border-radius: 99px; display: flex; align-items: center; justify-content: center;
    background: var(--nkd-on-acc); color: var(--nkd-acc); font-size: 13px; font-weight: 800;
}
html.nkd .nkd-cart.bump { animation: nkdBump .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes nkdBump { 0% { transform: scale(1); } 35% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* категории во второй строке шапки */
html.nkd .nkd-cats-slot { max-width: var(--nkd-w); margin: 0 auto; padding: 0 var(--nkd-g); }
html.nkd .nkd-cats-slot:empty { display: none; }
html.nkd .nkd-cats-slot .categories-section { background: transparent !important; z-index: auto; }
html.nkd .nkd-cats-slot .categories-section > .section-header { display: none !important; }
html.nkd .nkd-cats-slot .categories-scroll { background: transparent !important; padding: 2px 0 12px; overflow-x: auto; }
html.nkd .nkd-cats-slot .categories { padding: 0 !important; gap: 10px; flex-wrap: nowrap; }
html.nkd .nkd-cats-slot .category-btn { flex: none; }

/* ── Блоки страницы по ширине сетки ─────────────────────────────── */
html.nkd .stories-section-header,
html.nkd #storiesSection,
html.nkd .nkd-bar,
html.nkd .catalog-grid {
    max-width: var(--nkd-w) !important;
    margin-left: auto !important; margin-right: auto !important;
}
html.nkd .stories-section-header { padding: 34px var(--nkd-g) 16px !important; }
html.nkd .stories-section-header .section-title { letter-spacing: .02em !important; font-size: 24px !important; text-transform: none; }
html.nkd #storiesSection { position: relative; }
html.nkd .stories-scroll { padding: 4px var(--nkd-g) 10px !important; gap: 16px !important; scroll-behavior: smooth; }
html.nkd .story-card {
    width: calc((min(100vw, var(--nkd-w)) - 2 * var(--nkd-g) - 5 * 16px) / 6) !important;
    max-width: none !important; min-height: 0 !important; max-height: none !important;
    height: auto !important; aspect-ratio: 9 / 16;
    border-radius: var(--nkd-r) !important;
}
html.nkd .story-card img,
html.nkd .story-card .story-card-img { border-radius: calc(var(--nkd-r) - var(--stories-border-width, 0px)) !important; }
html.nkd .story-card:hover { transform: translateY(-4px) !important; box-shadow: 0 14px 30px rgba(0,0,0,.12) !important; }
html.nkd .story-title-overlay { font-size: 15px !important; }
html.nkd .nkd-sarrow {
    position: absolute; top: calc(50% - 22px); width: 44px; height: 44px; padding: 0; border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--nkd-ink) 16%, var(--nkd-bg));
    background: var(--nkd-bg); color: var(--nkd-ink); box-shadow: 0 6px 18px rgba(0,0,0,.16);
    display: flex; align-items: center; justify-content: center; z-index: 5; line-height: 1;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .18s ease, visibility 0s linear .18s, background .15s ease, color .15s ease, border-color .15s ease;
}
html.nkd .nkd-sarrow svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
html.nkd .nkd-sarrow:hover { background: var(--nkd-ink); color: var(--nkd-bg); border-color: var(--nkd-ink); }
html.nkd .nkd-sarrow.l { left: calc(var(--nkd-g) - 18px); }
html.nkd .nkd-sarrow.r { right: calc(var(--nkd-g) - 18px); }
html.nkd .nkd-hs.nkd-can-l .nkd-sarrow.l,
html.nkd .nkd-hs.nkd-can-r .nkd-sarrow.r {
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity .18s ease, visibility 0s, background .15s ease, color .15s ease, border-color .15s ease;
}
/* у категорий стрелки тёмные, ровно по центру строки (высоту --nkd-ay считает desktop.js),
   под ними текст плавно гаснет, поэтому ничего не налезает */
html.nkd .nkd-cats-slot { position: relative; }
html.nkd .nkd-cats-slot .nkd-sarrow {
    top: var(--nkd-ay, 22px); margin-top: -17px; width: 34px; height: 34px;
    background: var(--nkd-ink); color: var(--nkd-bg); border-color: var(--nkd-ink);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--nkd-ink) 30%, transparent);
}
html.nkd .nkd-cats-slot .nkd-sarrow svg { width: 17px; height: 17px; }
html.nkd .nkd-cats-slot .nkd-sarrow:hover { background: var(--nkd-acc); color: var(--nkd-on-acc); border-color: var(--nkd-acc); }
html.nkd .nkd-cats-slot .nkd-sarrow.l { left: var(--nkd-g); }
html.nkd .nkd-cats-slot .nkd-sarrow.r { right: var(--nkd-g); }
html.nkd .nkd-cats-slot.nkd-can-r .categories-scroll { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 92px), transparent calc(100% - 46px)); mask-image: linear-gradient(90deg, #000 calc(100% - 92px), transparent calc(100% - 46px)); }
html.nkd .nkd-cats-slot.nkd-can-l .categories-scroll { -webkit-mask-image: linear-gradient(90deg, transparent 46px, #000 92px); mask-image: linear-gradient(90deg, transparent 46px, #000 92px); }
html.nkd .nkd-cats-slot.nkd-can-l.nkd-can-r .categories-scroll { -webkit-mask-image: linear-gradient(90deg, transparent 46px, #000 92px, #000 calc(100% - 92px), transparent calc(100% - 46px)); mask-image: linear-gradient(90deg, transparent 46px, #000 92px, #000 calc(100% - 92px), transparent calc(100% - 46px)); }

/* строка над каталогом: заголовок, счётчик, сортировка */
.nkd-bar { display: none; }
html.nkd .nkd-bar {
    display: flex; align-items: flex-end; gap: 14px; padding: 34px var(--nkd-g) 18px;
    font-family: var(--nkd-font); color: var(--nkd-ink);
}
html.nkd .nkd-bar h2 {
    margin: 0; font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.01em;
    font-family: var(--nkd-logo-font);
}
html.nkd .nkd-bar .nkd-cnt { color: var(--nkd-mute); font-size: 14px; padding-bottom: 4px; }
html.nkd .nkd-bar .nkd-sp { flex: 1; }
html.nkd .nkd-chip-x {
    display: none; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 99px; border: 0;
    background: var(--nkd-soft2); color: var(--nkd-ink); font: 600 13px var(--nkd-font);
}
html.nkd .nkd-bar.filtered .nkd-chip-x { display: inline-flex; }
html.nkd .nkd-sort { position: relative; }
html.nkd .nkd-sort select {
    appearance: none; -webkit-appearance: none; height: 40px; padding: 0 40px 0 16px; border-radius: 99px;
    border: 1px solid var(--nkd-line); background: var(--nkd-bg); color: var(--nkd-ink);
    font: 600 13.5px var(--nkd-font); cursor: pointer; outline: 0;
}
html.nkd .nkd-sort select:hover { border-color: var(--nkd-faint); }
html.nkd .nkd-sort::after {
    content: ""; position: absolute; right: 17px; top: 15px; width: 7px; height: 7px; pointer-events: none;
    border-right: 1.8px solid var(--nkd-ink); border-bottom: 1.8px solid var(--nkd-ink); transform: rotate(45deg);
}
html.nkd .nkd-empty {
    grid-column: 1 / -1; text-align: center; padding: 70px 20px; color: var(--nkd-mute); font-family: var(--nkd-font);
}
html.nkd .nkd-empty b { display: block; color: var(--nkd-ink); font-size: 18px; margin-bottom: 8px; }

/* ── Сетка товаров ──────────────────────────────────────────────── */
html.nkd .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 34px 24px !important;
    padding: 0 var(--nkd-g) 70px !important;
}
@media (max-width: 1279px) { html.nkd .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (min-width: 1760px) { html.nkd .catalog-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; } html.nkd { --nkd-w: 1600px; } }

html.nkd .product-card { transition: transform .25s ease, box-shadow .25s ease !important; }
html.nkd .product-card:hover { transform: translateY(-4px); }
html.nkd .product-card .card-image-container { cursor: pointer; overflow: hidden; }
html.nkd .product-card .card-image-container img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
html.nkd .product-card:hover .card-image-container img { transform: scale(1.045); }
html.nkd .product-card .product-info { cursor: pointer; }
html.nkd .product-card .product-title { transition: opacity .15s ease; }
html.nkd .product-card .product-info:hover .product-title { opacity: .72; }
html.nkd .product-card .add-to-cart-btn { transition: filter .15s ease, transform .15s ease !important; }
html.nkd .product-card .add-to-cart-btn:hover { filter: brightness(1.08); }
html.nkd .favorite-btn { transition: transform .15s ease !important; }
html.nkd .favorite-btn:hover { transform: scale(1.12); }
/* Против лагов при прокрутке. Размытие фона под сердечком, ленточкой акции и плашками
   пересчитывается на каждом кадре и на каждой карточке сразу. На маленьких тёмных
   кружках его не видно, поэтому на компьютере оно отключено. */
html.nkd .favorite-btn,
html.nkd .nkg-offer-ribbon,
html.nkd .oos-card-badge,
html.nkd .timer-style-classic .product-timer {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
/* пока страница едет, карточки под курсором не подсвечиваются и не прыгают
   (иначе при прокрутке колесом десятки карточек подряд перерисовывают тень и фото) */
html.nkd.nkd-scrolling .catalog-grid { pointer-events: none; }
/* стрелки листания фото в карточке */
html.nkd .nkd-cs {
    position: absolute; top: 50%; z-index: 6; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; border: 0;
    background: color-mix(in srgb, var(--nkd-bg) 92%, transparent); color: var(--nkd-ink);
    box-shadow: 0 4px 14px rgba(0,0,0,.14); display: flex; align-items: center; justify-content: center;
    font-size: 20px; line-height: 1; opacity: 0; transition: opacity .18s ease, transform .18s ease;
}
html.nkd .nkd-cs.l { left: 10px; transform: translateX(-6px); }
html.nkd .nkd-cs.r { right: 10px; transform: translateX(6px); }
html.nkd .product-card:hover .nkd-cs { opacity: 1; transform: none; }
html.nkd .nkd-cs:hover { background: var(--nkd-bg); }

/* ── Подвал ─────────────────────────────────────────────────────── */
html.nkd .shop-footer { padding: 54px var(--nkd-g) 34px !important; margin-top: 10px !important; }
html.nkd .shop-footer > * { max-width: calc(var(--nkd-w) - 2 * var(--nkd-g)); margin-left: auto !important; margin-right: auto !important; }
html.nkd .shop-footer .footer-legal-links { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 10px 34px; }
html.nkd .shop-footer .footer-legal-links a { font-size: 14px; }

/* ── Тосты, cookie и прочие всплывашки ─────────────────────────── */
html.nkd .neo-toast { bottom: 34px !important; }
html.nkd #cookieBanner {
    left: 24px !important; right: auto !important; bottom: 24px !important; width: 440px !important; max-width: 440px !important;
}
html.nkd #cookieBanner > * { max-width: none !important; }
html.nkd #cookieBanner > div, html.nkd #pushPermissionBanner > div { border-radius: 20px !important; box-shadow: 0 24px 60px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.05) !important; padding-bottom: 20px !important; }
html.nkd #pushPermissionBanner {
    left: 24px !important; right: auto !important; bottom: 24px !important; width: 440px !important; max-width: calc(100vw - 48px) !important;
}
html.nkd body:has(#pushPermissionBanner) .order-push-container { bottom: 236px !important; }

/* плашка статуса заказа: на компьютере в левом нижнем углу, шапку и поиск не закрывает
   (справа внизу живёт кнопка чата) */
html.nkd .order-push-container {
    top: auto !important; right: auto !important; left: 24px !important; bottom: 24px !important;
    width: 420px; max-width: calc(100vw - 48px); padding: 0 !important; align-items: flex-start;
}
html.nkd body:has(#cookieBanner) .order-push-container { bottom: 136px !important; }
html.nkd .order-track-card { box-shadow: 0 24px 60px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.05); animation-name: nkdTrackIn; }
html.nkd .order-track-chip { animation-name: nkdTrackIn; }
html.nkd .order-track.collapsed { justify-content: flex-start; }
html.nkd .order-track-chip { width: 52px; height: 52px; }
@keyframes nkdTrackIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* сообщение «добавили в корзину» под шапкой */
.nkd-added { display: none; }
html.nkd .nkd-added {
    display: flex; position: fixed; z-index: 10000001; top: 96px; right: max(var(--nkd-g), calc((100vw - var(--nkd-w)) / 2 + var(--nkd-g)));
    width: 420px; gap: 14px; align-items: center; padding: 14px; border-radius: 20px;
    background: var(--nkd-bg); color: var(--nkd-ink); font-family: var(--nkd-font);
    box-shadow: 0 24px 60px rgba(0,0,0,.18), 0 0 0 1px var(--nkd-line);
    opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}
html.nkd .nkd-added.on { opacity: 1; transform: none; pointer-events: auto; }
html.nkd .nkd-added img, html.nkd .nkd-added i {
    width: 58px; height: 58px; border-radius: 14px; object-fit: cover; flex: none; background: var(--nkd-soft);
    display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 26px;
}
html.nkd .nkd-added div { flex: 1; min-width: 0; }
html.nkd .nkd-added b { display: block; font-size: 13px; color: #15803d; font-weight: 700; white-space: nowrap; }
html.nkd .nkd-added span { display: block; font-size: 14.5px; font-weight: 700; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.nkd .nkd-added button {
    flex: none; height: 40px; padding: 0 16px; border-radius: 99px; border: 0;
    background: var(--nkd-acc); color: var(--nkd-on-acc); font: 700 13px var(--nkd-font);
}

/* окно «Доставка и оплата» */
.nkd-dlg { display: none; }
html.nkd .nkd-dlg {
    display: flex; position: fixed; inset: 0; z-index: 100000; align-items: center; justify-content: center;
    background: rgba(12,12,16,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    font-family: var(--nkd-font); color: var(--nkd-ink); animation: nkdFade .2s ease;
}
html.nkd .nkd-dlg[hidden] { display: none; }
@keyframes nkdFade { from { opacity: 0; } to { opacity: 1; } }
html.nkd .nkd-dlg-box {
    position: relative; width: 640px; max-width: calc(100vw - 48px); max-height: calc(100vh - 64px); overflow: auto;
    background: var(--nkd-bg); border-radius: 26px; padding: 34px 36px 30px; box-shadow: 0 40px 100px rgba(0,0,0,.3);
    animation: nkdPop .25s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes nkdPop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
html.nkd .nkd-dlg-x {
    position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 0;
    background: var(--nkd-soft2); color: var(--nkd-ink); font-size: 18px; display: flex; align-items: center; justify-content: center;
}
html.nkd .nkd-dlg h3 { margin: 0 0 6px; font-size: 24px; font-weight: 800; font-family: var(--nkd-logo-font); }
html.nkd .nkd-dlg h4 { margin: 26px 0 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--nkd-mute); }
html.nkd .nkd-dlg p { margin: 0; color: var(--nkd-mute); font-size: 14px; line-height: 1.5; }
html.nkd .nkd-zrow {
    display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 16px; background: var(--nkd-soft); margin-top: 8px;
}
html.nkd .nkd-zrow div { flex: 1; min-width: 0; }
html.nkd .nkd-zrow b { display: block; font-size: 15px; }
html.nkd .nkd-zrow span { font-size: 13px; color: var(--nkd-mute); }
html.nkd .nkd-zrow strong { font-size: 16px; white-space: nowrap; }
html.nkd .nkd-pays { display: flex; flex-wrap: wrap; gap: 8px; }
html.nkd .nkd-pays span { padding: 9px 14px; border-radius: 99px; background: var(--nkd-soft2); font-size: 13.5px; font-weight: 600; }

/* ── Корзина: панель справа ─────────────────────────────────────── */
html.nkd .cart-modal {
    background: rgba(12,12,16,.42) !important;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    justify-content: flex-end !important; align-items: stretch !important;
    animation: nkdFade .2s ease;
}
html.nkd .cart-modal .cart-content {
    width: 480px !important; max-width: 480px !important; margin: 0 !important; height: 100% !important;
    background: var(--nkd-bg) !important; box-shadow: -30px 0 80px rgba(0,0,0,.18);
    animation: nkdSlide .32s cubic-bezier(.2,.9,.25,1);
}
@keyframes nkdSlide { from { transform: translateX(60px); opacity: .4; } to { transform: none; opacity: 1; } }
html.nkd .cart-modal .cart-header { padding: 22px 26px !important; background: transparent !important; }
html.nkd .cart-modal .cart-items { padding-left: 22px !important; padding-right: 22px !important; }
html.nkd .cart-modal .cart-footer { padding-left: 26px !important; padding-right: 26px !important; padding-bottom: 26px !important; }
html.nkd .cart-modal .cart-upsell { padding-left: 22px !important; padding-right: 22px !important; }
html.nkd .cart-modal .cart-item-remove:hover { opacity: 1 !important; }

/* ── Карточка товара: окно в две колонки ─────────────────────────── */
html.nkd .product-modal { align-items: center !important; }
html.nkd .product-modal .product-modal-overlay { background: rgba(12,12,16,.55) !important; -webkit-backdrop-filter: blur(6px) !important; backdrop-filter: blur(6px) !important; }
html.nkd .product-modal .product-modal-content {
    flex-direction: row !important; width: min(1120px, calc(100vw - 64px)) !important; max-width: none !important;
    height: min(720px, calc(100vh - 64px)) !important; max-height: none !important;
    border-radius: 28px !important; animation: nkdPop .28s cubic-bezier(.2,.9,.3,1.15) !important;
    box-shadow: 0 50px 120px rgba(0,0,0,.35) !important;
}
html.nkd .product-modal .product-modal-gallery {
    width: auto !important; height: 100% !important; max-height: none !important; flex: none !important;
    aspect-ratio: 4 / 5; max-width: 58%;
}
html.nkd .product-modal .product-modal-images img { cursor: zoom-in; object-fit: cover !important; }
html.nkd .product-modal .product-modal-info {
    flex: 1 !important; max-height: none !important; height: 100% !important; padding: 78px 44px 34px 40px !important;
    overflow-y: auto !important;
}
html.nkd .product-modal .product-modal-title { font-size: 30px !important; line-height: 1.15 !important; padding-right: 40px; }
html.nkd .product-modal .product-modal-price { font-size: 28px !important; }
html.nkd .product-modal .product-modal-desc { font-size: 15px !important; line-height: 1.6 !important; }
html.nkd .product-modal .product-modal-add-btn { cursor: pointer; }
html.nkd .product-modal .product-modal-close { top: 18px !important; right: 18px !important; }
html.nkd .product-modal .gallery-nav {
    display: flex !important; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--nkd-bg) 92%, transparent) !important; color: var(--nkd-ink) !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.15); width: 46px !important; height: 46px !important; font-size: 26px !important;
    opacity: 0; transition: opacity .2s ease; z-index: 5;
}
html.nkd .product-modal .product-modal-gallery:hover .gallery-nav { opacity: 1; }
html.nkd .product-modal .gallery-nav.nkd-off { display: none !important; }
html.nkd .product-modal .gallery-prev { left: 18px !important; }
html.nkd .product-modal .gallery-next { right: 18px !important; }

/* ── Оформление заказа в две колонки ─────────────────────────────── */
html.nkd #checkoutModal.nkco-modal { align-items: center; background: rgba(12,12,16,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html.nkd #checkoutModal .nkco-sheet {
    max-width: 1180px; width: calc(100vw - 64px); height: calc(100vh - 48px); margin: 0;
    border-radius: 30px; box-shadow: 0 50px 120px rgba(0,0,0,.35);
}
html.nkd #checkoutModal .nkco-top { padding: 20px 26px 16px; border-bottom: 1px solid var(--nkco-line); }
html.nkd #checkoutModal .nkco-top-t { text-align: left; padding-left: 4px; }
html.nkd #checkoutModal .nkco-h1 { font-size: 24px; }
html.nkd #checkoutModal .nkco-sub { font-size: 13px; }
html.nkd #checkoutModal .nkco-prog,
html.nkd #checkoutModal .nkco-bar,
html.nkd #checkoutModal #nkcoCart,
html.nkd #checkoutModal #nkcoRecap,
html.nkd #checkoutModal #nkcoBack { display: none !important; }
html.nkd #checkoutModal .nkd-co-body { flex: 1; min-height: 0; display: flex; }
html.nkd #checkoutModal .nkco-scroll { flex: 1; min-width: 0; padding: 6px 40px 40px; scroll-behavior: smooth; }
html.nkd #checkoutModal .nkco-step { display: block !important; animation: none !important; }
html.nkd #checkoutModal .nkco-step .nkco-blk:last-child { border-bottom: 1px solid var(--nkco-line); }
html.nkd #checkoutModal .nkco-step:last-child .nkco-blk:last-child { border-bottom: 0; }
html.nkd #checkoutModal .nkco-scroll .nkco-blk { padding: 26px 0; }
html.nkd #checkoutModal .nkco-scroll form { counter-reset: nkdstep; }
html.nkd #checkoutModal .nkco-scroll .nkco-blk:not([style*="display: none"]):not([style*="display:none"]) > .nkco-sh { counter-increment: nkdstep; }
html.nkd #checkoutModal .nkco-scroll .nkco-sh > .nkco-ico { display: none; }
html.nkd #checkoutModal .nkco-scroll .nkco-sh::before {
    content: counter(nkdstep); flex: none; width: 30px; height: 30px; border-radius: 50%;
    background: var(--nkco-ink); color: #fff; font-size: 13.5px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
html.nkd #checkoutModal .nkco-scroll .nkco-sh { font-size: 20px; gap: 12px; }
html.nkd #checkoutModal .nkco-g2 { gap: 12px; }
html.nkd #checkoutModal .nkco-zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
html.nkd #checkoutModal .nkco-zones .nkco-fl-out { grid-column: 1 / -1; }
html.nkd #checkoutModal .nkco-seg { display: inline-flex; min-width: 340px; }
html.nkd #checkoutModal .nkco-pays { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.nkd #checkoutModal .nkco-chip:not(:disabled):not(.on):hover { border-color: var(--nkco-fline2); background: #fff; }
html.nkd #checkoutModal .nkco-zn:not(.on):hover,
html.nkd #checkoutModal .payment-option input:not(:checked) + .nkco-pc:hover { border-color: var(--nkco-fline2); background: #fff; }
html.nkd #checkoutModal .nkco-seg button:not(.on):hover { color: var(--nkco-ink); }

html.nkd #checkoutModal .nkd-co-side {
    width: 430px; flex: none; display: flex; flex-direction: column; min-height: 0;
    background: #f7f8fa; border-left: 1px solid var(--nkco-line);
}
html.nkd #checkoutModal .nkd-co-sidein { flex: 1; min-height: 0; overflow-y: auto; padding: 26px 28px 8px; }
html.nkd #checkoutModal .nkd-co-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
html.nkd #checkoutModal .nkd-co-h b { font-size: 19px; font-weight: 700; }
html.nkd #checkoutModal .nkd-co-side .nkco-blk { padding: 18px 0; border-bottom: 1px solid #e9ebef; }
html.nkd #checkoutModal .nkd-co-side .nkco-blk:last-child { border-bottom: 0; }
html.nkd #checkoutModal .nkd-co-side .nkco-sh { font-size: 15px; margin-bottom: 12px; }
html.nkd #checkoutModal .nkd-co-side .nkco-tk { background: #fff; }
html.nkd #checkoutModal .nkd-co-side .nkco-tk::before,
html.nkd #checkoutModal .nkd-co-side .nkco-tk::after { background: #f7f8fa; }
html.nkd #checkoutModal .nkd-co-side .nkco-bonus,
html.nkd #checkoutModal .nkd-co-side .privacy-consent-box,
html.nkd #checkoutModal .nkd-co-side .nkco-row-in input { background: #fff !important; }
html.nkd #checkoutModal .nkd-co-side .checkout-summary { padding-top: 14px; }
html.nkd #checkoutModal .nkd-co-side #checkoutItemsList {
    display: block !important; max-height: none !important; overflow: visible !important; margin: 0 0 4px !important;
}
html.nkd #checkoutModal .nkd-co-side .checkout-item {
    background: #fff !important; border-radius: 16px !important; padding: 10px !important; margin-bottom: 8px !important; gap: 14px !important;
}
html.nkd #checkoutModal .nkd-co-side .checkout-item-img { width: 58px !important; height: 58px !important; border-radius: 12px !important; }
html.nkd #checkoutModal .nkd-co-side .checkout-item-name { font-size: 14px !important; font-weight: 600 !important; color: var(--nkco-ink) !important; }
html.nkd #checkoutModal .nkd-co-side .checkout-item-qty { font-size: 12.5px !important; color: var(--nkco-muted) !important; opacity: 1 !important; }
html.nkd #checkoutModal .nkd-co-side .checkout-item-price { color: var(--nkco-ink) !important; font-weight: 700 !important; white-space: nowrap; }
html.nkd #checkoutModal .nkd-co-foot { flex: none; padding: 14px 28px 24px; background: #f7f8fa; border-top: 1px solid #e9ebef; }
html.nkd #checkoutModal .nkd-co-foot #submitOrderBtn {
    display: block !important; width: 100% !important; padding: 18px 20px !important; font-size: 16px !important; border-radius: 18px !important;
}
html.nkd #checkoutModal .nkd-co-foot .nkd-co-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 13px; color: var(--nkco-muted); }
html.nkd #checkoutModal .nkd-co-foot .nkd-co-total b { font-size: 22px; color: var(--nkco-ink); font-weight: 800; letter-spacing: -.02em; }

/* ── Окно «Заказ принят» и сообщения ───────────────────────────── */
html.nkd .success-modal .success-content { max-width: 440px !important; border-radius: 28px !important; }

/* всплывашки поверх карточки товара: апсел, модификаторы, размер, режим работы */
html.nkd .upsell-modal,
html.nkd .modifiers-popup,
html.nkd #sizeSelectorPopup { z-index: 10000000 !important; }
html.nkd #scheduleAlertModal { z-index: 100000000 !important; }
html.nkd .upsell-modal-content,
html.nkd .modifiers-content { max-width: 460px !important; }

/* факты под кнопкой в карточке товара */
.nkd-facts { display: none; }
html.nkd .nkd-facts {
    display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding: 16px 18px; border-radius: 18px;
    background: var(--nkd-soft); font-family: var(--nkd-font); font-size: 13.5px; line-height: 1.45; color: var(--nkd-ink);
}
html.nkd .nkd-facts div { display: flex; gap: 11px; align-items: flex-start; }
html.nkd .nkd-facts svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }

/* ── Вход и регистрация: карточкой по центру, а не на весь экран ── */
html.nkd .auth-modal.active { background: rgba(12,12,16,.55) !important; }
html.nkd .auth-modal > .welcome-bg {
    position: absolute !important; left: 50% !important; top: 50% !important; right: auto !important; bottom: auto !important;
    width: 520px !important; height: min(780px, calc(100vh - 56px)) !important; transform: translate(-50%, -50%) !important;
    border-radius: 32px !important; box-shadow: 0 50px 120px rgba(0,0,0,.35) !important; overflow: hidden;
}
html.nkd .auth-modal > .onboarding-content {
    position: relative; z-index: 2; width: 440px !important; max-width: 440px !important;
    max-height: min(740px, calc(100vh - 96px)); overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
}
html.nkd .auth-modal > .onboarding-content::-webkit-scrollbar { display: none; }
html.nkd .auth-modal .auth-close-btn {
    position: absolute !important; z-index: 5 !important;
    top: calc(50vh - min(390px, 50vh - 28px) + 18px) !important; right: auto !important; left: calc(50% + 260px - 68px) !important;
    width: 46px !important; height: 46px !important;
}
html.nkd #authNavBar {
    position: absolute !important; top: calc(50vh - min(390px, 50vh - 28px) + 18px) !important;
    left: calc(50% - 260px + 20px) !important; right: auto !important; width: 380px !important; padding: 0 !important;
}
html.nkd .auth-modal .falling-emojis { pointer-events: none; }

html.nkd #checkoutModal .nkd-flash { animation: nkdFlash 1.2s ease; border-radius: 16px; }
@keyframes nkdFlash { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 25%, 70% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--nkco-bad) 35%, transparent); } }

/* Итог и количество в корзине наследовали белый цвет страницы и
   пропадали на светлом фоне; здесь берём цвет текста корзины магазина */
html.nkd .cart-modal .cart-total,
html.nkd .cart-modal .cart-total span,
html.nkd .cart-modal .qty-value {
    color: var(--cart-text-color, var(--nkd-ink)) !important;
    -webkit-text-fill-color: var(--cart-text-color, var(--nkd-ink)) !important;
}
html.nkd .cart-modal .cart-total { font-size: 18px; font-weight: 800; }

/* ═══════════════════ ЛИЧНЫЙ КАБИНЕТ ═══════════════════
   Цвета кабинета приходят из его настроек дизайна (--l2-* вида
   «Бутик»), для старого вида запасные значения из общих переменных. */
html.nkd body.nkd-lk-on {
    --nkd-ink: var(--l2-ink, var(--text-color, #222));
    --nkd-bg: var(--l2-bg, var(--bg-color, #fff));
    --nkd-acc: var(--l2-acc, var(--nkd-ink));
    --nkd-on-acc: var(--l2-on-acc, var(--nkd-bg));
    --nkd-font: var(--l2-font, inherit);
    --nkd-logo-font: var(--l2-font, inherit);
}
html.nkd body.nkd-lk-on .profile-header,
html.nkd body.nkd-lk-on .lk2-cta,
html.nkd body.nkd-lk-on #profileCloseBtn { display: none !important; }
html.nkd .nkd-lkh .nkd-head-row { grid-template-columns: auto 1fr auto; }
html.nkd .nkd-lkh .nkd-lk-nav { justify-self: start; margin-left: 24px; }
html.nkd .nkd-lk-nav { display: flex; align-items: center; gap: 22px; font-family: var(--nkd-font); }
html.nkd .nkd-lk-nav button {
    display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px 0 10px; border-radius: 99px;
    border: 1px solid var(--nkd-line); background: transparent; color: var(--nkd-ink); font: 600 14px var(--nkd-font);
}
html.nkd .nkd-lk-nav button:hover { background: var(--nkd-soft); }
html.nkd .nkd-lk-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
html.nkd .nkd-lk-nav b { font-weight: 700; font-size: 15px; color: var(--nkd-ink); }

html.nkd .nkd-lk {
    display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: start;
    max-width: var(--nkd-w); margin: 0 auto; padding: 40px var(--nkd-g) 30px;
}
html.nkd .nkd-lk-side { position: sticky; top: 110px; display: flex; flex-direction: column; }
html.nkd .nkd-lk-main {
    display: grid; grid-template-columns: minmax(340px, 430px) minmax(0, 1fr); gap: 44px 52px; align-items: start; min-width: 0;
}
html.nkd .nkd-lk-main > * { margin-left: 0 !important; margin-right: 0 !important; min-width: 0; }
html.nkd .nkd-lk-main > #bonusCard { grid-column: 1; margin-top: 0 !important; }
html.nkd .nkd-lk-main > .orders-section { grid-column: 2; margin-top: 0 !important; }
html.nkd .nkd-lk-main > #lk2ForMe,
html.nkd .nkd-lk-main > .promocodes-section,
html.nkd .nkd-lk-main > .favorites-section,
html.nkd .nkd-lk-main > .tasks-section,
html.nkd .nkd-lk-main > .referral-section,
html.nkd .nkd-lk-main > .lk2-powered { grid-column: 1 / -1; margin-top: 0 !important; }
html.nkd .nkd-lk-main > .lk2-legal { grid-column: 1 / -1; margin: 18px 0 0 !important; }
html.nkd .lk2-legal a:hover { color: var(--l2-ink, currentColor); }
html.nkd .nkd-lk-main > .lk2-powered > div { margin-top: 10px !important; }

/* левая колонка: приветствие, меню разделов, настройки */
html.nkd .nkd-lk-side .profile-card { margin: 0 0 22px !important; padding: 0 !important; }
html.nkd .nkd-lk-side .profile-info h2 { font-size: 32px !important; }
html.nkd .nkd-lk-side .quick-actions {
    display: flex !important; flex-direction: column; gap: 2px !important; margin: 0 !important; padding: 0 !important;
    grid-template-columns: none !important;
}
html.nkd .nkd-lk-side .action-card {
    position: relative; flex-direction: row !important; justify-content: flex-start !important; align-items: center !important;
    gap: 14px !important; width: 100%; padding: 8px 10px !important; border-radius: 16px !important; min-height: 0 !important;
    transition: background .15s ease !important; cursor: pointer;
}
html.nkd .nkd-lk-side .action-card:hover { background: var(--l2-soft, var(--nkd-soft)) !important; }
html.nkd .nkd-lk-side .action-card[style*="display: none"], html.nkd .nkd-lk-side .action-card[style*="display:none"] { display: none !important; }
html.nkd .nkd-lk-side .lk2-ai { width: 44px !important; height: 44px !important; flex: none; }
html.nkd .nkd-lk-side .lk2-ai .lk2-ic { width: 19px !important; height: 19px !important; }
html.nkd .nkd-lk-side .action-card .action-text { text-align: left !important; font-size: 15px !important; flex: 1; }
html.nkd .nkd-lk-side .action-badge { position: static !important; margin-left: auto; left: auto !important; top: auto !important; }
html.nkd .nkd-lk-rules {
    align-self: flex-start; margin: 14px 10px 0; padding: 0; background: none; border: 0; cursor: pointer;
    font: 600 13.5px var(--nkd-font); color: var(--l2-muted, var(--nkd-mute)); text-decoration: underline; text-underline-offset: 3px;
}
html.nkd .nkd-lk-rules:hover { color: var(--nkd-ink); }
html.nkd .nkd-lk-side .account-section-compact {
    margin: 26px 10px 0 !important; padding: 20px 0 0 !important; border-top: 1px solid var(--l2-line2, var(--nkd-line));
    align-items: flex-start !important; flex-direction: column;
}

/* бонусная карта: размер банковской карты, а не на всю ширину */
html.nkd .nkd-lk-main #bonusCard { max-width: 430px; }
html.nkd .nkd-lk-main .flip-card-scene { cursor: pointer; }
html.nkd .nkd-lk-main .orders-section .section-header h3,
html.nkd .nkd-lk-main #lk2ForMe .section-header h3 { font-size: 24px !important; }
html.nkd .nkd-lk-main .lk2-to { border-radius: 12px; transition: background .15s ease; }
html.nkd .nkd-lk-main .lk2-to:hover .t { text-decoration: underline; text-underline-offset: 3px; }
html.nkd .nkd-lk-main .lk2-pr { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 !important; padding: 4px 0 6px !important; overflow: visible !important; }
html.nkd .nkd-lk-main .lk2-pt { width: auto !important; }
html.nkd .nkd-lk-main .lk2-pt:hover { border-color: var(--l2-ink, var(--nkd-ink)) !important; }

/* шторка кабинета и окна: по центру экрана, а не снизу */
html.nkd body.lk2 .lk2-sh {
    left: 50% !important; right: auto !important; top: 50% !important; bottom: auto !important; margin: 0 !important;
    width: 580px; max-width: calc(100vw - 48px) !important; max-height: min(760px, calc(100vh - 64px)) !important;
    border-radius: 28px !important; box-shadow: 0 50px 120px rgba(0,0,0,.3) !important;
    transform: translate(-50%, -46%) scale(.98) !important; opacity: 0;
    transition: transform .28s cubic-bezier(.2,.9,.3,1.1), opacity .2s ease, visibility 0s .28s !important;
}
html.nkd body.lk2 .lk2-sh.on { transform: translate(-50%, -50%) !important; opacity: 1; transition: transform .28s cubic-bezier(.2,.9,.3,1.1), opacity .2s ease !important; }
html.nkd body.lk2 .lk2-grab { display: none !important; }
html.nkd body.lk2 .lk2-sh-h { padding: 22px 24px 8px !important; }
html.nkd body.lk2 .lk2-sh-b { padding: 8px 24px 28px !important; }
html.nkd .modal { align-items: center !important; }
html.nkd body .modal .modal-content { border-radius: 28px !important; max-width: 560px !important; max-height: min(780px, calc(100vh - 64px)) !important; }

html.nkd .nkd-facts b { font-weight: 700; }

/* хвостик к кнопке корзины */
html.nkd .nkd-added::before {
    content: ""; position: absolute; top: -7px; right: 46px; width: 14px; height: 14px; background: var(--nkd-bg);
    transform: rotate(45deg); border-radius: 3px 0 0 0; box-shadow: -1px -1px 0 var(--nkd-line);
}


/* NKD_SEARCH_STEADY: пока курсор в поле поиска шапки, отступ прокрутки выключен.
   Иначе браузер считает поле «спрятанным» под этим отступом и на каждую букву
   подкидывает страницу вверх на высоту шапки, а потом она едет обратно к товарам */
html.nkd body.loaded:has(.nkd-head :focus) { scroll-padding-top: 0; }
/* во время поиска каталог не короче экрана: найденных мало, а страница не прыгает */
html.nkd body:has(#nkgSearchBox.has-q) #catalogGrid { min-height: calc(100vh - var(--nkd-head-h) - 40px); align-content: start; }
