:root {
  --ink: #161a22;
  --ink-soft: #2a3140;
  --fog: #d5dde8;
  --mist: #e8eef5;
  --paper: #f3f6fa;
  --line: rgba(22, 26, 34, 0.12);
  --accent: #3d6f8c;
  --accent-deep: #2a5369;
  --warm: #b8895a;
  --glow: rgba(61, 111, 140, 0.22);
  --shadow: 0 28px 80px rgba(14, 20, 30, 0.28);
  --radius: 18px;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 10% 6%, rgba(61, 111, 140, 0.16), transparent 32rem),
    radial-gradient(circle at 92% 4%, rgba(184, 137, 90, 0.14), transparent 28rem),
    linear-gradient(160deg, #e8eef5 0%, #dde5ef 42%, #f5f7fa 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(22, 26, 34, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 26, 34, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

.wrap {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem 0;
  color: #f4f7fb;
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.92rem;
}

.nav a {
  opacity: 0.86;
}

.nav a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 3.25rem 0 0.75rem;
  color: #f4f7fb;
  background: #121821;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 14, 22, 0.82) 0%, rgba(10, 14, 22, 0.45) 48%, rgba(10, 14, 22, 0.22) 100%),
    linear-gradient(180deg, rgba(10, 14, 22, 0.28) 0%, rgba(10, 14, 22, 0.76) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 0;
  max-width: 46rem;
  animation: rise 1s ease both;
}

.hero-copy p.kicker {
  margin: 0 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: #9fc0d4;
}

.hero-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero-copy .lead {
  margin: 0.35rem 0 0.65rem;
  max-width: 40rem;
  font-size: 0.92rem;
  line-height: 1.35;
  color: rgba(244, 247, 251, 0.84);
}

.hero .btn {
  min-height: 2.35rem;
  padding: 0.4rem 0.95rem;
  white-space: nowrap;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: #dfe8f0;
  color: #121821;
  font-weight: 700;
}

.btn-wb {
  border: 0;
  background: linear-gradient(90deg, #cb11ab 0%, #ff2d87 55%, #ff7aac 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(203, 17, 171, 0.28);
}

.btn-wb:hover {
  background: linear-gradient(90deg, #b80f99 0%, #f02478 55%, #ff6ba0 100%);
  color: #fff;
}

.btn-ozon {
  border: 0;
  background: linear-gradient(90deg, #005bff 0%, #0097fd 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(0, 91, 255, 0.24);
}

.btn-ozon:hover {
  background: linear-gradient(90deg, #0047cc 0%, #0086e0 100%);
  color: #fff;
}

.btn-digital {
  border: 0;
  cursor: pointer;
  font: inherit;
  background: linear-gradient(90deg, #b10f1a 0%, #e11d2e 55%, #ff4d4d 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(177, 15, 26, 0.28);
}

.btn-digital:hover {
  background: linear-gradient(90deg, #8e0c15 0%, #c41624 55%, #e83b3b 100%);
  color: #fff;
}

.btn-digital:disabled {
  background: #c5c8ce;
  color: #fff;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-digital:disabled:hover {
  background: #c5c8ce;
  color: #fff;
  transform: none;
}

.pay-note {
  margin: 0;
  padding: 0 0.9rem 0.9rem;
  color: var(--accent-deep);
  font-size: 0.92rem;
}

.btn-ghost {
  border: 1px solid rgba(244, 247, 251, 0.35);
  color: #f4f7fb;
}

.section {
  padding: 4.5rem 0;
}

#catalog {
  padding-top: 0.85rem;
}

.section-head {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
}

.section-head p {
  margin: 0;
  max-width: 36rem;
  color: rgba(22, 26, 34, 0.68);
}

.category-plaques {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.category-plaque {
  display: grid;
  gap: 0.1rem;
  min-height: 0;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.category-plaque strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.1;
}

.category-plaque span {
  font-size: 0.82rem;
  color: rgba(22, 26, 34, 0.55);
}

.category-plaque:hover {
  transform: translateY(-2px);
  border-color: rgba(61, 111, 140, 0.45);
}

.category-plaque.is-active {
  border-color: rgba(61, 111, 140, 0.7);
  background: linear-gradient(180deg, rgba(61, 111, 140, 0.14), rgba(255, 255, 255, 0.9));
  box-shadow: 0 10px 24px rgba(22, 26, 34, 0.08);
}

.filters {
  display: grid;
  grid-template-columns: 1.6fr minmax(12rem, 0.8fr);
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.filters input,
.filters select {
  width: 100%;
  min-height: 2.4rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  outline: none;
}

.filters input:focus,
.filters select:focus {
  border-color: rgba(61, 111, 140, 0.55);
  box-shadow: 0 0 0 4px var(--glow);
}

.catalog-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.55rem;
  color: rgba(22, 26, 34, 0.62);
  font-size: 0.92rem;
}

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.pager-btn {
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.pager-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.pager-status {
  color: rgba(22, 26, 34, 0.62);
  font-size: 0.92rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.card {
  display: grid;
  gap: 0.85rem;
  width: 100%;
  padding: 0;
  cursor: pointer;
  text-align: left;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(22, 26, 34, 0.08);
  box-shadow: 0 10px 30px rgba(22, 26, 34, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: rise 0.7s ease both;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-media {
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  background: #d5dde8;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-media img {
  transform: scale(1.05);
}

.card-body {
  display: grid;
  gap: 0.45rem;
  padding: 0 1rem 1.1rem;
}

.card-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1.15;
}

.card-body .meta {
  color: rgba(22, 26, 34, 0.62);
  font-size: 0.9rem;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
}

.price-row strong {
  font-size: 1.05rem;
}

.price-row s {
  color: rgba(22, 26, 34, 0.45);
  font-size: 0.9rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chip {
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(22, 26, 34, 0.06);
  font-size: 0.75rem;
}

.card-buy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.card-buy .btn {
  min-height: 2.35rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

.empty {
  padding: 2rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: rgba(22, 26, 34, 0.62);
}

.about {
  display: grid;
  gap: 1.5rem;
}

.about-panel {
  padding: 1.6rem;
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(22, 26, 34, 0.08);
}

.about-panel h2 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.about-panel p {
  margin: 0;
  line-height: 1.6;
  color: rgba(22, 26, 34, 0.72);
}

.about-panel p + p,
.about-panel ul {
  margin-top: 0.85rem;
}

.about-panel ul {
  margin-bottom: 0;
  padding-left: 1.15rem;
  line-height: 1.55;
  color: rgba(22, 26, 34, 0.78);
}

.paper-links {
  margin-top: 1.15rem;
}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: rgba(22, 26, 34, 0.62);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
}

.footer-links a:hover {
  color: var(--ink);
}

.legal-top {
  padding: 1.35rem 0 0;
}

.legal-top a {
  font-weight: 600;
}

.legal {
  padding: 1.25rem 0 3rem;
}

.legal-doc h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.1;
}

.legal-doc h2 {
  margin: 1.45rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.legal-doc p,
.legal-doc li {
  line-height: 1.6;
  color: rgba(22, 26, 34, 0.78);
}

.legal-doc p {
  margin: 0.55rem 0;
}

.legal-doc ol,
.legal-doc ul {
  margin: 0.35rem 0 0.8rem;
  padding-left: 1.2rem;
}

.legal-doc a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 22, 0.62);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(90vh, 820px);
  overflow: auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  background: #f5f7fa;
  border-radius: 24px;
  box-shadow: var(--shadow);
  animation: rise 0.35s ease both;
}

.modal-gallery {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  background: #d5dde8;
}

.modal-stage {
  position: relative;
  display: grid;
  place-items: center;
  background: #d5dde8;
}

.modal-stage > img {
  width: 100%;
  height: auto;
  max-height: 380px;
  min-height: 200px;
  object-fit: contain;
  background: #d5dde8;
}

.img-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(22, 26, 34, 0.12);
}

.img-nav[hidden] {
  display: none;
}

#modalPrev {
  left: 0.65rem;
}

#modalNext {
  right: 0.65rem;
}

.thumbs {
  display: flex;
  gap: 0.45rem;
  padding: 0.75rem;
  overflow-x: auto;
}

.thumbs button {
  flex: 0 0 auto;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.7;
}

.thumbs button.active {
  border-color: var(--accent);
  opacity: 1;
}

.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0 0.75rem 0.9rem;
}

.modal-buy {
  padding: 0.15rem 0 0;
}

.modal-info {
  padding: 1.25rem 1.35rem 1.5rem;
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.modal-info .code {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(22, 26, 34, 0.5);
}

.modal-info h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.15;
}

.specs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.specs li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(22, 26, 34, 0.08);
  font-size: 0.92rem;
}

.specs li span {
  color: rgba(22, 26, 34, 0.58);
}

.desc-toggle {
  justify-self: start;
  color: var(--accent-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.desc {
  margin: 0;
  line-height: 1.55;
  color: rgba(22, 26, 34, 0.72);
  white-space: pre-wrap;
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 3;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 1.4rem;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(22, 26, 34, 0.12);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

@media (max-width: 980px) {
  .category-plaques {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .modal-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .category-plaques,
  .grid,
  .filters {
    grid-template-columns: 1fr 1fr;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.6rem;
  }
}

@media (max-width: 520px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}
