/* =====================================================================
   Страница «Наклейки, стикеры и этикетки» (nakleyki-etiketki-shildy.php).
   Построена на дизайн-системе css/ds.css: размеры, отступы, радиусы — только через --ds-* токены.
   Здесь — только то, что специфично для этой страницы.
   ===================================================================== */

/* ---------- Первый экран ---------- */
.nk-hero { padding: var(--ds-8) 0 var(--ds-10); background: linear-gradient(180deg, var(--ds-accent-soft) 0%, var(--ds-bg) 100%); }
.nk-hero-grid { align-items: center; }
.nk-hero .ds-lead { margin-bottom: var(--ds-4); }
.nk-hero-facts { display: flex; flex-wrap: wrap; gap: var(--ds-1) var(--ds-3); margin: var(--ds-3) 0 0; padding: 0; list-style: none; font-size: var(--ds-small); line-height: var(--ds-small-lh); color: var(--ds-muted); }
.nk-hero-facts li { padding-left: var(--ds-2); border-left: 2px solid var(--ds-accent-line); }
.nk-hero .nk-photo figcaption { display: none; }

/* ---------- Фото: единое окно 4:3, подпись, метка «Визуализация», просмотр ---------- */
.nk-photo { margin: 0; }
.nk-photo-btn { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; }
.nk-photo-btn:hover { outline: 2px solid var(--ds-accent-line); outline-offset: 2px; }
.nk-photo figcaption { margin-top: var(--ds-1); font-size: var(--ds-small); line-height: var(--ds-small-lh); color: var(--ds-muted); }
.nk-visual { position: absolute; left: var(--ds-1); bottom: var(--ds-1); padding: 2px 8px; border-radius: 6px; background: rgba(21, 22, 22, .72); color: #fff; font-size: var(--ds-xs); }

/* ---------- Виды наклеек: одинаковые карточки ---------- */
.nk-type { min-height: 100%; }
.nk-type .ds-h4 { margin-top: var(--ds-1); }
.nk-type-for { flex: 1; }
.nk-type .ds-price { font-size: var(--ds-h3); }

/* ---------- Технология: верхний ряд (текст + фото) и нижний (характеристики + цена) ---------- */
/* две фотографии — вертикальные окна 4:5, чтобы колонка фото уравновешивала колонку текста */
.nk-facts { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: var(--ds-2) var(--ds-3); margin: var(--ds-1) 0 0; }
.nk-facts dt { font-size: var(--ds-small); font-weight: 700; color: var(--ds-ink); }
.nk-facts dd { margin: 0; font-size: var(--ds-small); line-height: var(--ds-small-lh); }
.nk-card-cta { margin-top: auto; }
.nk-tip { margin: var(--ds-1) 0 var(--ds-2); padding: var(--ds-2); border-left: 4px solid var(--ds-warm); border-radius: 0 var(--ds-r-sm) var(--ds-r-sm) 0; background: #fff8ef; font-size: var(--ds-small); line-height: var(--ds-small-lh); }
.nk-tip a { color: var(--ds-accent); font-weight: 700; }

/* ---------- Блок товара: фото слева (закреплено), всё о наклейке справа ---------- */
.nk-prod-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--ds-6); align-items: start; }
.nk-prod-media { position: sticky; top: 80px; }
/* лента миниатюр — как на about.php: активная яркая, остальные приглушены, стрелки при >5 фото */
.nk-thumbs-wrap { position: relative; margin-top: var(--ds-1); }
.nk-thumbs-track { display: flex; gap: var(--ds-1); overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.nk-thumbs-track::-webkit-scrollbar { display: none; }
.nk-thumbs-wrap:has(.nk-thumbs-nav) .nk-thumbs-track { margin: 0 32px; }
.nk-thumb { flex: 0 0 calc((100% - 4 * var(--ds-1)) / 5); aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: var(--ds-r-sm); overflow: hidden; background: var(--ds-bg-soft); cursor: pointer; opacity: .55; transition: opacity var(--ds-dur) ease, border-color var(--ds-dur) ease; }
.nk-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nk-thumb:hover, .nk-thumb.is-active { opacity: 1; }
.nk-thumb.is-active { border-color: var(--ds-accent); }
.nk-thumbs-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 44px; border: 0; border-radius: var(--ds-r-sm); background: var(--ds-accent-soft); color: var(--ds-accent); font-size: 24px; line-height: 1; cursor: pointer; }
.nk-thumbs-nav:hover { background: var(--ds-accent); color: #fff; }
.nk-thumbs-prev { left: 0; } .nk-thumbs-next { right: 0; }
.nk-prod-info .ds-h2 { margin-bottom: var(--ds-2); }
.nk-prod-info .ds-text { margin: 0; }
.nk-prod-row { margin-top: var(--ds-3); }
.nk-label { margin: 0 0 var(--ds-1); font-size: var(--ds-small); font-weight: 700; color: var(--ds-ink); }
.nk-pricebox { border: 1px solid var(--ds-line-strong); border-radius: var(--ds-r-md); background: #fff; overflow: hidden; }
.nk-pricebox-title { margin: 0; padding: 12px 16px 0; font-size: var(--ds-small); font-weight: 700; color: var(--ds-ink); }
.nk-pricebox--gold { border-color: #d9bf72; background: #fffaf0; }
.nk-pricebox--gold .ds-price { color: #a07818; }
.nk-mini th, .nk-mini td { padding: 8px 16px; }
.nk-mini tr:last-child td { border-bottom: 0; }
.nk-mini .ds-price { font-size: 17px; }
.nk-price-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-2); }
.nk-price-hint { margin: var(--ds-1) 0 0; }
.nk-prod .nk-tip { margin: var(--ds-3) 0; }
.nk-specs { margin-top: var(--ds-3); border-top: 1px solid var(--ds-line); }
.nk-specs summary { padding: var(--ds-2) 0; font-weight: 700; color: var(--ds-accent); cursor: pointer; list-style: none; }
.nk-specs summary::-webkit-details-marker { display: none; }
.nk-specs summary::after { content: '+'; display: inline-block; margin-left: var(--ds-1); font-weight: 800; }
.nk-specs[open] summary::after { content: '−'; }
.nk-specs .nk-facts { margin: 0 0 var(--ds-1); }
.nk-size-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-1); }
.nk-size-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px solid var(--ds-line-strong); border-radius: var(--ds-r-md); background: #fff; }
.nk-size { font-weight: 700; color: var(--ds-ink); white-space: nowrap; }
.nk-tiers { margin-top: var(--ds-1); }
.nk-tiers table { width: 100%; }
.nk-tiers th, .nk-tiers td { padding: 8px 8px; white-space: nowrap; font-size: 13px; }
.nk-tiers .ds-price { font-size: 14px; }
.nk-prod-info > .ds-actions { margin-top: var(--ds-3); }
.nk-tiers th { position: sticky; left: 0; background: var(--ds-accent-soft); color: var(--ds-ink); }
.nk-tiers tr:last-child td, .nk-tiers tr:last-child th { border-bottom: 0; }

