/*
 * /nerzh-lestnicy/
 * Scoped styles for the stainless / brass / glass landing page.
 * The base theme comes from /css/style.css loaded by /includes/header.php.
 */

.nl-landing {
  color: var(--text);
  background: transparent;
}

.nl-landing *,
.nl-modal * {
  box-sizing: border-box;
}

.nl-container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.nl-section {
  padding: 24px 0;
}

.nl-section--compact {
  padding-top: 0;
}

.nl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 8px 14px;
  border: 1px solid rgba(29,29,31,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #4a4a4f;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .01em;
}

/* HERO */
.nl-hero {
  padding: 18px 0 24px;
}

.nl-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.5fr);
  gap: 24px;
  align-items: stretch;
}

.nl-hero__content,
.nl-hero__visual {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.nl-hero__content {
  padding: 34px;
  background: var(--surface);
}

.nl-hero h1 {
  max-width: 790px;
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(40px, 5vw, 54px);
  line-height: .98;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.nl-lead {
  max-width: 720px;
  margin: 0;
  color: #4f4f53;
  font-size: 19px;
  line-height: 1.55;
}

.nl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.nl-btn {
  appearance: none;
  min-height: 50px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: .2s ease;
}

.nl-btn:hover {
  transform: translateY(-1px);
}

.nl-btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #2a2a2d, #1d1d1f);
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

.nl-btn--primary:hover {
  background: linear-gradient(180deg, #3a3a3d, #111);
}

.nl-btn--secondary {
  color: #1d1d1f;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(29,29,31,.08);
  backdrop-filter: blur(18px);
}

.nl-btn--wide {
  width: 100%;
}

.nl-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
  margin: 28px 0 0;
}

.nl-hero__facts > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(29,29,31,.06);
  border-radius: 14px;
  background: rgba(255,255,255,.64);
  line-height: 1.3;
}

.nl-hero__facts strong,
.nl-hero__facts span {
  display: block;
}

.nl-hero__facts strong {
  margin-bottom: 3px;
  font-size: 16px;
}

.nl-hero__facts span {
  color: var(--muted);
  font-size: 12px;
}

.nl-hero__visual {
  position: relative;
  min-height: 450px;
  overflow: hidden;
  background: linear-gradient(180deg,#f0f0f3,#dfe1e7);
}

.nl-hero__visual-main {
  position: absolute;
  inset: 0;
  background: #e7e8ed center/cover no-repeat;
}

.nl-hero__visual-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 48%, rgba(0,0,0,.34));
}

.nl-hero__badge {
  position: absolute;
  z-index: 2;
  left: 24px;
  bottom: 24px;
  max-width: calc(100% - 48px);
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  color: #2c2c2e;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(18px);
}

/* MATERIAL FILTERS */
.nl-materials {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.nl-material {
  min-width: 0;
  min-height: 96px;
  padding: 16px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 12px;
  align-items: center;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.68);
  color: #3a3a3c;
  font: inherit;
  cursor: pointer;
  transition: .2s ease;
}

.nl-material:hover {
  transform: translateY(-2px);
  border-color: rgba(29,29,31,.13);
  box-shadow: 0 16px 34px rgba(0,0,0,.06);
}

.nl-material.is-active {
  color: #fff;
  background: #1d1d1f;
  border-color: #1d1d1f;
}

.nl-material__num {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(29,29,31,.06);
  color: #1d1d1f;
  font-weight: 800;
}

.nl-material.is-active .nl-material__num {
  color: #1d1d1f;
  background: #fff;
}

.nl-material b,
.nl-material small {
  display: block;
}

.nl-material b {
  color: inherit;
  font-size: 15px;
}

.nl-material small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.nl-material.is-active small {
  color: rgba(255,255,255,.62);
}

/* SECTION HEADINGS */
.nl-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 18px 30px;
  margin-bottom: 22px;
}

.nl-section-head > div {
  min-width: 0;
}

.nl-section-head h2,
.nl-cta h2,
.nl-request h2,
.detail-content h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -.04em;
  font-weight: 700;
}

