:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: #3a3a3a;
  --muted: #8a8a8a;
  --accent: #e59bb0;
  --accent-deep: #d47893;
  --line: #e8e8e8;
  --surface: #f7f7f7;
  --white: #ffffff;
  --danger: #b42318;

  --font: "Manrope", system-ui, sans-serif;
  --page: 1440px;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --radius-card: 28px;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

body.nav-open {
  overflow: hidden;
}

.atmosphere {
  display: none;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

/* display:grid/flex в компонентах перебивает нативный [hidden] */
[hidden] {
  display: none !important;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

.page-shell,
.hero__inner,
.catalog,
.howto,
.order,
.contact,
.page,
.site-footer {
  width: min(100%, var(--page));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.display {
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: none;
  min-height: 5.5rem;
  margin: 0;
  padding-block: 1rem;
  padding-inline: max(var(--gutter), calc((100% - min(100%, var(--page))) / 2 + var(--gutter)));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.logo {
  justify-self: start;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--accent-deep);
}

.logo:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.header-cta {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.header-cta:hover {
  color: var(--accent-deep);
  border-bottom-color: var(--accent-deep);
}

.header-cart {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  transition: background 0.2s ease;
}

.header-cart:hover {
  background: var(--surface);
}

.header-cart__badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__contact {
  display: none;
}

.nav-backdrop {
  display: none;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #222;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  background: #e4e4e4;
  color: #9a9a9a;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 1;
  pointer-events: none;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn--ghost:hover:not(:disabled) {
  background: var(--ink);
  color: #fff;
}

.btn--ghost:disabled {
  background: transparent;
  border-color: #ddd;
  color: #b0b0b0;
}

.btn--block {
  width: 100%;
  margin-top: 0.5rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100vh - 5.5rem);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 34rem) 1fr;
  align-items: center;
  min-height: calc(100vh - 5.5rem);
  padding-top: 2rem;
  padding-bottom: 3rem;
  gap: 2rem;
}

.hero__copy {
  max-width: 34rem;
  padding-bottom: 4vh;
  animation: rise 0.8s ease both;
}

.hero__brand {
  display: none;
}

.hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
}

.hero__lead {
  margin: 0 0 2.2rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--ink-soft);
}

.hero__lead span {
  color: var(--accent-deep);
}

.hero__cta {
  min-height: 56px;
  padding-inline: 1.9rem;
  font-size: 1rem;
  animation: rise 0.8s ease 0.12s both;
}

.hero__visual {
  position: absolute;
  top: 50%;
  right: max(-2%, calc((100% - var(--page)) / 2 - 2rem));
  width: min(52vw, 640px);
  transform: translateY(-48%);
  pointer-events: none;
  z-index: 0;
  animation: fade-in 1s ease 0.15s both;
}

.hero__img,
.hero__image {
  width: 100%;
  height: auto;
  object-fit: contain;
  user-select: none;
}

.hero__spark,
.spark {
  position: absolute;
  width: clamp(64px, 10vw, 96px);
  height: clamp(64px, 10vw, 96px);
  right: 8%;
  top: 6%;
  background: var(--accent);
  opacity: 0.7;
  clip-path: polygon(
    50% 0%,
    57% 35%,
    90% 20%,
    65% 48%,
    100% 50%,
    65% 52%,
    90% 80%,
    57% 65%,
    50% 100%,
    43% 65%,
    10% 80%,
    35% 52%,
    0% 50%,
    35% 48%,
    10% 20%,
    43% 35%
  );
  animation: sparkle 4s ease-in-out infinite;
}

.loading {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.loading code {
  font-size: 0.85em;
}

/* —— Page / section heads —— */
.page {
  padding-top: 2rem;
  padding-bottom: 5rem;
}

.page-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.page-head h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.page-head p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 1.05rem;
}

.page-head__crumb {
  margin: 0 0 1rem !important;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.page-head__crumb a:hover {
  color: var(--ink);
}

.page-head__crumb span {
  margin: 0 0.35rem;
  opacity: 0.55;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  max-width: none;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.section-head p {
  margin: 0;
  max-width: 28ch;
  color: var(--ink-soft);
  font-weight: 600;
}

.section-head__link {
  font-weight: 700;
  white-space: nowrap;
}

.section-head__link:hover {
  color: var(--accent-deep);
}

/* —— Catalog —— */
.catalog,
.howto,
.order,
.contact {
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.item,
.cat-card {
  display: grid;
  gap: 0.9rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.item.is-visible,
.cat-card.is-visible {
  opacity: 1;
  transform: none;
}

.item__media,
.cat-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.3s ease;
}

.item__media--photo,
.cat-card__media {
  padding: 0;
}

.item__media img,
.cat-card__media img,
.pdp__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item:hover .item__media,
.cat-card:hover .cat-card__media {
  transform: translateY(-3px);
}

.item__meta h3,
.cat-card .item__meta h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.item__meta p {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.item__hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.item:hover .item__hint,
.cat-card:hover .item__hint {
  color: var(--accent-deep);
}

.card-spark {
  position: absolute;
  width: 64px;
  height: 64px;
  right: 1rem;
  top: 1rem;
  background: rgba(255, 255, 255, 0.55);
  clip-path: polygon(
    50% 0%,
    57% 35%,
    90% 20%,
    65% 48%,
    100% 50%,
    65% 52%,
    90% 80%,
    57% 65%,
    50% 100%,
    43% 65%,
    10% 80%,
    35% 52%,
    0% 50%,
    35% 48%,
    10% 20%,
    43% 35%
  );
  pointer-events: none;
}

/* —— How to order —— */
.howto__path {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
}

.howto__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.25rem;
  border-radius: 22px;
  background: var(--surface);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.howto__step.is-visible {
  opacity: 1;
  transform: none;
}

.howto__num {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.howto__step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.howto__step p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 600;
  max-width: 36ch;
}

.howto__arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent-deep);
  padding: 0.15rem 0;
}

.howto__arrow-svg {
  width: 4.5rem;
  height: auto;
  transform: rotate(90deg);
  transform-origin: center;
}

.howto__arrow-line {
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  animation: howto-draw 1.1s ease forwards;
}

.howto__step.is-visible + .howto__arrow .howto__arrow-line,
.howto__path .howto__arrow .howto__arrow-line {
  animation-delay: 0.15s;
}

.howto__cta {
  min-height: 52px;
}

@keyframes howto-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (min-width: 981px) {
  .howto__path {
    flex-direction: row;
    align-items: stretch;
    gap: 0.25rem;
  }

  .howto__step {
    flex: 1 1 0;
    min-width: 0;
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 1.35rem 1.25rem 1.45rem;
  }

  .howto__step p {
    max-width: none;
  }

  .howto__arrow {
    flex: 0 0 auto;
    align-self: center;
    padding: 0 0.15rem;
  }

  .howto__arrow-svg {
    width: 4.75rem;
    transform: none;
  }
}

/* —— Order —— */
.order__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.order__block {
  padding: 1.6rem 1.5rem;
  border-radius: 24px;
  background: var(--surface);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.order__block.is-visible {
  opacity: 1;
  transform: none;
}

.order__block h3 {
  margin: 0 0 0.55rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.order__block p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 600;
  max-width: 32ch;
}

/* —— Contact —— */
.contact__panel {
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  border-radius: 36px;
  background:
    radial-gradient(520px 240px at 50% 0%, rgba(229, 155, 176, 0.28), transparent 70%),
    var(--surface);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact__panel.is-visible {
  opacity: 1;
  transform: none;
}

.contact__brand {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact__panel h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.contact__panel p {
  margin: 0 auto 1.6rem;
  max-width: 36ch;
  color: var(--ink-soft);
  font-weight: 600;
}

.contact__channel {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1.5px solid currentColor;
}

.contact__channel:hover {
  color: var(--accent-deep);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem 2.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* —— Product detail —— */
.pdp__layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.pdp__gallery {
  position: sticky;
  top: 6.5rem;
  aspect-ratio: 4 / 5;
  border-radius: 36px;
  overflow: hidden;
  background: var(--surface);
}

.pdp__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.pdp__image.is-pulse {
  animation: preview-pulse 0.4s ease;
}

.pdp__config h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.pdp__back {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.pdp__back:hover {
  color: var(--accent-deep);
}

.pdp__added {
  margin: 0.85rem 0 0;
  font-weight: 700;
  color: var(--ink-soft);
}

.pdp__added a {
  color: var(--accent-deep);
  border-bottom: 1.5px solid currentColor;
}

/* —— Cart —— */
.cart-page .page-head {
  max-width: 36rem;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.cart-lines {
  display: grid;
  gap: 1rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 1rem;
  padding: 1rem;
  border-radius: 24px;
  background: var(--surface);
}

.cart-line__media {
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  background: #eee;
}

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

.cart-line__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.cart-line__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.cart-line__top h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cart-line__top p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.cart-line__top strong {
  font-weight: 800;
  white-space: nowrap;
}

.cart-line__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--line);
}

.qty button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.qty button:hover {
  background: var(--surface);
}

.qty span {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 800;
}

.cart-line__remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.cart-line__remove:hover {
  color: var(--danger);
}

.checkout {
  position: sticky;
  top: 6.5rem;
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 28px;
  background: var(--surface);
}

.checkout h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.fulfillment {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.55rem;
}

.fulfillment legend {
  margin-bottom: 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.fulfillment__option {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: #fff;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.fulfillment__option:has(input:checked) {
  border-color: var(--ink);
}

.fulfillment__option strong {
  display: block;
  font-weight: 800;
}

.fulfillment__option small {
  color: var(--muted);
  font-weight: 600;
}

.fulfillment__option input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--ink);
}

.pickup-box {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: #fff;
}

.pickup-box__label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.pickup-box p:last-child {
  margin: 0;
  font-weight: 600;
  color: var(--ink-soft);
}

.delivery-hint {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(229, 155, 176, 0.22);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
}

.checkout .field {
  display: grid;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.checkout .field input,
.checkout .field textarea {
  width: 100%;
  border: 1.5px solid #ddd;
  border-radius: 14px;
  background: #fff;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  outline: none;
}

.checkout .field input:focus,
.checkout .field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(229, 155, 176, 0.35);
}

.checkout .field textarea {
  min-height: 96px;
  resize: vertical;
}

.checkout__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 0.35rem;
  font-weight: 700;
}

.checkout__total strong {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cart-error {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(180, 35, 24, 0.08);
}

.cart-error p {
  margin: 0 0 0.85rem;
  font-weight: 700;
  color: var(--danger);
}

.cart-error__manual {
  margin: 0 !important;
}

.cart-empty,
.cart-success {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  max-width: 32rem;
  padding: 2rem;
  border-radius: 28px;
  background: var(--surface);
}

.cart-empty p,
.cart-success p {
  margin: 0;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.cart-success h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.sheet__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.sheet__desc {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-weight: 600;
  max-width: 38ch;
  line-height: 1.55;
}

.sheet__price {
  margin: 0 0 1.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.config-block {
  margin-bottom: 1.5rem;
}

.config-block__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.config-block__head span {
  color: var(--muted);
}

.chips {
  display: grid;
  gap: 0.55rem;
}

.chip {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.9rem 1.05rem;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.chip:hover {
  border-color: #ccc;
}

.chip.is-active {
  border-color: var(--ink);
  background: var(--surface);
}

.chip__main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.chip__label {
  font-weight: 700;
}

.chip__hint {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.chip__price {
  flex-shrink: 0;
  font-weight: 800;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.swatch {
  width: 2.15rem;
  height: 2.15rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.swatch:hover {
  transform: scale(1.06);
}

.swatch.is-active {
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.08),
    0 0 0 2px #fff,
    0 0 0 3.5px var(--ink);
}

/* legacy sheet (unused but safe) */
.sheet-backdrop,
.product-sheet {
  display: none !important;
}

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

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes sparkle {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(12deg) scale(1.06);
  }
}

@keyframes preview-pulse {
  0% {
    opacity: 0.55;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  :root {
    --gutter: clamp(1rem, 4.5vw, 1.75rem);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    min-height: 4.25rem;
    padding-block: 0.65rem;
    padding-top: max(0.65rem, env(safe-area-inset-top, 0px));
  }

  body.nav-open .site-header {
    background: #fff;
    border-bottom-color: var(--line);
  }

  .logo {
    font-size: 1rem;
  }

  .header-cta {
    display: none;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 55;
  }

  /* Full-screen overlay — never sits off-canvas to the side */
  .nav {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    height: 100dvh;
    margin: 0;
    padding: calc(4.75rem + env(safe-area-inset-top, 0px)) var(--gutter)
      calc(1.5rem + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border: 0;
    box-shadow: none;
    transform: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  body.nav-open .nav {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 1.05rem 0.15rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.15rem;
    font-weight: 700;
  }

  .nav__contact {
    display: block;
    margin-top: 0.85rem;
    border-bottom: 0;
    color: var(--accent-deep);
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 0.25rem;
    padding-bottom: 1.75rem;
    gap: 1rem;
  }

  .hero__visual {
    position: relative;
    top: auto;
    right: auto;
    width: min(78vw, 300px);
    margin: 0 auto;
    transform: none;
    order: -1;
  }

  .hero__img,
  .hero__image {
    width: 100%;
    height: auto;
  }

  .hero__spark {
    width: clamp(48px, 14vw, 72px);
    height: clamp(48px, 14vw, 72px);
    right: 6%;
    top: 4%;
  }

  .hero__copy {
    padding-bottom: 0;
    text-align: left;
  }

  .hero__cta {
    width: 100%;
  }

  .catalog,
  .howto,
  .order,
  .contact {
    padding-top: 2.25rem;
    padding-bottom: 3rem;
  }

  .howto__cta {
    width: 100%;
  }

  .catalog__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 0.75rem;
  }

  .catalog__grid--cats {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .order__row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .pdp__layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .pdp__gallery {
    position: static;
    border-radius: 24px;
    aspect-ratio: 1;
  }

  .cart-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .checkout {
    position: static;
  }

  .contact__panel {
    padding: 2rem 1.25rem;
    border-radius: 24px;
  }
}

@media (max-width: 640px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.35rem;
  }

  .section-head p {
    max-width: none;
  }

  .page {
    padding-top: 1.25rem;
    padding-bottom: 3.5rem;
  }

  .page-head {
    margin-bottom: 1.5rem;
  }

  .page-head h1 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .hero__title {
    font-size: clamp(2.35rem, 11vw, 3.2rem);
  }

  .hero__lead {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
  }

  .item__meta h3,
  .cat-card .item__meta h3 {
    font-size: 1.05rem;
  }

  .item__meta p {
    font-size: 0.88rem;
  }

  .card-spark {
    width: 28px;
    height: 28px;
  }

  .pdp__config h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .sheet__price {
    margin-bottom: 1.25rem;
  }

  .swatch {
    width: 2.5rem;
    height: 2.5rem;
  }

  .chip {
    min-height: 52px;
    padding: 0.85rem 1rem;
  }

  .cart-line {
    grid-template-columns: 88px 1fr;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: 20px;
  }

  .cart-line__top {
    flex-direction: column;
    gap: 0.35rem;
  }

  .cart-line__actions {
    flex-wrap: wrap;
  }

  .qty button {
    width: 36px;
    height: 36px;
  }

  .cart-empty,
  .cart-success {
    padding: 1.35rem;
    border-radius: 22px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }

  .btn {
    min-height: 52px;
    width: auto;
  }

  .btn--block,
  .hero__cta,
  .checkout .btn {
    width: 100%;
  }
}

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