:root {
  --black: #080807;
  --dark: #11100e;
  --cream: #e8e0d3;
  --text: #f1eadf;
  --muted: #b7ada0;
  --line: rgba(241, 234, 223, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

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

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

.header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 84px;
  padding: 0 64px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  color: var(--text);
  font-family: "Cinzel", serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;

  background: transparent;
  border-bottom: 1px solid transparent;

  transition:
    background 0.35s ease,
    backdrop-filter 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.header.scrolled {
  background: rgba(8, 8, 8, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.logo {
  font-family: "Cinzel", serif;
  font-size: 28px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.nav {
  display: flex;
  gap: 48px;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 36px;
}

.hero {
  position: relative;
  min-height: 800px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0) 24%, rgba(0,0,0,0) 72%, rgba(0,0,0,.65)),
    linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,.03));
  pointer-events: none;
  z-index: 1;
}

.story::after,
.catalog-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.05));
  pointer-events: none;
}

.hero-img,
.story-img,
.catalog-bg {
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  z-index: 2;
  top: 240px;
  left: 112px;
  max-width: 460px;
}

.eyebrow {
  margin: 0 0 34px;
  font-family: "Cinzel", serif;
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
}

.hero h1 {
  font-size: 86px;
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-text {
  margin: 38px 0 42px;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0.12em;
  color: #eee5d8;
}

.text-link {
  position: relative;
  font-family: "Cinzel", serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.text-link::after {
  content: "";
  display: block;
  width: 84px;
  height: 1px;
  margin-top: 10px;
  background: currentColor;
}

.quality {
  background: var(--cream);
  color: #171513;
  padding: 96px 64px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 86px;
}

.section-head h2 {
  font-size: 54px;
  line-height: 1.02;
  text-transform: uppercase;
}

.section-head p {
  max-width: 520px;
  text-align: center;
  font-size: 17px;
  line-height: 1.55;
  color: #3c3833;
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.quality-card {
  border: 1px solid rgba(0,0,0,.14);
}

.quality-card img {
  height: 230px;
  object-fit: cover;
}

.quality-card div {
  min-height: 220px;
  padding: 32px;
}

.quality-card span {
  font-weight: 600;
  color: #77716a;
  letter-spacing: 0.12em;
}

.quality-card h3 {
  margin-top: 22px;
  font-size: 34px;
}

.quality-card p {
  font-size: 16px;
  line-height: 1.55;
}

.gallery {
  padding: 86px 64px 108px;
  background: var(--black);
}

.gallery-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 34px;
}

.gallery-top h2 {
  font-size: 72px;
}

.gallery-top p {
  text-align: right;
  color: var(--muted);
  line-height: 1.5;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-auto-rows: 285px;
  gap: 16px;
}

.gallery-grid img {
  height: 100%;
  object-fit: cover;
}

.gallery-large {
  grid-row: span 2;
}

.gallery-note {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gallery-note h3 {
  font-size: 32px;
  line-height: 1.2;
}

.gallery-note p {
  margin-top: 30px;
  font-family: "Cormorant Garamond", serif;
  color: var(--muted);
}

.collection {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 60px;
  padding: 92px 64px;
  background: var(--cream);
  color: #171513;
}

.collection-text h2 {
  font-size: 44px;
  line-height: 0.95;
  text-transform: uppercase;
}

.collection-text p {
  margin: 34px 0 150px;
  font-size: 16px;
  line-height: 1.55;
  color: #37332f;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card img {
  aspect-ratio: 1 / 1.3;
  object-fit: cover;
}

.product-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  font-family: "Cinzel", serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-row.small {
  margin-top: 36px;
  font-family: "Inter", sans-serif;
  text-transform: none;
  letter-spacing: 0;
  color: #3d3935;
}

.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(241, 234, 223, 0.32);
  border-bottom: 1px solid rgba(241, 234, 223, 0.32);
  background: #080807;
  color: #d6cfc4;
  font-family: "Cinzel", serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.marquee span {
  position: relative;
  padding: 18px 42px;
  white-space: nowrap;
}

.marquee span::after {
  content: "";
  position: absolute;
  right: 0;
  top: 17px;
  width: 1px;
  height: 18px;
  background: rgba(241, 234, 223, 0.65);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.story {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.story-content {
  position: absolute;
  z-index: 2;
  top: 130px;
  left: 68px;
}

.story .eyebrow {
  font-size: 16px;
  letter-spacing: 0.38em;
  line-height: 1;
}

.story h2 {
  font-size: 62px;
  line-height: 0.95;
  text-transform: uppercase;
}

.story p:not(.eyebrow) {
  margin: 32px 0 98px;
  color: #d6cfc4;
  font-size: 18px;
  line-height: 1.4;
}

.catalog-cta {
  position: relative;
  min-height: 755px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #080807;
}

.catalog-bg-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.catalog-bg-slider img {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 140%;
  max-width: none;
  object-fit: cover;
  transform: translateX(-50%);
  animation: catalog-pan 38s ease-in-out infinite alternate;
}

@keyframes catalog-pan {
  0% {
    transform: translateX(-56%);
  }

  100% {
    transform: translateX(-44%);
  }
}

.catalog-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  pointer-events: none;
  z-index: 1;
}

.catalog-cta::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 64px;
  right: 64px;
  top: 32px;
  bottom: 32px;
  border-top: 1px solid rgba(241, 234, 223, 0.22);
  border-bottom: 1px solid rgba(241, 234, 223, 0.22);
  pointer-events: none;
}

.catalog-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 0 24px;
  text-align: center;
}

.catalog-content .eyebrow::after {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  margin: 18px auto 0;
  background: rgba(241, 234, 223, 0.65);
}


.catalog-content .eyebrow {
  margin-bottom: 34px;
}

.catalog-content h2 {
  font-size: 72px;
  line-height: 1.05;
  text-transform: uppercase;
}

.catalog-content p {
  margin: 42px 0 88px;
  font-size: 18px;
  line-height: 1.4;
  color: #e0d8cd;
}

.big-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 308px;
  height: 48px;
  background: var(--cream);
  color: #111;
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer {
  padding: 88px 64px 28px;
  background: var(--black);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr .8fr .8fr .8fr 1.8fr;
  gap: 56px;
  padding-bottom: 58px;
  border-bottom: 1px solid var(--line);
}

.footer h2 {
  font-family: "Cinzel", serif;
  font-size: 30px;
  color: var(--text);
  margin-bottom: 86px;
}

.footer h4 {
  margin: 0 0 32px;
  font-family: "Cinzel", serif;
  color: var(--text);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
}

.footer a {
  display: block;
  margin-bottom: 18px;
}

.footer p {
  line-height: 1.45;
}

.footer form {
  margin-top: 22px;
  display: flex;
  height: 48px;
  border: 1px solid var(--line);
}

.footer input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0 16px;
  font-family: "Cinzel", serif;
  letter-spacing: 0.14em;
}

.footer button {
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0 18px;
  font-family: "Cinzel", serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.16em;
}

@media (max-width: 900px) {
  .header {
    padding: 0 24px;
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .header-actions {
    gap: 18px;
    font-size: 10px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    left: 28px;
    top: 220px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .quality,
  .gallery,
  .collection,
  .footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .section-head,
  .gallery-top {
    display: block;
  }

  .section-head p,
  .gallery-top p {
    text-align: left;
  }

  .quality-grid,
  .product-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .collection-text p {
    margin-bottom: 42px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery-grid img,
  .gallery-large {
    height: auto;
    grid-row: auto;
  }

  .catalog-content h2 {
    font-size: 46px;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom span {
    display: block;
    margin-bottom: 14px;
  }
}

/* Затемнение фотографий в галерее */
.gallery-grid img {
  filter: brightness(0.78);
}

/* На наведении чуть светлее */
.gallery-grid img:hover {
  filter: brightness(0.95);
  transition: filter 0.3s ease;
}

/* Затемнение сверху и снизу в карточках коллекции */
.product-card img {
  filter: brightness(0.9);
}

/* Более кинематографичная виньетка на карточках */
.product-card {
  position: relative;
}

.product-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(100% - 92px);
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.16), rgba(0,0,0,0) 22%, rgba(0,0,0,0) 72%, rgba(0,0,0,0.16));
}

.footer h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin-top: 28px;
  background: rgba(241, 234, 223, 0.28);
}
/* ==============================
   CATALOG PAGE
   ============================== */

.catalog-page {
  background: var(--black);
  color: var(--text);
  min-height: 100vh;
}

.catalog-hero-screen {
  min-height: 520px;
  padding: 170px 64px 92px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 72% 22%, rgba(232, 224, 211, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(232, 224, 211, 0.08), rgba(8, 8, 7, 0) 48%),
    #080807;
  border-bottom: 1px solid rgba(241, 234, 223, 0.18);
}

.catalog-hero-screen h1 {
  max-width: 820px;
  font-size: 92px;
  line-height: 0.9;
  text-transform: uppercase;
}

.catalog-hero-screen p:not(.eyebrow) {
  max-width: 590px;
  margin: 38px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.catalog-constructor {
  padding: 88px 64px 110px;
}

.quick-catalog {
  margin-bottom: 96px;
  padding: 34px;
  border: 1px solid rgba(241, 234, 223, 0.18);
  background:
    radial-gradient(circle at 80% 18%, rgba(232,224,211,.10), transparent 28%),
    linear-gradient(135deg, rgba(232,224,211,.05), rgba(232,224,211,0) 42%),
    #0c0b0a;
}

.quick-catalog-head {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1fr);
  gap: 46px;
  align-items: end;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(241, 234, 223, 0.16);
}

.quick-catalog-head .eyebrow {
  margin-bottom: 16px;
  color: var(--muted);
}

.quick-catalog-head h2 {
  font-size: 46px;
  line-height: 1;
  text-transform: uppercase;
}

.quick-catalog-head p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.quick-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.quick-filter {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid rgba(241, 234, 223, 0.25);
  background: transparent;
  color: var(--text);
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.quick-filter:hover,
.quick-filter.is-active {
  background: var(--cream);
  color: #111;
  border-color: var(--cream);
}

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

.quick-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.quick-product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(241, 234, 223, 0.16);
  background: #11100e;
  color: var(--text);
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}

.quick-product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(241, 234, 223, 0.48);
  background: #151311;
}

.quick-product-kicker {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  right: 18px;
  font-family: "Cinzel", serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(241, 234, 223, 0.74);
}

.quick-product-image {
  height: 255px;
  overflow: hidden;
  background: var(--cream);
}

.quick-product-image img {
  height: 100%;
  object-fit: cover;
  filter: brightness(0.84);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.quick-product-card:hover .quick-product-image img {
  transform: scale(1.045);
  filter: brightness(0.96);
}

.quick-product-info {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  font-family: "Cinzel", serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-product-info h3 {
  font-size: 20px;
  line-height: 1.05;
}

.quick-product-info strong {
  white-space: nowrap;
  font-size: 13px;
}

.quick-empty {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px solid rgba(241, 234, 223, 0.16);
  color: var(--muted);
}

.quick-empty h3 {
  color: var(--text);
  font-size: 30px;
}

.catalog-step {
  margin-bottom: 76px;
}

.catalog-step.is-hidden,
.product-result.is-hidden {
  display: none;
}

.catalog-step-head {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}

.catalog-step-head > span {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(241, 234, 223, 0.34);
  border-radius: 50%;
  font-family: "Cinzel", serif;
  font-size: 13px;
  color: var(--muted);
}

.catalog-step-head h2 {
  font-size: 46px;
  line-height: 1;
  text-transform: uppercase;
}

.catalog-step-head p {
  max-width: 570px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.choice-grid {
  display: grid;
  gap: 18px;
}

.anime-choice-grid {
  grid-template-columns: repeat(5, 1fr);
}

.design-choice-grid,
.garment-choice-grid {
  grid-template-columns: repeat(3, 1fr);
}

.choice-tile {
  position: relative;
  min-height: 260px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(241, 234, 223, 0.18);
  background: #11100e;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition:
    transform 0.28s ease,
    opacity 0.28s ease,
    border-color 0.28s ease,
    filter 0.28s ease;
}

.choice-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.04), rgba(0,0,0,0.72)),
    var(--tile-bg, radial-gradient(circle at 50% 30%, rgba(232,224,211,.25), transparent 38%));
  filter: contrast(1.08);
}

.choice-tile::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  bottom: 18px;
  z-index: 1;
  border: 1px solid rgba(241, 234, 223, 0.16);
  pointer-events: none;
}

.choice-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(241, 234, 223, 0.45);
}

.choice-tile.is-selected {
  border-color: var(--cream);
  transform: translateY(-6px);
}

.choice-tile.is-muted {
  opacity: 0.34;
  filter: grayscale(1);
}