.nl-section-head > p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.nl-catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.nl-text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #1d1d1f;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.nl-text-button:hover {
  text-decoration: underline;
}

/* PRODUCT CARDS */
.nl-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}

.nl-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}

.nl-card:hover,
.nl-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,.12);
  outline: none;
}

.nl-card__image {
  position: relative;
  aspect-ratio: 9/10;
  overflow: hidden;
  background: linear-gradient(135deg,#f8f8fa,#dde1e8);
}

.nl-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .45s ease;
}

.nl-card:hover .nl-card__image img {
  transform: scale(1.04);
}

.nl-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(29,29,31,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: #1d1d1f;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.nl-card__body {
  padding: 20px;
}

.nl-card h3 {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
}

.nl-card__props {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nl-card__props span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.64);
  color: var(--muted);
  font-size: 12px;
}

.nl-card__footer {
  margin-top: 18px;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.nl-card__footer strong {
  font-size: 15px;
}

.nl-card__more {
  color: #3a3a3c;
  font-size: 14px;
  font-weight: 700;
}

/* PROCESS */
.nl-section--soft > .nl-container {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.nl-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}

.nl-steps article {
  min-width: 0;
  min-height: 215px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.70);
  transition: transform .2s ease, box-shadow .2s ease;
}

.nl-steps article:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0,0,0,.07);
}

.nl-steps article > span {
  display: inline-flex;
  margin-bottom: 34px;
  color: #8e8e93;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.nl-steps h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}

.nl-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* CTA */
.nl-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--radius);
  background: linear-gradient(135deg,rgba(255,255,255,.76),rgba(235,237,243,.9));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.nl-cta > div {
  max-width: 760px;
}

.nl-cta h2 {
  font-size: clamp(30px,4vw,44px);
}

.nl-cta p {
  max-width: 700px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

/* MODALS */
body.nl-modal-open {
  overflow: hidden;
}

.nl-modal {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.nl-modal.open {
  display: flex;
}

.nl-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.35);
  backdrop-filter: blur(8px);
}

.nl-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1500px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 28px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 24px 80px rgba(0,0,0,.16);
  backdrop-filter: blur(18px);
}

.nl-modal__dialog--product {
  padding: 24px;
}

.nl-modal__close {
  position: sticky;
  z-index: 20;
  top: 0;
  float: right;
  width: 42px;
  height: 42px;
  margin: -8px -8px 0 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.82);
  color: #1d1d1f;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* Product detail uses the same vocabulary as product.js/style.css, scoped to popup */
.nl-modal .detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
  gap: 32px;
  align-items: start;
  clear: both;
}

.nl-modal .detail-gallery {
  min-width: 0;
}

.nl-modal .detail-slider {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #f5f5f5;
}

.nl-modal .detail-slider-track-wrap {
  overflow: hidden;
  width: 100%;
}

.nl-modal .detail-slider-track {
  display: flex;
  transition: transform .35s ease;
  will-change: transform;
}

.nl-modal .detail-slide {
  min-width: 100%;
  flex: 0 0 100%;
  height: min(70vh, 760px);
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
}

.nl-modal .detail-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  background: #f3f3f3;
}

.nl-modal .detail-slider-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #222;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.14);
  transform: translateY(-50%);
}

.nl-modal .detail-slider-btn--prev { left: 14px; }
.nl-modal .detail-slider-btn--next { right: 14px; }

.nl-modal .detail-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.nl-modal .detail-thumb {
  width: 76px;
  height: 76px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.nl-modal .detail-thumb.is-active {
  border-color: #1d1d1f;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

.nl-modal .detail-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.nl-modal .detail-content {
  min-width: 0;
  padding: 8px 0;
}

.nl-modal .detail-content h2 {
  font-size: clamp(30px,3.5vw,46px);
}

.nl-modal .price-box {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.68);
}

.nl-modal .price-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.nl-modal .props {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  color: #3a3a3c;
  font-size: 14px;
}

.nl-modal .props span {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.nl-modal .props b {
  color: #111827;
}

.nl-modal .detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

/* Lightbox */
.nl-modal .image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100010;
  display: none;
  padding: 24px;
}

.nl-modal .image-lightbox.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nl-modal .image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center,rgba(255,255,255,.05),rgba(0,0,0,.18) 35%,rgba(0,0,0,.92) 100%);
  backdrop-filter: blur(4px);
}