/* ---------- Баннер для агентств ---------- */
.nk-agency { margin-top: var(--ds-4); display: flex; align-items: center; justify-content: space-between; gap: var(--ds-3); flex-wrap: wrap; padding: var(--ds-4); border: 2px solid #c9a24a; border-radius: var(--ds-r-lg); background: linear-gradient(120deg, #151616 0%, #2a2618 100%); }
.nk-agency-title { margin: 0 0 var(--ds-1); font-size: var(--ds-h2); line-height: var(--ds-h2-lh); font-weight: 800; color: #e7c66a; }
.nk-agency-sub { margin: 0; max-width: var(--ds-measure); color: #f1ead7; line-height: var(--ds-body-lh); }
.nk-agency-btn { display: inline-flex; align-items: center; min-height: var(--ds-btn-h); padding: 0 var(--ds-3); border-radius: var(--ds-r-md); background: #e7c66a; color: #151616; font-weight: 800; text-decoration: none; }
.nk-agency-btn:hover { background: #f2d785; color: #151616; }

/* ---------- Скретч и другие виды ---------- */
.nk-other { flex-direction: row; gap: var(--ds-2); align-items: flex-start; }
.nk-other-media { flex: 0 0 128px; }
.nk-other a { color: var(--ds-accent); font-weight: 700; font-size: var(--ds-small); }

/* ---------- Как выбрать и наглядная разница ---------- */
.nk-choose { display: grid; gap: var(--ds-2); margin: 0; padding: 0; list-style: none; }
.nk-choose a { flex-direction: row; justify-content: space-between; align-items: center; gap: var(--ds-2); }
.nk-choose-q { font-weight: 600; }
.nk-choose-a { color: var(--ds-accent); font-weight: 800; white-space: nowrap; }
#visual-compare .ds-h3 { margin-bottom: var(--ds-2); }
#visual-compare .nk-photo-btn { aspect-ratio: 16 / 9; }
#visual-compare .nk-photo figcaption { display: none; }
.nk-three-labels { list-style: none; margin: var(--ds-1) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-1); text-align: center; }
.nk-three-labels a { display: block; height: 100%; padding: var(--ds-1); border-radius: var(--ds-r-sm); background: var(--ds-accent-soft); color: var(--ds-text); text-decoration: none; font-size: var(--ds-xs); line-height: 1.4; }
.nk-three-labels b { display: block; margin-bottom: 2px; color: var(--ds-accent-dark); font-size: var(--ds-small); }
.nk-three-labels span { color: var(--ds-muted); }
.nk-notes { margin: var(--ds-6) 0 0; padding: 0; list-style: none; }
.nk-notes .ds-card { display: block; font-size: var(--ds-small); line-height: var(--ds-small-lh); }

/* ---------- Таблицы сравнения и прайса ---------- */
.nk-compare { min-width: 960px; }
.nk-compare thead th { background: var(--ds-accent); color: #fff; font-weight: 700; }
.nk-compare thead th a { color: #fff; text-decoration: none; }
.nk-compare tbody th { position: sticky; left: 0; z-index: 1; min-width: 128px; background: var(--ds-accent-soft); color: var(--ds-ink); font-weight: 700; }
.nk-compare thead th:first-child { position: sticky; left: 0; z-index: 2; }
.nk-pricelist { min-width: 640px; }
.nk-pricelist thead th { background: var(--ds-ink); color: #fff; }
.nk-pricelist td a { color: var(--ds-ink); font-weight: 600; text-decoration: none; }
.nk-pricelist td a:hover { color: var(--ds-accent); }
.nk-pricelist tbody tr:nth-child(even) { background: var(--ds-bg-soft); }
.nk-pricelist .ds-price { font-size: 18px; }
.nk-price-note { margin: var(--ds-2) 0 var(--ds-4); text-align: center; }
.nk-layout { margin-top: var(--ds-6); }
.nk-layout > .ds-h3 { margin-bottom: var(--ds-3); text-align: center; }

/* ---------- Наши работы ---------- */
.nk-works .nk-photo figcaption { font-size: var(--ds-small); }

/* ---------- Как заказать (шаги — линия процесса) ---------- */
.nk-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--ds-2); margin: 0; padding: 0; list-style: none; counter-reset: nks; }
.nk-steps li { counter-increment: nks; position: relative; padding: var(--ds-6) var(--ds-2) var(--ds-2); border-radius: var(--ds-r-md); background: var(--ds-bg); font-size: var(--ds-small); line-height: var(--ds-small-lh); color: var(--ds-muted); }
.nk-steps li::before { content: counter(nks); position: absolute; left: var(--ds-2); top: var(--ds-2); width: 28px; height: 28px; border-radius: 50%; background: var(--ds-accent); color: #fff; font-weight: 800; display: grid; place-items: center; }
.nk-steps b { display: block; margin-bottom: 4px; color: var(--ds-ink); font-size: var(--ds-body); }

/* ---------- Заявка ---------- */
.nk-order { max-width: 880px; margin: 0 auto; padding: var(--ds-5); }
.nk-order .ds-head { margin-bottom: var(--ds-4); }
.nk-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-2); }
.nk-form label { display: flex; flex-direction: column; gap: var(--ds-1); font-size: var(--ds-small); font-weight: 600; color: var(--ds-ink); }
.nk-form input, .nk-form select, .nk-form textarea { min-height: var(--ds-btn-h); padding: 0 var(--ds-2); border: 1px solid var(--ds-line-strong); border-radius: var(--ds-r-sm); background: #fff; font: inherit; font-weight: 400; }
.nk-form textarea { padding: 12px var(--ds-2); }
.nk-form-wide { grid-column: 1 / -1; }
.nk-form-send .submit-btn-v2 { width: 100%; }

/* ---------- Окно фото ---------- */
.nk-lightbox { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: var(--ds-3); background: rgba(0, 0, 0, .88); }
.nk-lightbox[hidden] { display: none; }
.nk-lightbox figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.nk-lightbox img { max-width: 100%; max-height: 80vh; border-radius: var(--ds-r-sm); }
.nk-lightbox figcaption { margin-top: var(--ds-1); color: #eee; font-size: var(--ds-small); }
.nk-lb-close { position: absolute; top: 12px; right: 18px; border: 0; background: none; color: #fff; font-size: 42px; line-height: 1; cursor: pointer; }
.nk-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 72px; border: 0; border-radius: var(--ds-r-sm); background: rgba(255, 255, 255, .14); color: #fff; font-size: 44px; cursor: pointer; }
.nk-lb-prev { left: 12px; } .nk-lb-next { right: 12px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
    .nk-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .nk-prod-grid { grid-template-columns: minmax(0, 1fr); gap: var(--ds-4); }
    .nk-prod-media { position: static; }
}
@media (max-width: 760px) {
    .nk-hero { padding: var(--ds-5) 0 var(--ds-6); }
    .nk-hero-grid > div:last-child { order: -1; }
}
@media (max-width: 600px) {
    .nk-facts { grid-template-columns: 1fr; gap: 2px; }
    .nk-price-pair { grid-template-columns: 1fr; }
    .nk-mini th, .nk-mini td { padding: 8px 10px; }
    .nk-size-tile { padding: 10px; }
    .nk-facts dd { margin-bottom: var(--ds-1); }
    .nk-choose a { flex-direction: column; align-items: flex-start; gap: 4px; }
    .nk-steps { grid-template-columns: 1fr; }
    .nk-form { grid-template-columns: 1fr; }
    .nk-order { padding: var(--ds-3) var(--ds-2); }
    .nk-agency { padding: var(--ds-3); }
    .nk-agency-btn { width: 100%; justify-content: center; }
    .nk-three-labels a { padding: 6px 4px; }
    .nk-three-labels b { font-size: var(--ds-xs); }
    .nk-other-media { flex-basis: 96px; }
    .nk-lb-nav { display: none; }
}

/* ---------- Калькулятор наклеек (окно, nakleyki_calculator_modal.php) ---------- */
.nkc-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(21, 22, 22, .6); display: flex; align-items: flex-start; justify-content: center; padding: 30px 16px; overflow-y: auto; }
.nkc-overlay[hidden] { display: none; }
.nkc-box { position: relative; width: 100%; max-width: 1040px; background: #fff; border-radius: 20px; padding: 28px 30px 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.nkc-close { position: absolute; top: 12px; right: 16px; border: 0; background: none; font-size: 34px; line-height: 1; color: var(--text-2); cursor: pointer; }
.nkc-title { margin: 0 40px 6px 0; color: var(--primary); font-size: 26px; font-weight: 800; }
.nkc-lead { margin: 0 0 16px; color: var(--text-2); font-size: var(--fs-small); }
.nkc-step { margin-bottom: 16px; }
.nkc-step h4 { margin: 0 0 10px; font-size: 17px; color: var(--dark); }
.nkc-methods { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.nkc-method { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 2px solid var(--border-2); border-radius: 14px; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; }
.nkc-method input { position: absolute; opacity: 0; pointer-events: none; }
.nkc-method img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; }
.nkc-method-t { font-weight: 800; font-size: 13px; line-height: 1.25; color: var(--dark); }
.nkc-method-s { font-size: 12px; line-height: 1.3; color: var(--text-2); }
.nkc-method.on { border-color: var(--primary); box-shadow: 0 6px 18px rgba(0, 128, 96, .16); }
.nkc-method.on::after { content: '✓'; position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.nkc-method:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.nkc-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: start; }
.nkc-size { display: flex; align-items: flex-end; gap: 10px; }
.nkc-size label { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-small); color: var(--text-2); flex: 1; }
.nkc-size input, .nkc-qty { font: inherit; font-size: 20px; font-weight: 700; padding: 10px 12px; border: 2px solid var(--border); border-radius: 12px; width: 100%; }
.nkc-size input:focus, .nkc-qty:focus { border-color: var(--primary); outline: none; }
.nkc-x { font-size: 22px; color: var(--text-3); padding-bottom: 12px; }
.nkc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.nkc-chips button { border: 1px solid var(--primary-line); background: var(--primary-soft); color: var(--primary-dark); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.nkc-chips button:hover { background: var(--primary); color: #fff; }
.nkc-shape { display: flex; gap: 16px; margin-top: 10px; font-size: var(--fs-small); flex-wrap: wrap; }
.nkc-shape label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.nkc-viz { background: var(--bg-soft); border-radius: 16px; padding: 14px; }
.nkc-viz-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; font-weight: 700; color: var(--dark); font-size: var(--fs-small); }
.nkc-viz-field { background: #fff; border-radius: 12px; padding: 8px; min-height: 220px; display: flex; align-items: center; justify-content: center; }
.nkc-viz-field svg { width: 100%; height: auto; max-height: 340px; }
.nkc-viz-note { margin: 8px 0 0; font-size: 12px; color: var(--text-2); }
.nkc-result { margin-top: 6px; padding: 16px 18px; border: 2px solid var(--primary-line); border-radius: 16px; background: var(--primary-soft); }
.nkc-opt { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 10px; font-size: var(--fs-small); margin-bottom: 4px; }
.nkc-opt.best { background: #fff; outline: 2px solid var(--primary-line); }
.nkc-opt em { font-style: normal; font-size: 12px; background: var(--primary); color: #fff; border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
.nkc-opt b { white-space: nowrap; }
.nkc-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; font-size: 16px; }
.nkc-row b { white-space: nowrap; }
.nkc-total { font-size: 20px; color: var(--primary); font-weight: 800; border-top: 1px solid var(--primary-line); margin-top: 4px; padding-top: 10px; }
.nkc-disclaimer { font-size: 12px; color: var(--text-3); margin: 8px 0 14px; }
.nkc-footer { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.nkc-btn { border: 0; border-radius: 12px; padding: 13px 22px; font: inherit; font-weight: 800; color: #fff; cursor: pointer; }
.nkc-btn-manager { background: var(--primary-dark); }
.nkc-btn-cart { background: var(--primary); }
.nkc-btn-order { background: var(--accent); }
.nkc-btn:hover { filter: brightness(.93); }
@media (max-width: 960px) { .nkc-methods { grid-template-columns: repeat(3, 1fr); } .nkc-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
    .nkc-overlay { padding: 0; }
    .nkc-box { border-radius: 0; padding: 18px 14px; min-height: 100%; }
    .nkc-title { font-size: 21px; }
    .nkc-methods { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .nkc-footer .nkc-btn { width: 100%; }
    .nkc-total { font-size: 17px; }
}
@media (max-width: 600px) {
    .nkc-methods { grid-template-columns: 1fr; gap: 6px; }
    .nkc-method { display: grid; grid-template-columns: 54px 1fr; grid-template-rows: auto auto; column-gap: 10px; row-gap: 0; padding: 6px 36px 6px 6px; align-items: center; }
    .nkc-method img { grid-row: 1 / 3; width: 54px; height: 54px; aspect-ratio: 1; }
    .nkc-method.on::after { top: 50%; transform: translateY(-50%); right: 8px; }
}

@media (max-width: 600px) {
    .nkc-methods { grid-template-columns: 1fr; gap: 6px; }
    .nkc-method { display: grid; grid-template-columns: 54px 1fr; grid-template-rows: auto auto; column-gap: 10px; row-gap: 0; padding: 6px 36px 6px 6px; align-items: center; }
    .nkc-method img { grid-row: 1 / 3; width: 54px; height: 54px; aspect-ratio: 1; }
    .nkc-method.on::after { top: 50%; transform: translateY(-50%); right: 8px; }
}
/* Пиктограммы в карточках видов */
.nk-type-top { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-2); }
.nk-type-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--ds-r-md); background: var(--ds-accent-soft); color: var(--ds-accent); flex: 0 0 48px; }
.nk-type-num { font-size: var(--ds-xs); color: var(--ds-muted); font-weight: 600; }
a.ds-card.nk-type:hover .nk-type-icon { background: #fff; }