.choice-tile-content {
  position: relative;
  z-index: 2;
  min-height: 212px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.choice-tile-kicker {
  margin-bottom: auto;
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(241, 234, 223, 0.68);
}

.choice-tile h3 {
  font-size: 33px;
  line-height: 1;
}

.choice-tile p {
  margin: 14px 0 0;
  color: #d4cbc0;
  line-height: 1.45;
}

.garment-choice-grid .choice-tile {
  min-height: 210px;
}

.garment-choice-grid .choice-tile-content {
  min-height: 162px;
}

.product-result {
  margin-top: 18px;
  border-top: 1px solid rgba(241, 234, 223, 0.22);
  padding-top: 76px;
}

.product-detail-card {
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) minmax(360px, 0.9fr);
  gap: 58px;
  align-items: stretch;
}

.product-detail-media {
  position: relative;
  min-height: 660px;
  background: var(--cream);
  overflow: hidden;
}

.product-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92);
}

.product-detail-info {
  padding: 54px;
  border: 1px solid rgba(241, 234, 223, 0.22);
  background:
    linear-gradient(135deg, rgba(232,224,211,.08), rgba(232,224,211,0) 38%),
    #0d0c0b;
}

.product-detail-info .eyebrow {
  margin-bottom: 22px;
  color: var(--muted);
}

.product-detail-info h2 {
  font-size: 62px;
  line-height: 0.94;
  text-transform: uppercase;
}

.product-price {
  margin-top: 30px;
  font-family: "Cinzel", serif;
  font-size: 24px;
  letter-spacing: 0.08em;
}

.product-description {
  max-width: 520px;
  margin: 34px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.product-options {
  margin-top: 42px;
}

.product-options h3 {
  margin-bottom: 16px;
  font-family: "Cinzel", serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.size-btn {
  width: 54px;
  height: 42px;
  border: 1px solid rgba(241, 234, 223, 0.34);
  background: transparent;
  color: var(--text);
  font-family: "Cinzel", serif;
  cursor: pointer;
}

.size-btn:hover,
.size-btn.is-selected {
  background: var(--cream);
  color: #111;
}

.product-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 40px;
  color: var(--muted);
  line-height: 1.45;
}

.product-meta strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 46px;
}

.product-actions .big-btn {
  min-width: 260px;
  height: 52px;
  font-size: 15px;
}

.secondary-btn {
  min-width: 210px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(241, 234, 223, 0.34);
  font-family: "Cinzel", serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .anime-choice-grid,
  .quick-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .design-choice-grid,
  .garment-choice-grid,
  .product-detail-card {
    grid-template-columns: 1fr;
  }

  .product-detail-media {
    min-height: 520px;
  }
}

@media (max-width: 900px) {
  .catalog-hero-screen,
  .catalog-constructor {
    padding-left: 24px;
    padding-right: 24px;
  }

  .quick-catalog {
    padding: 24px;
  }

  .quick-catalog-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .quick-catalog-head h2 {
    font-size: 36px;
  }

  .quick-product-grid {
    grid-template-columns: 1fr;
  }

  .catalog-hero-screen h1 {
    font-size: 56px;
  }

  .catalog-step-head {
    grid-template-columns: 1fr;
  }

  .catalog-step-head h2 {
    font-size: 36px;
  }

  .anime-choice-grid,
  .design-choice-grid,
  .garment-choice-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-info {
    padding: 32px 24px;
  }

  .product-detail-info h2 {
    font-size: 42px;
  }

  .product-meta {
    grid-template-columns: 1fr;
  }
}

/* === MOKUTON catalog cards v2: cleaner quick cards + visible tags === */
.quick-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.quick-product-card {
  display: flex;
  flex-direction: column;
  min-height: 407px;
  border: 1px solid rgba(241, 234, 223, 0.18);
  background: #080807;
  color: rgba(241, 234, 223, 0.82);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    color 0.28s ease;
}

.quick-product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(241, 234, 223, 0.58);
  background: #0d0c0b;
  color: #fff;
}

.quick-product-kicker {
  display: none;
}

.quick-product-image {
  height: 285px;
  background: var(--cream);
  overflow: hidden;
  border-bottom: 1px solid rgba(241, 234, 223, 0.12);
}

.quick-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88) saturate(0.96);
  transition: transform 0.55s ease, filter 0.55s ease;
}

.quick-product-card:hover .quick-product-image img {
  transform: scale(1.04);
  filter: brightness(1) saturate(1);
}

.quick-product-info {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "title price"
    "subtitle tags";
  column-gap: 24px;
  row-gap: 10px;
  align-items: start;
  padding: 24px 26px 26px;
  min-height: 122px;
  font-family: "Cinzel", serif;
  letter-spacing: 0.06em;
  text-transform: none;
}

.quick-product-info h3 {
  grid-area: title;
  margin: 0;
  max-width: 260px;
  color: rgba(241, 234, 223, 0.88);
  font-family: "Inter", sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: none;
  transition: color 0.28s ease;
}

.quick-product-card:hover .quick-product-info h3 {
  color: #fff;
}

.quick-product-subtitle {
  grid-area: subtitle;
  color: rgba(241, 234, 223, 0.55);
  font-family: "Cinzel", serif;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.28s ease;
}

.quick-product-card:hover .quick-product-subtitle {
  color: rgba(241, 234, 223, 0.82);
}

.quick-product-info strong {
  grid-area: price;
  white-space: nowrap;
  color: rgba(241, 234, 223, 0.86);
  font-family: "Inter", sans-serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.28s ease;
}

.quick-product-card:hover .quick-product-info strong {
  color: #fff;
}

.quick-product-tags {
  grid-area: tags;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  max-width: 170px;
}

.quick-product-tags span {
  color: rgba(241, 234, 223, 0.42);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: none;
  transition: color 0.28s ease;
}

.quick-product-card:hover .quick-product-tags span {
  color: rgba(241, 234, 223, 0.88);
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
}

.product-tags span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(241, 234, 223, 0.24);
  color: rgba(241, 234, 223, 0.76);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  letter-spacing: 0.02em;
}

@media (max-width: 1100px) {
  .quick-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .quick-product-info {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "subtitle"
      "price"
      "tags";
  }

  .quick-product-tags {
    align-items: flex-start;
  }
}

/* === Product detail gallery with multiple images === */
.product-detail-media {
  display: flex;
  flex-direction: column;
  min-height: 660px;
}

.product-main-image-wrap {
  flex: 1;
  min-height: 560px;
  overflow: hidden;
  background: var(--cream);
}

.product-main-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  filter: brightness(0.92);
  transition: transform 0.55s ease, filter 0.35s ease;
}

.product-detail-media:hover .product-main-image-wrap img {
  transform: scale(1.025);
  filter: brightness(0.98);
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 10px;
  padding: 14px;
  border-top: 1px solid rgba(241, 234, 223, 0.16);
  background: #080807;
}

.product-thumb {
  height: 88px;
  padding: 0;
  border: 1px solid rgba(241, 234, 223, 0.18);
  background: var(--cream);
  cursor: pointer;
  overflow: hidden;
  opacity: 0.55;
  transition:
    opacity 0.28s ease,
    border-color 0.28s ease,
    transform 0.28s ease;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.86);
  transition: transform 0.38s ease, filter 0.28s ease;
}

.product-thumb:hover,
.product-thumb.is-selected {
  opacity: 1;
  border-color: rgba(241, 234, 223, 0.72);
  transform: translateY(-2px);
}

.product-thumb:hover img,
.product-thumb.is-selected img {
  transform: scale(1.06);
  filter: brightness(1);
}

@media (max-width: 1100px) {
  .product-detail-media {
    min-height: auto;
  }

  .product-main-image-wrap {
    min-height: 480px;
  }

  .product-main-image-wrap img {
    min-height: 480px;
  }
}

@media (max-width: 560px) {
  .product-main-image-wrap {
    min-height: 360px;
  }

  .product-main-image-wrap img {
    min-height: 360px;
  }

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

  .product-thumb {
    height: 74px;
  }
}

/* === Product gallery: inner dots, wheel switch, hover preview === */
.product-detail-media {
  display: block;
  min-height: 660px;
}

.product-main-image-wrap {
  position: relative;
  min-height: 660px;
  height: 100%;
  overflow: hidden;
  background: var(--cream);
  cursor: default;
}

.product-main-image-wrap img.product-main-image {
  width: 100%;
  height: 100%;
  min-height: 660px;
  object-fit: cover;
  filter: brightness(0.92);
  transition: transform 0.55s ease, filter 0.35s ease, opacity 0.25s ease;
}

.product-detail-media:hover .product-main-image-wrap img.product-main-image {
  transform: scale(1.025);
  filter: brightness(0.98);
}

.product-gallery-dots {
  position: absolute;
  z-index: 6;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 8px;
  background: rgba(8, 8, 7, 0.18);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.product-gallery-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 1px solid rgba(232, 224, 211, 0.56);
  background: rgba(232, 224, 211, 0.22);
  cursor: pointer;
  transition:
    background 0.24s ease,
    border-color 0.24s ease,
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

.product-gallery-dot:hover,
.product-gallery-dot.is-selected {
  background: rgba(232, 224, 211, 0.96);
  border-color: rgba(232, 224, 211, 1);
  transform: scale(1.22);
  box-shadow: 0 0 18px rgba(232, 224, 211, 0.22);
}

.product-gallery-hint {
  position: absolute;
  z-index: 5;
  left: 22px;
  bottom: 22px;
  font-family: "Cinzel", serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(241, 234, 223, 0.48);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.24s ease, transform 0.24s ease, color 0.24s ease;
  pointer-events: none;
}

.product-main-image-wrap:hover .product-gallery-hint {
  opacity: 1;
  transform: translateY(0);
  color: rgba(241, 234, 223, 0.78);
}

.gallery-hover-preview {
  position: fixed;
  z-index: 9999;
  width: 138px;
  aspect-ratio: 1 / 1.25;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.16s ease, transform 0.16s ease;
  background: #080807;
  border: 1px solid rgba(232, 224, 211, 0.38);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  padding: 6px;
}

.gallery-hover-preview.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.gallery-hover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-thumbs {
  display: none !important;
}

@media (max-width: 900px) {
  .product-detail-media,
  .product-main-image-wrap,
  .product-main-image-wrap img.product-main-image {
    min-height: 480px;
  }

  .product-gallery-dots {
    left: 16px;
    gap: 10px;
  }

  .gallery-hover-preview {
    display: none;
  }
}


/* === MOKUTON FIX: quick cards layout, price font, skeleton loading, load more button === */
/* This block intentionally overrides older quick-card rules above. */

.quick-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.quick-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 407px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(241, 234, 223, 0.18);
  background: #080807;
  color: rgba(241, 234, 223, 0.82);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    color 0.28s ease;
}

.quick-product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(241, 234, 223, 0.58);
  background: #0d0c0b;
  color: #fff;
}

.quick-product-image {
  height: 285px;
  background: var(--cream);
  overflow: hidden;
  border-bottom: 1px solid rgba(241, 234, 223, 0.12);
}

.quick-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88) saturate(0.96);
  transition: transform 0.55s ease, filter 0.55s ease;
}

.quick-product-card:hover .quick-product-image img {
  transform: scale(1.04);
  filter: brightness(1) saturate(1);
}

.quick-product-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 24px 26px 26px;
  min-height: 122px;
}

.quick-product-bottom .quick-product-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  min-width: 0;
  padding: 0;
  min-height: 0;
  font-family: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.quick-product-bottom .quick-product-info h3 {
  margin: 0;
  max-width: 280px;
  color: rgba(241, 234, 223, 0.88);
  font-family: "Inter", sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: none;
  transition: color 0.28s ease;
}

.quick-product-card:hover .quick-product-bottom .quick-product-info h3 {
  color: #fff;
}

.quick-product-subtitle {
  color: rgba(241, 234, 223, 0.55);
  font-family: "Cinzel", serif;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.28s ease;
}

.quick-product-card:hover .quick-product-subtitle {
  color: rgba(241, 234, 223, 0.82);
}

.quick-product-price-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  min-width: max-content;
}

.quick-product-price-tags strong {
  display: block;
  margin: 0 0 18px;
  white-space: nowrap;
  color: rgba(241, 234, 223, 0.86);
  font-family: "Cinzel", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
  transition:
    color 0.28s ease,
    transform 0.28s ease;
}

.quick-product-card:hover .quick-product-price-tags strong {
  color: #fff;
  transform: translateY(-1px);
}

.quick-product-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  max-width: 170px;
}

.quick-product-tags span {
  color: rgba(241, 234, 223, 0.42);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
  transition: color 0.28s ease;
}

.quick-product-card:hover .quick-product-tags span {
  color: rgba(241, 234, 223, 0.88);
}

/* Loading skeleton */
.quick-skeleton-card {
  pointer-events: none;
  cursor: default;
}

.quick-skeleton-card:hover {
  transform: none;
  border-color: rgba(241, 234, 223, 0.18);
  background: #080807;
}

.quick-skeleton-image,
.quick-skeleton-line {
  position: relative;
  overflow: hidden;
  background: rgba(232, 224, 211, 0.10);
}

.quick-skeleton-image {
  height: 285px;
  border-bottom: 1px solid rgba(241, 234, 223, 0.12);
}

.quick-skeleton-line {
  height: 14px;
}

.quick-skeleton-title {
  width: 70%;
  height: 28px;
}

