/*
  Niche Wallet — правки
  Ссылки: замените nichewallet на свой аккаунт.
  Цены и названия: в карточках .nw-card (data-name, data-price и видимый текст).
  Фото: images/logo-mark.png, images/logo.png, images/hero-lockup.jpg, images/hero-metal.jpg, images/metal.jpg, images/wallet-silver.png, images/wallet-rats.png, images/wallet-skull.png, images/wallet-moon.png, images/wallet-leopards.png, images/wallet-cat.png, images/wallet-open.png
  Текст заказа собирает script.js из data-name.
*/

:root {
  --ink: #111;
  --muted: #3a3a3a;
  --paper: #f4f4f2;
  --header: 68px;
  --sans: "Manrope", system-ui, sans-serif;
  --engrave: 0 1px 0 rgba(255, 255, 255, 0.65), 0 -1px 1px rgba(0, 0, 0, 0.28);
  --plate: 0 10px 24px rgba(40, 40, 40, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  background: #f4f4f2;
}

img { max-width: 100%; display: block; }
button, a { font-family: inherit; }
button { cursor: pointer; border: 0; background: transparent; color: inherit; padding: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.nw-wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

/* Металл только на первом экране и в подвале. Замените images/metal.jpg. */
.nw-metal {
  position: relative;
  overflow: hidden;
  background: #c5c5c5;
}

/* ——— Шапка ——— */
.nw-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header);
  padding: 0 14px;
  background: rgba(245, 245, 243, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(28, 28, 28, 0.08);
}
.nw-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}
.nw-header .nw-brand img { width: 42px; height: 42px; object-fit: contain; }
.nw-header .nw-brand span { font-size: 14px; }
.nw-brand span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-shadow: var(--engrave);
}
.nw-header-actions { display: flex; align-items: center; gap: 8px; }
.nw-burger {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(28, 28, 28, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
}

.nw-menu {
  position: fixed;
  z-index: 60;
  top: var(--header);
  right: 0;
  width: min(320px, 100%);
  height: calc(100% - var(--header));
  padding: 18px 22px;
  background: rgba(245, 245, 243, 0.96);
  backdrop-filter: blur(16px);
  transform: translateX(104%);
  transition: transform 0.3s ease-in-out;
  border-left: 1px solid rgba(28, 28, 28, 0.08);
}
.nw-menu.is-open { transform: none; }
.nw-menu a {
  display: block;
  padding: 14px 0;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  border-bottom: 1px solid rgba(28, 28, 28, 0.08);
}
.nw-menu a:hover { color: #4a4a4a; }

/* ——— Кнопки ——— */
.nw-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #4a4a4a, #1c1c1c);
  color: #ececea;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.nw-btn:active {
  transform: translateY(2px);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.45);
}
.nw-btn-steel {
  background: linear-gradient(180deg, #f7f7f5, #c9c9c5);
  color: var(--ink);
  text-shadow: var(--engrave);
}
.nw-short { display: none; }
@media (max-width: 640px) {
  .nw-long { display: none; }
  .nw-short { display: inline; }
  .nw-header .nw-brand span { display: none; }
}

/* ——— Первый экран ——— */
.nw-hero { padding: calc(var(--header) + 16px) 0 28px; }
.nw-hero-wide {
  width: min(1680px, calc(100% - 32px));
  margin-inline: auto;
}
.nw-hero-panel {
  display: grid;
  gap: 18px;
  padding: 0;
  border-radius: 20px;
  background: #c5c5c5;
}
.nw-hero-art {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px 20px 0 0;
}
.nw-hero-side {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 0 18px 18px;
}
.nw-hero-cta {
  min-height: 58px;
  padding: 0 32px;
  font-size: 17px;
  justify-self: center;
}
@media (max-width: 899px) {
  .nw-hero-panel {
    display: block;
    min-height: 0;
    overflow: hidden;
    background: #b9b9b6 url("images/hero-metal.jpg") center / cover no-repeat;
  }
  .nw-hero-art {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    clip: auto;
    overflow: visible;
    border-radius: 20px 20px 0 0;
  }
  .nw-hero-art::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  }
  .nw-hero-side {
    position: relative;
    width: auto;
    transform: none;
    margin-top: 0;
    padding: 28px 16px 24px;
    background: url("images/hero-metal.jpg") center top / cover no-repeat;
  }
  .nw-hero-photo { width: min(220px, 58vw); margin: 0 auto; }
}
.nw-ph {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #d9d9d6;
  color: #5c5c5c;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

/* ——— Секции ——— */
.nw-section { padding: 56px 0; }
.nw-h {
  margin: 0 0 28px;
  color: #111;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 24px;
}
.nw-card {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  text-align: left;
  color: inherit;
  background: transparent;
  box-shadow: none;
  transition: transform 0.25s ease-in-out;
}
.nw-hero-photo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.22));
  animation: nw-float 4.5s ease-in-out infinite;
}
@keyframes nw-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.nw-card-photo {
  position: relative;
  display: block;
  background: transparent;
}
.nw-sale {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 3px 6px;
  border-radius: 4px;
  background: #e53543;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}
.nw-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  transition: transform 0.45s ease-in-out;
}
.nw-card:hover { transform: translateY(-6px); }
.nw-card:hover img { transform: scale(1.04); }
.nw-card:active { transform: scale(0.98); }
.nw-gallery {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
}
.nw-thumbs { display: grid; gap: 8px; }
.nw-thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid #e4e4e1;
  border-radius: 8px;
  background: transparent;
  overflow: hidden;
}
.nw-thumb.is-on { border-color: #111; }
.nw-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nw-shots { position: relative; }
.nw-shots img {
  width: 100%;
  border-radius: 12px;
  background: #fff;
}
.nw-shot-prev, .nw-shot-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  font-size: 26px;
  line-height: 1;
}
.nw-shot-prev { left: 10px; }
.nw-shot-next { right: 10px; }
.nw-shots.is-single .nw-shot-prev,
.nw-shots.is-single .nw-shot-next { display: none; }
@keyframes nw-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.nw-kind {
  display: block;
  margin-top: 12px;
  color: #8a8a8a;
  font-size: 13px;
}
.nw-card h3 {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: none;
}
.nw-card p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.nw-card .nw-prices {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 10px 0 0;
  padding-bottom: 8px;
}
.nw-card .nw-price,
.nw-buy .nw-price {
  margin: 0;
  color: #e53543;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}
.nw-old {
  color: #9a9a9a;
  font-size: 13px;
  font-weight: 500;
  text-decoration: line-through;
}
.nw-buy .nw-prices { margin: 10px 0 16px; }
.nw-shots .nw-sale { top: 14px; left: 14px; }

/* ——— Карточка товара ——— */
.nw-product {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: auto;
  background: #f4f4f2;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0.3s;
  pointer-events: none;
}
.nw-product.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.nw-product-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(245, 245, 243, 0.9);
  backdrop-filter: blur(10px);
}
.nw-back, .nw-x {
  border: 0;
  background: transparent;
  font-size: 15px;
}
.nw-x { font-size: 28px; line-height: 1; }
.nw-product-grid {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto 40px;
  display: grid;
  gap: 22px;
}
.nw-shots img { width: 100%; border-radius: 12px; background: transparent; }
.nw-buy h2 {
  margin: 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: var(--engrave);
  font-weight: 500;
}
.nw-spec { margin: 16px 0; }
.nw-spec div { padding: 10px 0; border-top: 1px solid rgba(28, 28, 28, 0.1); }
.nw-spec dt { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.nw-spec dd { margin: 4px 0 0; color: var(--muted); }
.nw-note { color: var(--muted); font-size: 13px; }

/* ——— Преимущества и шаги ——— */
.nw-benefits, .nw-steps { display: grid; gap: 12px; }
.nw-benefit, .nw-step {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(28, 28, 28, 0.08);
}
.nw-benefit { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.nw-benefit svg { width: 24px; height: 24px; stroke: var(--ink); fill: none; stroke-width: 1.4; }
.nw-benefit h3, .nw-step h3 { margin: 0; font-size: 15px; font-weight: 600; }
.nw-benefit p, .nw-step p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.nw-step b {
  display: block;
  margin-bottom: 8px;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-shadow: var(--engrave);
}

/* ——— Отзывы ——— */
.nw-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.nw-slider::-webkit-scrollbar { display: none; }
.nw-slide {
  flex: 0 0 84%;
  scroll-snap-align: start;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #3a3a3a;
  background: #fff;
  border: 1px solid #e4e4e1;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.05);
}
.nw-arrows { display: flex; gap: 8px; margin-top: 12px; }
.nw-arrows button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7f7f5, #cfcfca);
  box-shadow: var(--plate);
}

/* ——— Вопросы ——— */
.nw-acc { width: min(760px, 100%); margin-inline: auto; }
.nw-acc details { border-bottom: 1px solid rgba(28, 28, 28, 0.12); }
.nw-acc summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
  cursor: pointer;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 14px;
  list-style: none;
}
.nw-acc summary::-webkit-details-marker { display: none; }
.nw-acc summary i { font-style: normal; transition: transform 0.25s ease-in-out; }
.nw-acc details[open] summary i { transform: rotate(45deg); }
.nw-acc details p {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 62ch;
}

