* { box-sizing: border-box; }
:root { color: #231d30; background: #faf7f2; font-family: system-ui, "Segoe UI", sans-serif; }
body { margin: 0; }
a { color: #483079; }
a:focus-visible { outline: 3px solid #6844b7; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(1160px, calc(100% - 40px)); margin: auto; }
.site-header { border-bottom: 1px solid #e9e2da; }
.header-content, nav, .footer { display: flex; align-items: center; gap: 20px; }
.header-content, .footer { justify-content: space-between; }
.header-content { min-height: 68px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-size: 1.25rem; font-weight: 850; letter-spacing: -.06em; color: #231d30; }
.brand .brand-mark { display: block; flex: none; width: 40px; height: 40px; }
nav a { text-decoration: none; font-weight: 670; }
.hero { margin-top: 30px; display: grid; grid-template-columns: 1.05fr 1fr; min-height: 405px; border: 1px solid #ded1f3; border-radius: 25px; overflow: hidden; background: #ede4fa; }
.hero-content { padding: clamp(25px, 5vw, 63px); align-self: center; }
.category { color: #533575; font-size: .9rem; font-weight: 750; }
h1 { margin: 8px 0 13px; font-size: clamp(2.5rem, 6vw, 4.55rem); line-height: .98; letter-spacing: -.075em; }
h1 span { color: #8254cd; }
.hero-content > p:not(.category), .product p, .contact p { color: #62586b; line-height: 1.5; }
.primary { display: inline-block; padding: 11px 17px; border-radius: 8px; background: #4f3280; color: #fff; text-decoration: none; font-weight: 750; }
.hero .primary { margin-top: 22px; }
.primary:hover { background: #372156; }
button.primary { border: 0; cursor: pointer; font: inherit; font-weight: 750; }
.header-content nav { flex-wrap: wrap; gap: 10px 16px; }
.product-content button { margin-top: 12px; }
.product .product-price, .cart-item .product-price { color: #392556; font-weight: 750; }
.cart-item .product-price { margin-top: 5px; }
#cart-total { margin-top: 12px; color: #392556; font-size: 1.1rem; font-weight: 750; }
.product .product-cart-feedback { color: #236247; margin-bottom: 0; }
.product .product-cart-feedback:empty { margin: 0; }
[data-cart-link] { display: inline-flex; align-items: center; gap: 6px; }
[data-cart-link] svg { flex: none; }
.cart-page { padding: 34px 0 42px; }
.cart-page h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
.cart-items { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.cart-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; background: #fffdf9; border: 1px solid #e8e0d9; border-radius: 13px; padding: 16px; }
.cart-item h2 { font-size: 1.12rem; letter-spacing: normal; overflow-wrap: anywhere; }
.cart-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.cart-controls button, #cart-retry { background: #fff; color: #483079; border: 1px solid #d8c9eb; border-radius: 6px; padding: 6px 8px; font: inherit; cursor: pointer; }
.cart-controls button:disabled { opacity: .45; cursor: default; }
.cart-item details { margin-top: 6px; }
.cart-item details p { white-space: pre-line; margin-top: 7px; overflow-wrap: anywhere; }
.cart-item [data-unavailable] { color: #8e242b; margin-top: 6px; }
.cart-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
#cart-note { margin-top: 10px; color: #62586b; }
@media (max-width: 540px) { .cart-item { grid-template-columns: minmax(0, 1fr); } }
[hidden] { display: none !important; }
.hero-visual { display: grid; align-items: center; justify-items: center; position: relative; text-decoration: none; background: radial-gradient(ellipse, #fdf3ff 8%, #ded0f5 78%); }
.hero-visual::before { content: ""; width: 82%; height: 51%; border: 1px dashed #a18bc7; border-radius: 50%; position: absolute; transform: rotate(-17deg); }
.keychain { display: flex; align-items: center; gap: 6px; transform: rotate(-15deg); filter: drop-shadow(0 17px 11px #5c3e843d); }
.key { --size: clamp(43px, 7vw, 82px); display: grid; width: var(--size); aspect-ratio: 1; padding: calc(var(--size) * .13); border-radius: 24%; background: var(--base); box-shadow: inset 0 2px 3px #fff5, 0 calc(var(--size) * .17) 0 var(--edge); }
.key b { display: grid; place-items: center; border-radius: 24%; color: #fff; background: linear-gradient(150deg, #fff4, #0002) var(--base); box-shadow: inset 0 1px 2px #fff7, 0 2px 3px #0005; font-size: calc(var(--size) * .45); line-height: 1; }
.pink { --base: #e575ad; --edge: #a8477d; }
.lilac { --base: #8655c6; --edge: #59358d; }
.blue { --base: #5793df; --edge: #3566a6; }
.loop { width: clamp(28px, 4.8vw, 53px); aspect-ratio: 1; border: 5px solid #c18b46; border-top-color: #ffefb8; border-left-color: #e9ba76; border-radius: 50%; }
.link { width: 12px; height: 9px; border: 2px solid #af783b; border-radius: 50%; margin-right: -4px; }
.catalog { padding: 52px 0 35px; }
h2 { font-size: clamp(1.65rem, 4vw, 2.25rem); letter-spacing: -.055em; }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 17px; }
.product { background: #fffdf9; border: 1px solid #e8e0d9; border-radius: 15px; overflow: hidden; }
.product-art { min-height: 140px; display: flex; align-items: center; justify-content: center; }
.clicker-art { background: #eee5fc; }
.clicker-art .key { transform: rotate(-12deg); }
.catalog-photo { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #f3f2ef; }
.photo-pager { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px 0; }
.photo-pager button { width: 52px; aspect-ratio: 1; padding: 2px; border: 1px solid #e8e0d9; border-radius: 8px; background: #fff; cursor: pointer; }
.photo-pager button[aria-pressed=true] { border-color: #6844b7; box-shadow: 0 0 0 1px #6844b7; }
.photo-pager button img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 5px; background: #f3f2ef; }
#catalog-status { color: #62586b; margin-top: 10px; }
.product-content { padding: 19px; }
.product h3 { font-size: 1.15rem; }
.product p { margin: 6px 0 12px; }
.product a { font-weight: 740; }
.contact { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 36px; padding: 22px; border: 1px solid #dfd4ee; border-radius: 14px; background: #f1eaf8; }
.contact h2 { font-size: 1.45rem; }
.footer { padding: 16px 0 25px; border-top: 1px solid #e9e2da; }
@media (max-width: 660px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 195px; }
  .products { grid-template-columns: 1fr; }
}