.quick-skeleton-subtitle {
  width: 42%;
  height: 12px;
}

.quick-skeleton-price {
  width: 92px;
  height: 22px;
  margin-bottom: 18px;
}

.quick-skeleton-tag {
  width: 120px;
  height: 13px;
  margin-bottom: 7px;
}

.quick-skeleton-tag.short {
  width: 96px;
}

.quick-skeleton-image::after,
.quick-skeleton-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(232, 224, 211, 0.20),
    transparent
  );
  animation: mokuton-skeleton-shimmer 1.45s ease-in-out infinite;
}

@keyframes mokuton-skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Load more */
.quick-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.quick-load-more {
  min-width: 260px;
  height: 52px;
  padding: 0 28px;
  border: 1px solid rgba(241, 234, 223, 0.32);
  background: transparent;
  color: var(--text);
  font-family: "Cinzel", serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.quick-load-more span {
  margin-left: 10px;
  color: rgba(241, 234, 223, 0.52);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  transition: color 0.25s ease;
}

.quick-load-more:hover {
  transform: translateY(-2px);
  border-color: var(--cream);
  background: var(--cream);
  color: #111;
}

.quick-load-more:hover span {
  color: rgba(17, 17, 17, 0.58);
}
@media (max-width: 1100px) {
  .quick-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .quick-product-bottom {
    grid-template-columns: 1fr;
  }

  .quick-product-price-tags {
    align-items: flex-start;
    text-align: left;
  }

  .quick-product-tags {
    align-items: flex-start;
  }
}


/* === Garment choice tiles with full clothing silhouettes === */
.garment-choice-grid .choice-tile {
  min-height: 340px;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 38%, rgba(232,224,211,.08), transparent 36%),
    #050505;
}

.garment-choice-grid .choice-tile::before {
  z-index: 2;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 36%, rgba(0,0,0,.32) 64%, rgba(0,0,0,.88) 100%),
    linear-gradient(to right, rgba(0,0,0,.22), rgba(0,0,0,0) 34%, rgba(0,0,0,0) 66%, rgba(0,0,0,.22));
  filter: none;
}

.garment-choice-grid .choice-tile .choice-tile-img {
  position: absolute;
  inset: 12px 18px 52px;
  z-index: 1;
  width: calc(100% - 36px);
  height: calc(100% - 64px);
  object-fit: contain;
  object-position: center center;
  filter: brightness(.92) saturate(.95);
  transform: scale(.96);
  transition:
    transform .55s ease,
    filter .55s ease,
    opacity .35s ease;
}

.garment-choice-grid .choice-tile:hover .choice-tile-img,
.garment-choice-grid .choice-tile.is-selected .choice-tile-img {
  transform: scale(1.0);
  filter: brightness(1.03) saturate(1);
}

.garment-choice-grid .choice-tile-content {
  position: relative;
  z-index: 3;
  min-height: 292px;
}

.garment-choice-grid .choice-tile-kicker {
  color: rgba(241, 234, 223, 0.58);
}

.garment-choice-grid .choice-tile h3,
.garment-choice-grid .choice-tile p {
  text-shadow: 0 12px 30px rgba(0,0,0,.82);
}

.garment-choice-grid .choice-tile p {
  max-width: 260px;
  color: rgba(241, 234, 223, 0.78);
}

.garment-choice-grid .choice-tile.is-muted .choice-tile-img {
  opacity: .42;
  filter: grayscale(1) brightness(.62);
}

@media (max-width: 900px) {
  .garment-choice-grid .choice-tile {
    min-height: 300px;
  }

  .garment-choice-grid .choice-tile-content {
    min-height: 252px;
  }
}
.choice-tile {
  min-height: 260px;
}

.choice-tile-img {
  position: absolute;
  inset: 0;
  z-index: 0;

  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0.9;
  filter: brightness(0.72) saturate(0.95);

  transition:
    transform 0.45s ease,
    filter 0.45s ease,
    opacity 0.45s ease;
}

.choice-tile:hover .choice-tile-img {
  transform: scale(1.04);
  filter: brightness(0.9) saturate(1.05);
  opacity: 1;
}

.choice-tile::before {
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.08), rgba(0,0,0,0.18) 45%, rgba(0,0,0,0.78)),
    linear-gradient(90deg, rgba(0,0,0,0.35), rgba(0,0,0,0.02));
}

.choice-tile::after {
  z-index: 2;
}

.choice-tile-content {
  z-index: 3;
}

/* === FIX: product image matches info card height === */

.product-detail-card {
  align-items: stretch;
}

.product-detail-media {
  height: auto;
  min-height: 760px;
}

.product-main-image-wrap {
  height: 100%;
  min-height: 760px;
}

.product-main-image-wrap img.product-main-image {
  height: 100%;
  min-height: 760px;
  object-fit: cover;
  object-position: center;
}

.product-detail-info {
  min-height: 760px;
}

@media (max-width: 1100px) {
  .product-detail-info {
    min-height: auto;
  }

  .product-detail-media,
  .product-main-image-wrap,
  .product-main-image-wrap img.product-main-image {
    height: 620px;
    min-height: 620px;
  }
}

@media (max-width: 560px) {
  .product-detail-media,
  .product-main-image-wrap,
  .product-main-image-wrap img.product-main-image {
    height: 420px;
    min-height: 420px;
  }
}

/* === FIX: stable product card gallery height, no vertical stretching === */

.product-detail-card {
  align-items: start;
}

.product-detail-media {
  height: 760px;
  min-height: 760px;
  max-height: 760px;
}

.product-main-image-wrap {
  height: 760px;
  min-height: 760px;
  max-height: 760px;
}

.product-main-image-wrap img.product-main-image {
  height: 760px;
  min-height: 760px;
  max-height: 760px;
  object-fit: cover;
  object-position: center center;
}

.product-detail-info {
  min-height: 760px;
}

@media (max-width: 1100px) {
  .product-detail-media,
  .product-main-image-wrap,
  .product-main-image-wrap img.product-main-image {
    height: 560px;
    min-height: 560px;
    max-height: 560px;
  }

  .product-detail-info {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .product-detail-media,
  .product-main-image-wrap,
  .product-main-image-wrap img.product-main-image {
    height: 420px;
    min-height: 420px;
    max-height: 420px;
  }
}

/* === FIX: shorter product info card === */

.product-meta {
  grid-template-columns: 1fr 1fr;
}

.product-meta p:nth-child(3),
.product-meta p:nth-child(4) {
  display: none;
}

.product-detail-info {
  min-height: auto;
  padding-bottom: 54px;
}

.product-actions {
  margin-top: 42px;
}

.quick-product-image {
  position: relative;
  border-bottom: none !important;
}

.quick-product-image::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 7, 0),
    rgba(8, 8, 7, 0.10)
  );
  pointer-events: none;
  z-index: 2;
}

.quick-product-image img {
  position: relative;
  z-index: 1;
}
.quick-product-image {
  background: #080807 !important;
}

.quick-product-image img {
  background: #080807;
}
/* === MOKUTON ORDER MODAL === */

body.order-modal-open {
  overflow: hidden;
}

.order-open-btn {
  border: 0;
  cursor: pointer;
}

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}

.order-modal.is-open {
  display: block;
}

.order-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.order-modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  transform: translate(-50%, -50%);
  padding: 52px;
  border: 1px solid rgba(241, 234, 223, 0.24);
  background:
    radial-gradient(circle at 82% 12%, rgba(232, 224, 211, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(232, 224, 211, 0.08), rgba(232, 224, 211, 0) 42%),
    #0b0a09;
  color: var(--text);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.56);
}

.order-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(241, 234, 223, 0.24);
  background: transparent;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.order-modal-head {
  max-width: 680px;
  margin-bottom: 34px;
}

.order-modal-head .eyebrow {
  margin-bottom: 18px;
  color: var(--muted);
}

.order-modal-head h2 {
  font-size: 56px;
  line-height: 0.95;
  text-transform: uppercase;
}

.order-modal-head p:not(.eyebrow) {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.order-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 34px;
  padding: 22px;
  border: 1px solid rgba(241, 234, 223, 0.16);
  background: rgba(255, 255, 255, 0.025);
}

.order-summary div {
  min-width: 0;
}

.order-summary span {
  display: block;
  margin-bottom: 8px;
  color: rgba(241, 234, 223, 0.48);
  font-family: "Cinzel", serif;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.order-summary strong {
  display: block;
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
}

.order-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.order-form label {
  display: block;
}

.order-form label:nth-of-type(5),
.order-form label:nth-of-type(6),
.order-modal-message,
.order-submit-btn {
  grid-column: 1 / -1;
}

.order-form span {
  display: block;
  margin-bottom: 9px;
  color: rgba(241, 234, 223, 0.7);
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid rgba(241, 234, 223, 0.22);
  background: rgba(8, 8, 7, 0.72);
  color: var(--text);
  padding: 15px 16px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  outline: none;
  resize: vertical;
}

.order-form input:focus,
.order-form textarea:focus {
  border-color: rgba(241, 234, 223, 0.62);
}

.order-modal-message {
  min-height: 22px;
  color: var(--muted);
  line-height: 1.4;
}

.order-modal-message.is-error {
  color: #ffb3a8;
}

.order-modal-message.is-success {
  color: #d8f0c0;
}

.order-submit-btn {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.order-submit-btn:disabled {
  opacity: 0.62;
  cursor: wait;
}

@media (max-width: 760px) {
  .order-modal-panel {
    padding: 34px 22px;
  }

  .order-modal-head h2 {
    font-size: 40px;
  }

  .order-summary {
    grid-template-columns: 1fr;
  }

  .order-form {
    grid-template-columns: 1fr;
  }
}

/* === MOKUTON ORDER SUCCESS POPUP === */

.order-success-popup {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
}

.order-success-popup.is-open {
  display: block;
}

.order-success-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.order-success-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(430px, calc(100vw - 32px));
  transform: translate(-50%, -50%);
  padding: 38px 30px 30px;
  border: 1px solid rgba(232, 224, 211, 0.36);
  background:
    radial-gradient(circle at 80% 10%, rgba(232, 224, 211, 0.13), transparent 30%),
    linear-gradient(135deg, rgba(232, 224, 211, 0.08), rgba(232, 224, 211, 0) 42%),
    #0b0a09;
  color: var(--text);
  text-align: center;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
}

.order-success-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cream);
  color: #111;
  font-size: 38px;
  line-height: 1;
  font-family: "Inter", sans-serif;
}

.order-success-card h2 {
  margin: 0 0 24px;
  font-family: "Cormorant Garamond", serif;
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

.order-success-number-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.order-success-number {
  display: inline-flex;
  max-width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(232, 224, 211, 0.42);
  background: rgba(232, 224, 211, 0.08);
  color: var(--cream);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  letter-spacing: 0.03em;
  cursor: pointer;
  word-break: break-all;
  transition:
    background 0.24s ease,
    border-color 0.24s ease,
    transform 0.24s ease;
}

.order-success-number:hover {
  transform: translateY(-2px);
  border-color: var(--cream);
  background: rgba(232, 224, 211, 0.13);
}

.order-success-copy-hint {
  min-height: 20px;
  margin: 12px 0 0;
  color: rgba(241, 234, 223, 0.48);
  font-size: 13px;
}

.order-success-copy-hint.is-copied {
  color: #d8f0c0;
}

.order-success-warning {
  margin: 20px 0 28px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
}

.order-success-done {
  width: 100%;
  border: 0;
  cursor: pointer;
}

@media (max-width: 560px) {
  .order-success-card {
    padding: 34px 22px 24px;
  }

  .order-success-card h2 {
    font-size: 32px;
  }

  .order-success-number {
    font-size: 14px;
  }
}

/* === MOKUTON HEADER NAVIGATION UPDATE === */
.nav a,
.nav-link,
.header-actions a {
  transition: color 0.24s ease, opacity 0.24s ease, border-color 0.24s ease, background 0.24s ease, transform 0.24s ease;
}

.nav a:hover,
.nav-link:hover,
.header-actions a:hover {
  color: var(--cream);
  opacity: 1;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 84px;
}

.nav-dropdown > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-dropdown > .nav-link::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.72;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.nav-dropdown:hover > .nav-link::after,
.nav-dropdown:focus-within > .nav-link::after {
  transform: rotate(225deg) translateY(-1px);
  opacity: 1;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% - 14px);
  left: 50%;
  min-width: 270px;
  padding: 16px;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  border: 1px solid rgba(241, 234, 223, 0.18);
  background:
    radial-gradient(circle at 82% 12%, rgba(232, 224, 211, 0.12), transparent 30%),
    rgba(8, 8, 7, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.38);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}

.nav-dropdown-menu a {
  display: block;
  padding: 12px 14px;
  color: rgba(241, 234, 223, 0.76);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: none;
  border-bottom: 1px solid rgba(241, 234, 223, 0.08);
}

.nav-dropdown-menu a:last-child {
  border-bottom: 0;
}

.nav-dropdown-menu a:hover {
  color: #111;
  background: var(--cream);
  transform: translateX(2px);
}