.nl-modal .image-lightbox__content {
  position: relative;
  z-index: 2;
  width: auto;
  height: auto;
  max-width: min(92vw,1400px);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nl-modal .image-lightbox__content img {
  width: auto;
  height: auto;
  max-width: min(92vw,1400px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

.nl-modal .image-lightbox__close,
.nl-modal .image-lightbox__nav {
  position: absolute;
  z-index: 3;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  cursor: pointer;
}

.nl-modal .image-lightbox__close {
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  font-size: 30px;
}

.nl-modal .image-lightbox__nav {
  top: 50%;
  width: 52px;
  height: 52px;
  font-size: 34px;
  transform: translateY(-50%);
}

.nl-modal .image-lightbox__nav--prev { left: 24px; }
.nl-modal .image-lightbox__nav--next { right: 24px; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .nl-hero__grid { grid-template-columns: 1fr 1fr; }
  .nl-materials { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nl-products { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nl-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .nl-hero__grid,
  .nl-modal .detail-layout {
    grid-template-columns: 1fr;
  }

  .nl-hero__visual {
    min-height: 420px;
  }

  .nl-modal .detail-slide {
    height: 520px;
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .nl-container {
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
  }

  .nl-hero {
    padding-top: 12px;
  }

  .nl-hero__content,
  .nl-section--soft > .nl-container,
  .nl-cta {
    padding: 22px;
  }

  .nl-hero__grid {
    grid-template-columns: 1fr;
  }

  .nl-hero h1 {
    font-size: clamp(38px,11vw,54px);
  }

  .nl-lead {
    font-size: 17px;
  }

  .nl-hero__facts {
    grid-template-columns: 1fr;
  }

  .nl-hero__visual {
    min-height: 340px;
  }

  .nl-materials,
  .nl-products,
  .nl-steps {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .nl-materials {
    padding: 12px;
  }

  .nl-card h3 {
    min-height: 0;
  }

  .nl-hero__actions,
  .nl-modal .detail-actions {
    flex-direction: column;
  }

  .nl-hero__actions .nl-btn,
  .nl-modal .detail-actions .nl-btn,
  .nl-cta .nl-btn {
    width: 100%;
  }

  .nl-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .nl-modal {
    padding: 8px;
  }

  .nl-modal__dialog {
    max-height: calc(100vh - 16px);
    border-radius: 22px;
  }

  .nl-modal__dialog--product {
    padding: 18px;
  }

  .nl-modal .detail-slide {
    height: 380px;
    min-height: 0;
  }

  .nl-modal .detail-thumb {
    width: 68px;
    height: 68px;
  }

  .nl-modal .props span {
    display: grid;
    gap: 3px;
  }

  .nl-modal .image-lightbox {
    padding: 16px;
  }

  .nl-modal .image-lightbox__nav {
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .nl-modal .image-lightbox__nav--prev { left: 10px; }
  .nl-modal .image-lightbox__nav--next { right: 10px; }

  .nl-card__image {
    aspect-ratio: 4/3;
  }
}

@media (max-width: 480px) {
  .nl-hero__content,
  .nl-section--soft > .nl-container,
  .nl-cta {
    padding: 18px;
    border-radius: 22px;
  }

  .nl-hero__visual,
  .nl-card,
  .nl-materials {
    border-radius: 22px;
  }

  .nl-hero__visual {
    min-height: 300px;
  }

  .nl-hero__badge {
    left: 14px;
    right: 14px;
    bottom: 14px;
    max-width: none;
  }

  .nl-catalog-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .nl-modal .detail-slide {
    height: 300px;
    min-height: 0;
  }

  .nl-modal .detail-thumb {
    width: 60px;
    height: 60px;
  }
}
