@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/cormorant-600-cyrillic.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/cormorant-600-latin.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
.public-shop {
  --bg: #141416;
  --surface: #1d1d21;
  --surface-strong: #28272e;
  --line: #3f3d47;
  --text: #efedeb;
  --muted: #c0bbc8;
  --accent: #ded3ed;
  --button: #ded3ed;
  --button-ink: #22202a;
}
.public-shop h1, .public-shop .shop-section > h2, .public-shop .shop-about h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
}
.site-header .brand em { color: var(--accent); }
.public-shop .brand { letter-spacing: -.05em; }
.public-shop .button { border-radius: .2rem; }
.public-shop .button:hover { background: #eee5fb; color: #211c2b; }
.public-shop .button.secondary:hover { background: #34303d; color: var(--text); }
.shop-intro {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(15rem, 35vw, 25rem);
  border-bottom: 1px solid var(--line);
}
.shop-intro-copy { padding-block: 1.5rem; }
.shop-intro h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: .98; letter-spacing: -.035em; }
.shop-intro h1 em { color: var(--accent); font-style: normal; }
.shop-intro p { max-width: 23rem; margin: .85rem 0 1rem; color: var(--muted); }
.shop-intro .button { gap: .7rem; }
.shop-portrait {
  position: absolute;
  inset: 0 2% 0 auto;
  z-index: -1;
  width: 63%;
  max-width: 36rem;
  margin: 0;
  overflow: hidden;
}
.shop-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 36%;
  mask-image:
    linear-gradient(to right, transparent, black 43%, black 94%, transparent),
    linear-gradient(to bottom, transparent, black 8%, black 88%, transparent);
  mask-composite: intersect;
}
.shop-section { margin-top: 2.2rem; }
.shop-section h2 { margin-bottom: .8rem; }
.shop-about {
  display: grid;
  grid-template-columns: minmax(6rem, 29%) minmax(0, 1fr);
  align-items: center;
  gap: clamp(.85rem, 3vw, 2rem);
  max-width: 44rem;
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
}
.shop-about img { display: block; width: 100%; height: auto; }
.shop-about h2 { margin-bottom: .45rem; }
.shop-about p { color: var(--muted); }
.shop-steps { list-style: none; padding: 0; display: grid; gap: .85rem; }
.shop-steps li { border-bottom: 1px solid var(--line); padding-bottom: .65rem; }
.shop-steps span { display: block; color: var(--muted); }
.category-chips { display: flex; flex-wrap: wrap; list-style: none; gap: .4rem; margin: 0 0 1rem; padding: 0; }
.category-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; }
.category-chips a:hover { border-color: var(--accent); }
.category-chips a[aria-current=page] { color: var(--button-ink); background: var(--button); border-color: var(--button); }
.shop-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
.shop-grid .shop-tile {
  position: relative;
  isolation: isolate;
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: .45rem;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: .23rem;
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  animation: shop-enter 240ms ease both;
  animation-delay: var(--tile-delay, 0ms);
  transition: border-color 180ms, translate 180ms, scale 120ms;
}
.shop-grid .shop-tile:nth-child(2) { --tile-delay: 25ms; }
.shop-grid .shop-tile:nth-child(3) { --tile-delay: 50ms; }
.shop-grid .shop-tile:nth-child(4) { --tile-delay: 75ms; }
.shop-grid .shop-tile:nth-child(5) { --tile-delay: 100ms; }
.shop-grid .shop-tile:nth-child(n+6) { --tile-delay: 125ms; }
@media (hover: hover) { .shop-grid .shop-tile:hover { border-color: var(--accent); translate: 0 -2px; } }
.shop-grid .shop-tile:active { scale: .975; }
.shop-tile { scroll-margin-block: 1rem; }
.shop-tile h2 { font-size: clamp(1.1rem,3.7vw,1.5rem); margin: 0; overflow-wrap: anywhere; }
.shop-tile-copy p { margin-top: .2rem; font-size: .83rem; color: var(--muted); line-height: 1.35; }
.shop-tile-price { border-top: 1px solid var(--line); padding-top: .3rem; color: var(--accent); font-size: 1.02rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.shop-tile-price small { font-weight: 400; color: var(--muted); }
.shop-emblem {
  width: 3.7rem;
  aspect-ratio: 1;
  background: url('category-engravings.png') no-repeat 100% 100% / 300% 200%;
}
.shop-emblem[data-category="tarot"] { background-position: 0 0; }
.shop-emblem[data-category="love"] { background-position: 50% 0; }
.shop-emblem[data-category="wedding"] { background-position: 100% 0; }
.shop-emblem[data-category="wellness"] { background-position: 0 100%; }
.shop-emblem[data-category="cleansing"] { background-position: 50% 100%; }
.shop-emblem[data-service="attachment"] { background-position: 100% 100%; }
.home-services .shop-tile { grid-template-rows: 1fr auto; align-items: center; min-height: 6rem; }
.home-services .shop-tile-copy { padding-right: 24%; }
.home-services .shop-emblem { position: absolute; right: .25rem; bottom: .2rem; width: clamp(3.4rem, 14vw, 7rem); opacity: .48; pointer-events: none; }
.home-services .shop-tile-price { border: 0; padding: 0; }
.shop-back { display: inline-flex; align-items: center; min-height: 44px; margin-top: .65rem; }
.illustrated-service { max-width: 50rem; }
.service-illustrated-heading {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: clamp(12rem, 29vw, 17rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.service-heading-copy { padding-top: 1.35rem; }
.service-heading-copy h1 { max-width: 12ch; font-size: clamp(1.85rem, 6vw, 3.5rem); line-height: 1.02; overflow-wrap: anywhere; }
.service-illustrated-heading[data-service="tarot"] h1 { max-width: 10ch; }
.service-heading-copy p { margin-top: .7rem; color: var(--muted); font-size: .9rem; }
.service-heading-copy { text-shadow: 0 2px 12px var(--bg); }
.service-hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  display: block;
  width: 74%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 48%;
  mask-image:
    linear-gradient(to right, transparent, black 39%, black 92%, transparent),
    linear-gradient(to bottom, transparent, black 13%, black 71%, transparent);
  mask-composite: intersect;
  animation: service-art-enter 320ms ease-out both;
}
.service-description { border-top: 1px solid var(--line); padding-top: 1rem; }
.service-description p { max-width: 65ch; color: var(--muted); }
.service-tariffs { margin-top: 1rem; display: grid; gap: .7rem; animation: shop-enter 260ms ease both; }
.service-tariffs[hidden] { display: none; }
.service-picker { margin-top: 1.25rem; }
.service-picker fieldset { min-inline-size: 0; padding: 0; margin: 0; border: 0; }
.service-picker legend { padding: 0; margin-bottom: .55rem; font: clamp(1.4rem, 4vw, 2rem)/1.2 Georgia, serif; }
.service-option { margin-bottom: .45rem; }
.service-option-label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .5rem;
  padding: .7rem;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: .23rem;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.service-option-label:has(:checked) { border-color: var(--accent); background: var(--surface-strong); }
.service-option-label input { margin: 0; accent-color: var(--accent); }
.service-option-label strong { text-align: right; }
.service-option-label small { display: block; font-weight: 400; color: var(--muted); }
.service-quantity:not([hidden]), .service-stepper, .service-total { display: flex; align-items: center; gap: .5rem; }
.service-quantity { flex-wrap: wrap; justify-content: space-between; margin: .65rem 0; }
.service-quantity:not([hidden]) { animation: service-quantity-enter 220ms ease-out both; }
.service-stepper { gap: 0; }
.service-stepper button, .service-stepper input { min-height: 44px; text-align: center; }
.service-stepper button { min-width: 44px; color: var(--text); background: var(--surface); border: 1px solid var(--line); }
.service-stepper button:disabled { opacity: .5; }
.service-stepper input { width: 4.4rem; border-inline: 0; border-radius: 0; padding: .15rem; }
.service-total { justify-content: space-between; margin-top: .7rem; padding-block: .75rem; border-top: 1px solid var(--line); font: clamp(1.3rem, 4vw, 1.95rem)/1.2 Georgia, serif; }
.service-total output { text-align: right; overflow-wrap: anywhere; }
.service-picker > .button { width: 100%; }
.service-picker + .service-feedback:not(:empty) { margin-top: .6rem; }
.service-tariff { background: var(--surface); padding: .9rem; border: 1px solid var(--line); }
.service-tariff h2 { font-size: 1.35rem; }
.service-tariff > span { color: var(--accent); }
.service-tariff .actions { margin-top: .6rem; }
.service-tariff input[type=number] { width: 5.5rem; }
.cart-lines { list-style: none; padding: 0; margin: 0; }
.cart-lines li { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.cart-price,.cart-actions { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.cart-price { justify-content: space-between; }
.cart-actions { margin-top: .5rem; font-size: .88rem; }
.cart-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: .23rem; }
.cart-stepper button { min-width: 44px; min-height: 44px; border: 0; background: var(--surface); color: var(--text); cursor: pointer; }
.cart-stepper button:disabled, .cart-checkout button:disabled { opacity: .5; cursor: default; }
.cart-stepper output { display: grid; place-items: center; min-width: 2.5rem; padding-inline: .4rem; }
.cart-undo:not([hidden]) {
  position: sticky;
  bottom: .75rem;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .45rem .7rem;
  margin-top: .9rem;
  padding: .55rem .75rem;
  border: 1px solid var(--line);
  border-radius: .23rem;
  background: var(--surface);
  animation: shop-enter 180ms ease-out both;
}
.cart-undo span { min-width: 0; overflow-wrap: anywhere; }
[data-basket-feedback]:not(.basket-feedback-error) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.basket-feedback-error { margin-top: .6rem; }
.text-button { padding: .4rem; min-height: 44px; border: 0; color: var(--accent); background: transparent; text-decoration: underline; }
.cart-checkout { padding-top: 1rem; }
.basket-total-changed { animation: basket-total-settle 240ms ease-out; }
.cart-checkout .button { margin-top: .6rem; width: 100%; }
.public-shop .notice.success { animation: shop-enter 250ms ease both; }
.cart-nav { display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; }
.cart-count { display: inline-grid; place-items: center; min-width: 1.35rem; min-height: 1.35rem; padding-inline: .2rem; font-size: .72rem; font-weight: 650; color: var(--button-ink); background: var(--button); border-radius: 999px; }
.cart-count-pop, body:has(.cart-added) .cart-count { animation: cart-pop 410ms cubic-bezier(.22,.8,.23,1); }
.service-feedback { min-height: 1.3rem; color: var(--accent); margin: 0; }
.service-feedback:empty { display: none; }
.telegram-field { display: grid; gap: .3rem; margin: .8rem 0; }
.telegram-field input { width: 100%; }
.legal-document section { margin-top: 1.6rem; }
.legal-document h2 { font-size: 1.65rem; margin-bottom: .65rem; }
.legal-details { margin: 0; }
.legal-details div { display: flex; flex-wrap: wrap; gap: .1rem .55rem; padding-block: .3rem; }
.legal-details dt { color: var(--muted); }
.legal-details dd { white-space: normal; margin: 0; }
.checkout-legal { margin-bottom: .75rem; font-size: .9rem; }
.invoice { max-width: 58rem; }
.invoice-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .8rem 1.5rem; padding-block: 1.6rem 1rem; border-bottom: 1px solid var(--line); }
.invoice-title { display: grid; gap: .45rem; justify-items: start; }
.invoice-title h1 { font-size: clamp(1.85rem, 5vw, 3.1rem); }
.invoice-title .status { border-color: var(--line); color: var(--text); padding: .25rem .6rem; font-size: .82rem; }
.invoice-amount { min-width: 0; display: grid; gap: .15rem; color: var(--muted); }
.invoice-amount strong { font: clamp(2rem, 7vw, 3.2rem)/1.05 Georgia, serif; color: var(--accent); overflow-wrap: anywhere; }
.invoice-layout { display: grid; gap: .8rem; margin-top: .85rem; }
.invoice-layout > .panel { border-radius: .25rem; min-width: 0; padding: clamp(.8rem, 2vw, 1.2rem); margin: 0; }
.invoice-layout h2 { font-size: clamp(1.3rem, 4vw, 1.7rem); margin-bottom: .6rem; }
.invoice-layout .line-items { margin-top: 0; }
.invoice-layout .line-items li, .invoice-layout .totals div { gap: .65rem; }
.invoice-layout .line-items li > div { min-width: 0; overflow-wrap: anywhere; }
.invoice-layout .line-items b, .invoice-layout .totals dd { white-space: normal; text-align: end; overflow-wrap: anywhere; }
.invoice-layout .totals { color: var(--muted); }
.invoice-layout .checkout-actions > p { color: var(--muted); }
.invoice-layout .checkout-actions > .button { margin-top: .85rem; }
.invoice-layout .checkout-actions .button { width: 100%; }
.invoice-copy:not([hidden]) { display: flex; gap: .25rem .65rem; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); margin-top: .8rem; }
.invoice-copy .text-button { padding-inline: 0; font-size: .9rem; }
.invoice-copy-status { color: var(--muted); font-size: .86rem; }
.invoice-copy-status:not(:empty) { animation: shop-enter 180ms ease-out both; }
@media (min-width: 45rem) {
  .invoice-amount { text-align: end; }
  .invoice-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
}
.invoice-page .site-footer { margin-top: 2.3rem; }
.home-services { margin-top: 1.15rem; }
@keyframes cart-pop { 35% { transform: translateY(-3px) scale(1.35); } 65% { transform: scale(.94); } }
@keyframes basket-total-settle { from { color: var(--accent); transform: translateY(3px) scale(1.06); opacity: .68; } to { transform: none; opacity: 1; } }
@keyframes shop-enter { from { opacity: .5; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes service-art-enter { from { opacity: .45; scale: .985; } to { opacity: 1; scale: 1; } }
@keyframes service-quantity-enter { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0); } }
@media (min-width: 47rem) { .shop-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; } .shop-steps { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 32rem) { .public-shop .topbar nav { gap: .5rem; } .public-shop .topbar nav a { font-size: .82rem; } }
@media (max-width: 32rem) {
  .service-hero-art { width: 77%; height: 88%; }
  .shop-intro h1 { font-size: clamp(1.8rem,8.6vw,2.6rem); }
  .shop-intro { min-height: 13rem; }
  .shop-portrait { inset-inline-end: 0; width: 69%; }
  .shop-portrait img { object-position: 48% 44%; }
  .shop-intro p { margin: .65rem 0 .8rem; font-size: .9rem; line-height: 1.45; }
  .category-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding: .2rem .25rem .35rem; margin-inline: -.25rem; }
  .category-chips a { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .public-shop *, .cart-count { animation: none !important; transition: none !important; } .shop-grid .shop-tile:active { scale: none; } }