.header-order-btn {
  min-width: 132px;
  height: 42px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(241, 234, 223, 0.42);
  background: rgba(232, 224, 211, 0.06);
  color: var(--text);
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.header-order-btn:hover {
  border-color: var(--cream);
  background: var(--cream);
  color: #111 !important;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .header {
    height: auto;
    min-height: 84px;
    grid-template-columns: 1fr auto;
    align-content: center;
    row-gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .nav {
    grid-column: 1 / -1;
    order: 3;
    display: flex;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 0 2px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-dropdown {
    min-height: auto;
    position: static;
  }

  .nav-dropdown-menu {
    left: 24px;
    right: 24px;
    top: 100%;
    min-width: 0;
    transform: translateY(8px);
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    transform: translateY(0);
  }

  .header-actions {
    justify-content: flex-end;
  }

  .header-order-btn {
    min-width: 112px;
    height: 38px;
    padding: 0 16px;
    font-size: 11px;
  }
}

/* === MOKUTON STATIC INFO PAGES === */
.info-page {
  min-height: 100vh;
  background: var(--black);
  color: var(--text);
}

.info-hero {
  min-height: 460px;
  padding: 168px 64px 82px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 78% 22%, rgba(232, 224, 211, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(232, 224, 211, 0.08), rgba(8, 8, 7, 0) 48%),
    #080807;
  border-bottom: 1px solid rgba(241, 234, 223, 0.18);
}

.info-hero h1 {
  max-width: 980px;
  white-space: pre-line;
  font-size: 78px;
  line-height: 0.92;
  text-transform: uppercase;
}

.info-hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.info-content {
  padding: 86px 64px 112px;
}

.info-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.info-side {
  position: sticky;
  top: 112px;
  padding: 28px;
  border: 1px solid rgba(241, 234, 223, 0.18);
  background: #0d0c0b;
}

.info-side h3 {
  margin-bottom: 24px;
  font-size: 26px;
}

.info-side a {
  display: block;
  padding: 12px 0;
  color: var(--muted);
  border-bottom: 1px solid rgba(241, 234, 223, 0.10);
}

.info-side a:hover {
  color: var(--text);
}

.info-main {
  display: grid;
  gap: 26px;
}

.info-block {
  padding: 42px;
  border: 1px solid rgba(241, 234, 223, 0.16);
  background:
    linear-gradient(135deg, rgba(232, 224, 211, 0.06), rgba(232, 224, 211, 0) 42%),
    #0b0a09;
}

.info-block h2 {
  margin-bottom: 22px;
  font-size: 44px;
  line-height: 1;
  text-transform: uppercase;
}

.info-block p,
.info-block li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.info-block ul {
  margin: 0;
  padding-left: 20px;
}

.size-table-wrap {
  overflow-x: auto;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  color: var(--text);
}

.size-table th,
.size-table td {
  padding: 18px 16px;
  border: 1px solid rgba(241, 234, 223, 0.16);
  text-align: left;
}

.size-table th {
  color: #111;
  background: var(--cream);
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.info-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-mini-card {
  padding: 28px;
  border: 1px solid rgba(241, 234, 223, 0.16);
  background: rgba(232, 224, 211, 0.04);
}

.info-mini-card span {
  display: block;
  margin-bottom: 18px;
  color: rgba(241, 234, 223, 0.48);
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.info-mini-card h3 {
  margin-bottom: 14px;
  font-size: 30px;
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-link {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(241, 234, 223, 0.14);
  color: var(--muted);
}

.contact-link strong {
  color: var(--text);
  font-family: "Cinzel", serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.contact-link:hover {
  color: var(--text);
}
@media (max-width: 900px) {
  .info-hero,
  .info-content {
    padding-left: 24px;
    padding-right: 24px;
  }

  .info-hero {
    padding-top: 220px;
  }

  .info-hero h1 {
    font-size: 48px;
  }

  .info-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .info-side {
    position: static;
  }

  .info-block {
    padding: 30px 22px;
  }

  .info-block h2 {
    font-size: 34px;
  }

  .info-card-grid {
    grid-template-columns: 1fr;
  }

  .contact-link {
    display: block;
  }

  .contact-link span {
    display: block;
    margin-top: 8px;
  }
}


/* === MOKUTON HEADER FINAL FIX === */
.header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.header .logo {
  flex: 0 0 auto;
}

.header .nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 54px;
  min-width: 0;
}

.header .header-actions {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav-dropdown-trigger {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font-family: "Cinzel", serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
}

.nav-dropdown-title {
  margin: 0;
  padding: 10px 14px 8px;
  color: var(--text);
  font-family: "Cinzel", serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-dropdown-divider {
  display: block;
  height: 1px;
  margin: 0 14px 8px;
  background: rgba(241, 234, 223, 0.24);
}

.nav-dropdown-menu {
  min-width: 310px;
}

@media (max-width: 900px) {
  .header {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .header .nav {
    order: 3;
    flex: 0 0 100%;
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
  }

  .header .header-actions {
    margin-left: auto;
  }
}

/* === MOKUTON FIX: contacts page cards restored === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.contact-card {
  min-height: 165px;
  padding: 28px;
  border: 1px solid rgba(241, 234, 223, 0.16);
  background:
    radial-gradient(circle at 82% 18%, rgba(232, 224, 211, 0.10), transparent 32%),
    rgba(232, 224, 211, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(241, 234, 223, 0.42);
  background:
    radial-gradient(circle at 82% 18%, rgba(232, 224, 211, 0.15), transparent 32%),
    rgba(232, 224, 211, 0.065);
}

.contact-card span {
  display: block;
  color: rgba(241, 234, 223, 0.50);
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-card a,
.contact-card strong {
  display: block;
  margin-top: 36px;
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.contact-card a:hover {
  color: var(--cream);
}

@media (max-width: 1180px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .contact-card {
    min-height: 140px;
  }
}

/* === MOKUTON PRINT POSITION SELECTOR === */
.print-position-options {
  margin-top: 38px;
}

.print-position-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.print-position-btn {
  min-width: 148px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(241, 234, 223, 0.34);
  background: transparent;
  color: var(--text);
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.24s ease,
    color 0.24s ease,
    border-color 0.24s ease,
    transform 0.24s ease;
}

.print-position-btn:hover,
.print-position-btn.is-selected {
  background: var(--cream);
  color: #111;
  border-color: var(--cream);
}

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

@media (max-width: 560px) {
  .print-position-btn {
    width: 100%;
  }
}


/* === MOKUTON CATALOG HERO DROP CAROUSEL === */

.catalog-hero-screen.catalog-hero-showcase {
  position: relative;
  min-height: 620px;
  padding-top: 110px;
  padding-bottom: 64px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(400px, 1.08fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: end;
}

.catalog-hero-copy {
  position: relative;
  z-index: 6;
  max-width: 820px;
}

.catalog-hero-screen.catalog-hero-showcase::before {
  content: "";
  position: absolute;
  z-index: 1;
  right: -12%;
  top: 12%;
  width: 50vw;
  max-width: 690px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(232, 224, 211, 0.07), rgba(232, 224, 211, 0.025) 34%, rgba(232, 224, 211, 0) 68%);
  pointer-events: none;
}

.drop-carousel {
  --drop-side: clamp(230px, 22vw, 380px);
  --drop-back: clamp(120px, 12vw, 210px);
  --drop-front-y: 18px;
  --drop-back-y: -46px;

  position: relative;
  z-index: 4;
  justify-self: end;
  align-self: center;
  width: min(58vw, 850px);
  height: min(44vw, 560px);
  min-height: 430px;
  perspective: 1100px;
  transform-style: preserve-3d;
  pointer-events: none;
}

.drop-carousel::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 52%;
  width: min(56%, 410px);
  height: min(74%, 460px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle,
      rgba(232, 224, 211, 0.105),
      rgba(232, 224, 211, 0.040) 38%,
      rgba(232, 224, 211, 0) 72%
    );
  filter: blur(20px);
  opacity: 0.66;
  pointer-events: none;
}

.drop-carousel-ring {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 56%;
  width: min(74%, 500px);
  height: 24%;
  transform: translate(-50%, -50%) rotate(-7deg);
  border: 1px solid rgba(232, 224, 211, 0.08);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(232, 224, 211, 0.035), rgba(232, 224, 211, 0) 64%);
  box-shadow:
    0 0 30px rgba(232, 224, 211, 0.035),
    inset 0 0 22px rgba(232, 224, 211, 0.025);
  opacity: 0.48;
}

.drop-carousel::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7%;
  width: min(58%, 430px);
  height: 34px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0) 72%);
  filter: blur(8px);
  opacity: 0.72;
}

.drop-carousel-item {
  position: absolute;
  left: 50%;
  top: 50%;

  width: clamp(220px, 28vw, 425px);
  height: clamp(285px, 38vw, 570px);

  max-width: none;
  object-fit: contain;
  object-position: center;
  transform-origin: center center;

  animation: none !important;

  transition:
    transform 2200ms cubic-bezier(.22, .72, .18, 1),
    opacity 2200ms cubic-bezier(.22, .72, .18, 1),
    filter 2200ms cubic-bezier(.22, .72, .18, 1);

  will-change: transform, opacity, filter;
}

/* fallback-положение до запуска JS */
.drop-carousel-item:nth-of-type(1) {
  z-index: 5;
  opacity: 0.90;
  transform: translate(-50%, -50%) translate3d(0, var(--drop-front-y), 150px) scale(0.98);
  filter: brightness(0.80) contrast(0.96) saturate(0.94) drop-shadow(0 28px 38px rgba(0, 0, 0, 0.54));
}

.drop-carousel-item:nth-of-type(2) {
  z-index: 4;
  opacity: 0.36;
  transform: translate(-50%, -50%) translate3d(var(--drop-side), -8px, 24px) scale(0.56);
  filter: brightness(0.28) contrast(0.84) saturate(0.64) blur(0.75px) drop-shadow(0 18px 28px rgba(0, 0, 0, 0.50));
}

.drop-carousel-item:nth-of-type(3) {
  z-index: 2;
  opacity: 0.10;
  transform: translate(-50%, -50%) translate3d(var(--drop-back), var(--drop-back-y), -190px) scale(0.42);
  filter: brightness(0.11) contrast(0.76) saturate(0.46) blur(1.8px) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.46));
}

.drop-carousel-item:nth-of-type(4) {
  z-index: 1;
  opacity: 0.10;
  transform: translate(-50%, -50%) translate3d(calc(var(--drop-back) * -1), var(--drop-back-y), -190px) scale(0.42);
  filter: brightness(0.11) contrast(0.76) saturate(0.46) blur(1.8px) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.46));
}

.drop-carousel-item:nth-of-type(5) {
  z-index: 4;
  opacity: 0.36;
  transform: translate(-50%, -50%) translate3d(calc(var(--drop-side) * -1), -8px, 24px) scale(0.56);
  filter: brightness(0.28) contrast(0.84) saturate(0.64) blur(0.75px) drop-shadow(0 18px 28px rgba(0, 0, 0, 0.50));
}

/* позиции, которыми управляет JS */
.drop-carousel-item.drop-pos-front {
  z-index: 5;
  opacity: 0.90;
  transform: translate(-50%, -50%) translate3d(0, var(--drop-front-y), 150px) scale(0.98);
  filter:
    brightness(0.80)
    contrast(0.96)
    saturate(0.94)
    drop-shadow(0 28px 38px rgba(0, 0, 0, 0.54));
}

.drop-carousel-item.drop-pos-right {
  z-index: 4;
  opacity: 0.36;
  transform: translate(-50%, -50%) translate3d(var(--drop-side), -8px, 24px) scale(0.56);
  filter:
    brightness(0.28)
    contrast(0.84)
    saturate(0.64)
    blur(0.75px)
    drop-shadow(0 18px 28px rgba(0, 0, 0, 0.50));
}

.drop-carousel-item.drop-pos-back-right {
  z-index: 2;
  opacity: 0.10;
  transform: translate(-50%, -50%) translate3d(var(--drop-back), var(--drop-back-y), -190px) scale(0.42);
  filter:
    brightness(0.11)
    contrast(0.76)
    saturate(0.46)
    blur(1.8px)
    drop-shadow(0 12px 24px rgba(0, 0, 0, 0.46));
}

.drop-carousel-item.drop-pos-back-left {
  z-index: 1;
  opacity: 0.10;
  transform: translate(-50%, -50%) translate3d(calc(var(--drop-back) * -1), var(--drop-back-y), -190px) scale(0.42);
  filter:
    brightness(0.11)
    contrast(0.76)
    saturate(0.46)
    blur(1.8px)
    drop-shadow(0 12px 24px rgba(0, 0, 0, 0.46));
}

.drop-carousel-item.drop-pos-left {
  z-index: 4;
  opacity: 0.36;
  transform: translate(-50%, -50%) translate3d(calc(var(--drop-side) * -1), -8px, 24px) scale(0.56);
  filter:
    brightness(0.28)
    contrast(0.84)
    saturate(0.64)
    blur(0.75px)
    drop-shadow(0 18px 28px rgba(0, 0, 0, 0.50));
}