/* ——— Подвал ——— */
.site-footer {
  position: static;
  width: 100%;
  margin: 0;
  padding: 56px 20px;
  color: #ffffff;
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    url("images/metal.jpg") center / cover no-repeat;
}
.site-footer-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  text-align: left;
}
.site-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 16px;
}
.site-footer-logo img { height: 28px; width: auto; }
.site-footer p { margin: 12px 0 0; color: #ffffff; font-size: 15px; }
.site-footer h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer a {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  text-decoration: none;
}
.site-footer a:hover { color: #ffffff; }
.site-meta-note {
  display: block;
  margin-top: 6px;
  max-width: 28ch;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 768px) {
  .site-footer { padding-bottom: 120px; }
  .site-footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

.nw-fab {
  position: fixed;
  z-index: 45;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #f4f4f2;
  background: linear-gradient(180deg, #5a5a5a, #1c1c1c);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  overflow: hidden;
}
.nw-fab svg { width: 22px; height: 22px; fill: currentColor; }

.nw-js .nw-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--d, 0ms);
}
.nw-js .nw-reveal.is-in { opacity: 1; transform: none; }

@media (min-width: 900px) {
  .nw-header { padding: 0 28px; }
  .nw-brand span { font-size: 13px; }
  .nw-hero-wide { width: min(1680px, calc(100vw - 64px)); }
  .nw-hero-panel {
    position: relative;
    display: block;
    min-height: calc(100vh - var(--header) - 48px);
    padding: 0;
    overflow: hidden;
    background: url("images/hero-lockup.jpg") left center / cover no-repeat;
  }
  .nw-hero-art {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .nw-hero-side {
    position: absolute;
    top: 46%;
    right: 5%;
    width: min(380px, 32%);
    transform: translateY(-50%);
    padding: 0;
    justify-items: center;
  }
  .nw-hero-cta { min-height: 62px; padding: 0 36px; font-size: 18px; }
  .nw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; row-gap: 72px; }
  .nw-product-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .nw-buy { position: sticky; top: 80px; }
  .nw-benefits, .nw-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nw-benefit { display: block; }
  .nw-slide { flex-basis: 32%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nw-js .nw-reveal, .nw-menu, .nw-product, .nw-card { transition: none; }
  .nw-js .nw-reveal { opacity: 1; transform: none; }
}