@media (max-width: 1100px) {
  .catalog-hero-screen.catalog-hero-showcase {
    grid-template-columns: minmax(320px, 0.95fr) minmax(350px, 1.05fr);
  }

  .drop-carousel {
    --drop-side: clamp(160px, 18vw, 260px);
    --drop-back: clamp(78px, 9vw, 130px);
    width: 100%;
    min-height: 390px;
  }

  .drop-carousel-item {
    width: clamp(190px, 30vw, 360px);
    height: clamp(250px, 40vw, 500px);
  }
}

@media (max-width: 900px) {
  .catalog-hero-screen.catalog-hero-showcase {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding-top: 220px;
  }

  .catalog-hero-copy {
    max-width: 680px;
  }

  .drop-carousel {
    --drop-side: min(38vw, 170px);
    --drop-back: min(18vw, 86px);
    justify-self: center;
    width: 100%;
    height: 370px;
    min-height: 370px;
    margin-top: 28px;
  }

  .drop-carousel-item {
    width: clamp(150px, 46vw, 270px);
    height: clamp(215px, 60vw, 365px);
  }
}

@media (max-width: 560px) {
  .catalog-hero-screen.catalog-hero-showcase {
    padding-top: 190px;
  }

  .drop-carousel {
    --drop-side: 34vw;
    --drop-back: 16vw;
    height: 290px;
    min-height: 290px;
    margin-top: 22px;
  }

  .drop-carousel-item {
    width: clamp(122px, 48vw, 205px);
    height: clamp(184px, 64vw, 270px);
  }

  .drop-carousel-ring {
    width: 82%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .drop-carousel-item {
    transition: none;
  }
}
/* === MOKUTON HOME HERO TWO-LAYER PARALLAX === */
/* В hero остается исходная картинка с фоном, а поверх нее двигается PNG-кофта того же размера. */

.hero {
  position: relative;
  min-height: 800px;
  overflow: hidden;
  isolation: isolate;
}

.hero-img {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  transform: none !important;
  will-change: auto;
  pointer-events: none;
  backface-visibility: hidden;
}

.hero-hoodie-cut {
  --hoodie-cut-scale: 1.035;
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
}

.hero::after {
  z-index: 2;
}

.hero-content {
  z-index: 3;
  will-change: auto;
  transform: none !important;
  backface-visibility: hidden;
}

@media (max-width: 900px) {
  .hero {
    min-height: 720px;
  }

  .hero-img,
  .hero-hoodie-cut {
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-hoodie-cut {
    transform: none !important;
    will-change: auto;
  }
}
/* === MOKUTON FOOTER CLEANUP === */

.footer-logo-card {
  min-height: 170px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.footer-logo-img {
  width: min(260px, 100%);
  height: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.88;
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.34));
}

.footer-legal {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-legal a {
  display: inline-flex;
  margin: 0;
}

.footer-legal a + a::before {
  content: "";
  width: 1px;
  height: 14px;
  margin-right: 18px;
  background: rgba(241, 234, 223, 0.34);
}

@media (max-width: 900px) {
  .footer-logo-card {
    justify-content: flex-start;
    min-height: auto;
  }

  .footer-logo-img {
    width: min(220px, 72vw);
  }

  .footer-legal {
    justify-content: flex-start;
    gap: 14px;
    margin-top: 14px;
  }

  .footer-legal a + a::before {
    margin-right: 14px;
  }
}

/* =========================================================
   MOKUTON RESPONSIVE FINAL LAYER
   Desktop is preserved above. This block adds separate layouts for:
   - tablet landscape
   - tablet portrait
   - phone portrait
   - phone landscape
   ========================================================= */

html {
  scroll-padding-top: 132px;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

button,
a {
  -webkit-tap-highlight-color: rgba(232, 224, 211, 0.16);
}

.header,
.hero,
.catalog-hero-screen,
.info-hero,
.catalog-cta,
.story,
.quick-catalog,
.product-detail-card,
.info-block,
.footer {
  max-width: 100%;
}

.size-guide-inline {
  min-width: 190px;
}

@media (hover: none) {
  .choice-tile:hover,
  .quick-product-card:hover,
  .product-card:hover,
  .contact-card:hover,
  .quick-filter:hover,
  .print-position-btn:hover,
  .size-btn:hover,
  .secondary-btn:hover,
  .big-btn:hover,
  .header-order-btn:hover {
    transform: none;
  }

  .nav-dropdown-menu a,
  .quick-filter,
  .size-btn,
  .print-position-btn,
  .secondary-btn,
  .big-btn,
  .header-order-btn {
    min-height: 44px;
  }
}

/* ==============================
   TABLET LANDSCAPE
   Example: iPad / Android tablet turned horizontally
   ============================== */
@media (min-width: 901px) and (max-width: 1200px) and (orientation: landscape) {
  html {
    scroll-padding-top: 104px;
  }

  .header {
    height: 76px;
    min-height: 76px;
    padding: 0 34px;
    gap: 24px;
  }

  .logo {
    font-size: 26px;
  }

  .header .nav {
    gap: 34px;
  }

  .nav a,
  .nav-dropdown-trigger {
    font-size: 11px;
  }

  .header-order-btn {
    min-width: 122px;
    height: 40px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    top: 205px;
    left: clamp(44px, 6vw, 72px);
  }

  .hero h1 {
    font-size: clamp(66px, 7vw, 78px);
  }

  .quality,
  .gallery,
  .collection,
  .footer,
  .catalog-constructor,
  .info-content {
    padding-left: 34px;
    padding-right: 34px;
  }

  .section-head {
    margin-bottom: 64px;
  }

  .section-head h2,
  .gallery-top h2 {
    font-size: 50px;
  }

  .quality-grid {
    gap: 20px;
  }

  .quality-card img {
    height: 205px;
  }

  .quality-card div {
    min-height: 190px;
    padding: 24px;
  }

  .quality-card h3 {
    font-size: 29px;
  }

  .gallery-grid {
    grid-auto-rows: 235px;
  }

  .collection {
    grid-template-columns: 220px 1fr;
    gap: 34px;
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .collection-text p {
    margin-bottom: 86px;
  }

  .product-grid {
    gap: 20px;
  }

  .product-row {
    gap: 12px;
    font-size: 11px;
  }

  .story {
    min-height: 560px;
  }

  .story-content {
    top: 110px;
    left: 48px;
  }

  .catalog-cta {
    min-height: 640px;
  }

  .catalog-content h2 {
    font-size: 62px;
  }

  .footer-grid {
    grid-template-columns: 1.35fr .75fr .95fr .75fr 1fr;
    gap: 28px;
  }

  .footer h2 {
    margin-bottom: 58px;
  }

  .footer-logo-img {
    width: min(210px, 100%);
  }

  .catalog-hero-screen.catalog-hero-showcase {
    min-height: 560px;
    padding: 104px 34px 56px;
    grid-template-columns: minmax(310px, 0.95fr) minmax(360px, 1.05fr);
    gap: 36px;
  }

  .catalog-hero-screen h1 {
    font-size: 74px;
  }

  .catalog-hero-screen p:not(.eyebrow) {
    font-size: 16px;
  }

  .drop-carousel {
    min-height: 390px;
    height: 390px;
  }

  .quick-catalog {
    padding: 30px;
    margin-bottom: 76px;
  }

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

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

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

  .choice-tile {
    min-height: 230px;
  }

  .choice-tile-content {
    min-height: 182px;
  }

  .garment-choice-grid .choice-tile {
    min-height: 300px;
  }

  .garment-choice-grid .choice-tile-content {
    min-height: 252px;
  }

  .product-detail-card {
    grid-template-columns: minmax(420px, 0.95fr) minmax(390px, 1.05fr);
    gap: 34px;
  }

  .product-detail-media,
  .product-main-image-wrap,
  .product-main-image-wrap img.product-main-image {
    height: 640px;
    min-height: 640px;
    max-height: 640px;
  }

  .product-detail-info {
    padding: 38px;
  }

  .product-detail-info h2 {
    font-size: 50px;
  }

  .product-actions .big-btn {
    min-width: 230px;
  }

  .info-hero {
    min-height: 420px;
    padding: 138px 34px 72px;
  }

  .info-hero h1 {
    font-size: 66px;
  }

  .info-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 36px;
  }

  .info-block {
    padding: 36px;
  }

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

/* ==============================
   TABLET PORTRAIT
   Example: iPad / Android tablet vertically
   ============================== */
@media (min-width: 641px) and (max-width: 900px) and (orientation: portrait) {
  html {
    scroll-padding-top: 148px;
  }

  .header {
    min-height: 118px;
    padding: 14px 28px 12px;
    gap: 12px 22px;
  }

  .logo {
    font-size: 27px;
  }

  .header .nav {
    gap: 26px;
    padding-top: 6px;
  }

  .nav a,
  .nav-dropdown-trigger {
    white-space: nowrap;
  }

  .nav-dropdown-menu {
    left: 28px;
    right: 28px;
    top: calc(100% - 4px);
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    top: 238px;
    left: 36px;
    right: 36px;
    max-width: 520px;
  }

  .hero h1 {
    font-size: 64px;
  }

  .quality,
  .gallery,
  .collection,
  .footer,
  .catalog-constructor,
  .info-content {
    padding-left: 28px;
    padding-right: 28px;
  }

  .section-head h2,
  .gallery-top h2 {
    font-size: 50px;
  }

  .quality-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .quality-grid .quality-card:last-child,
  .product-grid .product-card:last-child {
    grid-column: 1 / -1;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 250px;
  }

  .gallery-large {
    grid-column: 1 / -1;
    grid-row: auto;
    height: 360px !important;
  }

  .gallery-grid img {
    height: 100%;
  }

  .collection {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .collection-text p {
    max-width: 560px;
    margin-bottom: 34px;
  }

  .story-content {
    left: 40px;
  }

  .catalog-content h2 {
    font-size: 58px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 28px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer h2 {
    margin-bottom: 42px;
  }

  .footer-logo-card {
    justify-content: flex-start;
  }

  .catalog-hero-screen.catalog-hero-showcase {
    padding-top: 190px;
  }

  .catalog-hero-screen h1 {
    font-size: 62px;
  }

  .drop-carousel {
    height: 390px;
    min-height: 390px;
  }

  .quick-catalog-head {
    grid-template-columns: 1fr;
  }

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

  .quick-product-bottom {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .quick-product-price-tags,
  .quick-product-tags {
    align-items: flex-start;
    text-align: left;
  }

  .anime-choice-grid,
  .design-choice-grid,
  .garment-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .garment-choice-grid .choice-tile:last-child {
    grid-column: 1 / -1;
  }

  .product-detail-card {
    grid-template-columns: 1fr;
  }

  .product-detail-media,
  .product-main-image-wrap,
  .product-main-image-wrap img.product-main-image {
    height: 560px;
    min-height: 560px;
    max-height: 560px;
  }

  .info-hero {
    padding-top: 190px;
  }

  .info-hero h1 {
    font-size: 56px;
  }

  .info-layout {
    grid-template-columns: 1fr;
  }

  .info-side {
    position: static;
  }

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

/* ==============================
   PHONE PORTRAIT
   Example: iPhone / Android vertically
   ============================== */
@media (max-width: 640px) and (orientation: portrait) {
  html {
    scroll-padding-top: 140px;
  }

  .header {
    min-height: 116px;
    padding: 12px 18px 10px;
    gap: 10px 14px;
  }

  .logo {
    font-size: 23px;
  }

  .header-order-btn {
    min-width: 104px;
    height: 36px;
    padding: 0 12px;
    font-size: 10px;
  }

  .header .nav {
    gap: 18px;
    padding: 5px 0 0;
  }

  .nav a,
  .nav-dropdown-trigger {
    font-size: 10px;
    letter-spacing: 0.14em;
    white-space: nowrap;
  }

  .nav-dropdown-menu {
    left: 18px;
    right: 18px;
    top: calc(100% - 2px);
    max-height: min(72vh, 520px);
    overflow-y: auto;
  }

  .nav-dropdown-menu a {
    padding: 13px 12px;
  }

  .eyebrow {
    margin-bottom: 22px;
    font-size: 11px;
    letter-spacing: 0.24em;
  }

  .story .eyebrow {
    font-size: 12px;
    letter-spacing: 0.30em;
  }

  .hero {
    min-height: min(760px, 100svh);
  }

  .hero-content {
    top: 196px;
    left: 20px;
    right: 20px;
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(42px, 14vw, 56px);
  }

  .hero-text {
    margin: 28px 0 34px;
    font-size: 14px;
    letter-spacing: 0.08em;
  }

  .quality,
  .gallery,
  .collection,
  .footer,
  .catalog-constructor,
  .info-content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .quality {
    padding-top: 64px;
    padding-bottom: 68px;
  }

  .section-head {
    margin-bottom: 42px;
  }

  .section-head h2,
  .gallery-top h2 {
    font-size: 40px;
  }

  .section-head p,
  .gallery-top p,
  .quality-card p,
  .collection-text p,
  .catalog-content p,
  .info-block p,
  .info-block li {
    font-size: 15px;
  }

  .quality-card img {
    height: 210px;
  }

  .quality-card div,
  .gallery-note {
    padding: 24px;
  }

  .quality-card h3 {
    font-size: 28px;
  }

  .gallery {
    padding-top: 62px;
    padding-bottom: 72px;
  }

  .gallery-top {
    margin-bottom: 28px;
  }

  .gallery-grid {
    gap: 12px;
  }

  .gallery-note h3 {
    font-size: 28px;
  }

  .collection {
    padding-top: 66px;
    padding-bottom: 68px;
  }

  .collection-text h2 {
    font-size: 38px;
  }

  .story h2 {
    font-size: 42px;
  }

  .product-row {
    display: block;
    margin-top: 18px;
    font-size: 12px;
  }

  .product-row strong,
  .product-row a,
  .product-row span {
    display: block;
    margin-top: 8px;
  }

  .story {
    min-height: 560px;
  }

  .story-content {
    top: 96px;
    left: 22px;
    right: 22px;
  }

  .story p:not(.eyebrow) {
    margin-bottom: 62px;
    font-size: 15px;
  }

  .catalog-cta {
    min-height: 610px;
  }

  .catalog-cta::before {
    left: 18px;
    right: 18px;
    top: 22px;
    bottom: 22px;
  }

  .catalog-content {
    padding: 0 18px;
  }

  .catalog-content h2 {
    font-size: 42px;
  }

  .catalog-content p {
    margin: 30px 0 54px;
  }

  .big-btn {
    width: 100%;
    min-width: 0;
    max-width: 330px;
    font-size: 16px;
  }

  .footer {
    padding-top: 64px;
  }

  .footer-grid {
    gap: 34px;
    padding-bottom: 42px;
  }

  .footer h2 {
    margin-bottom: 38px;
    font-size: 26px;
  }

  .footer-bottom {
    line-height: 1.55;
    letter-spacing: 0.10em;
  }

  .footer-legal {
    display: grid;
    gap: 12px;
  }

  .footer-legal a + a::before {
    display: none;
  }

  .catalog-hero-screen.catalog-hero-showcase,
  .info-hero {
    padding-top: 176px;
  }

  .catalog-hero-screen h1,
  .info-hero h1 {
    font-size: 44px;
  }

  .catalog-hero-screen p:not(.eyebrow),
  .info-hero p:not(.eyebrow) {
    margin-top: 26px;
    font-size: 15px;
  }

  .drop-carousel {
    height: 285px;
    min-height: 285px;
  }

  .quick-catalog {
    margin-bottom: 64px;
    padding: 18px;
  }

  .quick-catalog-head h2,
  .catalog-step-head h2,
  .info-block h2 {
    font-size: 32px;
  }

  .quick-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .quick-filter-row::-webkit-scrollbar {
    display: none;
  }

  .quick-filter {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 15px;
    font-size: 10px;
  }

  .quick-product-image {
    height: 255px;
  }

  .quick-product-bottom {
    padding: 20px;
  }

  .quick-product-bottom .quick-product-info h3 {
    font-size: 22px;
  }

  .quick-product-price-tags strong {
    font-size: 21px;
  }

  .catalog-step {
    margin-bottom: 58px;
  }

  .catalog-step-head {
    gap: 16px;
    margin-bottom: 22px;
  }

  .choice-grid {
    gap: 14px;
  }

  .choice-tile {
    min-height: 220px;
    padding: 20px;
  }

  .choice-tile::after {
    left: 12px;
    right: 12px;
    top: 12px;
    bottom: 12px;
  }

  .choice-tile-content {
    min-height: 178px;
  }

  .choice-tile h3 {
    font-size: 28px;
  }

  .garment-choice-grid .choice-tile {
    min-height: 280px;
  }

  .garment-choice-grid .choice-tile-content {
    min-height: 238px;
  }

  .product-result {
    padding-top: 54px;
  }

  .product-detail-media,
  .product-main-image-wrap,
  .product-main-image-wrap img.product-main-image {
    height: 390px;
    min-height: 390px;
    max-height: 390px;
  }

  .product-gallery-dots {
    left: 12px;
    gap: 8px;
  }

  .product-detail-info {
    padding: 28px 20px;
  }

  .product-detail-info h2 {
    font-size: 36px;
  }

  .product-price {
    font-size: 21px;
  }

  .print-position-btn,
  .product-actions .big-btn,
  .secondary-btn,
  .size-guide-inline {
    width: 100%;
    min-width: 0;
  }

  .size-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .size-guide-inline {
    grid-column: 1 / -1;
  }

  .size-btn {
    width: 100%;
  }

  .order-modal-panel {
    width: calc(100vw - 20px);
    max-height: calc(100svh - 20px);
    padding: 34px 18px 22px;
  }

  .order-modal-close {
    top: 12px;
    right: 12px;
  }

  .order-modal-head h2 {
    font-size: 36px;
  }

  .order-summary,
  .order-form {
    gap: 12px;
  }

  .info-content {
    padding-top: 56px;
    padding-bottom: 76px;
  }

  .info-block {
    padding: 26px 18px;
  }

  .info-side {
    padding: 22px;
  }

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

  .contact-card {
    min-height: 130px;
    padding: 22px;
  }

  .contact-card a,
  .contact-card strong {
    margin-top: 28px;
    font-size: 18px;
  }
}

/* Extra narrow phones */
@media (max-width: 380px) and (orientation: portrait) {
  .header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .logo {
    font-size: 21px;
  }

  .header-order-btn {
    min-width: 92px;
    padding: 0 10px;
    letter-spacing: 0.12em;
  }

  .hero-content {
    top: 184px;
  }

  .hero h1,
  .catalog-hero-screen h1,
  .info-hero h1 {
    font-size: 40px;
  }

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

/* ==============================
   PHONE LANDSCAPE
   Example: phone turned horizontally
   ============================== */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 560px) {
  html {
    scroll-padding-top: 78px;
  }

  .header {
    height: 64px;
    min-height: 64px;
    padding: 8px 16px;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .logo {
    font-size: 21px;
  }

  .header .nav {
    order: initial;
    flex: 1 1 auto;
    width: auto;
    justify-content: flex-start;
    gap: 16px;
    padding: 0;
    overflow-x: auto;
  }

  .nav a,
  .nav-dropdown-trigger {
    font-size: 10px;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }

  .nav-dropdown {
    position: static;
  }

  .nav-dropdown-menu {
    left: 12px;
    right: 12px;
    top: 100%;
    min-width: 0;
    max-height: calc(100svh - 76px);
    overflow-y: auto;
    transform: translateY(8px);
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    transform: translateY(0);
  }

  .header .header-actions {
    margin-left: 0;
  }

  .header-order-btn {
    min-width: 94px;
    height: 34px;
    padding: 0 10px;
    font-size: 10px;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: 10px;
    letter-spacing: 0.22em;
  }

  .story .eyebrow {
    font-size: 11px;
    letter-spacing: 0.28em;
  }

  .hero {
    min-height: 520px;
  }

  .hero-content {
    top: 128px;
    left: 28px;
    max-width: 390px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-text {
    margin: 22px 0 28px;
    font-size: 13px;
  }

  .quality,
  .gallery,
  .collection,
  .footer,
  .catalog-constructor,
  .info-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .quality,
  .gallery,
  .collection {
    padding-top: 46px;
    padding-bottom: 50px;
  }

  .section-head {
    display: flex;
    gap: 24px;
    margin-bottom: 34px;
  }

  .section-head h2,
  .gallery-top h2 {
    font-size: 38px;
  }

  .section-head p {
    text-align: left;
    font-size: 14px;
  }

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

  .quality-card img {
    height: 145px;
  }

  .quality-card div {
    min-height: 150px;
    padding: 16px;
  }

  .quality-card h3 {
    font-size: 24px;
  }

  .quality-card p {
    font-size: 13px;
  }

  .gallery-top {
    display: flex;
  }

  .gallery-top p {
    text-align: right;
    font-size: 13px;
  }

  .gallery-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-auto-rows: 165px;
    gap: 10px;
  }

  .gallery-large {
    grid-row: span 2;
  }

  .gallery-grid img,
  .gallery-large {
    height: 100%;
  }

  .gallery-note {
    padding: 20px;
  }

  .gallery-note h3 {
    font-size: 24px;
  }

  .collection {
    grid-template-columns: 170px 1fr;
    gap: 22px;
  }

  .collection-text h2 {
    font-size: 32px;
  }

  .collection-text p {
    margin: 22px 0 34px;
    font-size: 13px;
  }

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

  .product-row {
    display: block;
    margin-top: 14px;
    font-size: 10px;
  }

  .product-row strong,
  .product-row a,
  .product-row span {
    display: block;
    margin-top: 6px;
  }

  .story {
    min-height: 430px;
  }

  .story-content {
    top: 82px;
    left: 28px;
  }

  .story h2 {
    font-size: 42px;
  }

  .story p:not(.eyebrow) {
    margin: 20px 0 46px;
    font-size: 14px;
  }

  .catalog-cta {
    min-height: 430px;
  }

  .catalog-cta::before {
    left: 20px;
    right: 20px;
    top: 18px;
    bottom: 18px;
  }

  .catalog-content h2 {
    font-size: 40px;
  }

  .catalog-content p {
    margin: 22px 0 34px;
    font-size: 14px;
  }

  .big-btn {
    min-width: 220px;
    height: 44px;
    font-size: 15px;
  }

  .footer {
    padding-top: 50px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, minmax(0, .8fr));
    gap: 24px;
  }

  .footer-logo-card {
    display: none;
  }

  .footer h2 {
    margin-bottom: 34px;
  }

  .footer-bottom {
    display: flex;
    gap: 16px;
    font-size: 10px;
  }

  .catalog-hero-screen.catalog-hero-showcase {
    min-height: 500px;
    padding: 96px 20px 38px;
    grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
    gap: 22px;
    align-items: center;
  }

  .catalog-hero-screen h1 {
    font-size: 46px;
  }

  .catalog-hero-screen p:not(.eyebrow) {
    margin-top: 20px;
    font-size: 14px;
  }

  .drop-carousel {
    width: 100%;
    height: 320px;
    min-height: 320px;
    margin-top: 0;
  }

  .drop-carousel-item {
    width: clamp(130px, 30vw, 230px);
    height: clamp(190px, 42vw, 320px);
  }

  .quick-catalog {
    padding: 20px;
    margin-bottom: 54px;
  }

  .quick-catalog-head {
    grid-template-columns: minmax(220px, .8fr) minmax(300px, 1fr);
    gap: 24px;
  }

  .quick-catalog-head h2,
  .catalog-step-head h2 {
    font-size: 32px;
  }

  .quick-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .quick-filter-row::-webkit-scrollbar {
    display: none;
  }

  .quick-filter {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 14px;
    font-size: 10px;
  }

  .quick-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .quick-product-image {
    height: 210px;
  }

  .quick-product-bottom {
    padding: 18px;
  }

  .quick-product-bottom .quick-product-info h3 {
    font-size: 21px;
  }

  .quick-product-price-tags strong {
    font-size: 20px;
  }

  .catalog-step {
    margin-bottom: 48px;
  }

  .catalog-step-head {
    grid-template-columns: 58px 1fr;
  }

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

  .choice-tile {
    min-height: 190px;
    padding: 18px;
  }

  .choice-tile-content {
    min-height: 150px;
  }

  .choice-tile h3 {
    font-size: 25px;
  }

  .choice-tile p {
    font-size: 13px;
  }

  .garment-choice-grid .choice-tile {
    min-height: 240px;
  }

  .garment-choice-grid .choice-tile-content {
    min-height: 202px;
  }

  .product-detail-card {
    grid-template-columns: minmax(300px, .92fr) minmax(340px, 1.08fr);
    gap: 20px;
  }

  .product-detail-media,
  .product-main-image-wrap,
  .product-main-image-wrap img.product-main-image {
    height: 430px;
    min-height: 430px;
    max-height: 430px;
  }

  .product-detail-info {
    padding: 24px;
  }

  .product-detail-info h2 {
    font-size: 34px;
  }

  .product-description {
    margin-top: 22px;
    font-size: 14px;
  }

  .product-options,
  .print-position-options {
    margin-top: 24px;
  }

  .product-meta,
  .product-actions {
    margin-top: 28px;
  }

  .product-actions .big-btn {
    min-width: 220px;
  }

  .order-modal-panel {
    width: calc(100vw - 18px);
    max-height: calc(100svh - 18px);
    padding: 26px 22px 20px;
  }

  .order-modal-head {
    margin-bottom: 20px;
  }

  .order-modal-head h2 {
    font-size: 34px;
  }

  .order-modal-head p:not(.eyebrow) {
    margin-top: 14px;
    font-size: 13px;
  }

  .order-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
    padding: 14px;
  }

  .order-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .order-form input,
  .order-form textarea {
    padding: 12px;
    font-size: 14px;
  }

  .info-hero {
    min-height: 360px;
    padding: 96px 20px 50px;
  }

  .info-hero h1 {
    font-size: 42px;
  }

  .info-content {
    padding-top: 44px;
    padding-bottom: 58px;
  }

  .info-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
  }

  .info-side {
    position: sticky;
    top: 84px;
    padding: 18px;
  }

  .info-block {
    padding: 26px;
  }

  .info-block h2 {
    font-size: 32px;
  }

  .info-block p,
  .info-block li {
    font-size: 15px;
  }

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

/* Landscape phones with very small height: reduce visual weight further */
@media (max-width: 740px) and (orientation: landscape) and (max-height: 430px) {
  .header .nav {
    gap: 12px;
  }

  .hero {
    min-height: 470px;
  }

  .hero-content {
    top: 104px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .catalog-hero-screen.catalog-hero-showcase {
    grid-template-columns: 1fr 1fr;
    padding-top: 82px;
    min-height: 440px;
  }

  .catalog-hero-screen h1 {
    font-size: 40px;
  }

  .drop-carousel {
    height: 260px;
    min-height: 260px;
  }

  .quality-grid,
  .product-grid,
  .anime-choice-grid,
  .design-choice-grid,
  .garment-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail-card,
  .info-layout {
    grid-template-columns: 1fr;
  }

  .info-side {
    position: static;
  }
}


/* === MOKUTON BUTTON / LINK MOTION LAYER === */
/* Аккуратные hover-анимации для текстовых CTA, ссылок «Смотреть» и больших кнопок. */

.text-link {
  display: inline-block;
  transform: translateY(0);
  transition:
    color 0.28s ease,
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(.22, .72, .18, 1),
    text-shadow 0.28s ease;
}

.text-link::after {
  width: calc(100% + 12px);
  transform: scaleX(1);
  transform-origin: left center;
  transition:
    width 0.34s cubic-bezier(.22, .72, .18, 1),
    opacity 0.28s ease,
    background 0.28s ease;
}

.text-link.dark::after {
  background: rgba(17, 17, 17, 0.86);
}

.product-row.small a,
.product-view-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  transform: translateY(0);
  transition:
    color 0.28s ease,
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(.22, .72, .18, 1),
    text-shadow 0.28s ease;
}

.link-arrow {
  display: inline-block;
  line-height: 1;
  transform: translateX(0);
  transition: transform 0.28s cubic-bezier(.22, .72, .18, 1);
  will-change: transform;
}

.big-btn {
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s cubic-bezier(.22, .72, .18, 1),
    box-shadow 0.3s ease,
    filter 0.3s ease;
}

.big-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 34%,
    rgba(255, 255, 255, 0.34) 50%,
    transparent 66%,
    transparent 100%
  );
  transform: translateX(-130%);
  transition: transform 0.68s cubic-bezier(.22, .72, .18, 1);
  pointer-events: none;
}

.big-btn .link-arrow {
  margin-left: 2px;
}

@keyframes mokuton-arrow-nudge {
  0%,
  100% {
    transform: translateX(0);
  }

  45% {
    transform: translateX(5px);
  }

  70% {
    transform: translateX(2px);
  }
}

@media (hover: hover) and (pointer: fine) {
  .text-link:hover,
  .text-link:focus-visible {
    color: var(--cream);
    opacity: 1;
    transform: translateY(-4px);
    text-shadow: 0 10px 26px rgba(232, 224, 211, 0.18);
  }

  .text-link.dark:hover,
  .text-link.dark:focus-visible {
    color: #080807;
    text-shadow: 0 10px 22px rgba(8, 8, 7, 0.14);
  }

  .text-link:hover::after,
  .text-link:focus-visible::after {
    width: calc(100% + 30px);
    opacity: 1;
  }

  .product-row.small a:hover,
  .product-row.small a:focus-visible,
  .product-view-link:hover,
  .product-view-link:focus-visible {
    color: #080807;
    opacity: 1;
    transform: translateY(-3px);
    text-shadow: 0 10px 20px rgba(8, 8, 7, 0.12);
  }

  .product-row.small a:hover .link-arrow,
  .product-row.small a:focus-visible .link-arrow,
  .product-view-link:hover .link-arrow,
  .product-view-link:focus-visible .link-arrow,
  .big-btn:hover .link-arrow,
  .big-btn:focus-visible .link-arrow {
    animation: mokuton-arrow-nudge 0.82s ease-in-out infinite;
  }

  .big-btn:hover,
  .big-btn:focus-visible {
    transform: translateY(-4px);
    filter: brightness(1.05);
    box-shadow:
      0 18px 38px rgba(0, 0, 0, 0.26),
      0 0 28px rgba(232, 224, 211, 0.14);
  }

  .big-btn:hover::before,
  .big-btn:focus-visible::before {
    transform: translateX(130%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .text-link,
  .text-link::after,
  .product-row.small a,
  .product-view-link,
  .big-btn,
  .big-btn::before,
  .link-arrow {
    transition: none !important;
    animation: none !important;
  }
}

/* === MOKUTON TEXT LINK UNDERLINE ALIGNED FIX === */
/* Линия теперь привязана к ширине текста: слева не уезжает, на hover растягивается ровно до конца фразы. */

.text-link {
  display: inline-block;
  width: fit-content;
}

.text-link::after {
  width: 50% !important;
  transform: translateX(0) !important;
  transform-origin: left center;
  transition:
    width 0.34s cubic-bezier(.22, .72, .18, 1),
    opacity 0.28s ease,
    background 0.28s ease;
}

@media (hover: hover) and (pointer: fine) {
  .text-link:hover::after,
  .text-link:focus-visible::after {
    width: 100% !important;
    transform: translateX(0) !important;
    opacity: 1;
  }
}

/* === MOKUTON SIZE GUIDE FINAL === */
/* Картинки размерной сетки: вертикально, компактнее, внутри своего блока. */
.size-guide-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
}

.size-guide-image {
  display: block;
  width: min(100%, 760px);
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(241, 234, 223, 0.16);
  border-radius: 18px;
  background: #0b0a09;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

/* Карточки "Как измерять" под A/B/C/D */
.info-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.info-mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 1200px) {
  .size-guide-image {
    width: min(100%, 680px);
  }

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

@media (max-width: 900px) {
  .size-guide-images {
    gap: 22px;
    margin-top: 24px;
  }

  .size-guide-image {
    width: min(100%, 620px);
    border-radius: 14px;
  }
}

@media (max-width: 640px) {
  .size-guide-images {
    gap: 16px;
    margin-top: 20px;
  }

  .size-guide-image {
    width: 100%;
    border-radius: 12px;
  }

  .info-card-grid {
    grid-template-columns: 1fr;
  }
}

/* === MOKUTON FOOTER DESCRIPTION ALIGN FIX === */
/* Поднимает описание под логотипом: отступ от линии до текста теперь равен отступу от MOKUTON до линии. */

.footer .footer-grid > div:first-child h2 {
  margin-bottom: 28px;
}

.footer .footer-grid > div:first-child h2::after {
  margin-top: 28px;
}

.footer .footer-grid > div:first-child p {
  margin: 0;
  max-width: 430px;
}

@media (max-width: 900px) {
  .footer .footer-grid > div:first-child h2 {
    margin-bottom: 24px;
  }

  .footer .footer-grid > div:first-child h2::after {
    margin-top: 24px;
  }
}
/* === MOKUTON INFO PAGE ANCHOR SCROLL === */
/* Плавная прокрутка к разделам страницы: Размеры / Как измерять / Советы */

html {
  scroll-behavior: smooth;
}

/* Чтобы при переходе по якорю блок не заезжал под фиксированный header */
.info-block {
  scroll-margin-top: 132px;
}

/* Аккуратное поведение ссылок бокового меню */
.info-side a {
  transition:
    color 0.24s ease,
    padding-left 0.24s ease,
    border-color 0.24s ease;
}

.info-side a:hover,
.info-side a:focus-visible {
  color: var(--text);
  padding-left: 8px;
  border-bottom-color: rgba(241, 234, 223, 0.32);
}

/* Планшет */
@media (max-width: 900px) {
  .info-block {
    scroll-margin-top: 150px;
  }
}

/* Телефон */
@media (max-width: 640px) {
  .info-block {
    scroll-margin-top: 145px;
  }
}

/* Телефон в горизонтальном положении */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 560px) {
  .info-block {
    scroll-margin-top: 86px;
  }
}

/* === MOKUTON HEADER LOGO GHOST SEAL HOVER === */
/* Более ровный, меньший и блеклый фоновый знак при наведении на MOKUTON. */

.header {
  overflow: visible;
}

.logo {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  overflow: visible;
  color: var(--text);
  transition:
    color 0.36s ease,
    text-shadow 0.36s ease,
    transform 0.36s cubic-bezier(.22, .72, .18, 1);
}

.logo::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;

  width: 176px;
  height: 176px;

  background-image: url("../img/logo-footer.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  opacity: 0;
  transform: translate(-50%, -50%) scale(0.18);
  transform-origin: center center;

  filter:
    brightness(0.12)
    saturate(0.62)
    blur(1.6px)
    drop-shadow(0 0 0 rgba(232, 224, 211, 0));

  pointer-events: none;
  z-index: -1;

  transition:
    opacity 0.78s ease,
    transform 1.45s cubic-bezier(.16, .84, .24, 1),
    filter 1.45s cubic-bezier(.16, .84, .24, 1);

  will-change: opacity, transform, filter;
}

@media (hover: hover) and (pointer: fine) {
  .logo:hover,
  .logo:focus-visible {
    color: #fff4e4;
    text-shadow:
      0 0 12px rgba(232, 224, 211, 0.16),
      0 0 28px rgba(232, 224, 211, 0.08);
    transform: translateY(-1px);
  }

.logo:hover::before,
.logo:focus-visible::before {
  opacity: 0.18;
  transform: translate(-50%, -50%) scale(0.86);
  filter:
    brightness(0.90)
    saturate(0.95)
    blur(0.28px)
    drop-shadow(0 0 18px rgba(232, 224, 211, 0.16))
    drop-shadow(0 0 48px rgba(232, 224, 211, 0.08));
  }
}

@media (max-width: 1200px) {
  .logo::before {
    width: 158px;
    height: 158px;
  }
}

@media (max-width: 900px) {
  .logo::before {
    width: 138px;
    height: 138px;
  }

  @media (hover: hover) and (pointer: fine) {
    .logo:hover::before,
    .logo:focus-visible::before {
      opacity: 0.11;
      transform: translate(-50%, -50%) scale(0.82);
    }
  }
}

@media (max-width: 640px) {
  .logo::before {
    width: 116px;
    height: 116px;
  }
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .logo,
  .logo::before {
    transition: none !important;
    animation: none !important;
  }

  .logo::before {
    display: none;
  }
}

/* === MOKUTON HOME PRODUCTS FROM CATALOG === */

.home-product-image-link {
  display: block;
  overflow: hidden;
}

.home-product-image-link img {
  transition:
    transform 0.55s ease,
    filter 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .home-product-image-link:hover img {
    transform: scale(1.035);
    filter: brightness(0.98);
  }
}

.home-products-empty {
  grid-column: 1 / -1;
  min-height: 260px;
  padding: 34px;
  border: 1px solid rgba(17, 17, 17, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-products-empty h3 {
  margin: 0 0 16px;
  color: #171513;
  font-size: 34px;
  line-height: 1;
}

.home-products-empty p {
  margin: 0;
  max-width: 520px;
  color: #3d3935;
  line-height: 1.55;
}

.home-product-skeleton {
  pointer-events: none;
}

.home-product-skeleton-image,
.home-product-skeleton-line {
  position: relative;
  overflow: hidden;
  background: rgba(17, 17, 17, 0.10);
}

.home-product-skeleton-image {
  aspect-ratio: 1 / 1.3;
}

.home-product-skeleton-line {
  height: 14px;
}

.home-product-skeleton-line.title {
  width: 52%;
  height: 18px;
}

.home-product-skeleton-line.price {
  width: 86px;
  height: 18px;
}

.home-product-skeleton-line.tag {
  width: 150px;
}

.home-product-skeleton-line.link {
  width: 92px;
}

.home-product-skeleton-image::after,
.home-product-skeleton-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    transparent
  );
  animation: mokuton-home-skeleton 1.35s ease-in-out infinite;
}

@keyframes mokuton-home-skeleton {
  100% {
    transform: translateX(100%);
  }
}

/* =========================================================
   MOKUTON MOBILE HEADER / HERO / HOME CATALOG FIX
   Fixes:
   - smaller mobile hero title
   - centered/aligned mobile nav with larger text
   - mobile dropdown opens only by JS .is-open, so second tap closes it
   - tighter home product cards on phone
   ========================================================= */

/* Mobile dropdown should not stay open just because the trigger has focus.
   On touch screens it opens only when JS adds .is-open. */
@media (max-width: 900px) {
  .header .nav {
    justify-content: center;
    overflow: visible;
  }

  .nav-dropdown:not(.is-open) .nav-dropdown-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(8px) !important;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .nav-dropdown.is-open > .nav-link::after {
    transform: rotate(225deg) translateY(-1px);
    opacity: 1;
  }
}

@media (max-width: 640px) and (orientation: portrait) {
  .header {
    padding-left: 18px;
    padding-right: 18px;
  }

  .header .nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    padding-top: 6px;
    overflow: visible;
  }

  .nav a,
  .nav-dropdown-trigger {
    font-size: 11px;
    line-height: 1.1;
    letter-spacing: 0.11em;
  }

  .nav-dropdown > .nav-link {
    gap: 7px;
  }

  .hero h1 {
    font-size: clamp(40px, 13.2vw, 54px);
    line-height: 0.94;
  }

  .collection .product-grid#homeProductGrid {
    gap: 32px;
  }

  .home-product-card {
    overflow: visible;
  }

  .home-product-card::after {
    top: 0;
    bottom: 88px;
    height: auto;
  }

  .home-product-card .home-product-image-link {
    height: clamp(315px, 94vw, 380px);
    background: #080807;
  }

  .home-product-card .home-product-image-link img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center center;
  }

  .home-product-card .product-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.25;
  }

  .home-product-card .product-row h3 {
    margin: 0;
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: 0.08em;
  }

  .home-product-card .product-row strong {
    display: block;
    margin: 0;
    white-space: nowrap;
    font-size: 14px;
  }

  .home-product-card .product-row.small {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.3;
  }

  .home-product-card .product-row.small span,
  .home-product-card .product-row.small a {
    display: block;
    margin: 0;
  }

  .home-product-card .product-view-link {
    white-space: nowrap;
  }
}

@media (max-width: 380px) and (orientation: portrait) {
  .header .nav {
    gap: 6px;
  }

  .nav a,
  .nav-dropdown-trigger {
    font-size: 10.5px;
    letter-spacing: 0.09em;
  }

  .hero h1 {
    font-size: 39px;
  }

  .home-product-card .product-row,
  .home-product-card .product-row.small {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .home-product-card .product-row strong {
    margin-top: 0;
  }
}

/* =========================================================
   MOKUTON MOBILE HEADER DROPDOWN FINAL FIX
   Держим пункты меню собранными по центру и открываем dropdown
   на телефоне только через класс .is-open из main.js.
   ========================================================= */

@media (max-width: 900px) {
  .header {
    overflow: visible !important;
    z-index: 1000;
  }

  .header .nav {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    display: flex !important;
    align-items: center;
    justify-content: center !important;
    gap: clamp(24px, 7vw, 40px) !important;
    padding: 8px clamp(12px, 4vw, 28px) 2px !important;
    overflow: visible !important;
    scrollbar-width: none;
  }

  .header .nav::-webkit-scrollbar {
    display: none;
  }

  .header .nav > a,
  .header .nav > .nav-dropdown {
    flex: 0 0 auto;
  }

  .nav-dropdown {
    position: static !important;
    min-height: auto !important;
  }

  .nav-dropdown > .nav-link {
    min-height: 32px;
  }

  .nav-dropdown-menu {
    position: absolute !important;
    z-index: 1001;
    top: calc(100% - 1px) !important;
    left: clamp(18px, 5vw, 34px) !important;
    right: clamp(18px, 5vw, 34px) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: min(72vh, 540px);
    overflow-y: auto;
    padding: 22px 24px !important;
    transform: translateY(10px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .nav-dropdown:not(.is-open) .nav-dropdown-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(10px) !important;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .nav-dropdown.is-open > .nav-link::after {
    transform: rotate(225deg) translateY(-1px) !important;
    opacity: 1 !important;
  }
}

@media (max-width: 640px) and (orientation: portrait) {
  .header {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .header .nav {
    justify-content: center !important;
    gap: clamp(24px, 7.2vw, 34px) !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .nav a,
  .nav-dropdown-trigger {
    font-size: 11px !important;
    line-height: 1.1;
    letter-spacing: 0.105em !important;
    white-space: nowrap;
  }

  .nav-dropdown > .nav-link {
    gap: 7px;
  }

  .nav-dropdown-menu {
    left: 20px !important;
    right: 20px !important;
  }
}

@media (max-width: 380px) and (orientation: portrait) {
  .header {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .header .nav {
    gap: clamp(14px, 5.4vw, 22px) !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  .nav a,
  .nav-dropdown-trigger {
    font-size: 10.5px !important;
    letter-spacing: 0.075em !important;
  }
}

/* =========================================================
   MOKUTON MOBILE MENU ARROW + FONT FINAL TWEAK
   Fixes:
   - arrow returns down after second tap / close
   - focus-within on touch no longer keeps arrow visually opened
   - mobile menu text is slightly larger
   ========================================================= */

@media (max-width: 900px) {
  .nav-dropdown:not(.is-open) > .nav-link::after,
  .nav-dropdown:not(.is-open):hover > .nav-link::after,
  .nav-dropdown:not(.is-open):focus-within > .nav-link::after {
    transform: rotate(45deg) translateY(-2px) !important;
    opacity: 0.72 !important;
  }

  .nav-dropdown.is-open > .nav-link::after,
  .nav-dropdown.is-open:hover > .nav-link::after,
  .nav-dropdown.is-open:focus-within > .nav-link::after {
    transform: rotate(225deg) translateY(-1px) !important;
    opacity: 1 !important;
  }

  .nav-dropdown-menu a {
    font-size: 15px;
    line-height: 1.18;
  }

  .nav-dropdown-title {
    font-size: 14px;
  }
}

@media (max-width: 640px) and (orientation: portrait) {
  .nav a,
  .nav-dropdown-trigger {
    font-size: 11.7px !important;
    letter-spacing: 0.095em !important;
  }

  .nav-dropdown-menu a {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
  }
}

@media (max-width: 380px) and (orientation: portrait) {
  .nav a,
  .nav-dropdown-trigger {
    font-size: 11px !important;
    letter-spacing: 0.065em !important;
  }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 560px) {
  .nav a,
  .nav-dropdown-trigger {
    font-size: 10.8px !important;
    letter-spacing: 0.105em !important;
  }

  .nav-dropdown-menu a {
    font-size: 14.5px;
  }
}

/* =========================================================
   MOKUTON MOBILE HOME PRODUCT LINK ARROW FIX
   Fixes mobile "Смотреть →": arrow stays on the same line as the text.
   ========================================================= */

@media (max-width: 640px) and (orientation: portrait) {
  .home-product-card .product-row.small .product-view-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    width: fit-content !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  .home-product-card .product-row.small .product-view-link .link-arrow {
    display: inline-block !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    line-height: 1 !important;
    transform: translateX(0);
  }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 560px) {
  .home-product-card .product-row.small .product-view-link,
  .product-row.small .product-view-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    width: fit-content !important;
    white-space: nowrap !important;
  }

  .home-product-card .product-row.small .product-view-link .link-arrow,
  .product-row.small .product-view-link .link-arrow {
    display: inline-block !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    line-height: 1 !important;
  }
}


/* =========================================================
   MOKUTON SIZE SLIDER
   Размеры берутся из полной сетки по clothing_type.
   Доступные размеры активны, отсутствующие остаются на шкале, но заблокированы.
   ========================================================= */

.size-list.size-slider-wrap {
  display: block;
  max-width: 560px;
}

.size-slider {
  --size-count: 1;
  --selected-index: 0;

  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--size-count), minmax(42px, 1fr));
  width: 100%;
  margin: 4px 0 18px;
  padding: 12px 0 20px;
  isolation: isolate;
}

.size-slider::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: calc((100% / var(--size-count)) / 2);
  right: calc((100% / var(--size-count)) / 2);
  top: 52px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(241, 234, 223, 0.12),
    rgba(241, 234, 223, 0.34),
    rgba(241, 234, 223, 0.12)
  );
}

.size-step {
  position: relative;
  z-index: 1;
  min-width: 0;
  height: 82px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(241, 234, 223, 0.46);
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
}

.size-step-label {
  display: block;
  white-space: nowrap;
  opacity: 0.58;
  transform: translateY(5px);
  transition:
    color 0.26s ease,
    opacity 0.26s ease,
    font-size 0.26s ease,
    transform 0.26s cubic-bezier(.22, .72, .18, 1),
    text-shadow 0.26s ease;
}

.size-step-mark {
  position: absolute;
  left: 50%;
  top: 47px;
  width: 1px;
  height: 13px;
  transform: translateX(-50%);
  background: rgba(241, 234, 223, 0.34);
  transition:
    height 0.26s ease,
    top 0.26s ease,
    width 0.26s ease,
    background 0.26s ease,
    box-shadow 0.26s ease,
    opacity 0.26s ease;
}

.size-step:not(:disabled):hover .size-step-label,
.size-step:not(:disabled):focus-visible .size-step-label {
  opacity: 0.9;
  color: rgba(241, 234, 223, 0.88);
  transform: translateY(0);
}

.size-step:not(:disabled):hover .size-step-mark,
.size-step:not(:disabled):focus-visible .size-step-mark {
  background: rgba(241, 234, 223, 0.72);
  height: 17px;
  top: 45px;
}

.size-step.is-selected .size-step-label {
  opacity: 1;
  color: #fff4e4;
  font-size: 18px;
  transform: translateY(-8px);
  text-shadow:
    0 0 14px rgba(232, 224, 211, 0.20),
    0 8px 20px rgba(0, 0, 0, 0.32);
}

.size-step.is-selected .size-step-mark {
  top: 41px;
  width: 2px;
  height: 24px;
  background: var(--cream);
  box-shadow:
    0 0 12px rgba(232, 224, 211, 0.34),
    0 0 28px rgba(232, 224, 211, 0.14);
}

.size-step.is-unavailable {
  cursor: not-allowed;
}

.size-step.is-unavailable .size-step-label {
  opacity: 0.28;
  color: rgba(241, 234, 223, 0.36);
  text-decoration: line-through;
  text-decoration-color: rgba(241, 234, 223, 0.48);
  text-decoration-thickness: 1px;
}

.size-step.is-unavailable .size-step-mark {
  height: 8px;
  top: 50px;
  opacity: 0.34;
}

.size-slider-wrap .size-guide-inline {
  width: fit-content;
  min-width: 190px;
  margin-top: 2px;
}

@media (hover: none) {
  .size-step:not(:disabled):hover .size-step-label {
    transform: translateY(5px);
  }

  .size-step.is-selected .size-step-label {
    transform: translateY(-8px);
  }
}

@media (max-width: 640px) and (orientation: portrait) {
  .size-list.size-slider-wrap {
    display: block !important;
    max-width: 100%;
  }

  .size-slider {
    grid-template-columns: repeat(var(--size-count), minmax(38px, 1fr));
    margin-bottom: 16px;
    padding-top: 10px;
  }

  .size-slider::before {
    top: 50px;
  }

  .size-step {
    min-height: 0 !important;
    height: 78px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .size-step-mark {
    top: 46px;
  }

  .size-step.is-selected .size-step-label {
    font-size: 15px;
    transform: translateY(-7px);
  }

  .size-step.is-selected .size-step-mark {
    top: 40px;
    height: 22px;
  }

  .size-slider-wrap .size-guide-inline {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 380px) and (orientation: portrait) {
  .size-slider {
    grid-template-columns: repeat(var(--size-count), minmax(35px, 1fr));
  }

  .size-step {
    font-size: 9.5px;
    letter-spacing: 0.055em;
  }

  .size-step.is-selected .size-step-label {
    font-size: 14px;
  }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 560px) {
  .size-list.size-slider-wrap {
    display: block !important;
  }

  .size-slider {
    grid-template-columns: repeat(var(--size-count), minmax(38px, 1fr));
    margin-bottom: 14px;
  }

  .size-step {
    height: 72px;
    font-size: 10px;
  }

  .size-step.is-selected .size-step-label {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .size-step-label,
  .size-step-mark {
    transition: none !important;
  }
}

/* === MOKUTON SIZE GUIDE RETURN TO ORDER === */
/* Кнопка появляется только если size-guide.html открыт из карточки выбранного товара. */

.size-guide-return {
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid rgba(241, 234, 223, 0.22);
  background:
    radial-gradient(circle at 86% 16%, rgba(232, 224, 211, 0.12), transparent 32%),
    rgba(232, 224, 211, 0.045);
}

.size-guide-return span {
  display: block;
  margin-bottom: 12px;
  color: rgba(241, 234, 223, 0.52);
  font-family: "Cinzel", serif;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.size-guide-return-btn {
  width: 100%;
  min-height: 46px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 1px solid rgba(241, 234, 223, 0.34) !important;
  background: var(--cream);
  color: #111 !important;
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.13em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  transition:
    transform 0.24s ease,
    filter 0.24s ease,
    box-shadow 0.24s ease;
}

.size-guide-return-btn:hover,
.size-guide-return-btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.22),
    0 0 24px rgba(232, 224, 211, 0.10);
}

@media (max-width: 900px) {
  .size-guide-return {
    margin-bottom: 20px;
  }
}

@media (max-width: 640px) {
  .size-guide-return {
    padding: 16px;
  }

  .size-guide-return-btn {
    min-height: 48px;
    font-size: 11px;
    letter-spacing: 0.11em;
  }
}

